/* ==========================================================================
   HYPERION SOCIAL CLUB — STYLES
   ========================================================================== */

:root {
  --bg: #050818;
  --bg-2: #0a1034;
  --surface: rgba(13, 20, 58, .9);
  --surface-2: rgba(28, 39, 96, .55);
  --surface-solid: #0c1336;
  --border: rgba(132, 152, 255, .16);
  --border-strong: rgba(150, 170, 255, .34);
  --text: #f3f5ff;
  --muted: #a7b1d9;
  --dim: #6f7aa9;
  --orange: #f7a61c;
  --orange-hi: #ffbe45;
  --on-orange: #0a0f2c;
  --navy: #0b3478;
  --blue: #4b74ff;
  --violet: #8a6bff;
  --green: #2fd98c;
  --amber: #ffb627;
  --red: #ff5c7a;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow-orange: 0 10px 34px -8px rgba(247, 166, 28, .6);

  --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-tagline: 'Orbitron', 'Chakra Petch', 'Segoe UI', sans-serif;

  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
sup.tm { font-size: .5em; line-height: 0; vertical-align: super; margin-left: .03em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
::selection { background: var(--orange); color: var(--on-orange); }

/* ---------- Custom cursors ----------
   Chosen with the cursor picker (data-cursor on <html>); "fleet" is the default.
   Each image has a 2x version for sharp screens; the numbers are the click point (hotspot). */
html, html[data-cursor="fleet"] { cursor: url('../img/cursors/fleet.png') 9 4, auto; cursor: -webkit-image-set(url('../img/cursors/fleet.png') 1x, url('../img/cursors/fleet@2x.png') 2x) 9 4, auto; }
a, button, summary, select, label, [role="button"], [data-clickable], input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="file"], html[data-cursor="fleet"] a, html[data-cursor="fleet"] button, html[data-cursor="fleet"] summary, html[data-cursor="fleet"] select, html[data-cursor="fleet"] label, html[data-cursor="fleet"] [role="button"], html[data-cursor="fleet"] [data-clickable], html[data-cursor="fleet"] input[type="checkbox"], html[data-cursor="fleet"] input[type="radio"], html[data-cursor="fleet"] input[type="submit"], html[data-cursor="fleet"] input[type="file"] { cursor: url('../img/cursors/fleet.png') 9 4, pointer; cursor: -webkit-image-set(url('../img/cursors/fleet.png') 1x, url('../img/cursors/fleet@2x.png') 2x) 9 4, pointer; }
html[data-cursor="astronaut"] { cursor: url('../img/cursors/astronaut.png') 1 22, auto; cursor: -webkit-image-set(url('../img/cursors/astronaut.png') 1x, url('../img/cursors/astronaut@2x.png') 2x) 1 22, auto; }
html[data-cursor="astronaut"] a, html[data-cursor="astronaut"] button, html[data-cursor="astronaut"] summary, html[data-cursor="astronaut"] select, html[data-cursor="astronaut"] label, html[data-cursor="astronaut"] [role="button"], html[data-cursor="astronaut"] [data-clickable], html[data-cursor="astronaut"] input[type="checkbox"], html[data-cursor="astronaut"] input[type="radio"], html[data-cursor="astronaut"] input[type="submit"], html[data-cursor="astronaut"] input[type="file"] { cursor: url('../img/cursors/astronaut.png') 1 22, pointer; cursor: -webkit-image-set(url('../img/cursors/astronaut.png') 1x, url('../img/cursors/astronaut@2x.png') 2x) 1 22, pointer; }
html[data-cursor="bal27"] { cursor: url('../img/cursors/bal27.png') 6 5, auto; cursor: -webkit-image-set(url('../img/cursors/bal27.png') 1x, url('../img/cursors/bal27@2x.png') 2x) 6 5, auto; }
html[data-cursor="bal27"] a, html[data-cursor="bal27"] button, html[data-cursor="bal27"] summary, html[data-cursor="bal27"] select, html[data-cursor="bal27"] label, html[data-cursor="bal27"] [role="button"], html[data-cursor="bal27"] [data-clickable], html[data-cursor="bal27"] input[type="checkbox"], html[data-cursor="bal27"] input[type="radio"], html[data-cursor="bal27"] input[type="submit"], html[data-cursor="bal27"] input[type="file"] { cursor: url('../img/cursors/bal27.png') 6 5, pointer; cursor: -webkit-image-set(url('../img/cursors/bal27.png') 1x, url('../img/cursors/bal27@2x.png') 2x) 6 5, pointer; }
html[data-cursor="iso-hemlock"] { cursor: url('../img/cursors/iso-hemlock.png') 6 4, auto; cursor: -webkit-image-set(url('../img/cursors/iso-hemlock.png') 1x, url('../img/cursors/iso-hemlock@2x.png') 2x) 6 4, auto; }
html[data-cursor="iso-hemlock"] a, html[data-cursor="iso-hemlock"] button, html[data-cursor="iso-hemlock"] summary, html[data-cursor="iso-hemlock"] select, html[data-cursor="iso-hemlock"] label, html[data-cursor="iso-hemlock"] [role="button"], html[data-cursor="iso-hemlock"] [data-clickable], html[data-cursor="iso-hemlock"] input[type="checkbox"], html[data-cursor="iso-hemlock"] input[type="radio"], html[data-cursor="iso-hemlock"] input[type="submit"], html[data-cursor="iso-hemlock"] input[type="file"] { cursor: url('../img/cursors/iso-hemlock.png') 6 4, pointer; cursor: -webkit-image-set(url('../img/cursors/iso-hemlock.png') 1x, url('../img/cursors/iso-hemlock@2x.png') 2x) 6 4, pointer; }
html[data-cursor="static-hv"] { cursor: url('../img/cursors/static-hv.png') 4 4, auto; cursor: -webkit-image-set(url('../img/cursors/static-hv.png') 1x, url('../img/cursors/static-hv@2x.png') 2x) 4 4, auto; }
html[data-cursor="static-hv"] a, html[data-cursor="static-hv"] button, html[data-cursor="static-hv"] summary, html[data-cursor="static-hv"] select, html[data-cursor="static-hv"] label, html[data-cursor="static-hv"] [role="button"], html[data-cursor="static-hv"] [data-clickable], html[data-cursor="static-hv"] input[type="checkbox"], html[data-cursor="static-hv"] input[type="radio"], html[data-cursor="static-hv"] input[type="submit"], html[data-cursor="static-hv"] input[type="file"] { cursor: url('../img/cursors/static-hv.png') 4 4, pointer; cursor: -webkit-image-set(url('../img/cursors/static-hv.png') 1x, url('../img/cursors/static-hv@2x.png') 2x) 4 4, pointer; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], textarea,
html[data-cursor] input[type="text"], html[data-cursor] input[type="email"], html[data-cursor] input[type="tel"], html[data-cursor] input[type="search"], html[data-cursor] input[type="password"], html[data-cursor] textarea { cursor: text; }
button:disabled, .btn[aria-disabled="true"], html[data-cursor] button:disabled, html[data-cursor] .btn[aria-disabled="true"] { cursor: not-allowed; }
/* Cursor picker: small round button bottom-left (desktop only), mirrors the music button */
.cursor-picker { position: fixed; z-index: 70; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.cursor-toggle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 52, .96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.cursor-toggle:hover, .cursor-toggle[aria-expanded="true"] { transform: scale(1.06); border-color: var(--orange); }
.cursor-toggle img { width: 30px; height: 30px; object-fit: contain; }
.cursor-menu { position: absolute; left: 0; bottom: calc(100% + 10px); width: 210px; padding: 8px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.cursor-menu p { padding: 6px 8px 8px; font-family: var(--font-display); font-weight: 600; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.cursor-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; text-align: left; color: var(--muted); font-size: .9rem; transition: background-color .15s, color .15s; }
.cursor-menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.cursor-menu button[aria-pressed="true"] { background: rgba(247, 166, 28, .12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(247, 166, 28, .45); }
.cursor-menu img { width: 40px; height: 40px; object-fit: contain; flex: none; }
#cursor-trail { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* ---------- Background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 85% 0%, rgba(90, 70, 220, .28), transparent 70%),
    radial-gradient(50vw 50vh at 0% 35%, rgba(40, 80, 220, .22), transparent 70%),
    radial-gradient(70vw 60vh at 60% 100%, rgba(120, 60, 200, .18), transparent 70%),
    linear-gradient(180deg, #060a1f 0%, #070b25 50%, #050818 100%);
}
#starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#starfield .sf-layer { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.sf-twinkles i { position: absolute; border-radius: 50%; background: #f4f6ff; box-shadow: 0 0 6px 1px rgba(200, 215, 255, .75); opacity: .2; animation: sf-tw 4s ease-in-out infinite; }
@keyframes sf-tw { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }
/* Star art motion (canvas painted once; CSS does the movement) */
.star-spin { animation: star-spin 16s linear infinite; }
.star-pulse { animation: star-pulse 3.4s ease-in-out infinite; }
@keyframes star-spin { to { transform: rotate(360deg); } }
@keyframes star-pulse { 0%, 100% { transform: scale(.95); opacity: .86; } 50% { transform: scale(1.04); opacity: 1; } }
.sf-shoot { position: absolute; width: 200px; height: 1.6px; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, rgba(255, 240, 210, 0), rgba(255, 240, 210, .95)); transform: rotate(25deg); }
.sf-shoot.go { animation: sf-shoot 1.1s ease-out; }
@keyframes sf-shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(25deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(420px, 196px) rotate(25deg); } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.center { text-align: center; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--plain::before { display: none; }
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: .005em; }
.h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.15; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
/* Taglines: wide futuristic caps with a white→orange gradient */
.tagline {
  display: inline-block;
  font-family: var(--font-tagline); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; line-height: 1.4;
  background: linear-gradient(90deg, #ffffff 0%, #ffe1ad 55%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(247, 166, 28, .25));
}
/* Two-line decorative tagline: outlined first line, gradient second line */
.tagline-xl { display: block; font-family: var(--font-tagline); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.12; font-size: clamp(1.4rem, 2.7vw, 2.3rem); pointer-events: none; }
.tagline-xl > span { display: block; }
.tagline-xl .o { color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .78); }
.tagline-xl .f { background: linear-gradient(90deg, #ffffff, #ffd28a 60%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(247, 166, 28, .35)); }
.accent { color: var(--orange); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .stack { --stack: .9rem; }

/* ---------- Icons ---------- */
.icon { display: inline-block; vertical-align: -.22em; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--btn-h); padding: 0 1.5em;
  border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); box-shadow: var(--glow-orange); }
.btn-primary:hover { background: var(--orange-hi); box-shadow: 0 14px 40px -8px rgba(247, 166, 28, .75); }
.btn-ghost { background: rgba(10, 16, 48, .72); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--on-orange); }
.btn-light:hover { background: #e9edff; }
.btn-sm { --btn-h: 40px; font-size: .8rem; padding: 0 1.1em; }
.btn-lg { --btn-h: 58px; font-size: 1rem; padding: 0 2em; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; box-shadow: none; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Small phones: long button labels wrap instead of pushing the layout wider than the screen */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; max-width: 100%; }
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--orange); font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* ---------- Cards / chips ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: clamp(20px, 3vw, 32px); }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .35em .8em; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04);
  font-size: .78rem; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.chip--orange { border-color: rgba(247, 166, 28, .45); color: var(--orange); background: rgba(247, 166, 28, .08); }
.chip--green { border-color: rgba(47, 217, 140, .45); color: var(--green); background: rgba(47, 217, 140, .08); }
.badge { display: inline-block; padding: .4em .9em; border-radius: 6px; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: .55em 1.1em; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(5, 8, 24, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 46px; width: auto; filter: drop-shadow(0 2px 10px rgba(60, 100, 255, .35)); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-ig { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); transition: all .2s; }
.nav-ig:hover { color: var(--text); border-color: var(--border-strong); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .nav-links, .nav-actions .nav-ig, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .mobile-menu {
    display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 59;
    background: rgba(5, 8, 24, .97); backdrop-filter: blur(16px);
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; border-bottom: 1px solid var(--border);
    font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em;
  }
  .mobile-menu nav a[aria-current="page"] { color: var(--orange); }
  .mobile-menu .btn { margin-top: 24px; }
  .mobile-menu .mobile-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(5, 8, 24, 0), rgba(5, 8, 24, .9) 40%); padding-top: clamp(56px, 8vw, 88px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 220px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-col .footer-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.footer-bottom .icon { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; color: var(--orange); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px)); padding-bottom: clamp(40px, 6vw, 72px); position: relative; }
.page-hero .stack { --stack: 1.1rem; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 24, .92) 0%, rgba(5, 8, 24, .55) 55%, rgba(5, 8, 24, .2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 0 24px; width: 100%; }
/* Top line of the hero: eyebrow on the left, countdown on the right, on one shared baseline */
.hero-topline { grid-column: 1 / -1; position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.hero-copy { position: relative; z-index: 2; }
.hero-logo { width: min(580px, 100%); margin: 14px 0 4px -2%; filter: drop-shadow(0 10px 40px rgba(60, 100, 255, .35)); }
.hero-tagline { font-size: clamp(.92rem, 1.55vw, 1.2rem); letter-spacing: .2em; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 26px; }
.meta-item { display: flex; align-items: center; gap: 14px; }
.meta-item .icon-box { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--border-strong); color: var(--orange); }
.meta-item .icon-box .icon { width: 22px; height: 22px; }
.meta-item strong { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.meta-item span { color: var(--muted); font-size: .88rem; }
.hero .btn-row { margin-top: 28px; }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
/* Planet: back half of the ring sits behind the globe, front half crosses in front of it */
.planet-system { position: absolute; width: 74%; aspect-ratio: 1; right: 0; top: 8%; --tilt: -18deg; }
.planet {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #a9b8ff 0%, #6a7cf2 16%, #4049cf 36%, #2a2296 56%, #150f57 76%, #080626 100%);
  box-shadow: 0 0 46px 4px rgba(95, 115, 255, .38), 0 0 150px 34px rgba(80, 60, 210, .22);
}
.planet-bands { /* cloud bands aligned with the ring plane */
  position: absolute; inset: -25%; transform: rotate(var(--tilt));
  background:
    linear-gradient(180deg, transparent 38%, rgba(170, 140, 255, .22) 46%, rgba(255, 255, 255, .08) 49%, rgba(170, 140, 255, .18) 53%, transparent 60%),
    repeating-linear-gradient(180deg, transparent 0 3.6%, rgba(255, 255, 255, .075) 3.6% 4.6%, transparent 4.6% 7.4%, rgba(16, 8, 70, .26) 7.4% 9.6%, transparent 9.6% 12.6%, rgba(200, 212, 255, .09) 12.6% 13.4%, transparent 13.4% 17.8%);
}
.planet-storm { position: absolute; width: 15%; height: 7%; left: 58%; top: 60%; border-radius: 50%; transform: rotate(var(--tilt)); background: radial-gradient(ellipse at center, rgba(215, 225, 255, .5), rgba(150, 165, 255, .18) 45%, transparent 70%); }
.planet::after { /* night side, terminator and atmospheric rim light */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 78% 82%, rgba(2, 2, 16, .9) 0%, rgba(2, 2, 16, .55) 28%, rgba(2, 2, 16, 0) 58%);
  box-shadow: inset 9px 11px 22px rgba(190, 205, 255, .5), inset -26px -32px 54px rgba(0, 0, 12, .65);
}
.ring {
  position: absolute; left: -30%; right: -30%; top: 50%; height: 36%; border-radius: 50%;
  transform: translateY(-50%) rotate(var(--tilt));
  background: radial-gradient(closest-side,
    transparent 70%,
    rgba(255, 205, 130, .7) 72%, rgba(247, 166, 28, .9) 74.5%, rgba(247, 166, 28, .25) 76.5%,
    transparent 77.5%,
    rgba(255, 230, 192, .45) 79.5%, rgba(255, 230, 192, .2) 85.5%,
    transparent 87%,
    rgba(165, 180, 255, .32) 89.5%, rgba(165, 180, 255, .07) 97.5%,
    transparent 100%);
  filter: drop-shadow(0 0 6px rgba(247, 166, 28, .35));
}
.ring--back { z-index: 0; clip-path: inset(0 0 50% 0); opacity: .85; }
.ring--front { z-index: 2; clip-path: inset(50% 0 0 0); }
.moon {
  position: absolute; z-index: 0; width: 11%; aspect-ratio: 1; left: -2%; top: 2%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e9e4ff 0%, #a79fdc 30%, #5a4f9e 62%, #231c4f 100%);
  box-shadow: 0 0 22px rgba(170, 160, 255, .35), inset -5px -6px 10px rgba(10, 6, 40, .6);
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translate(6px, -8px); } }
/* Hyperion spacecraft (recoloured to the logo palette) with flickering rear thrusters */
.ship { position: absolute; z-index: 3; width: 80%; left: -12%; bottom: 8%; animation: ship-float 7s ease-in-out infinite; }
.ship img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(120, 150, 255, .28)); }
.ship-thrust {
  position: absolute; z-index: 0; width: 24%; height: 9%; border-radius: 50%;
  transform-origin: 0 50%; transform: rotate(-19deg);
  background: radial-gradient(ellipse at 0% 50%, #fff6d8 0%, #ffbe45 20%, rgba(247, 120, 28, .7) 46%, rgba(247, 120, 28, 0) 74%);
  animation: thrust .16s ease-in-out infinite alternate;
}
.ship-thrust--a { left: 86%; top: 27%; width: 18%; }
.ship-thrust--b { left: 95%; top: 39%; }
.ship-thrust--c { left: 95%; top: 55%; }
@keyframes thrust { from { opacity: .7; transform: rotate(-19deg) scaleX(.82); } to { opacity: 1; transform: rotate(-19deg) scaleX(1.08); } }
@keyframes ship-float { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(8px, -14px) rotate(1deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(2deg); } }

/* Countdown sits right under the tagline so it is visible on first load */
.countdown { display: flex; align-items: stretch; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.countdown-label { display: flex; flex-direction: column; justify-content: center; padding-right: 8px; font-family: var(--font-tagline); font-weight: 600; font-size: .66rem; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.countdown-label small { display: block; font-family: var(--font-display); font-size: .62rem; letter-spacing: .14em; color: var(--dim); }
.countdown-cell { min-width: 66px; padding: 9px 8px 7px; text-align: center; border-radius: 12px; background: rgba(10, 16, 48, .8); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.countdown-cell b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.countdown-cell span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
/* Desktop: top-right of the hero, right-aligned under the header's Register button */
.hero-countdown { margin: 0; justify-content: flex-end; align-items: center; gap: 0; }
/* frameless digits separated by thin colons; label styled exactly like the eyebrow and mirrored */
.hero-countdown .countdown-cell, .countdown--inline .countdown-cell { position: relative; min-width: 0; padding: 0 10px; background: none; border: 0; box-shadow: none; }
.hero-countdown .countdown-cell + .countdown-cell::before, .countdown--inline .countdown-cell + .countdown-cell::before { content: ':'; position: absolute; left: -3px; top: 0; font-family: var(--font-display); font-size: .95rem; line-height: 1.2; color: rgba(167, 177, 217, .45); }
.hero-countdown .countdown-cell b, .countdown--inline .countdown-cell b { font-size: 1.15rem; line-height: 1.1; }
.hero-countdown .countdown-cell span, .countdown--inline .countdown-cell span { display: block; margin-top: 1px; font-size: .5rem; letter-spacing: .18em; }
.hero-countdown .countdown-label, .countdown--inline .countdown-label { order: 2; flex-direction: row; align-items: center; gap: .6em; margin-left: 6px; padding: 4px 0 4px 16px; border-left: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .22em; line-height: 1; color: var(--orange); }
.hero-countdown .countdown-label::after, .countdown--inline .countdown-label::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hero-countdown .countdown-label small, .countdown--inline .countdown-label small { display: none; }
.countdown--inline { display: none; }
@media (max-width: 900px) {
  .hero-countdown { display: none; }
  .countdown--inline { display: flex; }
}

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--muted); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

@media (max-width: 900px) {
  /* Phones: compact hero so both CTAs are visible without scrolling */
  .hero { min-height: 0; padding-top: var(--header-h); padding-bottom: 48px; align-items: flex-start; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); right: -3%; width: 42%; max-width: 280px; z-index: 0; }
  /* everything centred on phones */
  .hero-topline { padding-top: min(41vw, 250px); justify-content: center; }
  .hero-topline .eyebrow { font-size: clamp(.58rem, 2.9vw, .78rem); letter-spacing: .16em; white-space: nowrap; }
  .hero-topline .eyebrow::before, .hero-topline .eyebrow::after { width: clamp(14px, 4vw, 22px); }
  .hero-topline .eyebrow::after { content: ''; height: 2px; border-radius: 2px; background: currentColor; }
  .hero-copy { text-align: center; }
  .hero-logo { width: min(84%, 420px); margin: 8px auto 2px; }
  .hero-tagline { font-size: clamp(.78rem, 3.4vw, 1rem); letter-spacing: .16em; }
  /* small countdown with "Launch in" centred above the digits */
  .countdown--inline { margin-top: 14px; flex-wrap: wrap; justify-content: center; }
  .countdown--inline .countdown-label { order: -1; width: 100%; justify-content: center; margin: 0 0 6px; padding: 0; border-left: 0; font-size: .62rem; letter-spacing: .2em; white-space: nowrap; }
  .countdown--inline .countdown-label::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
  .countdown--inline .countdown-label::after { width: 14px; }
  .countdown--inline .countdown-cell { padding: 0 9px; }
  .countdown--inline .countdown-cell b { font-size: 1.05rem; }
  .countdown--inline .countdown-cell span { font-size: .46rem; letter-spacing: .14em; }
  .countdown--inline .countdown-cell + .countdown-cell::before { font-size: .8rem; }
  .hero-meta { flex-wrap: nowrap; justify-content: center; gap: 14px; margin-top: 16px; }
  .meta-item { text-align: left; }
  .meta-item { gap: 8px; min-width: 0; }
  .meta-item .icon-box { width: 34px; height: 34px; flex: none; border-radius: 9px; }
  .meta-item .icon-box .icon { width: 17px; height: 17px; }
  .meta-item strong { font-size: .8rem; letter-spacing: .02em; white-space: nowrap; }
  .meta-item span { font-size: .7rem; white-space: nowrap; }
  .hero .btn-row { margin-top: 18px; gap: 10px; justify-content: center; }
  .hero .btn-lg { --btn-h: 50px; }
  .scroll-cue { display: none; }
}
/* Phones in landscape: text on the left, planet + ship on the right instead of stacked */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .hero { padding-top: calc(var(--header-h) + 8px); padding-bottom: 40px; }
  .hero-topline { padding-top: 12px; max-width: 60%; }
  .hero-copy { max-width: 60%; }
  .hero-logo { width: min(380px, 100%); }
  .hero-visual { top: calc(var(--header-h) + 10px); right: -2%; width: 40%; max-width: 340px; }
  /* landscape keeps the text left-aligned next to the planet */
  .hero-topline, .countdown--inline, .hero-meta, .hero .btn-row { justify-content: flex-start; }
  .hero-copy { text-align: left; }
  .hero-logo { margin: 8px 0 2px -1%; }
  .hero-topline .eyebrow::after { display: none; }
}
@media (max-width: 560px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero .btn-lg { font-size: .9rem; letter-spacing: .06em; padding-inline: 1em; }
}
@media (max-width: 370px) { .hero-meta { flex-wrap: wrap; } }

/* Marquee */
.marquee { border-block: 1px solid rgba(247, 166, 28, .35); background: rgba(247, 166, 28, .06); overflow: hidden; padding-block: 14px; }
.marquee-track { display: flex; width: max-content; gap: 32px; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 32px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.marquee-track .icon { color: var(--orange); width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy .stack { --stack: 1.2rem; }
.about-copy .lead strong { color: var(--text); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 24px 18px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--orange); }
.stat span { display: block; margin-top: 8px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.worlds { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 14px; }
.world { padding: 20px; text-align: center; }
.world small { display: block; color: var(--dim); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
/* Game titles are trademarks: shown exactly as written ("Honkai Impact 3rd", "Call of Duty®: Mobile"), never forced to caps */
.world strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .01em; text-transform: none; }
.world-x { font-family: var(--font-display); font-size: 1.8rem; color: var(--orange); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stats { gap: 8px; } .stat { padding: 16px 6px; } .worlds { gap: 8px; } .world { padding: 14px 10px; } .world strong { font-size: .9rem; } .world-x { font-size: 1.3rem; } }

/* Activities cards */
.activity-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.activity-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; text-align: left; width: 100%; }
.activity-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--hue, var(--orange)) 60%, transparent); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--hue, var(--orange)) 55%, transparent); }
.activity-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--hue) 70%, transparent), transparent 60%), radial-gradient(80% 80% at 10% 100%, color-mix(in srgb, var(--hue) 30%, transparent), transparent 70%), linear-gradient(160deg, #141c52, #090d2b); }
.activity-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.activity-art img { width: 100%; height: 100%; object-fit: cover; }
.activity-art .big-icon { position: absolute; right: -6%; bottom: -14%; width: 62%; height: auto; aspect-ratio: 1; color: rgba(255, 255, 255, .16); stroke-width: 1.2; transition: transform .5s ease; }
.activity-card:hover .big-icon { transform: rotate(-8deg) scale(1.06); }
.activity-art .tag { position: absolute; top: 14px; left: 14px; }
.activity-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--border); }
.activity-body .ic { color: var(--hue, var(--orange)); width: 24px; height: 24px; }
.activity-body h3 { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.activity-body .icon-arrow { color: var(--muted); transition: transform .2s, color .2s; }
.activity-card:hover .activity-body .icon-arrow { transform: translateX(4px); color: var(--text); }
.activity-short { padding: 0 18px 18px; color: var(--muted); font-size: .92rem; margin-top: -4px; }
@media (min-width: 1100px) { .activity-grid--featured .activity-card.is-featured { grid-column: span 2; } .activity-grid--featured .is-featured .activity-art { aspect-ratio: auto; height: 100%; min-height: 210px; } }
@media (max-width: 600px) {
  .activity-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .activity-art { aspect-ratio: 4 / 3; }
  .activity-art .tag { top: 8px; left: 8px; font-size: .68rem; }
  .activity-body { padding: 12px; gap: 8px; align-items: flex-start; }
  .activity-body h3 { font-size: .85rem; }
  .activity-body .ic, .activity-body .icon-arrow { display: none; }
  .activity-short { display: none; }
}

/* Star CTA band */
.star-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: radial-gradient(80% 120% at 85% 50%, rgba(138, 107, 255, .35), transparent 60%), linear-gradient(120deg, #0d1446, #1a1060); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.star-band .stack { --stack: 1.1rem; position: relative; z-index: 1; }
.mini-sky { position: relative; aspect-ratio: 1; }
.mini-sky-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
/* each star is its own canvas, twinkling with a compositor-only CSS animation */
.mini-star { position: absolute; width: calc(24% * var(--f, 1)); aspect-ratio: 1; transform: translate(-50%, -50%); animation: mini-tw var(--tw, 3.4s) ease-in-out infinite; animation-delay: var(--td, 0s); }
@keyframes mini-tw { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
/* weapon showcase: three weapons crossfade in turn */
.weapon-show { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ws-item { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; animation: ws-cycle 10.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
/* weapon floats over the middle of the constellation; a soft dark halo keeps it readable over the stars */
.ws-item::before { content: ''; position: absolute; left: 8%; right: 8%; top: 30%; bottom: 30%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--wg) 45%, rgba(8, 10, 40, .55)), transparent); }
.ws-item img { position: relative; width: 88%; height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); animation: ws-float 4s ease-in-out infinite; }
.ws-item figcaption { position: absolute; left: 0; right: 0; bottom: 2%; justify-content: center; display: flex; align-items: baseline; gap: 10px; font-family: var(--font-tagline); font-weight: 600; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wc); }
.ws-item figcaption b { font-family: var(--font-display); font-size: .95rem; letter-spacing: .06em; color: #fff; }
@keyframes ws-cycle { 0% { opacity: 0; transform: translateX(26px); } 5% { opacity: 1; transform: none; } 30% { opacity: 1; transform: none; } 35% { opacity: 0; transform: translateX(-26px); } 100% { opacity: 0; transform: translateX(-26px); } }
@keyframes ws-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .ws-item:first-child { opacity: 1; } }
@media (max-width: 800px) { .star-band { grid-template-columns: 1fr; } .mini-sky { order: -1; max-width: 460px; width: 100%; margin: 0 auto; } }

