/* DINGERO · navy pekat + kuning tiket bursa. Satu benda: lonceng kuningan 3D. */
:root {
  --ink: #050b1c;
  --navy: #0a1534;
  --navy-2: #0f1f4a;
  --cobalt: #2346c8;
  --line: rgba(150, 175, 255, 0.14);
  --line-2: rgba(150, 175, 255, 0.24);
  --text: #eef1fa;
  --muted: #98a4c6;
  --dim: #6874a0;
  --amber: #ffb547;
  --amber-2: #ffd38a;
  --up: #3ddc9e;
  --down: #ff6b6b;
  --cream: #f6ebd9;
  --radius: 14px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- panggung: lukisan latar (AI) + lapisan gelap + kanvas lonceng ---------- */
.scenes { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #050b1c; overflow: hidden; }
.scene {
  position: absolute; inset: -4%; opacity: 0;
  background-size: cover; background-position: center;
  will-change: opacity, transform;
}
.scene[data-scene="hall-a"] { background-image: url("media/scenes-v1/hall-a.webp"); opacity: 1; background-position: 40% 50%; }
.scene[data-scene="hall-b"] { background-image: url("media/scenes-v1/hall-b.webp"); }
.scene[data-scene="vault"] { background-image: url("media/scenes-v1/vault.webp"); background-position: 30% 50%; }
@media (max-width: 820px) {
  .scene[data-scene="hall-a"] { background-image: url("media/scenes-v1/hall-a-sm.webp"); }
  .scene[data-scene="hall-b"] { background-image: url("media/scenes-v1/hall-b-sm.webp"); }
  .scene[data-scene="vault"] { background-image: url("media/scenes-v1/vault-sm.webp"); background-position: 22% 50%; }
}
/* lapisan gelap: teks selalu menang, warna kobalt tetap terasa */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 11, 28, 0.74) 0%, rgba(5, 11, 28, 0.32) 45%, rgba(5, 11, 28, 0.1) 100%),
    linear-gradient(180deg, rgba(5, 11, 28, 0.3) 0%, rgba(5, 11, 28, 0.05) 38%, rgba(5, 11, 28, 0.8) 100%),
    radial-gradient(60% 50% at 75% 30%, rgba(35, 70, 200, 0.22), transparent 70%);
}
/* tiang-tiang aula (garis rambut), tanpa gambar */
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(150, 175, 255, 0.05) calc(12.5% - 1px) 12.5%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}
.backdrop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38vh;
  background: linear-gradient(180deg, transparent, rgba(255, 181, 71, 0.045));
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- navigasi ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 3vw, 36px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(5, 11, 28, 0.82); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.32em; font-size: 13px; font-stretch: 125%; }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 21, 52, 0.6);
  font-size: 12px; white-space: nowrap;
}
.chip .k { color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; }
.chip.ca { font-family: var(--mono); font-size: 11.5px; }
.chip.ca:hover { border-color: var(--amber); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 21, 52, 0.6); }
.icon-btn:hover { border-color: var(--amber); }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn-wallet { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--text); color: var(--ink); font-weight: 600; font-size: 13px; }
.btn-wallet.on { background: transparent; color: var(--text); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; }

/* ---------- hero ---------- */
main { position: relative; z-index: 2; }
.hero {
  position: relative; min-height: 100svh;
  padding: 92px clamp(16px, 3vw, 36px) 30px;
  display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr); gap: 8px;
}
.liveline { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }
.liveline b { color: var(--text); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61, 220, 158, 0.6); animation: pulse 1.8s infinite; }
.dot.pre { background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }

/* wordmark raksasa di BELAKANG lonceng (kanvas z-1, huruf z-0) */
.mark {
  position: relative; z-index: -1; margin: 0; line-height: 0.82;
  font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em;
  font-size: clamp(64px, 15.4vw, 300px);
  color: transparent;
  background: linear-gradient(180deg, #f3f5fc 0%, #c9d3f2 55%, rgba(201, 211, 242, 0.25) 100%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none; white-space: nowrap;
}
.mark .o { color: transparent; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(16px, 3vw, 48px); align-items: end; }
.lede { max-width: 520px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); margin: 6px 0 18px; line-height: 1.4; }
.lede .ink { color: var(--text); }

