/* Noillirk — 夜游 dark direction
   Reference point: a midnight quiz show stage — deep navy room, spotlight on the board.
   One accent motif: glowing spotlight glow behind the game stage. */
:root{
  --bg:#0b0f1a; --card:#151b2b; --ink:#e8ecf5; --muted:#9aa4b8;
  --primary:#7c5cff; --accent:#22d3ee;
  --radius:12px;
  --shadow-1:0 1px 2px rgba(0,0,0,.4);
  --shadow-2:0 8px 24px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:Inter,system-ui,sans-serif; font-size:16px; line-height:1.6;
}
h1,h2,h3{font-family:"Space Grotesk",Inter,sans-serif; line-height:1.2}
h2{font-size:28px; margin:0 0 16px}
h3{font-size:18px; margin:0 0 8px}
p{margin:0 0 12px}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1120px; margin:0 auto; padding:0 20px}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

/* header */
.site-head{border-bottom:1px solid rgba(232,236,245,.08); background:rgba(11,15,26,.9)}
.head-in{display:flex; align-items:center; justify-content:space-between; height:56px}
.brand{display:flex; align-items:center; gap:10px; font-family:"Space Grotesk"; font-weight:700; font-size:18px; color:var(--ink)}
.brand-mark{width:14px; height:14px; border-radius:3px; background:linear-gradient(135deg,var(--primary),var(--accent))}
.nav{display:flex; gap:20px}
.nav a{color:var(--muted); font-size:14px}
.nav a:hover{color:var(--ink); text-decoration:none}

/* stage — the spotlight motif lives only here */
.stage-outer{padding:24px 0 8px}
.stage{
  position:relative; width:100%; aspect-ratio:16/9; max-height:640px;
  border-radius:var(--radius); overflow:hidden; background:#070a12;
  border:1px solid rgba(124,92,255,.35);
  box-shadow:0 0 60px rgba(124,92,255,.18), var(--shadow-2);
}
.cover{position:absolute; inset:0; display:flex; align-items:center; justify-content:center}
.cover-art{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.cover-in{position:relative; z-index:2; text-align:center; padding:24px; background:rgba(7,10,18,.72); border-radius:var(--radius); max-width:560px}
.cover-kick{font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin-bottom:8px}
.cover-h1{font-size:48px; margin:0 0 8px}
.cover-tag{color:var(--muted); font-size:16px; margin-bottom:16px}
.play-btn{
  display:inline-block; background:#6444e6; color:#fff; border:0; cursor:pointer;
  font:600 18px Inter; padding:14px 32px; min-height:48px; border-radius:10px;
}
.play-btn:hover{background:#5636c9}
.cover-hint{font-size:13px; color:var(--muted); margin-top:10px}
.loader{position:absolute; inset:0; display:none; flex-direction:column; gap:12px; align-items:center; justify-content:center; color:var(--muted)}
[data-gf-state="loading"] .loader{display:flex}
[data-gf-state="loading"] .cover{display:none}
[data-gf-state="playing"] .cover,[data-gf-state="playing"] .loader{display:none}
[data-gf-state="playing"] .stage{box-shadow:var(--shadow-2)}
.loader-dot{width:12px; height:12px; border-radius:50%; background:var(--primary); animation:bounce 1s infinite}
.loader-dot:nth-child(2){animation-delay:.15s; background:var(--accent)}
.loader-dot:nth-child(3){animation-delay:.3s}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.stage-bar{display:flex; gap:8px; align-items:center; margin-top:12px; flex-wrap:wrap}
.bar-btn{
  background:var(--card); color:var(--ink); border:1px solid rgba(232,236,245,.15);
  border-radius:8px; padding:8px 16px; font:600 14px Inter; cursor:pointer;
}
.bar-btn:hover{border-color:var(--primary)}
.bar-btn[aria-pressed="true"],.bar-btn[data-gf-liked]{background:var(--primary); border-color:var(--primary)}
.bar-msg{font-size:13px; color:var(--accent)}

/* sections */
.intro,.rules,.tips,.faq,.comments-sec{margin-top:48px}
.intro p,.faq p{max-width:70ch}
.steps{list-style:none; counter-reset:s; padding:0; margin:0; display:grid; gap:16px}
.steps li{
  counter-increment:s; background:var(--card); border-radius:var(--radius);
  padding:16px 16px 16px 56px; position:relative; box-shadow:var(--shadow-1);
}
.steps li::before{
  content:counter(s); position:absolute; left:16px; top:16px;
  width:28px; height:28px; border-radius:8px; background:#6444e6; color:#fff;
  display:flex; align-items:center; justify-content:center; font:700 15px "Space Grotesk";
}
.tips-list{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:16px}
.tips-list li{background:var(--card); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow-1)}
.faq-list{display:grid; gap:12px; max-width:800px}
.faq-item{background:var(--card); border-radius:var(--radius); padding:16px}
.faq-item p{margin:0; color:var(--muted)}

/* comments */
.comments{max-width:800px}
.comment{background:var(--card); border-radius:var(--radius); padding:14px 16px; margin-bottom:12px}
.c-head{display:flex; gap:10px; align-items:baseline; margin-bottom:6px}
.c-time{font-size:12px; color:var(--muted)}
.c-text{margin:0; color:var(--ink)}
.c-replies .comment{margin-top:10px; background:rgba(124,92,255,.08)}
.comments[data-gf-empty]::before{
  content:"No comments yet — be the first to say how far your crowd got.";
  display:block; color:var(--muted); font-size:14px; padding:8px 0;
}
.comment-form{display:grid; gap:8px; margin-top:16px}
.comment-form input,.comment-form textarea{
  background:#0d1220; border:1px solid rgba(232,236,245,.15); border-radius:8px;
  color:var(--ink); font:400 15px Inter; padding:10px 12px; max-width:520px;
}
.comment-form button{
  justify-self:start; background:#6444e6; color:#fff; border:0; border-radius:8px;
  padding:10px 20px; min-height:44px; font:600 15px Inter; cursor:pointer;
}
.comment-form button:hover{background:#5636c9}
.comment-msg{font-size:13px; color:var(--accent); margin:0}

/* footer */
.site-foot{margin-top:64px; border-top:1px solid rgba(232,236,245,.08); padding:32px 0; color:var(--muted)}
.foot-brand{font-family:"Space Grotesk"; font-weight:700; color:var(--ink); margin-bottom:12px}
.foot-nav{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:12px}
.foot-nav a{color:var(--muted); font-size:14px}
.foot-note{font-size:13px; max-width:70ch}
.foot-copy{font-size:13px}
.page-body{margin-top:48px}
.page-body h1{font-size:36px; margin-bottom:16px}
.page-body p,.page-body li{max-width:70ch}
.page-body table{border-collapse:collapse; max-width:100%}
.page-body th,.page-body td{border:1px solid rgba(232,236,245,.15); padding:8px 12px; text-align:left}
.page-cta{margin-top:24px}
.page-cta a{font-weight:600}

@media (max-width:640px){
  .cover-h1{font-size:32px}
  .tips-list{grid-template-columns:1fr}
  .stage{aspect-ratio:4/3}
  .nav{gap:12px}
  .nav a{font-size:13px}
}