/* Event details */
.details-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.detail-list { display: grid; gap: 22px; margin-top: 28px; }
.detail-item { display: flex; gap: 16px; }
.detail-item .icon-box { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(247, 166, 28, .1); border: 1px solid rgba(247, 166, 28, .3); color: var(--orange); }
.detail-item small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-family: var(--font-display); }
.detail-item strong { display: block; font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.detail-item span { color: var(--muted); font-size: .92rem; }
.venue-card { position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
.venue-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(190deg) saturate(.7) brightness(.9); }
.venue-art { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(247, 166, 28, .25), transparent 30%), linear-gradient(rgba(150, 170, 255, .08) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(150, 170, 255, .08) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(160deg, #111a52, #090d2b); }
.venue-art .road { position: absolute; background: rgba(150, 170, 255, .16); border-radius: 6px; }
.venue-pin { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -100%); color: var(--orange); display: grid; justify-items: center; gap: 6px; }
.venue-pin .icon { width: 46px; height: 46px; filter: drop-shadow(0 6px 16px rgba(247, 166, 28, .6)); }
.venue-pin span { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--bg); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text); font-size: .8rem; }
.venue-pin::after { content: ''; position: absolute; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.venue-overlay { position: relative; z-index: 1; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(0deg, rgba(5, 8, 24, .95), rgba(5, 8, 24, 0)); }
.venue-overlay strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; letter-spacing: .04em; display: block; line-height: 1.1; }
.venue-overlay span { color: var(--muted); font-size: .9rem; }
.details-tagline { font-size: clamp(.9rem, 1.4vw, 1.08rem); margin-top: 30px; max-width: 34ch; }
@media (max-width: 900px) { .details-grid { grid-template-columns: 1fr; } }

