/* ==========================================================================
   Velvet Arcade — velvet.css v1.0
   Hand-rolled stylesheet, organised with native cascade layers.
   Layers: reset → base → layout → components → overlays → responsive
   ========================================================================== */

@layer reset, base, layout, components, overlays, responsive;

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #0a0e1a;              /* page background          */
  --panel: #0e1220;            /* header / footer surface  */
  --stage: #0d1722;            /* hero band background     */
  --tile: #181f31;             /* card surface             */
  --tile-deep: #141a2b;        /* faq card surface         */
  --seam: #232a3f;             /* borders                  */
  --accent: #4a3cff;           /* brand primary            */
  --accent-strong: #3a2fe0;    /* primary hover            */
  --accent-soft: #8b83ff;      /* eyebrows / small accents */
  --lavender: #c2bdff;         /* nav links                */
  --paper: #ffffff;
  --fog: #c7c7c7;              /* muted text               */
  --gold: #ffb800;             /* rating stars             */
  --shell-max: 1640px;
  --shell-pad: clamp(1rem, 4vw, 154px);
  --r-tile: 16px;
  --r-stage: 32px;
  --font-stack: 'Syne', ui-sans-serif, system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  img, svg, video, picture { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; padding: 0; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  input, select, textarea { font: inherit; }
  h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
@layer base {
  body {
    font-family: var(--font-stack);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--accent); color: var(--paper);
    padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
  }
  .skip-link:focus { left: 0; }
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
@layer layout {
  .shell {
    width: 100%;
    max-width: var(--shell-max);
    margin-inline: auto;
    padding-inline: var(--shell-pad);
  }
  .band { padding-block: clamp(3rem, 6vw, 5rem); }
  .band-intro { margin-bottom: 2.5rem; }
  .band-intro .kicker {
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent-soft); margin-bottom: .75rem;
  }
  .band-intro .headline { font-size: clamp(1.75rem, 3vw, 2.25rem); }
  .band-outro { margin-top: 2.5rem; display: flex; justify-content: center; }
  .prose { max-width: 1200px; margin-inline: auto; color: var(--fog); }
  .prose p { margin-bottom: 1.25rem; }
  .prose h2, .prose h3 { color: var(--paper); margin: 2rem 0 1rem; }
  .prose a { color: var(--lavender); text-decoration: underline; }
  .prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.25rem; }
  .prose li { margin-bottom: .5rem; }
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
@layer components {

  /* Buttons ---------------------------------------------------------------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--accent); color: var(--paper);
    font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    padding: 16px 32px; border-radius: 999px; line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
  }
  .btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
  .btn > svg { width: 16px; height: 10px; }
  .btn.is-wide { width: 100%; }
  .btn.is-ghost {
    background: transparent; border: 1px solid rgba(255,255,255,.4);
  }
  .btn.is-ghost:hover { border-color: var(--accent); background: rgba(74,60,255,.08); }
  .btn.is-compact { padding: 10px 22px; font-size: .8rem; letter-spacing: .5px; }

  /* Notice ribbon ---------------------------------------------------------- */
  .notice-ribbon {
    background: var(--accent); color: var(--paper);
    text-align: center; text-transform: uppercase;
    font-size: .75rem; font-weight: 700; letter-spacing: 1.2px;
    line-height: 1; padding: 8px 12px;
  }

  /* Header ----------------------------------------------------------------- */
  .site-header { background: var(--panel); }
  .site-header .shell {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding-block: 20px;
  }
  .brand { display: inline-flex; align-items: center; }
  .brand img, .brand svg { max-height: 51px; width: auto; }

  .nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
  .nav-burger i {
    width: 26px; height: 2px; background: var(--paper); border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav ul { display: flex; align-items: center; gap: 1.5rem; }
  .site-nav ul a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 4px; font-size: .875rem; font-weight: 700;
    text-transform: uppercase; color: var(--lavender);
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
  }
  .site-nav ul a::after {
    content: "";
    width: 8px; height: 8px; opacity: .8;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8' fill='none'%3E%3Cpath d='M1 1l6 6M7 1v6H1' stroke='%23c2bdff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .site-nav ul a:hover,
  .site-nav ul a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--paper); }
  .nav-dismiss { display: none; }

  /* Auth cluster in header */
  .auth-cluster { display: flex; align-items: center; gap: .75rem; }
  .auth-cluster .btn { font-size: .8rem; padding: 12px 22px; letter-spacing: 1px; }
  .member-chip {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.06); border: 1px solid var(--seam);
    padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  }
  .member-chip b { color: var(--accent-soft); font-weight: 800; }

  /* Hero stage ------------------------------------------------------------- */
  .stage { background: var(--stage); padding-block: clamp(2rem, 5vw, 4rem); }
  .stage-panel {
    position: relative; overflow: hidden;
    border: 4px solid var(--tile); border-radius: var(--r-stage);
    padding: clamp(2rem, 5vw, 4rem);
    min-height: 420px; display: flex; align-items: flex-end;
    background:
      radial-gradient(120% 140% at 80% 20%, rgba(74,60,255,.35), transparent 55%),
      linear-gradient(115deg, #1a1140 0%, #241452 40%, #3a1d63 100%);
  }
  .stage-panel > img.backdrop {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top; z-index: 0; pointer-events: none;
  }
  .stage-panel::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(13,23,34,.85) 0%, rgba(13,23,34,.35) 45%, transparent 70%);
  }
  .stage-copy {
    position: relative; z-index: 2; max-width: 620px;
    display: flex; flex-direction: column; gap: 1.5rem;
  }
  .stage-copy .overline { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 400; }
  .stage-copy h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase; line-height: 1;
  }
  .stage-copy .standfirst {
    font-size: clamp(1rem, 1.4vw, 1.25rem); max-width: 585px; color: #e7e7ff;
  }
  .stage-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
  .stage-marks { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: .5rem; }
  .stage-marks span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
  .stage-marks img { width: 27px; height: 27px; object-fit: contain; }

  /* Game tiles ------------------------------------------------------------- */
  .tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .game-tile {
    background: var(--tile); border-radius: var(--r-tile);
    padding: 16px; display: flex; flex-direction: column; gap: 16px;
  }
  .game-tile .cover {
    display: block; width: 100%; padding: 0;
    border-radius: var(--r-tile); overflow: hidden;
  }
  .game-tile .cover img {
    width: 100%; border-radius: var(--r-tile); object-fit: cover;
    background: linear-gradient(135deg, #2a1a4a, #4a2a6a);
    transition: transform .3s ease;
  }
  .game-tile .cover:hover img { transform: scale(1.04); }
  .game-tile h3 { font-size: 1.5rem; font-weight: 400; }
  .game-tile .blurb { color: var(--fog); font-size: .92rem; }
  .rating-row { display: flex; align-items: center; gap: 8px; }
  .stars { display: inline-flex; }
  .stars svg { width: 22px; height: 22px; }
  .stars .lit path { fill: var(--gold); }
  .stars .dim path { fill: #3a4055; }
  .likes { margin-left: auto; color: var(--fog); font-weight: 600; font-size: 1rem; }
  .game-tile .launch {
    width: 100%; background: var(--accent); color: var(--paper);
    font-weight: 500; font-size: 1.125rem; text-align: center;
    padding: 16px 32px; border-radius: 999px;
    transition: background-color .2s ease;
    margin-top: auto;
  }
  .game-tile .launch:hover { background: var(--accent-strong); }

  /* Feature banner ---------------------------------------------------------- */
  .marquee { padding-block: clamp(2rem, 4vw, 3rem); }
  .marquee-panel {
    position: relative; overflow: hidden; border-radius: 30px;
    min-height: 460px; display: grid; place-items: center;
    text-align: center; padding: clamp(2rem, 5vw, 4rem);
    background:
      radial-gradient(90% 120% at 20% 30%, rgba(74,60,255,.45), transparent 60%),
      radial-gradient(90% 120% at 85% 70%, rgba(215,120,60,.35), transparent 60%),
      linear-gradient(120deg, #1a1140 0%, #2c1656 50%, #3a1d63 100%);
  }
  .marquee-panel > img.backdrop {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top; z-index: 0;
  }
  .marquee-copy {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
    background: rgba(22,31,51,.15);
    padding: 24px 32px; border-radius: var(--r-tile);
  }
  .marquee-copy .top-line { display: block; font-size: clamp(2.25rem, 5vw, 4.125rem); line-height: 1.05; }
  .marquee-copy .big-line { display: block; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }
  .marquee-copy .sub { font-size: clamp(1.1rem, 1.6vw, 1.5rem); max-width: 586px; color: #eef; }

  /* How it works ------------------------------------------------------------ */
  .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step-card {
    background: var(--tile); border-radius: var(--r-tile);
    padding: 2rem; position: relative;
  }
  .step-card .step-no {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 999px;
    background: rgba(74,60,255,.18); color: var(--accent-soft);
    font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
  }
  .step-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
  .step-card p { color: var(--fog); font-size: .95rem; }

  /* Leaderboard ------------------------------------------------------------- */
  .ranks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  .ranks-grid > * { min-width: 0; }
  .rank-panel { background: var(--tile); border-radius: var(--r-tile); padding: clamp(1.5rem, 3vw, 2.5rem); }
  .rank-panel h3 { font-size: 1.5rem; margin-bottom: .5rem; }
  .rank-panel .lede { color: var(--fog); margin-bottom: 1.5rem; max-width: 640px; }
  .rank-sheet { width: 100%; }
  .rank-sheet .row {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center; gap: 8px; padding: 14px 16px;
    border-bottom: 1px solid var(--seam);
  }
  .rank-sheet .row:last-child { border-bottom: 0; }
  .rank-sheet .row.head {
    color: var(--fog); font-size: .9rem; padding: 12px 16px;
    background: rgba(255,255,255,.04); border-radius: 10px; border-bottom: 0;
  }
  .rank-sheet .who { display: flex; align-items: center; gap: 12px; font-weight: 600; }
  .rank-sheet .who img {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    object-fit: cover; background: linear-gradient(135deg, var(--accent), #8b5cff);
  }
  .podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
  .podium-slot {
    flex: 1; text-align: center; position: relative;
    background: linear-gradient(180deg, rgba(74,60,255,.18), rgba(20,26,43,.9));
    border: 1px solid var(--seam); border-radius: var(--r-tile);
    padding: 1.5rem 1rem;
  }
  .podium-slot.first { padding-top: 2.5rem; }
  .podium-slot .place { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
  .podium-slot img {
    width: 72px; height: 72px; border-radius: 999px; margin: .75rem auto;
    object-fit: cover; background: linear-gradient(135deg, var(--accent), #8b5cff);
  }
  .podium-slot .region { color: var(--fog); font-size: .85rem; }
  .podium-slot .name { font-weight: 700; margin-top: .5rem; }
  .podium-slot .score { color: var(--fog); font-size: .9rem; }
  .podium-slot .flag {
    margin-top: 1rem; display: inline-block; font-size: .75rem;
    background: rgba(255,255,255,.06); padding: 6px 14px; border-radius: 999px;
  }

  /* Testimonials ------------------------------------------------------------ */
  .voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .voice-card {
    background: var(--tile); border-radius: var(--r-tile);
    padding: 32px; display: flex; flex-direction: column; gap: 1rem;
  }
  .voice-card h3 { font-size: 1.25rem; }
  .voice-card blockquote { color: var(--fog); }
  .voice-card footer { display: flex; align-items: center; gap: 16px; margin-top: auto; }
  .voice-card footer img {
    width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0;
    object-fit: cover; background: linear-gradient(135deg, var(--accent), #8b5cff);
  }
  .voice-card footer .v-name { font-weight: 700; }
  .voice-card footer .v-role { color: var(--fog); font-size: .9rem; }

  /* Stat trio --------------------------------------------------------------- */
  .stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
  .stat-cell { background: var(--tile); border-radius: var(--r-tile); padding: 1.5rem; text-align: center; }
  .stat-cell .figure { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
  .stat-cell .caption { color: var(--fog); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin-top: .25rem; }

  /* FAQ --------------------------------------------------------------------- */
  .faq-stack { display: flex; flex-direction: column; gap: 12px; }
  .faq-card {
    background: var(--tile-deep); border: 1px solid var(--seam);
    border-radius: var(--r-tile); overflow: hidden;
  }
  .faq-card > button {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; text-align: left; padding: 22px 24px;
    font-weight: 600; font-size: 1rem; color: var(--paper);
  }
  .faq-card .tick {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px;
    background: rgba(255,255,255,.06); display: grid; place-items: center;
    transition: transform .25s ease, background-color .25s ease;
  }
  .faq-card .tick::before { content: "+"; font-size: 1.1rem; line-height: 1; }
  .faq-card.open .tick { background: var(--accent); transform: rotate(45deg); }
  .faq-card .drawer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .faq-card .drawer-pad { padding: 0 24px 22px; color: var(--fog); }

  /* Forms ------------------------------------------------------------------- */
  .form-shell { max-width: 544px; margin-inline: auto; }
  .form-title { text-align: center; font-size: clamp(2rem, 4vw, 3.125rem); margin-bottom: 2.5rem; }
  .stacked-form { display: flex; flex-direction: column; gap: 1.5rem; }
  .duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field { display: flex; flex-direction: column; gap: 8px; }
  .field label { font-size: .9rem; font-weight: 600; }
  .field input, .field textarea {
    background: var(--paper); color: #111;
    border: 1px solid #d0d5dd; border-radius: 8px;
    padding: 12px 16px; width: 100%;
  }
  .field input::placeholder, .field textarea::placeholder { color: #8a8f98; }
  .field textarea { min-height: 128px; resize: vertical; }
  .field .hint { font-size: .8rem; color: var(--fog); }
  .consent-line { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--fog); }
  .consent-line input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
  .consent-line a { color: var(--lavender); text-decoration: underline; }
  .form-callout {
    display: none; text-align: center;
    background: var(--tile); border: 1px solid var(--seam);
    border-radius: var(--r-tile); padding: 3rem 2rem;
  }
  .form-callout.show { display: block; }
  .form-callout h3 { font-size: 1.75rem; margin-bottom: .5rem; }
  .form-callout p { color: var(--fog); }
  .form-error {
    display: none; background: rgba(255,80,80,.1);
    border: 1px solid rgba(255,80,80,.4); color: #ffb4b4;
    border-radius: 10px; padding: 12px 16px; font-size: .9rem;
  }
  .form-error.show { display: block; }
  .form-aside { text-align: center; color: var(--fog); font-size: .95rem; margin-top: 1.5rem; }
  .form-aside a { color: var(--lavender); text-decoration: underline; }

  /* Footer ------------------------------------------------------------------ */
  .site-footer { background: var(--panel); padding-block: 3rem; text-align: center; }
  .site-footer .brand { display: inline-flex; margin-bottom: 1.5rem; }
  .site-footer .brand img { max-height: 96px; width: auto; }
  .footer-links ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1rem 1.5rem; margin-bottom: 1.5rem;
  }
  .footer-links a { color: var(--paper); transition: color .2s ease; }
  .footer-links a:hover { color: var(--lavender); }
  .footer-smallprint { color: var(--fog); font-size: .85rem; max-width: 900px; margin: 0 auto 1.25rem; }
  .footer-smallprint p { margin-bottom: .5rem; }
  .footer-marks {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 1rem; margin-bottom: 1.25rem;
  }
  .footer-marks img { max-height: 26px; width: auto; }
  .footer-marks a img { transition: opacity .2s ease; }
  .footer-marks a:hover img { opacity: .8; }
  .copyright { color: var(--fog); font-size: .8rem; }
}

/* --------------------------------------------------------------------------
   Overlays: game dialog, cookie bar, toast
   -------------------------------------------------------------------------- */
@layer overlays {
  dialog.play-window {
    width: min(1200px, calc(100vw - 2rem));
    background: var(--tile); border: 0; border-radius: var(--r-tile);
    padding: 0; overflow: hidden; color: var(--paper);
  }
  dialog.play-window::backdrop { background: rgba(5,7,14,.85); }
  .play-window .dismiss {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(0,0,0,.5); color: #fff; font-size: 1.5rem; line-height: 1;
    display: grid; place-items: center;
  }
  .play-window iframe { width: 100%; height: 85vh; max-height: 920px; border: 0; display: block; }
  body.frozen { overflow: hidden; }

  .cookie-tray {
    display: none; position: fixed; inset: auto 0 0 0; z-index: 90;
    background: var(--tile); border-top: 1px solid var(--seam); padding: 16px 0;
  }
  .cookie-tray.show { display: block; }
  .cookie-tray .shell {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  }
  .cookie-tray p { color: var(--fog); font-size: .9rem; margin: 0; }
  .cookie-tray a { color: var(--lavender); text-decoration: underline; }
  .cookie-tray .choices { display: flex; gap: .75rem; flex-shrink: 0; }

  .toast {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 120;
    background: var(--tile); border: 1px solid var(--seam);
    border-left: 4px solid var(--accent);
    border-radius: 12px; padding: 14px 20px;
    font-weight: 600; font-size: .95rem;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@layer responsive {
  @media (max-width: 1100px) {
    .tile-grid { grid-template-columns: repeat(3, 1fr); }
    .ranks-grid, .voices-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 860px) {
    .nav-burger { display: flex; }
    .site-nav {
      position: fixed; inset: 0 0 0 auto; z-index: 60;
      width: min(320px, 80vw);
      background: var(--panel);
      transform: translateX(100%);
      transition: transform .3s ease;
      padding: 5rem 1.5rem 2rem;
      box-shadow: -20px 0 60px rgba(0,0,0,.5);
      flex-direction: column; align-items: flex-start; gap: 1.5rem;
    }
    body.nav-open .site-nav { transform: translateX(0); }
    body.nav-still .site-nav { transition: none !important; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: .5rem; width: 100%; }
    .site-nav ul a { width: 100%; font-size: 1rem; }
    .nav-dismiss {
      display: grid; place-items: center;
      position: absolute; top: 1rem; right: 1.25rem;
      width: 40px; height: 40px; border-radius: 999px;
      background: rgba(255,255,255,.08); font-size: 1.75rem; line-height: 1;
    }
    .auth-cluster { flex-direction: column; align-items: stretch; width: 100%; }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-trio { grid-template-columns: 1fr; }
    .podium { flex-wrap: wrap; }
  }

  @media (max-width: 640px) {
    .cookie-tray .shell { flex-direction: column; align-items: stretch; text-align: center; gap: 1rem; }
    .cookie-tray .choices { justify-content: center; }
  }

  @media (max-width: 560px) {
    .notice-ribbon { font-size: 10px; }
    .marquee-copy { padding: 0; }
    dialog.play-window { width: calc(100vw - 1rem); }
    .play-window iframe { height: 88vh; }
    .rank-sheet { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
    .rank-sheet .row { min-width: 460px; }
    .tile-grid { grid-template-columns: 1fr; }
    .duo-row { grid-template-columns: 1fr; }
    .stage-marks { gap: .75rem 1rem; }
    .stage-marks span { font-size: .95rem; }
  }
}
