/* DAPJISYNC — Neo Brutalism (flat · loud · printed) + light/dark */

:root {
  --paper: #f1ede2;
  --stock: #e6dfcf;
  --bone: #faf7f0;
  --ink: #0a0a0a;
  --signal: #ff2d1a;
  --acid: #d4f53c;
  --cobalt: #1a3cff;

  --bg: var(--paper);
  --card: var(--bone);
  --card-2: var(--stock);
  --input: #ffffff;
  --text: var(--ink);
  --muted: #5f594b;
  --line: var(--ink);
  --shadow-c: var(--ink);
  --ticker-bg: var(--ink);
  --ticker-tx: var(--acid);

  --bw: 3px;
  --sh: 6px;
  --font-display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0e0e10;
  --card: #17171a;
  --card-2: #212125;
  --input: #0e0e10;
  --text: #f1ede2;
  --muted: #a9a393;
  --line: #f1ede2;
  --shadow-c: #f1ede2;
  --ticker-bg: var(--acid);
  --ticker-tx: #0a0a0a;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before { /* tekstur titik ala cetakan */
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1.3px);
  background-size: 18px 18px;
  opacity: .07;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
::selection { background: var(--acid); color: #0a0a0a; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

/* ---------- Primitives ---------- */
.box {
  background: var(--card);
  border: var(--bw) solid var(--line);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-c);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; cursor: pointer;
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .02em; text-transform: uppercase;
  color: #fff; background: var(--signal);
  border: var(--bw) solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow-c);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-c); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--shadow-c); }