/* Lineup cards */
.lineup-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lineup-grid--main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lineup-grid--main .performer-info h3 { font-size: 1.3rem; }
@media (max-width: 1024px) { .lineup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* odd card out (e.g. 3 headliners) sits centred under the first row */
  .lineup-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
  .lineup-grid--main .performer-info h3 { font-size: 1rem; }
  .performer-photo .num-label { display: none; }
  .performer-info { padding: 12px 12px 14px; }
  .performer-info h3 { font-size: 1rem; }
  .performer-info p { font-size: .82rem; }
}
.performer { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.performer-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(80% 60% at 50% 30%, rgba(90, 110, 255, .35), transparent 70%), linear-gradient(180deg, #121a4d, #080c26); }
.performer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.performer:hover .performer-photo img { transform: scale(1.05); }
.performer-photo .silhouette { position: absolute; left: 50%; bottom: 8%; width: 66%; height: auto; object-fit: contain; transform: translateX(-50%); filter: brightness(0) drop-shadow(0 0 1px rgba(150, 170, 255, .9)) drop-shadow(0 0 16px rgba(110, 130, 255, .55)); opacity: .82; z-index: 0; }
.performer-photo .qmark { position: absolute; z-index: 1; top: 34%; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--orange); text-shadow: 0 0 24px rgba(247, 166, 28, .7); }
.performer-photo .num { position: absolute; z-index: 2; top: 14px; left: 14px; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.performer-photo .chip { position: absolute; z-index: 2; top: 10px; right: 10px; background: rgba(5, 8, 24, .7); }
.performer-info { padding: 16px 18px 18px; }
.performer-info h3 { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.performer-info p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.performer-info .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--dim); font-size: .85rem; }
.performer-info .row a { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.performer-info .row a:hover { color: var(--orange); }
.performer.is-mystery .performer-info h3 { color: var(--muted); }

/* Schedule */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--border-strong); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 26px 28px; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(247, 166, 28, .2); }
.timeline-item time { font-family: var(--font-display); font-weight: 700; color: var(--orange); letter-spacing: .08em; }
.timeline-item strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; }
.timeline-item span { color: var(--muted); font-size: .9rem; }

