/* Title: the club before the show. The photo is the stage from the quick guide;
   everything else (logo light, beams, START) is drawn live so it can move. */
#title-screen{background:#05060f;overflow:hidden;isolation:isolate}
.tt-stage{position:absolute;inset:0;overflow:hidden}
.tt-photo{position:absolute;inset:-4%;background:url("assets/ui-art/beat-tripper-arcade.webp") 50% 38%/cover no-repeat;
  filter:saturate(1.18) contrast(1.05);animation:tt-drift 26s ease-in-out infinite alternate}
@keyframes tt-drift{from{transform:scale(1.02) translateY(0)}to{transform:scale(1.11) translateY(-1.6%)}}
/* Four soft spotlights sweeping from the truss. */
.tt-beam{position:absolute;top:1%;width:38%;height:86%;transform-origin:50% 0;opacity:.8;filter:blur(8px);pointer-events:none;
  clip-path:polygon(47% 0,53% 0,100% 100%,0 100%);background:linear-gradient(180deg,var(--c) 0%,transparent 86%)}
.tt-beam.b1{left:2%;--c:#ff3d9acc;animation:tt-sweep-a 7.5s ease-in-out infinite alternate}
.tt-beam.b2{left:26%;--c:#8a5cffcc;animation:tt-sweep-b 9s ease-in-out infinite alternate}
.tt-beam.b3{left:42%;--c:#2fe6ffb3;animation:tt-sweep-a 8.2s -3s ease-in-out infinite alternate}
.tt-beam.b4{left:64%;--c:#ffd36ab3;animation:tt-sweep-b 6.8s -2s ease-in-out infinite alternate}
@keyframes tt-sweep-a{from{transform:rotate(-24deg)}to{transform:rotate(19deg)}}
@keyframes tt-sweep-b{from{transform:rotate(21deg)}to{transform:rotate(-17deg)}}
.tt-shade{position:absolute;inset:0;background:
  radial-gradient(92% 26% at 50% 27%,#04050dcc 0%,#04050d80 50%,transparent 100%),
  linear-gradient(180deg,#04050d99 0%,#04050d26 12%,#04050d0d 38%,#04050d59 66%,#04050dcc 88%,#04050df2 100%)}
#tt-sky{position:absolute;inset:0;width:100%;height:100%}

.tt-lockup{position:absolute;left:0;right:0;top:calc(var(--safe-t) + 13cqh);display:flex;flex-direction:column;align-items:center;pointer-events:none}
.tt-logo{position:relative;width:min(88cqw,560px);aspect-ratio:806/233;animation:tt-logo-on 1.5s .15s both}
.tt-logo i,.tt-logo b{position:absolute;inset:0}
.tt-logo b,.tt-logo-shine{-webkit-mask:url("assets/ui-art/beat-tripper-wordmark.webp") center/contain no-repeat;mask:url("assets/ui-art/beat-tripper-wordmark.webp") center/contain no-repeat}
/* The blur and the shadow sit on the wrappers, outside the lettering's mask. */
.tt-logo-glow{filter:blur(9px);opacity:.9;animation:tt-breathe 3.6s ease-in-out infinite}
.tt-logo-glow b{background:linear-gradient(90deg,#ff3d9a,#ff9a3d 30%,#ffe9a8 50%,#4fe6ff 76%,#a77bff)}
.tt-logo-ink{filter:drop-shadow(0 2px 0 #8a4b1c) drop-shadow(0 0 3px #fff3cf)}
.tt-logo-ink b{background:linear-gradient(180deg,#ffffff 16%,#fff3d2 52%,#f9cf80 100%)}
.tt-logo-shine{background:linear-gradient(104deg,transparent 42%,#ffffff 50%,transparent 58%) no-repeat;background-size:280% 100%;background-position:150% 0;animation:tt-shine 5.4s 1.8s ease-in-out infinite}
@keyframes tt-logo-on{0%{opacity:0;transform:scale(.9)}8%{opacity:.9}11%{opacity:.25}15%{opacity:1}19%{opacity:.4}24%,100%{opacity:1;transform:none}}
@keyframes tt-breathe{0%,100%{opacity:.62}50%{opacity:1}}
@keyframes tt-shine{0%{background-position:150% 0}30%,100%{background-position:-60% 0}}
.tt-tag{display:flex;align-items:center;gap:12px;margin:clamp(4px,1.2cqh,12px) 0 0;font-size:clamp(11px,3.3cqw,17px);font-weight:800;letter-spacing:.46em;text-indent:.46em;white-space:nowrap;
  animation:tt-rise .8s .55s var(--ease-out) backwards}
.tt-tag span{background:linear-gradient(180deg,#fff6d6,#f6d48a 55%,#dba757);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 1px 6px #000c)}
.tt-tag i{width:clamp(18px,7cqw,54px);height:1px;background:linear-gradient(90deg,transparent,#f6d48a)}
.tt-tag i:last-child{transform:scaleX(-1)}
.tt-sub{margin:9px 0 0;font-size:clamp(8px,2.3cqw,11px);font-weight:700;letter-spacing:.3em;color:#cfd4ee;text-shadow:0 1px 6px #000;white-space:nowrap;animation:tt-rise .8s .7s var(--ease-out) backwards}
.tt-sub b{margin:0 .9em;color:var(--pink)}
@keyframes tt-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.tt-actions{position:absolute;left:0;right:0;bottom:calc(var(--safe-b) + clamp(54px,9.5cqh,96px));display:flex;flex-direction:column;align-items:center;gap:clamp(14px,2.6cqh,26px);z-index:2}
/* START: a gold key inside a ring of running light. */
.tt-start{position:relative;width:min(80cqw,430px);height:clamp(66px,10.4cqh,92px);padding:0;border-radius:999px;background:transparent;isolation:isolate;
  animation:tt-pop .7s .85s var(--ease-pop) backwards;transition:transform .1s ease}
.tt-start-ring{position:absolute;inset:-4px;z-index:-1;border-radius:inherit;overflow:hidden;box-shadow:0 0 34px #ff3d9a66,0 0 60px #f6d48a3d,0 14px 30px #000b;animation:tt-halo 2.4s ease-in-out infinite}
.tt-start-ring::before{content:"";position:absolute;left:50%;top:50%;width:220%;aspect-ratio:1;margin:-110% 0 0 -110%;
  background:conic-gradient(#ff4f88,#ffb336,#fff6c9,#35efac,#35e5ff,#6a9cff,#ca7bff,#ff4f88);animation:tt-spin 3.4s linear infinite}
.tt-start-face{position:absolute;inset:0;border-radius:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;overflow:hidden;color:#2b1905;
  background:linear-gradient(180deg,#fff7d6 0%,#fbe09a 36%,#e9b25a 62%,#f9d98f 100%);box-shadow:inset 0 2px 0 #fffdf0,inset 0 -4px 0 #b97f2f,inset 0 0 0 1px #fff3c480}
.tt-start-face::before{content:"";position:absolute;inset:0;background:linear-gradient(104deg,transparent 40%,#ffffffd9 50%,transparent 60%) no-repeat;background-size:260% 100%;background-position:140% 0;animation:sheen 3.6s 1.6s ease-in-out infinite}
.tt-start-face b{position:relative;font:400 clamp(30px,9.6cqw,46px)/1 TicketDisplay,Impact,sans-serif;letter-spacing:.2em;text-indent:.2em;text-shadow:0 1px 0 #fff3c4}
.tt-start-face b::before,.tt-start-face b::after{content:"";position:absolute;top:50%;width:0;height:0;margin-top:-.2em;border:.2em solid transparent;animation:tt-nudge 1.1s ease-in-out infinite}
.tt-start-face b::before{right:calc(100% + .42em);border-left-color:currentColor}
.tt-start-face b::after{left:calc(100% + .22em);border-right-color:currentColor;animation-direction:reverse}
.tt-start-face small{position:relative;font-size:clamp(9px,2.6cqw,11px);font-weight:800;letter-spacing:.2em;opacity:.72}
.tt-start:active{transform:translateY(3px) scale(.985)}
.tt-start:active .tt-start-face{filter:brightness(1.12)}
.tt-start:focus-visible{outline-offset:8px}
@keyframes tt-spin{to{transform:rotate(360deg)}}
@keyframes tt-halo{0%,100%{box-shadow:0 0 26px #ff3d9a55,0 0 50px #f6d48a2e,0 14px 30px #000b}50%{box-shadow:0 0 44px #ff3d9aa6,0 0 84px #f6d48a66,0 14px 30px #000b}}
@keyframes tt-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(.22em)}}
@keyframes tt-pop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.tt-row{display:flex;gap:9px;animation:tt-rise .7s 1.05s var(--ease-out) backwards}
.tt-chip{display:flex;align-items:center;gap:7px;min-height:46px;padding:0 16px 0 13px;border-radius:999px;color:var(--ink);font-size:13px;font-weight:750;white-space:nowrap;
  background:linear-gradient(180deg,#1c2050d9,#0c0e26e6);border:1px solid #f6d48a70;box-shadow:inset 0 1px 0 #ffffff2e,0 8px 18px #0009;transition:transform .09s,border-color .16s,background .16s}
.tt-chip svg{width:18px;height:18px;fill:var(--gold-2);flex:none}
.tt-chip b{padding:2px 7px;margin-left:1px;border-radius:9px;font:400 14px/1.15 TicketDisplay,Impact,sans-serif;letter-spacing:.04em;color:#2b1905;background:var(--gold-face)}
.tt-chip:active{transform:scale(.94);border-color:#fff3cf;background:linear-gradient(180deg,#2c3170,#151840)}
/* A row of level meters breathing along the floor. */
.tt-eq{position:absolute;left:0;right:0;bottom:0;height:clamp(34px,6cqh,62px);display:flex;align-items:flex-end;gap:1.1%;padding:0 3%;opacity:.42;pointer-events:none;
  -webkit-mask:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
.tt-eq i{flex:1;height:100%;border-radius:3px 3px 0 0;transform-origin:50% 100%;
  background:linear-gradient(0deg,#ff3d9a,#ffb336 45%,#35e5ff);animation:tt-eq calc(.62s + var(--i)*37ms) calc(var(--i)*-173ms) ease-in-out infinite alternate}
.tt-eq i:nth-child(3n){animation-duration:.83s}.tt-eq i:nth-child(4n+1){animation-duration:1.07s}.tt-eq i:nth-child(5n+2){animation-duration:.51s}
@keyframes tt-eq{from{transform:scaleY(.12)}to{transform:scaleY(1)}}
.tt-ver{position:absolute;left:50%;bottom:calc(var(--safe-b) + 8px);z-index:2;margin:0;padding:4px 12px;border-radius:12px;transform:translateX(-50%);white-space:nowrap;
  font-size:8px;font-weight:800;letter-spacing:.3em;color:#ffffffb3;background:#04050db3;pointer-events:none}
.tt-ver b{margin-left:1em;font-weight:800;color:var(--gold-2)}

/* Landscape: the lockup on the left, the controls on the right. */
.landscape .tt-photo{background-position:50% 44%}
.landscape .tt-shade{background:radial-gradient(52% 62% at 28% 46%,#04050dd9 0%,#04050d73 55%,transparent 100%),
  linear-gradient(180deg,#04050dbf 0%,#04050d33 26%,#04050d40 62%,#04050df0 100%)}
.landscape .tt-lockup{left:max(4%,var(--safe-l));right:auto;width:46%;top:50%;transform:translateY(-56%)}
.landscape .tt-logo{width:min(100%,560px,calc(52cqh * 3.46))}
.landscape .tt-tag{font-size:clamp(10px,1.7cqw,16px);margin-top:6px}
.landscape .tt-sub{font-size:clamp(7px,1.1cqw,10px);margin-top:7px}
.landscape .tt-actions{left:auto;right:max(4%,var(--safe-r));width:40%;bottom:auto;top:50%;transform:translateY(-50%);gap:clamp(12px,4.6cqh,24px)}
.landscape .tt-start{width:100%;height:clamp(60px,20cqh,88px)}
.landscape .tt-start-face b{font-size:clamp(26px,4.4cqw,44px)}
.landscape .tt-row{gap:7px;flex-wrap:wrap;justify-content:center}.landscape .tt-chip{min-height:44px;padding:0 13px 0 11px;font-size:12px}
.landscape .tt-eq{height:clamp(26px,11cqh,54px)}
@container (max-width:360px){.tt-chip{padding:0 12px 0 10px;font-size:12px;gap:5px}.tt-row{gap:6px}}
@container (max-height:600px) and (max-width:540px){.tt-lockup{top:calc(var(--safe-t) + 9cqh)}.tt-actions{bottom:calc(var(--safe-b) + 46px)}}

@media(prefers-reduced-motion:reduce){
  .tt-photo,.tt-beam,.tt-logo,.tt-logo-glow,.tt-logo-shine,.tt-tag,.tt-sub,.tt-start,.tt-start-ring,.tt-start-ring::before,.tt-start-face::before,.tt-start-face b::before,.tt-start-face b::after,.tt-row,.tt-eq i{animation:none!important}
  .tt-eq i{transform:scaleY(.45)}.tt-eq i:nth-child(odd){transform:scaleY(.7)}
}
