/* GTA-S · Great Tiger Advance Simulator — dark neon theme (purple + cyan from the logo).
   Text pairs are checked for ≥4.5:1 on --card. Colours live in tokens; components use tokens. */
:root {
  --bg: #0b0a1d; --bg-2: #100e28; --card: #16143a; --card-2: #1e1b47; --raise: #252158;
  --ink: #eeedff; --ink-2: #d4d1f5; --muted: #a9a5d0; --line: #2f2b63; --line-2: #3d3878;
  --brand: #8b5cf6; --brand-2: #22d3ee; --accent: #f5b544; --link: #c4b5fd;
  --good: #34d399; --warn: #fbbf24; --bad: #f87171;
  --good-bg: rgba(52, 211, 153, .13); --warn-bg: rgba(251, 191, 36, .13); --bad-bg: rgba(248, 113, 113, .14);
  --brand-bg: rgba(139, 92, 246, .16); --cyan-bg: rgba(34, 211, 238, .12);
  --radius: 14px; --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(3, 2, 15, .45);
  --glow: 0 0 0 1px rgba(139, 92, 246, .35), 0 6px 24px rgba(139, 92, 246, .25);
  --side-w: 248px; --side-w-min: 72px; --hud: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --head: #fff; --link-hover: #ddd6fe; --glass: rgba(16, 14, 40, .92); --page-glow: rgba(139, 92, 246, .18); --page-glow-2: rgba(34, 211, 238, .10);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, var(--page-glow), transparent 60%), radial-gradient(900px 500px at -10% 110%, var(--page-glow-2), transparent 60%);
  background-attachment: fixed; min-height: 100dvh; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-family: var(--hud); letter-spacing: .01em; color: var(--head); }