/* Coswalk band (home) */
.cos-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(247, 166, 28, .35); padding: clamp(28px, 5vw, 64px); background: radial-gradient(70% 120% at 100% 0%, rgba(247, 166, 28, .25), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(75, 116, 255, .3), transparent 60%), linear-gradient(135deg, #0f1650, #0a0d30); }
.cos-band .tagline-xl { position: absolute; right: clamp(16px, 5vw, 64px); top: 50%; transform: translateY(-50%); text-align: right; }
.cos-band .stack { --stack: 1.1rem; max-width: 560px; position: relative; z-index: 1; }
@media (max-width: 900px) { .cos-band .tagline-xl { position: static; transform: none; text-align: left; margin-top: 24px; } }

/* Partner logos */
.partner-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px; aspect-ratio: 1 / .9; text-align: center; transition: border-color .2s, transform .2s; }
.partner:hover { border-color: var(--border-strong); transform: translateY(-3px); }
/* Logo "HUD window": dark panel with glowing corner brackets (orange / blue, alternating) and a sparkling star field
   behind the logo (small fixed 4-point stars + a twinkling layer), kept to the margins so they never cover the logo. The logo is drawn as is, so its colours stay true. */
.partner .plogo {
  --hud: var(--orange);
  --star-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 0C12.9 8.2 15.8 11.1 24 12C15.8 12.9 12.9 15.8 12 24C11.1 15.8 8.2 12.9 0 12C8.2 11.1 11.1 8.2 12 0Z'/%3E%3C/svg%3E");
  --star-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b0c6ff' d='M12 0C12.9 8.2 15.8 11.1 24 12C15.8 12.9 12.9 15.8 12 24C11.1 15.8 8.2 12.9 0 12C8.2 11.1 11.1 8.2 12 0Z'/%3E%3C/svg%3E");
  --star-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd896' d='M12 0C12.9 8.2 15.8 11.1 24 12C15.8 12.9 12.9 15.8 12 24C11.1 15.8 8.2 12.9 0 12C8.2 11.1 11.1 8.2 12 0Z'/%3E%3C/svg%3E");
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; height: 150px; padding: 20px 22px;
  box-sizing: border-box; border-radius: 10px; isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(70, 110, 255, .22) 0, rgba(70, 110, 255, 0) 70%),
    var(--star-w) calc(32% + -1.26px) calc(9% + -2.87px) / 7px 7px no-repeat,
    var(--star-g) calc(72% + 1.54px) calc(10% + -2.80px) / 7px 7px no-repeat,
    var(--star-b) calc(24% + -1.82px) calc(92% + 2.94px) / 7px 7px no-repeat,
    var(--star-w) calc(66% + 1.12px) calc(93% + 3.01px) / 7px 7px no-repeat,
    var(--star-w) calc(95.5% + 2.73px) calc(66% + 0.96px) / 6px 6px no-repeat,
    linear-gradient(160deg, #0d1745 0%, #070c28 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 150, 255, .3), 0 0 26px -8px var(--hud);
}
.partner .plogo::before {
  content: ''; position: absolute; inset: 5px; z-index: 1; pointer-events: none;
  background-image: linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
                    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud));
  background-repeat: no-repeat;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
  background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px;
  filter: drop-shadow(0 0 4px var(--hud));
}
.partner .plogo::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: var(--star-w) calc(50% + 0.00px) calc(8% + -4.20px) / 10px 10px no-repeat,
    var(--star-b) calc(80% + 3.00px) calc(92% + 4.20px) / 10px 10px no-repeat,
    var(--star-g) calc(4.5% + -4.09px) calc(40% + -0.90px) / 9px 9px no-repeat;
  filter: drop-shadow(0 0 2px rgba(190, 210, 255, .8));
  animation: plogo-twinkle 3.4s ease-in-out infinite;
}
.partner:nth-child(3n + 2) .plogo::after { animation-delay: -1.1s; animation-duration: 4.1s; }
.partner:nth-child(3n) .plogo::after { animation-delay: -2.3s; animation-duration: 3.8s; }
@keyframes plogo-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .partner .plogo::after { animation: none; opacity: .8; } }
.partner:nth-child(even) .plogo { --hud: #6aa8ff; }
.partner .plogo img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(1.5px 0 0 rgba(255, 255, 255, .92)) drop-shadow(-1.5px 0 0 rgba(255, 255, 255, .92)) drop-shadow(0 1.5px 0 rgba(255, 255, 255, .92)) drop-shadow(0 -1.5px 0 rgba(255, 255, 255, .92)) drop-shadow(0 0 10px rgba(150, 175, 255, .45)); }
.partner .plogo--round img { height: 100%; width: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; }
.partner-strip .partner .plogo { max-width: 128px; height: 96px; padding: 14px 16px; }
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid .partner { padding: 12px 10px 16px; }
  .partner-grid .partner .plogo { height: 104px; padding: 14px; }
}
.partner .mono { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--violet)); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.partner strong { font-family: var(--font-display); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.partner small { color: var(--dim); font-size: .8rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-grid .partner { aspect-ratio: auto; min-height: 154px; padding: 16px 16px 20px; } /* long names make a taller card; the whole row grows with it */
.partner--empty { border-style: dashed; border-color: var(--border-strong); background: rgba(255, 255, 255, .02); color: var(--muted); }
.partner--empty .plus { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--border-strong); color: var(--orange); }
.partner--empty:hover { color: var(--text); border-color: var(--orange); }
.partner-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partner-strip .partner { width: 150px; aspect-ratio: auto; padding: 18px 12px; }

/* FAQ / accordion */
.accordion { display: grid; gap: 10px; }
.acc-item { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.acc-item[open] { border-color: var(--border-strong); }
.acc-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 500; font-size: 1.02rem; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .icon { color: var(--orange); transition: transform .25s; flex: none; }
.acc-item[open] summary .icon { transform: rotate(45deg); }
.acc-item .acc-body { padding: 0 20px 20px; color: var(--muted); }
.acc-item .acc-body ul, .bullets { list-style: none; display: grid; gap: 8px; }
.bullets { color: var(--muted); }
.acc-item .acc-body li, .bullets li { position: relative; padding-left: 20px; }
.acc-item .acc-body li::before, .bullets li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--orange); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.acc-item summary .q-icon { display: inline-flex; align-items: center; gap: 12px; }
.acc-item summary .q-icon .icon { color: var(--muted); transform: none !important; }
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 8px; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.faq-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group h2 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.search-field { position: relative; margin-bottom: 32px; }
.search-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search-field input { padding-left: 46px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; display: flex; flex-wrap: wrap; } }

