
:root{
  /* brand — sampled from the channel avatar */
  --lime:#5FCC22; --lime-hot:#79F142; --lime-soft:#EAFBE0;
  --blue:#0068F3; --blue-deep:#01289A; --blue-bright:#00C6FD; --blue-soft:#E3F1FF;

  /* channel colours, sampled from each avatar */
  --c-red:#D11021;    --c-red-t:#B00C1B;
  --c-yellow:#F4D403; --c-yellow-t:#8A7500;
  --c-cyan:#10D8EF;   --c-cyan-t:#04788A;
  --c-purple:#892AC6; --c-purple-t:#7A1FB4;
  --c-blue:#0068F3;   --c-blue-t:#0058CC;

  --bg:#F7FAF6; --surface:#FFFFFF; --surface-2:#EDF3EA;
  --line:#E0E9DC; --line-2:#C7D5C2;
  --text:#16220F; --text-2:#5B6B54; --text-3:#84937D;
  --on-brand:#FFFFFF;
  --shadow-sm:0 2px 4px rgba(22,34,15,.06);
  --shadow:0 6px 20px rgba(22,34,15,.10);
  --shadow-lg:0 16px 44px rgba(22,34,15,.16);

  --display:"Fredoka","Noto Sans SC",system-ui,sans-serif;
  --body:"Nunito","Noto Sans SC",system-ui,-apple-system,sans-serif;
  --r:18px; --r-lg:26px; --r-sm:11px;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --lime:#79F142; --lime-hot:#9CFF6B; --lime-soft:#16300B;
    --blue:#3D9BFF; --blue-deep:#0B1F52; --blue-bright:#4FD9FF; --blue-soft:#11223F;
    --c-red:#FF6B6B;    --c-red-t:#FF6B6B;
    --c-yellow:#FFD93D; --c-yellow-t:#FFD93D;
    --c-cyan:#4FE4F7;   --c-cyan-t:#4FE4F7;
    --c-purple:#B66BEF; --c-purple-t:#B66BEF;
    --c-blue:#4FA3FF;   --c-blue-t:#4FA3FF;
    --bg:#0D140A; --surface:#151E11; --surface-2:#1C2717;
    --line:#26331F; --line-2:#37462F;
    --text:#EBF3E6; --text-2:#9FAF98; --text-3:#75866E;
    --on-brand:#0D140A;
    --shadow-sm:0 2px 4px rgba(0,0,0,.35);
    --shadow:0 6px 20px rgba(0,0,0,.42);
    --shadow-lg:0 16px 44px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"]{
  --lime:#79F142; --lime-hot:#9CFF6B; --lime-soft:#16300B;
  --blue:#3D9BFF; --blue-deep:#0B1F52; --blue-bright:#4FD9FF; --blue-soft:#11223F;
  --c-red:#FF6B6B;  --c-red-t:#FF6B6B;
  --c-yellow:#FFD93D; --c-yellow-t:#FFD93D;
  --c-cyan:#4FE4F7;   --c-cyan-t:#4FE4F7;
  --c-purple:#B66BEF; --c-purple-t:#B66BEF;
  --c-blue:#4FA3FF;   --c-blue-t:#4FA3FF;
  --bg:#0D140A; --surface:#151E11; --surface-2:#1C2717;
  --line:#26331F; --line-2:#37462F;
  --text:#EBF3E6; --text-2:#9FAF98; --text-3:#75866E;
  --on-brand:#0D140A;
  --shadow-sm:0 2px 4px rgba(0,0,0,.35);
  --shadow:0 6px 20px rgba(0,0,0,.42);
  --shadow-lg:0 16px 44px rgba(0,0,0,.5);
}

*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--body); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
body[data-lang="zh"]{font-family:"Noto Sans SC","Nunito",system-ui,sans-serif}
.wrap{max-width:1120px; margin:0 auto; padding-inline:20px}
h1,h2,h3,h4{margin:0; font-family:var(--display); font-weight:600; text-wrap:balance; line-height:1.15}
p{margin:0}
button{font-family:inherit}
:focus-visible{outline:3px solid var(--lime); outline-offset:3px; border-radius:6px}

