/* Alley entrance. The title is HTML so it stays sharp. No card behind the type. */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html.alley-pending,
html.alley-pending body.street-page {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.alley {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #05060c;
  overflow: hidden;
  opacity: 1;
  transition: opacity .85s ease;
}
.alley.is-done { opacity: 0; pointer-events: none; }
html.alley-skip .alley { display: none !important; }

.alley-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: calc(100vh * 16 / 9);
  min-height: 100vh;
  transform: translate(-50%, -50%);
  background: #05060c;
}
.alley-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  background: #05060c;
  transition: opacity .7s linear;
  pointer-events: none;
}
.alley-vid.is-on { opacity: 1; }
.alley-vid::-webkit-media-controls,
.alley-vid::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

.alley-sky-rain { display: none; }

.alley-enter {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  transform: translateX(-50%);
  min-height: 52px;
  min-width: 44px;
  max-width: calc(100vw - 32px);
  padding: 0 28px;
  border-radius: 2px;
  border: 1px solid rgba(240, 210, 130, .9);
  background: rgba(5, 6, 12, .78);
  color: #f6e7a8;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 20px);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 196, 80, .65);
  box-shadow: 0 0 18px rgba(255, 160, 40, .28);
}
.alley-enter:focus { outline: none; }
.alley-enter:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.alley-enter:active {
  transform: translateX(-50%) scale(.98);
  background: rgba(5, 6, 12, .92);
  color: #fff;
}
.alley.is-playing .alley-enter { visibility: hidden; }

.alley-title {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 37%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100vw - 16px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.alley-title.is-in {
  visibility: visible;
  opacity: 1;
  transition: opacity .4s ease;
}
.alley-title.is-out {
  visibility: visible;
  opacity: 0;
  transition: opacity .65s ease;
}
.alley-lockup { position: relative; display: inline-block; max-width: calc(100vw - 16px); }

.alley-brand,
.alley-prod {
  position: relative;
  display: block;
  margin: 0;
  font-family: "Bodoni Moda", Didot, "Bodoni MT", Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}
.alley-brand {
  font-size: clamp(18px, 4.8vw, 72px);
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.alley-prod {
  font-size: clamp(13px, 1.55vw, 22px);
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: lowercase;
  white-space: nowrap;
}
.alley-fill,
.alley-wet {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.alley-brand .alley-fill {
  color: #f7e6aa;
  -webkit-text-stroke: 0.35px rgba(255, 248, 226, .85);
  text-shadow:
    0 0 1px #fff8dc,
    0 0 6px rgba(255, 210, 120, .85),
    0 0 12px rgba(255, 170, 50, .35);
}
.alley-prod .alley-fill {
  color: rgba(186, 232, 238, .92);
  text-shadow: 0 0 8px rgba(90, 200, 214, .35);
}
.alley-wet { display: none; }
.alley-rule {
  display: block;
  width: 42%;
  min-width: 72px;
  height: 1px;
  margin: .42em auto .46em;
  background: linear-gradient(90deg, transparent, rgba(240, 210, 140, .15) 12%, #f0d48a 50%, rgba(240, 210, 140, .15) 88%, transparent);
  box-shadow: 0 0 8px rgba(240, 200, 110, .8);
}
.alley-drops {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -18%;
  bottom: -28%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='100' viewBox='0 0 160 100'><g fill='none' stroke-linecap='round'><path d='M12 6v14' stroke='white' stroke-width='1.2'/><path d='M46 38v11' stroke='%23d7f6ff' stroke-width='1'/><path d='M78 18v16' stroke='white' stroke-width='1.1'/><path d='M112 62v12' stroke='white' stroke-width='1'/><path d='M142 28v13' stroke='%23c8f4ff' stroke-width='1.2'/><circle cx='30' cy='72' r='1.1' fill='white' stroke='none'/><circle cx='96' cy='84' r='1' fill='%23e7fbff' stroke='none'/></g></svg>");
  background-size: 160px 100px;
  background-repeat: repeat;
}
.alley-title.is-in .alley-drops,
.alley-title.is-out .alley-drops {
  opacity: .85;
  animation: alley-drip .8s linear infinite;
}
@keyframes alley-drip {
  from { background-position: 0 -100px; }
  to { background-position: 0 100px; }
}

.street:focus { outline: none; }

@media (max-width: 700px) {
  .alley-brand { letter-spacing: .12em; text-indent: .12em; font-size: clamp(17px, 6.5vw, 36px); }
  .alley-prod { letter-spacing: .28em; text-indent: .28em; font-size: clamp(13px, 3.4vw, 18px); }
  .alley-title { top: 34%; }
}
@media (max-height: 430px) {
  .alley-enter {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    padding: 0 18px;
  }
  .alley-title { top: 40%; }
  .alley-brand { font-size: clamp(16px, 4.2vh, 40px); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .alley-title { top: 36%; }
  .alley-enter { bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .alley { display: none !important; }
  .alley-wet, .alley-drops, .alley-vid, .alley-title { animation: none !important; transition: none !important; }
}