/* IG CTA */
.ig-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); }
.ig-icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: radial-gradient(circle at 30% 110%, #ffd776 0%, #f77737 25%, #e1306c 50%, #c13584 70%, #5851db 100%); color: #fff; }
.ig-icon .icon { width: 36px; height: 36px; }
/* Same tile in the site palette (not Instagram's) for non-IG CTAs */
.ig-icon--brand { background: radial-gradient(circle at 50% 50%, rgba(247, 166, 28, .28), transparent 62%), linear-gradient(135deg, #2b3fd6, var(--violet)); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 26px rgba(75, 116, 255, .35); }
.ig-icon--brand .icon { filter: drop-shadow(0 0 8px rgba(247, 166, 28, .6)); }
.ig-cta h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; }
.ig-cta p { color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .ig-cta { grid-template-columns: 1fr; text-align: left; } }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .92rem; font-weight: 500; color: var(--text); }
.field label .req { color: var(--orange); }
.field label .opt { color: var(--dim); font-weight: 400; }
.input, .select {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border-radius: 10px; border: 1px solid var(--border-strong);
  background: rgba(10, 16, 52, .75); color: var(--text);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--dim); }
#f-referral::placeholder { text-transform: none; }
.input:hover, .select:hover { border-color: rgba(170, 185, 255, .5); }
.input:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 166, 28, .2); background: rgba(14, 22, 66, .9); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b1d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.select option { background: var(--surface-solid); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--border-strong); border-right: 0; border-radius: 10px 0 0 10px; background: rgba(255, 255, 255, .05); color: var(--muted); font-weight: 500; }
.input-group .input { border-radius: 0 10px 10px 0; }
.input-group .select { width: auto; flex: none; border-radius: 10px 0 0 10px; border-right: 0; padding-right: 36px; background-position: right 10px center; }
.field .hint { font-size: .8rem; color: var(--dim); }
.form-hint { margin-top: -10px; font-size: .8rem; color: var(--dim); }
.field .error { font-size: .82rem; color: var(--red); display: none; }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--red); }
.field.is-invalid .error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.check a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid { color: var(--red); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { text-align: center; font-size: .85rem; color: var(--dim); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1px solid; font-size: .92rem; }
.alert .icon { flex: none; margin-top: 2px; }
.alert--info { border-color: rgba(75, 116, 255, .45); background: rgba(75, 116, 255, .1); color: #c8d4ff; }
.alert--warn { border-color: rgba(255, 182, 39, .45); background: rgba(255, 182, 39, .1); color: #ffe0a3; }
.alert--error { border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .1); color: #ffc2cd; }
.alert--success { border-color: rgba(47, 217, 140, .45); background: rgba(47, 217, 140, .1); color: #b9f5d8; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Cosplay Runway registration form */
.cos-fieldset-title { font-size: 1.05rem; margin: 26px 0 14px; color: var(--text); }
.cos-fieldset-title:first-child { margin-top: 0; }
textarea.input { min-height: 104px; line-height: 1.5; resize: vertical; }
.radio-row { display: grid; gap: 12px; }
.radio-row .check input { width: 20px; height: 20px; border-radius: 50%; }
.input-file {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px dashed var(--border-strong); background: rgba(10, 16, 52, .5);
  color: var(--muted); font-size: .92rem;
}
.input-file::file-selector-button { font: inherit; margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .06); color: var(--text); }
.input-file:hover { border-color: rgba(170, 185, 255, .5); }
.field.is-invalid .input-file { border-color: var(--red); }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   REGISTER + PASS
   ========================================================================== */
.register-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.register-grid .stack { --stack: 1.2rem; }
.pass-panel { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(22px, 3vw, 34px); text-align: center; }
.pass-panel h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; margin-top: 14px; line-height: 1.05; }
.pass-panel > p { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.pass-panel .fine { margin-top: 18px; font-size: .8rem; color: var(--dim); }
@media (max-width: 960px) { .register-grid { grid-template-columns: 1fr; } .pass-panel { position: static; } }

.pass {
  position: relative; width: 100%; max-width: 340px; margin: 22px auto 0;
  border-radius: 18px; overflow: hidden; text-align: center;
  background: radial-gradient(120% 60% at 50% 0%, rgba(75, 116, 255, .35), transparent 60%), linear-gradient(180deg, #0e1745, #070b26);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.pass::before, .pass::after { content: ''; position: absolute; top: 62%; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--border-strong); }
.pass::before { left: -12px; }
.pass::after { right: -12px; }
.pass-logo { width: 78%; margin: 22px auto 10px; filter: drop-shadow(0 4px 16px rgba(60, 100, 255, .4)); }
.pass-qr { width: 72%; margin: 6px auto 0; background: #fff; border-radius: 12px; padding: 12px 12px 8px; color: #0a0f2c; }
.pass-qr canvas { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.pass-qr .pass-id { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; font-size: 1rem; margin-top: 6px; }
.pass-qr.is-placeholder canvas { filter: blur(5px); opacity: .5; }
.pass-body { padding: 20px 18px 18px; border-top: 1px dashed var(--border-strong); margin-top: 22px; }
.pass-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; word-break: break-word; }
.pass-meta { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: .88rem; }
.pass-meta div { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pass-meta .icon { color: var(--orange); width: 16px; height: 16px; }
.pass-foot { background: var(--orange); color: var(--on-orange); font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; padding: 10px; }
.pass-foot.is-in { background: var(--green); }
.pass-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.success-head { text-align: center; }
.success-head .ok-badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 217, 140, .14); border: 1px solid rgba(47, 217, 140, .5); color: var(--green); }
.success-head .ok-badge .icon { width: 30px; height: 30px; }

/* ==========================================================================
   STAR GAME
   ========================================================================== */
.steps { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); margin-bottom: 28px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding-bottom: 8px; border-bottom: 2px solid transparent; }
.step b { font-size: 1rem; }
.step.is-active { color: var(--text); border-color: var(--orange); }
.step.is-active b { color: var(--orange); }
.step.is-done { color: var(--muted); }
@media (max-width: 600px) { .steps { gap: 8px 14px; } .step { font-size: .68rem; letter-spacing: .1em; gap: 6px; } .step b { font-size: .85rem; } }

.sky-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: stretch; }
.sky {
  position: relative; min-height: 560px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(60% 50% at 50% 50%, rgba(90, 80, 220, .25), transparent 70%), radial-gradient(40% 40% at 20% 20%, rgba(75, 116, 255, .2), transparent 70%), rgba(5, 8, 30, .6);
}
.sky canvas.sky-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-hint { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 auto 14px; padding: 8px 16px; border-radius: 999px; background: rgba(5, 8, 24, .8); border: 1px solid var(--border-strong); font-size: .85rem; color: var(--muted); }
.sky-hint .icon { color: var(--orange); }
.sky-tools { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sky { --sz: 92px; }
.sky-star { position: absolute; z-index: 2; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; }
.sky-star canvas { width: 100%; height: 100%; animation: twinkle var(--tw, 4s) ease-in-out infinite; animation-delay: var(--td, 0s); transition: transform .3s ease; pointer-events: none; }
.sky-star:hover canvas, .sky-star:focus-visible canvas { transform: scale(1.25); }
.sky-star .label { position: absolute; top: 100%; left: 50%; transform: translate(-50%, -6px); white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: rgba(5, 8, 24, .82); border: 1px solid var(--border-strong); padding: 4px 10px; border-radius: 6px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.sky-star:hover .label, .sky-star:focus-visible .label, .sky-star.is-selected .label { opacity: 1; transform: translate(-50%, 0); }
.sky-star.is-selected::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--orange); animation: ring 2.4s ease-in-out infinite; }
.sky-star.is-selected::after { content: ''; position: absolute; inset: -20px; border-radius: 50%; border: 1px dashed rgba(247, 166, 28, .4); animation: spin 18s linear infinite; }
.sky-star:focus-visible { outline: none; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .6; } }
.legend { display: flex; flex-direction: column; padding: 16px; }
.legend h3 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 4px 6px 10px; }
.legend button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--muted); font-size: .92rem; transition: background-color .2s, color .2s; }
.legend button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.legend button[aria-pressed="true"] { background: rgba(247, 166, 28, .12); color: var(--text); }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 10px var(--g); }
.legend .arch { margin-left: auto; font-size: .72rem; color: var(--dim); }