/* ============ TOP BAR ============ */
.topbar{position:sticky; top:0; z-index:60; background:var(--surface); border-bottom:1px solid var(--line)}
.topbar .wrap{display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding-block:11px}
.logo{display:flex; align-items:center; gap:9px; font-family:var(--display); font-weight:700; font-size:19px; letter-spacing:-.01em}
.logo .blob{width:26px; height:26px; border-radius:50%; flex:none; background:var(--lime); box-shadow:0 0 0 4px var(--lime-soft)}
nav{display:flex; gap:4px; margin-left:auto; flex-wrap:wrap}
nav button{border:0; background:none; cursor:pointer; color:var(--text-2); font-weight:700; font-size:14px; padding:8px 14px; border-radius:999px}
nav button:hover{background:var(--surface-2); color:var(--text)}
nav button[aria-current="true"]{background:var(--lime); color:var(--on-brand)}
.tools{display:flex; gap:7px; align-items:center}
.lang{display:flex; background:var(--surface-2); border-radius:999px; padding:3px; gap:2px}
.lang button{border:0; background:none; cursor:pointer; font-weight:700; font-size:13px; padding:5px 13px; border-radius:999px; color:var(--text-2)}
.lang button[aria-pressed="true"]{background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm)}
.mvbtn{border:1.5px solid var(--line-2); background:var(--surface); color:var(--text-3); cursor:pointer; font-weight:700; font-size:12px; padding:7px 12px; border-radius:999px}
.mvbtn[aria-pressed="true"]{border-color:var(--lime); color:var(--lime); background:var(--lime-soft)}

/* ============ HERO — the avatar's own world ============ */
.hero{
  margin-top:22px; border-radius:var(--r-lg); overflow:hidden; position:relative;
  background:linear-gradient(140deg,var(--blue-deep) 0%,var(--blue) 48%,var(--blue-bright) 100%);
  color:#fff; padding:38px 30px 0;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,.19) 1.6px, transparent 1.7px);
  background-size:15px 15px; opacity:.75;
}
.hero-in{position:relative; z-index:1; display:grid; grid-template-columns:1.25fr auto; gap:26px; align-items:end; max-width:960px; margin:0 auto}
.hero-copy{display:flex; flex-direction:column; gap:16px; padding-bottom:40px}
.pill{
  align-self:flex-start; display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.17); color:#fff; font-weight:800; font-size:13px;
  padding:7px 16px; border-radius:999px; backdrop-filter:blur(4px);
}
.hero h1{font-size:clamp(36px,6.4vw,62px); font-weight:700; letter-spacing:-.028em}
.hero h1 span{color:var(--lime-hot); text-shadow:0 2px 0 rgba(0,0,0,.12)}
.hero-sub{font-weight:700; font-size:17.5px; opacity:.95; max-width:38ch}
.hero-pic{width:min(300px,38vw); align-self:end; filter:drop-shadow(0 10px 26px rgba(0,0,0,.34))}
.hero-pic img{display:block; width:100%; border-radius:22px 22px 0 0}
.btnrow{display:flex; gap:11px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; gap:9px; border:0; cursor:pointer;
  background:var(--lime-hot); color:#16220F; font-family:var(--display); font-weight:600;
  font-size:17px; padding:14px 30px; border-radius:999px; box-shadow:0 5px 0 rgba(0,0,0,.18);
  transition:transform .14s ease, box-shadow .14s ease; text-decoration:none;
}
.btn:hover{transform:translateY(-2px); box-shadow:0 7px 0 rgba(0,0,0,.18)}
.btn:active{transform:translateY(2px); box-shadow:0 2px 0 rgba(0,0,0,.18)}
.btn-ghost{background:rgba(255,255,255,.16); color:#fff; box-shadow:none; backdrop-filter:blur(4px)}
.btn-ghost:hover{background:rgba(255,255,255,.26); box-shadow:none}

/* ============ GENERAL ============ */
section{padding-block:44px}
.sechead{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-bottom:22px}
.sechead h2{font-size:clamp(25px,3.6vw,34px); font-weight:700; letter-spacing:-.02em}
.sechead p{color:var(--text-3); font-weight:600; font-size:15px}
.answer{font-size:17px; color:var(--text-2); max-width:64ch; font-weight:600; line-height:1.7}
body.mv-on .answer{background:var(--lime-soft); box-shadow:0 0 0 10px var(--lime-soft); border-radius:4px; color:var(--text)}
.mv-note{display:none; font-weight:800; font-size:12px; color:var(--lime); letter-spacing:.04em; text-transform:uppercase}
body.mv-on .mv-note{display:block}

/* ============ CHANNEL TILES ============ */
.tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px}
.tile{
  background:var(--surface); border-radius:var(--r-lg); overflow:hidden; cursor:pointer;
  box-shadow:var(--shadow-sm); border:1px solid var(--line); text-align:left;
  padding:0; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease;
}
.tile:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg)}
.tile-top{height:82px; position:relative}
.tile-top::after{content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.22) 1.4px,transparent 1.5px); background-size:13px 13px}
.tile-av{
  width:62px; height:62px; border-radius:50%; border:4px solid var(--surface);
  position:absolute; bottom:-31px; left:24px; display:grid; place-items:center; overflow:hidden;
  font-family:var(--display); font-weight:700; font-size:18px; color:#fff; z-index:2;
}
.tile-av img{width:100%; height:100%; object-fit:cover}
.tile-body{padding:44px 24px 24px; display:flex; flex-direction:column; gap:9px; flex:1}
.tile h3{font-size:23px; font-weight:700}
.tile .genre{font-weight:800; font-size:12.5px; letter-spacing:.05em; text-transform:uppercase}
.tile p{color:var(--text-2); font-size:14.5px; font-weight:600; flex:1}
.tile-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:6px; font-weight:800; font-size:13px; color:var(--text-3)}
.tile-foot .go{color:var(--lime)}