h1 { font-size: 1.9rem; margin: 0 0 .3rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.3rem; margin: 0 0 .8rem; font-weight: 700; }
h3 { font-size: 1.08rem; margin: 0 0 .5rem; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== app shell: sidebar + content ===== */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns .2s ease; }
body.nav-min .shell { grid-template-columns: var(--side-w-min) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; background: var(--glass); border-right: 1px solid var(--line); backdrop-filter: blur(12px); z-index: 30; overflow-y: auto; overflow-x: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 10px; }
.logo-link { display: block; line-height: 0; }
.logo-link img { width: 176px; height: auto; display: block; }
.logo-mini { display: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #22d3ee); color: #fff; font: 800 1rem/44px var(--hud); text-align: center; text-decoration: none; letter-spacing: .02em; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 10px; cursor: pointer; }
.icon-btn:hover { background: var(--card-2); color: var(--head); }
.icon-btn svg, .nav-link svg { width: 20px; height: 20px; flex: none; }
.nav-group { display: grid; gap: 2px; margin-top: 6px; }
.nav-label { font: 700 .7rem/1 var(--hud); letter-spacing: .16em; text-transform: uppercase; color: #8d88bd; padding: 10px 12px 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; position: relative; }
.nav-link:hover { background: var(--card-2); color: var(--head); }
.nav-link.on { background: linear-gradient(90deg, rgba(139, 92, 246, .32), rgba(139, 92, 246, .06)); color: var(--head); font-weight: 600; }
.nav-link.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand-2); }
.nav-link .badge { margin-left: auto; background: var(--brand-2); color: #06202a; font-size: .7rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card); }
.me-card .av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #0e7490); color: #fff; font: 700 .85rem var(--hud); }
.me-card .t { min-width: 0; }
.me-card b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card span { font-size: .74rem; color: var(--muted); }
.nav-link.logout { color: #fca5a5; width: 100%; border: 0; background: none; font: inherit; cursor: pointer; }
.nav-link.logout:hover { background: var(--bad-bg); color: #fecaca; }
body.nav-min .logo-link, body.nav-min .nav-label, body.nav-min .nav-txt, body.nav-min .me-card .t, body.nav-min .nav-link .badge { display: none; }
body.nav-min .logo-mini { display: block; }
body.nav-min .side-top { flex-direction: column; }
body.nav-min .nav-link { justify-content: center; padding: 8px; }
body.nav-min .nav-group { border-top: 1px solid var(--line); padding-top: 6px; }
body.nav-min .me-card { justify-content: center; background: none; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar-m { display: none; }
main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 26px 26px 40px; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px; }
.scrim { display: none; }
@media (max-width: 1023px) {
  .shell, body.nav-min .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 4, 18, .6); z-index: 25; }
  body.nav-min .logo-link, body.nav-min .nav-label, body.nav-min .nav-txt, body.nav-min .me-card .t { display: revert; }
  body.nav-min .logo-mini, .nav-collapse { display: none !important; }
  body.nav-min .nav-link { justify-content: flex-start; padding: 8px 12px; }
  .topbar-m { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 8px 14px; background: rgba(11, 10, 29, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
  .topbar-m img { height: 34px; width: auto; }
  .topbar-m .sp { flex: 1; }
  main { padding: 18px 14px 32px; }
}

/* public pages (no sidebar) */
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; width: 100%; max-width: 1280px; margin: 0 auto; }
.pub-top img { height: 46px; width: auto; display: block; }
.pub-top nav { display: flex; gap: 10px; align-items: center; }

/* ===== buttons & forms ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: 0 4px 16px rgba(124, 58, 237, .35); transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.12); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--card-2); }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: .85rem; }
.btn.accent { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #03222b; box-shadow: 0 4px 16px rgba(34, 211, 238, .28); }
.btn.accent:hover { color: #03222b; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); padding: 10px 12px; min-height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); width: 100%; }
input::placeholder, textarea::placeholder { color: #7f7aab; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); min-height: 0; }
select option { background: var(--card); }
textarea { min-height: 60px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -5000px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.choice { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 400 !important; background: var(--bg-2); }
.choice:hover { border-color: var(--line-2); }
.choice input { width: auto; margin-top: 4px; }
.choice span { display: grid; }
.choice small { color: var(--muted); font-size: .8rem; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: var(--glow); background: var(--brand-bg); }
.code-input { font: 700 1.7rem var(--hud); letter-spacing: .3em; text-transform: uppercase; text-align: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card.narrow, .card.auth { max-width: 640px; margin: 0 auto 18px; }
.card.auth { max-width: 520px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flash { max-width: 1280px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-bg); border: 1px solid var(--line-2); color: var(--ink); }
main .flash { margin: 0 0 12px; }
.flash.ok { background: var(--good-bg); border-color: rgba(52, 211, 153, .4); }
.flash.warn { background: var(--warn-bg); border-color: rgba(251, 191, 36, .4); }
.flash.bad { background: var(--bad-bg); border-color: rgba(248, 113, 113, .4); }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: 380px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); background-color: var(--card-2); }

.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.tbl tbody tr:hover td { background: rgba(139, 92, 246, .06); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.total td { font-weight: 700; border-top: 2px solid var(--line-2); }
.tbl tr.me-row td { background: var(--brand-bg); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--card-2); color: var(--ink-2); }
.pill.playing { background: var(--good-bg); color: var(--good); }
.pill.lobby { background: var(--warn-bg); color: var(--warn); }
.pill.finished { background: var(--brand-bg); color: var(--link); }
.scroll-x { overflow-x: auto; }

/* ===== landing + auth ===== */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 28px 0 10px; }
.hero h1 { font-size: 2.6rem; }
.hero-logo { width: min(520px, 100%); height: auto; display: block; margin: 0 0 10px -10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font: 700 .8rem var(--hud); color: var(--brand-2); }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(76, 29, 149, .45); }
.hero-map img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 26px 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 56px; position: relative; color: var(--ink-2); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #0891b2); color: #fff; font: 700 1rem var(--hud); }
.steps b { display: block; color: var(--head); }
.cast { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; background: linear-gradient(160deg, #1d0f4a, #0b0a1d 70%); overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: auto -20% -10% -20%; height: 60%; background: url(img/map/district-sm.webp) center/contain no-repeat; opacity: .55; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art img.logo { width: min(420px, 100%); height: auto; }
.auth-art ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: st; max-width: 420px; }
.auth-art li { counter-increment: st; display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.auth-art li::before { content: counter(st); width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--brand-bg); border: 1px solid var(--line-2); color: #fff; font: 700 .9rem var(--hud); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.auth-main .card.auth { width: 100%; margin: 0; }
.auth-main .mlogo { display: none; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-main { align-items: flex-start; }
  .auth-main .mlogo { display: block; width: 220px; height: auto; margin: 0 auto 14px; }
}

/* ===== dashboard (beranda) ===== */
.welcome { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: linear-gradient(120deg, rgba(124, 58, 237, .35), rgba(8, 145, 178, .18)); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; position: relative; overflow: hidden; }
.welcome .cast img { width: 64px; height: 64px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.qcard { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.qcard:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.qcard .ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--brand-bg); color: var(--link); }
.qcard .ic svg { width: 22px; height: 22px; }
.qcard b { display: block; }
.qcard span { font-size: .84rem; color: var(--muted); }
.guide-hint { display: flex; gap: 14px; align-items: center; background: var(--cyan-bg); border: 1px solid rgba(34, 211, 238, .35); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.guide-hint p { margin: 0; flex: 1; }

/* ===== avatars (asset pack characters) ===== */
.ava { display: inline-block; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3b3480, #1b1845 70%); border: 1px solid var(--line-2); object-fit: cover; object-position: 50% 18%; flex: none; vertical-align: middle; }
.ava.lg { width: 64px; height: 64px; }
.ava.sm { width: 28px; height: 28px; }
.ava.bot { filter: grayscale(.8) brightness(.8); }

/* ===== game ===== */
body.game main { max-width: 1480px; }
.app-loading { padding: 60px; text-align: center; color: var(--muted); }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.g-head h1 { font-size: 1.5rem; }
.g-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.round-badge { background: var(--brand-bg); border: 1px solid var(--line-2); color: var(--head); border-radius: 10px; padding: 6px 12px; font: 700 1rem var(--hud); }
.timer { font: 700 1.05rem var(--hud); font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 10px; background: var(--cyan-bg); color: var(--brand-2); border: 1px solid rgba(34, 211, 238, .35); }
.timer.late { background: var(--bad-bg); color: var(--bad); border-color: rgba(248, 113, 113, .45); }
/* HUD: sticky strip with the numbers players check every minute */
.hud { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; margin: -8px 0 14px; padding: 10px 14px; background: var(--glass); border: 1px solid var(--line-2); border-radius: 16px; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(3, 2, 15, .45); }
@media (max-width: 1023px) { .hud { top: 51px; } }
.hud-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hud-id .t { min-width: 0; }
.hud-id h1 { font-size: 1.3rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-id .sub { font-size: .8rem; color: var(--muted); }
.hud-stats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.hs { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; min-width: 78px; }
.hs span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hs b { font: 700 1.05rem/1.2 var(--hud); font-variant-numeric: tabular-nums; color: var(--head); }
.hs b.down { color: var(--bad); } .hs b.up { color: var(--good); }
.hud-go { display: inline-flex; align-items: center; gap: 8px; }
.hud-go .cnt { background: #fff; color: #4c1d95; border-radius: 99px; padding: 0 7px; font-weight: 800; font-size: .8rem; }
.hud-help { width: 40px; height: 40px; }
@media (max-width: 760px) { .hud { grid-template-columns: 1fr; position: static; } .hud-stats { justify-content: flex-start; } .hs { min-width: 0; flex: 1 1 30%; } }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 9px 14px; min-height: 40px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 9px; white-space: nowrap; }
.tabs button:hover { color: var(--head); background: var(--card); }
.tabs button.on { color: #fff; background: linear-gradient(135deg, rgba(139, 92, 246, .55), rgba(109, 40, 217, .5)); box-shadow: var(--glow); }
.tabs svg { width: 17px; height: 17px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font: 700 1.35rem var(--hud); font-variant-numeric: tabular-nums; color: var(--head); }
.kpi .d { font-size: .8rem; font-weight: 600; }
.up { color: var(--good); } .down { color: var(--bad); }
.brief { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.brief > * { min-width: 0; }
@media (max-width: 1100px) { .brief { grid-template-columns: 1fr; } }
.scenario { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: rgba(245, 181, 68, .08); padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.scenario.peluang { border-left-color: var(--good); background: var(--good-bg); }
.scenario.krisis { border-left-color: var(--bad); background: var(--bad-bg); }
.scenario .k { font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.narr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.narr h3 { margin: 0 0 6px; }
.narr ul { margin: 0; padding-left: 18px; }
.narr li.bad { color: #fca5a5; } .narr li.info { color: var(--ink-2); }
details.fold { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
details.fold > summary { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary svg, .hud svg { width: 18px; height: 18px; flex: none; color: var(--brand-2); }
details.fold > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold > .in { padding: 0 14px 12px; }
details.fold .narr, details.fold .brain, details.fold .newsfeed { margin: 0; border: 0; padding: 0; background: none; }

.office-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.office { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.office svg { width: 100%; height: auto; display: block; }
.room { cursor: pointer; }
.room .floor { transition: fill .4s; }
.room:hover .floor { filter: brightness(.96); }
.room.sel .floor { stroke: #7c3aed; stroke-width: 3; }
.office .room-ov:hover rect:first-child { stroke-width: 2.4; }
.office .cust { animation: bob 2.6s ease-in-out infinite; }
.office .cust:nth-child(3n) { animation-delay: -.9s; } .office .cust:nth-child(3n+1) { animation-delay: -1.7s; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.office .alarm { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.badge-new { animation: pulse 1.2s infinite; }
.room.red .alarm { animation: pulse 1.6s infinite; }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 96px; max-height: calc(100dvh - 110px); overflow: auto; }
.side h2 { margin-bottom: 4px; }
.room-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.room-head h2 { margin: 0; }
.private { background: var(--brand-bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 10px 0; }
.private b { display: block; margin-bottom: 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--link); }
.private ul { margin: 0; padding-left: 16px; }
.task { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--bg-2); }
.task.sc { border-color: rgba(245, 181, 68, .55); background: rgba(245, 181, 68, .07); }
.task h3 { margin-bottom: 2px; }
.task .desc { font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
.opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.opt:hover { background: var(--card-2); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }
.opt input { width: auto; margin-top: 4px; }
.opt .h { display: block; font-size: .8rem; color: var(--muted); }
.big-tag { font-size: .66rem; background: var(--bad-bg); color: #fca5a5; border-radius: 4px; padding: 1px 5px; font-weight: 700; margin-left: 4px; }
.task textarea { margin-top: 6px; font-size: .85rem; min-height: 44px; }
.submit-bar { position: sticky; bottom: -16px; background: var(--card); padding: 10px 0 4px; border-top: 1px solid var(--line); }
.done-box { background: var(--good-bg); border: 1px solid rgba(52, 211, 153, .35); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: .9rem; }
.seat-list { display: grid; gap: 6px; }
.seat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.seat > span:first-child { display: flex; gap: 8px; align-items: center; }
.seat.me { border-color: var(--brand); background: var(--brand-bg); }
.seat .st { font-size: .78rem; font-weight: 600; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.chart-card h3 { margin-bottom: 2px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

.lobby-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lseat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg-2); display: grid; gap: 6px; }
.lseat .lh { display: flex; gap: 10px; align-items: center; }
.lseat.taken { background: var(--card-2); }
.lseat.me { border-color: var(--brand); box-shadow: var(--glow); }
.code-big { font: 800 2.6rem var(--hud); letter-spacing: .25em; color: var(--brand-2); text-shadow: 0 0 24px rgba(34, 211, 238, .45); }

.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 800; }
.score-ring .hole { background: var(--card); width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; }
.score-ring .n { font: 800 2.8rem/1 var(--hud); }
.score-ring .p { font-size: .9rem; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 50px; gap: 10px; align-items: center; font-size: .9rem; }
.bar { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.warn-note { color: #fca5a5; margin: 0 0 6px; }

@media (max-width: 960px) {
  .office-wrap { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .hero { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; justify-items: center; }
  .bar-row { grid-template-columns: 110px 1fr 44px; }
  .welcome { grid-template-columns: 1fr; }
}

/* ===== district map (assets/district.js) ===== */
.dmap-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.dmap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #05051a; aspect-ratio: 3 / 2; }
.dmap > img.base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.dmap.night > img.base { filter: saturate(1.05); }
.dmap.alarm { box-shadow: 0 0 0 2px rgba(248, 113, 113, .55), 0 0 40px rgba(248, 113, 113, .25); }
.hot { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 6px; cursor: pointer; color: #fff; min-width: 48px; min-height: 48px; }
.hot .ring { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 6px rgba(34, 211, 238, .25), 0 0 18px rgba(34, 211, 238, .8); animation: ping 2s ease-out infinite; }
.hot.warn .ring { background: var(--warn); box-shadow: 0 0 0 6px rgba(251, 191, 36, .25), 0 0 18px rgba(251, 191, 36, .8); }
.hot.bad .ring { background: var(--bad); box-shadow: 0 0 0 6px rgba(248, 113, 113, .3), 0 0 18px rgba(248, 113, 113, .9); }
@keyframes ping { 70% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0), 0 0 18px rgba(34, 211, 238, .6); } }
.hot .lbl { background: var(--glass); border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 8px; font: 700 .8rem/1.2 var(--hud); letter-spacing: .03em; white-space: nowrap; text-align: center; }
.hot .lbl small { display: block; font: 500 .7rem 'Inter', sans-serif; color: var(--ink-2); letter-spacing: 0; }
.hot.sel .lbl { border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(34, 211, 238, .4); }
.hot:focus-visible .lbl { outline: 2px solid var(--brand-2); }
.dprop { position: absolute; transform: translate(-50%, -100%); width: 7%; height: auto; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.dchar { position: absolute; transform: translate(-50%, -100%); width: 6.5%; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); animation: bob 2.8s ease-in-out infinite; }
.dmap-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.dmap-bar span { background: var(--glass); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 10px; font-size: .74rem; color: var(--ink-2); }
.dmap-bar .bad { color: #fecaca; border-color: rgba(248, 113, 113, .5); } .dmap-bar .good { color: #a7f3d0; }
.dpanel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 96px; }
.dpanel .st { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.dpanel .st div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; }
.dpanel .st span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dpanel .st b { font: 700 1.05rem var(--hud); }
.dpanel .why { font-size: .86rem; color: var(--ink-2); }
.dpanel .who { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: .86rem; }
.legend-dots { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.legend-dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
@media (max-width: 1100px) { .dmap-wrap { grid-template-columns: 1fr; } .dpanel { position: static; } .hot .lbl small { display: none; } }

/* ===== manual / panduan ===== */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-toc { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.guide-toc a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.guide-toc a:hover { background: var(--card-2); color: var(--head); }
.guide section { scroll-margin-top: 80px; }
.guide .card h2 { display: flex; gap: 10px; align-items: center; }
.guide .num { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #0891b2); color: #fff; font: 700 .95rem var(--hud); flex: none; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.role-card { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.role-card p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; counter-reset: fl; padding: 0; list-style: none; }
.flow li { counter-increment: fl; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: var(--ink-2); }
.flow li::before { content: counter(fl) "."; display: block; font: 700 1.2rem var(--hud); color: var(--brand-2); }
.flow b { color: var(--head); }
.kbd { display: inline-block; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; font-size: .82rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .guide-toc { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* ===== v2: tantangan, berita, peringkat, scoreboard ===== */
.card.wide { max-width: 1040px; margin: 0 auto 18px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.form h2 { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.form h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
label.check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
label.check input[type=checkbox] { width: auto; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg label { display: flex !important; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-weight: 500 !important; background: var(--bg-2); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); color: var(--head); }
.seg input { width: auto; margin: 0; }
.pool-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg-2); }
.pool-head { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.pool-head .link { font-weight: 400; font-size: .8rem; }
.pool-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; }
.pick { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: .88rem; padding: 3px 0; cursor: pointer; }
.pick input { width: auto; margin-top: 3px; }
.pick span { display: grid; }
.pick small { color: var(--muted); font-size: .75rem; }
.pick.dim { opacity: .55; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 12px; }
details.ov { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
details.ov summary { cursor: pointer; font-weight: 600; }
details.ov[open] summary { margin-bottom: 10px; }
button.link { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.filter { margin: -6px 0 14px; }
.filter select { width: auto; display: inline-block; }

.arena-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 22px; }
.arena-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.arena-card:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.arena-card h3 { margin: 8px 0 4px; font-size: 1.15rem; }
.arena-top { display: flex; gap: 6px; align-items: center; }
.arena-top .small { margin-left: auto; letter-spacing: .08em; }
.arena-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; gap: 8px; }
.venue { color: var(--brand-2); font-weight: 600; font-size: .9rem; }
.arena-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 600; }
.play-box { border-top: 4px solid var(--brand-2); }
ul.plain { padding-left: 18px; margin: 6px 0; }

.tbl.lb tr.me td { background: var(--brand-bg); font-weight: 600; }
.tbl.lb tr.live td { color: var(--ink-2); }
.tbl.lb td.rank { font-weight: 800; width: 34px; }
.tbl.lb td.r1 { color: #fcd34d; } .tbl.lb td.r2 { color: #cbd5e1; } .tbl.lb td.r3 { color: #fdba74; }
.neg { color: var(--bad); }
.pred { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--card-2); color: var(--ink-2); }
.pred.unggul, .pred.luar { background: var(--good-bg); color: #6ee7b7; }
.pred.sehat { background: var(--cyan-bg); color: #67e8f9; }
.pred.stabil { background: rgba(163, 230, 53, .13); color: #bef264; }
.pred.bertahan, .pred.rentan { background: var(--warn-bg); color: #fcd34d; }
.pred.tertekan { background: rgba(251, 146, 60, .14); color: #fdba74; }
.pred.gagal, .pred.bangkrut, .pred.kondisi { background: var(--bad-bg); color: #fca5a5; }
.hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hof-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg-2); }
.hof-row { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: baseline; padding: 3px 0; font-size: .9rem; }
.hof-row .muted { font-size: .78rem; }

.co-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.newsfeed { margin-bottom: 14px; }
.nf-head { font: 700 .8rem var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 6px; }
.news { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid #6b6799; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.news h3 { font-family: 'Inter', sans-serif; font-size: 1.02rem; margin: 2px 0 4px; }
.news p { margin: 0 0 6px; color: var(--ink-2); }
.news-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.news-impact { font-size: .85rem; }
.news.tinggi { border-left-color: var(--bad); } .news.tinggi .news-impact b { color: var(--bad); }
.news.sedang { border-left-color: var(--warn); } .news.sedang .news-impact b { color: var(--warn); }
.news.positif { border-left-color: var(--good); } .news.positif .news-impact b { color: var(--good); }
.ticker { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin-bottom: 14px; overflow: hidden; }
.ticker .live { flex: none; background: var(--bad); color: #fff; font: 700 .72rem var(--hud); letter-spacing: .12em; border-radius: 6px; padding: 2px 8px; }
.ticker .run { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-size: .88rem; }

.sum { display: grid; gap: 8px; margin-bottom: 10px; }
.sum-room { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: .88rem; background: var(--bg-2); }
.sum-room:hover { border-color: var(--brand); }
.sum-room.unseen { background: var(--bad-bg); }
.sum-room ul { margin: 4px 0 0; padding-left: 16px; }
.sum-room li.chg b { color: var(--link); }
.sum-room .bang { color: var(--bad); font-weight: 800; }
.rank-hero { display: flex; gap: 18px; align-items: center; background: var(--brand-bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.rank-big { font: 800 2.8rem/1 var(--hud); color: var(--head); }
.rank-big span { display: block; font: 600 .8rem 'Inter', sans-serif; color: var(--muted); }
.rank-debrief { border-top: 4px solid #fcd34d; }

/* live scoreboard (projector) */
body.board .sidebar, body.board .topbar-m, body.board .foot { display: none; }
body.board .shell { grid-template-columns: 1fr; }
body.board main { max-width: none; padding: 0; }
.board-wrap { min-height: 100vh; padding: 22px 30px; }
.board-loading { padding: 80px; text-align: center; font-size: 1.4rem; color: var(--muted); }
.bh { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; margin-bottom: 20px; }
.bh h1 { font-size: 2.4rem; margin: 2px 0; color: var(--head); }
.bh-kicker { color: var(--accent); font-weight: 800; letter-spacing: .2em; font-size: .8rem; }
.bh-kicker::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4e; margin-right: 8px; animation: pulse 1.4s infinite; }
.bh-sub { color: var(--muted); }
.bh-tiles { display: flex; gap: 10px; }
.bh-tiles div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 88px; }
.bh-tiles b { display: block; font: 700 1.8rem var(--hud); color: var(--head); }
.bh-tiles span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bh-tiles .bad b { color: var(--bad); }
.bh-tools { text-align: right; display: grid; gap: 6px; justify-items: end; }
.bbtn { background: var(--card); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; text-decoration: none; font: inherit; font-size: .85rem; }
.bbtn.on { background: var(--accent); color: #1b1300; }
.board-status { font-size: .75rem; color: var(--muted); }
.bgrid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; }
.brank { display: grid; gap: 8px; align-content: start; }
.brow { display: grid; grid-template-columns: 52px 44px minmax(180px, 1.2fr) 2fr 90px 150px; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; transition: background .4s; }
.brow.top1 { background: linear-gradient(90deg, rgba(252, 211, 77, .25), var(--card) 60%); }
.brow.top2 { background: linear-gradient(90deg, rgba(203, 213, 225, .2), var(--card) 60%); }
.brow.top3 { background: linear-gradient(90deg, rgba(253, 186, 116, .2), var(--card) 60%); }
.brow.moved-up { animation: flashup 2s; } .brow.moved-down { animation: flashdown 2s; }
@keyframes flashup { 0% { background: #14532d; } }
@keyframes flashdown { 0% { background: #7f1d1d; } }
.bpos { font: 800 1.9rem var(--hud); color: var(--head); text-align: center; }
.brow.top1 .bpos { color: #fcd34d; } .brow.top2 .bpos { color: #cbd5e1; } .brow.top3 .bpos { color: #fdba74; }
.bmove { font-size: .8rem; font-weight: 800; }
.moved-up .bmove { color: var(--good); } .moved-down .bmove { color: var(--bad); }
.bname b { display: block; font-size: 1.1rem; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bname span { color: var(--muted); font-size: .82rem; }
.bbar { position: relative; height: 26px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.bbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7c3aed, #22d3ee); border-radius: 6px; transition: width .8s ease; }
.brow.live .bbar i { background: linear-gradient(90deg, #4c1d95, #8b5cf6); }
.bbar .pred { position: absolute; right: 6px; top: 4px; }
.bscore { font: 800 1.8rem var(--hud); text-align: right; color: var(--head); font-variant-numeric: tabular-nums; }
.bmeta { display: grid; text-align: right; font-size: .8rem; color: var(--muted); }
.bmeta .neg { color: var(--bad); }
.bempty { padding: 60px; text-align: center; font-size: 1.5rem; color: var(--ink-2); background: var(--card); border-radius: 12px; }
.bempty span { font-size: 1rem; color: var(--muted); }
.bempty b { color: var(--accent); font-size: 1.4rem; letter-spacing: .1em; }
.bmore { text-align: center; color: var(--muted); padding: 6px; }
.bside { display: grid; gap: 14px; align-content: start; }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.bcard h3 { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.bchamp { font-size: 1.3rem; } .bchamp b { color: var(--accent); } .bchamp span { display: block; font-size: .85rem; color: var(--muted); }
.bchart svg { width: 100%; height: auto; }
.btl { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: .85rem; }
.btl li { display: grid; gap: 2px; border-left: 2px solid var(--line-2); padding-left: 10px; }
.btl .tcase { color: var(--accent); } .btl .tnews { color: var(--ink-2); } .btl .tcalm { color: var(--muted); }
@media (max-width: 1100px) {
  .bgrid, .arena-layout { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 40px 34px 1fr 80px; }
  .brow .bbar, .brow .bmeta { display: none; }
  .bh { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
}

/* ---- V2.2: finance inputs, statements, secret intel, Game Master, events ---- */
.row2:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.secret { background: #07061a; border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: .88rem; }
.secret .muted { color: var(--muted); }
.secret ul { margin: 6px 0 0; padding-left: 18px; }
.secret li { margin-bottom: 4px; }
.fin-input .opt { margin-bottom: 4px; }
.fin-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 8px 0; }
.fin-fields label { font-size: .78rem; color: var(--muted); }
.fin-est { background: var(--card-2); border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
.fin-rating { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.fin-rating .grade { min-width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font: 800 1.3rem var(--hud); color: #04261b; background: var(--good); }
.fin-rating .g-B { background: var(--warn); color: #2a1d00; }
.fin-rating .g-C, .fin-rating .g-D { background: var(--bad); color: #2b0606; }
.gm-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--bg-2); }
.gm-box .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.gm-list { margin: 0; padding-left: 18px; font-size: .85rem; }
.outcome { margin: 0 0 6px; }
.league td.pos { font-weight: 800; font-size: 1.05rem; }
.league tr.gold td.pos { color: #fcd34d; } .league tr.silver td.pos { color: #cbd5e1; } .league tr.bronze td.pos { color: #fdba74; }
.case-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--card); }
.case-card .tag { display: inline-block; font-size: .72rem; background: var(--card-2); border-radius: 999px; padding: 2px 8px; margin-right: 4px; }
.case-card ul { padding-left: 18px; font-size: .88rem; }
.tl-list { font-size: .85rem; padding-left: 18px; }
@media (max-width: 640px) { .fin-fields, .row2:has(> :nth-child(3)) { grid-template-columns: 1fr; } }
.linkbtn { background: none; border: 0; padding: 0 0 0 6px; color: var(--bad); cursor: pointer; font: inherit; text-decoration: underline; width: auto; min-height: 0; }

/* ---- City view ---- */
.city-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.city-stage { position: relative; background: #dfe8d6; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.city-cv { display: block; width: 100%; height: 600px; cursor: grab; touch-action: none; }
.city-tip { position: absolute; z-index: 3; max-width: 230px; background: var(--glass); border: 1px solid var(--line-2); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: .8rem; line-height: 1.4; pointer-events: none; }
.city-tip b { display: block; margin-bottom: 2px; }
.city-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.city-zoom button { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--glass); font: 700 1rem system-ui; cursor: pointer; color: #fff; }
.city-side ul { padding-left: 18px; margin: 4px 0 10px; }
.city-ev li { margin-bottom: 3px; }
.city-grow { background: var(--good-bg); border-left: 4px solid var(--good); border-radius: 8px; padding: 8px 10px; margin: 8px 0 10px; }
@media (max-width: 900px) { .city-wrap { grid-template-columns: 1fr; } .city-cv { height: 420px; } }

/* ---- Shared city + boardroom ---- */
.city-stage.shared.dark { background: #13202f; }
.br-panel { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 330px; max-width: calc(100% - 24px); overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); padding: 12px 14px; z-index: 4; }
.br-head { display: flex; justify-content: space-between; gap: 8px; }
.br-head h3 { margin: 2px 0 0; }
.br-x { border: 0; background: var(--card-2); color: var(--head); width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; }
.br-svg { width: 100%; display: block; margin: 6px 0; }
.br-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.br-kpi { background: var(--bg-2); border-radius: 8px; padding: 6px 8px; }
.br-kpi span { display: block; font-size: .72rem; color: var(--muted); }
.br-kpi b.down { color: var(--bad); } .br-kpi b.up { color: var(--good); }
.shared .city-zoom { right: auto; left: 10px; }

/* board meeting (assets/meeting.js) */
.mt-bar { background: var(--warn-bg); border: 1px solid rgba(251, 191, 36, .35); border-left: 4px solid var(--warn); border-radius: 10px; padding: 8px 10px; margin: 0 0 12px; font-size: .9rem; }
.mt-bar.soft { background: var(--brand-bg); border-color: var(--line-2); border-left-color: var(--brand); }
.mt-item { border: 1px solid var(--line); border-left: 5px solid #6b6799; border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--bg-2); }
.mt-item.wait { border-left-color: var(--warn); background: rgba(251, 191, 36, .07); }
.mt-item.ok { border-left-color: var(--good); } .mt-item.rev { border-left-color: var(--brand); background: var(--brand-bg); }
.mt-item.no { border-left-color: var(--bad); } .mt-item.pass { border-left-color: #6b6799; }
.mt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-prop { margin: 4px 0 2px; }
.mt-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: auto; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }
h3 .mt-pill { margin-left: 8px; vertical-align: middle; }
.mt-pill.wait { background: var(--warn-bg); color: #fcd34d; } .mt-pill.ok { background: var(--good-bg); color: #6ee7b7; }
.mt-pill.rev { background: var(--brand-bg); color: var(--link); } .mt-pill.no { background: var(--bad-bg); color: #fca5a5; }
.mt-note { font-size: .85rem; background: var(--brand-bg); border-radius: 6px; padding: 5px 8px; margin-top: 6px; color: var(--ink); font-weight: 400; }
.mt-rule { background: var(--card-2); border-radius: 6px; padding: 5px 8px; margin-top: 6px; color: var(--ink-2); }
.mt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn.danger-t { color: #fca5a5; }
.mt-ta { width: 100%; min-height: 44px; margin-top: 6px; font-size: .85rem; }
.mt-ta.need { outline: 2px solid var(--bad); }
.mt-hint { margin: -4px 0 10px; }
.mt-rules li { margin-bottom: 4px; }
.mt-ed label { display: block; margin-bottom: 8px; }
.mt-ed select, .mt-ed input[type=number] { font-size: .82rem; padding: 3px 5px; min-height: 32px; max-width: 100%; }
.mt-ed input[type=number] { width: 80px; }
.mt-auto { display: flex !important; gap: 6px; align-items: flex-start; }
.mt-rule-box { border: 1px dashed var(--line-2); border-radius: 8px; padding: 8px; margin: 8px 0; background: var(--bg-2); }
.mt-rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mt-cond { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 5px; }
.mt-cond select[data-mt-f^="v."] { max-width: 210px; }
.mt-if { font-size: .72rem; font-weight: 800; color: var(--brand-2); letter-spacing: .04em; min-width: 38px; }
.mt-then { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.mt-x { border: 0; background: none; color: var(--bad); cursor: pointer; font-size: .9rem; padding: 2px 6px; }
.mt-ed .mt-route label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.mt-route { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 10px; }
.office-timer.late rect { fill: #c0392b; }

/* admin */
.adm-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.adm-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.adm-tabs a:hover { color: var(--head); background: var(--card); }
.adm-tabs a.on { background: linear-gradient(135deg, rgba(139, 92, 246, .55), rgba(109, 40, 217, .5)); color: #fff; }
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.adm-kpis .kpi { display: flex; flex-direction: column; }
.adm-kpis .kpi span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.adm-kpis .kpi b { font: 700 1.8rem var(--hud); }
.adm-kpis .kpi small { color: var(--muted); }
.adm-form .chk, label.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.adm-form .chk input { width: auto; }
.adm-menus { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 12px; }
.adm-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.adm-filter input, .adm-filter select { width: auto; }
.adm-teams { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.adm-team { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-team input[name=name] { width: 220px; }
.tbl tr.off td { opacity: .55; }
.adm-creds { border: 2px solid var(--warn); }
.adm-board td { vertical-align: middle; }
.adm-detail td { border-bottom: 0; padding-top: 0; }
.adm-detail summary { cursor: pointer; color: var(--link); }
@media (max-width: 760px) { .adm-kpis, .row3 { grid-template-columns: 1fr 1fr; } }

/* brain */
.brain { background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .06)); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.brain-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.brain-sig { background: var(--card-2); border: 1px solid var(--line-2); color: var(--link); border-radius: 99px; padding: 1px 9px; font-size: .76rem; font-weight: 600; }
.brain-sig.ok { color: #6ee7b7; border-color: rgba(52, 211, 153, .4); }
.brain-story { margin: 4px 0 8px; line-height: 1.55; }
.brain-voices { margin: 0 0 6px; padding-left: 18px; font-size: .9rem; }
.brain-voices li.buruk b { color: #fca5a5; }
.brain-voices li.baik b { color: #6ee7b7; }
.brain-if ul { margin: 2px 0 6px; padding-left: 18px; font-size: .88rem; }
.brain-q { font-style: italic; margin: 4px 0; }
.brain-coach summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .86rem; }

/* ---- participant: cari sesi, akun ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(139, 92, 246, .18); color: var(--link); border: 1px solid rgba(139, 92, 246, .35); }
.chip.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.find-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.find-bar .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.find-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1rem; padding: 8px 4px; }
.find-bar input:focus { outline: none; box-shadow: none; }
.find-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.find-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.find-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.find-card h2 { margin: 4px 0 0; font-size: 1.15rem; }
.find-top { display: flex; flex-wrap: wrap; gap: 6px; }
.find-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); margin: 4px 0 8px; }
.find-stats b { color: var(--ink); }
.find-join { display: flex; gap: 8px; margin-top: auto; }
.find-join .code-input.sm { flex: 1; min-width: 0; font-size: 1.15rem; letter-spacing: .2em; padding: 8px 10px; }
.find-ok { display: flex; gap: 8px; align-items: center; color: var(--good); font-size: .9rem; margin: auto 0 6px; }
.find-ok svg { width: 18px; height: 18px; flex: none; }
.locked-note { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; }
.locked-note .ic, .guide-hint .ic svg { width: 18px; height: 18px; }

/* ---- projector leaderboard (?p=layar) ---- */
body.proj { min-height: 100dvh; display: flex; flex-direction: column; padding: clamp(16px, 2.4vw, 40px); gap: clamp(12px, 2vh, 28px);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(139, 92, 246, .28), transparent 70%), var(--bg); }
.proj-head { display: flex; align-items: center; gap: 24px; }
.proj-title { flex: 1; min-width: 0; }
.proj-title p { margin: 0; color: var(--brand-2); font: 700 clamp(.9rem, 1.3vw, 1.3rem) var(--hud); letter-spacing: .12em; text-transform: uppercase; }
.proj-title h1 { margin: 0; font: 700 clamp(1.8rem, 3.6vw, 3.6rem)/1.05 var(--hud); letter-spacing: .02em; }
.proj-tools { display: flex; gap: 8px; }
.proj-tools svg { width: 18px; height: 18px; }
:fullscreen .proj-tools { display: none; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(12px, 2vh, 24px); }
.proj-chip { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: clamp(.9rem, 1.1vw, 1.2rem); }
.proj-chip.clock { border-color: var(--brand-2); color: var(--brand-2); }
.proj-chip.clock b { font: 700 1.25em var(--hud); font-variant-numeric: tabular-nums; }
.proj-empty { font-size: 1.6rem; color: var(--muted); text-align: center; margin-top: 10vh; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: clamp(10px, 1.6vw, 28px); margin-bottom: clamp(14px, 2.4vh, 32px); }
.pod { text-align: center; padding: clamp(14px, 2vh, 30px) 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.pod.p1 { min-height: 34vh; border-color: #f5c542; background: linear-gradient(180deg, rgba(245, 197, 66, .22), var(--card) 70%); box-shadow: 0 0 60px rgba(245, 197, 66, .18); }
.pod.p2 { min-height: 28vh; border-color: #c9d1e0; background: linear-gradient(180deg, rgba(201, 209, 224, .16), var(--card) 70%); }
.pod.p3 { min-height: 24vh; border-color: #d08a4e; background: linear-gradient(180deg, rgba(208, 138, 78, .18), var(--card) 70%); }
.pod-rank { width: 2.2em; height: 2.2em; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; font: 700 clamp(1.4rem, 2.4vw, 2.6rem) var(--hud); background: var(--bg-2); border: 2px solid currentColor; }
.p1 .pod-rank { color: #f5c542; } .p2 .pod-rank { color: #c9d1e0; } .p3 .pod-rank { color: #d08a4e; }
.pod-name { font: 700 clamp(1.2rem, 2.2vw, 2.4rem)/1.1 var(--hud); overflow-wrap: anywhere; }
.pod-score { font: 700 clamp(2.4rem, 5vw, 5.4rem)/1 var(--hud); color: var(--brand-2); margin: 8px 0; font-variant-numeric: tabular-nums; }
.pod-sub { color: var(--muted); font-size: clamp(.85rem, 1.1vw, 1.2rem); }
.pod.off, .proj-tbl tr.off { opacity: .5; }
.proj-tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: clamp(1rem, 1.35vw, 1.5rem); }
.proj-tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8em; padding: 0 14px; }
.proj-tbl td { background: var(--card); padding: 12px 14px; font-variant-numeric: tabular-nums; }
.proj-tbl td:first-child { border-radius: 12px 0 0 12px; font-family: var(--hud); font-size: 1.2em; }
.proj-tbl td:last-child { border-radius: 0 12px 12px 0; }
.proj-tbl .num { text-align: right; }
.proj-foot { margin-top: auto; text-align: center; color: var(--muted); font-size: clamp(.9rem, 1.2vw, 1.3rem); }
.proj-foot b { color: var(--brand-2); font-family: var(--hud); letter-spacing: .15em; font-size: 1.3em; }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } .pod.p1, .pod.p2, .pod.p3 { min-height: 0; } .proj-head { flex-wrap: wrap; } }

/* ---- full-screen map stage (assets/stage.js) ---- */
body.stage-on { overflow: hidden; }
body.stage-on .foot, body.stage-on .topbar-m { display: none; }
.stage { position: fixed; inset: 0; z-index: 40; background: #05051a; overflow: hidden; }
.stage-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(26px) brightness(.35) saturate(1.2); }
.stage-map { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-map .dmap-wrap { display: block; width: min(100vw, 150dvh); }
.stage-map .dmap { border-radius: 0; border: 0; box-shadow: none; }
.stage-map .dmap.alarm { box-shadow: inset 0 0 80px rgba(248, 113, 113, .3); }
.stage-map .legend-dots { display: none; }
.stage-map .dmap-bar { bottom: auto; top: calc(100% + 8px); left: 50%; right: auto; transform: translateX(-50%); justify-content: center; width: max-content; max-width: 90vw; }
.stage-map .dpanel { position: fixed; right: 76px; bottom: 16px; top: auto; width: 320px; max-height: 46dvh; overflow-y: auto; z-index: 3; background: var(--glass); backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.stage-top { position: absolute; top: 10px; left: 10px; right: 76px; z-index: 4; }
.stage-top .hud { margin: 0; position: static; }
.stage-tasks { position: absolute; left: 10px; top: 104px; width: 300px; max-height: calc(100dvh - 120px); overflow-y: auto; z-index: 3; padding: 12px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.stk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stk-head b { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.stk-head svg { width: 18px; height: 18px; color: var(--brand-2); }
.stk-count { font-size: .74rem; padding: 2px 8px; border-radius: 99px; background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.stk-count.ok { background: var(--good-bg); color: var(--good); }
.stk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stk button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; min-height: 52px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); font: inherit; transition: border-color .15s, background .15s; }
.stk button:hover, .stk button:focus-visible { border-color: var(--brand); background: var(--card-2); }
.stk .t { flex: 1; min-width: 0; display: grid; }
.stk .t b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk .t small { color: var(--muted); font-size: .76rem; }
.stk .st { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.stk.new .st, .stk.urgent .st { background: var(--warn-bg); color: var(--warn); }
.stk.urgent button { border-color: rgba(251, 191, 36, .6); }
.stk.done .st { background: var(--good-bg); color: var(--good); }
.stk.done button { opacity: .75; }
.stk.new button::before, .stk.urgent button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; animation: stkPulse 1.4s ease-in-out infinite; }
@keyframes stkPulse { 50% { opacity: .3; transform: scale(.7); } }
.stk-next { width: 100%; margin-top: 10px; justify-content: center; }
.stk-next svg { width: 16px; height: 16px; }
.stage-tools { position: absolute; right: 10px; top: 10px; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.stage-tools > * { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; }
.stage-tools > *:hover, .stage-tools > *:focus-visible { background: var(--card-2); border-color: var(--line-2); color: var(--head); }
.stage-tools svg { width: 20px; height: 20px; }
.stage-tools .dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.stage-room { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 6; background: var(--glass); border-left: 1px solid var(--line-2);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .5); display: flex; flex-direction: column; animation: stageIn .22s ease-out; }
.stage-room .side { flex: 1; overflow-y: auto; padding: 18px 18px 24px; position: static; max-height: none; border: 0; background: transparent; border-radius: 0; }
.stage-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.stage-room .room-head { padding-right: 48px; }
@keyframes stageIn { from { transform: translateX(30px); opacity: 0; } }
.stage-book { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 26, .65); backdrop-filter: blur(3px); }
.stage-book[hidden], .stage-room[hidden] { display: none; }
.sbook { width: min(760px, 100%); max-height: 88dvh; display: flex; flex-direction: column; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: stageIn .2s ease-out; }
.sbook header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sbook h2 { margin: 0; flex: 1; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.sbook h2 svg { width: 20px; height: 20px; color: var(--brand-2); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { padding: 6px 12px; min-height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font: 600 .85rem inherit; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
.sbook-body { padding: 16px; overflow-y: auto; display: grid; gap: 12px; }
.bk-q { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg-2); }
.bk-q.urgent, .bk-q.new { border-color: rgba(251, 191, 36, .45); }
.bk-q.done { opacity: .8; }
.bk-q header { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
.bk-q header div { flex: 1; display: grid; }
.bk-q header small { color: var(--muted); }
.bk-q ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bk-q li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--card); font-size: .88rem; }
.bk-q li span { color: var(--muted); font-size: .82rem; }
.bk-q li.sc { border-left: 3px solid var(--warn); }
.tabs .tab-stage { margin-left: auto; color: var(--brand-2); }
@media (max-width: 900px) {
  .stage-top { right: 66px; }
  .stage-top .hud { grid-template-columns: 1fr; padding: 8px 10px; }
  .stage-top .hud-id { display: none; }
  .stage-tasks { top: auto; bottom: 10px; left: 10px; right: 66px; width: auto; max-height: 38dvh; }
  .stage-map .dpanel { display: none; }
  .stage-tools > * { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .stk button::before, .stage-room, .sbook { animation: none !important; } }

/* ---- theme: terang (siang) / gelap (malam) — html[data-theme], set by the theme switch ---- */
html[data-theme="light"] {
  --bg: #f4f3fb; --bg-2: #ebe8f7; --card: #ffffff; --card-2: #f4f1fd; --raise: #e9e4fb;
  --ink: #1d1942; --ink-2: #3b3668; --muted: #5d5884; --line: #dedaf1; --line-2: #c8c1ea;
  --brand: #7c3aed; --brand-2: #0e7490; --accent: #b45309; --link: #6d28d9; --link-hover: #4c1d95;
  --good: #047857; --warn: #b45309; --bad: #dc2626;
  --good-bg: rgba(16, 185, 129, .12); --warn-bg: rgba(245, 158, 11, .14); --bad-bg: rgba(239, 68, 68, .1);
  --brand-bg: rgba(124, 58, 237, .1); --cyan-bg: rgba(14, 116, 144, .1);
  --shadow: 0 1px 2px rgba(30, 20, 80, .06), 0 8px 24px rgba(30, 20, 80, .08);
  --glow: 0 0 0 1px rgba(124, 58, 237, .3), 0 6px 18px rgba(124, 58, 237, .18);
  --head: #17133d; --glass: rgba(255, 255, 255, .9); --page-glow: rgba(124, 58, 237, .1); --page-glow-2: rgba(14, 165, 233, .08);
  color-scheme: light;
}
html[data-theme="light"] .nav-link.on { background: linear-gradient(90deg, rgba(124, 58, 237, .16), rgba(124, 58, 237, .03)); }
html[data-theme="light"] .tabs button.on, html[data-theme="light"] .adm-tabs a.on { color: #fff; }
html[data-theme="light"] .hot .lbl, html[data-theme="light"] .dmap-bar span { color: var(--ink); }
html[data-theme="light"] .dmap-bar .bad { color: #b91c1c; } html[data-theme="light"] .dmap-bar .good { color: #047857; }
html[data-theme="light"] .scrim, html[data-theme="light"] .stage-book { background: rgba(30, 24, 70, .35); }
html[data-theme="light"] .stage, html[data-theme="light"] .dmap { background: #cfe3f2; }
html[data-theme="light"] .stage-bg { filter: blur(26px) brightness(1.05) saturate(1.1); opacity: .7; }
html[data-theme="light"] body.proj { background: radial-gradient(1200px 600px at 50% -10%, rgba(124, 58, 237, .14), transparent 70%), var(--bg); }
html[data-theme="light"] .pod-rank { background: #fff; }
html[data-theme="light"] .hud-go .cnt { background: #fff; }

/* map: siang = brighter, warmer; malam = darker, blue night tint */
.dmap > img.base { transition: filter .5s ease; }
html[data-theme="light"] .dmap > img.base { filter: brightness(1.14) saturate(1.08) contrast(1.02); }
html:not([data-theme="light"]) .dmap > img.base { filter: brightness(.8) saturate(1.12); }
.dmap::after { content: ''; position: absolute; inset: 0; pointer-events: none; transition: background .5s ease; }
html:not([data-theme="light"]) .dmap::after { background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(10, 12, 60, .45)), linear-gradient(rgba(30, 40, 120, .16), rgba(30, 40, 120, .16)); }
html[data-theme="light"] .dmap::after { background: linear-gradient(180deg, rgba(255, 236, 200, .14), transparent 55%); }
.dmap > .hot, .dmap > .dmap-bar { z-index: 2; }

/* theme switch (sidebar, mobile topbar, stage toolbar) */
.theme-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.theme-sw button { width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-sw button svg { width: 16px; height: 16px; }
.theme-sw button[aria-pressed="true"] { background: var(--card); color: var(--brand); box-shadow: var(--shadow); }
.side-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: .8rem; color: var(--muted); }
body.nav-min .side-theme .lbl { display: none; }
body.nav-min .side-theme { justify-content: center; }
body.nav-min .side-theme .theme-sw { flex-direction: column; }
.theme-tog .i-sun, html[data-theme="light"] .theme-tog .i-moon { display: none; }
html[data-theme="light"] .theme-tog .i-sun { display: contents; }
.theme-tog .i-moon { display: contents; }
.theme-tog svg { width: 18px; height: 18px; }
.pub-top nav { display: flex; align-items: center; gap: 8px; }

/* seat invites */
.invite-box { margin-top: 16px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-2); }
.invite-box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.invite-box h3 svg { width: 18px; height: 18px; color: var(--brand-2); }
.invite-new { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-new select { flex: 1; min-width: 180px; }
.invite-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.invite-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.code-pill { display: inline-block; font: 700 1.05rem var(--hud); letter-spacing: .18em; padding: 2px 10px; border-radius: 8px; background: var(--brand-bg); color: var(--link); user-select: all; }
.biz-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.biz-form label { flex: 1 1 200px; font-size: .85rem; }
.adm-seats { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; }
.adm-seats legend { padding: 0 6px; font-weight: 600; }
.adm-seat-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* ---- talking bots on the map (assets/bots.js) ---- */
.dchar.bot { animation: botWalk 9s ease-in-out infinite; }
@keyframes botWalk { 0%, 100% { margin-left: 0; } 25% { margin-left: -1.2%; } 50% { margin-left: 0; margin-top: -.4%; } 75% { margin-left: 1.2%; } }
.dbot { position: absolute; z-index: 3; transform: translate(-50%, -100%); width: 6%; aspect-ratio: 1 / 2; border: 0; background: none; padding: 0; cursor: pointer; }
.dbot .bub { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px) scale(.9); width: max-content; max-width: min(260px, 40vw); padding: 7px 10px; border-radius: 12px 12px 12px 4px;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--ink); font: 500 .74rem/1.35 'Inter', sans-serif; text-align: left; box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.dbot .bub b { display: block; font: 700 .68rem var(--hud); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }
.dbot.warn .bub { border-color: rgba(251, 191, 36, .6); } .dbot.bad .bub { border-color: rgba(248, 113, 113, .7); }
.dbot .txt, .dbot .dots { display: none; }
.dbot.think .bub, .dbot.talk .bub, .dbot:hover .bub, .dbot:focus-visible .bub { opacity: 1; transform: translate(-50%, 0) scale(1); }
.dbot.think .dots { display: inline-flex; }
.dbot.talk .txt, .dbot:hover .txt, .dbot:focus-visible .txt { display: block; }
.dbot.think:hover .dots { display: none; }
.dots { gap: 3px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .4; animation: dotBlink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotBlink { 40% { opacity: 1; transform: translateY(-2px); } }
.dbot::after { content: '?'; position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 .7rem 'Inter'; opacity: .85; }
.bot-adv { margin-top: 12px; display: grid; gap: 6px; }
.bot-adv-h { font-size: .82rem; color: var(--muted); }
.bot-adv-i { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .8rem; cursor: pointer; }
.bot-adv-i:hover { border-color: var(--brand); }
.bot-adv-i.warn { border-left: 3px solid var(--warn); } .bot-adv-i.bad { border-left: 3px solid var(--bad); } .bot-adv-i.good { border-left: 3px solid var(--good); }
.botchat { display: grid; gap: 8px; margin: 12px 0; }
.botchat .msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.botchat .msg.bot { background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.botchat .msg.bot.warn { border-color: rgba(251, 191, 36, .55); } .botchat .msg.bot.bad { border-color: rgba(248, 113, 113, .6); }
.botchat .msg.me { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.botchat .typing { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.botq { display: flex; flex-wrap: wrap; gap: 6px; }
/* admin watch mode */
.watch-i { list-style: none; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.watch-i .wh { display: flex; align-items: center; gap: 10px; }
.watch-i .t { flex: 1; display: grid; } .watch-i .t small { color: var(--muted); font-size: .76rem; }
.watch-i.done .st { background: var(--good-bg); color: var(--good); } .watch-i.new .st { background: var(--warn-bg); color: var(--warn); }
.watch-i ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.watch-i ul li { display: grid; gap: 1px; font-size: .78rem; padding: 5px 8px; border-radius: 8px; background: var(--bg-2); }
.watch-i ul li span { color: var(--muted); } .watch-i ul li em { color: var(--ink-2); font-size: .74rem; }
@media (prefers-reduced-motion: reduce) { .dchar.bot { animation: none; } }
.watch-i .st { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }

/* ---------- Room: create, admin panel, participant start ---------- */
.btn.big { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.room-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: rs; }
.room-steps li { counter-increment: rs; color: var(--ink-2); font-size: .92rem; }
.room-steps li::before { content: counter(rs); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; }
.room-types { border: 0; padding: 0; margin: 0 0 14px; }
.room-types legend, .adm-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.room-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.room-type-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.room-type { position: relative; display: block; cursor: pointer; }
.room-type input { position: absolute; opacity: 0; inset: 0; }
.room-type span { display: block; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card-2); transition: border-color .15s, box-shadow .15s; }
.room-type b { display: block; margin-bottom: 4px; }
.room-type small { color: var(--muted); line-height: 1.45; display: block; }
.room-type:hover span { border-color: var(--line-2); }
.room-type input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.room-type input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.adm-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.adm-more, .adm-manual { margin: 6px 0 14px; }
.adm-more > summary, .adm-manual > summary { cursor: pointer; color: var(--link); }
.adm-manual > section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.room-panel { border-color: var(--line-2); }
.room-panel.is-open { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 0 1px rgba(34, 211, 238, .15), var(--shadow); }
.room-panel-main { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.room-state { margin: 0; font-weight: 700; font-size: 1.1rem; }
.room-state .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: middle; }
.room-state .dot.live { background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: roomPing 1.8s infinite; }
@keyframes roomPing { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.room-share { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.room-share .code-big { font-size: 2rem; }
.room-link { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.room-link > span { flex-basis: 100%; }
.room-link code { overflow-wrap: anywhere; }
.room-counts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.room-counts span { padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: .88rem; }
.room-lobby { text-align: left; }
.room-go { max-width: 620px; margin: 6px auto; text-align: center; padding: 10px 0; }
.room-go h2 { margin: 0 0 8px; }
.room-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.room-facts li { padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: .9rem; }
.room-go .btn.big { margin-top: 6px; }
.room-pulse { width: 46px; height: 46px; margin: 10px auto 0; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand-2); animation: roomSpin 1.2s linear infinite; }
@keyframes roomSpin { to { transform: rotate(360deg); } }
.room-seats { margin-top: 14px; }
.room-seats > summary { cursor: pointer; color: var(--link); }
@media (prefers-reduced-motion: reduce) { .room-pulse, .room-state .dot.live { animation: none; } }
@media (max-width: 640px) { .room-share { grid-template-columns: 1fr; } .room-panel-main .btn.big { width: 100%; } }

/* ---------- Panduan singkat ---------- */
.g-hero { max-width: 760px; margin: 4px 0 18px; }
.g-hero h1 { margin: 4px 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; text-wrap: balance; }
.g-hero p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.g-h { margin: 0 0 14px; }
.g-note { margin: 12px 0 0; }
.g-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: gs; }
.g-steps li { counter-increment: gs; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.g-steps li::after { content: counter(gs); position: absolute; top: 12px; right: 14px; font: 700 1.6rem var(--hud); color: var(--line-2); }
.g-steps span:not(.g-ic) { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.g-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 10px; background: rgba(139, 92, 246, .18); color: var(--link); }
.g-ic svg { width: 20px; height: 20px; }
.g-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-loop > div { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.g-loop > div:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--brand-2); font-weight: 700; z-index: 1; }
.g-loop b { font: 700 1.1rem var(--hud); color: var(--brand-2); }
.g-loop small { color: var(--muted); }
.g-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.g-role { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.g-role img { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; }
.g-role div { display: flex; flex-direction: column; gap: 2px; }
.g-role span { color: var(--muted); font-size: .9rem; }
.g-bars { display: grid; gap: 8px; max-width: 620px; }
.g-bar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px; gap: 10px; align-items: center; font-size: .92rem; }
.g-bar i { height: 10px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.g-bar i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.g-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.g-chips span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); font-size: .88rem; }
.g-chips small { color: var(--muted); }
.g-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.g-rules > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--card-2); border-radius: 0 12px 12px 0; }
.g-rules span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.g-admin { border-color: var(--line-2); }
@media (max-width: 720px) {
  .g-loop { grid-template-columns: 1fr 1fr; }
  .g-loop > div:nth-child(2)::after { content: none; }
  .g-bar { grid-template-columns: 1fr 44px; }
  .g-bar i { grid-column: 1 / -1; grid-row: 2; }
}
