/* Kuis IDWS — room #indowebster. 4 themes, every text pair checked ≥ 4.5:1. */
:root, [data-theme="gelap"] {
  --bg: #0D1015; --panel: #151A22; --panel2: #11151C; --line: #2C3644; --line2: #3A4656;
  --text: #E8ECF1; --muted: #9AA6B5; --faint: #8D98A8;
  --acc: #C4F24A; --acc-bg: #C4F24A; --acc-ink: #0D1015; --warn: #FF9A4D; --blue: #6CB8FF; --blue-ink: #0D1015;
  --chip-acc: #1F2A1A; --chip-warn: #2A1F18;
  --n0: #FF7AB6; --n1: #6CB8FF; --n2: #FFD166; --n3: #B79CFF; --n4: #7DE2D1; --n5: #FF9A4D; --n6: #9BE15D;
  --focus: #6CB8FF; --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; --radius: 18px;
  color-scheme: dark;
}
[data-theme="terang"] {
  --bg: #F6F7F9; --panel: #FFFFFF; --panel2: #EEF1F4; --line: #C9D1DB; --line2: #9AA6B5;
  --text: #141A22; --muted: #4A5563; --faint: #556070;
  --acc: #3D6E00; --acc-bg: #C4F24A; --acc-ink: #141A22; --warn: #A84800; --blue: #1A5FA8; --blue-ink: #FFFFFF;
  --chip-acc: #E7F6C8; --chip-warn: #FBE6D6;
  --n0: #B0256B; --n1: #1A5FA8; --n2: #8A5A00; --n3: #6A3FC0; --n4: #007066; --n5: #A84800; --n6: #3D6E00;
  --focus: #1A5FA8; color-scheme: light;
}
[data-theme="kontras"] {
  --bg: #000; --panel: #000; --panel2: #000; --line: #FFF; --line2: #FFF;
  --text: #FFF; --muted: #E6E6E6; --faint: #D9D9D9;
  --acc: #FFFF00; --acc-bg: #FFFF00; --acc-ink: #000; --warn: #FFB000; --blue: #7FD4FF; --blue-ink: #000;
  --chip-acc: #000; --chip-warn: #000;
  --n0: #FF9ED2; --n1: #7FD4FF; --n2: #FFE066; --n3: #D2BFFF; --n4: #8CFFEF; --n5: #FFB000; --n6: #B6FF6B;
  --focus: #FFFF00; color-scheme: dark;
}
[data-theme="mirc"] {
  --bg: #FFF; --panel: #FFF; --panel2: #FFF; --line: #808080; --line2: #404040;
  --text: #000; --muted: #3F3F3F; --faint: #4A4A4A;
  --acc: #00007F; --acc-bg: #00007F; --acc-ink: #FFF; --warn: #7F0000; --blue: #00007F; --blue-ink: #FFF;
  --chip-acc: #FFF; --chip-warn: #FFF;
  --n0: #7F0000; --n1: #007A00; --n2: #00007F; --n3: #9C009C; --n4: #007F7F; --n5: #B35900; --n6: #4B4B00;
  --focus: #00007F; --sans: var(--mono); --radius: 2px; color-scheme: light;
}