.btn.acid { background: var(--acid); color: #0a0a0a; }
.btn.cobalt { background: var(--cobalt); color: #fff; }
.btn.ghost { background: var(--card); color: var(--text); }
.btn.block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; flex: none;
  background: var(--card); color: var(--text); font-size: 1rem;
  border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c);
  transition: transform .1s, box-shadow .1s;
}
.icon-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow-c); background: var(--acid); color: #0a0a0a; }
.icon-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow-c); }
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c);
  transform: rotate(-2deg);
}
.t-cobalt { background: var(--cobalt); color: #fff; }
.t-signal { background: var(--signal); color: #fff; transform: rotate(3deg); }
.t-acid { background: var(--acid); color: #0a0a0a; }

.hl { display: inline-block; background: var(--acid); color: #0a0a0a; padding: 0 .12em; transform: rotate(-1deg); }

/* ---------- Color bar & Topbar ---------- */

.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--bw) solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.02em; }
.brand .logo {
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.1rem;
  background: var(--acid); color: #0a0a0a; border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c);
}
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .76rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 9px 12px; border: var(--bw) solid transparent;
}
.menu a:hover { border-color: var(--line); background: var(--acid); color: #0a0a0a; }
.topbar .theme-toggle { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 44px 0 48px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 18px;
}
.lead { font-size: 1.05rem; max-width: 46ch; margin-bottom: 24px; }

.search {
  display: flex; align-items: stretch; background: var(--input);
  border: var(--bw) solid var(--line); box-shadow: var(--sh) var(--sh) 0 var(--shadow-c);
}
.search .si { display: grid; place-items: center; padding: 0 16px; background: var(--acid); color: #0a0a0a; border-right: var(--bw) solid var(--line); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px; font-weight: 700; color: var(--text); }
.search input::placeholder { color: var(--muted); font-weight: 600; }
.search:focus-within { box-shadow: var(--sh) var(--sh) 0 var(--cobalt); }
.search .btn { border: 0; border-left: var(--bw) solid var(--line); box-shadow: none; transform: none; }
.search .btn:hover, .search .btn:active { transform: none; box-shadow: none; filter: brightness(1.08); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 10px; background: var(--card); border: var(--bw) solid var(--line);
}

.hero-fig { position: relative; margin: 0; background: #000; border: var(--bw) solid var(--line); box-shadow: 10px 10px 0 var(--shadow-c); }
.hero-fig img { width: 100%; height: auto; }
.stamp {
  position: absolute; top: -18px; right: -8px; transform: rotate(6deg);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase; font-size: .95rem;
  background: var(--signal); color: #fff; padding: 7px 14px;
  border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
}
.fig-cap {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px;
  background: var(--ticker-bg); color: var(--ticker-tx); border-top: var(--bw) solid var(--line);
  font: 700 .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ticker-bg); color: var(--ticker-tx); border-block: var(--bw) solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tick 32s linear infinite; }
.tg { display: inline-flex; }
.tg span {
  display: inline-flex; align-items: center; gap: 24px; padding: 13px 24px 13px 0;
  font: 700 .82rem var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
}
.tg span::after { content: ''; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.notice {
  display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 18px;
  background: var(--acid); color: #0a0a0a; font-weight: 700;
}
.notice.err { background: var(--signal); color: #fff; }

.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.num {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; flex: none;
  background: var(--cobalt); color: #fff; border: var(--bw) solid var(--line);
  font-family: var(--font-display); font-size: .95rem;
}
.sec-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.2rem, 3.2vw, 1.7rem); letter-spacing: -.01em; line-height: 1.1; }
.sec-ic { font-size: 1.3rem; margin-left: auto; }

.features, .how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature, .how-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ico {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.35rem;
  border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c);
}
.f1 .ico { background: var(--acid); color: #0a0a0a; }
.f2 .ico { background: var(--signal); color: #fff; }
.f3 .ico { background: var(--cobalt); color: #fff; }
.feature h3, .how-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; line-height: 1.15; }
.feature p, .how-card p { color: var(--muted); font-size: .93rem; }
.how-card .big {
  font-family: var(--font-display); font-size: 3.4rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--line);
}
.how-card .row-top { display: flex; align-items: flex-start; justify-content: space-between; }

/* Game grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; text-align: left; background: var(--card);
  border: var(--bw) solid var(--line); box-shadow: var(--sh) var(--sh) 0 var(--shadow-c);
  transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow-c); }
.card:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--shadow-c); }
.card img, .card .card-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--bw) solid var(--line); background: var(--card-2); }
.card .card-t { display: block; padding: 12px 12px 6px; font-family: var(--font-display); font-size: .85rem; line-height: 1.15; text-transform: uppercase; }
.card .card-go {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 4px 12px 14px;
  font: 700 .68rem var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase;
  background: var(--acid); color: #0a0a0a; padding: 3px 8px; border: 2px solid var(--line);
}
.skeleton {
  min-height: 250px;
  background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 10px, var(--card) 10px, var(--card) 20px);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .6; } }
.empty {
  grid-column: 1 / -1; padding: 26px; text-align: center;
  font: 700 .85rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
}
.empty i { display: block; font-size: 1.6rem; margin-bottom: 10px; color: var(--signal); }

.banners { display: flex; gap: 22px; overflow-x: auto; padding: 0 8px 14px 0; scroll-snap-type: x mandatory; }
.banner { flex: none; width: min(420px, 82%); aspect-ratio: 16 / 7; overflow: hidden; scroll-snap-align: start; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { margin-top: 72px; background: #0a0a0a; color: #f1ede2; border-top: var(--bw) solid var(--line); }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 40px 0 28px; }
.footer .brand .logo { border-color: #f1ede2; box-shadow: 3px 3px 0 #f1ede2; }
.footer p { color: #a9a393; margin-top: 12px; max-width: 42ch; }
.footer ul { display: grid; gap: 10px; }
.footer li { display: flex; align-items: center; gap: 12px; font: 700 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.footer li i { width: 30px; height: 30px; display: grid; place-items: center; background: var(--acid); color: #0a0a0a; border: 2px solid #f1ede2; }
.copy { grid-column: 1 / -1; padding-top: 18px; border-top: 2px dashed #3a3a3a; font: 700 .74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Game page ---------- */
.crumb { display: flex; align-items: center; gap: 10px; margin-top: 28px; font: 700 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: var(--bw) solid var(--line); background: var(--card); box-shadow: 3px 3px 0 var(--shadow-c); }
.crumb a:hover { background: var(--acid); color: #0a0a0a; }

.game-head { display: flex; align-items: center; gap: 20px; padding: 22px; margin-top: 18px; }
.game-head .gicon {
  width: 84px; height: 84px; flex: none; display: grid; place-items: center; font-size: 2.2rem; overflow: hidden;
  background: var(--acid); color: #0a0a0a; border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
}
.game-head .gicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-head h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.05; }
.game-head p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; margin-top: 26px; align-items: start; }
.steps { display: grid; gap: 22px; }
.step { padding: 22px; }
.step h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; }
.step h2 > i:last-child { margin-left: auto; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 7px; font: 700 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 13px 14px; outline: 0; font-weight: 700; color: var(--text);
  background: var(--input); border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
}
.field input:focus, .field select:focus { box-shadow: 4px 4px 0 var(--cobalt); }
.field input::placeholder { color: var(--muted); font-weight: 600; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
#denoms > .options, #channels.options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { #denoms > .options, #channels.options { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.opt { min-width: 0; overflow-wrap: anywhere; }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 12px 14px; cursor: pointer; color: var(--text); background: var(--card);
  font: 800 .9rem var(--font-body); line-height: 1.25;
  border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
  transition: transform .1s, box-shadow .1s, background .1s;
}
.opt .opt-ic { font-size: 1.05rem; }
.opt small { font: 700 .74rem var(--font-mono); opacity: .85; }
.opt .ck { position: absolute; top: 8px; right: 8px; display: none; }
.opt:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.opt.active { background: var(--acid); color: #0a0a0a; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-c); }
.opt.active .ck { display: block; }

.check-result { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; font-weight: 700; border: var(--bw) solid var(--line); background: var(--card-2); }
.check-result.ok { background: var(--acid); color: #0a0a0a; }
.check-result.err { background: var(--signal); color: #fff; }

.summary { position: sticky; top: 88px; padding: 22px; }
.summary h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; }
.sum-list { display: grid; gap: 0; margin-bottom: 18px; border: var(--bw) solid var(--line); }
.sum-list > div { padding: 10px 12px; border-bottom: 2px dashed var(--line); }
.sum-list > div:last-child { border-bottom: 0; }
.sum-list dt { font: 700 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sum-list dd { font-weight: 800; word-break: break-word; }
.note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Modal / Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); }
.panel { width: min(420px, 100%); padding: 26px; }
.panel h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 8px; }
.panel .btn { margin-top: 12px; }
.qr { width: fit-content; max-width: 100%; margin: 16px auto; padding: 10px; background: #fff; border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); }
.qr img { width: 260px; max-width: 100%; height: auto; }
.timer { font: 700 1.8rem var(--font-mono); font-variant-numeric: tabular-nums; }
.big-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; font-size: 2rem; background: var(--acid); color: #0a0a0a; border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 18px; font-weight: 800;
}
.toast.ok { background: var(--acid); color: #0a0a0a; }
.toast.err { background: var(--signal); color: #fff; }

/* ---------- Admin ---------- */
.admin-wrap { width: min(580px, 100% - 32px); margin: 36px auto; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-wrap .panel { width: 100%; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 18px; }
.switch strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }
.switch input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; cursor: pointer;
  width: 60px; height: 32px; background: var(--card-2); border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c);
}
.switch input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: var(--line); transition: transform .15s; }
.switch input[type="checkbox"]:checked { background: var(--acid); }
.switch input[type="checkbox"]:checked::after { transform: translateX(28px); background: #0a0a0a; }
textarea {
  width: 100%; min-height: 120px; padding: 13px 14px; resize: vertical; outline: 0; font: 700 .9rem var(--font-mono); color: var(--text);
  background: var(--input); border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
}
textarea:focus { box-shadow: 4px 4px 0 var(--cobalt); }

.dt-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; text-align: center; padding: 24px; background: #0a0a0a; color: var(--acid); font: 700 1.1rem var(--font-mono); text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
  .features, .how { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .menu { display: none; }
  .top-actions { margin-left: auto; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --sh: 5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .game-head { flex-direction: column; text-align: center; }
  .search .btn span { display: none; }
  .sec { margin-top: 44px; }
  .step, .feature, .how-card { padding: 18px; }
}

.banner:not(a) { cursor: default; }
.check-result strong { font-family: var(--font-display); font-weight: 400; }

/* ---------- Animasi masuk ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.rv:not(.in) { opacity: 0; transform: translateY(22px); }
.rv.in { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.7) rotate(-8deg); } 60% { transform: scale(1.08) rotate(2deg); } 100% { transform: none; } }
.topbar .logo { animation: pop .6s cubic-bezier(.2, .8, .2, 1) .1s backwards; }
@media (prefers-reduced-motion: reduce) {
  .rv:not(.in) { opacity: 1; transform: none; }
  .rv.in, .topbar .logo, .drawer.open > * { animation: none !important; }
  .drawer, .scrim { transition: none !important; }
}

/* ---------- Topbar actions & sidebar ---------- */
.top-actions { display: flex; align-items: center; gap: 12px; }
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .62); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(360px, 88vw);
  display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto;
  background: var(--bg); border-left: var(--bw) solid var(--line); box-shadow: -8px 0 0 var(--shadow-c);
  transform: translateX(108%); visibility: hidden;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
}
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; }
.drawer-head strong { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.drawer-group { margin-top: 10px; font: 700 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.d-link {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  background: var(--card); border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--shadow-c);
  transition: transform .1s, box-shadow .1s;
}
.d-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.d-link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow-c); }
.d-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 1.15rem; border: var(--bw) solid var(--line); }
.d-ic.acid { background: var(--acid); color: #0a0a0a; }
.d-ic.cobalt { background: var(--cobalt); color: #fff; }
.d-ic.signal { background: var(--signal); color: #fff; }
.d-tx { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.d-tx b { font-family: var(--font-display); font-weight: 400; font-size: .92rem; text-transform: uppercase; }
.d-tx small { color: var(--muted); font-weight: 600; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-go { font-size: .8rem; opacity: .6; }
.drawer.open > .d-link, .drawer.open > .drawer-group { animation: slideIn .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 60ms + 140ms); }
.drawer-foot { margin-top: auto; padding-top: 12px; font: 700 .72rem var(--font-mono); letter-spacing: .1em; color: var(--muted); text-align: center; }

/* ---------- Kategori produk ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 6px 14px 2px; margin-bottom: 4px; }
.cats button {
  flex: none; cursor: pointer; font: 700 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 12px; color: var(--text); background: var(--card);
  border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-c);
  transition: transform .1s, box-shadow .1s, background .15s;
}
.cats button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow-c); }
.cats button.active { background: var(--acid); color: #0a0a0a; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-c); }

/* ---------- Kategori beranda & tombol Lebih Banyak ---------- */
.snav { margin-top: 34px; margin-bottom: -18px; }
.snav.hidden { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.more-wrap.hidden { display: none; }
.more-btn { min-width: 220px; justify-content: center; }
#sections .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { #sections .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; } }

.card .card-ph { display: grid; place-items: center; font-size: 2.4rem; color: var(--muted); }
.more-end { font: 700 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- Kartu game: tinggi seragam, tombol & harga sejajar ---------- */
.card { height: 100%; }
.card .card-t {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  min-height: 2.3em; padding-bottom: 0; overflow-wrap: anywhere;
}
.card-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 8px 12px 14px; }
.card-foot .card-go { margin: 0; }
.card-price { font: 700 .74rem var(--font-mono); letter-spacing: -.02em; white-space: nowrap; }
.card-price.na { color: var(--muted); font-weight: 600; }
@media (max-width: 420px) {
  .card-foot { padding-inline: 10px; gap: 4px 6px; }
  .card-foot .card-go i { display: none; }
  .card-foot .card-go { padding: 3px 7px; }
  .card-price { font-size: .7rem; }
}
a.more-btn { text-decoration: none; }

/* ---------- Halaman Semua Produk ---------- */
#pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { #pgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; } }
.ptools { display: grid; gap: 16px; margin-bottom: 22px; }
.pcount { margin-bottom: 18px; font: 700 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- Pengumuman (dari admin) ---------- */
.announce { position: relative; align-items: flex-start; padding-right: 48px; }
.announce > i:first-child { margin-top: 3px; }
.announce > span { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.announce.a-info { background: var(--cobalt); color: #fff; }
.announce.a-promo { background: var(--acid); color: #0a0a0a; }
.announce.a-warn { background: var(--signal); color: #fff; }
.announce .a-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; color: inherit; background: transparent; border: 0; font-size: 1rem; opacity: .85; }
.announce .a-x:hover { opacity: 1; }
#anText { min-height: 90px; }