.star-detail { margin-top: 20px; display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; padding: 24px; }
.star-detail canvas { width: 140px; height: 140px; }
.star-detail h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; }
.star-detail .arch { display: block; font-family: var(--font-tagline); font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.star-detail p { color: var(--muted); margin-top: 10px; font-size: .95rem; max-width: 70ch; }
.star-detail .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.star-detail-empty { color: var(--muted); text-align: center; grid-template-columns: 1fr; padding: 28px; }
@media (max-width: 960px) {
  .sky-wrap { grid-template-columns: 1fr; }
  .legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
  .legend h3 { grid-column: 1 / -1; }
  .legend .arch { display: none; }
  .star-detail { grid-template-columns: 96px minmax(0, 1fr); }
  .star-detail canvas { width: 96px; height: 96px; }
  .star-detail .btn { grid-column: 1 / -1; }
}
/* Long chips (squad role, best match) wrap instead of stretching the card */
.star-detail .chip, .weapon-traits .chip { white-space: normal; text-align: left; }
@media (max-width: 600px) {
  .star-detail { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .star-detail canvas { width: 84px; height: 84px; justify-self: center; }
}
@media (max-width: 560px) {
  .sky { min-height: 440px; }
  .sky { --sz: 64px; }
  .sky-hint { font-size: .75rem; }
}

.name-step { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.name-card { padding: clamp(24px, 4vw, 40px); }
.name-card h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.05; }
.name-card .counter { text-align: right; font-size: .78rem; color: var(--dim); margin-top: -2px; }
.name-preview { display: grid; place-items: center; gap: 10px; text-align: center; }
.pv-stage { position: relative; width: min(360px, 86%); aspect-ratio: 1; }
.pv-stage canvas { width: 100%; height: 100%; }
.pv-stage img { position: absolute; left: 50%; bottom: 2%; width: 96%; transform: translateX(-50%); filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55)); animation: hover-y 5s ease-in-out infinite; }
@keyframes hover-y { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
.name-preview .pv-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase; color: var(--orange); min-height: 1.2em; word-break: break-word; }
@media (max-width: 860px) { .name-step { grid-template-columns: 1fr; } .name-preview { order: -1; } .pv-stage { width: 240px; } }