/* panel permainan */
.game {
  max-width: 640px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 31, 74, 0.72), rgba(8, 16, 40, 0.82));
  backdrop-filter: blur(10px);
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
}
.cell { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cell:nth-child(2n) { border-right: 0; }
.cell label, .lbl { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; margin-bottom: 6px; }
.big { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; font-stretch: 112%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big small { font-size: 0.42em; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.big.mono { font-family: var(--mono); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.clock.hot { color: var(--amber); }
.clock.ot { color: var(--down); }
.seat-who { font-family: var(--mono); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ava { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.game-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 0; }
.cta {
  flex: 1; height: 54px; border: 0; border-radius: 12px;
  background: var(--amber); color: #1a1000; font-weight: 700; font-size: 17px; font-stretch: 110%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 30px -10px rgba(255, 181, 71, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 181, 71, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.cta .min { font-weight: 500; font-size: 13px; opacity: 0.7; font-family: var(--mono); }
.cta[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.ghost { font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.ghost:hover { color: var(--text); }

/* kartu CA */
.ca-card {
  justify-self: end; width: min(100%, 380px);
  border-radius: var(--radius); padding: 18px;
  background: #0b1638; border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.ca-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; }
.pill.live { background: rgba(61, 220, 158, 0.12); color: var(--up); }
.pill.pre { background: rgba(255, 181, 71, 0.12); color: var(--amber); }
.tk { font-weight: 800; font-stretch: 125%; letter-spacing: 0.04em; }
.ca-addr {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); background: rgba(5, 11, 28, 0.6);
  font-family: var(--mono); font-size: 12.5px; word-break: break-all;
}
.ca-addr:hover { border-color: var(--amber); }
.ca-addr .copy { flex: none; font-size: 11px; color: var(--amber); }
.ca-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.btn-buy, .btn-line {
  height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 14px;
}
.btn-buy { background: var(--text); color: var(--ink); }
.btn-line { border: 1px solid var(--amber); color: var(--amber); }
.btn-buy.off { background: transparent; color: var(--amber); border: 1px solid var(--amber); pointer-events: none; }
.ca-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.ca-meta label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; margin-bottom: 3px; }
.follow { display: block; margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.follow:hover { color: var(--text); }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 14px; }
.stats { display: flex; gap: clamp(18px, 4vw, 56px); flex-wrap: wrap; }
.stat b { display: block; font-size: 20px; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.cue { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.cue i { width: 1px; height: 28px; background: linear-gradient(var(--amber), transparent); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- pita ticker ---------- */
.tape { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5, 11, 28, 0.75); overflow: hidden; height: 42px; }
.tape-track { display: flex; gap: 34px; white-space: nowrap; height: 100%; align-items: center; animation: tape 60s linear infinite; width: max-content; padding-left: 34px; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tape-item b { color: var(--text); font-weight: 500; }
.tape-item .up { color: var(--up); }
.tape-item .am { color: var(--amber); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- cerita (scrub) ---------- */
.chapter { position: relative; min-height: 118vh; display: flex; align-items: center; padding: 0 clamp(16px, 3vw, 36px); }
.chapter.r { justify-content: flex-end; }
.card {
  width: min(560px, 100%); padding: clamp(22px, 2.6vw, 34px);
  border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(10, 21, 52, 0.86), rgba(5, 11, 28, 0.9));
  backdrop-filter: blur(12px);
  will-change: transform, opacity;
}
.num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--amber); display: flex; align-items: center; gap: 10px; }
.num::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 0.98; margin: 14px 0 16px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; }
.h2 .w { display: inline-block; white-space: nowrap; }
.h2 .l { display: inline-block; opacity: 0.12; transition: opacity 0.25s; }
.h2 .l.on { opacity: 1; }
.h2 em { font-style: normal; color: var(--amber); }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 16.5px; }
.card p b { color: var(--text); font-weight: 600; }
.live-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 18px; }
.live-row > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.live-row > div:last-child { border-right: 0; }
.live-row b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-row span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }

/* bilah pembagian fee */
.split { margin-top: 18px; display: grid; gap: 8px; }
.split .bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; font-size: 12.5px; font-weight: 600; }
.split .bar div { display: flex; align-items: center; padding: 0 12px; white-space: nowrap; }
.split .a { background: var(--amber); color: #1a1000; flex: 60; }
.split .b { background: var(--navy-2); color: var(--muted); flex: 40; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0; }
.split small { color: var(--dim); font-family: var(--mono); font-size: 11px; }

/* momen HOLD */
.hold {
  margin-top: 8px; display: flex; align-items: center; gap: 18px;
}
.hold-btn {
  position: relative; width: 112px; height: 112px; border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 40%, rgba(255, 181, 71, 0.2), rgba(10, 21, 52, 0.9) 70%);
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--amber-2);
}
.hold-btn svg { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.hold-btn circle { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.hold-btn.done { border-color: var(--amber); }
.hold-note { color: var(--muted); font-size: 14px; max-width: 260px; }

/* jam babak tambahan */
.ot-clock { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.ot-clock .t { font-family: var(--mono); font-size: 34px; color: var(--down); min-width: 120px; }
.ot-clock .ev { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- papan pemenang ---------- */
.section { position: relative; z-index: 2; padding: clamp(70px, 9vw, 120px) clamp(16px, 3vw, 36px); background: linear-gradient(180deg, transparent, rgba(5, 11, 28, 0.92) 12%); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 8px 0 0; font-weight: 800; font-stretch: 118%; line-height: 1; }
.sec-head p { color: var(--muted); margin: 0; max-width: 460px; }
.board { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(10, 21, 52, 0.55); overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; padding: 10px 18px; border-bottom: 1px solid var(--line); }
td { padding: 12px 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.m { font-family: var(--mono); font-size: 12.5px; }
td.g { color: var(--amber); font-weight: 600; }
td a:hover { color: var(--amber); }
.empty { padding: 30px 18px; color: var(--muted); font-size: 14px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li .who { font-family: var(--mono); font-size: 12.5px; }
.feed li .amt { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--amber-2); }
.feed li .ago { color: var(--dim); font-size: 12px; min-width: 54px; text-align: right; }

/* ---------- aturan & kontrak ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; }
.kv div { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv div:nth-child(odd) { color: var(--muted); }
.kv div:nth-child(even) { text-align: right; font-weight: 600; }
.kv div:nth-last-child(-n + 2) { border-bottom: 0; }
.addr-list a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.addr-list a span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.addr-list a:hover span:last-child { color: var(--amber); }
.limits { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.limits li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; position: relative; }
.limits li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border: 1.5px solid var(--amber); border-radius: 50%; }
.limits b { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--amber); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* ---------- penutup & kaki ---------- */
.closer { text-align: center; padding: clamp(80px, 11vw, 150px) 16px; position: relative; z-index: 2; background: rgba(5, 11, 28, 0.94); }
.closer h2 { font-size: clamp(38px, 6vw, 88px); margin: 0 0 18px; font-weight: 800; font-stretch: 122%; line-height: 0.95; }
.closer h2 em { font-style: normal; color: var(--amber); }
.closer p { color: var(--muted); margin: 0 auto 28px; max-width: 480px; }
.closer .cta { max-width: 360px; margin: 0 auto; flex: none; width: 100%; }
footer { position: relative; z-index: 2; background: #03060f; border-top: 1px solid var(--line); padding: 36px clamp(16px, 3vw, 36px) 110px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal { color: var(--dim); font-size: 12.5px; margin-top: 22px; max-width: 900px; line-height: 1.6; }

/* ---------- HUD bawah (muncul setelah hero) ---------- */
.hud {
  position: fixed; left: 50%; bottom: 14px; z-index: 25; transform: translate(-50%, 140%);
  width: min(920px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5, 11, 28, 0.88); backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.hud.show { transform: translate(-50%, 0); }
.hud .h-ca { font-family: var(--mono); font-size: 12px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.hud .h-ca .tk { font-size: 12.5px; }
.hud .h-mid { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.hud .h-mid b { color: var(--text); font-weight: 500; }
.hud .cta { flex: none; height: 40px; padding: 0 18px; font-size: 14px; border-radius: 999px; }

/* ---------- dialog main ---------- */
dialog {
  width: min(460px, calc(100% - 24px)); border: 1px solid var(--line-2); border-radius: 18px; padding: 0;
  background: #0a1534; color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}
dialog::backdrop { background: rgba(2, 5, 14, 0.7); backdrop-filter: blur(4px); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h3 { margin: 0; font-size: 20px; font-stretch: 115%; }
.dlg-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: none; }
.dlg-b { padding: 18px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wlist { display: grid; gap: 8px; }
.wlist button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 11, 28, 0.5); text-align: left; }
.wlist button:hover { border-color: var(--amber); }
.wlist img { width: 26px; height: 26px; border-radius: 6px; }
.bal { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.amt-box { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: rgba(5, 11, 28, 0.6); }
.amt-box input { flex: 1; width: 100%; min-width: 0; height: 56px; border: 0; background: none; color: var(--text); font-size: 26px; font-family: var(--mono); outline: none; }
.amt-box span { color: var(--muted); font-weight: 600; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: 12.5px; font-family: var(--mono); }
.quick button:hover { border-color: var(--amber); color: var(--amber); }
.note { font-size: 13px; color: var(--muted); background: rgba(5, 11, 28, 0.5); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.step { font-size: 13.5px; color: var(--amber-2); min-height: 20px; }
.err { color: var(--down); font-size: 13.5px; }
.link-btn { background: none; border: 0; color: var(--amber); padding: 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- toast & spanduk pemenang ---------- */
.toasts { position: fixed; top: 74px; right: 16px; z-index: 40; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: rgba(10, 21, 52, 0.95); border: 1px solid var(--line-2); font-size: 13.5px;
  animation: tin 0.35s cubic-bezier(.2,.8,.2,1);
}
.toast b { font-family: var(--mono); font-weight: 500; }
@keyframes tin { from { transform: translateX(30px); opacity: 0; } }
.banner {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
}
.banner.show { opacity: 1; }
.banner .in { text-align: center; padding: 30px 40px; border-radius: 22px; background: rgba(5, 11, 28, 0.82); border: 1px solid var(--amber); backdrop-filter: blur(10px); }
.banner .k { font-family: var(--mono); letter-spacing: 0.2em; font-size: 12px; color: var(--amber); }
.banner .v { font-size: clamp(36px, 6vw, 72px); font-weight: 800; font-stretch: 120%; margin: 8px 0; }
.banner .w { font-family: var(--mono); color: var(--muted); }

/* ---------- layar sempit ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-row { grid-template-columns: 1fr; }
  .ca-card { justify-self: stretch; width: 100%; }
  .board, .rules, .limits, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 8px; }
  .chip.ca .k { display: none; }
  .icon-btn { width: 32px; height: 32px; }
  .btn-wallet { padding: 0 12px; }
  .chip.ca { padding: 0 10px; }
  .hero { padding-top: 78px; }
  .mark { font-size: 14.6vw; margin-top: 30vh; }
  .logo span { display: none; }
  .nav-r { gap: 6px; }
  .game { grid-template-columns: 1fr 1fr; }
  .cell { padding: 13px 14px; }
  .game-cta { flex-direction: column; align-items: stretch; }
  .ghost { text-align: center; border: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .cue { display: none; }
  .chapter { min-height: 100vh; align-items: flex-end; padding-bottom: 8vh; }
  .chapter.r { justify-content: flex-start; }
  .live-row { grid-template-columns: 1fr 1fr 1fr; }
  .live-row b { font-size: 15px; }
  .hud .h-mid { display: none; }
  .hud .h-ca .addr { display: none; }
  .ca-meta { grid-template-columns: 1fr 1fr 1fr; font-size: 12px; }
  td, th { padding-left: 12px; padding-right: 12px; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tape-track, .dot, .cue i { animation: none; }
  html { scroll-behavior: auto; }
}