.t-red .tile-top{background:var(--c-red)}       .t-red .genre{color:var(--c-red-t)}
.t-yellow .tile-top{background:var(--c-yellow)} .t-yellow .genre{color:var(--c-yellow-t)}
.t-cyan .tile-top{background:var(--c-cyan)}     .t-cyan .genre{color:var(--c-cyan-t)}
.t-purple .tile-top{background:var(--c-purple)} .t-purple .genre{color:var(--c-purple-t)}
.t-blue .tile-top{background:var(--c-blue)}     .t-blue .genre{color:var(--c-blue-t)}

/* ============ SCHEDULE ============ */
.schedule{background:var(--surface-2); border-radius:var(--r-lg); padding:26px 24px; display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:20px}
.slot{display:flex; flex-direction:column; gap:2px; align-items:center; text-align:center}
.slot .time{font-family:var(--display); font-weight:700; font-size:27px; letter-spacing:-.02em; font-variant-numeric:tabular-nums}
.slot .who{font-weight:800; font-size:13px}
.slot .what{font-size:12.5px; color:var(--text-3); font-weight:600}

/* ============ GAMES ============ */
.games{display:grid; grid-template-columns:repeat(auto-fill,minmax(184px,1fr)); gap:13px}
.gcard{border:1px solid var(--line); background:var(--surface); border-radius:var(--r); padding:16px; cursor:pointer; text-align:left; display:flex; flex-direction:column; gap:7px; transition:transform .15s ease}
.gcard:hover{transform:translateY(-3px)}
.gcard h4{font-size:17px; font-weight:600; line-height:1.25}
.gbar{height:5px; border-radius:99px; width:34px}
.gmeta{display:flex; gap:10px; font-weight:800; font-size:12.5px; color:var(--text-3); margin-top:auto; padding-top:6px; font-variant-numeric:tabular-nums}
.done{color:var(--lime)}

/* ============ PAGE HEROES ============ */
.phero{border-radius:var(--r-lg); padding:34px 30px; color:#fff; position:relative; overflow:hidden; margin-top:26px; background:var(--c-red)}
.phero::after{content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.2) 1.5px,transparent 1.6px); background-size:15px 15px}
.phero > *{position:relative; z-index:1}
.phero h1{font-size:clamp(31px,5.5vw,50px); font-weight:700; letter-spacing:-.02em; margin-bottom:10px}
.phero .genre{font-weight:800; font-size:13px; letter-spacing:.08em; text-transform:uppercase; opacity:.92}

.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); gap:12px; margin-top:20px}
.stat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:15px 17px}
.stat dt{font-weight:800; font-size:11.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--text-3); margin-bottom:3px}
.stat dd{margin:0; font-family:var(--display); font-weight:700; font-size:26px; font-variant-numeric:tabular-nums; letter-spacing:-.02em}
.stat dd.sm{font-size:18px}

.eps{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px}
.ep{display:grid; grid-template-columns:40px 1fr auto; gap:14px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:11px 15px; font-weight:600}
.ep:hover{border-color:var(--c-red)}
.ep .n{font-family:var(--display); font-weight:700; font-size:14px; color:#fff; background:var(--c-red); border-radius:8px; text-align:center; padding:3px 0}
.ep .d{font-weight:800; font-size:13px; color:var(--text-3); font-variant-numeric:tabular-nums}

.faq{display:flex; flex-direction:column; gap:11px}
.qa{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:19px 22px}
.qa h4{font-size:18px; font-weight:600; margin-bottom:5px}
.qa p{color:var(--text-2); font-weight:600; font-size:14.5px}

/* ============ CTA ============ */
.cta{
  border-radius:var(--r-lg); padding:44px 30px; text-align:center; color:#fff;
  display:flex; flex-direction:column; align-items:center; gap:16px; position:relative; overflow:hidden;
  background:linear-gradient(140deg,var(--blue-deep),var(--blue) 55%,var(--blue-bright));
}
.cta::after{content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.18) 1.6px,transparent 1.7px); background-size:15px 15px}
.cta > *{position:relative; z-index:1}
.cta h2{font-size:clamp(26px,4.5vw,38px); font-weight:700; letter-spacing:-.02em}
.cta p{font-weight:700; opacity:.94; max-width:48ch}