.result-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.result-card-img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: #070b26; transition: opacity .2s; }
.result-info .weapon-row dd { display: flex; gap: 14px; align-items: center; }
.result-info .weapon-row img { width: 120px; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.result-info .weapon-row b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.result-info .weapon-row small { display: block; margin-top: 4px; font-size: .88rem; }

/* Share & invite box (result step) */
.share-box { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); }
.share-box h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.share-link { display: flex; gap: 8px; }
.share-link .input { min-height: 44px; padding: 10px 12px; font-size: .82rem; color: var(--muted); min-width: 0; }
.share-link .btn { flex: none; }
.share-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); color: #fff; transition: border-color .2s, background-color .2s, transform .2s; }
.share-btn .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.share-btn:hover { border-color: var(--orange); background: rgba(247, 166, 28, .12); transform: translateY(-2px); }
.share-box .dim { font-size: .8rem; }
/* Banner shown when someone opens a friend's card link */
.invite-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(247, 166, 28, .16), rgba(75, 116, 255, .12)); border: 1px solid rgba(247, 166, 28, .45); }
.invite-banner > .icon { width: 28px; height: 28px; color: var(--orange); flex: none; margin-top: 2px; }
.invite-banner strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; text-transform: none; }
.invite-banner span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; }
.invite-banner .btn-row { margin-top: 12px; }

/* Step 2 — weapon hangar */
.picked { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 10px 12px 10px 14px; }
.picked canvas { width: 56px; height: 56px; flex: none; }
.picked small { display: block; font-family: var(--font-display); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.picked strong { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; margin-right: 8px; }
.picked span { color: var(--orange); font-size: .85rem; }
.picked .btn { margin-left: 10px; }
@media (max-width: 400px) { .picked { flex-wrap: wrap; justify-content: center; text-align: center; } .picked .btn { margin-left: 0; } }
.weapon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.weapon-card { position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.weapon-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--wc) 55%, transparent); }
.weapon-card[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 24px 60px -20px color-mix(in srgb, var(--wg) 80%, transparent); }
.weapon-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 16px 18px; overflow: hidden; background: radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--wg) 50%, transparent), transparent 72%), linear-gradient(180deg, #0e1546, #070a24); }
.weapon-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(circle at center, #000, transparent 75%); mask-image: radial-gradient(circle at center, #000, transparent 75%); }
.weapon-art img { position: relative; width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); transition: transform .45s ease; }
.weapon-card:hover .weapon-art img, .weapon-card[aria-pressed="true"] .weapon-art img { transform: scale(1.07) rotate(-2deg); }
.weapon-info { display: grid; gap: 6px; padding: 18px 20px 22px; }
.weapon-core { font-family: var(--font-tagline); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wc); }
.weapon-name { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.weapon-tag { color: var(--text); font-weight: 500; font-size: .95rem; }
.weapon-desc { color: var(--muted); font-size: .9rem; }
.weapon-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.weapon-check { position: absolute; top: 12px; right: 12px; z-index: 1; display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.weapon-card[aria-pressed="true"] .weapon-check { display: inline-flex; }
.loadout-bar { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px; border-radius: 16px; background: rgba(5, 8, 24, .96); border: 1px solid var(--border-strong); }
.loadout-pick { flex: 1; min-width: 0; text-align: center; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loadout-pick b { color: var(--text); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.loadout-pick .icon { color: var(--orange); margin-right: 6px; }
@media (max-width: 960px) {
  .weapon-grid { grid-template-columns: 1fr; gap: 12px; }
  .weapon-art { aspect-ratio: 2.2 / 1; }
  .weapon-info { padding: 14px 16px 18px; }
  .weapon-desc { font-size: .86rem; }
}
@media (max-width: 600px) {
  .loadout-pick { display: none; }
  .loadout-bar .btn-primary { flex: 1; }
  /* keep the action bar clear of the floating music button */
  body:has(.music) .loadout-bar { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
.format-toggle { display: inline-flex; padding: 4px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); margin-bottom: 14px; }
.format-toggle button { padding: 8px 16px; border-radius: 7px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.format-toggle button[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); }
.result-info .stack { --stack: 1.1rem; }
.result-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.result-info dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-family: var(--font-display); }
.result-info dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; }
.result-info .full { grid-column: 1 / -1; }
.result-info .full dd { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .result-step { grid-template-columns: 1fr; } .result-card-wrap { max-width: 440px; margin: 0 auto; width: 100%; } }

/* ==========================================================================
   COSWALK
   ========================================================================== */
.cos-hero { position: relative; overflow: hidden; }
.cos-hero .tagline-xl { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2)); top: 50%; text-align: right; font-size: clamp(1.5rem, 3vw, 2.6rem); }
.cos-hero .h1 span { display: block; color: var(--orange); }
@media (max-width: 1100px) { .cos-hero .tagline-xl { position: static; text-align: left; margin: 28px var(--gutter) 0; } }
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); }
.info-bar > div { display: flex; gap: 14px; align-items: center; padding: 22px; }
.info-bar > div + div { border-left: 1px solid var(--border); }
.info-bar .icon { width: 28px; height: 28px; color: var(--orange); flex: none; }
.info-bar strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
.info-bar span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .info-bar { grid-template-columns: 1fr 1fr; } .info-bar > div:nth-child(3) { border-left: 0; } .info-bar > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 480px) { .info-bar { grid-template-columns: 1fr; } .info-bar > div + div { border-left: 0; border-top: 1px solid var(--border); } }
.how-grid { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.how-step { padding: 26px 22px; position: relative; }
.how-step .num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--orange); line-height: 1; }
.how-step h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; margin-top: 14px; }
.how-step p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; } }

