:root{
    --bg: #0b0c10;
    --bg-alt: #101319;
    --blue: #2f6bff;
    --blue-dark: #1b46c9;
    --slate: #1c2530;
    --text: #f2f3f5;
    --text-dim: #9aa0aa;
    --text-faint: #565c66;
    --line: #23262e;
    --blue-soft: rgba(47,107,255,0.16);
    --blue-text: #7aa2ff;          /* readable blue for text sitting on dark surfaces */
    --live: #ff3b3b;
    --live-soft: rgba(255,59,59,0.14);
    --slice-odd: #1f2e4f;          /* every other wheel slice */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    /* aliases: wheel.js / admin JS still reference these names inline */
    --border: var(--line);
    --void: #0b0c10;
  }
  *{ box-sizing:border-box; margin:0; padding:0; }
  html,body{ height:100%; }

  /* ---------- scrollbars ----------
     Slim, dark, rounded; thumb turns brand blue on hover. Element rules that
     hide scrollbars (carousel, nav) are more specific and still win. */
  :root{ color-scheme: dark; }
  *::-webkit-scrollbar{ width:12px; height:12px; }
  *::-webkit-scrollbar-track{ background:transparent; }
  html::-webkit-scrollbar-track{ background: var(--bg); border-left:1px solid var(--line); }
  *::-webkit-scrollbar-thumb{
    background:#2a3344; border-radius:999px;
    border:3px solid transparent; background-clip:padding-box;
    min-height:40px; min-width:40px;
  }
  *::-webkit-scrollbar-thumb:hover{ background: var(--blue); background-clip:padding-box; }
  *::-webkit-scrollbar-thumb:active{ background: var(--blue-dark); background-clip:padding-box; }
  *::-webkit-scrollbar-button{ display:none; width:0; height:0; }
  *::-webkit-scrollbar-corner{ background:transparent; }
  @supports (-moz-appearance:none){
    *{ scrollbar-width:thin; scrollbar-color:#2a3344 transparent; }
    html{ scrollbar-color:#2a3344 var(--bg); }
  }
  /* In-page anchor links (e.g. "Alle socials") glide instead of jumping.
     scroll-margin keeps the target clear of the sticky topbar. */
  html{ scroll-behavior:smooth; }
  [id]{ scroll-margin-top:80px; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
  }
  body{
    background: var(--bg);
    color: var(--text);
    font-family:'Inter', sans-serif;
    overflow-x:hidden;
    transition: background .25s ease, color .25s ease;
  }
  a{ color:inherit; }
  button{ font-family:'Inter', sans-serif; }

  /* ---------- topbar ---------- */
  .topbar{
    position: sticky; top:0; z-index: 40;
    display:flex; align-items:center; justify-content:space-between;
    padding: 20px 40px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    background: var(--bg);
    border-bottom: 1px solid transparent;
  }
  .logo{ display:flex; align-items:center; cursor:pointer; text-decoration:none; }
  .logo svg{ width:32px; height:32px; display:block; }
  .topbar-right{ display:flex; align-items:center; gap:18px; }
  .nav-live{
    display:flex; align-items:center; gap:8px; text-decoration:none;
    color:var(--text); font-size:.85rem; font-weight:700;
  }

  .hamburger{
    width:40px; height:40px; background:none; border:none; cursor:pointer;
    display:flex; flex-direction:column; justify-content:center; gap:6px; align-items:flex-end;
  }
  .hamburger span{
    display:block; height:3px; background: var(--blue); border-radius:2px;
    transition: transform .25s ease, opacity .2s ease, width .2s ease;
  }
  .hamburger span:nth-child(1){ width: 26px; }
  .hamburger span:nth-child(2){ width: 26px; }
  .hamburger span:nth-child(3){ width: 26px; }
  .hamburger.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); width:26px; }
  .hamburger.open span:nth-child(2){ opacity:0; }
  .hamburger.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); width:26px; }

  /* ---------- nav overlay (closed by default) ---------- */
  .nav-overlay{
    position: fixed; inset:0; z-index: 50;
    pointer-events:none;
  }
  .nav-wedge{
    position:absolute; top:0; right:0; height:100%; width:38%;
    background: var(--blue);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.65,0,.35,1);
  }
  .nav-overlay.open{ pointer-events:auto; }
  .nav-overlay.open .nav-wedge{ transform: translateX(0); }

  .nav-scrim{
    position:absolute; inset:0; background: rgba(0,0,0,0.35);
    opacity:0; transition: opacity .3s ease; pointer-events:none;
  }
  .nav-overlay.open .nav-scrim{ opacity:1; pointer-events:auto; }

  .nav-links{
    position:absolute; top: calc(110px + env(safe-area-inset-top, 0px)); right: 70px; z-index:2;
    display:flex; flex-direction:column; gap:20px; text-align:right;
    max-height: calc(100vh - 130px); overflow-y:auto; scrollbar-width:none;
    opacity:0; transform: translateX(20px);
    transition: opacity .35s ease .1s, transform .35s ease .1s;
  }
  .nav-overlay.open .nav-links{ opacity:1; transform:none; }
  .nav-links a{
    color:#0b0c10; text-decoration:none; font-weight:700; font-size:1.4rem; letter-spacing:.5px;
    transition: opacity .15s ease;
  }
  .nav-links a:hover{ opacity:.6; }
  .nav-links .spacer{ height:10px; }

  .nav-group{ display:flex; flex-direction:column; align-items:flex-end; }
  .nav-group-toggle{
    display:flex; align-items:center; gap:8px; justify-content:flex-end;
    background:none; border:none; cursor:pointer; padding:0;
    color:#0b0c10; font-weight:700; font-size:1.4rem; letter-spacing:.5px;
    font-family:'Inter', sans-serif; transition: opacity .15s ease;
  }
  .nav-group-toggle:hover{ opacity:.6; }
  .nav-group-toggle svg{ width:18px; height:18px; transition: transform .25s ease; flex-shrink:0; }
  .nav-group-toggle[aria-expanded="true"] svg{ transform: rotate(180deg); }
  .nav-group-items{
    display:flex; flex-direction:column; align-items:flex-end; gap:12px;
    max-height:0; overflow:hidden; opacity:0;
    transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
  }
  .nav-group.open .nav-group-items{ max-height:320px; opacity:1; margin-top:12px; }
  .nav-group-items a, .nav-role{ font-size:1.1rem; font-weight:600; }
  .nav-role{
    display:inline-flex; align-items:center; gap:8px; justify-content:flex-end;
    background:none; border:none; padding:0; cursor:pointer; color:#0b0c10;
    font-family:'Inter', sans-serif; letter-spacing:.5px; transition: opacity .15s ease;
  }
  .nav-role[aria-disabled="true"]{ opacity:.5; cursor:not-allowed; }
  .nav-soon{
    font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.8px;
    background: rgba(11,12,16,0.16); border-radius:20px; padding:3px 8px;
  }

  .nav-close{
    position:absolute; top: calc(26px + env(safe-area-inset-top, 0px)); right:40px; z-index:3;
    background:none; border:none; width:30px; height:30px; cursor:pointer;
    opacity:0; transform: scale(.7); transition: opacity .3s ease .15s, transform .3s ease .15s;
  }
  .nav-overlay.open .nav-close{ opacity:1; transform:none; }
  .nav-close svg{ width:100%; height:100%; }
  .nav-close line{ stroke:#0b0c10; stroke-width:3; }

  @media (max-width: 760px){
    .nav-wedge{ width:100%; clip-path:none; }
    .nav-links{ right:40px; }
  }

  /* ---------- hero ---------- */
  .hero{
    position:relative; min-height: clamp(380px, 42vw, 640px);
    display:flex; align-items:center; overflow:hidden;
    background: #08090c;
  }
.hero-stripes{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(8,9,12,0.85) 0%, rgba(8,9,12,0.4) 45%, rgba(8,9,12,0.15) 100%),
    url('/assets/img/banners/upmush-banner.webp') center/cover no-repeat;
}
  .hero-glow{
    position:absolute; right:-5%; top:0; bottom:0; width:60%;
    background: radial-gradient(ellipse at 70% 55%, rgba(47,107,255,0.25), transparent 65%);
  }
  .hero-car{
    position:absolute; right:-2%; bottom:0; width:56%; max-width:760px;
    opacity:.95; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  }
  @media (max-width: 980px){ .hero-car{ display:none; } }

  .hero-content{
    position:relative; z-index:2; padding: 90px 6vw; max-width: 900px;
  }
  .hero h1{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size: clamp(2.4rem, 6vw, 4.8rem); line-height:1.02; letter-spacing:.5px;
    color:#fff; margin-bottom: 26px;
  }
  .hero h1 span{ color: var(--blue); }
  .hero .subtext{
    color:#c7c9cd; font-size:1.05rem; line-height:1.65; max-width:540px; margin-bottom:34px;
  }
  /* same banner as the homepage, just shorter - used at the top of every other page */
  .hero-page{ min-height: clamp(300px, 30vw, 400px); }
  .hero-page .hero-content{ padding: 64px 6vw; max-width: 900px; }
  .hero-page h1{ font-size: clamp(2.3rem, 5.5vw, 4rem); margin-bottom:0; text-shadow: 0 2px 18px rgba(8,9,12,0.85); }
  /* darker left side than the homepage so a short title stays readable over the logo in the banner */
  .hero-page .hero-stripes{
    background:
      linear-gradient(90deg, rgba(8,9,12,0.94) 0%, rgba(8,9,12,0.78) 38%, rgba(8,9,12,0.25) 75%, rgba(8,9,12,0.1) 100%),
      url('/assets/img/banners/upmush-banner.webp') center/cover no-repeat;
  }
  .hero-page h1 span{ color:#5b8cff; }

  /* ---------- responsive banners ----------
     desktop/laptop: upmush-banner.webp (wide, set above)
     tablet (641-1024px): upmush-banner-tablet.webp
     phone (<=640px): upmush-banner-phone.webp
     Text stays on top of the image at every size. */
  @media (min-width: 641px) and (max-width: 1024px){
    .hero{ min-height: clamp(480px, 62vw, 640px); }
    .hero-stripes{
      background:
        linear-gradient(90deg, rgba(8,9,12,0.88) 0%, rgba(8,9,12,0.55) 50%, rgba(8,9,12,0.2) 100%),
        url('/assets/img/banners/upmush-banner-tablet.webp') center/cover no-repeat;
    }
    .hero-page{ min-height: clamp(300px, 34vw, 400px); }
    .hero-page .hero-stripes{
      background:
        linear-gradient(90deg, rgba(8,9,12,0.94) 0%, rgba(8,9,12,0.78) 38%, rgba(8,9,12,0.25) 75%, rgba(8,9,12,0.1) 100%),
        url('/assets/img/banners/upmush-banner-tablet.webp') center/cover no-repeat;
    }
  }
  @media (max-width: 640px){
    .hero{ min-height: 640px; align-items:center; }
    .hero-stripes{
      background:
        linear-gradient(90deg, rgba(8,9,12,0.85) 0%, rgba(8,9,12,0.6) 55%, rgba(8,9,12,0.3) 100%),
        linear-gradient(180deg, rgba(8,9,12,0.15) 0%, rgba(8,9,12,0.35) 100%),
        url('/assets/img/banners/upmush-banner-phone.webp') center/cover no-repeat;
    }
    .hero-glow{ display:none; }
    .hero-content{ padding: 40px 6vw; }
    .hero-page{ min-height: 300px; align-items:center; }
    .hero-page .hero-content{ padding: 48px 6vw; }
    .hero-page .hero-stripes{
      background:
        linear-gradient(180deg, rgba(8,9,12,0.55) 0%, rgba(8,9,12,0.8) 100%),
        url('/assets/img/banners/upmush-banner-phone.webp') center 45%/cover no-repeat;
    }
  }
  .hero-kicker{
    display:block; color:#8fb0ff; font-weight:700; font-size:.82rem;
    text-transform:uppercase; letter-spacing:1.2px; margin-bottom:16px;
  }
  .btn-row{ display:flex; gap:16px; flex-wrap:wrap; }
  .cta{
    background: var(--blue); color:#fff; font-weight:700; font-size:.92rem;
    padding:15px 26px; border-radius:4px; border:none; cursor:pointer;
    transition: background .15s ease, transform .1s ease;
  }
  .cta:hover{ background: var(--blue-dark); }
  .cta:active{ transform: translateY(1px); }
  .cta.outline{
    background: transparent; color:#fff; border:1px solid rgba(255,255,255,0.35);
  }
  .cta.outline:hover{ border-color: var(--blue); color: var(--blue-text); background:transparent; }
  .cta.small{ padding:12px 20px; font-size:.85rem; }

  /* ---------- player / search bar ---------- */
  .pc-search{
    position:relative;
    display:flex; align-items:stretch;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
  }
  .pc-col, .search-col{
    flex:1; padding: 44px 6vw; display:flex; flex-direction:column; gap:20px;
    min-width: 280px;
  }
  .pc-col{ border-right: 1px solid var(--line); }
  .pc-search h2{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size:1.5rem; letter-spacing:.5px; color:var(--text);
  }
  .search-row{ display:flex; gap:10px; max-width:420px; }
  .search-row input{
    flex:1; min-width:0; background: var(--bg); border:1px solid var(--line); color:var(--text);
    padding:14px 16px; border-radius:4px; font-size:.9rem; font-family:'Inter',sans-serif;
  }
  .search-row input::placeholder{ color: var(--text-faint); }
  .search-row input:focus{ outline:none; border-color: var(--blue); }
  .search-row button{
    background: var(--blue); border:none; color:#fff; border-radius:4px; width:48px;
    flex:0 0 48px; min-width:48px;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    transition: background .15s ease;
  }
  .search-row button:hover{ background: var(--blue-dark); }
  .search-row svg{ width:18px; height:18px; }
  .search-msg{ font-size:.82rem; color: var(--text-dim); min-height: 18px; }

  @media (max-width: 760px){
    .search-row input{ font-size:16px; }   /* 16px stops iOS zooming in on focus */
    .pc-search{ flex-direction:column; }
    .pc-col{ border-right:none; border-bottom:1px solid var(--line); }
  }

  /* ---------- why join ---------- */
  .why-join{ background: var(--bg); padding: 90px 6vw 100px; }
  .section-head{ margin-bottom: 50px; }
  .section-head h2{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing:.5px; color: var(--text);
  }
  .section-head h2 span{ color: var(--blue); }
  .why-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px;
  }
  @media (max-width: 980px){ .why-grid{ grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px){ .why-grid{ grid-template-columns: 1fr; } }
  .why-card svg{ width:34px; height:34px; color: var(--blue); margin-bottom:18px; }
  .why-card h3{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size:1.15rem; letter-spacing:.3px; margin-bottom:12px; color: var(--text);
  }
  .why-card p{ color: var(--text-dim); font-size:.92rem; line-height:1.6; max-width: 320px; }
  .card-link{
    display:inline-block; margin-top:16px; color: var(--blue); font-weight:700;
    font-size:.85rem; text-decoration:none; letter-spacing:.2px; padding-bottom:2px;
    background:linear-gradient(currentColor, currentColor) left bottom / 0% 1.5px no-repeat;
    transition: color .2s ease, transform .35s cubic-bezier(.22,.61,.36,1), background-size .35s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
  }
  .card-link:hover{ text-decoration:none; background-size:100% 1.5px; }

  /* ---------- league / cup page hero ---------- */
  .league-hero{
    position:relative; overflow:hidden; background:#08090c;
    padding: 130px 6vw 90px;
  }
  .league-hero-inner{ position:relative; z-index:2; max-width: 760px; }
  .back-link{
    display:inline-flex; align-items:center; gap:8px; color:#c7c9cd; text-decoration:none;
    font-size:.85rem; font-weight:600; margin-bottom:26px; transition: color .15s ease;
  }
  .back-link:hover{ color: var(--blue); }
  .league-hero h1{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size: clamp(2.2rem, 5.5vw, 4rem); line-height:1.02; letter-spacing:.5px;
    color:#fff; margin-bottom: 20px;
  }
  .league-hero h1 span{ color: var(--blue); }
  .league-hero .subtext{
    color:#c7c9cd; font-size:1.05rem; line-height:1.65; max-width:600px; margin-bottom:30px;
  }
  .quick-facts{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:34px; }
  .quick-fact{
    background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
    border-radius:20px; padding:8px 16px; font-size:.82rem; color:#e5e6e9;
  }
  .quick-fact b{ color: var(--blue); font-weight:700; }

  .related-section{ background: var(--bg); padding: 90px 6vw 100px; }

  /* ---------- the season ---------- */
  .season-section{
    position:relative; background:#ffffff; color:#12141a;
    padding: 140px 6vw 150px; overflow:hidden; text-align:center;
  }
  .season-cut{
    position:absolute; left:0; width:100%; height:120px; background: var(--bg); z-index:1;
    transition: background .25s ease;
  }
  .season-cut.top{ top:0; clip-path: polygon(0 0,100% 0,100% 45%,75% 100%,50% 42%,25% 100%,0 45%); }
  .season-cut.bottom{ bottom:0; clip-path: polygon(0 100%,100% 100%,100% 55%,75% 0,50% 58%,25% 0,0 55%); }
  .season-content{ position:relative; z-index:2; max-width: 760px; margin: 0 auto; }
  .season-content h2{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing:.5px; margin-bottom:20px; color:#12141a;
  }
  .season-content > p{ color:#54575e; font-size:1.05rem; line-height:1.65; margin-bottom: 54px; }
  .season-schedule{
    font-family:'Anton', sans-serif; letter-spacing:.5px; color:#797c82;
    font-size:1rem; text-transform:uppercase;
  }

  /* ---------- testimonials ---------- */
  .testimonials{ padding: 70px 0 60px; background: var(--bg); overflow: hidden; }
  .t-heading{ padding: 0 6vw 34px; }
  .t-heading h2{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size: clamp(1.6rem,3vw,2.2rem); letter-spacing:.5px;
  }
  .t-heading span{ color: var(--blue); }
  .carousel-viewport{
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 6vw;
    padding-right: 160px; /* ~50% of one card's width, so the trailing space after the last card is a deliberate half-card peek, not a big empty gap */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: auto;
    width: 88%;
  }
  .carousel-viewport::-webkit-scrollbar{ display:none; }
  .carousel{
    display:flex; gap:16px;
  }
  .t-card{
    flex: 0 0 320px; width: 320px; max-width: 320px; min-height: 340px; padding: 30px 26px;
    display:flex; flex-direction:column; justify-content:space-between;
    scroll-snap-align: start;
  }
  .t-card p{ font-size:1rem; line-height:1.6; color:#fff; }
  .t-card.tone-a{ background: var(--blue); }
  .t-card.tone-b{ background: var(--slate); }
  .t-card.tone-b p{ color: var(--text); }
  .t-card .who{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    letter-spacing:.5px; font-size:1.05rem; color:#fff; margin-top:24px;
  }
  .t-card.tone-b .who{ color: var(--text); }

  .carousel-controls{ display:flex; gap:12px; padding: 26px 6vw 0; }
  .carousel-controls button{
    width:42px; height:42px; border-radius:50%; border:1px solid var(--line);
    background:transparent; color: var(--text-dim); cursor:pointer;
    display:flex; align-items:center; justify-content:center; font-size:1.2rem;
    transition: border-color .15s ease, color .15s ease;
  }
  .carousel-controls button:hover{ border-color: var(--blue); color: var(--blue); }
  .carousel-controls button:disabled{
    opacity:.35; cursor:not-allowed; border-color: var(--line); color: var(--text-faint);
  }
  .supporters-empty{ padding: 0 6vw; color: var(--text-faint); font-size:.9rem; }

  /* supporter cards reuse .t-card's size/background/scroll-snap, just with
     their own header (avatar + name) and link-styled CTA instead of a quote */
  .supporter-card{ text-decoration:none; transition: transform .15s ease; }
  .supporter-card:hover{ transform: translateY(-3px); }
  .supporter-card p{ flex:1; }
  .supporter-top{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
  .supporter-avatar{
    width:44px; height:44px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background: rgba(255,255,255,0.18); color:#fff;
    font-family:'Anton', sans-serif; font-weight:400; font-size:.95rem; letter-spacing:.5px;
  }
  .t-card.tone-b .supporter-avatar{ background: var(--blue-soft); color: var(--blue-text); }
  /* Twitch profile picture: sits over the initials (which stay as fallback) */
  .supporter-avatar{ position:relative; --ring-gap: var(--blue); }
  .t-card.tone-b .supporter-avatar{ --ring-gap: var(--slate); }
  .supporter-avatar-img{
    position:absolute; inset:0; width:100%; height:100%;
    border-radius:50%; object-fit:cover; display:block;
  }
  /* live: red circle around the profile picture (a small gap in the card's
     colour keeps it readable on both the blue and the dark cards) */
  .supporter-avatar.is-live{
    box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 5px var(--live);
    animation: supporter-live-pulse 2s ease-in-out infinite;
  }
  @keyframes supporter-live-pulse{
    0%, 100%{ box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 5px var(--live); }
    50%{ box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 5px var(--live), 0 0 12px 6px rgba(255,59,59,0.45); }
  }
  @media (prefers-reduced-motion: reduce){
    .supporter-avatar.is-live{ animation:none; }
  }
  /* not colour-only: screen readers get "Live", sighted users see the ring */
  .supporter-live-label{
    position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
    clip:rect(0,0,0,0); white-space:nowrap; border:0;
  }
  .supporter-name{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    letter-spacing:.4px; font-size:1.05rem; color:#fff;
  }
  .t-card.tone-b .supporter-name{ color: var(--text); }

  /* ---------- news ---------- */
  .news-section{ background: var(--bg); padding: 30px 6vw 110px; }
  .news-intro{ color: var(--text-dim); font-size:.98rem; line-height:1.6; max-width:640px; margin-bottom:44px; }
  .news-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  }
  @media (max-width: 900px){ .news-grid{ grid-template-columns: 1fr; } }
  .news-card{
    background: var(--bg-alt); border:1px solid var(--line); border-radius:6px;
    padding: 28px 26px;
  }
  .news-tag{
    display:inline-block; background: var(--blue); color:#0b0c10; font-weight:700;
    font-size:.72rem; text-transform:uppercase; letter-spacing:.5px;
    padding:5px 10px; border-radius:3px; margin-bottom:16px;
  }
  .news-card h3{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size:1.05rem; letter-spacing:.3px; margin-bottom:10px; color: var(--text);
  }
  .news-card p{ color: var(--text-dim); font-size:.9rem; line-height:1.6; }

  /* ---------- footer ---------- */
  .site-footer{
    position:relative; overflow:hidden;
    background: var(--blue); padding: 70px 6vw 40px; color:#0b0c10;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .footer-columns{
    display:flex; flex-wrap:wrap; gap:60px; position:relative; z-index:2; margin-bottom:50px;
  }
  .footer-col h3{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    letter-spacing:.5px; font-size:1rem; margin-bottom:18px;
  }
  .footer-col a{
    display:block; text-decoration:none; color:#161311; opacity:.85; font-size:.95rem;
    margin-bottom:12px; transition: opacity .15s ease;
  }
  .footer-col a:hover{ opacity:1; text-decoration:underline; }

  .footer-socials{
    display:flex; flex-wrap:wrap; gap:60px; position:relative; z-index:2;
  }
  .social-group h4{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    letter-spacing:.5px; font-size:.85rem; margin-bottom:14px;
  }
  .social-icons{ display:flex; gap:14px; }
  .social-icons a{
    width:30px; height:30px; display:flex; align-items:center; justify-content:center;
    color:#161311; transition: transform .15s ease;
  }
  .social-icons a:hover{ transform: translateY(-2px); }
  .social-icons svg{ width:20px; height:20px; }

  .footer-mushroom{
    position:absolute; right:14%; bottom:-16%; width:30%; max-width:380px;
    z-index:1; pointer-events:none; color: var(--blue);   /* spots are "cut out" in the footer blue */
    transform: rotate(-7deg); transform-origin: 50% 100%;
  }
  @media (max-width: 900px){ .footer-mushroom{ display:none; } }

  .footer-toggle-wrap{
    position:relative; z-index:2; margin-top:40px;
    display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  }
  .footer-copyright{
    font-size:.85rem; color:#161311; opacity:.75;
  }
  .scroll-top-btn{
    width:48px; height:48px; border-radius:50%; border:none; cursor:pointer;
    background: rgba(0,0,0,0.2); color:#fff;
    display:flex; align-items:center; justify-content:center;
    transition: background .15s ease, transform .15s ease;
  }
  .scroll-top-btn:hover{ background: rgba(0,0,0,0.35); transform: translateY(-3px); }
  .scroll-top-btn svg{ width:20px; height:20px; }

  /* ---------- PWA install (footer) ---------- */
  .pwa-install-btn{
    display:inline-flex; align-items:center; gap:8px; cursor:pointer; border:none;
    padding:9px 16px; border-radius:999px; font:inherit; font-size:.85rem; font-weight:700;
    background:#161311; color:#fff; transition: transform .15s ease, background .15s ease;
  }
  .pwa-install-btn:hover{ background:#000; transform: translateY(-2px); }
  .pwa-install-btn svg{ width:16px; height:16px; }
  .pwa-install-hint{ margin-top:10px; max-width:240px; font-size:.8rem; line-height:1.5; color:#161311; opacity:.85; }
  #pwaInstall[hidden], .pwa-install-hint[hidden]{ display:none; }

  /* ---------- teams & rankings ---------- */
  .teams-section{ background: var(--bg-alt); padding: 90px 6vw 100px; }
  .teams-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:24px; }
  .team-card{
    background: var(--bg); border:1px solid var(--line); border-radius:8px; padding:24px;
  }
  .team-card h3{
    font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
    font-size:1.1rem; letter-spacing:.3px; margin-bottom:16px; color: var(--text);
  }
  .team-roster{ list-style:none; display:flex; flex-direction:column; gap:10px; }
  .team-roster li{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    font-size:.92rem; color: var(--text-dim); border-bottom:1px solid var(--line); padding-bottom:8px;
  }
  .team-roster li:last-child{ border-bottom:none; padding-bottom:0; }
  .team-roster .player-name{ color: var(--text); font-weight:600; }
  .rank-badge{
    background: var(--slate); color: var(--blue); font-size:.78rem; font-weight:700;
    padding:4px 10px; border-radius:20px; white-space:nowrap;
  }
  .rank-icon{ width:26px; height:26px; object-fit:contain; flex-shrink:0; }
  .player-meta{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
  .meta-sep{ color: var(--text-dim); font-size:.85rem; }
  .player-flag{ width:22px; height:16px; border-radius:2px; object-fit:cover; flex-shrink:0; box-shadow:0 0 0 1px var(--line); }
  .teams-empty, .teams-loading, .teams-error{ color: var(--text-dim); font-size:.95rem; }

/* ============================================================
   Upmush-specific components (built on the same design tokens)
   ============================================================ */

/* ---------- topbar logo (image mark instead of svg wordmark) ---------- */
.logo img{ width:34px; height:34px; display:block; border-radius:8px; }

/* ---------- decorative grove banner ---------- */
.grove{ position:relative; overflow:hidden; background:#08090c; }
.grove img{ display:block; width:100%; height:auto; max-height:260px; object-fit:cover; opacity:.55; }
.grove::before,
.grove::after{
  content:""; position:absolute; left:0; right:0; height:36px; pointer-events:none; z-index:2;
}
.grove::before{ top:0; background: linear-gradient(180deg, #08090c 0%, rgba(8,9,12,0) 100%); }
.grove::after{ bottom:0; background: linear-gradient(0deg, #08090c 0%, rgba(8,9,12,0) 100%); }
.grove-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(90deg, rgba(8,9,12,0.9) 0%, rgba(8,9,12,0.55) 50%, rgba(8,9,12,0.9) 100%);
  padding: 0 6vw;
}
.grove-text{
  color:#fff; font-size:1.05rem; font-weight:600; text-align:center; max-width:640px; line-height:1.5;
}

/* ---------- shared kicker (small blue label above a heading) ---------- */
.kicker{
  display:block; color: var(--blue-text); font-weight:700; font-size:.8rem;
  text-transform:uppercase; letter-spacing:1px; margin-bottom:10px;
}

/* ---------- section wrapper used on inner pages ---------- */
.section{ background: var(--bg); padding: 10px 6vw 90px; }
.hero-page + .section{ padding-top: 56px; }
.band{ background: var(--bg-alt); border:1px solid var(--line); border-radius:8px; }
.panel-inner{ padding: 34px 30px; }

/* ---------- homepage stream dashboard ---------- */
.dashboard-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap:24px; }
@media (max-width: 900px){ .dashboard-grid{ grid-template-columns: 1fr; } }
.stream-panel .stream-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.stream-id{ display:flex; align-items:center; gap:14px; }
.stream-avatar-wrap{ width:52px; height:52px; border-radius:50%; overflow:hidden; background: var(--slate); flex-shrink:0; }
.stream-avatar-wrap img{ width:100%; height:100%; object-fit:cover; }
.stream-name{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
  letter-spacing:.4px; font-size:1.1rem; color: var(--text); margin-bottom:4px;
}
.status-pill{ display:inline-flex; align-items:center; gap:7px; font-size:.85rem; color: var(--text-dim); }
.status-dot{ width:9px; height:9px; border-radius:50%; background: var(--text-faint); }
.is-live .status-dot, .stream-panel.is-live .status-dot{ background:#ff3b3b; box-shadow:0 0 0 3px rgba(255,59,59,0.22); }
.nav-live.is-live .status-dot{ background:#ff3b3b; box-shadow:0 0 0 3px rgba(255,59,59,0.22); }
.stream-title{ color: var(--text-dim); font-size:.95rem; line-height:1.55; margin-bottom:26px; }
.stats-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
@media (max-width: 560px){ .stats-grid{ grid-template-columns: repeat(2, 1fr); } }
.stat-tile{
  background: var(--bg); border:1px solid var(--line); border-radius:6px; padding:16px 14px;
  display:flex; flex-direction:column; gap:4px;
}
.stat-value{
  font-family:'Anton', sans-serif; font-weight:400; font-size:1.3rem; color: var(--blue); letter-spacing:.3px;
}
.stat-value-text{ font-size:1rem; font-family:'Inter',sans-serif; font-weight:700; color: var(--text); text-transform:capitalize; }
.stat-label{ font-size:.75rem; color: var(--text-faint); text-transform:uppercase; letter-spacing:.5px; }

.schema-panel .schema-body{ display:flex; flex-direction:column; height:100%; padding: 34px 30px; }
.schema-heading{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
  letter-spacing:.3px; font-size:1.2rem; color: var(--text); margin: 6px 0 22px;
}
.schema-list{ list-style:none; display:flex; flex-direction:column; gap:12px; margin-bottom:22px; }
.schema-list li{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid var(--line); padding-bottom:11px; font-size:.9rem;
}
.schema-list li:last-child{ border-bottom:none; padding-bottom:0; }
.schema-day{ color: var(--text); font-weight:700; }
.schema-time{ color: var(--text-dim); font-variant-numeric: tabular-nums; }
.schema-notes{ margin-top:auto; display:flex; flex-direction:column; gap:6px; padding-top:18px; }
.schema-note{ color: var(--text-faint); font-size:.78rem; line-height:1.5; }

/* ---------- socials grid ---------- */
.socials-grid, .socials-grid.band{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:14px;
  background:none; border:none; border-radius:0; overflow:visible;
}
.social-card{
  display:flex; flex-direction:column; align-items:flex-start; gap:14px; padding:24px 22px;
  text-decoration:none; background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.social-card:hover{ border-color: var(--blue); transform: translateY(-2px); }
.social-icon{
  width:42px; height:42px; border-radius:50%; background: var(--blue); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.social-icon svg{ width:20px; height:20px; }
.social-body{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.social-name{ font-weight:700; color: var(--text); font-size:1rem; }
.social-desc{ color: var(--text-dim); font-size:.82rem; line-height:1.45; }
.social-handle{ color: var(--blue-text); font-size:.82rem; font-weight:700; margin-top:auto; white-space:nowrap; }

/* ---------- leaderboard / clips list panel ---------- */
.leaderboard-tabs{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.leaderboard-tab{
  background: var(--bg); border:1px solid var(--line); color: var(--text-dim);
  padding:9px 18px; border-radius:20px; font-size:.85rem; font-weight:700; cursor:pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.leaderboard-tab:hover{ border-color: var(--blue); color: var(--blue); }
.leaderboard-tab.is-active{ background: var(--blue); border-color: var(--blue); color:#fff; }
.leaderboard-list{ list-style:none; display:flex; flex-direction:column; }
.leaderboard-row{
  display:flex; align-items:center; gap:16px; padding:13px 4px; border-bottom:1px solid var(--line);
  font-size:.93rem; color: var(--text);
}
.leaderboard-row:last-child{ border-bottom:none; }
.leaderboard-rank{ width:28px; flex-shrink:0; font-family:'Anton', sans-serif; color: var(--blue); font-size:1rem; }
.leaderboard-name{ flex:1; font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.leaderboard-points{ font-weight:700; color: var(--text-dim); flex-shrink:0; }
.leaderboard-loading, .leaderboard-empty, .leaderboard-error{ color: var(--text-faint); padding:14px 4px; }

/* clickable leaderboard rows -> viewer page. The name link is stretched over
   the whole row so the entire row is one big click target. */
.leaderboard-row.is-link{ position:relative; transition: background .15s ease; }
.leaderboard-row.is-link:hover{ background: rgba(47,107,255,0.07); }
.leaderboard-row.is-link a.leaderboard-name{ color: inherit; text-decoration:none; }
.leaderboard-row.is-link a.leaderboard-name::after{ content:''; position:absolute; inset:0; }
.leaderboard-row.is-link:hover a.leaderboard-name{ color: var(--blue-text); }
.leaderboard-row.is-link a.leaderboard-name:focus-visible{ outline:none; }
.leaderboard-row.is-link:has(a:focus-visible){ outline:2px solid var(--blue-text); outline-offset:-2px; }
.leaderboard-search{ max-width:none; margin-bottom:22px; }

/* ---------- viewer page (viewer.html) ---------- */
.viewer-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom:26px;
}
.viewer-toolbar .search-row{ flex:1; min-width:240px; max-width:420px; }
.viewer-back{
  color: var(--text-dim); text-decoration:none; font-weight:700; font-size:.88rem;
  transition: color .15s ease;
}
.viewer-back:hover{ color: var(--blue-text); }
#viewerRoot{ display:flex; flex-direction:column; gap:22px; }
.viewer-head{ display:flex; align-items:center; gap:22px; padding:28px 30px; }
.viewer-avatar{
  position:relative; width:84px; height:84px; border-radius:50%; flex-shrink:0; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background: var(--blue-soft); color: var(--blue-text);
  font-family:'Anton', sans-serif; font-size:1.6rem; letter-spacing:.5px;
}
.viewer-avatar-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.viewer-head-text{ min-width:0; }
.viewer-name{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
  font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing:.5px; line-height:1.1;
  overflow-wrap:anywhere;
}
.viewer-meta{ color: var(--text-dim); font-size:.9rem; margin-top:8px; }
.viewer-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.viewer-chip{
  background: var(--blue-soft); color: var(--blue-text); border-radius:999px;
  padding:5px 12px; font-size:.78rem; font-weight:700;
}
.viewer-chip-sub{ background: var(--blue); color:#fff; }
.viewer-chip-muted{ background: var(--slate); color: var(--text-dim); }

.viewer-stats{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; }
.viewer-stat{
  background: var(--bg-alt); border:1px solid var(--line); border-radius:8px;
  padding:22px 22px 20px; display:flex; flex-direction:column; gap:6px; min-width:0;
}
.viewer-stat-label{
  font-size:.74rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color: var(--text-faint);
}
.viewer-stat-value{
  font-family:'Anton', sans-serif; font-weight:400; font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text); line-height:1.1; overflow-wrap:anywhere;
}
.viewer-stat-sub{ font-size:.82rem; color: var(--blue-text); font-weight:600; }

.viewer-grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:22px; }
.viewer-panel{ padding:26px 28px; }
.viewer-panel h3{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:.5px;
  font-size:1.15rem; margin-bottom:18px;
}
.viewer-panel h3 small{
  font-family:'Inter', sans-serif; font-size:.74rem; font-weight:600; letter-spacing:0;
  text-transform:none; color: var(--text-faint); margin-left:8px;
}
.viewer-rows{ list-style:none; display:flex; flex-direction:column; }
.viewer-row{
  display:flex; justify-content:space-between; gap:16px; padding:12px 2px;
  border-bottom:1px solid var(--line); font-size:.93rem; color: var(--text-dim);
}
.viewer-row:last-child{ border-bottom:none; }
.viewer-row strong{ color: var(--text); font-weight:700; text-align:right; }
.viewer-row .viewer-pos{ color:#4ade80; }
.viewer-row .viewer-neg{ color: var(--live); }

.viewer-bars{ display:flex; align-items:flex-end; gap:6px; height:150px; padding-top:8px; }
.viewer-bar{ flex:1; min-width:0; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:6px; }
.viewer-bar-fill{
  display:block; width:100%; max-width:28px; border-radius:3px 3px 0 0; background: var(--blue);
  min-height:0; transition: opacity .15s ease;
}
.viewer-bar:hover .viewer-bar-fill{ opacity:.8; }
.viewer-bar-label{ font-size:.68rem; color: var(--text-faint); height:14px; }
.viewer-months{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.viewer-months li{ display:grid; grid-template-columns: 78px 1fr 84px; align-items:center; gap:14px; font-size:.86rem; }
.viewer-month-name{ color: var(--text-dim); text-transform:capitalize; }
.viewer-month-track{ height:10px; background: var(--bg); border-radius:999px; overflow:hidden; }
.viewer-month-fill{ display:block; height:100%; background: var(--blue); border-radius:999px; }
.viewer-month-value{ text-align:right; font-weight:700; color: var(--text); }

/* attendance: summary rows next to a 60-day calendar */
.viewer-attendance{ display:flex; flex-wrap:wrap; gap:28px; align-items:flex-start; }
.viewer-attendance .viewer-rows{ flex:1 1 280px; min-width:240px; }
.viewer-attendance-cal{
  display:flex; flex-direction:column; gap:16px; flex:0 0 auto;
  background: var(--bg); border:1px solid var(--line); border-radius:10px;
  padding:18px 20px; max-width:100%;
}
.viewer-cal{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; overflow-x:auto; padding-bottom:4px; }
.viewer-cal-labels{ display:grid; grid-template-columns: repeat(7, 20px); gap:5px; font-size:.68rem; color: var(--text-faint); line-height:1; text-align:center; }
.viewer-cal-grid{ display:grid; grid-template-columns: repeat(7, 20px); grid-auto-flow:row; grid-auto-rows:20px; gap:5px; }
.viewer-cal-cell{ display:block; width:20px; height:20px; border-radius:5px; background: var(--bg-alt); border:1px solid var(--line); box-sizing:border-box; }
.viewer-cal-cell.is-empty, .viewer-cal-cell.is-before{ background:transparent; border-color:transparent; }
.viewer-cal-cell.is-nostream{ background: var(--bg-alt); border-color: var(--line); }
.viewer-cal-cell.is-missed{ background: rgba(255,59,59,0.55); border-color: rgba(255,59,59,0.8); }
.viewer-cal-cell.is-pending{ background:transparent; border:1px dashed var(--blue-text); }
.viewer-cal-cell.is-attended{ border-color: transparent; background: var(--blue); }
.viewer-cal-cell.is-attended.lvl-1{ opacity:.5; }
.viewer-cal-cell.is-attended.lvl-2{ opacity:.78; }
.viewer-cal-cell.is-attended.lvl-3{ opacity:1; }
.viewer-legend{ display:flex; flex-wrap:wrap; gap:8px 18px; font-size:.78rem; color: var(--text-dim); padding-top:12px; border-top:1px solid var(--line); }
.viewer-legend span{ display:inline-flex; align-items:center; gap:7px; }
.viewer-legend .viewer-cal-cell{ width:12px; height:12px; border-radius:3px; }
.viewer-subhead{
  font-size:.74rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color: var(--text-faint);
  margin:26px 0 6px;
}
.viewer-streams{ list-style:none; display:flex; flex-direction:column; }
.viewer-streams li{
  display:grid; grid-template-columns: 110px 96px 1fr; align-items:center; gap:12px;
  padding:10px 2px; border-bottom:1px solid var(--line); font-size:.9rem;
}
.viewer-streams li:last-child{ border-bottom:none; }
.viewer-stream-date{ color: var(--text); font-weight:600; }
.viewer-stream-date::first-letter{ text-transform:uppercase; }
.viewer-stream-detail{ color: var(--text-dim); text-align:right; font-size:.86rem; }
.viewer-badge{
  display:inline-block; justify-self:start; border-radius:999px; padding:3px 11px;
  font-size:.74rem; font-weight:700;
}
.viewer-badge.is-ok{ background: var(--blue-soft); color: var(--blue-text); }
.viewer-badge.is-miss{ background: var(--live-soft); color: var(--live); }
.viewer-badge.is-wait{ background: var(--slate); color: var(--text-dim); }

@media (max-width: 900px){
  .viewer-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-grid{ grid-template-columns: 1fr; }
  .viewer-attendance-cal{ flex-basis:100%; }
}
@media (max-width: 560px){
  .viewer-head{ flex-direction:column; align-items:flex-start; padding:24px 22px; }
  .viewer-panel{ padding:22px 20px; }
  .viewer-months li{ grid-template-columns: 66px 1fr 70px; gap:10px; }
  .viewer-streams li{ grid-template-columns: 92px 84px 1fr; gap:8px; }
}

/* clips */
.clip-row{ gap:14px; }
.clip-thumb{ width:96px; height:54px; border-radius:5px; overflow:hidden; flex-shrink:0; background: var(--slate); }
.clip-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.clip-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.clip-title{ color: var(--text); font-weight:600; font-size:.9rem; text-decoration:none; }
.clip-title:hover{ color: var(--blue); }
.clip-meta{ color: var(--text-faint); font-size:.78rem; }
.clips-pagination{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:24px; }

/* ---------- commands grid ---------- */
.clip-library-grid, .cmd-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.cmd-card{ background: var(--bg); border:1px solid var(--line); border-radius:6px; padding:18px; }
.cmd-card-top{ margin-bottom:8px; }
.cmd-trigger{
  font-family:'Anton', sans-serif; font-size:.92rem; color: var(--blue); letter-spacing:.2px;
}
.draw-sub{ color: var(--text-dim); font-size:.85rem; line-height:1.5; }

/* ---------- tournament, draw wheel, teams ----------
   Shared by the public /tournament page and the /mod + /admin dashboards. */
.tournament-top{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
.tournament-status-badge{
  background: var(--slate); color: var(--text-dim); font-weight:700; font-size:.78rem;
  text-transform:uppercase; letter-spacing:.5px; padding:7px 14px; border-radius:20px;
}
.tournament-status-badge.is-open{ background: var(--blue); color:#fff; }
.tournament-status-badge.is-closed{ background: var(--slate); color: var(--text-faint); }
.tournament-count{ color: var(--text-dim); font-size:.85rem; font-weight:600; }
.tournament-instructions{ color: var(--text-dim); font-size:.88rem; line-height:1.65; margin-bottom:26px; }
.tournament-instructions code{
  background: var(--bg); border:1px solid var(--line); border-radius:4px; padding:1px 6px;
  font-size:.83rem; color: var(--blue-text);
}
.tournament-instructions a{ color: var(--blue-text); }
.tournament-admin-note{ color: var(--text-faint); font-size:.82rem; margin-top:18px; text-align:center; }
.tournament-admin-note a{ color: var(--blue-text); text-decoration:none; }
.tournament-admin-note a:hover{ text-decoration:underline; }
.tournament-subheading{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase;
  letter-spacing:.3px; font-size:1.05rem; color: var(--text); margin: 10px 0 16px;
}
.tournament-subheading:first-child{ margin-top:0; }
.tournament-wait{
  color: var(--text-dim); font-size:.9rem; background: var(--bg);
  border:1px dashed var(--line); border-radius: var(--radius-md); padding:14px 16px;
}
.tournament-rank-pill{
  background: var(--bg); border:1px solid var(--line); border-radius:20px; padding:3px 10px;
  font-size:.75rem; color: var(--text-dim); font-weight:700; margin-left:8px; flex-shrink:0;
}

.team-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.team-card{
  display:flex; flex-direction:column; gap:4px; padding:16px 18px;
  background: var(--bg); border:1px solid var(--line); border-radius: var(--radius-md);
}
.team-number{ color: var(--blue-text); font-weight:700; font-size:.75rem; text-transform:uppercase; letter-spacing:.6px; }
.team-players{ font-weight:600; font-size:.95rem; color: var(--text); }
.matchup-list{ display:flex; flex-direction:column; gap:8px; }
.matchup-row{
  display:flex; align-items:center; justify-content:center; gap:14px;
  background: var(--bg); border:1px solid var(--line); border-radius: var(--radius-md);
  padding:12px 16px; font-weight:700; font-size:.92rem;
}
.vs-divider{ color: var(--text-dim); font-size:.78rem; font-weight:700; text-transform:uppercase; }

/* draw stage */
.draw-stage{ margin-bottom:8px; }
.draw-heading{ display:flex; align-items:flex-start; gap:14px; margin-bottom:22px; }
.draw-emoji{ font-size:1.7rem; line-height:1; flex-shrink:0; filter: drop-shadow(0 0 10px var(--blue-soft)); }
.draw-title{ margin:0 0 4px !important; }
.draw-sub{ color: var(--text-dim); font-size:.88rem; line-height:1.5; }
.draw-heading-done .draw-emoji{ filter: drop-shadow(0 0 10px rgba(120,220,150,.35)); }
.draw-controls{ display:flex; justify-content:center; margin-bottom:18px; }

/* the wheel itself (markup comes from wheel.js) */
.wheel-outer{ position:relative; width:min(340px, 78vw); aspect-ratio:1/1; margin:0 auto 24px; }
.wheel-outer-idle .wheel-svg-host{ opacity:.92; }
.wheel-svg-host{ width:100%; height:100%; }
.wheel-svg{ width:100%; height:100%; display:block; filter: drop-shadow(0 10px 26px rgba(0,0,0,.35)); }
.wheel-rotor{ transform-origin:100px 100px; transform-box:view-box; }
.wheel-rotor-idle{ animation: wheelIdleSpin 26s linear infinite; }
@keyframes wheelIdleSpin{ to{ transform:rotate(360deg); } }
.wheel-slice{ transition: fill .2s ease, filter .2s ease; }
.wheel-slice-even{ fill: var(--slate); }
.wheel-slice-odd{ fill: var(--slice-odd); }
.wheel-slice-hit{ fill: var(--blue) !important; filter: drop-shadow(0 0 8px var(--blue)); }
.wheel-label{ font-family:'Inter', sans-serif; font-weight:700; font-size:8.5px; fill: var(--text-dim); pointer-events:none; }
.wheel-label-hit{ fill:#fff; }
.wheel-hub{ fill: var(--bg-alt); stroke: var(--blue); stroke-width:2; }
.wheel-hub-img{ pointer-events:none; }
.wheel-empty-ring{ fill: var(--slate); stroke: var(--line); stroke-width:2; }
.wheel-pointer{
  position:absolute; top:-6px; left:50%; transform:translateX(-50%); z-index:2;
  width:0; height:0; border-left:11px solid transparent; border-right:11px solid transparent;
  border-top:18px solid var(--blue); filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
/* clickable wheel used on /admin and /mod: same look, but a real <button> that triggers the next spin */
.wheel-outer-clickable{
  display:block; background:none; border:none; padding:0; cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
}
.wheel-outer-clickable:hover:not(.wheel-outer-spinning){ transform:scale(1.015); }
.wheel-outer-clickable:hover:not(.wheel-outer-spinning) .wheel-svg{ filter: drop-shadow(0 10px 26px rgba(0,0,0,.35)) drop-shadow(0 0 14px var(--blue-soft)); }
.wheel-outer-clickable:active:not(.wheel-outer-spinning){ transform:scale(.99); }
.wheel-outer-clickable:focus-visible{ outline:2px solid var(--blue-text); outline-offset:4px; }
.wheel-outer-spinning{ cursor:default; pointer-events:none; opacity:.9; }

.reveal-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:14px; margin-bottom:6px; }
.reveal-card-in{ animation: revealPop .4s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes revealPop{
  0%{ opacity:0; transform:scale(.85) translateY(6px); }
  100%{ opacity:1; transform:scale(1) translateY(0); }
}
@media (max-width: 600px){
  .team-grid, .reveal-list{ grid-template-columns:1fr; }
  .wheel-outer{ width:min(280px, 86vw); }
}
@media (prefers-reduced-motion: reduce){
  .wheel-rotor-idle, .reveal-card-in{ animation:none; }
}

/* ---------- buttons ---------- */
.hero-copy{ position:relative; z-index:2; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:30px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
  font-weight:700; font-size:.92rem; font-family:'Inter', sans-serif; cursor:pointer;
  padding:15px 26px; border-radius:4px; border:1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:focus-visible, .cta:focus-visible{ outline:2px solid var(--blue-text); outline-offset:2px; }
.btn-primary{ background: var(--blue); color:#fff; border-color: var(--blue); }
.btn-primary:hover{ background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost{ background:transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue-text); }
.hero .btn-ghost{ color:#fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover{ border-color: var(--blue); color:#8fb0ff; }
.btn-small{ padding:10px 18px; font-size:.82rem; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }


/* ---------- webshop ---------- */
.shop-sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* usp strip under the hero */
.shop-usp{
  display:grid; grid-template-columns:repeat(3, 1fr);
  background: var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.shop-usp-item{
  display:flex; align-items:center; justify-content:center; gap:12px;
  padding:18px 20px; font-size:.86rem; font-weight:600; color: var(--text-dim);
}
.shop-usp-item + .shop-usp-item{ border-left:1px solid var(--line); }
.shop-usp-item svg{ width:20px; height:20px; color: var(--blue-text); flex-shrink:0; }

.shop-section{ padding: 34px 6vw 90px; }

/* toolbar: search, filters (mobile), sort, cart */
.shop-toolbar{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:26px; }
.shop-toolbar .shop-search{ flex:1 1 320px; max-width:none; }
.shop-search input::-webkit-search-decoration{ -webkit-appearance:none; }
.shop-sort{ display:flex; align-items:center; }
.shop-sort select{
  background: var(--bg-alt); border:1px solid var(--line); color: var(--text);
  padding:14px 14px; border-radius:4px; font-size:.9rem; font-family:'Inter', sans-serif; cursor:pointer;
}
.shop-sort select:focus{ outline:none; border-color: var(--blue); }
.shop-icon-btn{
  position:relative; width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  background: var(--bg-alt); border:1px solid var(--line); border-radius:4px; color: var(--text); cursor:pointer;
  transition: border-color .15s ease, color .15s ease;
}
.shop-icon-btn:hover{ border-color: var(--blue); color: var(--blue-text); }
.shop-icon-btn:focus-visible{ outline:2px solid var(--blue-text); outline-offset:2px; }
.shop-icon-btn svg{ width:20px; height:20px; }
.shop-cart-count{
  position:absolute; top:-8px; right:-8px; min-width:20px; height:20px; padding:0 5px;
  display:flex; align-items:center; justify-content:center;
  background: var(--blue); color:#fff; border-radius:10px; font-size:.7rem; font-weight:800;
}
.shop-filter-toggle{ display:none; padding:14px 18px; }
.shop-filter-badge{
  background: var(--blue); color:#fff; border-radius:10px; min-width:20px; height:20px; padding:0 6px;
  display:inline-flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800;
}

/* layout */
.shop-layout{ display:grid; grid-template-columns:270px minmax(0, 1fr); gap:28px; align-items:start; }
.shop-filters{
  position:sticky; top:96px; padding:4px 22px 22px;
  max-height:calc(100vh - 116px); overflow-y:auto;
}
.shop-filters-head{ display:none; }
.shop-fgroup{ border-bottom:1px solid var(--line); }
.shop-fgroup summary{
  display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none;
  padding:18px 0; font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:1px; color: var(--text);
}
.shop-fgroup summary::-webkit-details-marker{ display:none; }
.shop-fgroup summary::after{
  content:''; width:7px; height:7px; margin-right:3px; flex-shrink:0;
  border-right:2px solid var(--text-dim); border-bottom:2px solid var(--text-dim);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.shop-fgroup[open] summary::after{ transform: rotate(-135deg) translateY(-2px); }
.shop-fgroup summary:focus-visible{ outline:2px solid var(--blue-text); outline-offset:2px; }
.shop-fbody{ padding-bottom:18px; }

/* checkboxes */
.shop-check{ display:flex; align-items:center; gap:10px; padding:6px 0; font-size:.9rem; cursor:pointer; }
.shop-check input{
  -webkit-appearance:none; appearance:none; width:18px; height:18px; flex-shrink:0; margin:0;
  display:grid; place-content:center; cursor:pointer;
  background: var(--bg); border:1px solid var(--text-faint); border-radius:3px;
  transition: background .15s ease, border-color .15s ease;
}
.shop-check input:hover{ border-color: var(--blue-text); }
.shop-check input:checked{ background: var(--blue); border-color: var(--blue); }
.shop-check input:checked::after{
  content:''; width:9px; height:5px; border-left:2px solid #fff; border-bottom:2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.shop-check input:focus-visible{ outline:2px solid var(--blue-text); outline-offset:2px; }
.shop-num{ margin-left:auto; color: var(--text-faint); font-size:.8rem; }

/* price */
.shop-price-row{ display:flex; align-items:center; gap:8px; }
.shop-dash{ color: var(--text-faint); }
.shop-field{
  position:relative; flex:1; min-width:0; display:block;
}
.shop-field i{
  position:absolute; left:11px; top:50%; transform:translateY(-50%);
  font-style:normal; color: var(--text-faint); font-size:.85rem; pointer-events:none;
}
.shop-field input{
  width:100%; background: var(--bg); border:1px solid var(--line); color: var(--text);
  padding:11px 8px 11px 26px; border-radius:4px; font-size:.88rem; font-family:'Inter', sans-serif;
  -moz-appearance:textfield;
}
.shop-field input::-webkit-outer-spin-button, .shop-field input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.shop-field input:focus{ outline:none; border-color: var(--blue); }

.shop-range{ position:relative; height:24px; margin:18px 9px 4px; }
.shop-range::before{
  content:''; position:absolute; left:-9px; right:-9px; top:10px; height:4px; background: var(--line); border-radius:2px;
}
.shop-range-fill{ position:absolute; top:10px; height:4px; background: var(--blue); border-radius:2px; }
.shop-range input[type=range]{
  position:absolute; left:-9px; top:0; width:calc(100% + 18px); height:24px; margin:0;
  background:none; pointer-events:none; -webkit-appearance:none; appearance:none;
}
.shop-range input[type=range]::-webkit-slider-runnable-track{ background:transparent; height:24px; }
.shop-range input[type=range]::-moz-range-track{ background:transparent; height:24px; }
.shop-range input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; pointer-events:auto; width:18px; height:18px; margin-top:3px; border-radius:50%;
  background:#fff; border:2px solid var(--blue); cursor:grab;
}
.shop-range input[type=range]::-moz-range-thumb{
  pointer-events:auto; width:14px; height:14px; border-radius:50%;
  background:#fff; border:2px solid var(--blue); cursor:grab;
}
.shop-range input[type=range]:focus-visible::-webkit-slider-thumb{ outline:2px solid var(--blue-text); outline-offset:2px; }
.shop-range input[type=range]:focus-visible::-moz-range-thumb{ outline:2px solid var(--blue-text); outline-offset:2px; }

/* size chips + colour swatches */
.shop-chips, .shop-swatches{ display:flex; flex-wrap:wrap; gap:8px; }
.shop-chip, .shop-swatch{ position:relative; cursor:pointer; }
.shop-chip input, .shop-swatch input{ position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.shop-chip span{
  display:block; min-width:46px; padding:10px 12px; text-align:center;
  background: var(--bg); border:1px solid var(--line); border-radius:4px;
  font-size:.82rem; font-weight:700; color: var(--text);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.shop-chip:hover span{ border-color: var(--text-faint); }
.shop-chip input:checked + span{ border-color: var(--blue); background: var(--blue-soft); color: var(--blue-text); }
.shop-chip input:focus-visible + span{ outline:2px solid var(--blue-text); outline-offset:2px; }
.shop-swatch span{
  display:block; width:30px; height:30px; border-radius:50%; background: var(--c);
  border:1px solid rgba(255,255,255,0.22);
  transition: box-shadow .15s ease;
}
.shop-swatch:hover span{ border-color: var(--text-dim); }
.shop-swatch input:checked + span{ box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 4px var(--blue); }
.shop-swatch input:focus-visible + span{ outline:2px solid var(--blue-text); outline-offset:4px; }

.shop-reset{ width:100%; margin-top:20px; }

/* the [hidden] attribute must win over the display values above */
.shop-active[hidden], .shop-filter-badge[hidden]{ display:none; }

/* results column */
.shop-meta{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; min-height:24px; }
.shop-count{ font-size:.9rem; color: var(--text-dim); }
.shop-count strong{ color: var(--text); }
.shop-active{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:18px; }
.shop-tag{
  display:inline-flex; align-items:center; gap:8px; max-width:100%;
  padding:6px 8px 6px 13px; background: var(--bg-alt); border:1px solid var(--line); border-radius:20px;
  font-size:.8rem; font-weight:600;
}
.shop-tag-label{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:220px; }
.shop-tag button{
  width:20px; height:20px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
  background:none; border:none; border-radius:50%; color: var(--text-dim); cursor:pointer; font-size:1.05rem; line-height:1;
}
.shop-tag button:hover{ background: var(--blue-soft); color: var(--blue-text); }
.shop-tag button:focus-visible{ outline:2px solid var(--blue-text); }
.shop-tag-clear{
  background:none; border:none; color: var(--blue-text); font-size:.8rem; font-weight:700; cursor:pointer; padding:6px 4px;
}
.shop-tag-clear:hover{ text-decoration:underline; }

/* the "coming soon" panel that stands in for the product grid */
.shop-empty{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:64px 30px 60px; min-height:520px; justify-content:center;
  background: radial-gradient(ellipse at 50% 0%, rgba(47,107,255,0.16), transparent 62%), var(--bg-alt);
}
/* mascot standing in for the product grid */
.shop-mascot{
  width:min(300px, 62vw); height:auto; margin-bottom:10px;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.45));
  animation: shopMascot 3.4s ease-in-out infinite;
}
@keyframes shopMascot{
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-10px) rotate(1.5deg); }
}
.shop-empty h2{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:1px;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height:1.05; margin-bottom:14px;
}
.shop-empty h2 span{ color: var(--blue); }
.shop-empty-text{ color: var(--text-dim); font-size:1rem; line-height:1.65; max-width:460px; }
.shop-hint{ color: var(--text-faint); font-size:.85rem; margin-top:14px; max-width:420px; line-height:1.5; }
.shop-empty .hero-actions{ justify-content:center; margin-top:28px; }

/* shared scrim + slide-in panels (mobile filters, cart) */
.shop-scrim{
  position:fixed; inset:0; z-index:58; background: rgba(0,0,0,0.6);
  opacity:0; pointer-events:none; transition: opacity .25s ease;
}
.shop-scrim.open{ opacity:1; pointer-events:auto; }
.shop-close{
  width:36px; height:36px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
  background:none; border:none; border-radius:4px; color: var(--text); cursor:pointer;
}
.shop-close:hover{ color: var(--blue-text); }
.shop-close:focus-visible{ outline:2px solid var(--blue-text); outline-offset:2px; }
.shop-close svg{ width:22px; height:22px; }

.shop-cart{
  position:fixed; top:0; right:0; bottom:0; z-index:60; width:min(420px, 100vw);
  display:flex; flex-direction:column; background: var(--bg-alt); border-left:1px solid var(--line);
  transform: translateX(102%); visibility:hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.shop-cart.open{ transform:none; visibility:visible; transition: transform .3s ease, visibility 0s; }
.shop-cart-head{ display:flex; align-items:center; justify-content:space-between; padding:20px 20px 20px 24px; border-bottom:1px solid var(--line); }
.shop-cart-head h2{ font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:.5px; font-size:1.4rem; }
.shop-cart-body{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  gap:12px; padding:30px; color: var(--text-dim);
}
.shop-cart-body svg{ width:54px; height:54px; color: var(--text-faint); }
.shop-cart-body h3{ color: var(--text); font-size:1.05rem; }
.shop-cart-body p{ font-size:.9rem; line-height:1.55; max-width:280px; }
.shop-cart-foot{ display:grid; gap:14px; padding:20px 24px 24px; border-top:1px solid var(--line); }
.shop-cart-total{ display:flex; justify-content:space-between; font-weight:700; }

@media (max-width: 900px){
  .shop-layout{ grid-template-columns:1fr; }
  .shop-filter-toggle{ display:inline-flex; }
  .shop-filters{
    position:fixed; top:0; left:0; bottom:0; z-index:60; width:min(340px, 88vw); max-height:none;
    border-radius:0; border-width:0 1px 0 0; padding-top:0;
    transform: translateX(-102%); visibility:hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .shop-filters.open{ transform:none; visibility:visible; transition: transform .3s ease, visibility 0s; }
  .shop-filters-head{
    display:flex; align-items:center; justify-content:space-between;
    position:sticky; top:0; z-index:1; background: var(--bg-alt); padding:16px 0 12px; border-bottom:1px solid var(--line);
  }
  .shop-filters-head h2{ font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:.5px; font-size:1.4rem; }
}
@media (max-width: 760px){
  .shop-usp{ grid-template-columns:1fr; }
  .shop-usp-item{ justify-content:flex-start; padding:12px 6vw; }
  .shop-usp-item + .shop-usp-item{ border-left:none; border-top:1px solid var(--line); }
  .shop-toolbar .shop-search{ flex-basis:100%; }
  .shop-sort{ flex:1; }
  .shop-sort select{ width:100%; }
  .shop-empty{ min-height:440px; padding:48px 20px; }
  .shop-mascot{ width:min(230px, 62vw); }
}
@media (prefers-reduced-motion: reduce){
  .shop-mascot{ animation:none; }
  .shop-cart, .shop-filters, .shop-scrim{ transition:none; }
}


/* ============================================================
   Motion pass - hover + entrance animations, site-wide.
   Purely additive: no markup changes, nothing here moves layout.
   Everything is switched off by prefers-reduced-motion at the bottom.
   ============================================================ */
:root{
  --mo-out: cubic-bezier(.2,.8,.2,1);
  --mo-io: cubic-bezier(.65,0,.35,1);
  --mo-pop: cubic-bezier(.34,1.56,.64,1);
}

/* ---- page load ---- */
main{ animation: moPageIn .7s var(--mo-out) backwards; }
.hero-stripes{ animation: moHeroDrift 26s ease-in-out infinite alternate; transform-origin:60% 50%; will-change: transform; }
.hero-glow{ animation: moGlow 6s ease-in-out infinite; }
.hero-kicker{ animation: moRise .7s var(--mo-out) .10s backwards; }
.hero h1{ animation: moRise .8s var(--mo-out) .20s backwards; }
.hero h1 span{ display:inline-block; animation: moPopIn .8s var(--mo-pop) .45s backwards; }
.hero-actions, .hero .btn-row, .hero .quick-facts, .hero .pc-search{ animation: moRise .8s var(--mo-out) .35s backwards; }
.section-head h2 span{ display:inline-block; transition: transform .35s var(--mo-pop); }
.section-head h2:hover span{ transform: translateY(-3px) rotate(-1.5deg); }

/* ---- topbar + nav ---- */
.logo img{ transition: transform .5s var(--mo-pop); }
.logo:hover img{ transform: rotate(-12deg) scale(1.14); }
.logo:active img{ transform: scale(.92); }
.nav-live{ transition: color .2s ease, transform .25s var(--mo-out); }
.nav-live:hover{ color: var(--blue-text); transform: translateY(-1px); }
.nav-live .status-dot{ transition: transform .3s var(--mo-pop); }
.nav-live:hover .status-dot{ transform: scale(1.4); }
.nav-live.is-live .status-dot, .is-live .status-dot{ animation: moLivePulse 1.8s ease-out infinite; }
.hamburger:not(.open):hover span:nth-child(1){ width:26px; }
.hamburger:not(.open):hover span:nth-child(2){ width:18px; }
.hamburger:not(.open):hover span:nth-child(3){ width:10px; }
.hamburger:active{ transform: scale(.9); }
.hamburger{ transition: transform .2s var(--mo-out); }
.nav-close svg{ transition: transform .4s var(--mo-pop); }
.nav-close:hover svg{ transform: rotate(90deg) scale(1.15); }
.nav-links > a, .nav-group-items a{ position:relative; align-self:flex-end; }
.nav-links > a::after, .nav-group-items a::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:3px; background:#0b0c10; pointer-events:none;
  transform: scaleX(0); transform-origin:right; transition: transform .35s var(--mo-out);
}
.nav-links > a:hover::after, .nav-links > a:focus-visible::after, .nav-group-items a:hover::after{ transform: scaleX(1); }
.nav-links a, .nav-group-toggle{ transition: opacity .15s ease; }
.nav-group-toggle svg{ transition: transform .35s var(--mo-io); }
.nav-overlay.open .nav-links > *{ animation: moNavLink .55s var(--mo-out) backwards; }
.nav-overlay.open .nav-links > :nth-child(1){ animation-delay:.15s; }
.nav-overlay.open .nav-links > :nth-child(2){ animation-delay:.20s; }
.nav-overlay.open .nav-links > :nth-child(3){ animation-delay:.25s; }
.nav-overlay.open .nav-links > :nth-child(4){ animation-delay:.30s; }
.nav-overlay.open .nav-links > :nth-child(5){ animation-delay:.35s; }
.nav-overlay.open .nav-links > :nth-child(6){ animation-delay:.40s; }
.nav-overlay.open .nav-links > :nth-child(7){ animation-delay:.45s; }
.nav-overlay.open .nav-links > :nth-child(8){ animation-delay:.50s; }

/* ---- buttons: lift + light sweep + press ---- */
.btn, .cta{
  position:relative; overflow:hidden;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--mo-out), box-shadow .3s ease;
}
.btn::after, .cta::after{
  content:''; position:absolute; top:0; bottom:0; left:-70%; width:45%; pointer-events:none;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); transition: left .65s ease;
}
@media (hover:hover){
  .btn:hover:not(:disabled), .cta:hover:not(:disabled){ transform: translateY(-3px); box-shadow:0 12px 26px -14px rgba(47,107,255,.95); }
  .btn:hover:not(:disabled)::after, .cta:hover:not(:disabled)::after{ left:130%; }
}
.btn:active:not(:disabled), .cta:active:not(:disabled){ transform: translateY(0) scale(.97); box-shadow:none; }

/* ---- cards ---- */
.social-card, .news-card, .quick-fact, .t-card, .team-card, .stat-tile, .shop-usp-item, .clip-row{
  transition: transform .35s var(--mo-out), border-color .25s ease, box-shadow .35s ease, background .25s ease;
}
.supporter-card{ transition: transform .35s var(--mo-out), box-shadow .35s ease; }
.social-icon{ transition: transform .45s var(--mo-pop), box-shadow .3s ease; }
.social-handle{ transition: letter-spacing .3s ease, color .2s ease; }
@media (hover:hover){
  .social-card:hover{ transform: translateY(-5px); box-shadow:0 10px 22px -16px rgba(47,107,255,.6); }
  .social-card:hover .social-icon{ transform: rotate(-10deg) scale(1.15); box-shadow:0 8px 20px -6px rgba(47,107,255,.8); }
  .social-card:hover .social-handle{ letter-spacing:.4px; }
  .news-card:hover{ transform: translateY(-5px); border-color: var(--blue); box-shadow:0 10px 22px -16px rgba(47,107,255,.6); }
  .why-card:hover svg{ transform: translateY(-4px) scale(1.12) rotate(-6deg); }
  .quick-fact:hover{ transform: translateY(-3px) scale(1.04); border-color: var(--blue); background: rgba(47,107,255,.14); }
  .t-card:hover{ transform: translateY(-6px); box-shadow:0 22px 40px -22px rgba(0,0,0,.8); }
  .supporter-card:hover{ transform: translateY(-6px); box-shadow:0 22px 40px -22px rgba(47,107,255,.7); }
  .team-card:hover{ transform: translateY(-4px); border-color: var(--blue); }
  .stat-tile:hover{ transform: translateY(-3px); border-color: rgba(47,107,255,.55); }
  .shop-usp-item:hover{ background: rgba(47,107,255,.06); }
  .shop-usp-item:hover svg{ transform: scale(1.2) rotate(-6deg); }
  .clip-row:hover{ transform: translateX(4px); }
}
.shop-usp-item svg{ transition: transform .4s var(--mo-pop); }
.supporter-avatar, .viewer-avatar, .stream-avatar-wrap{ transition: transform .4s var(--mo-pop), box-shadow .3s ease; }
.supporter-card:hover .supporter-avatar, .stream-panel:hover .stream-avatar-wrap{ transform: scale(1.08) rotate(-4deg); }
.stat-value{ display:inline-block; transition: transform .35s var(--mo-pop); transform-origin:left center; }
.stat-tile:hover .stat-value{ transform: scale(1.12); }

/* ---- tabs, rows, pills ---- */
.leaderboard-tab{ transition: border-color .2s ease, color .2s ease, background .25s ease, transform .25s var(--mo-out), box-shadow .3s ease; }
.leaderboard-tab:hover{ transform: translateY(-2px); }
.leaderboard-tab:active{ transform: scale(.96); }
.leaderboard-tab.is-active{ box-shadow:0 8px 20px -10px rgba(47,107,255,.9); }
.leaderboard-row{ transition: background .2s ease, transform .3s var(--mo-out); }
@media (hover:hover){
  .leaderboard-row:hover{ background: rgba(47,107,255,.06); transform: translateX(5px); }
  .leaderboard-row:hover .leaderboard-rank, .leaderboard-row:hover .rank-badge{ transform: scale(1.15); }
  .leaderboard-row:hover .leaderboard-points{ color: var(--blue-text); }
}
.leaderboard-rank, .rank-badge{ display:inline-block; transition: transform .35s var(--mo-pop); }
.leaderboard-points{ transition: color .2s ease; }
.rank-icon, .player-flag, .tournament-rank-pill{ transition: transform .35s var(--mo-pop); }
.leaderboard-row:hover .rank-icon, .leaderboard-row:hover .player-flag{ transform: scale(1.2) rotate(-6deg); }
.tournament-rank-pill:hover{ transform: scale(1.08); }
.card-link, .back-link, .viewer-back{ transition: color .2s ease, transform .35s cubic-bezier(.22,.61,.36,1), background-size .35s cubic-bezier(.22,.61,.36,1); }
.card-link:hover, .back-link:hover, .viewer-back:hover{ transform: translateX(4px); }
.footer-socials a, .social-icons a{ display:inline-flex; transition: transform .35s var(--mo-pop), opacity .2s ease; }
.footer-socials a:hover, .social-icons a:hover{ transform: translateY(-4px) scale(1.12); }
.scroll-top-btn{ transition: transform .3s var(--mo-pop), opacity .3s ease, background .2s ease; }
.footer-mushroom{ transition: transform .5s var(--mo-pop); }
.footer-mushroom:hover{ transform: rotate(-8deg) scale(1.08); }
input:focus, select:focus, textarea:focus{ transition: border-color .2s ease, box-shadow .25s ease; }
.leaderboard-search:focus, .pc-search input:focus, .shop-search input:focus{ box-shadow:0 0 0 4px var(--blue-soft); }

/* ---- scroll reveal (classes are added by script.js, only to blocks below the fold) ---- */
.rv{ opacity:0; transform: translateY(30px); transition: opacity .8s var(--mo-out), transform .8s var(--mo-out); transition-delay: var(--rv-d, 0ms); }
.rv.rv-in{ opacity:1; transform:none; }

/* ---- keyframes ---- */
@keyframes moPageIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes moHeroDrift{ from{ transform: scale(1) translate3d(0,0,0); } to{ transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
@keyframes moGlow{ 0%,100%{ opacity:.65; transform: scale(1); } 50%{ opacity:1; transform: scale(1.06); } }
@keyframes moRise{ from{ opacity:0; transform: translateY(24px); } to{ opacity:1; transform:none; } }
@keyframes moPopIn{ from{ opacity:0; transform: translateY(14px) scale(.8); } to{ opacity:1; transform:none; } }
@keyframes moNavLink{ from{ opacity:0; transform: translateX(26px); } to{ opacity:1; transform:none; } }
@keyframes moLivePulse{ 0%{ box-shadow:0 0 0 0 rgba(255,59,59,.55); } 70%{ box-shadow:0 0 0 9px rgba(255,59,59,0); } 100%{ box-shadow:0 0 0 0 rgba(255,59,59,0); } }

@media (prefers-reduced-motion: reduce){
  main, .hero-stripes, .hero-glow, .hero-kicker, .hero h1, .hero h1 span, .hero-actions, .hero .btn-row,
  .hero .quick-facts, .hero .pc-search, .nav-overlay.open .nav-links > *, .is-live .status-dot{ animation:none !important; }
  .rv{ opacity:1; transform:none; transition:none; }
  .btn, .cta, .btn::after, .cta::after, .social-card, .news-card, .t-card, .team-card, .stat-tile,
  .leaderboard-row, .leaderboard-tab, .logo img, .social-icon{ transition-duration:.001ms !important; }
  .btn:hover, .cta:hover, .social-card:hover, .news-card:hover, .t-card:hover, .team-card:hover,
  .stat-tile:hover, .leaderboard-row:hover, .leaderboard-tab:hover{ transform:none !important; }
}

.why-card svg{ transition: transform .45s var(--mo-pop); }
.why-card .card-link{ display:inline-block; }


/* ---- viewer lookup: result reveals in one after the other ---- */
#viewerRoot > *{ animation: moRise .65s var(--mo-out) backwards; }
#viewerRoot > *:nth-child(1){ animation-delay:.05s; }
#viewerRoot > *:nth-child(2){ animation-delay:.14s; }
#viewerRoot > *:nth-child(3){ animation-delay:.23s; }
#viewerRoot > *:nth-child(4){ animation-delay:.32s; }
#viewerRoot > *:nth-child(n+5){ animation-delay:.4s; }
.viewer-stat{ animation: moRise .55s var(--mo-out) backwards; }
.viewer-stats .viewer-stat:nth-child(1){ animation-delay:.2s; }
.viewer-stats .viewer-stat:nth-child(2){ animation-delay:.28s; }
.viewer-stats .viewer-stat:nth-child(3){ animation-delay:.36s; }
.viewer-stats .viewer-stat:nth-child(4){ animation-delay:.44s; }
.viewer-stats .viewer-stat:nth-child(n+5){ animation-delay:.5s; }
.viewer-month-fill{ transform-origin:left; animation: moGrowX .9s var(--mo-out) .5s backwards; }
@keyframes moGrowX{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@media (prefers-reduced-motion: reduce){
  #viewerRoot > *, .viewer-stat, .viewer-month-fill{ animation:none !important; }
}

/* ---------- stream schedule (/schema) ---------- */
.schedule-note{
  font-family:'Anton', sans-serif; text-transform:uppercase; letter-spacing:.4px;
  color: var(--blue-text); font-size:1.05rem; margin-bottom:22px; text-align:center;
}
.schedule-rows{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.schedule-row{
  display:grid; grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.3fr) minmax(0, 1.4fr);
  align-items:center; gap:16px; padding:16px 18px;
  background: var(--bg); border:1px solid var(--line); border-radius: var(--radius-lg);
}
.schedule-row.is-today{ border-color: var(--blue); background: linear-gradient(90deg, var(--blue-soft), var(--bg) 70%); box-shadow: 0 0 0 1px var(--blue) inset; }
.schedule-day{ font-family:'Anton', sans-serif; text-transform:uppercase; letter-spacing:.4px; font-size:1.05rem; color: var(--blue-text); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.schedule-badge{
  font-family:'Inter', sans-serif; font-size:.68rem; font-weight:800; letter-spacing:.5px;
  background: var(--blue); color:#fff; padding:3px 9px; border-radius:20px;
}
.schedule-time{ display:flex; flex-direction:column; gap:3px; }
.schedule-time-main{ font-weight:800; font-size:1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.schedule-open{ color: var(--blue-text); }
.schedule-local{ color: var(--text-dim); font-size:.78rem; }
.schedule-game{ color: var(--text); font-weight:600; min-width:0; overflow-wrap:anywhere; }
.schedule-nogame{ color: var(--text-faint); }
.schedule-tz{ color: var(--text-faint); font-size:.8rem; margin-top:18px; text-align:center; }
@media (max-width: 640px){
  .schedule-row{ grid-template-columns: 1fr auto; gap:6px 14px; padding:14px; }
  .schedule-game{ grid-column: 1 / -1; font-size:.88rem; color: var(--text-dim); }
  .schedule-time{ align-items:flex-end; text-align:right; }
  .schedule-game:has(.schedule-nogame){ display:none; }
}

/* message box (used by the forum) */
.suggest-msg{ border-radius: var(--radius-md); padding:12px 14px; margin-bottom:18px; font-size:.88rem; font-weight:600; }
.suggest-msg:not(.suggest-msg-ok){ background: var(--live-soft); color:#ff8a8a; border:1px solid rgba(255,59,59,.35); }
.suggest-msg-ok{ background: var(--blue-soft); color: var(--blue-text); border:1px solid rgba(47,107,255,.4); }

/* ---------- language switch (footer) ---------- */
.lang-switch{ display:inline-flex; align-items:center; gap:4px; background: rgba(0,0,0,0.18); border-radius:999px; padding:4px; }
.footer-toggle-wrap .lang-switch{ margin-right:auto; }
.lang-switch button{
  border:none; cursor:pointer; font:inherit; font-size:.78rem; font-weight:800; letter-spacing:.5px;
  padding:6px 12px; border-radius:999px; background:transparent; color:#0b0c10;
}
.lang-switch button[aria-pressed="true"]{ background:#0b0c10; color:#fff; }
.lang-switch button:focus-visible{ outline:2px solid #fff; outline-offset:1px; }
.lang-switch-floating{ position:fixed; right:14px; bottom:14px; z-index:50; background: var(--blue); }

/* ---- login: link buttons + header chip ---- */
a.cta, a.btn{ display:inline-block; text-decoration:none; text-align:center; line-height:1.2; }
.auth-chip{
  position:absolute; left:50%; top:calc(50% + env(safe-area-inset-top, 0px) / 2); transform:translate(-50%, -50%);
  display:inline-flex; align-items:center; z-index:2; max-width:46vw;
}
.auth-box{
  display:inline-flex; align-items:center; gap:4px; max-width:100%;
  background:var(--bg-alt); border:1px solid var(--line); border-radius:10px; padding:4px;
}
.auth-box .auth-name{
  display:inline-block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  padding:7px 12px; font-size:.9rem; font-weight:700; color:var(--text); text-decoration:none; border-radius:7px;
  transition: background .15s ease, color .15s ease;
}
.auth-box .auth-name:hover{ background:var(--blue-soft); color:var(--blue-text); }
.auth-box button{
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:34px; height:34px;
  background:none; border:none; border-radius:7px; color:var(--text-dim); cursor:pointer;
  transition: color .15s ease, background .15s ease;
}
.auth-box button:hover{ color:#ff8a8a; background:var(--live-soft); }
.auth-box button svg{ width:18px; height:18px; }
@media (max-width:520px){ .auth-box .auth-name{ padding:7px 8px; font-size:.82rem; } }

/* ---- viewer profile: level, XP bar, badges ---- */
.viewer-head.profile-card{ flex-direction:column; align-items:stretch; gap:24px; }
.profile-top{ display:flex; align-items:center; gap:22px; }
.level-pill{
  position:absolute; left:0; right:0; bottom:0; padding:4px 0 5px; text-align:center;
  background:rgba(11,12,16,.8); color:#fff; font-family:'Inter', sans-serif; font-weight:800; font-size:.74rem; letter-spacing:.3px;
}
.level-pill::before{ content:'LV '; opacity:.7; font-weight:700; }
.xp{ display:flex; flex-direction:column; gap:10px; }
.xp-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.xp-top strong{ font-family:'Anton', sans-serif; font-weight:400; font-size:1.5rem; letter-spacing:.5px; text-transform:uppercase; }
.xp-top span{ color:var(--text-dim); font-size:.88rem; font-weight:700; }
.xp-track{ height:16px; border-radius:999px; background:var(--slate); border:1px solid var(--line); overflow:hidden; }
.xp-fill{
  display:block; height:100%; border-radius:999px; min-width:6px;
  background:linear-gradient(90deg, var(--blue), #5b8cff);
  box-shadow:0 0 14px rgba(47,107,255,.55);
  animation:xpGrow .9s cubic-bezier(.22,.61,.36,1) backwards;
}
@keyframes xpGrow{ from{ width:0; } }
.xp-next{ color:var(--text-faint); font-size:.82rem; margin:0; }
.xp-badges-wrap{ display:flex; flex-direction:column; gap:12px; }
.xp-badges-wrap .viewer-subhead{ margin:0; }
.xp-badges{ display:flex; flex-wrap:wrap; gap:16px; }
.xp-badge{ display:flex; flex-direction:column; align-items:center; gap:6px; width:78px; text-align:center; }
.xp-badge svg{ width:48px; height:56px; filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.xp-badge svg path{ fill:var(--badge); stroke:rgba(255,255,255,.4); stroke-width:1.5; }
.xp-badge svg text{ fill:#0b0c10; font-family:'Inter', sans-serif; font-weight:800; font-size:15px; }
.xp-badge span{ font-size:.72rem; font-weight:700; color:var(--text-dim); line-height:1.2; }
.xp-badge.is-locked{ opacity:.35; filter:grayscale(1); }
.viewer-section-title{
  font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:.5px;
  font-size:1.5rem; margin:10px 0 -6px;
}
.viewer-section-title small{ font-family:'Inter', sans-serif; font-size:.78rem; font-weight:600; letter-spacing:0; text-transform:none; color:var(--text-faint); margin-left:10px; }
.viewer-private-note{ color:var(--text-faint); font-size:.9rem; text-align:center; margin:4px 0 0; }
@media (max-width:640px){ .profile-top{ flex-direction:column; align-items:flex-start; } }
@media (prefers-reduced-motion: reduce){ .xp-fill{ animation:none; } }
/* logged-out variant: the whole box is the link, but it hovers exactly like the
   logged-in box: only the segment under the cursor (Login text / icon) lights up. */
a.auth-box-login{ text-decoration:none; cursor:pointer; }
.auth-box .auth-ico{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:7px; color:var(--text-dim); transition: color .15s ease, background .15s ease; }
.auth-box .auth-ico svg{ width:18px; height:18px; }
a.auth-box-login .auth-name:hover{ background:var(--blue-soft); color:var(--blue-text); }
a.auth-box-login .auth-ico:hover{ background:var(--blue-soft); color:var(--blue-text); }

/* ---- "Stats openbaar" slider on your own profile ---- */
.privacy-toggle{ position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 20px; cursor:pointer; }
.privacy-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.privacy-text strong{ font-size:1rem; }
.privacy-text small{ color:var(--text-faint); font-size:.82rem; font-weight:600; }
.privacy-toggle input{ position:absolute; opacity:0; width:0; height:0; }
.privacy-slider{
  position:relative; flex-shrink:0; width:50px; height:28px; border-radius:999px;
  background:var(--slate); border:1px solid var(--line); transition: background .2s ease, border-color .2s ease;
}
.privacy-slider::after{
  content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%;
  background:var(--text-dim); transition: transform .2s ease, background .2s ease;
}
.privacy-toggle input:checked + .privacy-slider{ background:var(--blue); border-color:var(--blue); }
.privacy-toggle input:checked + .privacy-slider::after{ transform:translateX(22px); background:#fff; }
.privacy-toggle input:focus-visible + .privacy-slider{ outline:2px solid var(--blue-text); outline-offset:3px; }
.privacy-toggle input:disabled + .privacy-slider{ opacity:.6; }