/* ============ MACHINE VIEW ============ */
.machine{display:none; margin-top:26px}
body.mv-on .machine{display:block}
.machine h4{font-weight:800; font-family:var(--body); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--lime); margin-bottom:9px}
pre{margin:0; padding:17px; background:var(--surface); border:2px solid var(--lime); border-radius:var(--r); overflow-x:auto; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11.5px; line-height:1.6; color:var(--text-2)}
.note{font-weight:700; font-size:13px; color:var(--text-3); background:var(--surface-2); border-radius:var(--r-sm); padding:11px 15px; margin-top:14px}

footer{border-top:1px solid var(--line); margin-top:30px; padding-block:26px 44px; display:flex; gap:16px; flex-wrap:wrap; align-items:center; font-weight:700; font-size:13.5px; color:var(--text-3)}
footer a{color:var(--text-2); text-decoration:none}
footer a:hover{color:var(--lime)}

@media (max-width:720px){
  .hero{padding:30px 20px 0}
  .hero-in{grid-template-columns:1fr; justify-items:center; text-align:center; gap:8px}
  .hero-copy{padding-bottom:14px; align-items:center}
  .pill{align-self:center}
  .btnrow{justify-content:center}
  .hero-pic{width:min(230px,62vw)}
}
@media (max-width:560px){
  nav{order:3; margin-left:0; width:100%; justify-content:center}
  .tools{margin-left:auto}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important; animation:none!important}}


/* ---------- static-site adjustments ---------- */
a{color:inherit}
.topbar .wrap{gap:14px}
.logo{text-decoration:none}
nav a{
  color:var(--text-2); font-weight:700; font-size:14px;
  padding:8px 14px; border-radius:999px; text-decoration:none;
}
nav a:hover{background:var(--surface-2); color:var(--text)}
.langlink{
  display:inline-block; background:var(--surface-2); color:var(--text-2);
  font-weight:700; font-size:13px; padding:7px 15px; border-radius:999px; text-decoration:none;
}
.langlink:hover{color:var(--text)}
.tile{text-decoration:none}
.tile.off{opacity:.62}
.tile.off:hover{transform:none; box-shadow:var(--shadow-sm)}
.gcard{text-decoration:none}
.gcard h3{font-family:var(--display); font-size:17px; font-weight:600; line-height:1.25; margin:0}
.soon{background:var(--surface-2); color:var(--text-3); border-radius:999px; padding:3px 10px; font-size:11.5px; font-weight:800}
.ptag{font-weight:700; max-width:54ch}
.qa h3{font-family:var(--display); font-size:18px; font-weight:600; margin:0 0 5px}
.back{
  display:inline-flex; align-items:center; gap:7px; background:var(--surface-2); color:var(--text-2);
  font-weight:800; font-size:13px; padding:9px 16px; border-radius:999px; text-decoration:none;
}
.back:hover{color:var(--text)}
.more{margin-top:18px}
.more a{color:var(--lime); font-weight:800; text-decoration:none; font-size:15px}
.embed{
  margin-top:20px; border-radius:var(--r); overflow:hidden; border:1px solid var(--line);
  background:#000; aspect-ratio:16/9; max-width:100%;
}
.embed iframe{width:100%; height:100%; border:0; display:block}
footer{max-width:1120px; margin:30px auto 0; padding-inline:20px}
footer .logo{font-size:15px}
footer .logo .blob{width:16px;height:16px;box-shadow:0 0 0 3px var(--lime-soft)}
section:first-of-type{padding-top:30px}

/* ---------- crossover band: the other language's side of the site ---------- */
.crossover{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  background:linear-gradient(135deg,var(--c-blue),var(--blue-bright));
  border-radius:var(--r-lg); padding:22px 26px; color:#fff; text-decoration:none;
  transition:transform .16s ease, box-shadow .16s ease; box-shadow:var(--shadow-sm);
}
.crossover:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.crossover img{border-radius:50%; border:3px solid rgba(255,255,255,.55); flex:none}
.crossover > span{display:flex; flex-direction:column; gap:2px}
.crossover strong{font-family:var(--display); font-size:21px; font-weight:600}
.crossover span span{font-weight:700; font-size:14.5px; opacity:.93}
.crossover .arrow{
  margin-left:auto; background:rgba(255,255,255,.2); border-radius:999px;
  padding:10px 20px; font-weight:800; font-size:15px; white-space:nowrap;
}
@media (max-width:560px){
  .crossover{gap:14px}
  .crossover .arrow{margin-left:0; width:100%; text-align:center}
}