/* Cosplay Runway prize pool */
.prize-grid { grid-template-columns: repeat(4, 1fr); }
.prize { display: grid; gap: 6px; justify-items: start; padding: 24px 22px; }
.prize .icon { width: 28px; height: 28px; color: var(--orange); margin-bottom: 6px; }
.prize span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prize b { font-family: var(--font-display); font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.1; }
.prize--top { border-color: rgba(247, 166, 28, .55); background-image: linear-gradient(160deg, rgba(247, 166, 28, .18), transparent 65%); }
.prize--top b { color: var(--orange); }
@media (max-width: 900px) { .prize-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .prize-grid { grid-template-columns: 1fr; } .prize { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 16px 18px; } .prize .icon { grid-row: span 2; margin: 0; } }
.acc-item .acc-body ul.sub { margin-top: 8px; }
@media (max-width: 480px) { .how-grid { grid-template-columns: 1fr; } }
.cos-cta { text-align: center; padding: clamp(32px, 5vw, 56px); }
.cos-band.cos-cta .stack { --stack: 1rem; justify-items: center; display: grid; max-width: 680px; margin-inline: auto; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-solid); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); overflow: auto; }
.modal::backdrop { background: rgba(3, 5, 18, .75); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(5, 8, 24, .6); border: 1px solid var(--border-strong); z-index: 2; }
.modal .activity-art { aspect-ratio: 16 / 8; }
.modal-body { padding: 24px 26px 28px; }
.modal-body .stack { --stack: .9rem; }
.modal-body h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; }
.modal-body p { color: var(--muted); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   TOAST / MUSIC / DEMO
   ========================================================================== */
.toast-wrap { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: .92rem; animation: toast-in .3s ease; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast--error { border-color: rgba(255, 92, 122, .6); }
.toast--success { border-color: rgba(47, 217, 140, .6); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
/* Music: round note button; a "now playing" ticker slides out to its left while playing */
.music { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; padding: 0; text-align: left; }
.music-icon { position: relative; z-index: 1; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 52, .96); border: 1px solid var(--border-strong); color: var(--orange); box-shadow: var(--shadow); transition: background-color .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s; }
.music-icon .icon { width: 24px; height: 24px; }
.music:hover .music-icon { transform: scale(1.06); }
.music.is-playing .music-icon { background: var(--orange); border-color: var(--orange); color: var(--on-orange); box-shadow: var(--glow-orange); }
.music.is-playing .music-icon .icon { animation: note-bob 1.6s ease-in-out infinite; }
@keyframes note-bob { 0%, 100% { transform: translateY(1px) rotate(-8deg); } 50% { transform: translateY(-2px) rotate(8deg); } }
.music-ticker { display: flex; align-items: center; height: 40px; width: 0; margin-right: -22px; padding-right: 22px; overflow: hidden; opacity: 0; border-radius: 999px 0 0 999px; background: rgba(10, 16, 52, .96); border: 1px solid var(--border-strong); border-right: 0; transition: width .5s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.music.is-playing .music-ticker { width: 250px; opacity: 1; }
.music-mask { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 10px), transparent); }
.music-track { display: flex; width: max-content; animation: marquee 16s linear infinite; }
.music-track > span { white-space: nowrap; padding: 0 34px 0 16px; font-size: .8rem; font-weight: 500; color: var(--text); }
.music-track b { margin-right: 8px; font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
/* With the hamburger menu (tablets/phones) the music button sits in the header next to it,
   so it never covers page buttons */
@media (max-width: 1100px) {
  .music { top: calc(env(safe-area-inset-top, 0px) + (var(--header-h) - 44px) / 2); bottom: auto; right: calc(var(--gutter) + 44px + 10px); }
  .music-icon { width: 44px; height: 44px; box-shadow: none; }
  .music-icon .icon { width: 20px; height: 20px; }
  .music-ticker { height: 36px; }
}
/* Phones: the ticker only slides out briefly when a song starts, then collapses to the icon so it never covers buttons */
@media (max-width: 560px) {
  .music.is-playing .music-ticker { width: 0; opacity: 0; }
  .music.is-playing.show-ticker .music-ticker { width: 190px; opacity: 1; }
}
.demo-banner { position: relative; z-index: 1; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.lost img { width: min(300px, 70%); margin: 0 auto 24px; animation: float 6s ease-in-out infinite; }

/* ==========================================================================
   STAFF CHECK-IN
   ========================================================================== */
.staff body, body.staff { background: var(--bg); }
.staff-shell { min-height: 100vh; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); max-width: 760px; margin: 0 auto; }
.staff-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.staff-top img { height: 44px; width: auto; }
.staff-top .station { font-size: .8rem; color: var(--muted); text-align: right; white-space: nowrap; }
.staff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 400px) { .staff-stats .card { padding: 12px 6px; } .staff-stats span { display: block; letter-spacing: .02em; font-size: .56rem; overflow-wrap: anywhere; } }
.staff-stats .card { padding: 14px; text-align: center; }
.staff-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.staff-stats span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); margin-bottom: 16px; }
.tabs button { padding: 12px; border-radius: 9px; font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.tabs button[aria-selected="true"] { background: var(--orange); color: var(--on-orange); }
.scanner { position: relative; aspect-ratio: 1; max-height: 70vh; width: 100%; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--border-strong); }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; inset: 14%; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); pointer-events: none; }
.scanner-frame::before { content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 3px; background: linear-gradient(var(--orange), var(--orange)) top left / 40px 3px no-repeat, linear-gradient(var(--orange), var(--orange)) top left / 3px 40px no-repeat, linear-gradient(var(--orange), var(--orange)) top right / 40px 3px no-repeat, linear-gradient(var(--orange), var(--orange)) top right / 3px 40px no-repeat, linear-gradient(var(--orange), var(--orange)) bottom left / 40px 3px no-repeat, linear-gradient(var(--orange), var(--orange)) bottom left / 3px 40px no-repeat, linear-gradient(var(--orange), var(--orange)) bottom right / 40px 3px no-repeat, linear-gradient(var(--orange), var(--orange)) bottom right / 3px 40px no-repeat; }
.scanner-line { position: absolute; left: 16%; right: 16%; height: 2px; top: 16%; background: var(--orange); box-shadow: 0 0 16px var(--orange); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 50% { top: 84%; } }
.scanner-idle { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px; color: var(--muted); background: radial-gradient(circle, rgba(75, 116, 255, .15), transparent 70%), #050818; }
.scanner-idle .icon { width: 56px; height: 56px; color: var(--orange); margin: 0 auto; }
.scanner-tools { display: flex; gap: 10px; margin-top: 12px; }
.scanner-tools .btn { flex: 1; }
.scan-result { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; text-align: center; animation: toast-in .2s ease; }
.scan-result.ok { background: rgba(8, 64, 40, .97); }
.scan-result.warn { background: rgba(92, 62, 6, .97); }
.scan-result.err { background: rgba(92, 14, 30, .97); }
.scan-result .res-icon { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.scan-result .res-icon .icon { width: 60px; height: 60px; stroke-width: 2.4; }
.scan-result h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.8rem); text-transform: uppercase; line-height: 1; }
.scan-result .res-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 6vw, 2.2rem); margin-top: 16px; text-transform: uppercase; word-break: break-word; }
.scan-result .res-sub { margin-top: 10px; color: rgba(255, 255, 255, .8); }
.scan-result .res-extra { margin-top: 16px; display: grid; gap: 4px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.scan-result .btn-row { justify-content: center; margin-top: 28px; }
.scan-result .res-merchzone { margin-top: 14px; display: grid; gap: 10px; justify-items: center; }
.scan-result .res-ref { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1rem; }
.scan-result .res-ref b { font-family: var(--font-display); letter-spacing: .06em; }
.scan-result .res-merch { font-weight: 600; color: #fff; }
.scan-result .res-merch.is-claimed { color: #ffe08a; }
.result-row .row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.result-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.result-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.result-row .who { flex: 1; min-width: 0; }
.result-row strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row small { color: var(--dim); font-size: .8rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .result-row { flex-wrap: wrap; } .result-row .who { flex-basis: 100%; } .result-row .row-actions { justify-content: flex-start; } }
/* Short links admin (shortlink.html) */
.short-result { display: grid; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid rgba(47, 217, 140, .45); background: rgba(47, 217, 140, .08); }
.short-result .short-url { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .02em; color: var(--text); word-break: break-all; }
.short-result small { word-break: break-all; }
.short-result .icon, .link-row small .icon { width: 14px; height: 14px; vertical-align: -2px; }
.links-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.links-head .input { width: auto; flex: 0 1 240px; min-height: 44px; padding: 10px 14px; }
.link-row strong { text-transform: none; letter-spacing: .01em; }
.link-row strong a { color: var(--orange); }
.link-row .clicks { flex: none; min-width: 52px; text-align: center; }
.link-row .clicks b { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.link-row .clicks span { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.btn.icon-only { flex: none; width: 40px; padding: 0; }
.create-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (max-width: 420px) { .create-actions { grid-template-columns: 1fr; } }
.qr-dialog { width: min(92vw, 420px); max-height: 94vh; overflow: auto; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-solid); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.qr-dialog::backdrop { background: rgba(3, 6, 20, .78); backdrop-filter: blur(4px); }
.qr-body { display: grid; gap: 14px; justify-items: center; padding: 24px 22px 22px; text-align: center; }
.qr-body canvas { display: block; width: min(76vw, 300px); height: auto; aspect-ratio: 1; border-radius: 12px; background: #fff; }
.qr-link { max-width: 100%; font-size: .85rem; color: var(--muted); word-break: break-all; }
.qr-note { font-size: .78rem; color: var(--amber); }
.qr-logo-opt { justify-content: center; align-items: center; font-size: .9rem; color: var(--text); }
.qr-logo-opt input { margin-top: 0; }
@media (max-width: 480px) { .link-row { flex-wrap: wrap; } .link-row .who { flex-basis: 100%; } .link-row .clicks { margin-right: auto; text-align: left; } }

.recent { margin-top: 22px; }
.recent h3 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.recent li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.recent li .t { color: var(--dim); font-variant-numeric: tabular-nums; }
.recent li .s-ok { color: var(--green); } .recent li .s-warn { color: var(--amber); } .recent li .s-err { color: var(--red); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