html { font-size: calc(16px * var(--scale, 1)); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.45; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[data-theme="kontras"] :focus-visible { outline-width: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--acc-bg); color: var(--acc-ink); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }
.mono { font-family: var(--mono); }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.brand b { font-family: var(--mono); font-weight: 800; font-size: 1.25rem; color: var(--acc); }
.brand span { font-size: .875rem; color: var(--muted); }
.pill { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: .875rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.grow { flex: 1 1 auto; }
.reset { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.reset b { color: var(--warn); font-family: var(--mono); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.who b { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--acc-bg); color: var(--acc-ink); border-color: var(--acc-bg); font-weight: 700; }
.btn.blue { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.btn[aria-disabled="true"] { opacity: .85; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); font-family: var(--mono); font-weight: 400; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .875rem; }

/* layout */
.wrap { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 24px; max-width: 1440px; margin: 0 auto; }
main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
aside { flex: 1 1 300px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h2 { margin: 0 0 10px; font-size: 1rem; }

/* question */
.q { display: flex; gap: 24px; align-items: center; padding: 22px 26px; }
.q-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.q-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { padding: 4px 10px; border-radius: 6px; background: var(--acc-bg); color: var(--acc-ink); font-family: var(--mono); font-weight: 800; font-size: .8125rem; text-transform: uppercase; }
.prev { margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.prev[hidden] { display: none; }
.q-how { font-size: .875rem; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.feed:empty { display: none; }
.feed li::before { content: "› "; color: var(--acc); }
.result[hidden] { display: none; }
.result { border-top: 1px dashed var(--line2); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.result p { margin: 0; }
.res-win { font-size: 1.5rem; font-weight: 700; color: var(--acc); }
.res-ans { font-size: 1.25rem; font-weight: 700; }
.res-det { font-family: var(--mono); font-size: .9375rem; }
.res-next { font-size: .875rem; color: var(--muted); }
.bet { display: flex; flex-direction: column; gap: 8px; }
.bet-title { margin: 0; font-size: .875rem; color: var(--muted); }
.bet-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 8px; }
.bet-opts .btn[aria-pressed="true"] { background: var(--acc-bg); color: var(--acc-ink); border-color: var(--acc-bg); }
.bet-amts, .bet-score { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bet-score select { min-height: 40px; min-width: 56px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); }
.btn:disabled { cursor: default; }
.qline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-family: var(--mono); --kq: 1.0625rem; font-size: var(--kq); }
.qline .lbl { color: var(--muted); font-size: 1rem; }
.qline.big { --kq: clamp(1.75rem, 4.5vw, 2.875rem); font-weight: 800; line-height: 1.15; }
.qline.big .val { letter-spacing: .12em; }
.qline.hint { --kq: 1.375rem; }
.qline.hint .val { color: var(--warn); letter-spacing: .12em; }
.qline .val { overflow-wrap: anywhere; }
.qline.plain .val { color: var(--muted); font-size: .9375rem; }
.q.over #q-lines, .q.over #q-ui { opacity: .6; }
.typing { font-size: .875rem; color: var(--muted); min-height: 1.3em; }
.timer { flex: 0 0 auto; position: relative; width: 112px; height: 112px; }
.timer svg { display: block; }
.timer .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer .num b { font-family: var(--mono); font-size: 2.125rem; font-weight: 800; line-height: 1; }
.timer .num span { font-size: .75rem; color: var(--muted); }
.timer .track { stroke: var(--line); }
.timer .bar { stroke: var(--acc); transition: stroke-dashoffset .25s linear; }
.timer.low .bar { stroke: var(--warn); }

/* tap answers */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; margin-top: 4px; }
.btn.choice { justify-content: flex-start; min-height: 48px; text-align: left; font-weight: 500; background: var(--panel2); border-color: var(--line2); }
.btn.choice b { font-family: var(--mono); color: var(--acc); min-width: 1.2em; }
.btn.choice:disabled { cursor: default; opacity: .7; }
.btn.choice.picked { opacity: 1; outline: 2px solid var(--acc); outline-offset: 1px; }

/* log */
.log { flex: 1 1 auto; min-height: 320px; max-height: 52vh; overflow-y: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-family: var(--mono); font-size: .875rem; line-height: 1.55; display: flex; flex-direction: column; gap: 4px; }
.ln { display: flex; gap: 10px; align-items: baseline; }
.ln time { color: var(--faint); flex: 0 0 auto; }
.ln .nk { font-weight: 700; flex: 0 0 auto; }
.ln .tx { overflow-wrap: anywhere; min-width: 0; }
.ln.bot .nk, .ln.win .nk, .ln.info .nk, .ln.self .nk { color: var(--acc); }
.ln.win .tx { color: var(--acc); font-weight: 700; }
.ln.info .tx { color: var(--muted); }
.ln.self .tx { color: var(--muted); font-style: italic; }
.ln.self .tx::after { content: " (cuma kamu)"; color: var(--faint); font-style: normal; }
.ln.me .tx { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .ln.win { animation: pop .5s ease-out; }
  @keyframes pop { from { transform: translateX(-6px); opacity: .3; } to { transform: none; opacity: 1; } }
}
[data-motion="off"] .ln.win { animation: none; }

/* form */
.say { display: flex; flex-direction: column; gap: 10px; }
.say-row { display: flex; gap: 10px; }
.say input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); font-family: var(--mono); font-size: 1rem; }
.say input::placeholder { color: var(--faint); opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toast { font-size: .875rem; color: var(--warn); min-height: 1.2em; }

/* aside */
.me-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.me-top b { font-family: var(--mono); font-size: 1.125rem; }
.stats { display: flex; gap: 10px; margin: 12px 0; }
.stat { flex: 1; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.stat small { display: block; font-size: .75rem; color: var(--muted); }
.stat b { font-family: var(--mono); font-size: 1.5rem; }
.stat.combo b { color: var(--warn); }
.note { margin: 0; font-size: .8125rem; color: var(--muted); }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rank li { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: .875rem; }
.rank .pos { width: 1.6em; font-family: var(--mono); font-weight: 800; color: var(--muted); }
.rank li:nth-child(-n+3) .pos { color: var(--warn); }
.rank .nm { flex: 1; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .jb { font-size: .75rem; color: var(--muted); }
.rank .pt { width: 3.5em; text-align: right; font-family: var(--mono); font-weight: 700; }
.rank li.you { outline: 1px dashed var(--line2); outline-offset: 2px; border-radius: 6px; }
.empty { color: var(--muted); font-size: .875rem; }
.set { display: flex; flex-direction: column; gap: 12px; }
.set label, .set .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.set select, .set input[type="range"] { min-height: 40px; }
.set select { padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); }
.set input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--acc-bg); }
.foot { font-size: .8125rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.foot b { color: var(--text); }

/* cara main dialog */
dialog { max-width: 720px; width: calc(100% - 32px); max-height: 86vh; padding: 0; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / .6); }
.dlg { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { margin: 0; font-size: 1.375rem; }
.dlg h3 { margin: 6px 0 0; font-size: 1rem; }
.dlg ol, .dlg ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.game { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); font-size: .875rem; }
.game b { display: block; font-size: .9375rem; }
.game .p { font-family: var(--mono); color: var(--acc); font-size: .8125rem; }
.dlg .close { align-self: flex-end; }
kbd { font-family: var(--mono); padding: 1px 6px; border: 1px solid var(--line2); border-radius: 5px; font-size: .875em; }

/* phone keyboard open: only the round box + answer box */
.kb .top, .kb aside, .kb .log, .kb .typing, .kb .chips, .kb .prev { margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.prev[hidden] { display: none; }
.q-how { display: none; }
.kb .wrap { padding-top: 6px; }
.kb .q { padding: 10px 12px; }
.kb .timer, .kb .timer svg { width: 56px; height: 56px; }
.kb .timer .num b { font-size: 1.125rem; }
.kb .timer .num span { display: none; }

/* phone */
@media (max-width: 720px) {
  .top { padding: 10px 14px; gap: 8px 10px; }
  .reset span.long, .brand span { display: none; }
  .wrap { padding: 12px; gap: 12px; }
  .q { padding: 14px 16px; gap: 14px; align-items: flex-start; }
  .timer { width: 72px; height: 72px; }
  .timer svg { width: 72px; height: 72px; }
  .timer .num b { font-size: 1.375rem; }
  .log { min-height: 240px; max-height: 44vh; padding: 10px 12px; font-size: .8125rem; }
  .ln time { display: none; }
  .say { background: var(--bg); }
  .say input { min-height: 48px; }
  aside { max-width: none; }
}

/* missions, streak, confetti, register */
.missions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .875rem; }
.missions .row { display: flex; justify-content: space-between; gap: 8px; }
.missions .bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 4px; }
.missions .bar i { display: block; height: 6px; border-radius: 3px; background: var(--acc); }
.missions li.done .row span:first-child { text-decoration: line-through; color: var(--muted); }
.res-streak { font-weight: 700; color: var(--warn); }
.ln .nk[role="button"] { cursor: pointer; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .confetti i { animation: fall 1.6s ease-in forwards; }
  @keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }
}
[data-motion="off"] .confetti { display: none; }
#reg-nick label { display: block; margin-bottom: 6px; font-size: .9375rem; }
#reg-nick input { flex: 1; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); font-family: var(--mono); }
.btn.wa { background: #1FAF5A; color: #fff; border-color: #1FAF5A; }
.reg-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-code { font-size: 1.375rem; font-weight: 800; letter-spacing: .08em; margin: 0; padding: 10px 14px; border: 1px dashed var(--line2); border-radius: 12px; text-align: center; }
.ts:empty { display: none; }
.ts { min-height: 0; }

.bet.need-pick .bet-opts .btn { outline: 2px solid var(--warn); outline-offset: 2px; }
.bet-note { margin: .4rem 0 0; font-size: .85em; color: var(--warn); }
.bet-note:empty { display: none; }

/* per-game SEO pages + room footer links */
.seo { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
.seo h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.seo .lead { font-size: 1.05rem; line-height: 1.6; color: var(--text); margin: 0; }
.seo .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.seo .card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.seo .card h3 { margin: 14px 0 4px; font-size: 1rem; }
.seo .card p { margin: 0 0 8px; line-height: 1.6; }
.seo .contoh { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.5; }
.seo .mono { font-family: var(--mono); }
.crumb { font-size: .875rem; color: var(--muted); }
.crumb a, .seo-links a { color: var(--blue); }
.seo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.seo-foot { max-width: 1200px; margin: 24px auto; padding: 0 24px 32px; color: var(--muted); }
.seo-foot h2 { font-size: 1rem; margin: 0 0 8px; }
.kb .seo-foot { display: none; }
/* Tebak Emoji: the emoji ARE the question — big enough to read details (🧑‍🚒 vs 👷) */
.qline.emoji { align-items: center; }
.qline.emoji .val { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.2; letter-spacing: .08em; color: var(--text); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* @mentions */
.mention { color: var(--blue); font-weight: 700; }
.mention.me { color: var(--acc-ink); background: var(--acc-bg); border-radius: 4px; padding: 0 3px; }
.ln.mention-me { background: color-mix(in srgb, var(--acc-bg) 12%, transparent); border-left: 3px solid var(--acc-bg); padding-left: 6px; }
.ln .flag { margin-left: 6px; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: .8125rem; padding: 0 4px; min-height: 24px; }
.ln .flag:hover, .ln .flag:focus-visible { color: var(--warn); }
.mentions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.mentions[hidden] { display: none; }
.kb .ln .flag { display: none; }
/* rank card preview */
.card-img { display: block; width: min(100%, 280px); aspect-ratio: 9 / 16; margin: 8px auto 14px; border-radius: 12px; border: 1px solid var(--line); }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.card-acts .close { margin: 0; }
/* Tebak Bendera */
.qline.flagrow { align-items: center; }
.qline.flagrow .val { display: block; }
.flag { display: block; width: clamp(180px, 32vw, 300px); height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.flag.sq { width: clamp(120px, 21vw, 200px); }
.bet.closed { opacity: .55; }
/* Tampilan panel: collapsed by default (operator 2026-11-28) */
.set-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.set-card > summary::-webkit-details-marker { display: none; }
.set-card > summary h2 { margin: 0; }
.set-card > summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
.set-card[open] > summary::after { transform: rotate(180deg); }
.set-card[open] > summary { margin-bottom: 10px; }
.res-learn { margin: 6px 0 0; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 10%, transparent); border-radius: 8px; font-size: .95rem; }
/* radio sambil main */
.radio-st { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.radio-st .btn[aria-pressed="true"] { background: var(--acc-bg); color: var(--acc-ink); border-color: var(--acc-bg); }
.radio-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.radio-vol { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); flex: 1; }
.radio-vol input { flex: 1; min-width: 80px; }
.radio .note { margin: 8px 0 0; font-size: .8125rem; }
.kb .radio { display: none; }
.radio-now { margin-left: auto; margin-right: 10px; font-size: .8125rem; color: var(--acc); white-space: nowrap; }
/* desktop: chat log fills the column so it ends on the same line as the side panel (operator 2026-11-28) */
@media (min-width: 900px) {
  .wrap { align-items: stretch; }
  main .log { flex: 1 1 0; min-height: 320px; max-height: none; }
}
.pola { display: block; width: min(300px, 78vw); height: auto; }

/* ajak teman */
.ref-link { display: flex; gap: 8px; margin: 8px 0; }
.ref-link input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-family: var(--mono); font-size: .8125rem; }

/* Warnet IDWS: a row of booths (lit = level), billing bar = coins banking toward the 8 h cap */
.warnet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 20px 32px; }
.wn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wn-head h2 { margin: 0; font-size: 1.25rem; }
.wn-rate { font-family: var(--mono); font-size: .875rem; color: var(--muted); white-space: nowrap; }
.wn-rate b { color: var(--acc); font-weight: 700; }
.wn-floor { margin: 14px 0 4px; }
.wn-floor svg { display: block; width: 100%; height: auto; }
.wn-floor .scr { fill: var(--panel2); stroke: var(--line2); }
.wn-floor .on .scr { fill: var(--acc-bg); stroke: var(--acc-bg); }
.wn-floor .on .glow { fill: var(--acc-bg); opacity: .16; }
.wn-floor .next .scr { fill: none; stroke: var(--warn); stroke-dasharray: 3 3; }
.wn-floor .desk { stroke: var(--line2); }
.wn-floor .on .desk { stroke: var(--muted); }
.wn-pc { margin: 0 0 14px; font-size: .875rem; color: var(--muted); }
.wn-pc b { color: var(--text); font-weight: 600; }
.wn-bill { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.wn-bill-top { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; color: var(--muted); }
.wn-bill-top span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wn-meter { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wn-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--acc-bg); }
.wn-bill.full .wn-meter i { background: var(--warn); }
.wn-bill.full .wn-bill-top span:first-child { color: var(--warn); }
.wn-claim { min-width: 120px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wn-wallet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 16px; }
.wn-coins { display: flex; align-items: baseline; gap: 8px; }
.wn-coins b { font-family: var(--mono); font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wn-coins span { font-size: .875rem; color: var(--muted); }
.wn-up { flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 6px 14px; text-align: left; }
.wn-up small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.btn:disabled.wn-up, .btn:disabled.wn-claim { opacity: .5; cursor: not-allowed; }
.wn-board { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; }
.wn-board h3 { margin: 4px 0 10px; font-size: .9375rem; }
.wn-board .empty { padding: 8px 0; }
.wn-foot { margin-top: auto; padding-top: 14px; font-size: .75rem; }
.wn-locked { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 760px) {
  .warnet { grid-template-columns: 1fr; }
  .wn-board { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .wn-bill { grid-template-columns: 1fr; }
  .wn-claim { width: 100%; }
}
.wn-how { margin-top: 8px; font-size: .8125rem; }

/* the hidden attribute always wins over component display rules (.btn is inline-flex) */
[hidden] { display: none !important; }
.wn-head .wn-rate { margin-left: auto; }
.wn-help { min-height: 32px; padding: 0 10px; font-family: inherit; font-size: .8125rem; }
#how-extra:focus { outline: none; }

/* per-game pages /main/kuis/<slug>/: hero + room preview, IRC log examples, FAQ list, game chips */
.gp-top { justify-content: space-between; }
.gp-top .brand { margin-right: auto; }
.gp { max-width: 1120px; margin: 0 auto; padding: 20px 24px 56px; display: flex; flex-direction: column; gap: 56px; }
.gp > .crumb { margin-bottom: -40px; }
.gp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.gp-intro h1 { margin: 0 0 16px; font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.gp-intro .lead { margin: 0; max-width: 62ch; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.gp-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gp-facts li { flex: 1 1 110px; padding: 12px 16px 12px 0; display: flex; flex-direction: column; gap: 2px; }
.gp-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.gp-facts b { font-family: var(--mono); font-size: 1.125rem; color: var(--text); }
.gp-facts span { font-size: .8125rem; color: var(--muted); }
.gp-cta { margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gp-cta .btn { min-height: 52px; padding: 0 22px; font-size: 1rem; }
.gp-round { margin: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 10px; }
.gp-round-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gp-timer { position: relative; width: 48px; height: 48px; flex: none; }
.gp-timer svg { width: 48px; height: 48px; fill: none; stroke-width: 5; }
.gp-timer .tr { stroke: var(--line); }
.gp-timer .br { stroke: var(--acc-bg); stroke-linecap: round; }
.gp-timer b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .875rem; }
.gp-q { margin: 8px 0 0; font-family: var(--mono); font-size: 1.25rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.gp-q.big { font-size: clamp(1.5rem, 3.2vw, 2.25rem); letter-spacing: .04em; }
.gp-sub { margin: 0; font-family: var(--mono); font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
.gp-round figcaption { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line2); font-size: .875rem; line-height: 1.5; color: var(--muted); }
.gp-sec h2 { margin: 0 0 16px; font-size: 1.5rem; letter-spacing: -0.01em; }
.gp-log { list-style: none; margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--panel2); border: 1px solid var(--line); font-family: var(--mono); font-size: .9375rem; line-height: 1.55; display: flex; flex-direction: column; gap: 14px; }
.gp-log p { margin: 0; overflow-wrap: anywhere; }
.gp-log .gp-nick { color: var(--muted); }
.gp-log .gp-nick.bot { color: var(--acc); font-weight: 700; }
.gp-log .ans { padding-left: 2ch; color: var(--text); font-family: var(--sans, inherit); }
.gp-log .ans .gp-nick { font-family: var(--mono); }
.gp-faq { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.gp-faq div { padding: 16px 0; border-top: 1px solid var(--line); }
.gp-faq dt { font-weight: 700; margin-bottom: 6px; }
.gp-faq dd { margin: 0; line-height: 1.6; color: var(--muted); max-width: 65ch; }
.gp-games { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-games a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: .9375rem; }
.gp-games a:hover { border-color: var(--acc-bg); color: var(--acc); }
.gp-games a:focus-visible, .gp a.btn:focus-visible { outline: 2px solid var(--acc-bg); outline-offset: 2px; }
.gp-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line2); }
.gp-end p { margin: 0; font-size: 1.125rem; max-width: 52ch; }
.gp-legal { margin-top: -32px; }
.gp-legal a, .gp .crumb a { color: var(--blue); }
@media (max-width: 860px) {
  .gp { gap: 40px; padding: 16px 16px 40px; }
  .gp > .crumb { margin-bottom: -24px; }
  .gp-hero { grid-template-columns: 1fr; gap: 28px; }
  .gp-live { display: none; }
  .gp-legal { margin-top: -16px; }
}
@media (max-width: 420px) { .gp-top-cta { display: none; } .gp-facts li { flex-basis: 45%; } .gp-facts li:nth-child(3) { border-left: 0; padding-left: 0; } }
.card-alt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.card-msg { text-align: center; max-width: 46ch; margin: 0 auto; }
.card-msg:empty { display: none; }
