/* =========================================================
   Jarangketemu — tema Arcade Retro (dari brand kit)
   Plum untuk suasana main malam, coral untuk aksi utama,
   krem supaya hangat dan mudah dibaca.
   ========================================================= */
:root {
  color-scheme: dark;
  --ink: #260C22;
  --ink-2: #1B0818;
  --plum: #391332;
  --panel: #502345;
  --panel-2: #5E2B52;
  --cream: #FFF0CD;
  --muted: #E4C7D5;
  --coral: #FF6259;
  --coral-hover: #FF8D84;
  --coral-active: #F95650;
  --coral-deep: #B8343A;
  --pink: #F7A9B6;
  --gold: #FFD78A;
  --mint: #FFBE98;
  --line: #A67395;
  --line-soft: #6E3B63;
  --disabled: #613B56;

  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-control: 12px;
  --radius-card: 24px;
  --focus: 3px solid var(--gold);
  --motion-fast: 160ms;
  --motion-enter: 240ms;
  --ease: cubic-bezier(.2,.75,.25,1);
  --hard: 0 6px 0 var(--ink-2);
  --hard-lg: 0 10px 0 var(--ink-2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(255, 98, 89, .16), transparent 45%),
    radial-gradient(rgba(166, 115, 149, .22) 1px, transparent 1.5px);
  background-size: auto, 22px 22px;
  overflow-x: hidden;
}
/* garis-garis CRT tipis di seluruh layar */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.09) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--cream); }
.retro-title { letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }
:focus-visible { outline: var(--focus); outline-offset: 4px; }
.container { width: min(1184px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* ===== Tombol ===== */
.btn {
  --c: var(--coral); --c-hover: var(--coral-hover); --c-dark: var(--coral-deep); --c-text: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  border-radius: var(--radius-control); border: 2px solid var(--ink-2); cursor: pointer;
  background: var(--c); color: var(--c-text); text-decoration: none;
  box-shadow: 0 5px 0 var(--c-dark), 0 5px 0 2px var(--ink-2);
  transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease), background var(--motion-fast);
}
.btn:hover { background: var(--c-hover); transform: translateY(-2px); box-shadow: 0 7px 0 var(--c-dark), 0 7px 0 2px var(--ink-2); color: var(--c-text); }
.btn:active { background: var(--coral-active); transform: translateY(4px); box-shadow: 0 1px 0 var(--c-dark), 0 1px 0 2px var(--ink-2); }
.btn:disabled { background: var(--disabled); color: var(--muted); box-shadow: none; transform: none; cursor: not-allowed; border-color: var(--line-soft); }
.btn-ghost, .btn-outline {
  --c: transparent; --c-hover: rgba(247,169,182,.12); --c-text: var(--cream); --c-dark: transparent;
  border: 2px solid var(--pink); box-shadow: none;
}
.btn-ghost:hover, .btn-outline:hover { box-shadow: none; }
.btn-ghost:active, .btn-outline:active { background: rgba(247,169,182,.2); box-shadow: none; }
.btn-lav { --c: var(--pink); --c-hover: #FBC3CC; --c-dark: #B8667A; }
.btn-mint { --c: var(--mint); --c-hover: #FFD6BD; --c-dark: #C9744F; }
.btn-gold { --c: var(--gold); --c-hover: #FFE3AE; --c-dark: #B48C3F; }
.btn-sm { min-height: 44px; font-size: .92rem; padding: .5em 1em; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(38, 12, 34, .88); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { width: 230px; height: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  min-width: 44px; height: 44px; border-radius: var(--radius-control); border: 2px solid var(--line);
  background: var(--plum); color: var(--cream); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center;
  transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast);
}
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.icon-btn.off { opacity: .55; }
.icon-btn.on-air { border-color: var(--mint); }
.sound-box { display: flex; gap: 6px; }
.nav-hello { font-weight: 700; color: var(--muted); font-size: .95rem; }

/* ===== Jendela retro (motif dari ilustrasi) ===== */
.win {
  position: relative; background: var(--plum); border: 2px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--hard-lg); padding: 52px 24px 24px; overflow: hidden;
}
.win::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34px; border-bottom: 2px solid var(--line-soft);
  background:
    radial-gradient(circle at 22px 17px, var(--coral) 0 5px, transparent 5.5px),
    radial-gradient(circle at 40px 17px, var(--pink) 0 5px, transparent 5.5px),
    radial-gradient(circle at 58px 17px, var(--gold) 0 5px, transparent 5.5px),
    var(--panel);
}
.win-title { position: absolute; top: 6px; right: 16px; font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .08em; }

/* ===== Hero ===== */
.hero { position: relative; padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5em; padding: .35em .9em; border-radius: 999px;
  background: var(--panel); border: 2px solid var(--line); color: var(--gold); font-weight: 700; font-size: .85rem; margin-bottom: 18px;
  font-family: var(--mono); letter-spacing: .04em;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; }
.hero h1 .hl { display: inline-block; margin-top: .1em; }
.hl { color: var(--coral); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.join-box { background: var(--plum); border: 2px dashed var(--line); border-radius: var(--radius-card); padding: 16px 18px; max-width: 470px; }
.join-box label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
.join-row { display: flex; gap: 10px; }
.code-input {
  flex: 1; min-width: 0; min-height: 48px; font-family: var(--mono); font-size: 1.15rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .55em 1em; border-radius: var(--radius-control); border: 2px solid var(--line); background: var(--ink); color: var(--cream);
}
.code-input::placeholder { letter-spacing: .06em; text-transform: none; color: var(--muted); opacity: .6; }
.code-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(255,215,138,.25); }
.hero-solo { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.hero-art { position: relative; }
.scene-hint { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 12px; font-family: var(--mono); }

/* ===== Ilustrasi berlapis ===== */
.scene {
  position: relative; width: 100%; aspect-ratio: 1440 / 880; border-radius: 28px; overflow: hidden;
  box-shadow: var(--hard-lg); border: 2px solid var(--line); background: var(--plum); user-select: none; touch-action: manipulation;
}
.scene .ly { position: absolute; --px: 0px; --py: 0px; translate: var(--px) var(--py); transition: translate .5s var(--ease); }
.scene .ly img { width: 100%; height: 100%; pointer-events: none; }
.scene .tap { cursor: pointer; }
.scene .tap:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 12px; }
.scene .ly-background { translate: none; }

/* Mabar LDR */
.scene-mabar-ldr .ly-character-left, .scene-mabar-ldr .ly-character-right { animation: sway 4s ease-in-out infinite; }
.scene-mabar-ldr .ly-character-right { animation-delay: -2s; }
.scene-mabar-ldr .ly-pixel-heart { animation: beat 1.6s steps(6) infinite; }
.scene-mabar-ldr .ly-gamepad-fx { animation: bob 2.4s ease-in-out infinite; }
.scene-mabar-ldr .ly-connection-fx { animation: pulse 1.6s ease-in-out infinite; }
.scene-mabar-ldr .ly-crt-game { animation: hum 3s ease-in-out infinite; }
.crt-screen { position: absolute; border-radius: 14% / 18%; image-rendering: pixelated; box-shadow: inset 0 0 12px rgba(0,0,0,.6); transition: filter .3s, opacity .3s; }
.crt-screen::after { content: ""; }
.scene.crt-off .crt-screen { filter: brightness(0); }
.scene.crt-off .ly-connection-fx { animation: none; opacity: .25; }
.scene .lean-l { animation: lean-l .35s var(--ease) !important; }
.scene .lean-r { animation: lean-r .35s var(--ease) !important; }
.scene .boing { animation: boing .55s cubic-bezier(.3,1.6,.5,1) !important; }
.scene .wiggle { animation: wiggle .4s ease !important; }
.scene .zap { animation: zap .45s ease !important; }
.packet {
  position: absolute; top: 49%; width: 1.1%; aspect-ratio: 1; background: var(--gold); box-shadow: 0 0 10px var(--gold);
  pointer-events: none; image-rendering: pixelated;
}
.packet-l { left: 33%; animation: packet-l .8s linear forwards; }
.packet-r { left: 66%; animation: packet-r .8s linear forwards; }
.burst { position: absolute; font-size: clamp(14px, 2.2vw, 26px); pointer-events: none; translate: -50% -50%; animation: burst 1s cubic-bezier(.2,.8,.3,1) forwards; text-shadow: 2px 2px 0 var(--ink); }

/* Telepon Malam */
.scene-telepon-malam .ly-moon { animation: bob 5s ease-in-out infinite; }
.scene-telepon-malam .ly-sparkles { animation: twinkle 2.4s steps(4) infinite; }
.scene-telepon-malam .ly-pixel-heart { animation: beat 1.8s steps(6) infinite; }
.scene-telepon-malam .ly-character-left, .scene-telepon-malam .ly-character-right { animation: sway 5s ease-in-out infinite; }
.scene-telepon-malam .ly-character-right { animation-delay: -2.5s; }
.scene-telepon-malam .ly-connection-fx { animation: pulse 2.2s ease-in-out infinite; }

/* Kirim Sayang */
.scene-kirim-sayang .ly-envelope { animation: envelope 4s var(--ease) infinite; }
.scene-kirim-sayang .ly-pixel-heart { animation: beat 2s steps(6) infinite; }
.scene-kirim-sayang .ly-sparkles { animation: twinkle 2s steps(4) infinite; }
.scene-kirim-sayang .ly-character-left, .scene-kirim-sayang .ly-character-right { animation: sway 4s ease-in-out infinite; }
.scene-kirim-sayang .ly-connection-fx { animation: pulse 2s ease-in-out infinite; }

@keyframes sway { 0%,100% { rotate: 0deg; } 50% { rotate: 1.6deg; } }
@keyframes beat { 0%,100% { scale: 1; } 20% { scale: 1.16; } 40% { scale: 1; } 55% { scale: 1.1; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hum { 0%,100% { filter: drop-shadow(0 0 0 rgba(255,98,89,0)); } 50% { filter: drop-shadow(0 0 14px rgba(255,98,89,.55)); } }
@keyframes lean-l { 40% { rotate: 4deg; scale: 1.02; } }
@keyframes lean-r { 40% { rotate: -4deg; scale: 1.02; } }
@keyframes boing { 0% { scale: 1; } 30% { scale: 1.22 .86; } 55% { scale: .9 1.12; } 80% { scale: 1.05; } 100% { scale: 1; } }
@keyframes wiggle { 25% { rotate: -12deg; } 50% { rotate: 10deg; } 75% { rotate: -5deg; } }
@keyframes zap { 30% { opacity: 1; filter: brightness(1.8) drop-shadow(0 0 8px var(--gold)); } }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes envelope { 0% { transform: translateX(-95%) rotate(-8deg); opacity: 0; } 12% { opacity: 1; } 45%,55% { transform: translateX(0) rotate(0); } 88% { opacity: 1; } 100% { transform: translateX(95%) rotate(8deg); opacity: 0; } }
@keyframes packet-l { from { transform: translateX(0); opacity: 1; } to { transform: translateX(1500%); opacity: 0; } }
@keyframes packet-r { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-1500%); opacity: 0; } }
@keyframes burst { 0% { opacity: 0; transform: translate(0,0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) rotate(var(--br)) scale(1.1); } }

/* ===== Section umum ===== */
section { scroll-margin-top: 84px; }
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
/* label bagian: gaya sama dengan pill "Dibuat oleh pasangan LDR" */
.eyebrow { display: inline-flex; align-items: center; gap: .5em; padding: .35em .9em; border-radius: 999px; background: transparent; border: 2px solid var(--line); color: var(--cream); font-family: var(--mono); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-bottom: 14px; }

/* ===== Kartu game ===== */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  --tone: var(--pink);
  position: relative; display: flex; flex-direction: column; background: var(--plum); border: 2px solid var(--line);
  border-radius: var(--radius-card); padding: 52px 22px 22px; box-shadow: var(--hard); color: var(--cream);
  transition: transform var(--motion-enter) var(--ease), box-shadow var(--motion-enter) var(--ease), border-color var(--motion-fast);
  overflow: hidden;
}
.game-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 32px; border-bottom: 2px solid var(--line-soft);
  background: radial-gradient(circle at 20px 16px, var(--coral) 0 4.5px, transparent 5px), radial-gradient(circle at 36px 16px, var(--pink) 0 4.5px, transparent 5px), radial-gradient(circle at 52px 16px, var(--gold) 0 4.5px, transparent 5px), var(--panel);
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--hard-lg); border-color: var(--gold); }
.game-card[data-tone="lav"] { --tone: var(--pink); }
.game-card[data-tone="mint"] { --tone: var(--mint); }
.game-card[data-tone="sun"] { --tone: var(--gold); }
.game-card[data-tone="pink"] { --tone: var(--coral); }
.game-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--tone); display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 14px; border: 2px solid var(--ink-2); box-shadow: 0 4px 0 var(--ink-2); }
.game-card h3 { font-size: 1.45rem; margin-bottom: .3em; }
.game-card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.game-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: .75rem; font-weight: 700; padding: .3em .7em; border-radius: 8px; border: 2px solid var(--tone); color: var(--tone); }
.soon { font-size: .82rem; font-weight: 700; color: var(--muted); }
.soon.first { color: var(--gold); }
a.game-card { text-decoration: none; }
.game-card.playable { border-color: var(--coral); }
.play-badge { font-size: .85rem; font-weight: 700; color: var(--ink); background: var(--coral); padding: .35em .85em; border-radius: 8px; border: 2px solid var(--ink-2); }

.solo-banner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; background: var(--panel); border: 2px dashed var(--pink); border-radius: var(--radius-card); padding: 22px 26px; margin-top: 32px; }
.solo-banner h3 { margin: 0 0 4px; font-size: 1.4rem; }
.solo-banner p { margin: 0; color: var(--muted); }
.solo-banner .robo { font-size: 2.6rem; }

/* ===== Cara main ===== */
.how-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: var(--plum); border: 2px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; box-shadow: var(--hard); }
.step-num { width: 56px; height: 56px; border-radius: 14px; background: var(--coral); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 1.5rem; display: grid; place-items: center; border: 2px solid var(--ink-2); box-shadow: 0 4px 0 var(--coral-deep); }
.step h3 { font-size: 1.3rem; margin-bottom: .2em; }
.step p { color: var(--muted); margin: 0; }
.why-account { margin-top: 18px; display: flex; gap: 14px; align-items: center; background: var(--panel); border: 2px dashed var(--line); border-radius: var(--radius-card); padding: 14px 20px; }
.why-account .big { font-size: 1.8rem; }
.why-account p { margin: 0; color: var(--muted); }
.why-account b { color: var(--cream); }

/* ===== Fitur ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { text-align: center; padding: 24px 16px; border-radius: var(--radius-card); background: var(--plum); border: 2px solid var(--line); box-shadow: var(--hard); }
.feature .f-icon { font-size: 2rem; width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--line); }
.feature h3 { font-size: 1.15rem; margin: 12px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== Pesan manis ===== */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note { padding: 26px 22px 22px; border-radius: 16px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); position: relative; border: 2px solid var(--ink-2); box-shadow: var(--hard); }
.note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 72px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,240,205,.55); border-radius: 3px; }
.note:nth-child(1) { background: var(--pink); transform: rotate(-2deg); }
.note:nth-child(2) { background: var(--gold); transform: rotate(1.5deg); }
.note:nth-child(3) { background: var(--mint); transform: rotate(-1deg); }

/* ===== CTA ===== */
.cta { text-align: center; border-radius: 32px; padding: 56px 24px; background: var(--coral); color: var(--ink); position: relative; overflow: hidden; border: 3px solid var(--ink-2); box-shadow: var(--hard-lg); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(38,12,34,.16) 2px, transparent 2.5px); background-size: 18px 18px; pointer-events: none; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--ink); position: relative; }
.cta p { margin: 0 0 26px; font-size: 1.1rem; position: relative; }
.cta .hero-actions { position: relative; }
.cta .btn { --c: var(--cream); --c-hover: #fff; --c-dark: var(--ink); --c-text: var(--ink); }
.cta .btn-outline { --c: transparent; --c-text: var(--ink); border-color: var(--ink); }

/* ===== Footer ===== */
.footer { padding: 36px 0 32px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 2px dashed var(--line-soft); padding-top: 24px; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 700; }
.footer a:hover { color: var(--gold); }
.footer img { height: 30px; width: auto; }

/* ===== Form & auth ===== */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px; }
.card { background: var(--plum); border: 2px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--hard-lg); padding: 28px; }
.auth-card { width: min(460px, 100%); text-align: center; position: relative; padding-top: 52px; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34px; border-bottom: 2px solid var(--line-soft); background: radial-gradient(circle at 22px 17px, var(--coral) 0 5px, transparent 5.5px), radial-gradient(circle at 40px 17px, var(--pink) 0 5px, transparent 5.5px), radial-gradient(circle at 58px 17px, var(--gold) 0 5px, transparent 5.5px), var(--panel); }
.auth-logo { width: 150px; height: auto; margin: 0 auto 6px; }
.auth-card h1 { font-size: 2rem; margin-bottom: .2em; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--cream); }
.input { width: 100%; min-height: 48px; font: inherit; padding: .7em 1em; border-radius: var(--radius-control); border: 2px solid var(--line); background: var(--ink); color: var(--cream); transition: border-color var(--motion-fast); }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(255,215,138,.25); }
.form-error { min-height: 1.4em; color: var(--pink); font-weight: 700; font-size: .92rem; margin: 4px 0 10px; }
.demo-hint { margin-top: 18px; padding: 10px 14px; border-radius: var(--radius-control); background: var(--panel); border: 2px dashed var(--gold); font-size: .9rem; color: var(--gold); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--line-soft); }
.auth-foot { margin-top: 16px; color: var(--muted); }

/* ===== Ruang ===== */
.room { padding: 36px 0 72px; }
.room-scene { margin-bottom: 28px; }
.room-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-bottom: 44px; }
.room-card h1 { font-size: 2rem; }
.code-display {
  font-family: var(--mono); font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: .18em;
  background: var(--ink); color: var(--gold); border-radius: 16px; padding: 14px 18px; text-align: center; margin: 14px 0;
  border: 2px dashed var(--gold); text-shadow: 0 0 12px rgba(255,215,138,.45);
}
.room-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.players { display: grid; gap: 12px; margin-top: 8px; }
.player { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--panel); border: 2px solid var(--line); flex: none; }
.player.waiting { border-style: dashed; }
.player.waiting .avatar { animation: pulse 1.6s ease-in-out infinite; }
.player b { display: block; }
.player small { color: var(--muted); }
.dots::after { content: ""; animation: dots 1.5s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.proto-note { font-size: .85rem; color: var(--gold); background: var(--panel); border-radius: var(--radius-control); padding: 10px 14px; margin-top: 14px; border: 2px dashed var(--gold); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; background: rgba(27, 8, 24, .72); backdrop-filter: blur(3px); }
.modal.open { display: grid; animation: fade var(--motion-enter) ease; }
.modal .card { width: min(420px, 100%); text-align: center; position: relative; padding-top: 52px; overflow: hidden; animation: pop .3s cubic-bezier(.3,1.5,.5,1); }
.modal .card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34px; border-bottom: 2px solid var(--line-soft); background: radial-gradient(circle at 22px 17px, var(--coral) 0 5px, transparent 5.5px), radial-gradient(circle at 40px 17px, var(--pink) 0 5px, transparent 5.5px), radial-gradient(circle at 58px 17px, var(--gold) 0 5px, transparent 5.5px), var(--panel); }
.modal h2 { font-size: 1.6rem; }
.modal p { color: var(--muted); margin-top: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.88); opacity: 0; } }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 70;
  background: var(--cream); color: var(--ink); padding: .8em 1.4em; border-radius: var(--radius-control); font-weight: 700;
  border: 2px solid var(--ink-2); box-shadow: var(--hard); transition: transform .3s cubic-bezier(.3,1.5,.5,1); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast { display: flex; align-items: center; gap: 10px; text-align: left; padding: .7em 1.2em .7em .8em; }
.toast::before { content: "💌"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink-2); font-size: 1rem; }

/* ===== Pop up peringatan (tahap 22) ===== */
.jk-ask { z-index: 90; }
.jk-ask .card { width: min(400px, 100%); padding: 52px 22px 22px; background: var(--plum); border: 2px solid var(--ink-2); border-radius: var(--radius-card); box-shadow: var(--hard-lg); }
.jk-ask-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; font-size: 1.9rem; background: var(--pink); border: 3px solid var(--ink-2); box-shadow: 0 4px 0 var(--ink-2); animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.jk-ask.tone-coin .jk-ask-ic { background: var(--gold); }
.jk-ask-ic img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(27,8,24,.3)); }
.jk-ask.tone-danger .jk-ask-ic { background: var(--coral); }
.jk-ask h2 { font-size: 1.3rem; margin-bottom: .4em; }
.jk-ask #jk-ask-d p { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0 0 .5em; }
.jk-ask-in { width: 100%; margin: 6px 0 4px; min-height: 48px; padding: .6em .9em; border-radius: var(--radius-control); border: 2px solid var(--line); background: var(--ink-2); color: var(--cream); font: inherit; }
/* tahap 56: pemotong foto */
.jk-crop { z-index: 95; }
.jk-crop .card { width: min(420px, 100%); padding: 48px 18px 18px; max-height: 100%; overflow: auto; background: var(--plum); border: 2px solid var(--ink-2); border-radius: var(--radius-card); box-shadow: var(--hard-lg); text-align: center; }
.jk-crop h2 { font-size: 1.25rem; margin: 0 0 4px; }
.jk-crop-hint { margin: 0 0 12px; font-size: .84rem; color: var(--muted); }
.jk-crop-view { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; border: 3px solid var(--gold); background: var(--ink-2); touch-action: none; cursor: grab; user-select: none; }
.jk-crop-view:active { cursor: grabbing; }
.jk-crop-view:focus-visible { outline: var(--focus); outline-offset: 3px; }
.jk-crop-view img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.jk-crop-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.35) 33.3%, transparent 33.5%, transparent 66.4%, rgba(255,255,255,.35) 66.6%, transparent 66.8%),
  linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.35) 33.3%, transparent 33.5%, transparent 66.4%, rgba(255,255,255,.35) 66.6%, transparent 66.8%); }
.jk-crop-zoom { display: flex; align-items: center; gap: 10px; width: min(320px, 100%); margin: 14px auto 0; }
.jk-crop-zoom input { flex: 1; accent-color: var(--coral); min-height: 32px; }
.jk-ask-acts { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.jk-ask-acts .btn { flex: 1 1 120px; white-space: nowrap; }
.btn-danger { --c: var(--coral); --c-hover: var(--coral-hover); --c-dark: var(--coral-deep); }

/* ===== Game: Tebak Kata ===== */
.game-page { padding: 28px 0 72px; }
.game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.game-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }
.game-head .pill { margin-bottom: 10px; }
.scoreboard { display: flex; gap: 10px; }
.scoreboard div { background: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-control); padding: 6px 14px; text-align: center; min-width: 80px; }
.scoreboard small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.scoreboard b { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); }
.game-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.play-card { display: flex; flex-direction: column; gap: 20px; position: relative; padding-top: 52px; overflow: hidden; }
.play-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34px; border-bottom: 2px solid var(--line-soft); background: radial-gradient(circle at 22px 17px, var(--coral) 0 5px, transparent 5.5px), radial-gradient(circle at 40px 17px, var(--pink) 0 5px, transparent 5.5px), radial-gradient(circle at 58px 17px, var(--gold) 0 5px, transparent 5.5px), var(--panel); }

.clue-box { background: var(--ink); border: 2px solid var(--gold); border-radius: 18px; padding: 16px 20px; position: relative; }
.clue-label { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.clue-box p { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; margin: 6px 0 14px; color: var(--cream); }
.clue-box p.swap { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
.chip { font-size: .72rem; background: rgba(38,12,34,.25); padding: .15em .6em; border-radius: 6px; }

.board { --n: 6; display: flex; gap: 6px; justify-content: center; }
.board .tile {
  width: min(60px, calc((100% - (var(--n) - 1) * 6px) / var(--n))); aspect-ratio: 1;
  border-radius: 12px; border: 2px dashed var(--line); background: var(--ink);
  display: grid; place-items: center; position: relative;
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.1rem, 4.5vw, 1.9rem); color: var(--cream);
}
.board .tile .pos { font-size: .7rem; color: var(--muted); opacity: .5; font-family: var(--mono); }
.board .tile.filled { border: 2px solid var(--ink-2); background: var(--mint); color: var(--ink); box-shadow: 0 4px 0 #C9744F; }
.board .tile.by-partner { background: var(--pink); box-shadow: 0 4px 0 #B8667A; }
.board .tile.stick { animation: stick .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes stick { 0% { transform: scale(0) rotate(-25deg); } 70% { transform: scale(1.18) rotate(5deg); } 100% { transform: none; } }
.board-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: -6px 0 0; }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 2px solid var(--ink-2); }
.legend.me { background: var(--mint); }
.legend.partner { background: var(--pink); }

.player-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pstat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--ink); transition: border-color var(--motion-fast), background var(--motion-fast); }
.pstat .avatar { width: 40px; height: 40px; font-size: 1.2rem; }
.pstat b { display: block; font-size: .95rem; }
.pstat small { color: var(--muted); font-size: .8rem; }
.pstat.done { border-color: var(--mint); background: rgba(255,190,152,.1); }

.guess-form { display: flex; gap: 10px; }
.guess-input { font-size: 1.35rem; text-align: center; }
.guess-input:disabled { opacity: .6; }
.guess-count { text-align: center; margin: -10px 0 0; color: var(--muted); font-size: .85rem; font-weight: 700; font-family: var(--mono); }

.side { display: grid; gap: 22px; }
.side .card { padding: 22px; }
.side-title { font-size: 1.25rem; margin-bottom: .2em; }
.side-sub { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.history { display: grid; gap: 12px; max-height: 340px; overflow-y: auto; }
.history .empty { color: var(--muted); font-size: .9rem; margin: 0; }
.h-round { border-bottom: 2px dashed var(--line-soft); padding-bottom: 10px; }
.h-label { font-family: var(--mono); font-weight: 700; font-size: .75rem; color: var(--gold); margin-bottom: 4px; }
.h-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.h-who { width: 48px; font-size: .78rem; font-weight: 700; color: var(--muted); flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-xs { justify-content: flex-start; gap: 4px; flex: 1; }
.board-xs .tile { width: min(30px, calc((100% - (var(--n) - 1) * 4px) / var(--n))); border-radius: 7px; border-width: 2px; font-size: .85rem; box-shadow: none !important; }
.board-xs .tile.miss { border-style: solid; }
.board-xs .tile.hidden { border-style: solid; color: var(--muted); font-size: .6rem; }
.board-sm .tile { width: min(46px, calc((100% - (var(--n) - 1) * 6px) / var(--n))); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; font-size: .88rem; color: var(--muted); }
.log:empty::before { content: "Belum ada aktivitas."; }
.log time { color: var(--gold); font-family: var(--mono); font-size: .75rem; margin-right: 4px; }

.notif-stack { position: fixed; top: 84px; right: 16px; z-index: 40; display: grid; gap: 8px; width: min(320px, calc(100% - 32px)); pointer-events: none; }
.notif { padding: 10px 14px; border-radius: var(--radius-control); font-weight: 700; font-size: .92rem; background: var(--plum); border: 2px solid var(--line); color: var(--cream); box-shadow: var(--hard); animation: slidein .35s cubic-bezier(.3,1.5,.5,1); transition: opacity .4s, transform .4s; }
.notif.out { opacity: 0; transform: translateX(30px); }
.notif-fail { border-color: var(--coral); }
.notif-letter { border-color: var(--mint); }
.notif-warn { border-color: var(--gold); }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); } }
.result-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 6px; }

/* ===== Responsif ===== */
@media (max-width: 960px) {
  .hero-grid, .room-top, .how-grid, .game-grid { grid-template-columns: 1fr; }
  .games-grid, .notes { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .games-grid, .notes, .features { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-actions .btn { flex: 1; }
  .logo img { width: 170px; }
  .nav-hello, .hide-sm { display: none; }
  .card, .win { padding-left: 18px; padding-right: 18px; }
  .footer a { margin: 0 14px 0 0; }
  .join-row, .guess-form { flex-direction: column; }
  .scene { border-radius: 18px; }
  .notif-stack { top: auto; bottom: 16px; }
  .scoreboard div { min-width: 0; padding: 6px 10px; }
  .player-status { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step-num { width: 44px; height: 44px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene .ly { translate: none !important; }
}

/* kartu berbingkai jendela: beri ruang untuk bilah atas */
.card.win, .side .card.win { padding-top: 52px; }

/* ---------- Tebak Kata v2: pengaturan, clue bertahap, hasil ---------- */
.setup-card { max-width: 640px; margin: 0 auto; text-align: center; }
.setup-card h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .3em; }
.setup-sub { color: var(--muted); margin: 0 auto 22px; max-width: 46ch; }
.round-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.round-opt {
  font: inherit; color: var(--cream); cursor: pointer; padding: 16px 8px; border-radius: 18px;
  background: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--ink-2);
  transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}
.round-opt b { display: block; font-family: var(--mono); font-size: 2.2rem; line-height: 1; color: var(--gold); }
.round-opt small { color: var(--muted); font-weight: 700; }
.round-opt:hover { transform: translateY(-3px); border-color: var(--pink); }
.round-opt[aria-pressed="true"] { background: var(--coral); border-color: var(--ink-2); }
.round-opt[aria-pressed="true"] b, .round-opt[aria-pressed="true"] small { color: var(--ink); }
.round-opt:focus-visible { outline: var(--focus); outline-offset: 3px; }
.round-opt:disabled { cursor: default; opacity: .55; transform: none; }
.setup-wait { color: var(--gold); font-weight: 700; margin: 14px 0 0; }
.setup-rules { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; text-align: left; color: var(--muted); font-size: .92rem; }

.clue-list { margin: 8px 0 14px; padding-left: 1.6em; display: grid; gap: 6px; }
.clue-list li { color: var(--muted); font-size: .98rem; }
.clue-list li::marker { font-family: var(--mono); color: var(--line); font-weight: 700; }
.clue-list li.now { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.4rem); color: var(--cream); animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
.clue-list li.now::marker { color: var(--gold); }
.result-points { font-family: var(--mono); font-weight: 700; color: var(--gold); margin: 14px 0 0 !important; }

.final-card { max-width: 820px; margin: 0 auto; }
.final-top { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.final-top h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .2em; }
.final-top p { color: var(--muted); margin: 0 0 14px; }
.final-score { width: 170px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ink); border: 3px solid var(--gold); box-shadow: 0 8px 0 var(--ink-2); }
.final-score small { color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.final-score b { font-family: var(--mono); font-size: 3.6rem; line-height: 1; color: var(--gold); }
.final-score span { color: var(--muted); font-family: var(--mono); font-weight: 700; }
.final-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.final-stats div { background: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-control); padding: 6px 16px; text-align: center; }
.final-stats b { display: block; font-family: var(--mono); font-size: 1.4rem; color: var(--cream); }
.final-stats small { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; }
.final-list { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.final-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); font-family: var(--mono); font-weight: 700; font-size: .9rem; }
.final-list li.ok { border-color: var(--mint); }
.final-list li.no { color: var(--muted); }
.final-list li small { color: var(--muted); font-weight: 400; }
.final-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.final-actions .btn { flex: 1 1 180px; }
@media (max-width: 640px) {
  .scoreboard { width: 100%; }
  .scoreboard div { flex: 1; min-width: 0; padding: 6px 4px; }
  .final-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .final-stats { justify-content: center; }
  .final-score { width: 140px; }
  .final-score b { font-size: 3rem; }
}
@media (max-width: 520px) {
  .logo img { width: 118px; }
  .nav-actions { gap: 6px; }
  .nav .btn-sm { padding-left: 10px; padding-right: 10px; }
}

/* ---------- kamera & suara ---------- */
.call-dock { display: flex; gap: 16px; align-items: stretch; margin-bottom: 0; padding: 12px; background: var(--plum); border: 2px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--hard); }
.call-dock:empty { display: none; }
.call-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 0 1 440px; }
.call-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--ink); border: 2px solid var(--line); }
.call-tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.call-tile.is-me video { transform: scaleX(-1); }
.call-tile.is-peer.live { border-color: var(--mint); }
.call-off { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 6px; padding: 8px; text-align: center; background: linear-gradient(var(--panel), var(--ink)); color: var(--muted); font-weight: 700; font-size: .82rem; }
.call-off img { width: 52px; height: 52px; object-fit: contain; }
.call-tile.off .call-off { display: grid; }
.call-tile.off video { visibility: hidden; }
.call-tile figcaption { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 8px; background: rgba(38,12,34,.82); color: var(--cream); font-size: .78rem; }
.call-tile figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-tile figcaption i { font-style: normal; }
.call-tap { position: absolute; left: 8px; right: 8px; top: 8px; min-height: 40px; border-radius: 10px; border: 2px solid var(--ink-2); background: var(--gold); color: var(--ink); font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.call-ctrls { flex: 1; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 12px 18px; }
.call-bar { display: flex; gap: 14px; align-items: flex-start; }
.call-btn { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--cream); font: inherit; cursor: pointer; }
.call-btn .call-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--ink); border: 2px solid var(--ink-2); box-shadow: 0 4px 0 var(--ink-2); transition: transform var(--motion-fast), background var(--motion-fast); }
.call-btn svg { width: 24px; height: 24px; }
.call-btn .slash { stroke-width: 2.6; }
.call-btn small { font-size: .78rem; font-weight: 700; color: var(--muted); }
.call-btn.off .call-ic { background: var(--coral); color: #fff; }
.call-btn:hover .call-ic { transform: translateY(-2px); }
.call-btn:active .call-ic { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink-2); }
.call-btn:focus-visible { outline: none; }
.call-btn:focus-visible .call-ic { outline: var(--focus); outline-offset: 3px; }
.call-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- foto momen ---------- */
.moment { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin: 0 0 24px; padding: 16px; border-radius: 18px; background: var(--ink); border: 2px dashed var(--line); }
.moment img { width: 150px; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; border: 2px solid var(--line); object-fit: cover; background: var(--plum); }
.moment h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.moment p { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.moment-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .call-dock { flex-direction: column; padding: 10px; }
  .call-tiles { flex: none; gap: 8px; }
  .call-ctrls { gap: 8px; }
  .call-bar { width: 100%; justify-content: center; }
  .call-note { text-align: center; font-size: .8rem; }
  .moment { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; }
  .moment img { width: 96px; }
  .moment p { display: none; }
}
.call-off { padding-bottom: 34px; }
@media (max-width: 640px) {
  .call-off { font-size: .7rem; gap: 4px; }
  .call-off img { width: 34px; height: 34px; }
}

/* ---------- dashboard ---------- */
.dash h2 { font-size: 1.35rem; margin-bottom: .3em; }
.dash > div > .card, .dash-grid, .dash-tiles { margin-bottom: 24px; }
.dash-login { max-width: 560px; margin: 20px auto; text-align: center; }
.dash-login img { width: 110px; height: auto; }
.dash-login p { color: var(--muted); }
.dash-profile { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.dp-people { display: flex; align-items: center; gap: 6px; }
.dp-avatar { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--coral); box-shadow: 0 6px 0 var(--ink-2); overflow: hidden; background: var(--panel); cursor: pointer; flex: none; }
.dp-avatar.partner { border-color: var(--pink); cursor: default; }
.dp-avatar.empty img { opacity: .45; filter: grayscale(.6); }
.dp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-edit { position: absolute; inset: auto 0 0 0; padding: 4px 0 6px; text-align: center; background: rgba(38,12,34,.82); color: var(--cream); font-size: .72rem; font-weight: 700; }
.dp-avatar:focus-within { outline: var(--focus); outline-offset: 3px; }
.dp-heart { font-size: 1.8rem; }
.dp-info { flex: 1; min-width: 240px; }
.dp-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .15em; overflow-wrap: anywhere; }
.dp-sub { color: var(--muted); margin: 0 0 14px; }
.dp-sub b { color: var(--cream); }
.dp-sub code { font-family: var(--mono); color: var(--gold); }
.dp-sub a { color: var(--pink); }
.dp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-save { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; border-color: var(--gold); }
.dash-save p { color: var(--muted); margin: 0; }
.form-msg { margin: 10px 0 0; font-weight: 700; font-size: .9rem; color: var(--muted); }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--coral-hover); }
.form-msg.ok { color: var(--mint); }

.dash-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.tile-card { background: var(--plum); border: 2px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; box-shadow: var(--hard); }
.tile-card small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.tile-card b { display: block; font-family: var(--mono); font-size: 2.2rem; color: var(--gold); margin: 4px 0 2px; }
.tile-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.tile-card.serasi { border-color: var(--coral); }
.meter { height: 16px; border-radius: 8px; background: var(--ink); border: 2px solid var(--line); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 6px; transition: width .8s var(--ease); }

.dash-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.dash-grid > .card { margin: 0; }
.count-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.count-big b { font-family: var(--mono); font-size: 4rem; line-height: 1; color: var(--gold); }
.count-big span { color: var(--cream); font-weight: 700; }
.count-together { color: var(--pink); font-weight: 700; margin: 0 0 14px; }
.count-together:empty { display: none; }
.dates-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; margin-top: 12px; }
.dates-form .btn { grid-column: 1 / -1; }
.dates-form input[type="date"] { color-scheme: dark; }

.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .c-grid { stroke: var(--line-soft); stroke-width: 1; }
.chart-svg .c-axis { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart-svg .c-avg { stroke: var(--cream); stroke-width: 2; stroke-dasharray: 5 5; opacity: .7; }
.chart-svg .c-label { fill: var(--cream); font-size: 12px; font-weight: 700; font-family: var(--body); }
.chart-svg .c-bar path { fill: var(--coral); transition: opacity var(--motion-fast); }
.chart-svg .c-bar.rec path { fill: var(--gold); }
.chart-svg .c-bar.dim path { opacity: .35; }
.chart-svg .c-hit { fill: transparent; }
.chart-svg .c-bar { cursor: pointer; outline: none; }
.chart-svg .c-bar:focus-visible path { stroke: var(--gold); stroke-width: 3; }
.chart-tip { position: absolute; z-index: 70; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--ink); border: 2px solid var(--line); color: var(--cream); font-size: .82rem; box-shadow: var(--hard); }
.chart-tip b { font-family: var(--mono); font-size: 1.1rem; color: var(--gold); }
.chart-tip small { color: var(--muted); }
.empty-chart { color: var(--muted); text-align: center; padding: 40px 10px; border: 2px dashed var(--line-soft); border-radius: 16px; margin: 0; }
.chart-table { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.chart-table summary { cursor: pointer; font-weight: 700; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; font-family: var(--mono); color: var(--cream); }

.game-stats, .recent, .badges { list-style: none; margin: 0; padding: 0; }
.game-stats { display: grid; gap: 10px; }
.game-stats li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); }
.game-stats li > div { flex: 1; min-width: 0; }
.game-stats li b { display: block; }
.game-stats li small { color: var(--muted); font-size: .8rem; }
.game-stats li.locked { opacity: .6; }
.gs-icon { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--panel); border-radius: 12px; flex: none; }
.gs-num { text-align: center; min-width: 58px; }
.gs-num b { font-family: var(--mono); font-size: 1.3rem; color: var(--gold); }
.recent { display: grid; gap: 8px; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--ink); border: 2px solid var(--line-soft); font-size: .92rem; }
.recent li small { display: block; color: var(--muted); font-size: .8rem; }
.recent-score { font-family: var(--mono); font-weight: 700; font-size: 1.4rem; color: var(--gold); }
.recent .empty-row { color: var(--muted); }
.recent a { color: var(--pink); }
.badge-count { font-family: var(--mono); font-size: .9rem; color: var(--gold); margin-left: 6px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badges li { text-align: center; padding: 14px 10px; border-radius: 18px; background: var(--ink); border: 2px solid var(--gold); box-shadow: 0 4px 0 var(--ink-2); }
.badges li.locked { border: 2px dashed var(--line-soft); box-shadow: none; opacity: .55; }
.badges .b-icon { display: block; font-size: 2rem; margin-bottom: 4px; }
.badges b { display: block; font-size: .92rem; }
.badges small { color: var(--muted); font-size: .75rem; }
.shot-card { width: min(380px, 100%) !important; }
.shot-card img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: 14px; border: 2px solid var(--line); margin: 6px 0 14px; background: var(--ink); }
.shot-card .moment-actions { justify-content: center; }

@media (max-width: 900px) {
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-tiles .serasi { grid-column: 1 / -1; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-profile { flex-direction: column; text-align: center; gap: 16px; }
  .dp-actions { justify-content: center; }
  .dash-save { grid-template-columns: 1fr; }
  .dp-avatar { width: 88px; height: 88px; }
  .tile-card b { font-size: 1.8rem; }
  .tile-card { padding: 14px 16px; }
  .dates-form { grid-template-columns: 1fr; }
  .gs-num { min-width: 48px; }
  .badges { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---------- reaksi di panggilan ---------- */
.call-react { display: inline-flex; gap: 2px; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--ink); border: 2px solid var(--line); }
.react-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; font-size: 1.15rem; cursor: pointer; transition: transform var(--motion-fast); }
.react-btn:hover { transform: translateY(-2px) scale(1.12); background: var(--plum); }
.react-btn:active { transform: scale(.92); }
.react-btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.react-float { position: absolute; bottom: 30%; z-index: 3; font-size: 2.4rem; pointer-events: none; animation: react-up 1.8s ease-out forwards; }
@keyframes react-up { 0% { transform: translateY(20px) scale(.4); opacity: 0; } 15% { transform: translateY(0) scale(1.2); opacity: 1; } 100% { transform: translateY(-90px) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .react-float { animation: none; opacity: 1; } }
@media (max-width: 640px) { .call-react { justify-content: center; margin: 0 auto; } .react-btn { width: 36px; height: 36px; font-size: 1.1rem; } }

/* ---------- Tebak Kata v3: mode, timer ---------- */
.variant-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 22px; }
.variant-opt { font: inherit; color: var(--cream); text-align: left; cursor: pointer; padding: 16px; border-radius: 18px; background: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--ink-2); display: grid; gap: 4px; transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast); }
.variant-opt span { font-size: 1.8rem; }
.variant-opt b { font-family: var(--display); font-size: 1.2rem; }
.variant-opt small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.variant-opt:hover { transform: translateY(-3px); border-color: var(--pink); }
.variant-opt[aria-pressed="true"] { background: var(--panel); border-color: var(--gold); }
.variant-opt[data-v="sebel"][aria-pressed="true"] { border-color: var(--coral); }
.variant-opt:focus-visible { outline: var(--focus); outline-offset: 3px; }
.variant-opt:disabled { cursor: default; opacity: .55; transform: none; }
.setup-h2 { margin-top: 0; }
.timer { position: relative; height: 26px; border-radius: 13px; background: var(--plum); border: 2px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.timer span { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--mint); transition: background var(--motion-fast); }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .9rem; color: var(--ink); }
.timer.low span { background: var(--coral); }
.timer.low { animation: timer-pulse .5s ease-in-out infinite alternate; }
.timer.idle span { background: var(--disabled); }
.timer.idle b { color: var(--muted); }
@keyframes timer-pulse { to { border-color: var(--coral); } }
@media (prefers-reduced-motion: reduce) { .timer.low { animation: none; } }
.result-auto { font-size: .85rem; margin: 6px 0 0 !important; }
.final-vs { font-family: var(--mono); font-weight: 700; color: var(--cream); font-size: 1.05rem; margin: 0 0 14px !important; }
.ended-card { text-align: center; max-width: 560px; }
.ended-card p { color: var(--muted); }
.final-list li.secret span { letter-spacing: .15em; }
@media (max-width: 640px) { .variant-opts { grid-template-columns: 1fr; } }

/* ---------- Dashboard: main sekarang ---------- */
.dash-play { display: grid; gap: 14px; }
.dplay-status { display: flex; gap: 14px; align-items: center; }
.dplay-status h2 { margin: 0; }
.dplay-status p { margin: 2px 0 0; }
.dplay-status .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--disabled); border: 2px solid var(--line); flex: none; }
.dplay-status .dot.on { background: var(--mint); box-shadow: 0 0 0 4px rgba(255,190,152, .2); }
.friend-box { background: var(--ink); border: 2px dashed var(--line); border-radius: 16px; padding: 14px 16px; }
.friend-box p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.friend-code { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.friend-code b { font-family: var(--mono); font-size: 1.4rem; color: var(--gold); letter-spacing: .08em; margin-right: 6px; }

/* ---------- Kredit ---------- */
.credit-page { display: grid; gap: 22px; }
.credit-hero { text-align: center; }
.credit-hero img { border-radius: 50%; border: 3px solid var(--pink); }
.credit-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.credit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.credit-card { display: grid; gap: 4px; justify-items: center; text-align: center; color: var(--cream); text-decoration: none; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.credit-card:hover { transform: translateY(-4px); border-color: var(--pink); }
.credit-card:focus-visible { outline: var(--focus); outline-offset: 4px; }
.credit-card.main { border-color: var(--gold); }
.credit-emoji { font-size: 2.6rem; }
.credit-card small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.credit-card b { font-family: var(--display); font-size: 1.5rem; }
.credit-go { color: var(--pink); font-size: .9rem; margin-top: 6px; }
.credit-note p { color: var(--muted); }
.credit-note a:not(.btn) { color: var(--pink); }
@media (max-width: 760px) { .credit-grid { grid-template-columns: 1fr; } }

/* ---------- Beranda: pill, ikon 3D, game belum rilis ---------- */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-pills .pill { margin: 0; }
.pill-soft { background: transparent; border-color: var(--line); color: var(--cream); }
.game-icon:has(img) { width: 84px; height: 84px; background: none; border: 0; box-shadow: none; border-radius: 0; margin: -6px 0 10px -4px; }
.game-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); }
.game-card.soon-card { filter: grayscale(1); opacity: .78; border-style: dashed; }
.game-card.soon-card:hover, .game-card.soon-card:focus-visible { filter: grayscale(.6); opacity: .92; }

/* ---------- Tebak Kata: clue per 5 detik, peringatan 5 detik terakhir ---------- */
.clue-next { margin: 8px 0 0; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
body.time-low .play-card { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 98, 89, .35), var(--hard); }
body.time-low .timer b { color: var(--cream); }
body.time-low .timer { animation-duration: .35s; }

/* ---------- Dashboard terkunci (tamu) ---------- */
#dash-body.is-locked > :not(#dash-lock):not(#save-card) { display: none !important; }
.dash-lock { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.dash-lock .lock-icon { font-size: 3.4rem; margin-bottom: 4px; }
.dash-lock p { color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }
#dash-body.is-locked #save-card { max-width: 720px; margin: 0 auto; }
.dash-lock .final-actions { margin: 18px 0 18px; justify-content: center; }
.footer-mini { margin-top: 40px; }

/* ===== Seberapa Cocok Kita? ===== */
.setup-h2 { margin-top: 4px; }
.cat-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 22px; }
.cat-opt { font: inherit; font-weight: 700; cursor: pointer; padding: .55em 1em; border-radius: 999px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); transition: transform var(--motion-fast), border-color var(--motion-fast); }
.cat-opt:hover { transform: translateY(-2px); border-color: var(--pink); }
.cat-opt[aria-pressed="true"] { background: var(--pink); color: var(--ink); border-color: var(--ink-2); }
.cat-opt:focus-visible { outline: var(--focus); outline-offset: 3px; }
.cat-opt:disabled { cursor: default; opacity: .55; transform: none; }

.fill-card { max-width: 760px; margin-inline: auto; text-align: center; }
.fill-list { list-style: none; counter-reset: q; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; text-align: left; }
.fill-item { counter-increment: q; background: var(--ink); border: 2px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; }
.fill-item label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
.fill-item label::before { content: counter(q) ". "; font-family: var(--mono); color: var(--gold); }
.fill-cat { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .05em .6em; margin-right: 8px; vertical-align: 2px; }
.fill-row { display: flex; gap: 8px; }
.fill-row .input { flex: 1; min-width: 0; }
.fill-input.invalid { border-color: var(--coral); }
.swap-btn { white-space: nowrap; }

.cocok-cat { text-align: center; color: var(--muted); font-family: var(--mono); font-size: .8rem; margin: 14px 0 4px; letter-spacing: .04em; }
.cocok-q { text-align: center; font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.25; margin: 0 auto 18px; max-width: 30ch; }
.cocok .board { flex-wrap: wrap; row-gap: 10px; column-gap: 18px; min-height: 52px; }
.cocok .board .empty { color: var(--muted); margin: 0; }
.mask-word { display: flex; gap: 5px; }
.cocok .board .tile { width: clamp(28px, 7vw, 44px); font-size: clamp(1rem, 3.6vw, 1.4rem); border-radius: 10px; }
.guess-text { text-transform: none; letter-spacing: normal; font-family: inherit; }
.approve { margin-top: 12px; display: grid; gap: 8px; }
.approve-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: rgba(255,215,138,.1); border: 2px dashed var(--gold); border-radius: 14px; padding: 10px 12px; font-size: .9rem; }
.mine-ans { font-family: var(--mono); font-weight: 700; color: var(--gold); margin: -4px 0 10px; font-size: .9rem; }
.tries { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.tries li { font-family: var(--mono); font-size: .88rem; padding: 6px 10px; border-radius: 10px; background: var(--ink); border: 2px solid var(--line-soft); overflow-wrap: anywhere; }
.tries li.ok { border-color: var(--mint); color: var(--mint); }
.tries li.near { border-color: var(--gold); }
.tries li.no { color: var(--muted); }
.tries li.empty { border-style: dashed; color: var(--muted); font-family: inherit; }
.result-other { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.final-list li.secret small { font-style: italic; }
@media (max-width: 520px) { .fill-row { flex-direction: column; } }
.cocok .final-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cocok .final-list li { align-items: baseline; }
.cocok .final-list li small { text-align: right; overflow-wrap: anywhere; }

/* ===== pilih lawan di halaman game ===== */
.vs-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 22px; }
.vs-opt { font: inherit; color: var(--cream); cursor: pointer; padding: 12px 10px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--ink-2); display: grid; justify-items: center; gap: 2px; text-align: center; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.vs-opt span { font-size: 1.5rem; }
.vs-opt b { font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.vs-opt small { color: var(--muted); font-size: .76rem; }
.vs-opt:hover { transform: translateY(-3px); border-color: var(--pink); }
.vs-opt[aria-pressed="true"] { background: var(--panel); border-color: var(--mint); cursor: default; transform: none; }
.vs-opt:focus-visible { outline: var(--focus); outline-offset: 3px; }
@media (max-width: 520px) { .vs-opts { grid-template-columns: 1fr; } .vs-opt { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 10px; } .vs-opt span { grid-row: span 2; } }
.rename-btn { margin-left: auto; }

/* ===== Seberapa Cocok: pilihan ganda ===== */
.opt-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; padding: .45em .85em; border-radius: 999px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); transition: transform var(--motion-fast), border-color var(--motion-fast); }
.opt-chip:hover { transform: translateY(-2px); border-color: var(--pink); }
.opt-chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.opt-chip:focus-visible { outline: var(--focus); outline-offset: 2px; }
.opt-chip:disabled { cursor: default; transform: none; }
.opt-chip:disabled:not([aria-pressed="true"]) { opacity: .5; }
.fill-item.missing { border-color: var(--coral); }
.fill-item.done label::after { content: " ✓"; color: var(--mint); }
.fill-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.fill-head label { margin: 0; }
.fill-count { font-family: var(--mono); font-weight: 700; color: var(--muted); margin: -10px 0 16px; }
.fill-timer { margin: 0 0 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; }
.choice { font: inherit; font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 700; cursor: pointer; min-height: 64px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 var(--ink-2); transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast); }
.choice:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--gold); }
.choice:focus-visible { outline: var(--focus); outline-offset: 3px; }
.choice:disabled { cursor: default; }
.choice.picked { border-color: var(--gold); background: var(--panel); }
.choice.ok { background: var(--mint); color: var(--ink); border-color: var(--ink-2); animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
.choice.no { background: var(--coral); color: var(--ink); border-color: var(--ink-2); animation: shake .35s; }
.choice.dim { opacity: .45; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .choice.ok, .choice.no { animation: none; } }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.history li { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; padding: 6px 10px; border-radius: 10px; background: var(--ink); border: 2px solid var(--line-soft); }
.history li.ok { border-color: var(--mint); }
.history li.empty { border-style: dashed; color: var(--muted); }
.history li small { color: var(--muted); font-family: var(--mono); }
.their-pick { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }
.forgot-link { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--pink); }
.form-ok { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-control); background: rgba(255,190,152,.12); border: 2px solid var(--mint); color: var(--cream); line-height: 1.45; }

/* Robo 3D di tile kamera */
.call-tile .robo-cam { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.call-tile.robo-on .call-off { display: none !important; }
.call-tile.robo-on video { visibility: hidden; }

/* tombol ruang: lebar total = lebar kotak kode */
.room-actions.share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.room-actions.share-row .btn { width: 100%; padding-left: .5em; padding-right: .5em; text-align: center; white-space: normal; line-height: 1.2; }
.room-actions-wide { display: grid; gap: 10px; margin-top: 10px; }
.room-actions-wide .btn { width: 100%; }
.room-actions-wide:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 420px) { .room-actions.share-row { grid-template-columns: 1fr; } }

/* gelembung teks Robo */
.robo-say { position: absolute; top: 8px; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0; z-index: 3; max-width: calc(100% - 16px); padding: 5px 10px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .8rem; white-space: nowrap; box-shadow: 0 3px 0 var(--ink-2); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.robo-say::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--cream); }
.robo-say.show { opacity: 1; transform: translateX(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .robo-say { transition: opacity .2s; transform: translateX(-50%); } }

/* ===== Puzzle Kita ===== */
.level-opts { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.level-opts .round-opt b { font-size: 1.6rem; }
@media (max-width: 520px) { .level-opts { gap: 6px; } .level-opts .round-opt { padding-inline: 4px; } .level-opts .round-opt b { font-size: 1.15rem; } .level-opts .round-opt small { font-size: .72rem; } }
.up-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; text-align: left; margin-top: 8px; }
.up-preview { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 3px solid var(--line); background: var(--plum); }
.up-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; --c: calc(100% / var(--n, 4)); background-image: linear-gradient(to right, rgba(255,240,205,.28) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,240,205,.28) 1px, transparent 1px); background-size: var(--c) var(--c); }
.up-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); }
.up-empty span { font-size: 3rem; }
.up-empty p { margin: 4px 0 0; font-weight: 700; }
.up-actions { display: grid; gap: 10px; }
.up-actions .btn { width: 100%; justify-content: center; }
.up-actions label.btn.disabled { opacity: .5; pointer-events: none; }
.up-note { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 620px) { .up-box { grid-template-columns: 1fr; } .up-preview { max-width: 340px; width: 100%; margin-inline: auto; } }

.puzzle-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.pz-wrap { position: relative; width: min(100%, 560px); margin-inline: auto; }
.pz-board { --n: 4; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; aspect-ratio: 1; padding: 2px; border-radius: 14px; background: var(--ink); border: 3px solid var(--line); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pz-tile { position: relative; border: 0; padding: 0; margin: 0; min-width: 0; aspect-ratio: 1; cursor: pointer; border-radius: 3px; background-color: var(--plum); background-image: var(--img, none); background-size: calc(var(--n) * 100%) calc(var(--n) * 100%); background-repeat: no-repeat; transition: transform .12s ease, filter .12s; -webkit-tap-highlight-color: transparent; }
.pz-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.pz-tile.ok::after { box-shadow: inset 0 0 0 2px var(--mint); }
.pz-tile.sel { z-index: 2; transform: scale(.92); filter: brightness(1.15); }
.pz-tile.sel::after { box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 2px var(--ink); }
.pz-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; z-index: 3; }
.pz-tile:disabled { cursor: default; }
.pz-tile.pop { animation: pz-pop .22s ease; }
@keyframes pz-pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
.pz-board.solved { gap: 0; padding: 0; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(255,190,152,.35); }
.pz-board.solved .pz-tile { border-radius: 0; }
.pz-board.solved .pz-tile::after { box-shadow: none; }
.pz-peek { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 3px solid var(--gold); z-index: 5; animation: fade .2s ease; }
.pz-solved { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; padding: 8px 16px; border-radius: 999px; background: var(--mint); color: var(--ink); font-weight: 800; box-shadow: 0 3px 0 var(--ink-2); animation: pop .3s cubic-bezier(.3,1.5,.5,1); white-space: nowrap; }
.pz-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pz-count { font-family: var(--mono); color: var(--mint); font-weight: 700; }
.pz-bar { height: 16px; border-radius: 8px; background: var(--plum); border: 2px solid var(--line); overflow: hidden; margin-top: 8px; }
.pz-bar span { display: block; height: 100%; width: 0; background: var(--mint); transition: width .4s ease; }
.pz-bar.them span { background: var(--pink); }
.pz-mine { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; display: block; margin: 10px auto 0; border-radius: 12px; border: 2px solid var(--line); }
.pz-final-photos { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.pz-final-photos figure { margin: 0; width: min(220px, 44%); }
.pz-final-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 3px solid var(--mint); display: block; }
.pz-final-photos figcaption { margin-top: 6px; color: var(--muted); font-weight: 700; font-size: .9rem; text-align: center; }
.crop-card { width: min(480px, 100%) !important; }
.crop-view { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 3px solid var(--gold); background: var(--plum); }
.crop-view canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.crop-view canvas:active { cursor: grabbing; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-weight: 700; }
.crop-zoom input { flex: 1; accent-color: var(--coral); }
@media (max-width: 860px) { .puzzle-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pz-tile, .pz-tile.pop, .pz-bar span { animation: none; transition: none; } }
@media (max-width: 400px) { .nav-inner { gap: 6px; } .logo img { width: 100px; } .nav-actions { gap: 4px; } }
/* Puzzle Kita: papan lawan (fotoku yang sedang disusun) */
.pz-mini { width: 100%; max-width: 260px; margin: 10px auto 0; gap: 1px; padding: 1px; border-width: 2px; border-radius: 10px; pointer-events: none; }
.pz-mini .pz-tile { border-radius: 1px; cursor: default; }
.pz-mini .pz-tile.ok::after { box-shadow: inset 0 0 0 1px var(--mint); }
.pz-mini.waiting { opacity: .55; filter: grayscale(.5); }
.pz-mini-cap { text-align: center; margin-top: 8px; }
/* Puzzle Kita Mode Kangen: pilihan pasangan di papan bersama */
.pz-tile.their-sel { z-index: 1; filter: brightness(1.08); }
.pz-tile.their-sel::after { box-shadow: inset 0 0 0 3px var(--pink), 0 0 0 2px var(--ink); animation: their-blink 1s ease-in-out infinite alternate; }
@keyframes their-blink { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .pz-tile.their-sel::after { animation: none; } }

/* ===== Kencan Virtual ===== */
.mission-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.mission-opt { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); cursor: pointer; font: inherit; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.mission-opt span { font-size: 1.6rem; }
.mission-opt b { font-size: .92rem; line-height: 1.2; }
.mission-opt small { color: var(--muted); font-weight: 700; font-family: var(--mono); font-size: .78rem; }
.mission-opt:hover { transform: translateY(-2px); border-color: var(--pink); }
.mission-opt[aria-pressed="true"] { background: var(--coral); border-color: var(--ink-2); color: var(--ink); }
.mission-opt[aria-pressed="true"] small { color: var(--ink); }
.mission-opt:disabled { cursor: default; opacity: .55; transform: none; }
.mission-opt:focus-visible { outline: var(--focus); outline-offset: 3px; }

.kv-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.kv-mission { display: flex; gap: 14px; align-items: center; }
.kv-mission-emoji { font-size: 2.4rem; }
.kv-mission h2 { margin: 0; font-size: 1.35rem; }
.kv-mission p { margin: 2px 0 0; color: var(--muted); }
.kv-bar { height: 16px; border-radius: 8px; background: var(--plum); border: 2px solid var(--line); overflow: hidden; }
.kv-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
.kv-bar.over span { background: var(--coral); }
.kv-budget p { display: flex; justify-content: space-between; margin: 6px 0 0; font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.kv-budget b { color: var(--mint); }
.kv-budget b.over { color: var(--coral); }
.kv-event { padding: 10px 14px; border-radius: 12px; background: rgba(255, 215, 138, .14); border: 2px dashed var(--gold); color: var(--gold); font-weight: 800; animation: pop .3s cubic-bezier(.3,1.5,.5,1); }
.kv-catalog { display: grid; gap: 16px; }
.kv-cat h3 { margin: 0 0 8px; font-size: .95rem; text-transform: capitalize; color: var(--pink); }
.kv-wajib { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); vertical-align: middle; }
.kv-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kv-item { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "emo name" "emo price" "emo joy"; column-gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); cursor: pointer; font: inherit; transition: transform var(--motion-fast), border-color var(--motion-fast), opacity var(--motion-fast); }
.kv-emo { grid-area: emo; font-size: 1.7rem; }
.kv-name { grid-area: name; font-weight: 700; font-size: .88rem; line-height: 1.2; }
.kv-price { grid-area: price; font-family: var(--mono); font-size: .82rem; color: var(--gold); }
.kv-price s { color: var(--muted); }
.kv-price .up { color: var(--coral); }
.kv-price .down { color: var(--mint); }
.kv-joy { grid-area: joy; font-size: .62rem; letter-spacing: -1px; }
.kv-badge { position: absolute; top: -8px; right: -6px; padding: 1px 7px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: .7rem; font-weight: 800; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-badge:empty { display: none; }
.kv-item:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--pink); }
.kv-item.in { border-color: var(--mint); background: rgba(255,190,152, .14); }
.kv-item.cant { opacity: .45; }
.kv-item.wait { opacity: .7; }
.kv-item:disabled { cursor: default; }
.kv-item:focus-visible { outline: var(--focus); outline-offset: 2px; }
.kv-req { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.kv-req li { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; text-transform: capitalize; }
.kv-req li.ok { background: var(--mint); color: var(--ink); }
.kv-req li.no { background: transparent; border: 2px dashed var(--gold); color: var(--gold); }
.kv-cart { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.kv-cart li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--plum); font-size: .88rem; }
.kv-cart li b { font-family: var(--mono); font-size: .8rem; color: var(--gold); }
.kv-cart li.empty { display: block; color: var(--muted); text-align: center; background: none; }
.kv-x { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--cream); cursor: pointer; font-weight: 800; line-height: 1; }
.kv-x:hover:not(:disabled) { background: var(--coral); color: var(--ink); }
.kv-total { display: flex; justify-content: space-between; font-family: var(--mono); padding: 4px 2px; border-top: 1px dashed var(--line-soft); }
.kv-total b.over { color: var(--coral); }
.kencan #pay-btn { margin-top: 12px; }
.kv-receipts { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 20px 0; }
.kv-receipt { width: min(320px, 100%); padding: 18px 18px 14px; background: var(--cream); color: var(--ink); font-family: var(--mono); font-size: .85rem; border-radius: 4px; box-shadow: 0 6px 0 var(--ink-2); position: relative; }
.kv-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, var(--cream) 0) 0 0 / 12px 8px repeat-x, linear-gradient(45deg, transparent 6px, var(--cream) 0) 0 0 / 12px 8px repeat-x; }
.kv-receipt h3 { margin: 0; text-align: center; font-family: var(--mono); font-size: 1rem; letter-spacing: .08em; }
.kv-r-head { text-align: center; margin: 4px 0 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--ink); }
.kv-receipt ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.kv-receipt li, .kv-r-line { display: flex; justify-content: space-between; gap: 10px; margin: 0; }
.kv-receipt li.empty { justify-content: center; }
.kv-r-line { padding-top: 4px; font-weight: 800; }
.kv-r-line:first-of-type { border-top: 1px dashed var(--ink); padding-top: 8px; }
.kv-r-line.over { color: #C0392B; }
.kv-r-miss { color: #C0392B; margin: 6px 0 0; }
.kv-r-foot { text-align: center; margin: 10px 0 0; color: #7A5A72; }
@media (max-width: 860px) { .kv-grid { grid-template-columns: 1fr; } .kv-cart { max-height: none; } }
@media (max-width: 420px) { .kv-items { grid-template-columns: 1fr 1fr; } .mission-opts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kencan .scoreboard b { font-size: 1.05rem; } }

/* ---------- Senandung ---------- */
.sn-cats { grid-template-columns: repeat(3, 1fr); }
.sn-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.sn-role { text-align: center; margin: 4px 0 14px; color: var(--muted); font-weight: 700; }
.sn-role b { color: var(--cream); }
.sn-song { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: 18px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink-2); box-shadow: 0 6px 0 var(--ink-2); }
.sn-song small { font-weight: 800; color: #7A5A72; letter-spacing: .02em; }
.sn-song b { font-family: var(--display, inherit); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; }
.sn-song span { font-weight: 700; font-size: 1.05rem; color: var(--panel); }
.sn-warn { text-align: center; margin: 14px 0 10px; color: var(--gold); font-weight: 700; }
.sn-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sn-singer .side-sub { text-align: center; }
.sn-listen { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; text-align: center; }
.sn-wave { display: inline-flex; gap: 4px; align-items: center; height: 28px; }
.sn-wave i { width: 5px; height: 100%; border-radius: 3px; background: var(--pink); animation: sn-wave 1s ease-in-out infinite; }
.sn-wave i:nth-child(2) { animation-delay: .15s; } .sn-wave i:nth-child(3) { animation-delay: .3s; } .sn-wave i:nth-child(4) { animation-delay: .45s; } .sn-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes sn-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sn-wave i { animation: none; transform: scaleY(.6); } }
.sn-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sn-opt { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); font: inherit; cursor: pointer; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.sn-opt b { font-size: 1.05rem; line-height: 1.2; }
.sn-opt small { color: var(--muted); font-weight: 700; }
.sn-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--pink); }
.sn-opt:disabled { cursor: default; opacity: .55; }
.sn-opt.picked { opacity: 1; background: var(--coral); border-color: var(--ink-2); color: var(--ink); }
.sn-opt.picked small { color: var(--ink); }
.sn-reveal { text-align: center; padding: 10px 0; }
.sn-reveal h2 { margin: 6px 0; }
.sn-reveal p b { color: var(--gold); }
.sn-hist, .sn-playlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sn-hist li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--plum); }
.sn-hist li small { color: var(--muted); }
.sn-hist li.empty { color: var(--muted); background: none; padding: 0; }
.sn-playlist { margin: 18px 0; }
.sn-playlist li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 52px; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--plum); border: 2px solid var(--line); }
.sn-playlist li.ok { border-color: var(--mint); }
.sn-playlist li div { display: grid; min-width: 0; }
.sn-playlist li small { color: var(--muted); }
.sn-pl-no { font-family: var(--mono); color: var(--muted); font-weight: 800; }
.sn-pl-who { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.sn-pl-pts { font-family: var(--mono); font-weight: 800; text-align: right; }
.sn-playlist li.ok .sn-pl-pts { color: var(--mint); }
@media (max-width: 860px) { .sn-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sn-opts { grid-template-columns: 1fr; } .sn-playlist li { grid-template-columns: 24px minmax(0, 1fr) 44px; } .sn-pl-who { display: none; } }
.sn-grid .player-status { grid-template-columns: 1fr; }

/* ---------- Angka Asmara ---------- */
.aa-levels { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .aa-levels { grid-template-columns: repeat(2, 1fr); } .aa-levels .mission-opt:last-child { grid-column: 1 / -1; } }
.aa-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.aa-grid .player-status { grid-template-columns: 1fr; }
.aa-sub { text-align: center; color: var(--muted); font-weight: 700; margin: 4px 0 14px; }
.aa-board { --cw: 60px; --ch: 82px; display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; padding: 20px 12px; border-radius: 18px; border: 2px solid var(--line); background: radial-gradient(circle at 12px 12px, rgba(247,169,182,.16) 3px, transparent 4px) 0 0 / 24px 24px, var(--panel); transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
.aa-board.solved { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(255,190,152,.25); }
.aa-board.wrong { border-color: var(--coral); animation: aa-shake .4s; }
@keyframes aa-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .aa-board.wrong { animation: none; } }
.aa-slot { flex: 0 1 var(--cw); min-width: 0; aspect-ratio: 60 / 82; container-type: inline-size; padding: 0; display: grid; place-items: center; border-radius: 12px; border: 2px dashed var(--pink); background: rgba(255,240,205,.05); color: var(--pink); font-size: 1.4rem; cursor: pointer; font-family: inherit; }
.aa-slot:not(.filled) > span { opacity: .55; }
.aa-slot.sel { border-style: solid; border-color: var(--gold); background: rgba(255,215,138,.16); color: var(--gold); }
.aa-slot.filled { border: 0; background: none; }
.aa-slot .aa-card { width: 100%; height: 100%; }
.aa-slot .aa-card b { font-size: clamp(.9rem, 42cqi, 1.6rem); }
.aa-slot .aa-card.op b, .aa-slot .aa-card.eq b { font-size: clamp(1rem, 52cqi, 2rem); }
.aa-slot:disabled { cursor: default; }
.aa-slot.filled:not(:disabled):hover .aa-card { transform: translateY(-3px); }
.aa-card { width: var(--cw, 60px); height: var(--ch, 82px); position: relative; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--ink-2); box-shadow: 0 4px 0 var(--ink-2); font-family: var(--mono); font-weight: 800; color: var(--ink); transition: transform var(--motion-fast); }
.aa-card b { font-size: 1.6rem; line-height: 1; }
.aa-card.num { background: var(--cream); color: #C0182E; }
.aa-card.num i { position: absolute; font-style: normal; font-size: .72rem; line-height: 1; top: 5px; left: 6px; }
.aa-card.num i:last-child { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.aa-card.op { background: linear-gradient(to bottom right, transparent 49%, rgba(38,12,34,.16) 50%) top left / 50% 42% no-repeat, linear-gradient(to bottom left, transparent 49%, rgba(38,12,34,.16) 50%) top right / 50% 42% no-repeat, var(--pink); }
.aa-card.op b { font-size: 2rem; }
.aa-card.eq { background: var(--gold); }
.aa-card.eq b { font-size: 2rem; }
.aa-card.eq small { position: absolute; top: 3px; right: 4px; font-size: .75rem; }
.aa-card.theirs { box-shadow: 0 4px 0 var(--ink-2), 0 0 0 3px var(--mint); }
.aa-status { text-align: center; min-height: 2.6em; margin: 14px 0 4px; font-weight: 700; color: var(--muted); }
.aa-status.ok { color: var(--mint); }
.aa-status.no { color: var(--coral); }
.aa-status small { color: var(--muted); font-weight: 600; }
.aa-hand-title { text-align: center; font-size: .95rem; margin: 14px 0 10px; color: var(--cream); }
.aa-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 86px; align-items: center; }
.aa-pick { padding: 0; border: 0; background: none; cursor: pointer; }
.aa-pick:hover:not(:disabled) .aa-card { transform: translateY(-4px) rotate(-2deg); }
.aa-pick:disabled { cursor: default; opacity: .55; }
.aa-pick.wait { opacity: .4; }
.aa-hand-them { --cw: 44px; --ch: 60px; gap: 6px; min-height: 64px; }
.aa-hand-them .aa-card { opacity: .85; }
.aa-hand-them .aa-card b { font-size: 1.15rem; }
.aa-hand-them .aa-card.op b, .aa-hand-them .aa-card.eq b { font-size: 1.4rem; }
.aa-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.aa-dot.on { background: var(--pink); border-color: var(--pink); }
.aa-empty { color: var(--muted); margin: 0; }
.aa-actions { display: flex; justify-content: center; margin-top: 14px; }
.aa-recap li div b { font-family: var(--mono); }
@media (max-width: 860px) { .aa-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .aa-board, .aa-hand:not(.aa-hand-them) { --cw: 46px; --ch: 64px; gap: 6px; }
  .aa-board { padding: 14px 8px; flex-wrap: wrap; }
  .aa-slot { flex: 0 0 var(--cw); }
  .aa-card b { font-size: 1.25rem; }
  .aa-card.op b, .aa-card.eq b { font-size: 1.5rem; }
  .aa-card.num i { font-size: .6rem; top: 3px; left: 4px; }
  .aa-card.num i:last-child { bottom: 3px; right: 4px; }
}

/* ---------- Kompak Meter ---------- */
.km-freq { grid-template-columns: repeat(3, 1fr); }
.km-host-note { margin: 0 0 6px; padding: 10px 14px; border-radius: 12px; background: rgba(255,215,138,.12); color: var(--gold); font-weight: 700; }
.km-range { margin: 0 0 22px; }
.km-range input[type="range"] { width: 100%; accent-color: var(--coral); height: 28px; cursor: pointer; }
.km-range input[type="range"]:disabled { cursor: default; opacity: .6; }
.km-range-scale { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: .85rem; }
.setup-h2 #n-out { color: var(--gold); font-family: var(--mono); }
.km-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.km-q { text-align: center; font-size: clamp(1.25rem, 3.6vw, 1.75rem); line-height: 1.3; margin: 18px 0 20px; min-height: 2.6em; }
.km-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.km-opts.who { grid-template-columns: repeat(3, 1fr); }
.km-opt { display: grid; gap: 6px; justify-items: center; align-content: center; text-align: center; min-height: 64px; padding: 14px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); font: inherit; cursor: pointer; transition: transform var(--motion-fast), border-color var(--motion-fast), opacity var(--motion-fast); }
.km-opt span { font-size: 1.6rem; line-height: 1; }
.km-opt b { font-size: 1.02rem; line-height: 1.25; }
.km-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--pink); }
.km-opt:disabled { cursor: default; }
.km-opt.picked { background: var(--coral); border-color: var(--ink-2); color: var(--ink); }
.km-opt.match { background: var(--mint); border-color: var(--ink-2); color: var(--ink); transform: scale(1.04); }
.km-opt.dim { opacity: .4; }
.km-opts:not(.who) .km-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.km-wait { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.km-chip { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: .9rem; }
.km-chip.on { border-color: var(--mint); color: var(--mint); }
.km-reveal { text-align: center; margin-top: 16px; }
.km-reveal h2 { margin: 6px 0; }
.km-reveal p b { color: var(--mint); }
.km-meter { height: 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--plum); overflow: hidden; }
.km-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--coral)); transition: width .5s ease; }
.km-meter-num { text-align: center; margin: 8px 0 4px; color: var(--muted); font-weight: 700; }
.km-meter-num b { color: var(--cream); font-family: var(--mono); font-size: 1.4rem; }
.km-recap li div b { font-weight: 700; }
@media (max-width: 860px) { .km-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .km-opts { grid-template-columns: 1fr; } .km-opts.who { grid-template-columns: repeat(3, 1fr); gap: 8px; } .km-opts.who .km-opt { padding: 10px 4px; } .km-opts.who .km-opt b { font-size: .88rem; } .km-freq { gap: 6px; } .km-freq .mission-opt small { font-size: .7rem; } }

/* ---------- Ini atau Itu ---------- */
.ii-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px; }
.ii-theme { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); font: inherit; cursor: pointer; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.ii-theme span { font-size: 1.6rem; line-height: 1.1; }
.ii-theme b { font-size: .95rem; line-height: 1.2; }
.ii-theme small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.ii-theme:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--pink); }
.ii-theme[aria-pressed="true"] { background: var(--coral); border-color: var(--ink-2); color: var(--ink); }
.ii-theme[aria-pressed="true"] small { color: var(--ink); }
.ii-theme:disabled { cursor: default; }
.ii-theme:disabled:not([aria-pressed="true"]) { opacity: .55; }

.ii-theme-tag { text-align: center; margin: 14px 0 6px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.ii-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; margin: 4px 0 18px; }
.ii-side { display: grid; place-items: center; height: 100%; min-height: 120px; border-radius: 14px; border: 2px dashed var(--line); font-size: 1.4rem; opacity: .5; transition: opacity var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast); }
.ii-side.hot, .ii-side.on { opacity: 1; border-style: solid; border-color: var(--coral); background: rgba(255,98,89,.14); }
.ii-card { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; min-height: 210px; padding: 16px 14px 34px; border-radius: 22px; border: 3px solid var(--ink-2, #260C22); background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink-2, #260C22); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; }
.ii-card.dragging { transition: none; cursor: grabbing; }
.ii-card.enter { transform: translateY(18px) scale(.94); opacity: 0; transition: none; }
.ii-card.locked { cursor: default; }
.ii-card.go-l { transform: translateX(-9%) rotate(-5deg); }
.ii-card.go-r { transform: translateX(9%) rotate(5deg); }
.ii-card.match { background: var(--mint); transform: scale(1.03); }
.ii-card.secret { background: var(--muted); }
.ii-opt { display: grid; place-items: center; text-align: center; padding: 10px 8px; border-radius: 14px; font-weight: 800; font-size: clamp(1.05rem, 3.2vw, 1.4rem); line-height: 1.25; overflow-wrap: anywhere; transition: background .2s, opacity .2s, transform .2s; }
.ii-opt.lean { background: rgba(255,98,89,.18); }
.ii-opt.chosen { background: var(--coral); color: var(--ink); transform: scale(1.03); }
.ii-card.match .ii-opt.chosen { background: rgba(255,255,255,.55); }
.ii-opt.dim { opacity: .35; }
.ii-or { align-self: center; padding: 6px 10px; margin: 0 4px; border-radius: 999px; background: var(--ink); color: var(--gold); font-family: var(--mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.ii-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-weight: 700; font-size: .8rem; color: rgba(38,12,34,.6); }
.ii-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ii-btns[hidden] { display: none; }
.ii-btn { min-height: 52px; }
.ii-recap li div b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ii-card, .ii-opt { transition: none; } }
@media (max-width: 520px) {
  .ii-stage { grid-template-columns: minmax(0, 1fr); }
  .ii-side { display: none; }
  .ii-card { min-height: 190px; padding: 14px 10px 32px; }
  .ii-themes { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ii-theme { padding: 10px 6px; }
}

/* ---------- ABC 5 Dasar ---------- */
.abc-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.abc-grid .player-status { grid-template-columns: 1fr; }
.abc-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 14px; }
.abc-letter { display: grid; place-items: center; width: 96px; height: 96px; flex: none; border-radius: 22px; border: 3px solid var(--ink-2); background: var(--gold); color: var(--ink); font-family: var(--display, inherit); font-weight: 900; font-size: 3.4rem; line-height: 1; box-shadow: var(--hard); }
.abc-cat { display: grid; gap: 2px; min-width: 0; }
.abc-cat small { color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.abc-cat b { font-size: clamp(1.2rem, 3.4vw, 1.6rem); line-height: 1.2; }
.abc-cat span { color: var(--muted); font-size: .88rem; }
.abc-form { display: flex; gap: 10px; }
.abc-form[hidden] { display: none; }
.abc-form input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); font: inherit; font-size: 1.15rem; font-weight: 700; }
.abc-form input:focus { outline: none; border-color: var(--coral); }
.abc-fb { min-height: 1.6em; margin: 10px 0 6px; }
.abc-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 44px; margin-top: 6px; }
.abc-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 2px solid var(--ink-2); font-weight: 800; animation: abc-pop .25s ease; }
.abc-chip small { font-family: var(--mono); font-size: .78rem; opacity: .8; }
.abc-chip.me { background: var(--coral); color: var(--ink); }
.abc-chip.them { background: var(--pink); color: var(--ink); }
.abc-empty { color: var(--muted); font-size: .9rem; align-self: center; }
.abc-reveal h2 { font-size: 1.3rem; }
.abc-reveal p b { color: var(--gold); }
.abc-mini { display: inline-block; padding: 1px 8px; margin: 2px 2px 0 0; border-radius: 999px; font-weight: 700; font-size: .82rem; color: var(--ink); }
.abc-mini.me { background: var(--coral); }
.abc-mini.them { background: var(--pink); }
.abc-recap .sn-pl-no { font-weight: 900; }
@keyframes abc-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .abc-chip { animation: none; } }
@media (max-width: 860px) { .abc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .abc-head { gap: 12px; justify-content: flex-start; }
  .abc-letter { width: 74px; height: 74px; font-size: 2.6rem; border-radius: 18px; }
  .abc-form .btn { padding-inline: 14px; }
}

/* ---------- Tebak Negara ---------- */
.tn-clues { display: flex; justify-content: center; gap: 14px; margin: 16px 0 12px; }
.tn-icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; border: 3px dashed var(--line); background: transparent; color: var(--muted); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.tn-icon.open { border: 3px solid var(--ink-2); background: var(--cream); font-size: 3.2rem; box-shadow: var(--hard); animation: abc-pop .3s ease; }
.tn-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.tn-hint { display: grid; gap: 2px; place-items: center; min-height: 64px; padding: 8px 6px; border-radius: 14px; border: 2px dashed var(--line); text-align: center; color: var(--muted); }
.tn-hint small { font-family: var(--mono); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.tn-hint b { font-size: 1.05rem; line-height: 1.25; }
.tn-hint.open { border-style: solid; border-color: var(--gold); color: var(--cream); animation: abc-pop .3s ease; }
.tn-hint img { display: block; width: 48px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.tn-pattern { font-family: var(--mono); letter-spacing: .04em; white-space: pre-wrap; word-break: break-word; font-size: .95rem; }
.tn-worth { margin: 0 0 10px; text-align: center; color: var(--muted); font-size: .92rem; }
.tn-worth b { color: var(--gold); }
.tn-worth[hidden] { display: none; }
.tn-reveal-flag { display: block; width: 120px; height: 90px; margin: 0 auto 10px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink-2); box-shadow: var(--hard); }
.tn-recap .sn-pl-no img { display: block; width: 28px; height: 21px; object-fit: cover; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .tn-icon.open, .tn-hint.open { animation: none; } }
@media (max-width: 520px) {
  .tn-clues { gap: 10px; }
  .tn-icon { width: 78px; height: 78px; border-radius: 18px; }
  .tn-icon.open { font-size: 2.6rem; }
  .tn-extra { gap: 6px; }
  .tn-hint b { font-size: .92rem; }
  .tn-pattern { font-size: .82rem; }
}
.tn-bn { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; }
.tn-bn-opt { display: grid; place-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: transparent; color: var(--cream); font: inherit; cursor: pointer; }
.tn-bn-opt span { font-size: 1.4rem; line-height: 1; }
.tn-bn-opt b { font-size: .9rem; }
.tn-bn-opt small { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.tn-bn-opt[aria-pressed="true"] { border-color: var(--coral); background: rgba(255,140,120,.14); box-shadow: var(--hard); }
.tn-bn-opt:disabled { cursor: default; }
.tn-bn-opt:disabled:not([aria-pressed="true"]) { opacity: .55; }
#lv-pick .ii-theme:disabled:not([aria-pressed="true"]) { opacity: .45; }
#lv-pick .ii-theme i { font-style: normal; }
.tn-pool-note { margin: -12px 0 18px; color: var(--gold); font-size: .9rem; }
.tn-pool-note[hidden] { display: none; }
.tn-wish { margin-top: 8px; }
.tn-wish[aria-pressed="true"] { border-color: var(--pink); }
.tn-wish-note { min-height: 1.3em; margin: 6px 0 0; color: var(--pink); font-weight: 700; font-size: .92rem; }
.tn-recap li { position: relative; }
.tn-heart { display: inline-flex; align-items: center; gap: 2px; min-width: 44px; min-height: 44px; justify-content: center; border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; border-radius: 12px; }
.tn-heart:hover { background: rgba(247,169,182,.15); }
.tn-heart i { font-style: normal; font-size: .8rem; }
.tn-pass-empty { color: var(--muted); font-size: .88rem; margin: 8px 0; }
.tn-dream { margin: 14px 0 6px; padding: 14px; border-radius: 16px; border: 2px dashed var(--pink); }
.tn-dream h3 { margin: 0 0 10px; font-size: 1.1rem; }
.tn-dream ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tn-dream li { display: flex; align-items: center; gap: 10px; }
.tn-dream li img { width: 36px; height: 27px; object-fit: cover; border-radius: 4px; flex: none; }
.tn-dream li div { display: grid; min-width: 0; }
.tn-dream li small { color: var(--muted); font-size: .8rem; }
.tn-paspor { margin-top: 18px; border: 2px solid var(--line); border-radius: 16px; padding: 0 14px; }
.tn-paspor summary { cursor: pointer; padding: 12px 0; font-weight: 800; }
.tn-paspor summary b { color: var(--gold); }
.tn-paspor h3 { margin: 14px 0 8px; font-size: 1rem; }
.tn-paspor h3 small { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.tn-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.tn-stamp { display: grid; place-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 2px dashed var(--line); text-align: center; color: var(--muted); }
.tn-stamp span { display: grid; place-items: center; width: 36px; height: 27px; font-weight: 900; }
.tn-stamp small { font-size: .7rem; line-height: 1.2; overflow-wrap: anywhere; }
.tn-stamp img { width: 36px; height: 27px; object-fit: cover; border-radius: 4px; }
.tn-stamp.got { border-style: solid; border-color: var(--gold); color: var(--cream); transform: rotate(-2deg); }
.tn-stamp.got:nth-child(even) { transform: rotate(2deg); }
.tn-stamp.dream { border-color: var(--pink); }
.tn-paspor #paspor-body { padding-bottom: 12px; }
@media (max-width: 640px) { .tn-bn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sn-playlist.tn-recap li { grid-template-columns: 32px minmax(0, 1fr) auto 52px 44px; padding-right: 6px; }
@media (max-width: 520px) { .sn-playlist.tn-recap li { grid-template-columns: 28px minmax(0, 1fr) 44px 44px; } }
@media (max-width: 520px) { .tn-stamps { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 5px; } .tn-stamp { padding: 6px 2px; } .tn-stamp small { font-size: .64rem; } }

/* ---------- Cerdas Cermat ---------- */
.cc-variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.variant-opt.cc-soon, .variant-opt.cc-soon:disabled { opacity: .5; border-style: dashed; }
.cc-soon em { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-style: normal; font-weight: 800; font-size: .74rem; }
#bot-box[hidden] { display: none; }
.cc-bot .ii-theme:disabled:not([aria-pressed="true"]) { opacity: .5; }
.cc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 0 0 22px; }
.cc-cat { display: grid; place-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: transparent; color: var(--cream); font: inherit; cursor: pointer; text-align: center; }
.cc-cat span { font-size: 1.4rem; line-height: 1; }
.cc-cat b { font-size: .86rem; line-height: 1.2; }
.cc-cat small { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.cc-cat[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,215,138,.12); box-shadow: var(--hard); }
.cc-cat:disabled { cursor: default; }
.cc-cat:disabled:not([aria-pressed="true"]) { opacity: .5; }

.cc-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 6px 0 14px; }
.cc-team { display: grid; gap: 2px; place-items: center; padding: 10px 8px; border-radius: 16px; background: var(--pink); color: var(--ink); border: 2px solid var(--ink-2); box-shadow: var(--hard); transition: opacity var(--motion-fast), transform var(--motion-fast); }
#team-b { background: var(--mint); }
.cc-team small { font-weight: 800; font-size: .82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-team b { font-family: var(--mono); font-size: 1.9rem; line-height: 1; }
.cc-team.locked { opacity: .45; }
.cc-team.locked small::after { content: " 🔒"; }
.cc-team.won { background: var(--gold); transform: translateY(-3px); }
.cc-colon { font-family: var(--mono); font-size: 1.8rem; font-weight: 900; color: var(--coral); }
.cc-q { padding: 16px; border-radius: 18px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink-2); margin-bottom: 14px; }
.cc-q-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cc-tag { padding: 2px 9px; border-radius: 999px; background: rgba(38,12,34,.1); font-size: .76rem; font-weight: 800; }
.cc-tag[data-lv="2"] { background: rgba(255,215,138,.8); }
.cc-tag[data-lv="3"] { background: rgba(255,98,89,.35); }
.cc-q-text { margin: 0; font-size: 1.22rem; font-weight: 800; line-height: 1.4; }
.cc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cc-opts[hidden] { display: none; }
.cc-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; min-height: 58px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); font: inherit; cursor: pointer; box-shadow: 0 4px 0 var(--ink-2); transition: transform var(--motion-fast), border-color var(--motion-fast); }
.cc-opt span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); font-family: var(--mono); font-weight: 900; }
.cc-opt b { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.cc-opt i { font-style: normal; font-size: .76rem; color: var(--muted); }
.cc-opt i:empty { display: none; }
.cc-opt:has(i:empty) b { grid-row: span 2; }
.cc-opt:not(:disabled):hover { transform: translateY(-2px); border-color: var(--gold); }
.cc-opt:focus-visible { outline: var(--focus); outline-offset: 3px; }
.cc-opt:disabled { cursor: default; }
.cc-opt.wrong { border-color: var(--coral); background: rgba(255,98,89,.16); opacity: .8; }
.cc-opt.wrong span { background: var(--coral); color: var(--ink); }
.cc-opt.right, .cc-opt.picked-ok { border-color: var(--mint); background: rgba(255,190,152,.18); opacity: 1; }
.cc-opt.right span, .cc-opt.picked-ok span { background: var(--mint); color: var(--ink); }
.cc-fb.ok { color: var(--mint); }
.cc-fb.no { color: var(--pink); }
.cc-fb[hidden] { display: none; }
.cc-reveal { padding: 16px; border-radius: 18px; border: 2px dashed var(--gold); animation: abc-pop .3s ease; }
.cc-reveal[hidden] { display: none; }
.cc-reveal small { color: var(--muted); font-weight: 700; }
.cc-reveal h2 { margin: 6px 0 8px; color: var(--gold); font-size: 1.4rem; }
.cc-reveal p { margin: 0 0 10px; line-height: 1.5; }
.cc-reveal .cc-next { font-family: var(--mono); font-size: .78rem; }
.cc-roster { display: grid; gap: 12px; }
.cc-roster-team { display: grid; gap: 8px; }
.cc-roster-team h4 { display: flex; justify-content: space-between; margin: 0; font-size: .92rem; color: var(--muted); }
.cc-roster-team h4 span { font-family: var(--mono); color: var(--cream); }
.cc-roster-team.mine h4 { color: var(--pink); }
.cc-bot-av { position: relative; overflow: visible; }
.cc-bot-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.cc-bot-av.robu { border-color: var(--pink); }
.cc-bot-av.robu img { filter: hue-rotate(-40deg) saturate(1.3) brightness(1.05); }
.cc-bot-av em { position: absolute; top: -9px; right: -8px; font-style: normal; font-size: 1rem; }
.cc-chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-chat li { display: grid; gap: 2px; max-width: 92%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--plum); animation: abc-pop .25s ease; }
.cc-chat li.robu { justify-self: end; border-radius: 14px 14px 4px 14px; background: rgba(247,169,182,.2); border: 1px solid var(--pink); }
.cc-chat li b { font-size: .78rem; color: var(--gold); }
.cc-chat li.robu b { color: var(--pink); }
.cc-chat li span { font-size: .9rem; line-height: 1.35; }
.cc-chat li.empty { max-width: none; background: none; color: var(--muted); padding: 0; }
.sn-hist li.ok { box-shadow: inset 3px 0 0 var(--mint); }
.sn-playlist.cc-recap li b { font-size: .92rem; line-height: 1.35; }
@media (max-width: 760px) { .cc-variants { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cc-opts { grid-template-columns: 1fr; gap: 8px; }
  .cc-opt { min-height: 50px; }
  .cc-q-text { font-size: 1.08rem; }
  .cc-team b { font-size: 1.5rem; }
  .cc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- menu Akun (navbar) ---------- */
.acct { position: relative; }
.acct-btn { gap: 4px; }
.acct-btn[aria-expanded="true"] { border-color: var(--gold); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 270px; padding: 10px; border-radius: 18px; background: var(--panel); border: 2px solid var(--line); box-shadow: var(--hard-lg, 0 10px 0 var(--ink-2)); display: grid; gap: 6px; animation: abc-pop .18s ease; }
.acct-menu[hidden] { display: none; }
.acct-head { display: grid; gap: 2px; padding: 6px 8px 10px; border-bottom: 2px dashed var(--line-soft); }
.acct-head b { font-size: 1rem; }
.acct-head small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.acct-list { display: grid; gap: 2px; }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--cream); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; text-align: left; cursor: pointer; }
.acct-item > span:first-child { width: 22px; text-align: center; }
.acct-item:hover, .acct-item:focus-visible { background: rgba(255,240,205,.08); color: var(--cream); }
.acct-item:focus-visible { outline: var(--focus); outline-offset: 1px; }
.acct-item[aria-current="page"] { background: rgba(255,215,138,.14); color: var(--gold); }
.acct-item.soon { cursor: default; color: var(--muted); }
.acct-item.soon:hover { background: transparent; }
.acct-item em { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--gold); font-style: normal; font-size: .7rem; }
.acct-sound { display: grid; gap: 2px; padding-top: 8px; border-top: 2px dashed var(--line-soft); }
.acct-sound > small { padding: 0 10px; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; }
.acct-toggle i { margin-left: auto; position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--ink); border: 2px solid var(--line); transition: background var(--motion-fast); }
.acct-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform var(--motion-fast), background var(--motion-fast); }
.acct-toggle[aria-checked="true"] i { background: var(--mint); border-color: var(--mint); }
.acct-toggle[aria-checked="true"] i::after { transform: translateX(18px); background: var(--ink); }
.acct-out { border-top: 2px dashed var(--line-soft); border-radius: 0 0 12px 12px; padding-top: 10px; color: var(--pink); }
.show-sm { display: none !important; }
@media (max-width: 560px) {
  .show-sm { display: flex !important; }
  .acct-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: calc(100dvh - 90px); overflow: auto; padding: 14px; }
  body.acct-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(27,8,24,.6); }
  body.acct-open .nav { z-index: 70; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
}

/* ---------- Leaderboard ---------- */
.lb-tabs { display: inline-flex; gap: 6px; padding: 5px; margin: 0 0 18px; border-radius: 16px; background: var(--plum); border: 2px solid var(--line); }
.lb-tab { min-height: 44px; padding: 0 20px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.lb-tab[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.lb-tab:focus-visible { outline: var(--focus); outline-offset: 2px; }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lb-period { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.lb-period div { display: grid; gap: 2px; }
.lb-period small { color: var(--muted); font-size: .8rem; }
.lb-period b { font-family: var(--mono); font-size: 1rem; }
.lb-reset { text-align: right; }
.lb-reset b { color: var(--gold); }
.lb-me { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; border: 2px dashed var(--pink); }
.lb-me[hidden] { display: none; }
.lb-me > span { font-size: 1.6rem; }
.lb-me div { display: grid; gap: 2px; }
.lb-me small { color: var(--muted); }
.lb-list, .lb-hof { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--ink); border: 2px solid var(--line-soft); }
.lb-row.top { border-color: var(--line); }
.lb-row.top-1 { border-color: var(--gold); background: rgba(255,215,138,.1); }
.lb-row.mine { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(247,169,182,.25); }
.lb-rank { font-family: var(--mono); font-weight: 900; font-size: 1.05rem; text-align: center; }
.lb-row.top .lb-rank { font-size: 1.6rem; }
.lb-who { display: grid; gap: 2px; min-width: 0; }
.lb-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who em { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--pink); color: var(--ink); font-style: normal; font-size: .7rem; vertical-align: 2px; }
.lb-who small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { display: grid; justify-items: end; }
.lb-pts b { font-family: var(--mono); font-size: 1.15rem; color: var(--gold); }
.lb-pts small { color: var(--muted); font-size: .72rem; }
.lb-gap { text-align: center; color: var(--muted); }
.lb-empty { color: var(--muted); padding: 6px 0; line-height: 1.5; }
.lb-hof li:not(.lb-empty) { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); }
.lb-hof li div { display: grid; min-width: 0; }
.lb-hof li small { color: var(--muted); font-size: .78rem; }
.lb-rules ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; line-height: 1.45; }
.lb-page .side { display: grid; gap: 22px; }
.lb-optin { display: grid; gap: 12px; }
.lb-optin .acct-toggle { padding: 8px 0; }
@media (max-width: 860px) { .lb-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lb-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 10px; } .lb-tabs { display: flex; } .lb-tab { flex: 1; } }

/* ---------- Dompet Temu ---------- */
.wallet-main { display: grid; gap: 22px; }
.wallet-balance { display: flex; align-items: center; gap: 20px; }
.wallet-coin { display: grid; place-items: center; width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink-2); box-shadow: var(--hard); font-size: 2.6rem; }
.wallet-balance small { color: var(--muted); font-weight: 700; }
.wallet-balance b { display: block; font-family: var(--mono); font-size: 2.6rem; line-height: 1.1; color: var(--gold); }
.wallet-balance b span { font-size: 1rem; color: var(--cream); }
.wallet-balance p { margin: 4px 0 0; color: var(--muted); }
.wallet-amt { color: var(--gold); font-family: var(--mono); margin-right: 6px; }
.wallet-hist { max-height: 420px; overflow: auto; }
.wallet-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wallet-table caption { text-align: left; color: var(--muted); font-size: .8rem; padding-bottom: 6px; }
.wallet-table th, .wallet-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.wallet-table th:first-child, .wallet-table td:first-child { text-align: left; }
.wallet-page h2 .cc-soon em { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-style: normal; font-weight: 800; font-size: .72rem; }
.shop { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.shop-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); }
.shop-pic svg, .shop-pic img { display: block; width: 96px; height: auto; }
.shop-body { display: grid; gap: 4px; min-width: 0; }
.shop-body small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.shop-bar { height: 8px; border-radius: 99px; background: var(--plum); overflow: hidden; margin-top: 4px; }
.shop-bar span { display: block; height: 100%; background: var(--mint); border-radius: 99px; }
.shop-price { display: grid; justify-items: end; gap: 4px; }
.shop-price b { font-family: var(--mono); color: var(--gold); white-space: nowrap; }
.shop-price small { color: var(--muted); font-size: .75rem; }
.acct-temu { color: var(--gold) !important; font-family: var(--mono); }
@media (max-width: 560px) {
  .wallet-balance { gap: 14px; }
  .wallet-coin { width: 64px; height: 64px; font-size: 2rem; }
  .wallet-balance b { font-size: 2rem; }
  .shop-item { grid-template-columns: 72px minmax(0, 1fr); }
  .shop-pic svg, .shop-pic img { width: 72px; }
  .shop-price { grid-column: 1 / -1; grid-template-columns: 1fr auto auto; align-items: center; justify-items: start; }
}

/* ---------- SMA (sertifikat) ---------- */
.sma { --sp: #FFF0CD; --sg: #C9952F; --si: #260C22; --sm: #7A4E6C; position: relative; padding: 14px; border-radius: 22px; background: var(--sp); color: var(--si); box-shadow: var(--hard-lg); background-image: radial-gradient(ellipse at center, rgba(255,255,255,0) 40%, rgba(201,149,47,.2) 100%); }
.sma-in { position: relative; padding: 26px 24px 22px; border: 4px double var(--sg); border-radius: 14px; text-align: center; }
.sma-in::before, .sma-in::after { content: "❦"; position: absolute; top: 6px; color: var(--sg); font-size: 1.3rem; }
.sma-in::before { left: 10px; } .sma-in::after { right: 10px; transform: scaleX(-1); }
.sma-top { display: grid; gap: 2px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--sm); }
.sma-orn { color: #FF6259; font-size: 1.4rem; margin: 6px 0 0; }
.sma-title { margin: 2px 0 6px; color: var(--si); font-size: clamp(1.5rem, 4.6vw, 2.2rem); }
.sma-lead, .sma-alias { margin: 0; font-family: var(--display); font-style: italic; color: var(--sm); }
.sma-names { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 10px auto 4px; padding-bottom: 8px; border-bottom: 2px solid var(--sg); max-width: 520px; font-family: var(--display); }
.sma-names b { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.sma-names span { color: #FF6259; font-size: 1.5rem; }
.sma-body { max-width: 480px; margin: 10px auto 14px; font-size: .95rem; line-height: 1.5; }
.sma-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.sma-facts > div { display: grid; gap: 3px; align-content: start; }
.sma-facts dt { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: var(--sm); text-transform: uppercase; }
.sma-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.sma-facts dd small { font-size: .7rem; color: var(--sm); }
.sma-facts dd em { display: block; font-family: var(--body); font-style: normal; font-weight: 700; font-size: .72rem; color: var(--sm); }
.sma-meter { display: block; height: 7px; border-radius: 99px; background: rgba(38,12,34,.12); overflow: hidden; }
.sma-meter span { display: block; height: 100%; background: #FF6259; border-radius: 99px; }
.sma-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.sma-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: #F6DFB0; border: 2px solid var(--sg); font-weight: 700; font-size: .82rem; }
.sma-badge i { font-style: normal; font-size: 1.1rem; }
.sma-badge.empty { border-style: dashed; color: var(--sm); background: transparent; }
.sma-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sma-seal { display: grid; place-items: center; width: 78px; height: 78px; flex: none; border-radius: 50%; border: 4px solid #FF6259; box-shadow: inset 0 0 0 4px var(--sp), inset 0 0 0 6px #FF6259; color: #FF6259; font-family: var(--mono); font-weight: 900; font-size: .62rem; line-height: 1.2; transform: rotate(-12deg); }
.sma-sign { display: grid; justify-items: center; gap: 2px; padding-top: 4px; border-top: 2px solid var(--si); min-width: 160px; }
.sma-sign i { font-family: var(--display); font-size: 1.15rem; order: -1; margin-top: -30px; }
.sma-sign span { font-size: .72rem; color: var(--sm); font-weight: 700; }
@media (max-width: 520px) {
  .sma { padding: 8px; }
  .sma-in { padding: 22px 12px 16px; }
  .sma-facts { grid-template-columns: 1fr; }
  .sma-seal { width: 62px; height: 62px; font-size: .52rem; }
  .sma-sign { min-width: 0; }
}

/* ---------- Warga & admin ---------- */
.warga-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ws; }
.warga-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); }
.warga-step.done { border-color: var(--mint); }
.warga-step.wait { border-color: var(--gold); }
.warga-step > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); font-size: 1.3rem; }
.warga-step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.warga-step p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.warga-form { display: flex; gap: 8px; flex-wrap: wrap; }
.warga-form .input { flex: 1 1 200px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--panel); }
.chip.ok { background: var(--mint); color: var(--ink); }
.chip.wait { background: var(--gold); color: var(--ink); }
.chip.no { background: var(--coral); color: var(--ink); }
.warga-people { display: grid; gap: 8px; margin: 8px 0; }
.warga-people div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sma-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pin-list button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line-soft); background: var(--ink); color: var(--cream); font: inherit; font-weight: 700; font-size: .85rem; text-align: left; cursor: pointer; }
.pin-list button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,215,138,.12); }
.pin-list button:disabled { opacity: .45; cursor: default; }
.pin-list button span { font-size: 1.2rem; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ink); border: 2px solid var(--line-soft); }
.admin-item div { display: grid; gap: 2px; min-width: 0; }
.admin-item small { color: var(--muted); }
.admin-item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .admin-item { grid-template-columns: 1fr; } .admin-item .acts { justify-content: flex-start; } }
.acct-item[hidden] { display: none; }
.badges li.b-group { grid-column: 1 / -1; text-align: left; padding: 6px 2px 0; background: none; border: 0; box-shadow: none; opacity: 1; font-weight: 800; color: var(--gold); }
.badges li { position: relative; }
.badges li.pinned { border-color: var(--pink); box-shadow: 0 4px 0 var(--ink-2), 0 0 0 3px rgba(247,169,182,.35); }
.b-pin { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line-soft); background: var(--plum); font-size: .95rem; cursor: pointer; opacity: .55; }
.b-pin[aria-pressed="true"] { opacity: 1; border-color: var(--pink); background: rgba(247,169,182,.2); }
.b-pin:focus-visible { outline: var(--focus); outline-offset: 2px; }
.sma-card .sma { margin-top: 6px; }
.sma-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border-radius: 16px; border: 2px dashed var(--gold); }
.sma-cta > span { font-size: 2rem; }
.sma-cta div { display: grid; gap: 2px; flex: 1 1 220px; }
.sma-cta small { color: var(--muted); line-height: 1.4; }
.sma-actions[hidden] { display: none; }

/* ---------- Komplek Rumah Rukun ---------- */
.kp-gate { position: relative; display: grid; justify-items: center; margin: 0 0 26px; }
.kp-arch { position: relative; width: min(100%, 640px); height: 70px; border: 5px solid var(--gold); border-bottom: 0; border-radius: 120px 120px 0 0; display: grid; place-items: center; background: linear-gradient(var(--plum), transparent); }
.kp-arch span { padding: 4px 16px; border-radius: 10px; background: var(--gold); color: var(--ink); font-family: var(--mono); font-weight: 900; letter-spacing: .1em; font-size: clamp(.75rem, 2.6vw, 1rem); box-shadow: var(--hard); }
.kp-board { width: min(100%, 720px); padding: 14px; border-radius: 18px; background: #8A5A3B; border: 4px solid #5C3A24; box-shadow: var(--hard-lg); }
.kp-board-head { text-align: center; color: #FFF0CD; font-family: var(--mono); letter-spacing: .08em; margin-bottom: 10px; }
.kp-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.kp-tabs button { flex: 1; min-height: 44px; border: 2px solid #5C3A24; border-radius: 10px; background: #6E452D; color: #FFF0CD; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.kp-tabs button[aria-selected="true"] { background: #FFF0CD; color: var(--ink); }
.kp-tabs button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.kp-paper { min-height: 150px; padding: 14px 16px; border-radius: 6px; background: #FFF0CD; color: var(--ink); box-shadow: 0 4px 0 #5C3A24; transform: rotate(-.4deg); }
.kp-paper[hidden] { display: none; }
.kp-paper .lb-empty { color: #7A4E6C; }
.kp-lb { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.kp-lb li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-bottom: 1px dashed #C9952F; }
.kp-lb li.mine { background: rgba(247,169,182,.4); border-radius: 8px; }
.kp-lb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-lb em { font-style: normal; font-family: var(--mono); font-weight: 900; color: #B8343A; }
.kp-more { color: #B8343A; font-weight: 800; }
.kp-ann { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 260px; overflow: auto; }
.kp-ann li { padding-bottom: 8px; border-bottom: 1px dashed #C9952F; }
.kp-ann li.pin b { color: #B8343A; }
.kp-ann p { margin: 4px 0; line-height: 1.45; font-size: .92rem; }
.kp-ann small { color: #7A4E6C; font-size: .76rem; }
.kp-ad-soon { display: grid; place-items: center; text-align: center; gap: 4px; min-height: 120px; border: 3px dashed #C9952F; border-radius: 10px; padding: 12px; }
.kp-ad-soon p { margin: 0; color: #7A4E6C; }
.kp-grid { align-items: start; }
.kp-map { display: grid; gap: 0; }
.kp-block h3 { margin: 6px 0 8px; font-size: 1rem; color: var(--gold); font-family: var(--mono); }
.kp-lots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kp-road { height: 26px; margin: 12px 0 4px; border-radius: 6px; background: #3A2A35; background-image: repeating-linear-gradient(90deg, transparent 0 18px, var(--gold) 18px 36px); background-size: 100% 3px; background-position: 0 50%; background-repeat: no-repeat; }
.kp-lot { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 14px; border: 2px solid var(--line-soft); background: rgba(255,190,152,.08); color: var(--cream); font: inherit; cursor: pointer; min-width: 0; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.kp-lot:hover { transform: translateY(-2px); border-color: var(--gold); }
.kp-lot:focus-visible { outline: var(--focus); outline-offset: 2px; }
.kp-lot.kosong { color: var(--muted); background: transparent; border-style: dashed; }
.kp-lot.mine { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(247,169,182,.3); }
.kp-lot.flash { animation: abc-pop .4s ease 3; border-color: var(--gold); }
.kp-pic svg, .kp-pic img { display: block; width: 100%; max-width: 92px; height: auto; }
.kp-pic .rm-ic { filter: drop-shadow(0 4px 0 rgba(27,8,24,.35)); }
.kp-plate { max-width: 100%; padding: 1px 8px; border-radius: 6px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-lot.kosong .kp-plate { background: transparent; color: var(--muted); }
.kp-lot small { color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.kp-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.kp-legend .lg { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.lg.sewa { background: #F7A9B6; } .lg.rumah1 { background: #FF6259; } .lg.rumah2 { background: #FFD78A; } .lg.kosong { border: 2px dashed var(--muted); }
.kp-own { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--ink); margin-bottom: 12px; }
.kp-own .kp-pic { width: 84px; flex: none; }
.kp-own div { display: grid; gap: 2px; }
.kp-own small { color: var(--muted); line-height: 1.4; }
.kp-pot { display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 2px dashed var(--pink); }
.kp-pot-top { display: flex; align-items: center; gap: 10px; }
.kp-pot-top > span { font-size: 2rem; }
.kp-pot-top div { display: grid; }
.kp-pot-top small { color: var(--muted); }
.kp-pot-top b { font-family: var(--mono); font-size: 1.4rem; color: var(--gold); }
.kp-contrib { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.kp-contrib li { display: flex; justify-content: space-between; gap: 8px; }
.kp-contrib b { font-family: var(--mono); }
.kp-dialog { width: min(92vw, 460px); padding: 0; border: 3px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--cream); box-shadow: var(--hard-lg); }
.kp-dialog::backdrop { background: rgba(27,8,24,.7); }
.kp-dlg-in { display: grid; gap: 10px; padding: 20px; }
.kp-dlg-in h2 { margin: 0; }
.kp-dlg-in p { margin: 0; line-height: 1.45; }
.kp-opt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--ink); margin-top: 6px; }
.kp-opt div { display: grid; gap: 2px; }
.kp-opt small { color: var(--gold); font-family: var(--mono); }
@media (max-width: 560px) {
  .kp-lots { gap: 6px; }
  .kp-lot { padding: 6px 2px 4px; border-radius: 10px; }
  .kp-plate { font-size: .62rem; padding: 1px 4px; }
  .kp-tabs button { font-size: .78rem; }
}
.ann-form { display: grid; gap: 10px; }
.ann-form textarea { resize: vertical; min-height: 80px; font: inherit; }
.ann-pin { display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; }
.ann-pin input { width: 20px; height: 20px; }
@media (max-width: 860px) { .kp-grid > .side { order: -1; } .kp-grid > .side .lb-rules { display: none; } }

/* ===== Ruang Publik (tahap 12) ===== */
.pc-page .game-head { align-items: center; }
.pc-page .game-head .side-sub { margin: 6px 0 0; }
.pc-online { background: var(--panel); border: 2px solid var(--line-soft); padding: 6px 12px; font-size: .85rem; }
.pc-gate { max-width: 640px; }
.pc-gate h2 { margin-top: 0; }
.pc-rules, .pc-steps { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 8px; line-height: 1.45; }
.pc-steps { counter-reset: s; }
.pc-steps li { counter-increment: s; position: relative; padding-left: 34px; font-size: .92rem; }
.pc-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; font-size: .8rem; }
.pc-agree { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.pc-agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--coral); }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pc-chat { padding: 18px; display: grid; gap: 12px; }
.pc-list { list-style: none; margin: 0; padding: 4px 6px 4px 0; display: flex; flex-direction: column; gap: 10px; height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--line-soft) transparent; }
.pc-list > :first-child { margin-top: auto; }
.pc-msg { background: var(--panel); border-radius: 16px 16px 16px 4px; padding: 8px 12px 10px; max-width: 86%; align-self: flex-start; border: 2px solid transparent; }
.pc-msg.mine { align-self: flex-end; background: var(--panel-2); border-radius: 16px 16px 4px 16px; }
.pc-msg p { margin: 2px 0 0; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.pc-msg.is-deleted p { color: var(--muted); font-size: .88rem; }
.pc-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.pc-meta b { color: var(--pink); }
.pc-msg.mine .pc-meta b { color: var(--gold); }
.pc-meta time { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.pc-more { margin-left: auto; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 800; font-size: 1.1rem; line-height: 1; padding: 2px 8px; border-radius: 8px; cursor: pointer; min-width: 32px; min-height: 28px; }
.pc-more:hover, .pc-more:focus-visible { background: var(--ink); color: var(--cream); }
.pc-ajak { border-color: var(--gold); max-width: 100%; align-self: stretch; border-radius: 16px; background: linear-gradient(135deg, var(--panel), var(--plum)); }
.pc-ajak.mine { align-self: stretch; border-radius: 16px; }
.pc-ajak-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 6px; }
.pc-ajak-body b { color: var(--cream); }
.pc-ajak-body p { color: var(--muted); font-size: .9rem; }
.pc-ajak-ic { font-size: 1.8rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); border-radius: 12px; }
.pc-banner { margin: 0; padding: 10px 14px; border-radius: var(--radius-control); background: var(--ink); border: 2px dashed var(--gold); color: var(--gold); font-size: .9rem; }
.pc-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pc-form .input { min-height: 44px; }
.pc-count { grid-column: 2 / 4; justify-self: end; color: var(--muted); font-family: var(--mono); font-size: .72rem; margin-top: -4px; }
.pc-menu { position: absolute; z-index: 50; display: grid; min-width: 210px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink-2); border-radius: 14px; box-shadow: var(--hard); padding: 6px; }
.pc-menu[hidden] { display: none; }
.pc-menu button { background: none; border: 0; font: inherit; font-weight: 700; text-align: left; padding: 10px 12px; border-radius: 10px; color: inherit; cursor: pointer; }
.pc-menu button[hidden] { display: none; }
.pc-menu button:hover, .pc-menu button:focus-visible { background: var(--pink); outline: none; }
.pc-field { display: grid; gap: 6px; font-weight: 700; }
.pc-field small { color: var(--muted); font-weight: 400; }
.pc-dlg-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.pc-quote { background: var(--ink); border-radius: 12px; padding: 10px 12px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.pc-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-reasons legend { font-weight: 800; margin-bottom: 6px; }
.pc-reasons label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.pc-reasons input { accent-color: var(--coral); width: 18px; height: 18px; }
.pc-blocked { margin-top: 12px; font-size: .9rem; }
.pc-blocked summary { cursor: pointer; font-weight: 700; }
.pc-blocked ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.pc-blocked li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer-warn { font-size: .85rem; background: var(--ink); border-radius: 12px; padding: 8px 12px; color: var(--gold) !important; }
@media (max-width: 860px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-grid > .side .lb-rules ul { display: none; }
}
@media (max-width: 560px) {
  .pc-chat { padding: 12px; }
  .pc-list { height: 58vh; }
  .pc-form { grid-template-columns: minmax(0, 1fr) auto; }
  .pc-form #pc-ajak { grid-column: 1 / -1; order: 3; }
  .pc-count { grid-column: 1 / -1; order: 2; }
  .pc-ajak-body { grid-template-columns: auto minmax(0, 1fr); }
  .pc-ajak-body > :last-child { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .pc-msg { max-width: 94%; }
}
.rep-msgs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.rep-msgs li { display: grid; gap: 2px; background: var(--ink); border-radius: 10px; padding: 8px 10px; font-size: .9rem; overflow-wrap: anywhere; }
.rep-msgs li .btn { justify-self: start; margin-top: 4px; }
.rep-item .acts { flex-wrap: wrap; }

/* ===== Ikon Temu & celengan (tahap 13) ===== */
.i-temu, .i-celengan { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; background: url(assets/ikon/temu-kecil.webp) center / contain no-repeat; font-style: normal; }
.i-celengan { background-image: url(assets/ikon/celengan-kecil.webp); }
.wallet-coin-img { width: 96px; height: 96px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 0 var(--ink-2)); animation: coin-bob 3s ease-in-out infinite; }
.kp-pot-img { width: 56px; height: 56px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 0 var(--ink-2)); }
@keyframes coin-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
@media (max-width: 560px) { .wallet-coin-img { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .wallet-coin-img { animation: none; } }
.temu-modal .card { padding-top: 48px; }
.temu-modal-coin { width: 112px; height: 112px; object-fit: contain; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 0 var(--ink-2)); animation: coin-pop .7s cubic-bezier(.3,1.6,.5,1), coin-bob 3s 0.7s ease-in-out infinite; }
.temu-modal-coin.dim { filter: grayscale(.7) opacity(.7); animation: none; }
.temu-modal h2 { color: var(--gold); }
.temu-total { display: grid; gap: 2px; background: var(--ink); border-radius: 14px; padding: 10px 14px; margin: 4px 0 10px; }
.temu-total small { color: var(--muted); }
.temu-total b { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); }
.temu-hint { font-size: .82rem; }
.temu-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@keyframes coin-pop { from { transform: scale(.2) rotate(-200deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .temu-modal-coin { animation: none; } }
/* SMA klasik 9:16 (tahap 13) */
.sma-fig { margin: 0 auto; max-width: 420px; }
.sma-img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; background: #F7EAD0; box-shadow: var(--hard-lg); }
.sma-opts { display: grid; gap: 10px; margin: 0 auto 16px; max-width: 420px; }
.sma-opts .pc-agree { margin: 0; font-size: .92rem; }
.sma-opts small { color: var(--muted); font-weight: 400; }
.sma-opt-sel { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.sma-opt-sel .input { min-height: 44px; }
.off-form { display: grid; grid-template-columns: 1fr 1fr 100px; gap: 10px; align-items: end; }
.off-form .ann-pin, .off-form .btn { grid-column: span 3; justify-self: start; }
@media (max-width: 560px) { .off-form { grid-template-columns: 1fr; } .off-form .ann-pin, .off-form .btn { grid-column: auto; } }

/* ===== Beranda: langkah 2x2 (tahap 13) ===== */
#cara-main .how-grid { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
#cara-main .how-grid > div:first-child { display: grid; gap: 18px; align-content: space-between; }
#cara-main .steps { grid-template-columns: 1fr 1fr; gap: 14px; }
#cara-main .step { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
#cara-main .step h3 { font-size: 1.15rem; }
#cara-main .step p { font-size: .92rem; line-height: 1.45; }
#cara-main .how-grid > [data-scene] { align-self: center; }
#cara-main .why-account { margin-top: 0; }
@media (max-width: 860px) { #cara-main .how-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { #cara-main .steps { grid-template-columns: 1fr; } #cara-main .step { grid-template-columns: 44px 1fr; } }

/* ===== Beranda: jadi warga Rumah Rukun ===== */
.wg-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; }
.wg-stage { position: relative; width: 100%; aspect-ratio: 1440 / 880; border-radius: 28px; overflow: hidden; box-shadow: var(--hard-lg); border: 2px solid var(--line); background: var(--plum); user-select: none; touch-action: manipulation; }
.wg-ly { position: absolute; --px: 0px; --py: 0px; translate: var(--px) var(--py); transition: translate .5s var(--ease), filter .3s; }
.wg-ly img, .wg-ly svg { width: 100%; height: 100%; display: block; pointer-events: none; object-fit: contain; }
.wg-bg { translate: none; }
.wg-road { background: repeating-linear-gradient(90deg, rgba(255,215,138,.5) 0 40px, transparent 40px 80px) center / 100% 4px no-repeat, #2A0E25; border-top: 4px solid var(--ink-2); border-radius: 8px; }
.wg-hot { cursor: pointer; border-radius: 16px; }
.wg-hot:focus-visible { outline: var(--focus); outline-offset: 2px; }
.wg-hot.on { filter: drop-shadow(0 0 18px rgba(255,215,138,.75)); }
.wg-house > svg, .wg-nb1 > svg, .wg-nb2 > svg { position: absolute; inset: 0; }
.wg-glow rect { fill: #FFD78A; opacity: 0; mix-blend-mode: screen; transition: opacity .4s; }
.wg-stage.lights .wg-house .wg-glow rect { opacity: .85; }
.wg-stage[data-perk="komunitas"] .wg-nwin .wg-glow rect { opacity: .85; }
.wg-char-l, .wg-char-r { animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.wg-char-r { animation-delay: -2s; }
.wg-coin { animation: bob 2.6s ease-in-out infinite; }
.wg-pot { animation: bob 3.2s ease-in-out infinite -1s; }
.wg-heart { animation: beat 1.6s steps(6) infinite; }
.wg-boing { animation: boing .55s cubic-bezier(.3,1.6,.5,1) !important; }
.wg-beat { animation: beat .8s steps(6) 2 !important; }
.wg-drop { animation: wg-drop .7s cubic-bezier(.5,0,.6,1) !important; }
.wg-bubble { position: absolute; left: 50%; bottom: 100%; translate: -50% -6px; white-space: nowrap; background: var(--cream); color: var(--ink); border: 2px solid var(--ink-2); border-radius: 12px; padding: 4px 10px; font-weight: 800; font-size: clamp(10px, 1.3vw, 15px); box-shadow: 0 3px 0 var(--ink-2); animation: pop .3s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.wg-tip { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; background: rgba(27,8,24,.82); color: var(--cream); border: 2px solid var(--line-soft); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: clamp(10px, 1.4vw, 15px); white-space: nowrap; pointer-events: none; }
.wg-tip:empty { display: none; }
.wg-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wg-perk { width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; text-align: left; font: inherit; color: var(--cream); background: var(--plum); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--hard); cursor: pointer; transition: transform var(--motion-fast) var(--ease), background var(--motion-fast), border-color var(--motion-fast); }
.wg-perk:hover { transform: translateY(-2px); }
.wg-perk:focus-visible { outline: var(--focus); outline-offset: 3px; }
.wg-perk[aria-pressed="true"] { background: var(--panel); border-color: var(--gold); }
.wg-perk b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.wg-perk small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.wg-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); font-size: 1.6rem; }
.wg-ic .i-temu { width: 1.4em; height: 1.4em; vertical-align: 0; }
.wg-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
@keyframes wg-drop { 0% { translate: 0 0; } 55% { translate: 340% -10%; scale: .7; } 80% { translate: 470% 18%; scale: .4; opacity: .6; } 100% { translate: 0 0; scale: 1; opacity: 1; } }
@media (max-width: 860px) { .wg-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wg-ly { animation: none !important; transition: none; } }
.wg-ly:has(.wg-bubble) { z-index: 20; }

/* ===== Notif ajakan main & pemilih lawan (tahap 14) ===== */
.play-notifs { position: fixed; right: 16px; bottom: 16px; z-index: 65; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.play-notif { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--cream); color: var(--ink); border: 2px solid var(--ink-2); border-radius: 18px; padding: 14px; box-shadow: var(--hard); animation: pn-in .35s cubic-bezier(.3,1.5,.5,1); }
.play-notif b { display: block; line-height: 1.3; }
.play-notif small { display: block; color: #6E3B63; margin-top: 2px; }
.pn-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--pink); font-size: 1.4rem; }
.pn-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.play-notif .btn-ghost { color: var(--ink); border-color: var(--ink-2); }
@keyframes pn-in { from { transform: translateY(30px); opacity: 0; } }
.vs-friends { margin: -12px 0 22px; padding: 14px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); }
.vs-friends[hidden] { display: none; }
.vs-friends-title { margin: 0 0 10px; font-weight: 800; font-size: .92rem; }
.vs-friends ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.vs-friend { width: 100%; font: inherit; color: var(--cream); cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--plum); border: 2px solid var(--line); transition: transform var(--motion-fast), border-color var(--motion-fast); }
.vs-friend b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-friend small { grid-column: 2; color: var(--muted); font-size: .74rem; }
.vs-friend:hover { transform: translateY(-2px); border-color: var(--pink); }
.vs-friend:focus-visible { outline: var(--focus); outline-offset: 2px; }
.vs-friend[aria-pressed="true"] { border-color: var(--mint); }
.vs-new { border-style: dashed; }
.vs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--disabled); border: 2px solid var(--ink-2); vertical-align: 0; }
.vs-dot.on { background: #FFBE98; }
.wait-code { font-size: 1.6rem; margin: 6px 0 14px; }
.wait-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wait-dots { animation: bob 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .play-notif, .wait-dots { animation: none; } }

/* ===== Tugas berhadiah (tahap 15) ===== */
.tugas-page .game-head .side-sub { margin: 6px 0 0; max-width: 560px; }
.tugas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 820px; }
.tugas-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--plum); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--hard); }
.tugas-item.done { opacity: .75; }
.tugas-reward { display: grid; justify-items: center; gap: 2px; background: var(--ink); border-radius: 16px; padding: 10px 6px; }
.tugas-reward .i-temu { width: 40px; height: 40px; }
.tugas-reward b { font-family: var(--mono); font-size: 1.3rem; color: var(--gold); }
.tugas-reward small { color: var(--muted); font-size: .72rem; }
.tugas-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tugas-top h2 { font-size: 1.2rem; margin: 0 8px 0 0; }
.tugas-body p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.tugas-why { color: var(--gold) !important; }
.tugas-link { display: inline-block; margin-top: 8px; font-weight: 700; }
.tugas-body > .btn { margin-top: 10px; }
.tugas-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tugas-form .input { flex: 1 1 220px; min-height: 44px; }
.tugas-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); background: var(--mint); border: 2px solid var(--ink-2); border-radius: 20px; padding: 14px 18px; box-shadow: var(--hard); margin-bottom: 22px; transition: transform var(--motion-fast); }
.tugas-banner:hover { transform: translateY(-2px); }
.tugas-banner > span { font-size: 1.8rem; }
.tugas-banner small { display: block; color: #3B2A35; }
.tugas-banner em { font-style: normal; font-weight: 800; white-space: nowrap; }
@media (max-width: 560px) {
  .tugas-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .tugas-reward .i-temu { width: 28px; height: 28px; }
  .tugas-banner { grid-template-columns: auto 1fr; }
  .tugas-banner em { grid-column: 2; }
}
.task-new { margin-top: 16px; }
.task-new > summary { list-style: none; display: inline-flex; }
.task-new > summary::-webkit-details-marker { display: none; }
.task-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.task-form .field:nth-child(2), .task-form .field:nth-child(3), .task-form .ann-pin, .task-form-btns { grid-column: 1 / -1; }
.task-form-btns { display: flex; gap: 8px; }
@media (max-width: 560px) { .task-form { grid-template-columns: 1fr; } }
.kp-jasa-box { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
.kp-jasa-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.kp-jasa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kp-jasa-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); opacity: .85; }
.kp-jasa-list span { font-size: 1.5rem; }
.kp-jasa-list div { display: grid; }
.kp-jasa-list small { color: var(--muted); font-size: .78rem; }
.kp-jasa-list em { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 2px 8px; }

/* ---------- Komplek 3D (tahap 16) ---------- */
.kp-3d-card { margin-bottom: 20px; }
.kp-3d-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.kp-3d-head h2 { margin: 0; }
.kp-live { display: inline-flex; align-items: center; gap: 6px; font: 700 .78rem var(--mono); letter-spacing: .04em; color: var(--cream); background: var(--ink); border: 2px solid var(--line-soft); padding: 4px 10px; border-radius: 999px; }
.kp-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 98, 89, .7); animation: kp-live 1.6s infinite; }
@keyframes kp-live { 70% { box-shadow: 0 0 0 8px rgba(255, 98, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 98, 89, 0); } }
.kp-3d { position: relative; height: clamp(360px, 62vh, 620px); border-radius: 16px; overflow: hidden; border: 3px solid var(--ink-2); background: #F6D9C6; margin-top: 10px; }
.kp-3d.is-night { background: var(--ink-2); }
.kp-3d-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.kp-3d-canvas:active { cursor: grabbing; }
.kp-3d-wait { display: grid; place-items: center; height: 100%; margin: 0; color: var(--ink); font-weight: 700; }
.kp-3d-ctrl { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.kp-3d-ctrl button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--ink-2); background: var(--cream); color: var(--ink); font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--ink-2); }
.kp-3d-ctrl button:hover { background: var(--gold); }
.kp-3d-ctrl button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-2); }
.kp-3d-go { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.kp-3d-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--ink); color: var(--cream); border: 2px solid var(--gold); border-radius: 10px; padding: 5px 10px; font-size: .82rem; font-weight: 700; white-space: nowrap; pointer-events: none; z-index: 2; }
.kp-3d-tip.center { left: 50% !important; top: 14px !important; transform: translateX(-50%); }
.kp-officials { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.kp-officials li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--ink); }
.kp-officials small { color: var(--muted); }
/* tahap 54: IG petugas */
.kp-officials li span { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 2px 6px; text-align: right; }
.kp-ig { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: rgba(247,169,182,.16); color: var(--pink); font-size: .74rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.kp-ig:hover { background: var(--pink); color: var(--ink); }
.office-staff .kp-ig { justify-self: start; }
.kp-dlg-sub { font-size: 1rem; margin: 14px 0 8px; }
@media (max-width: 700px) {
  .kp-3d-ctrl button { width: 32px; height: 32px; font-size: .9rem; border-radius: 8px; }
  .kp-3d-ctrl { gap: 4px; right: 8px; top: 8px; }
}
/* tahap 17: menu Pak Kepling & lowongan */
.kp-kep-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 4px; }
.kp-kep-btn { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 12px 8px; border-radius: 14px; border: 2px solid var(--ink-2); background: var(--cream); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; box-shadow: 0 4px 0 var(--ink-2); transition: transform .12s, box-shadow .12s, background .12s; }
.kp-kep-btn span { font-size: 1.6rem; line-height: 1.2; }
.kp-kep-btn b { font-size: .9rem; }
.kp-kep-btn small { font-size: .72rem; color: #6E3B63; }
.kp-kep-btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink-2); }
.kp-kep-btn:hover b, .kp-kep-btn:hover small { color: var(--ink); }
.kp-kep-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-2); }
.kp-kep-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.kp-jobs { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.kp-jobs li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ink); }
.kp-jobs li > span { font-size: 1.6rem; }
.kp-jobs div { display: grid; gap: 1px; }
.kp-jobs small { color: var(--muted); }
.kp-jobs em { font-style: normal; font-size: .78rem; color: var(--gold); font-weight: 700; }
.kp-jobs i { font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--panel-2); color: var(--cream); }
@media (max-width: 420px) { .kp-kep-menu { gap: 6px; } .kp-kep-btn { padding: 10px 6px; } .kp-kep-btn b { font-size: .84rem; } } /* tahap 54: tetap 2×2 di HP */

/* ---------- tahap 18: dashboard rapi + cap lencana ---------- */
.dash-sma-grid { grid-template-columns: minmax(300px, 400px) 1fr; }
.sma-card .sma-opts { max-width: none; }
.sma-card .sma-actions { justify-content: center; }
.dash-count #dates-note { margin: 16px 0 0; }
.dates-form .btn { margin-top: 4px; }
.lb-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
.lb-form .field { margin: 0; }
.lb-form .acct-toggle { width: auto; gap: 10px; padding: 10px 14px; margin: 0; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); align-self: end; min-height: 46px; }
.lb-form .acct-toggle i { margin-left: 6px; }
.lb-form > .btn { min-height: 46px; }
.c-avg-label { font-size: 12px; }
.badges-card .badge-count { font-family: var(--mono); font-size: .9rem; color: var(--gold); margin-left: 6px; }
.badges { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.badges li { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 8px 12px; background: #F7EAD0; color: #2A1622; border: 2px solid #E2BC6A; box-shadow: 0 4px 0 var(--ink-2); }
.badges li b { color: #2A1622; font-size: .86rem; line-height: 1.2; }
.badges li small { color: #7A5A52; font-size: .72rem; line-height: 1.3; }
.badges li.locked { background: var(--ink); color: var(--muted); border: 2px dashed var(--line-soft); box-shadow: none; opacity: .85; }
.badges li.locked b { color: var(--muted); }
.badges li.locked small { color: var(--line); }
.badges li.pinned { border-color: var(--coral); box-shadow: 0 4px 0 var(--ink-2), 0 0 0 3px rgba(255, 98, 89, .35); }
.b-cap { display: block; line-height: 0; }
.b-cap svg { display: block; width: 88px; height: 88px; }
.badges li.got .b-cap svg { filter: drop-shadow(0 1px 0 rgba(0,0,0,.08)); }
.b-pin { position: static; width: auto; height: auto; margin-top: 6px; padding: 5px 10px; border-radius: 999px; border: 2px solid #C9A36A; background: transparent; color: #4A2B3A; font: 700 .72rem var(--body); opacity: 1; cursor: pointer; }
.b-pin:hover { background: #EFDDB6; }
.b-pin[aria-pressed="true"] { background: var(--coral); border-color: var(--coral-deep); color: var(--cream); }
@media (max-width: 900px) {
  .dash-sma-grid { grid-template-columns: 1fr; }
  .sma-card #sma-box { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .lb-form { grid-template-columns: 1fr; }
  .lb-form .acct-toggle { justify-content: space-between; }
  .badges { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
  .b-cap svg { width: 76px; height: 76px; }
}
.badges li.b-group { display: block; justify-self: stretch; text-align: left; background: none; border: 0; box-shadow: none; opacity: 1; padding: 6px 2px 0; color: var(--gold); }
.sma-card { position: sticky; top: 86px; }
@media (max-width: 900px) { .sma-card { position: static; } }
.badges-locked { margin-top: 16px; }
.badges-locked > summary { cursor: pointer; font-weight: 800; color: var(--muted); padding: 10px 14px; border-radius: 12px; border: 2px dashed var(--line-soft); list-style: none; }
.badges-locked > summary::-webkit-details-marker { display: none; }
.badges-locked > summary::after { content: " ▾"; }
.badges-locked[open] > summary::after { content: " ▴"; }
.badges-locked > summary:hover { color: var(--cream); border-color: var(--line); }
.badges-locked .badges { margin-top: 12px; }
.b-empty { color: var(--muted) !important; font-weight: 600 !important; }

/* ---------- Ruangku: kamera + obrolan (tahap 19) ---------- */
.room-mid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; margin-bottom: 26px; }
.room-mid > .call-dock { flex-direction: column; }
.room-mid > .call-dock .call-tiles { flex: none; }
.room-chat { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.room-chat h2 { font-size: 1.25rem; margin: 0; }
.rc-list { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 8px; height: 250px; overflow-y: auto; background: var(--ink); border: 2px solid var(--line); border-radius: 14px; overscroll-behavior: contain; }
.rc-empty { margin: auto; color: var(--muted); font-size: .9rem; text-align: center; }
.rc-msg { max-width: 82%; align-self: flex-start; padding: 6px 10px 4px; border-radius: 14px 14px 14px 4px; background: var(--plum); border: 2px solid var(--line); }
.rc-msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--coral); border-color: var(--ink-2); color: var(--ink); }
.rc-msg b { display: block; font-size: .72rem; color: var(--gold); }
.rc-msg.me b { color: var(--ink); opacity: .7; }
.rc-msg p { margin: 0; font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.rc-msg time { display: block; text-align: right; font-size: .66rem; opacity: .65; }
.rc-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-quick button { font: inherit; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); cursor: pointer; }
.rc-quick button:hover { border-color: var(--pink); }
.rc-quick button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.rc-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rc-form .input { min-height: 44px; }
@media (max-width: 900px) { .room-mid { grid-template-columns: 1fr; } .rc-list { height: 220px; } }

/* ---------- Panel Pak Kepling: kotak navigasi + panel (tahap 19) ---------- */
.adm-hello { margin: 6px 0 0; }
.adm-nav { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin: 4px 0 22px; }
.adm-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic n" "ic s" "t t"; column-gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--plum); color: var(--cream); font: inherit; cursor: pointer; box-shadow: var(--hard); transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast), background var(--motion-fast); }
.adm-tile span { grid-area: ic; font-size: 1.7rem; }
.adm-tile em { grid-area: n; font-style: normal; font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.adm-tile small { grid-area: s; color: var(--muted); font-size: .75rem; }
.adm-tile b { grid-area: t; margin-top: 8px; font-size: .9rem; }
.adm-tile:hover { transform: translateY(-2px); border-color: var(--pink); }
.adm-tile:focus-visible { outline: var(--focus); outline-offset: 3px; }
.adm-tile[aria-selected="true"] { background: var(--panel); border-color: var(--gold); }
.adm-tile.hot em { color: var(--gold); }
.adm-tile.hot::after { content: ""; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--plum); }
.adm-panel > .card + .card { margin-top: 22px; }
.adm-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.adm-head h2 { margin: 0; }
.adm-head .lb-tabs { margin: 0; }
.adm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.adm-cols-form { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.adm-cols .off-form { grid-template-columns: 1fr 1fr; }
.adm-cols .off-form .field:nth-of-type(3) { grid-column: span 2; max-width: 140px; }
.adm-cols .off-form .ann-pin, .adm-cols .off-form .btn { grid-column: span 2; }
@media (max-width: 1180px) { .adm-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .adm-cols, .adm-cols-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .adm-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .adm-tile { padding: 10px 12px; }
  .adm-tile em { font-size: 1.3rem; }
  .adm-cols .off-form { grid-template-columns: 1fr; }
  .adm-cols .off-form .field:nth-of-type(3), .adm-cols .off-form .ann-pin, .adm-cols .off-form .btn { grid-column: auto; max-width: none; }
}

/* ---------- Pasar Rumah (tahap 20) ---------- */
.pr-grid { align-items: start; }
.pr-count { font-size: .8rem; font-weight: 800; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 2px 10px; }
.pr-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pr-list > .lb-empty { grid-column: 1 / -1; }
.pr-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); }
.pr-item.mine { border-color: var(--pink); }
.pr-item.focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,138,.35); }
.pr-pic img, .pr-pic svg { width: 92px; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(27,8,24,.35)); }
.pr-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.pr-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; justify-content: space-between; }
.pr-lot { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.pr-body small { color: var(--muted); }
.pr-note { margin: 0; font-size: .88rem; font-style: italic; color: var(--cream); overflow-wrap: anywhere; }
.pr-price { display: inline-flex; align-items: center; gap: 4px; font-size: 1.15rem; color: var(--gold); white-space: nowrap; }
.pr-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-tag { justify-self: start; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--pink); color: var(--ink); }
.pr-myoffer { margin: 0; font-size: .84rem; }
.pr-myoffer.rejected { color: var(--coral-hover); }
.link-btn { font: inherit; font-size: .8rem; font-weight: 700; background: none; border: 0; padding: 0; color: var(--pink); text-decoration: underline; cursor: pointer; }
.link-btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.pr-bal { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.pr-bal span { display: grid; }
.pr-bal small { color: var(--muted); font-size: .78rem; }
.pr-live { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; }
.pr-sell { display: grid; gap: 10px; margin-top: 8px; }
.pr-h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.pr-offers, .pr-sold { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr-offers > li:not(.lb-empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); }
.pr-offers > li > div:first-child { display: grid; min-width: 0; }
.pr-offers small, .pr-sold small { color: var(--muted); font-size: .76rem; }
.pr-offers .pr-acts { grid-column: 1 / -1; }
.pr-sold > li:not(.lb-empty) { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pr-sold > li > div { display: grid; min-width: 0; }
.pr-sold-ic img, .pr-sold-ic svg { width: 40px; height: auto; display: block; }
.pr-sold .pr-price { font-size: .95rem; }
.pr-banner { margin-bottom: 22px; }
.kp-lot { position: relative; }
.kp-sale { position: absolute; top: 4px; right: 4px; z-index: 1; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 1.5px solid var(--ink-2); }
.kp-sale-line { margin: 12px 0 8px; }
@media (max-width: 560px) { .pr-item { grid-template-columns: 70px minmax(0, 1fr); padding: 12px; } .pr-pic img, .pr-pic svg { width: 70px; } }

/* ---------- Showroom & Supermarket (tahap 21) ---------- */
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sr-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); }
.sr-item.owned { border-color: var(--mint); }
.sr-pic { padding: 10px; border-radius: 14px; background: radial-gradient(circle at 50% 80%, rgba(255,215,138,.25), transparent 70%), var(--plum); }
.sr-pic svg { display: block; width: 100%; height: auto; }
.sr-body { display: grid; gap: 8px; min-width: 0; }
.sr-body small { color: var(--muted); }
.sr-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-colors button { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink-2); box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.sr-colors button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--gold); }
.sr-colors button:focus-visible { outline: var(--focus); outline-offset: 3px; }
.sr-garage { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.sr-garage li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); }
.sr-garage li.on { border-color: var(--mint); }
.sr-garage li > div { display: grid; }
.sr-garage small { color: var(--muted); font-size: .76rem; }
.sr-mini svg { width: 64px; height: auto; display: block; }
.sm-disc { margin: 0 0 18px; padding: 10px 14px; border-radius: 14px; background: var(--plum); border: 2px dashed var(--line); color: var(--muted); font-size: .88rem; }
.sm-disc b { color: var(--cream); }
.sm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sm-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-cats button { font: inherit; font-size: .84rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); cursor: pointer; }
.sm-cats button[aria-selected="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.sm-cats button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.sm-search { max-width: 260px; min-height: 42px; }
.sm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sm-grid > .lb-empty { grid-column: 1 / -1; }
.sm-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 10px; }
.sm-empty span { font-size: 2.6rem; }
.sm-item { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--ink); border: 2px solid var(--line-soft); }
.sm-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--cream); }
.sm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-img span { font-size: 3.2rem; }
.sm-img em { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.sm-body { display: grid; gap: 6px; padding: 12px; align-content: start; }
.sm-body b { line-height: 1.3; }
.sm-body small { color: var(--muted); font-size: .8rem; }
.sm-price { font-weight: 800; color: var(--gold); }
.sm-body .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 640px) {
  .sr-item { grid-template-columns: 1fr; }
  .sr-pic { max-width: 260px; }
  .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sm-search { max-width: none; width: 100%; }
}
.niaga-links { display: grid; gap: 10px; margin: -10px 0 22px; }
.niaga-links .tugas-banner { margin: 0; }

/* ===== Dashboard per kategori (tahap 22) ===== */
.dash-tabs { position: sticky; top: 74px; z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; margin: 0 0 22px; border-radius: 18px; background: rgba(27, 8, 24, .9); border: 2px solid var(--line-soft); backdrop-filter: blur(6px); }
.dash-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 2px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; transition: background var(--motion-fast), color var(--motion-fast); }
.dash-tabs button span { font-size: 1.15rem; }
.dash-tabs button:hover { color: var(--cream); background: rgba(247, 169, 182, .1); }
.dash-tabs button[aria-selected="true"] { background: var(--coral); color: var(--ink); border-color: var(--ink-2); box-shadow: 0 3px 0 var(--ink-2); }
.dash-pane > .card, .dash-pane > .dash-grid, .dash-pane > .dash-tiles { margin-bottom: 24px; }
.dash-pane { animation: fade var(--motion-enter) ease; }
@media (max-width: 560px) {
  .dash-tabs { top: 64px; }
  .dash-tabs button { flex-direction: column; gap: 2px; font-size: .8rem; min-height: 52px; }
}

/* ===== Game di HP lebih ringkas (tahap 22) =====
   Kamera jadi strip kecil, judul mengecil, kolom ketik langsung di bawah papan,
   notifikasi pindah ke atas supaya tidak menutupi kolom ketik. */
@media (max-width: 640px) {
  .game-page { padding-top: 14px; }
  .game-page .game-head { margin-bottom: 12px; gap: 8px; }
  .game-page .game-head h1 { font-size: 1.75rem; }
  .game-page .game-head .pill { margin-bottom: 6px; }
  .game-page > .call-dock { flex-direction: row; align-items: center; gap: 8px; padding: 8px; margin-bottom: 12px; border-radius: 18px; }
  .game-page > .call-dock .call-tiles { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .game-page > .call-dock .call-tile { aspect-ratio: 4 / 3; border-radius: 12px; }
  .game-page > .call-dock .call-off { padding: 4px 4px 22px; font-size: .68rem; gap: 2px; }
  .game-page > .call-dock .call-off img { width: 28px; height: 28px; }
  .game-page > .call-dock .call-tile figcaption { left: 4px; bottom: 4px; padding: 1px 6px; font-size: .68rem; }
  .game-page > .call-dock .call-tap { left: 4px; right: 4px; top: 4px; min-height: 32px; font-size: .7rem; }
  .game-page > .call-dock .robo-say { font-size: .7rem; }
  .game-page > .call-dock .call-ctrls { flex: 0 0 auto; flex-direction: column; flex-wrap: nowrap; gap: 6px; width: auto; }
  .game-page > .call-dock .call-bar { flex-direction: column; gap: 6px; width: auto; }
  .game-page > .call-dock .call-btn .call-ic { width: 42px; height: 42px; box-shadow: 0 3px 0 var(--ink-2); }
  .game-page > .call-dock .call-btn svg { width: 19px; height: 19px; }
  .game-page > .call-dock .call-btn small, .game-page > .call-dock .call-note, .game-page > .call-dock .call-react { display: none; }
  /* kolom ketik tepat di bawah papan; status pemain turun */
  .play-card:has(> .guess-form) { display: flex; flex-direction: column; }
  .play-card:has(> .guess-form) > .player-status { order: 2; margin-top: 12px; }
  .player-status { grid-template-columns: 1fr 1fr; gap: 6px; }
  .player-status > * { padding: 8px 10px; font-size: .82rem; }
  .clue-box { padding: 12px 14px; }
  .clue-box p { margin: 4px 0 8px; }
  .notif-stack { top: 74px; bottom: auto; right: 12px; left: 12px; width: auto; gap: 6px; }
  .notif-stack .notif { font-size: .8rem; padding: 7px 12px; }
  .notif-stack .notif:nth-last-child(n+3) { display: none; }
}

/* ===== Akun saya (tahap 23) ===== */
.ak-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 24px; align-items: start; }
.ak-card { text-align: center; position: sticky; top: 92px; }
.ak-photo { display: grid; place-items: center; margin: 6px 0 12px; }
.ak-avatar { position: relative; width: 148px; height: 148px; padding: 0; border-radius: 50%; border: 4px solid var(--coral); box-shadow: 0 6px 0 var(--ink-2); overflow: hidden; background: var(--panel); cursor: pointer; }
.ak-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-avatar-edit { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink-2); font-size: 1.05rem; transition: transform var(--motion-fast); }
.ak-avatar:hover .ak-avatar-edit { transform: scale(1.1); }
.ak-avatar:focus-visible { outline: var(--focus); outline-offset: 4px; }
.ak-card h2 { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.ak-user { margin: 2px 0 10px; color: var(--muted); font-family: var(--mono); font-size: .88rem; }
.ak-bio-show { margin: 0 auto 14px; max-width: 30ch; padding: 10px 14px; border-radius: 14px; background: var(--ink); border: 2px dashed var(--line-soft); color: var(--cream); font-style: italic; line-height: 1.45; overflow-wrap: anywhere; }
.ak-bio-show.empty { color: var(--muted); }
.ak-photo-acts { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.ak-forms { display: grid; gap: 24px; }
.ak-forms .card { margin: 0; }
.ak-bio-in { resize: vertical; min-height: 92px; line-height: 1.45; }
.ak-count { display: block; text-align: right; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.ak-count.full { color: var(--gold); font-weight: 700; }
.ak-show { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.ak-show input { width: 18px; height: 18px; accent-color: var(--coral); }
@media (max-width: 760px) {
  .ak-grid { grid-template-columns: 1fr; }
  .ak-card { position: static; }
  .ak-avatar { width: 120px; height: 120px; }
}
.dp-bio { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.dp-bio:empty { display: none; }
.dp-bio span { font-style: italic; overflow-wrap: anywhere; }
.dp-bio b { font-style: normal; color: var(--cream); }
.dp-bio a { font-weight: 700; }
@media (max-width: 760px) { .dp-bio { justify-content: center; text-align: center; } }

/* ===== Pilih game gaya konsol (tahap 24) ===== */
.gc { --gc-h: clamp(440px, calc(100vh - 170px), 580px); position: relative; padding: 14px; border-radius: 28px; background: linear-gradient(180deg, #3A1533, var(--ink-2)); border: 3px solid var(--ink-2); box-shadow: 0 10px 0 var(--ink-2), inset 0 0 0 2px var(--line-soft); }
.gc::after { content: ""; position: absolute; inset: 14px; border-radius: 18px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); }
.gc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 6px 12px; color: var(--gold); font-family: var(--mono); letter-spacing: .12em; font-size: .85rem; }
.gc-led { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: gc-blink 1.6s ease-in-out infinite; }
@keyframes gc-blink { 50% { opacity: .35; } }
.gc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; letter-spacing: 0; }
.gc-tags button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line-soft); background: transparent; color: var(--muted); font: inherit; font-family: var(--body); font-weight: 700; font-size: .8rem; cursor: pointer; }
.gc-tags button:hover { color: var(--cream); border-color: var(--line); }
.gc-tags button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.gc-body { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 14px; height: var(--gc-h); }
.gc-list { position: relative; order: 1; list-style: none; margin: 0; padding: 8px; overflow-y: auto; border-radius: 18px; background: rgba(27, 8, 24, .75); border: 2px solid var(--line-soft); scrollbar-width: thin; scrollbar-color: var(--line-soft) transparent; }
.gc-list li { display: grid; grid-template-columns: 14px 44px 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 6px 10px 6px 6px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transition: background var(--motion-fast), border-color var(--motion-fast); }
.gc-list li + li { margin-top: 4px; }
.gc-list li:hover { background: rgba(247, 169, 182, .08); }
.gc-list li[aria-selected="true"] { background: linear-gradient(90deg, rgba(255, 98, 89, .28), rgba(255, 98, 89, .06)); border-color: var(--coral); }
.gc-list li:focus-visible { outline: var(--focus); outline-offset: 2px; }
.gc-cursor { color: var(--gold); font-size: .75rem; opacity: 0; transform: translateX(-4px); transition: opacity var(--motion-fast), transform var(--motion-fast); }
.gc-list li[aria-selected="true"] .gc-cursor { opacity: 1; transform: none; animation: gc-nudge .9s ease-in-out infinite; }
@keyframes gc-nudge { 50% { transform: translateX(3px); } }
.gc-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: var(--panel); border: 2px solid var(--ink-2); font-size: 1.4rem; }
.gc-ic img { width: 100%; height: 100%; object-fit: cover; }
.gc-name { display: grid; min-width: 0; }
.gc-name b { color: var(--cream); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-name small { color: var(--muted); font-size: .74rem; }
.gc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.gc-lock { font-size: .8rem; opacity: .7; }
.gc-list li.is-soon .gc-ic, .gc-list li.is-soon .gc-name b { opacity: .6; }
.gc-preview { order: 2; position: relative; display: grid; grid-template-rows: 1fr auto; gap: 14px; min-width: 0; padding: 18px; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 215, 138, .16), transparent 60%), var(--plum); border: 2px solid var(--line-soft); }
.gc-preview.swap .gc-art img, .gc-preview.swap .gc-art > span:first-child { animation: gc-in .35s cubic-bezier(.3, 1.4, .5, 1); }
.gc-preview.swap .gc-info { animation: fade .3s ease; }
@keyframes gc-in { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.gc-art { position: relative; display: grid; place-items: center; min-height: 0; }
.gc-art img { width: min(260px, 70%); height: auto; max-height: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 0 rgba(27, 8, 24, .55)); animation: gc-float 3.2s ease-in-out infinite; }
.gc-art > span:first-child { font-size: 6rem; }
@keyframes gc-float { 50% { transform: translateY(-8px); } }
.gc-no { position: absolute; top: 0; right: 0; font-family: var(--mono); font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.gc-info h3 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; }
.gc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gc-chips span { padding: 3px 10px; border-radius: 999px; background: var(--ink); border: 2px solid var(--line-soft); font-size: .78rem; font-weight: 700; color: var(--cream); }
.gc-info p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.gc-play { width: 100%; font-size: 1.05rem; }
.gc-a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--coral); font-size: .8rem; }
.gc-hint { margin: 10px 6px 0; color: var(--muted); font-size: .8rem; text-align: right; }
.gc-hint kbd { display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 1px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--cream); text-align: center; }
@media (hover: none), (max-width: 760px) { .gc-hint { display: none; } }
@media (max-width: 760px) {
  .gc { padding: 10px; border-radius: 22px; }
  .gc::after { inset: 10px; }
  .gc-top { padding: 2px 2px 10px; }
  .gc-tags { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .gc-tags button { flex: none; }
  .gc-body { grid-template-columns: 1fr; height: auto; gap: 10px; }
  .gc-preview { order: 1; position: sticky; top: 76px; z-index: 2; grid-template-rows: none; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; align-items: start; }
  .gc-art img { width: 96px; animation: none; filter: drop-shadow(0 6px 0 rgba(27, 8, 24, .55)); }
  .gc-art > span:first-child { font-size: 3.5rem; }
  .gc-no { position: static; display: block; text-align: center; margin-top: 4px; font-size: .7rem; }
  .gc-art { display: block; text-align: center; }
  .gc-info h3 { font-size: 1.25rem; margin-bottom: 6px; }
  .gc-chips { margin-bottom: 6px; }
  .gc-chips span { font-size: .7rem; padding: 2px 8px; }
  .gc-info p { font-size: .85rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .gc-play { min-height: 46px; font-size: .95rem; }
  .gc-list { order: 2; max-height: none; overflow: visible; padding: 6px; }
}
.gc-now { display: none; }
@media (max-width: 760px) { .gc-pname { display: none; } .gc-now { display: inline; } .gc-play { white-space: nowrap; } }

/* ===== Komplek 2x lipat: area, filter lokasi (tahap 26) ===== */
.kp-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 14px; }
.kp-filter button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line-soft); background: var(--ink); color: var(--cream); font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.kp-filter button em { font-style: normal; font-weight: 700; font-size: .7rem; opacity: .8; }
.kp-filter button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.kp-only { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.kp-only input { width: 18px; height: 18px; accent-color: var(--coral); }
.kp-area + .kp-area { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line-soft); }
.kp-area header h3 { margin: 0; font-size: 1.15rem; }
.kp-area header h3 small { font-family: var(--mono); font-size: .75rem; opacity: .7; margin-left: 4px; }
.kp-area header p { margin: 2px 0 10px; font-size: .8rem; opacity: .8; }
.kp-area-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.kp-block.is-gang .kp-lots { position: relative; row-gap: 20px; }
.kp-block.is-gang .kp-lots::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 8px; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line-soft) 0 10px, transparent 10px 14px); }
.kp-lots-sewa { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kp-area-sewa .kp-area-blocks { grid-template-columns: 1fr; }
.kp-lot { position: relative; }
.kp-tier { position: absolute; top: 3px; left: 4px; font-size: .72rem; line-height: 1; }
.kp-lot.t-premium.kosong { border-color: rgba(255, 215, 138, .7); }
.kp-lot.kosong .kp-plate { font-family: var(--mono); }
.kp-lot.siap { background: rgba(247, 169, 182, .12); border-style: dashed; }
.kp-lot.siap .kp-pic { opacity: .65; }
.kp-tier-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.kp-tier-line span { padding: 2px 10px; border-radius: 999px; background: var(--ink); border: 2px solid var(--line-soft); font-weight: 800; color: var(--cream); }
.kp-tier-line.t-premium span { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.kp-move { padding: 8px 12px; border-radius: 12px; background: rgba(255, 215, 138, .12); border: 2px dashed var(--gold); font-size: .85rem; }
@media (max-width: 700px) {
  .kp-area-blocks { grid-template-columns: 1fr; }
  .kp-lots-sewa { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kp-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .kp-filter button, .kp-only { flex: none; }
}

/* ---------- interior rumah (tahap 27) ---------- */
.kp-dialog { max-height: 92vh; overflow-y: auto; }
.kp-dialog.wide { width: min(94vw, 560px); }
.ri-wrap { display: grid; gap: 6px; }
.ri-wait { padding: 30px 0; text-align: center; color: var(--muted); }
.ri-house { position: relative; container-type: inline-size; padding: 0 8px 8px; border-radius: 0 0 14px 14px; background: var(--plum); border: 3px solid var(--ink-2); border-top: 0; margin-top: 34px; }
.ri-roof { position: absolute; left: -10px; right: -10px; bottom: 100%; height: 34px; background: var(--coral-deep); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); border-bottom: 4px solid var(--ink-2); }
.ri-roof::after { content: ""; position: absolute; inset: 7px 14% 9px; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(27,8,24,.25) 18px 20px); }
.ri-floor { display: flex; gap: 6px; padding-top: 8px; }
.ri-floor + .ri-floor { border-top: 0; }
.ri-room { position: relative; flex: 3; height: clamp(120px, 34cqw, 170px); border-radius: 6px; overflow: hidden; font-size: clamp(15px, 5cqw, 26px);
  background: linear-gradient(to top, #A0674B 0 14%, #7C4A36 14% 15.5%, #F6E2C6 15.5%); }
.ri-kamar { flex: 2; background: linear-gradient(to top, #A0674B 0 14%, #7C4A36 14% 15.5%, #F6D3D2 15.5%); }
.ri-atas { flex: 2; background: linear-gradient(to top, #A0674B 0 14%, #7C4A36 14% 15.5%, #F2DCC8 15.5%); }
.k-rumah2 .ri-tamu { height: clamp(120px, 30cqw, 160px); }
.ri-label { position: absolute; top: 5px; left: 7px; font: 700 10px/1.2 var(--body); letter-spacing: .02em; color: #6E3B4E; opacity: .8; }
.ri-it { position: absolute; transform: translateX(-50%); font-size: calc(var(--s) * 1em); line-height: 1; filter: drop-shadow(0 3px 0 rgba(27,8,24,.25)); user-select: none; }
.ri-rug { position: absolute; bottom: 2%; width: 44%; height: 9%; transform: translateX(-50%); border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, var(--coral) 0 4px, var(--gold) 4px 8px); opacity: .9; }
.ri-it.fresh, .ri-rug.fresh { animation: riPop .6s var(--ease); }
@keyframes riPop { 0% { transform: translateX(-50%) translateY(-30%) scale(.2); opacity: 0; } 70% { transform: translateX(-50%) scale(1.15); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
.ri-empty { position: absolute; inset: 8px 8px 8px; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 10px; text-align: center; border-radius: 8px; background: rgba(38,12,34,.72); }
.ri-empty small { color: var(--muted); }
.ri-note { font-size: .85rem; }
.ri-mini .ri-room { height: clamp(90px, 24cqw, 120px); }
.ri-shop { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ri-shop li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 14px; background: var(--ink); }
.ri-shop li.own { opacity: .75; }
.ri-shop li.fresh { outline: 2px solid var(--gold); }
.ri-shop li div { display: grid; gap: 1px; min-width: 0; }
.ri-shop li small { color: var(--muted); }
.ri-ic { font-size: 28px; text-align: center; }
.ri-own { font-size: .85rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.ri-own.off { color: var(--muted); font-weight: 400; }
.kp-dlg-sub small { font: 400 .8rem var(--body); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ri-it.fresh, .ri-rug.fresh { animation: none; } }

/* ---------- tahap 25: peta kavling ikon bulat + pop-up tempat ---------- */
.kp-3d-mapbtn { position: absolute; left: 10px; top: 10px; z-index: 2; width: 62px; height: 62px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 0;
  border: 3px solid var(--ink-2); background: var(--gold); color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--ink-2); font: inherit; }
.kp-3d-mapbtn span { font-size: 1.55rem; line-height: 1; }
.kp-3d-mapbtn small { font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.kp-3d-mapbtn:hover { background: var(--cream); }
.kp-3d-mapbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink-2); }
.kp-3d-mapbtn:focus-visible { outline: var(--focus); outline-offset: 3px; }
.kp-grid.no-map { grid-template-columns: minmax(0, 1fr); }
.kp-grid.no-map > .side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.kp-pop { padding: 0; border: 3px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--cream); box-shadow: var(--hard-lg); overflow: hidden; }
.kp-pop[open] { display: flex; flex-direction: column; }
.kp-pop::backdrop { background: rgba(27,8,24,.7); }
.kp-pop-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: var(--plum); border-bottom: 2px solid var(--ink-2); }
.kp-pop-head b { flex: 1; font-family: var(--display); font-size: 1.1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-pop-full { font-size: .85rem; color: var(--gold); white-space: nowrap; }
.kp-pop-x { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 2px solid var(--ink-2); background: var(--cream); color: var(--ink); font-weight: 800; cursor: pointer; }
.kp-pop-x:hover { background: var(--gold); }
.kp-pop-body { overflow-y: auto; min-height: 0; flex: 1; }
.kp-map-dlg { width: min(96vw, 980px); max-height: 90vh; }
.kp-map-dlg .kp-map-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.kp-map-dlg .kp-map-card > h2, .kp-map-dlg .kp-map-card > .win-title { display: none; }
.kp-place { width: min(96vw, 1040px); height: 88vh; }
.kp-place-body { position: relative; overflow: hidden; background: var(--ink); }
.kp-place-body iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--ink); }
.kp-place-wait { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; color: var(--muted); background: var(--ink); }
.kp-place-wait[hidden] { display: none; }
@media (max-width: 640px) {
  .kp-place, .kp-map-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .kp-3d-mapbtn { width: 54px; height: 54px; }
}

/* halaman di dalam pop-up komplek */
.jk-embed .nav, .jk-embed .footer { display: none !important; }
.jk-embed .game-page, .jk-embed .room { padding-top: 14px; }
.jk-embed .notif-stack { top: 12px; }
.jk-embed .game-head a[href="komplek.html"] { display: none; }

/* ---------- tahap 28: hadiah belanja ---------- */
.sm-reward { margin-bottom: 18px; }
.sm-reward h2 { margin-top: 0; }
.sm-reward-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.sm-steps { margin: 6px 0 8px; padding-left: 22px; display: grid; gap: 4px; line-height: 1.45; }
.sm-left { flex: none; display: grid; justify-items: center; gap: 2px; margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--ink); border: 2px solid var(--line-soft); text-align: center; }
.sm-left b { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--gold); }
.sm-left small { color: var(--muted); font-size: .75rem; max-width: 90px; }
.sm-claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sm-claims li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: var(--ink); }
.sm-claims li div { display: grid; gap: 2px; min-width: 0; }
.sm-claims li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-claims small { color: var(--muted); font-size: .8rem; }
.sm-claims .sm-why { color: var(--pink); }
.sm-claims em { font-style: normal; font-size: .8rem; font-weight: 800; white-space: nowrap; color: var(--muted); }
.sm-claims .st-approved em { color: var(--gold); }
.sm-claims .st-rejected em { color: var(--pink); }
.sm-st { font-size: 1.2rem; text-align: center; }
.sm-rw { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink-2); }
.sm-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sm-body .sm-acts .btn { margin-top: 0; }
.sm-claim-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--ink); }
.sm-rw-inline { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.sm-label { display: block; font-weight: 700; margin-bottom: 6px; }
.sm-label small { font-weight: 400; color: var(--muted); }
.sm-shot { display: grid; place-items: center; gap: 8px; min-height: 88px; padding: 10px; border-radius: 14px; border: 2px dashed var(--line); background: var(--ink); cursor: pointer; text-align: center; color: var(--muted); }
.sm-shot:hover { border-color: var(--gold); color: var(--cream); }
.sm-shot:focus-within { outline: var(--focus); outline-offset: 2px; }
.sm-shot img { max-height: 180px; max-width: 100%; border-radius: 8px; }
.sm-claim-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-claim-dlg .field small.side-sub { display: block; margin-top: 4px; font-size: .78rem; }
@media (max-width: 640px) {
  .sm-reward-top { flex-direction: column-reverse; }
  .sm-left { grid-auto-flow: column; align-items: center; gap: 8px; }
  .sm-left small { max-width: none; }
  .sm-acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* panel Pak Kepling: klaim belanja */
.adm-proof { display: inline-flex; align-items: center; gap: 6px; }
.adm-proof img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line-soft); cursor: zoom-in; }
.adm-mono { font-family: var(--mono); letter-spacing: .03em; user-select: all; }
.sm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; counter-reset: st; }
.sm-steps li { counter-increment: st; padding: 8px 10px 8px 38px; position: relative; border-radius: 12px; background: var(--ink); font-size: .9rem; }
.sm-steps li::before { content: counter(st); position: absolute; left: 10px; top: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--gold); color: var(--ink); }
.sm-reward-top > div { flex: 1; min-width: 0; }
.sm-mine-card { margin-top: 18px; }
@media (max-width: 640px) { .sm-steps { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 640px) { .sm-at { display: none; } }

/* ---------- tahap 29: tombol & pop-up cara main ---------- */
.retro-title.has-howto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.howto-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink-2); background: var(--gold); color: var(--ink); font: 900 1.1rem/1 var(--body); cursor: pointer; box-shadow: 0 3px 0 var(--ink-2); display: grid; place-items: center; position: relative; }
.howto-btn:hover { background: var(--cream); }
.howto-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-2); }
.howto-btn:focus-visible { outline: var(--focus); outline-offset: 3px; }
.howto-btn.new::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); animation: howtoPing 1.6s ease-out infinite; }
@keyframes howtoPing { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.howto { width: min(94vw, 520px); }
.howto-goal { font-size: 1.05rem; font-weight: 700; }
.howto-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.45; }
.howto-modes { display: grid; gap: 8px; }
.howto-modes div { display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--ink); }
.howto-modes small { color: var(--muted); line-height: 1.4; }
.howto-score, .howto-temu { font-size: .9rem; }
.howto-temu { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; border: 2px dashed var(--line-soft); color: var(--muted); }
.howto-temu a { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .howto-btn.new::after { animation: none; } }
/* dompet tahap 29 */
.earn-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.earn-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); }
.earn-list li > span { font-size: 1.3rem; text-align: center; }
.earn-list li div { display: grid; gap: 1px; min-width: 0; }
.earn-list small { color: var(--muted); font-size: .78rem; }
.earn-list em { font-style: normal; font-weight: 800; font-size: .78rem; color: var(--gold); text-align: right; line-height: 1.25; }
.earn-list em a { color: var(--gold); }
.earn-notes { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.req-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.req-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ink); border: 2px solid transparent; }
.req-list li > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--plum); border: 2px solid var(--line); color: var(--cream); }
.req-list li div { display: grid; gap: 2px; min-width: 0; }
.req-list small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.req-list .req-note { color: var(--cream); font-weight: 700; }
.req-list li > a { font-size: .82rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.req-list li.ok { border-color: var(--gold); }
.req-list li.ok > i { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.req-list li.ok > a { display: none; }
.req-list li.no .req-note { color: var(--pink); }
.req-mini { margin: 6px 0 10px; gap: 5px; } .req-mini li { padding: 6px 10px; grid-template-columns: 28px minmax(0,1fr) auto; } .req-mini li > i { width: 24px; height: 24px; font-size: .8rem; }

/* ---------- tahap 30: tata letak komplek ---------- */
.kp-grid.no-map { display: none; }
.kp-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 22px; align-items: start; margin-top: 4px; }
.kp-aside { display: grid; gap: 16px; }
.kp-aside .niaga-links { display: grid; gap: 10px; }
.kp-aside .lb-rules { padding: 52px 20px 20px; }
.kp-aside .lb-rules ul { font-size: .88rem; }
.kp-mine-big { padding: 26px; }
.kp-mine-big > h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.kp-mine-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.kp-mine-house { display: grid; gap: 12px; align-content: start; }
.kp-mine-house .kp-own { margin-bottom: 0; }
.kp-mine-house .kp-own .kp-pic { width: 120px; }
.kp-mine-grid .kp-pot { margin: 0; }
@media (max-width: 900px) {
  .kp-bottom { grid-template-columns: 1fr; }
  .kp-mine-big { order: -1; }
  .kp-mine-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .kp-mine-big { padding: 18px; } .kp-mine-house .kp-own .kp-pic { width: 84px; } }

/* papan pengumuman dalam pop-up */
.kp-board-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.kp-board-tabs button { font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--ink); color: var(--cream); cursor: pointer; }
.kp-board-tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
#kp-dlg-body .kp-paper { transform: none; max-height: 55vh; overflow-y: auto; }

/* ikon kaca di peta 3D (tahap 30) */
.kp-3d-go { gap: 8px; align-items: flex-end; }
.kp-glass { position: relative; }
.kp-glass, .kp-3d-mapbtn { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,240,205,.18)); border: 1.5px solid rgba(255,255,255,.65);
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: 0 6px 18px rgba(27,8,24,.35), inset 0 1px 0 rgba(255,255,255,.7); transition: transform var(--motion-fast) var(--ease), background var(--motion-fast); }
.kp-glass span { font-size: 1.35rem; line-height: 1; filter: drop-shadow(0 2px 1px rgba(27,8,24,.25)); }
.kp-glass:hover, .kp-3d-mapbtn:hover { transform: translateY(-3px); background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,215,138,.35)); }
.kp-glass:active, .kp-3d-mapbtn:active { transform: translateY(0) scale(.96); box-shadow: 0 3px 10px rgba(27,8,24,.35), inset 0 1px 0 rgba(255,255,255,.7); }
.kp-glass:focus-visible, .kp-3d-mapbtn:focus-visible { outline: var(--focus); outline-offset: 3px; }
.kp-glass.is-mine { width: 54px; height: 54px; border-color: var(--gold); background: linear-gradient(160deg, rgba(255,230,170,.85), rgba(255,190,152,.45)); }
.kp-glass[data-tip]::after, .kp-3d-mapbtn::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  background: rgba(27,8,24,.88); color: var(--cream); font: 700 .78rem/1.2 var(--body); pointer-events: none; opacity: 0; transition: opacity var(--motion-fast), transform var(--motion-fast); }
.kp-glass:hover::after, .kp-glass:focus-visible::after, .kp-3d-mapbtn:hover::after, .kp-3d-mapbtn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.kp-3d-mapbtn { width: 58px; height: 58px; box-shadow: 0 6px 18px rgba(27,8,24,.35), inset 0 1px 0 rgba(255,255,255,.7); border: 1.5px solid rgba(255,255,255,.65); }
.kp-3d-mapbtn::after { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -4px); }
.kp-3d-mapbtn:hover::after, .kp-3d-mapbtn:focus-visible::after { transform: translate(-50%, 0); }
.kp-3d-mapbtn small { display: none; }
.kp-3d-mapbtn span { font-size: 1.6rem; }
@media (max-width: 700px) {
  .kp-3d-go { max-width: calc(100% - 20px); }
  .kp-glass { width: 42px; height: 42px; }
  .kp-glass.is-mine { width: 48px; height: 48px; }
  .kp-glass span { font-size: 1.15rem; }
  .kp-3d-mapbtn { width: 50px; height: 50px; }
}
@media (hover: none) { .kp-glass[data-tip]::after, .kp-3d-mapbtn::after { display: none; } }
/* tahap 53: jam WIB & cuaca di samping tombol peta */
.kp-hud { position: absolute; left: 78px; top: 10px; z-index: 2; display: flex; gap: 6px; height: 58px; align-items: stretch; pointer-events: auto; max-width: calc(100% - 140px); }
.kp-hud > span { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; color: var(--ink); min-width: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,240,205,.25)); border: 1.5px solid rgba(255,255,255,.65);
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); box-shadow: 0 6px 18px rgba(27,8,24,.3), inset 0 1px 0 rgba(255,255,255,.7); }
.kp-hud-clock { flex-direction: column; justify-content: center; gap: 0 !important; line-height: 1; }
.kp-hud-clock b { font-family: var(--mono); font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.kp-hud-clock small { font-size: .62rem; font-weight: 800; letter-spacing: .14em; opacity: .7; }
.kp-hud-wx i { font-style: normal; font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 2px 1px rgba(27,8,24,.25)); }
.kp-hud-wx > span { display: grid; line-height: 1.1; min-width: 0; }
.kp-hud-wx b { font-size: .86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-hud-wx small { font-family: var(--mono); font-size: .76rem; font-weight: 700; opacity: .75; }
.kp-3d.is-night .kp-hud > span { color: var(--cream); background: linear-gradient(160deg, rgba(80,35,69,.6), rgba(27,8,24,.35)); border-color: rgba(255,255,255,.3); }
.kp-3d.driving .kp-hud { display: none; }
.kp-3d::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #eef3ff; opacity: 0; transition: opacity .06s; }
.kp-3d.is-bolt::before { opacity: .28; }
@media (max-width: 700px) {
  .kp-hud { left: 68px; height: 50px; gap: 5px; max-width: calc(100% - 120px); }
  .kp-hud > span { padding: 0 9px; gap: 5px; }
  .kp-hud-clock b { font-size: 1rem; }
  .kp-hud-wx i { font-size: 1.3rem; }
  .kp-hud-wx b { font-size: .72rem; max-width: 74px; }
  .kp-hud-wx small { font-size: .66rem; }
}
@media (max-width: 340px) { .kp-hud-wx b { display: none; } }
@media (prefers-reduced-motion: reduce) { .kp-3d.is-bolt::before { opacity: 0; } }
/* tahap 54: pengumuman petugas di peta */
.kp-duty { position: absolute; left: 10px; top: 80px; z-index: 3; width: min(400px, calc(100% - 70px)); display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 10px 10px 10px 12px; border-radius: 18px; color: var(--ink); background: rgba(255,248,236,.92); border: 2px solid var(--gold);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px rgba(27,8,24,.35); animation: dutyIn .45s cubic-bezier(.3,1.4,.5,1) both; }
.kp-duty.out { animation: dutyOut .3s ease both; }
.kp-duty-av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); font-size: 1.5rem; box-shadow: inset 0 -3px 0 rgba(27,8,24,.15); }
.kp-duty-txt { display: grid; gap: 4px; min-width: 0; }
.kp-duty-txt small { font-size: .74rem; font-weight: 800; color: #6E3B63; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.kp-duty-txt p { margin: 0; font-size: .88rem; line-height: 1.35; font-weight: 600; }
.kp-duty-more { justify-self: start; margin-top: 2px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink-2); background: var(--coral); color: var(--ink); font: 800 .78rem/1.2 var(--body); cursor: pointer; box-shadow: 0 3px 0 var(--ink-2); }
.kp-duty-more:hover { background: var(--gold); }
.kp-duty-more:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-2); }
.kp-duty-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(27,8,24,.1); color: var(--ink); font-weight: 800; cursor: pointer; }
.kp-duty-x:hover { background: rgba(27,8,24,.2); }
.kp-duty .kp-ig { background: rgba(255,98,89,.15); color: #B8323A; }
.kp-3d.driving .kp-duty { display: none; }
@keyframes dutyIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes dutyOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@media (max-width: 700px) { .kp-duty { top: 70px; left: 8px; width: calc(100% - 62px); grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  .kp-duty-av { width: 38px; height: 38px; font-size: 1.25rem; } .kp-duty-txt p { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .kp-duty, .kp-duty.out { animation: none; } }
/* tahap 55: potret & karakter 3D petugas */
.kp-duty { grid-template-columns: 56px minmax(0, 1fr) auto; }
.kp-duty-av { width: 56px; height: 56px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #FFE8B0, var(--gold)); border: 2px solid var(--ink-2); }
.kp-duty-av img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15) translateY(4%); }
@media (max-width: 700px) { .kp-duty { grid-template-columns: 46px minmax(0, 1fr) auto; } .kp-duty-av { width: 46px; height: 46px; } }
.duty-hero { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,215,138,.18), rgba(247,169,182,.1)); border: 2px solid var(--line); }
.duty-stage { position: relative; height: 200px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 75%, rgba(255,215,138,.35), transparent 70%), var(--ink); display: grid; place-items: center; }
.duty-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.duty-fallback { font-size: 3.2rem; }
.duty-id { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.duty-id small { font: 800 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.duty-id b { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.duty-user { font-size: .82rem; color: var(--muted); }
.duty-noig { font-size: .76rem; color: var(--muted); font-style: italic; }
.duty-id .kp-ig { font-size: .82rem; padding: 3px 10px; }
.duty-apply { font-size: .8rem; font-weight: 800; color: var(--pink); }
@media (max-width: 480px) { .duty-hero { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; } .duty-stage { height: 150px; } .duty-id b { font-size: 1.1rem; } }
.duty-pop { display: grid; gap: 10px; }
.duty-pop p { margin: 0; line-height: 1.5; }
.duty-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--gold); color: var(--gold); font: 800 .7rem/1.3 var(--mono); letter-spacing: .06em; }
.duty-from { font-weight: 800; color: var(--pink); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.duty-games { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.duty-games a { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: var(--ink); border: 2px solid var(--line); color: var(--cream); text-decoration: none; text-align: center; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.duty-games a:hover, .duty-games a:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.duty-games img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.duty-games b { font-size: .84rem; line-height: 1.2; }
.duty-games small { font-size: .7rem; color: var(--muted); }
.duty-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.duty-tips li { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--ink); font-size: .84rem; font-weight: 700; }
@media (max-width: 420px) { .duty-games img { width: 56px; height: 56px; } .duty-games b { font-size: .76rem; } }
/* "Rumah kami" paling besar di pojok kanan bawah peta 3D */
.kp-3d-go { right: 10px; max-width: none; pointer-events: none; }
.kp-3d-go > * { pointer-events: auto; }
.kp-glass[hidden] { display: none; }
.kp-glass.is-mine { margin-left: auto; width: 68px; height: 68px; border-width: 2.5px; box-shadow: 0 8px 22px rgba(27,8,24,.45), 0 0 0 4px rgba(255,215,138,.35), inset 0 1px 0 rgba(255,255,255,.8); }
.kp-glass.is-mine span { font-size: 2rem; }
.kp-glass.is-mine::after { left: auto; right: 0; transform: translate(0, 4px); }
.kp-glass.is-mine:hover::after, .kp-glass.is-mine:focus-visible::after { transform: translate(0, 0); }
@media (max-width: 700px) {
  .kp-3d-go { gap: 6px; left: 8px; right: 8px; bottom: 8px; }
  .kp-glass.is-mine { width: 56px; height: 56px; }
  .kp-glass.is-mine span { font-size: 1.6rem; }
}

/* ---------- pemilih game ringkas di HP (tahap 30) ----------
   Pratinjau jadi satu baris tipis (ikon · nama · deskripsi 2 baris · Main),
   daftar game jadi petak 3 kolom: ikon + nama saja.                     */
@media (max-width: 640px) {
  .gc { padding: 8px; border-radius: 18px; box-shadow: 0 6px 0 var(--ink-2), inset 0 0 0 2px var(--line-soft); }
  .gc-top { gap: 8px; padding: 2px 2px 8px; font-size: .75rem; }
  .gc-tags button { min-height: 30px; padding: 0 10px; font-size: .74rem; }
  .gc-body { gap: 8px; }
  .gc-preview { top: 68px; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 10px; border-radius: 14px; align-items: center; }
  .gc-art img { width: 52px; filter: drop-shadow(0 4px 0 rgba(27, 8, 24, .55)); }
  .gc-art > span:first-child { font-size: 2.2rem; }
  .gc-no, .gc-chips { display: none; }
  .gc-info { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; min-width: 0; }
  .gc-info h3 { grid-column: 1; font-size: 1.02rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gc-info p { grid-column: 1; font-size: .76rem; line-height: 1.35; margin: 2px 0 0; -webkit-line-clamp: 2; }
  .gc-play { grid-column: 2; grid-row: 1 / span 2; width: auto; min-height: 42px; padding: 0 14px; font-size: .88rem; }
  .gc-play .gc-a { width: 22px; height: 22px; font-size: .7rem; }
  .gc-play .gc-now { display: none; }
  .gc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 14px; }
  .gc-list li { grid-template-columns: none; justify-items: center; align-content: start; gap: 4px; min-height: 0; padding: 8px 4px 6px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .03); }
  .gc-list li + li { margin-top: 0; }
  .gc-cursor, .gc-dot, .gc-name small { display: none; }
  .gc-ic { width: 46px; height: 46px; }
  .gc-name b { font-size: .74rem; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .gc-lock { position: absolute; top: 4px; right: 6px; font-size: .66rem; }
  .gc-list li { position: relative; }
}
@media (max-width: 360px) { .gc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kp-board-btn { justify-self: start; }

/* ---------- Ruko Rukun (tahap 31) ---------- */
.ruko-pop { display: grid; gap: 10px; justify-items: stretch; text-align: center; }
.ruko-banner { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 14px; border: 3px solid var(--ink-2); background: var(--rk, var(--coral)); }
.ruko-banner-txt { display: grid; place-content: center; gap: 4px; padding: 12px; color: var(--rk-ink, var(--ink)); }
.ruko-banner-txt b { font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.1; }
.ruko-empty .ruko-banner { background: repeating-linear-gradient(135deg, #EFE3D2 0 18px, #E4D3BD 18px 36px); }
.ruko-empty .ruko-banner-txt small { font-weight: 700; color: #5E2B52; }
.ruko-tag { margin: 0; font-weight: 700; }
.ruko-pop .side-sub, .ruko-pop p { margin: 0; }
.ruko-ad { color: var(--muted); font-size: .72rem; }
.rk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; border: 2px solid var(--ink-2); vertical-align: -1px; }
.rk-color { padding: 4px; height: 44px; cursor: pointer; }
@media (max-width: 700px) {
  .kp-3d-go { gap: 5px; }
  .kp-glass { width: 38px; height: 38px; }
  .kp-glass span { font-size: 1.05rem; }
  .kp-glass.is-mine { width: 50px; height: 50px; }
}

/* ---------- interior bergambar (tahap 32) ---------- */
.ri-house { padding: 0; margin-top: 0; border: 3px solid var(--ink-2); border-radius: 14px; overflow: hidden; background: var(--ink-2); display: grid; gap: 3px; }
.ri-scene { position: relative; aspect-ratio: 16 / 9; background: #E9A8A0 center / cover no-repeat; overflow: hidden; }
.ri-scene .ri-label { top: 6px; left: 8px; z-index: 120; padding: 2px 8px; border-radius: 999px; background: rgba(27,8,24,.62); color: var(--cream); opacity: 1; font-size: .68rem; }
.ri-pic { position: absolute; transform: translateX(-50%); object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 2px rgba(27,8,24,.28)); user-select: none; -webkit-user-drag: none; }
.ri-pic.fresh { animation: riPop .6s var(--ease); }
.ri-foto { display: block; padding: 0; border: 0; background: none; font: inherit; }
.ri-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* jendela dalam bingkai (di dalam passe-partout krem), diukur dari gambar bingkai 359x363 */
.ri-foto .ri-foto-pic { inset: auto; left: 14.6%; top: 14.6%; width: 70.9%; height: 70.8%; object-fit: cover; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(27,8,24,.25); }
button.ri-foto { cursor: zoom-in; transition: transform var(--motion-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
button.ri-foto:hover, button.ri-foto:focus-visible { transform: translateX(-50%) scale(1.06); }
button.ri-foto:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
button.ri-foto::after { content: "🔍"; position: absolute; right: -6%; bottom: -6%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink-2); font-size: clamp(8px, 1.6vw, 14px); line-height: 1; box-shadow: 0 2px 0 var(--ink-2); }
.ri-mini button.ri-foto { pointer-events: none; }
.ri-mini button.ri-foto::after { content: none; }
.kp-foto-zoom { width: min(92vw, 520px); padding: 0; border: 0; background: transparent; overflow: visible; }
.kp-foto-zoom::backdrop { background: rgba(27,8,24,.86); backdrop-filter: blur(3px); }
.kp-foto-zoom[open] { animation: pop .3s cubic-bezier(.3,1.5,.5,1); }
.kp-foto-zoom figure { position: relative; margin: 0; }
.kp-foto-zoom .kp-pop-x { position: absolute; top: -14px; right: -6px; z-index: 2; box-shadow: 0 3px 0 var(--ink-2); }
.kfz-frame { padding: 7%; border-radius: 10px; background: linear-gradient(135deg, #B46A43, #8A4A2C 55%, #A65E39); box-shadow: inset 0 0 0 3px #5A2B1E, 0 10px 0 var(--ink-2), 0 18px 40px rgba(0,0,0,.5); }
.kfz-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 6px solid #FCE2C4; outline: 3px solid #5A2B1E; border-radius: 2px; background: #FCE2C4; }
.kp-foto-zoom figcaption { margin-top: 14px; text-align: center; color: var(--cream); font-family: var(--display); font-size: 1.15rem; }
.ri-wrap .ri-empty { position: static; inset: auto; padding: 10px 12px; border-radius: 12px; background: var(--ink); border: 2px dashed var(--line-soft); }
.ri-mini .ri-scene .ri-label { display: none; }
.ri-photo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ink); font-size: .85rem; }
.ri-photo-bar span { flex: 1 1 180px; }
.ri-photo-bar label { cursor: pointer; }
.ri-shop img.ri-ic { width: 44px; height: 44px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .ri-pic.fresh { animation: none; } }

/* ---------- kendaraan berlapis (tahap 32) ---------- */
.veh { position: relative; display: block; width: 100%; aspect-ratio: 768 / 480; }
.veh-ride { position: absolute; inset: 0; }
.veh img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.veh.spin .veh-wheel { animation: vehSpin 1.1s linear infinite; }
.veh.spin .veh-body { animation: vehBob .55s ease-in-out infinite alternate; }
.veh-sepeda.spin .veh-wheel { animation-duration: 1.6s; }
@keyframes vehSpin { to { rotate: 360deg; } }
@keyframes vehBob { to { translate: 0 -0.6%; } }
.sr-pic .veh { max-width: 100%; }
.sr-item:not(:hover):not(:focus-within) .veh.spin .veh-wheel { animation-duration: 2.6s; }
.sr-mini .veh { width: 64px; }
@media (prefers-reduced-motion: reduce) { .veh.spin .veh-wheel, .veh.spin .veh-body { animation: none; } }

/* ---------- jual kendaraan & tawaran (tahap 33) ---------- */
.sr-garage li { grid-template-columns: 64px minmax(0, 1fr) auto; }
.sr-gacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sr-offers li.in { border-color: var(--gold); }
.sell-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--ink); margin-bottom: 10px; }
.sell-head > div { display: grid; gap: 2px; }
.sell-head small { color: var(--muted); }
.sell-opt { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 2px solid var(--line-soft); margin-bottom: 10px; }
.sell-opt h3 { margin: 0; font-size: 1rem; }
.sell-opt p { margin: 0; }
.sell-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sell-price { font-size: 1.25rem; color: var(--mint); }
.sell-fields { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.sell-fields .field { display: grid; gap: 4px; margin: 0; }
.sell-fields .field span { font-size: .8rem; font-weight: 700; }
.sell-out { padding: 8px 10px; border-radius: 10px; background: rgba(255,215,138,.12); border: 2px dashed var(--gold); font-size: .88rem; }
@media (max-width: 480px) { .sell-fields { grid-template-columns: 1fr; } .sell-head { grid-template-columns: 90px minmax(0, 1fr); } }
.kp-offers { margin-top: 12px; padding: 10px; border-radius: 14px; border: 2px dashed var(--gold); }
.kp-offers h3 { margin: 0 0 6px; font-size: .95rem; }
.kp-offers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kp-offers li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.kp-offers li > div { display: grid; min-width: 0; }
.kp-offers small { color: var(--muted); }
@media (max-width: 520px) {
  .sr-garage li { grid-template-columns: 64px minmax(0, 1fr); }
  .sr-garage li .sr-gacts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- pajak tahunan (tahap 34) ---------- */
.tax-ok, .tax-due, .tax-late { display: block; font-size: .78rem; }
.tax-ok { color: var(--muted); }
.tax-due { color: var(--gold); }
.tax-late { color: var(--coral-hover); font-weight: 700; }
.tax-due .link-btn, .tax-late .link-btn { font-size: inherit; }
.kp-tax { margin-top: 12px; padding: 10px; border-radius: 14px; border: 2px solid var(--line-soft); }
.kp-tax.warn { border-color: var(--coral-hover); }
.kp-tax h3 { margin: 0 0 6px; font-size: .95rem; }
.kp-tax ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kp-tax li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.kp-tax li > div { display: grid; min-width: 0; }
.kp-tax details { margin-top: 8px; font-size: .82rem; }
.kp-tax details ul { gap: 2px; margin-top: 4px; color: var(--muted); }

/* ---------- Statistik pemilik (tahap 35) ---------- */
.adm-nav { grid-template-columns: repeat(9, minmax(0, 1fr)); }
@media (max-width: 1400px) { .adm-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .adm-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .adm-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#p-stat > .card + .adm-cols, #p-stat > .adm-cols + .card { margin-top: 22px; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.st-kpi { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic l" "ic v" "s s"; column-gap: 10px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line-soft); background: var(--ink); }
.st-kpi span { grid-area: ic; font-size: 1.5rem; align-self: center; }
.st-kpi small { grid-area: l; color: var(--muted); font-size: .78rem; font-weight: 700; }
.st-kpi b { grid-area: v; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-kpi em { grid-area: s; margin-top: 6px; font-style: normal; font-size: .76rem; color: var(--muted); }
.st-chart { position: relative; margin-top: 8px; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-grid { stroke: var(--line-soft); stroke-width: 1; opacity: .6; }
.st-base { stroke: var(--muted); stroke-width: 1; }
.st-ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.st-bar path { fill: var(--coral); transition: opacity var(--motion-fast); }
.st-chart svg:hover .st-bar path { opacity: .55; }
.st-chart svg .st-bar.on path { opacity: 1; fill: var(--coral-hover); }
.st-bar { cursor: pointer; }
.st-tip { position: absolute; top: -6px; display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--plum); border: 2px solid var(--line); font-size: .78rem; pointer-events: none; white-space: nowrap; box-shadow: var(--hard); }
.st-tip span { color: var(--muted); }
.st-table { margin-top: 10px; font-size: .85rem; }
.st-table .st-users { margin-top: 6px; }
.st-h { margin: 18px 0 8px; font-size: 1.1rem; }
.st-h small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.st-online { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: grid; text-align: left; padding: 6px 12px; border-radius: 999px; border: 2px solid #6fdc9a; background: var(--ink); color: var(--cream); font: inherit; cursor: pointer; }
.st-chip small { color: var(--muted); font-size: .72rem; }
.st-chip:hover { border-color: var(--gold); }
.st-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-top li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; }
.st-top li > div { display: grid; min-width: 0; }
.st-top small { color: var(--muted); font-size: .76rem; }
.st-meter { height: 8px; border-radius: 999px; background: var(--ink); overflow: hidden; }
.st-meter i { display: block; height: 100%; border-radius: 999px; background: var(--coral); }
.st-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin: 8px 0 12px; }
.st-users-wrap { overflow-x: auto; }
.st-users { width: 100%; border-collapse: collapse; font-size: .88rem; }
.st-users th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 2px solid var(--line-soft); white-space: nowrap; }
.st-users td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.st-users td small { display: block; color: var(--muted); font-size: .75rem; }
.st-users td:nth-child(n+4) { font-variant-numeric: tabular-nums; }
#us-list tr[data-uid] { cursor: pointer; }
#us-list tr[data-uid]:hover, #us-list tr[data-uid]:focus-visible { background: var(--ink); outline: none; }
.st-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: .72rem; white-space: nowrap; margin: 1px 0; }
.st-tag.pink { border-color: var(--pink); }
.st-tag.gold { border-color: var(--gold); color: var(--gold); }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6fdc9a; margin-right: 6px; }
.st-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: .85rem; }
.st-dlg { width: min(680px, calc(100vw - 24px)); }
.st-dlg h3 { margin: 16px 0 6px; font-size: 1rem; }
.st-dlg p { margin: 4px 0; }
.st-d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st-d-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0 0; }
.st-d-grid dt { color: var(--muted); font-size: .75rem; font-weight: 700; }
.st-d-grid dd { margin: 0; font-size: .9rem; }
.st-cal { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.st-cal i { aspect-ratio: 1; border-radius: 3px; background: var(--ink); border: 1px solid var(--line-soft); }
.st-cal i.on { background: var(--coral); border-color: var(--coral); }
.st-d-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .85rem; }
.st-d-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.st-d-list span { color: var(--muted); }
.st-d-list .plus { color: #6fdc9a; }
.st-d-list .min { color: var(--coral-hover); }
@media (max-width: 640px) {
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-kpi { padding: 10px; }
  .st-kpi b { font-size: 1.3rem; }
  .st-filter { grid-template-columns: 1fr 1fr; }
  .st-filter #us-q { grid-column: 1 / -1; }
  .st-d-grid { grid-template-columns: 1fr; }
  .st-cal { grid-template-columns: repeat(15, minmax(0, 1fr)); }
  .st-users th:nth-child(n+4), .st-users td:nth-child(n+4) { display: none; }
}

/* ---------- Jadi Warga di beranda (tahap 36) ---------- */
.features.features-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .features.features-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .features.features-4 { grid-template-columns: 1fr; } }

/* ---------- Bank berdua & ATM (tahap 37) ---------- */
.bank-card { position: relative; display: grid; gap: 4px; padding: 16px 18px 14px; border-radius: 16px; color: #fff8ec; overflow: hidden;
  background: linear-gradient(135deg, #3b6fd8 0%, #6a4bd1 55%, #c2548f 100%); box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.bank-card::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); pointer-events: none; }
.bank-card small { font-size: .7rem; letter-spacing: .08em; font-weight: 800; opacity: .9; }
.bank-card b { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bank-card b em { font-style: normal; font-size: .9rem; opacity: .85; }
.bank-card .bank-no { font-family: ui-monospace, monospace; font-size: .75rem; letter-spacing: .06em; opacity: .85; }
.bank-chip { position: absolute; top: 16px; right: 18px; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f3d48a, #c99a3e); box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.bank-atm-btn { width: 100%; margin-top: 6px; }
.atm-dlg { padding: 0; border: 0; background: transparent; width: min(420px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: auto; }
.atm-dlg::backdrop { background: rgba(10, 4, 12, .7); }
.atm { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #5b6170, #2e323c); border: 3px solid #1b1d23; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 20px 40px rgba(0,0,0,.5); color: #e9edf5; }
.atm-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .1em; font-size: .85rem; padding: 2px 6px; }
.atm-x { border: 0; background: rgba(255,255,255,.12); color: inherit; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font: inherit; }
.atm-screen { min-height: 210px; padding: 16px; border-radius: 12px; border: 6px solid #15171c; background: radial-gradient(120% 100% at 50% 0%, #1f6f86, #0b3442); color: #d9fbff; font-family: ui-monospace, "SF Mono", Menlo, monospace; text-align: center; display: grid; align-content: center; gap: 8px; box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
.atm-screen p { margin: 0; font-size: .85rem; }
.atm-big { font-size: 1rem !important; font-weight: 800; letter-spacing: .06em; }
.atm-small { font-size: .72rem !important; opacity: .8; }
.atm-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 4px 0; }
.atm-quick button { font: inherit; font-size: .85rem; font-weight: 800; padding: 8px; border-radius: 6px; border: 2px solid #8fe8ff; background: rgba(143,232,255,.12); color: #e8fdff; cursor: pointer; }
.atm-quick button:hover { background: rgba(143,232,255,.28); }
.atm-input b { color: #fff6a8; }
.atm-cardslot { display: grid; gap: 8px; justify-items: center; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 6px; }
.atm-card { display: grid; place-items: end start; width: 150px; height: 92px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, #3b6fd8, #c2548f); font-size: .6rem; letter-spacing: .08em; font-weight: 800; color: #fff; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.4); transition: transform .6s var(--ease), opacity .6s; }
.atm-card i { position: absolute; top: 12px; left: 12px; width: 24px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #f3d48a, #c99a3e); }
.atm-cardslot.in .atm-card { transform: translateY(-70px) scale(.85); opacity: 0; }
.atm-cardslot em { font-style: normal; font-size: .72rem; opacity: .85; animation: atmBlink 1.2s steps(2) infinite; }
@keyframes atmBlink { 50% { opacity: .3; } }
.atm-dots { display: flex; justify-content: center; gap: 8px; }
.atm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9fbff; animation: atmBlink .9s infinite; }
.atm-dots i:nth-child(2) { animation-delay: .3s; } .atm-dots i:nth-child(3) { animation-delay: .6s; }
.atm-panel { display: grid; grid-template-columns: 1fr 112px; gap: 10px; }
.atm-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.atm-keys button, .atm-fn button { font: inherit; font-weight: 800; border: 0; border-radius: 8px; cursor: pointer; min-height: 40px; box-shadow: 0 3px 0 rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.atm-keys button { background: linear-gradient(180deg, #dfe3ea, #aab0bc); color: #1d2028; font-size: 1rem; }
.atm-keys button:active, .atm-fn button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.atm-fn { display: grid; gap: 6px; }
.atm-fn button { font-size: .75rem; letter-spacing: .05em; color: #1d2028; }
.atm-fn .red { background: linear-gradient(180deg, #ff8a80, #e0453a); color: #fff; }
.atm-fn .yellow { background: linear-gradient(180deg, #ffe08a, #e2b23a); }
.atm-fn .green { background: linear-gradient(180deg, #8fe8a8, #2fa857); color: #fff; }
.atm-slot { min-height: 14px; border-radius: 6px; background: #15171c; padding: 4px; display: grid; justify-items: center; }
.atm-receipt { width: 78%; display: grid; gap: 2px; padding: 10px 12px 14px; background: #fffdf6; color: #222; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; text-align: center; animation: atmPrint .9s var(--ease) both; clip-path: polygon(0 0, 100% 0, 100% 94%, 95% 100%, 90% 94%, 85% 100%, 80% 94%, 75% 100%, 70% 94%, 65% 100%, 60% 94%, 55% 100%, 50% 94%, 45% 100%, 40% 94%, 35% 100%, 30% 94%, 25% 100%, 20% 94%, 15% 100%, 10% 94%, 5% 100%, 0 94%); }
.atm-receipt b { font-size: .85rem; }
@keyframes atmPrint { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .atm-card, .atm-receipt, .atm-cardslot em, .atm-dots i { animation: none; transition: none; } }
.tax-lock { display: block; font-size: .78rem; color: var(--gold); font-weight: 700; }
.bank-card small { padding-right: 46px; }

/* ---------- Halaman game rapi (tahap 38) ---------- */
.bio-say { white-space: normal; width: max-content; max-width: min(240px, calc(100% - 16px)); text-align: center; line-height: 1.25; font-weight: 700; }
.call-tile.has-bio { cursor: pointer; }
/* kamera, pengaturan, permainan & hasil: lebar sama (selebar kontainer) */
.game-page > .setup-card, .game-page > .final-card, .game-page > .ended-card { max-width: none; width: 100%; }
.game-page > .setup-card > *:not(.win-title) { max-width: 760px; margin-left: auto; margin-right: auto; }
.game-page > .final-card > *:not(.win-title) { max-width: 900px; margin-left: auto; margin-right: auto; }
.game-page > .ended-card > *:not(.win-title) { max-width: 560px; margin-left: auto; margin-right: auto; }
.game-page > .call-dock { margin-bottom: 22px; }
.game-title-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge pill" "badge title"; column-gap: 14px; align-items: center; }
.game-title-wrap > .game-badge { grid-area: badge; }
.game-title-wrap > .pill { grid-area: pill; justify-self: start; }
.game-title-wrap > h1 { grid-area: title; }
.game-head { --tone: var(--gold); }
.game-head[data-tone="pink"] { --tone: var(--coral); }
.game-head[data-tone="mint"] { --tone: var(--mint); }
.game-head[data-tone="lav"] { --tone: var(--pink); }
.game-badge { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; overflow: hidden; background: var(--plum); border: 3px solid var(--tone); box-shadow: 0 4px 0 var(--ink-2), 0 0 0 4px color-mix(in srgb, var(--tone) 25%, transparent); }
.game-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-badge i { position: absolute; right: -2px; bottom: -2px; font-style: normal; font-size: 1.05rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 12px 0 18px 0; background: var(--tone); }
.game-head .pill { border-color: var(--tone); }
.setup-howto { display: block; margin: 12px auto 0; font-weight: 700; }
.howto-h { margin: 14px 0 6px; font-size: 1rem; }
.howto-rules { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; text-align: left; }
@media (max-width: 560px) {
  .game-badge { width: 54px; height: 54px; border-radius: 16px; }
  .game-badge i { width: 22px; height: 22px; font-size: .8rem; border-radius: 9px 0 13px 0; }
  .game-title-wrap { column-gap: 10px; }
}

/* ---------- tahap 39: ID Card warga (3D mengkilap) ---------- */
.idc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; margin: 16px 0 6px; }
.idc { margin: 0; perspective: 900px; outline: none; }
.idc figcaption { margin-top: 10px; text-align: center; font-size: .82rem; color: var(--muted); }
.idc-inner {
  --mx: 30%; --my: 20%; --hue: 120deg;
  position: relative; overflow: hidden; aspect-ratio: 1.586; border-radius: 18px;
  padding: clamp(12px, 3.6cqw, 18px); container-type: inline-size;
  color: #2A0F26;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.55), transparent 55%),
    repeating-linear-gradient(135deg, rgba(166,115,149,.09) 0 2px, transparent 2px 9px),
    linear-gradient(140deg, #FFF4DE 0%, #FBD3D9 45%, #F2C3E0 70%, #FFE2B3 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 -2px 0 rgba(120,50,90,.25) inset, 0 18px 32px rgba(10,2,9,.55), 0 6px 0 var(--ink-2);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .3s;
  display: grid; grid-template-rows: auto 1fr; gap: 8px;
}
.idc.on .idc-inner { transition: transform .08s linear; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 26px 40px rgba(10,2,9,.6), 0 6px 0 var(--ink-2); }
.idc:focus-visible .idc-inner { outline: var(--focus); outline-offset: 4px; }
.idc-top { display: flex; align-items: center; gap: 10px; padding-bottom: 7px; border-bottom: 2px solid rgba(184,52,58,.35); }
.idc-top img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.idc-top b { display: block; font-family: var(--display); letter-spacing: .08em; font-size: .95rem; color: #8E1F3A; }
.idc-top small { display: block; font-size: .68rem; color: #6B3A5E; }
.idc-chip { margin-left: auto; width: 38px; height: 28px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, #F6D58A, #C99A3E 45%, #FBE3A6 55%, #B9862D);
  box-shadow: inset 0 0 0 1px rgba(110,70,10,.45), inset 0 0 0 5px rgba(255,240,200,.25); }
.idc-body { display: grid; grid-template-columns: 30% 1fr; gap: 12px; min-height: 0; }
.idc-photo { position: relative; align-self: start; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, #F7A9B6, #A04A78); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(60,10,40,.35); }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc-initial { display: grid; place-items: center; width: 100%; height: 100%; font: 700 2.4rem var(--display); color: #fff; }
.idc-holo { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .6rem var(--body); color: rgba(60,20,50,.7);
  background: conic-gradient(from var(--hue), #ffb3c7, #ffe9a3, #b8f3d8, #b6d4ff, #e2b8ff, #ffb3c7);
  box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
.idc dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; align-content: start; min-width: 0; }
.idc dl > div { min-width: 0; }
.idc .idc-wide { grid-column: 1 / -1; }
.idc dt { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: #8A5577; }
.idc dd { margin: 0; font-size: .8rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.idc dd i { font-weight: 400; color: #8A5577; }
.idc .idc-no { font-family: var(--mono); font-size: .9rem; letter-spacing: .06em; color: #8E1F3A; }
.idc .idc-name { font-family: var(--display); font-size: 1.02rem; }
.idc-shine, .idc-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.idc-shine { mix-blend-mode: color-dodge; opacity: .35; transition: opacity .3s;
  background: repeating-linear-gradient(115deg, rgba(255,120,170,.0) 0%, rgba(255,140,190,.45) 8%, rgba(255,230,140,.45) 14%, rgba(140,240,200,.45) 20%, rgba(140,190,255,.45) 26%, rgba(220,150,255,.0) 34%);
  background-size: 260% 260%; background-position: var(--mx) var(--my); }
.idc-glare { opacity: .55; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.85), rgba(255,255,255,0) 42%); mix-blend-mode: soft-light; }
.idc.on .idc-shine { opacity: .75; }
.idc.on .idc-glare { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .idc:not(.on) .idc-shine { animation: idc-sweep 6s ease-in-out infinite; }
}
@keyframes idc-sweep { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.idc-job { margin-top: 14px; display: grid; gap: 6px; }
.idc-job label { font-weight: 700; }
@media (max-width: 420px) {
  .idc-inner { aspect-ratio: auto; padding: 12px; }
  .idc-top { gap: 8px; }
  .idc-top img { width: 28px; height: 28px; }
  .idc-top b { font-size: .8rem; letter-spacing: .05em; white-space: nowrap; }
  .idc-top small { font-size: .6rem; }
  .idc-chip { width: 30px; height: 22px; }
  .idc-body { gap: 10px; }
  .idc dd { font-size: .74rem; }
  .idc .idc-name { font-size: .95rem; }
}

/* ---------- tahap 40: minimarket, billboard & rumah Pak RT ---------- */
.ruko-banner.iklan-media { aspect-ratio: 2 / 1; object-fit: cover; background: var(--ink-2); }
.ruko-banner.iklan-media.is-logo { object-fit: contain; background: var(--rk, #6FD3C5); padding: 10px; }
.rt-pop { display: grid; gap: 10px; }
.rt-pop p { margin: 0; }
.ik-item { align-items: center; }
.ik-thumb { flex: none; width: 96px; aspect-ratio: 2 / 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink-2); background: var(--ink-2); }
.ik-thumb img, .ik-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-preview { grid-column: 1 / -1; max-width: 520px; border-radius: 12px; overflow: hidden; border: 3px solid var(--ink-2); aspect-ratio: 2 / 1; background: var(--ink-2); }
.ik-preview img, .ik-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-nav { grid-template-columns: repeat(10, minmax(0, 1fr)); }
@media (max-width: 1400px) { .adm-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .adm-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ik-item:has(.ik-thumb) { grid-template-columns: 96px minmax(0, 1fr) auto; }
@media (max-width: 560px) { .ik-item:has(.ik-thumb) { grid-template-columns: 1fr; } }

/* ---------- tahap 41: nyetir kendaraan sendiri ---------- */
.kp-glass.kp-drive-btn { width: auto; padding: 0 16px 0 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center;
  background: linear-gradient(160deg, #FF8D84, #FF6259); border-color: rgba(255,255,255,.8); color: #1B0818; }
.kp-glass.kp-drive-btn b { font-size: .95rem; }
.kp-glass.kp-drive-btn:hover { background: linear-gradient(160deg, #FFB0A9, #FF8D84); }
.kp-3d.driving .kp-3d-go, .kp-3d.driving .kp-3d-ctrl, .kp-3d.driving .kp-3d-mapbtn { display: none; }
.kp-drive { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.kp-drive[hidden] { display: none; }
.kp-drive > * { pointer-events: auto; }
.kp-drive-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-drive-top b, .kp-drive-speed { padding: 6px 12px; border-radius: 999px; background: rgba(27,8,24,.78); color: var(--cream); font-size: .85rem; }
.kp-drive-speed { font-family: var(--mono); color: var(--gold); min-width: 80px; text-align: center; }
.kp-drive-top button { margin-left: auto; }
.kp-drive-top button + button { margin-left: 0; }
.kp-drive-top button, .kp-drive-pad button { cursor: pointer; border: 2px solid rgba(255,255,255,.75); color: #1B0818; font-weight: 800;
  background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(255,240,205,.55)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(27,8,24,.35); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.kp-drive-top button { height: 38px; padding: 0 14px; border-radius: 999px; font-size: .9rem; }
.kp-drive-pad { position: absolute; bottom: 14px; display: flex; gap: 10px; }
.kp-drive-steer { left: 14px; }
.kp-drive-gas { right: 14px; flex-direction: column-reverse; }
.kp-drive-pad button { width: 66px; height: 66px; border-radius: 50%; font-size: 1.5rem; transition: transform var(--motion-fast), background var(--motion-fast); }
.kp-drive-pad button.on { transform: scale(.92); background: linear-gradient(160deg, #FFD78A, #FF8D84); }
.kp-drive-gas [data-k="up"] { background: linear-gradient(160deg, #B8F3D8, #6FD3C5); }
.kp-drive-gas [data-k="down"] { width: 56px; height: 56px; align-self: center; background: linear-gradient(160deg, #FFC0BB, #FF8D84); }
.kp-drive-pad button:focus-visible, .kp-drive-top button:focus-visible { outline: var(--focus); outline-offset: 2px; }
.kp-drive-help { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 340px);
  padding: 6px 12px; border-radius: 12px; background: rgba(27,8,24,.7); color: var(--cream); font-size: .75rem; text-align: center; }
@media (max-width: 700px) {
  .kp-drive-help { display: none; }
  .kp-drive-pad button { width: 60px; height: 60px; }
}
.kp-drive-req { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 4px; }
.kp-drive-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- tahap 42: jumlah pemain di beranda ---------- */
.hero-count { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255,240,205,.08); border: 2px solid var(--line-soft); color: var(--muted); font-size: .92rem; }
.hero-count[hidden] { display: none; }
.hero-count b { color: var(--gold); font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hero-count small { font-size: .82rem; }
.hc-dots { display: inline-flex; }
.hc-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -7px; background: var(--pink); }
.hc-dots i:first-child { margin-left: 0; background: var(--coral); }
.hc-dots i:last-child { background: var(--gold); }
@media (max-width: 560px) { .hero-count { border-radius: 16px; align-items: flex-start; } }

/* ---------- tahap 42: Panel Pak Kepling ringkas (pill berkelompok) & Bagi Temu ---------- */
.adm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; grid-template-columns: none; margin: 4px 0 22px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 20px; background: var(--plum); box-shadow: var(--hard); }
.adm-group { flex: 0 0 auto; margin: 0 2px 0 10px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-group:first-child { margin-left: 2px; }
.adm-group + .adm-tile { margin-left: 0; }
.adm-group:not(:first-child)::before { content: ""; display: inline-block; width: 2px; height: 18px; margin-right: 12px; vertical-align: middle; background: var(--line); border-radius: 2px; }
.adm-tile { display: inline-flex; grid-template-areas: none; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 2px solid transparent; background: transparent; box-shadow: none; font-size: .9rem; }
.adm-tile span { font-size: 1.05rem; }
.adm-tile b { margin: 0; font-size: .88rem; white-space: nowrap; }
.adm-tile em { display: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--coral); color: #fff; font-family: inherit; font-size: .72rem; font-weight: 800; line-height: 1.5; text-align: center; }
.adm-tile.hot em { display: inline-block; color: #fff; }
.adm-tile.hot::after { content: none; }
.adm-tile small { display: none; }
.adm-tile:hover { transform: none; background: var(--panel); border-color: var(--line); }
.adm-tile[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.adm-tile[aria-selected="true"] b { color: inherit; }
@media (max-width: 1400px), (max-width: 1180px), (max-width: 900px) { .adm-nav { grid-template-columns: none; } }
@media (max-width: 720px) {
  .adm-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px; gap: 4px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-tile { flex: 0 0 auto; padding: 7px 10px; scroll-snap-align: start; }
  .adm-group { margin-left: 6px; }
  .adm-group:not(:first-child)::before { margin-right: 8px; }
}
.gift-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.gift-cats legend { margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.gift-cats label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .88rem; }
.gift-cats label:has(input:checked) { border-color: var(--gold); background: var(--panel); }
.gift-cats input { accent-color: var(--gold); }
.gift-pick { margin-bottom: 12px; }
.gift-active { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow: auto; border: 2px solid var(--line); border-radius: 14px; }
.gift-active li + li { border-top: 1px solid var(--line); }
.gift-active label { display: grid; grid-template-columns: auto 26px 1fr auto; grid-template-areas: "c r n m" "c r u m"; align-items: center; column-gap: 8px; padding: 8px 12px; cursor: pointer; }
.gift-active label:hover { background: var(--panel); }
.gift-active input { grid-area: c; accent-color: var(--gold); width: 18px; height: 18px; }
.gift-active .gift-rank { grid-area: r; font-weight: 800; color: var(--gold); text-align: center; }
.gift-active b { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-active small { grid-area: u; color: var(--muted); font-size: .78rem; }
.gift-active em { grid-area: m; font-style: normal; color: var(--muted); font-size: .75rem; text-align: right; }
.gift-active .lb-empty { padding: 12px; }
.gift-sum { min-height: 1.2em; margin: 4px 0 10px; font-size: .9rem; color: var(--gold); }
.gift-sum code { padding: 1px 6px; border-radius: 6px; background: var(--panel); color: var(--cream); }
.gift-item small { display: block; color: var(--muted); }
@media (max-width: 480px) {
  .gift-active label { grid-template-columns: auto 22px 1fr; grid-template-areas: "c r n" "c r u" "c r m"; }
  .gift-active em { text-align: left; }
}
.gift-form { grid-template-columns: 1fr; }
.gift-cats label { flex: 0 0 auto; width: auto; height: auto; margin: 0; line-height: 1.2; }

/* ---------- tahap 43: Dokumen Kewarganegaraan ---------- */
.wd-reward { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 20px; padding: 16px 18px; border-radius: var(--radius-card); border: 2px dashed var(--gold); background: linear-gradient(120deg, rgba(255,215,138,.14), rgba(247,169,182,.10)); }
.wd-reward-ic { font-size: 2rem; line-height: 1; }
.wd-reward h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--gold); }
.wd-reward p { margin: 0; color: var(--cream); font-size: .92rem; line-height: 1.5; }
.wd-reward-prog { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wd-pill { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--ink); border: 2px solid var(--line-soft); font-size: .82rem; }
.wd-pill.ok { border-color: var(--gold); }
.wd-pill b { color: var(--gold); }

.ws-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ws-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic main temu" "acts acts acts"; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--plum); border: 2px solid var(--line-soft); }
.ws-row.approved { border-color: var(--mint); grid-template-areas: "ic main temu"; }
.ws-row.pending { border-color: var(--gold); }
.ws-ic { grid-area: ic; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel); font-size: 1.1rem; }
.ws-main { grid-area: main; min-width: 0; }
.ws-main b { display: block; font-size: .95rem; }
.ws-st { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.ws-st.ok { color: var(--mint); } .ws-st.wait { color: var(--gold); } .ws-st.no { color: var(--pink); }
.ws-temu { grid-area: temu; display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; background: var(--ink); border: 2px solid var(--gold); color: var(--gold); font-size: .78rem; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.ws-temu.ok { background: var(--gold); color: var(--ink); }
.warga-step h3 .ws-temu { margin-left: 6px; font-family: var(--body); }
.ws-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ws-form { display: flex; flex: 1 1 220px; gap: 6px; min-width: 0; }
.ws-form .input { flex: 1; min-width: 0; padding-block: 6px; }

.idc-todo { padding: 14px; border-radius: 16px; background: var(--ink); border: 2px dashed var(--gold); }
.idc-todo p { margin: 0 0 8px; }
.idc-todo ul, .ak-check ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.idc-todo li, .ak-check li { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.idc-todo li em, .ak-check li em { font-style: normal; color: var(--pink); font-size: .8rem; }
.idc-todo li.ok, .ak-check li.ok { color: var(--muted); }
.idc-sos span { display: inline-block; margin-right: 6px; white-space: nowrap; }
.idc figcaption a { color: inherit; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.doc { position: relative; padding: 14px 16px 16px; border-radius: 16px; background: #FFF6E2; color: #3A1733; border: 2px solid var(--ink-2); box-shadow: var(--hard); overflow: hidden; }
.doc::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(58,23,51,.28); border-radius: 11px; pointer-events: none; }
.doc header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.doc-ic { font-size: 1.6rem; }
.doc header small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8A5A7C; font-weight: 800; }
.doc h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; color: #3A1733; }
.doc-stamp { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(184,52,58,.55); color: rgba(184,52,58,.7); font: 800 .45rem/1.15 var(--body); text-align: center; letter-spacing: .05em; transform: rotate(-14deg); }
.doc-no { margin: 6px 0 8px; font-family: var(--mono); font-size: .78rem; color: #6E3B63; }
.doc-pic { display: grid; place-items: center; height: 92px; margin: 0 0 8px; border-radius: 12px; background: linear-gradient(#FBE6C4, #F4D2B0); overflow: hidden; }
.doc-pic .rm-ic { width: auto; height: 88px; }
.doc-pic .veh { width: 150px; }
.doc dl { margin: 0; display: grid; gap: 5px; }
.doc dl div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; font-size: .84rem; }
.doc dt { color: #8A5A7C; }
.doc dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.doc .chip { font-size: .7rem; padding: 1px 8px; }
.doc .chip.no { background: var(--coral); color: #fff; }
.doc-plate { display: inline-block; padding: 1px 8px; border-radius: 5px; background: #1B0818; color: #fff; font-family: var(--mono); letter-spacing: .08em; border: 2px solid #fff; outline: 1.5px solid #1B0818; }
.doc-foot { margin: 10px 0 0; font-size: .76rem; color: #8A5A7C; }
.doc-shm { background: #FFF6E2; } .doc-sewa { background: #F3ECFF; } .doc-bpkb { background: #E8F4FF; }
.doc-empty .sma-actions { justify-content: center; margin-top: 10px; }

.ak-gender { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.ak-gender legend { margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.ak-gender label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .88rem; }
.ak-gender label:has(input:checked) { border-color: var(--gold); background: var(--panel); }
.ak-gender input { accent-color: var(--gold); }
.ak-check { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line-soft); }
.ak-check p { margin: 0 0 8px; }

.adm-sos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.adm-sos li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); }
.adm-sos li.pending { border-color: var(--gold); }
.adm-sos li small { flex-basis: 100%; color: var(--muted); }
.adm-sos .acts { display: flex; gap: 6px; margin-left: auto; }
@media (max-width: 480px) {
  .ws-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 10px; }
  .ws-form { flex-basis: 100%; }
  .doc dl div { grid-template-columns: 96px minmax(0, 1fr); }
  .adm-sos .acts { margin-left: 0; }
}
@media (max-width: 560px) {
  .warga-step .ws-list { margin-left: -56px; }
  .ws-acts .btn-lav { flex: 0 0 auto; }
  .ws-form { flex: 1 1 160px; }
}

/* ---------- tahap 44: Aset kami (rumah, kendaraan, tagihan bulanan) & ATM tarik tunai ---------- */
.kp-mine-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
.kp-mine-grid .kp-pot { position: sticky; top: 84px; }
.kp-mine-house { gap: 14px; }
.aset-sec { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(38,12,34,.45); border: 2px solid var(--line-soft); }
.aset-sec > h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; }
.aset-sec .sma-actions { margin: 0; }
.aset-veh { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aset-veh li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); border: 2px solid transparent; }
.aset-veh li.on { border-color: var(--mint); }
.aset-veh li.locked { border-color: var(--coral); }
.aset-veh-pic { display: block; width: 96px; }
.aset-veh-pic .veh { width: 100%; }
.aset-veh b small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.aset-veh div > small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.aset-bills { display: grid; gap: 10px; }
.aset-bill-list { list-style: none; margin: 0; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line-soft); }
.aset-bill-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; background: var(--ink); }
.aset-bill-list li + li { border-top: 1px solid var(--line-soft); }
.aset-bill-list li.warn { background: rgba(255,98,89,.14); }
.aset-bill-list li div { display: grid; gap: 2px; min-width: 0; }
.aset-bill-list li small { color: var(--muted); font-size: .78rem; }
.aset-bill-list li > span { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--gold); white-space: nowrap; }
.aset-bill-list li > span em { font-style: normal; font-family: var(--body); font-size: .72rem; color: var(--muted); margin-left: 2px; }
.aset-bill-list li.total { background: var(--panel); }
.aset-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,215,138,.12); border: 2px dashed var(--gold); font-size: .86rem; line-height: 1.5; }
.aset-bills .kp-tax { margin: 0; }
.aset-bills .kp-tax details { margin-top: 4px; }
.aset-bills .kp-tax summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.atm-menu { display: grid; gap: 8px; margin-top: 6px; }
.atm-menu button { display: grid; gap: 2px; text-align: left; font: inherit; padding: 10px 12px; border-radius: 6px; border: 2px solid #8fe8ff; background: rgba(143,232,255,.12); color: #e8fdff; cursor: pointer; }
.atm-menu button:hover:not(:disabled) { background: rgba(143,232,255,.28); }
.atm-menu button:disabled { opacity: .5; cursor: not-allowed; }
.atm-menu b { font-size: .95rem; letter-spacing: .04em; }
.atm-menu small { font-size: .74rem; opacity: .85; }
.atm-input small { opacity: .8; }
@media (max-width: 900px) { .kp-mine-grid { grid-template-columns: 1fr; } .kp-mine-grid .kp-pot { position: static; } }
@media (max-width: 480px) { .aset-veh li { grid-template-columns: 76px minmax(0, 1fr); } .aset-veh-pic { width: 76px; } .aset-sec { padding: 12px; } }
.kp-mine-big { container-type: inline-size; }
@container (max-width: 780px) {
  .kp-mine-grid { grid-template-columns: 1fr; }
  .kp-mine-grid .kp-pot { position: static; order: -1; }
}

/* ---------- tahap 45: laporan keuangan komplek ---------- */
.kp-board-row { display: flex; flex-wrap: wrap; gap: 10px; }
.aset-note .btn { margin-top: 8px; }
.kas { display: grid; gap: 12px; min-width: 0; }
.kas > *, .kas-more { min-width: 0; }
.kas h3 { margin: 6px 0 0; font-size: 1rem; }
.kas h3 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.kas-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kas-kpis > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--ink); border: 2px solid var(--line-soft); }
.kas-kpis > div:first-child { border-color: var(--gold); }
.kas-kpis small { color: var(--muted); font-size: .76rem; }
.kas-kpis b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--cream); }
.kas-kpis em { font-style: normal; color: var(--muted); font-size: .74rem; }
.kas-in { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kas-in li { padding: 5px 12px; border-radius: 999px; background: var(--ink); border: 2px solid var(--line-soft); font-size: .86rem; }
.kas-in b { color: var(--gold); margin-left: 4px; }
.kas-mode { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: .76rem; }
.kas-alloc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kas-alloc li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); }
.kas-alloc li.empty { opacity: .7; }
.kas-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); }
.kas-alloc div { display: grid; gap: 3px; min-width: 0; }
.kas-alloc small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.kas-alloc em { font-style: normal; font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.kas-bar { display: block; height: 6px; border-radius: 4px; background: rgba(255,240,205,.1); overflow: hidden; }
.kas-bar s { display: block; height: 100%; border-radius: 4px; background: var(--gold); text-decoration: none; }
.kas-more { padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line-soft); }
.kas-more summary { cursor: pointer; font-weight: 700; }
.kas-more p { font-size: .86rem; line-height: 1.5; }
/* tahap 53: Pak RT dibagi 3 */
.kas-rt3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.kas-rt { display: grid; gap: 2px; align-content: start; padding: 8px; border-radius: 10px; background: var(--panel); border: 2px solid var(--line); min-width: 0; }
.kas-rt.empty { opacity: .65; border-style: dashed; }
.kas-rt .kas-rt-no { font-family: var(--mono); font-size: .72rem; font-weight: 800; color: var(--pink); letter-spacing: .04em; }
.kas-rt small { font-size: .7rem; }
.kas-rt b { font-size: .84rem; overflow-wrap: anywhere; }
.kas-rt b i { color: var(--muted); font-weight: 400; }
.kas-alloc .kas-rt em { font-size: .95rem; }
.kas-rt em i { font-style: normal; font-family: var(--body, inherit); font-size: .7rem; color: var(--muted); font-weight: 400; }
.kas-alloc li.kas-rt-row { align-items: center; }
.kas-rt-row .kas-rt3 { grid-column: 1 / -1; margin-top: 2px; }
.kas-alloc .kas-rt3 .kas-rt { display: grid; gap: 2px; }
.kas-more .kas-rt3 { margin-top: 10px; }
@media (max-width: 480px) { .kas-rt3 { grid-template-columns: 1fr; } .kas-rt { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; } .kas-rt small { display: none; } }
.kas-staff { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.kas-staff li { display: grid; grid-template-columns: 26px minmax(0, 150px) minmax(0, 1fr); gap: 8px; align-items: center; font-size: .88rem; }
.kas-staff small { color: var(--muted); }
.kas-table-wrap { overflow-x: auto; margin-top: 8px; }
.kas-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.kas-table th, .kas-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.kas-table th:first-child, .kas-table td:first-child, .kas-table th:nth-child(3), .kas-table td:nth-child(3) { text-align: left; }
.kas-table th { color: var(--muted); font-weight: 700; }
@media (max-width: 560px) {
  .kas-kpis { grid-template-columns: 1fr 1fr; }
  .kas-kpis > div:first-child { grid-column: 1 / -1; }
  .kas-staff li { grid-template-columns: 26px minmax(0, 1fr); }
  .kas-staff small { grid-column: 2; }
}
.kas-form { display: grid; gap: 12px; margin-top: 10px; }
.kas-form fieldset { display: grid; gap: 8px; margin: 0; padding: 10px 12px; border: 2px solid var(--line-soft); border-radius: 14px; }
.kas-form legend { padding: 0 6px; font-weight: 800; font-size: .88rem; color: var(--gold); }
.kas-f { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: center; font-size: .88rem; }
.kas-f-in { display: flex; align-items: center; gap: 6px; }
.kas-f-in .input { width: 100%; min-width: 0; padding-block: 6px; text-align: right; }
.kas-f-in em { font-style: normal; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.kas-infra { margin: 2px 0 0; font-size: .86rem; color: var(--mint); }
.kas-infra.bad { color: var(--coral); }
#kas-sum .kas-kpis { margin-top: 8px; }
@media (max-width: 480px) { .kas-f { grid-template-columns: 1fr; gap: 4px; } }
.kp-dialog:has(.kas) { width: min(94vw, 700px); }

/* ===== Supermarket: kartu barang rapi (tahap 46) ===== */
.sm-item { display: flex; flex-direction: column; }
.sm-img em { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sm-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-body .sm-acts { margin-top: auto; padding-top: 6px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.sm-body .sm-acts.two { grid-template-columns: 1fr 1fr; }
.sm-body .sm-acts .btn { justify-self: stretch; justify-content: center; margin: 0; padding-inline: 8px; white-space: nowrap; }
@media (max-width: 400px) { .sm-body .sm-acts.two { grid-template-columns: 1fr; } }
.sm-promo { text-decoration: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink-2); box-shadow: var(--hard); }
.sm-promo > span { font-size: 1.8rem; }
.sm-promo b { display: block; font-family: var(--display); font-size: 1.15rem; }
.sm-promo small { color: #3B2A35; }
.kp-iklan { display: grid; gap: 10px; }
.kp-iklan p { margin: 0; line-height: 1.5; }
.kp-iklan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.kp-iklan li { padding: 8px 12px; border-radius: 12px; background: var(--ink); font-size: .9rem; }
.kp-iklan .btn { justify-self: start; }

/* ===== Mall Rukun & kantor (tahap 47) ===== */
.mall-need { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 14px; background: var(--ink); border: 2px dashed var(--gold); margin: 0; }
.office-staff { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.office-staff li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--ink); }
.office-staff li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); font-size: 1.1rem; }
.office-staff div { display: grid; gap: 2px; min-width: 0; }
.office-staff small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.office-pop { display: grid; gap: 10px; }
.office-pop .btn { justify-self: start; }

/* ===== Lonceng notifikasi (tahap 48) ===== */
.bell { position: relative; }
.bell-btn { position: relative; min-width: 44px; justify-content: center; padding-inline: 10px; }
.bell-btn[aria-expanded="true"] { border-color: var(--gold); }
.bell-n { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--ink); border: 2px solid var(--ink-2); font-style: normal; font-size: .7rem; font-weight: 900; line-height: 16px; text-align: center; }
.bell-n[hidden] { display: none; }
.bell-menu { width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; gap: 8px; }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 8px; border-bottom: 2px dashed var(--line-soft); }
.bell-all { border: 0; background: none; color: var(--gold); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; padding: 4px; text-decoration: underline; }
.bell-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bell-it { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--cream); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.bell-it:hover, .bell-it:focus-visible { background: var(--ink); }
.bell-it:focus-visible { outline: var(--focus); outline-offset: 2px; }
.bell-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); font-size: 1.15rem; }
.bell-it div { display: grid; gap: 2px; min-width: 0; }
.bell-it b { font-size: .9rem; line-height: 1.3; }
.bell-it small { color: var(--muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.bell-it time { color: var(--muted); font-size: .72rem; opacity: .8; }
.bell-ul li.new .bell-it { background: rgba(255, 215, 138, .1); }
.bell-ul li.new .bell-ic { box-shadow: 0 0 0 2px var(--gold); }
.bell-ul li.new b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
.bell-empty { margin: 0; padding: 18px 10px; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (max-width: 560px) {
  .bell-menu { width: auto; max-height: calc(100dvh - 90px); }
}

/* ===== Sambutan Pak Kepling 3D (tahap 49) ===== */
.smb { width: min(94vw, 720px); max-height: 94vh; padding: 0; border: 3px solid var(--gold); border-radius: 26px; background: var(--panel); color: var(--cream); box-shadow: 0 14px 0 var(--ink-2), 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.smb::backdrop { background: rgba(27, 8, 24, .72); backdrop-filter: blur(3px); }
.smb[open] { animation: abc-pop .28s ease; }
.smb-in { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); max-height: 94vh; }
.smb-stage { position: relative; min-height: 360px; background: radial-gradient(120% 90% at 50% 100%, #ffd78a 0%, #f7a9b6 38%, #5e2b52 100%); overflow: hidden; }
.smb-stage::before { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 18px, transparent 18px 36px); }
.smb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.smb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; }
.smb-text { display: grid; gap: 10px; align-content: start; padding: 22px 22px 20px; overflow-y: auto; }
.smb-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--ink); border: 2px solid var(--gold); color: var(--gold); font-family: var(--mono, monospace); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.smb-text h2 { margin: 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.smb-say { position: relative; margin: 4px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--cream); color: var(--ink); font-weight: 600; line-height: 1.5; }
.smb-say::before { content: ""; position: absolute; left: -10px; top: 18px; border: 10px solid transparent; border-right-color: var(--cream); border-left: 0; }
.smb-more { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.smb-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.smb-tips li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px; background: var(--ink); font-size: .88rem; }
.smb-tips span { text-align: center; font-size: 1.1rem; }
.smb-sign { margin: 2px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.smb-sign b { color: var(--cream); font-family: var(--display); font-size: 1rem; }
.smb-sign small { display: block; font-size: .74rem; }
.smb-ok { justify-self: stretch; justify-content: center; min-height: 48px; }
.smb-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.smb-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation-name: smb-fall; animation-timing-function: cubic-bezier(.3,.6,.5,1); animation-fill-mode: forwards; }
@keyframes smb-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }
@media (max-width: 640px) {
  .smb { width: 94vw; border-radius: 22px; }
  .smb-in { grid-template-columns: 1fr; overflow-y: auto; }
  .smb-stage { min-height: 230px; height: 230px; }
  .smb-text { overflow: visible; padding: 16px; }
  .smb-text h2 { font-size: 1.25rem; }
  .smb-say::before { left: 30px; top: -10px; border: 10px solid transparent; border-bottom-color: var(--cream); border-top: 0; }
}

/* ---------- tahap 50: Rumah Rukun Photobooth ---------- */
.pb-modal { z-index: 75; overflow-y: auto; align-items: start; }
.pb-modal .card.pb-card { width: min(480px, 100%); margin: auto; padding: 46px 18px 18px; overflow: visible; }
.pb-card.pb-b1 { box-shadow: 0 0 0 3px #F7A9B6, 0 18px 50px rgba(255, 98, 89, .28); }
.pb-card.pb-b2 { box-shadow: 0 0 0 3px #C89BFF, 0 0 26px rgba(255, 79, 163, .45), 0 0 52px rgba(54, 230, 255, .2); }
.pb-x { position: absolute; top: 4px; right: 8px; z-index: 2; width: 34px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--cream); font-size: 1rem; cursor: pointer; }
.pb-x:hover, .pb-x:focus-visible { background: var(--line-soft); }
.pb-kicker { margin: 0 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold) !important; }
.pb-card h2 { margin-bottom: 12px; }
.pb-b2 h2 { color: #FFD9EE; text-shadow: 0 0 10px rgba(255, 79, 163, .8); }
.pb-stage { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #1B0818; border: 2px solid var(--line-soft); }
.pb-stage canvas { display: block; width: 100%; height: 100%; }
.pb-poster { aspect-ratio: 540 / 300; }
.pb-count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(4rem, 22vw, 7rem)/1 var(--body); color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .55); pointer-events: none; }
.pb-count.go { animation: pb-count 1s ease-out; }
@keyframes pb-count { from { transform: scale(1.5); opacity: 0; } 25% { transform: scale(1); opacity: 1; } to { transform: scale(.85); opacity: .2; } }
.pb-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.pb-flash.on { animation: pb-flash .45s ease-out; }
@keyframes pb-flash { from { opacity: .95; } to { opacity: 0; } }
.pb-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.pb-chip { min-width: 0; padding: 7px 4px; border: 2px solid var(--line-soft); border-radius: 12px; background: var(--panel); color: var(--cream); font: 700 .78rem/1.2 var(--body); cursor: pointer; }
.pb-chip small { display: block; font-size: .7rem; color: var(--muted); }
.pb-chip.on { border-color: var(--gold); background: var(--plum, #391332); box-shadow: 0 0 0 2px rgba(255, 215, 138, .3); }
.pb-chip.done::after { content: " ✓"; color: #A9EDC8; }
.pb-chip:disabled { cursor: default; }
.pb-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.pb-thumbs span { display: grid; place-items: center; aspect-ratio: 2 / 1; border: 2px dashed var(--line-soft); border-radius: 10px; color: var(--muted); font-weight: 700; overflow: hidden; }
.pb-thumbs span.on { border-style: solid; border-color: var(--gold); }
.pb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.pb-btns .btn { flex: 1 1 170px; }
.pb-btns .btn-sm { flex: 0 1 auto; }
.pb-note { font-size: .85rem; margin: 6px 0 !important; }
.pb-msg:empty { display: none; }
.pb-msg { margin: 6px 0 0 !important; padding: 8px 10px; border-radius: 10px; background: rgba(255, 215, 138, .12); color: var(--cream) !important; font-size: .88rem; }
.pb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 4px; animation: pb-pulse 1s ease-in-out infinite alternate; }
@keyframes pb-pulse { to { opacity: .25; transform: scale(.7); } }
.pb-result { display: grid; place-items: center; margin-bottom: 6px; }
.pb-result img { width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
body.pb-open { overflow: hidden; }
@media (max-width: 420px) {
  .pb-modal { padding: 8px; }
  .pb-modal .card.pb-card { padding: 42px 12px 14px; }
  .pb-chip { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .pb-count.go, .pb-flash.on, .pb-dot { animation: none; } }

/* tahap 51: tugas verifikasi sosmed */
.tugas-nets { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; }
.tugas-nets li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); min-width: 0; }
.tugas-nets b { font-size: .88rem; }
.tugas-nets .chip { white-space: nowrap; font-size: .72rem; }
.tugas-prog { font-size: .85rem; color: var(--gold) !important; font-weight: 700; margin: 4px 0 8px; }

/* ---------- tahap 51: tombol "Spot Penting" di peta 3D ---------- */
.kp-glass.kp-spot-btn { width: auto; padding: 0 14px 0 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.kp-glass.kp-spot-btn b { font-size: .92rem; }
.kp-glass.kp-spot-btn i { font-style: normal; font-size: .8rem; transition: transform var(--motion-fast); }
.kp-glass.kp-spot-btn[aria-expanded="true"] { background: linear-gradient(160deg, rgba(255,230,170,.9), rgba(255,215,138,.55)); border-color: var(--gold); }
.kp-glass.kp-spot-btn[aria-expanded="true"] i { transform: rotate(90deg); }
.kp-spots { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; min-width: 0; flex: 0 1 auto; }
.kp-spots > * { animation: kp-slide .32s cubic-bezier(.2,.9,.3,1.2) both; }
.kp-spots > :nth-child(2) { animation-delay: .02s; } .kp-spots > :nth-child(3) { animation-delay: .04s; } .kp-spots > :nth-child(4) { animation-delay: .06s; }
.kp-spots > :nth-child(5) { animation-delay: .08s; } .kp-spots > :nth-child(6) { animation-delay: .1s; } .kp-spots > :nth-child(7) { animation-delay: .12s; }
.kp-spots > :nth-child(8) { animation-delay: .14s; } .kp-spots > :nth-child(9) { animation-delay: .16s; } .kp-spots > :nth-child(10) { animation-delay: .18s; }
.kp-spots > :nth-child(11) { animation-delay: .2s; } .kp-spots > :nth-child(12) { animation-delay: .22s; } .kp-spots > :nth-child(13) { animation-delay: .24s; } .kp-spots > :nth-child(n+14) { animation-delay: .26s; }
@keyframes kp-slide { from { opacity: 0; transform: translateX(-28px) scale(.85); } to { opacity: 1; transform: none; } }
.kp-glass.kp-spot-btn.is-open { width: 48px; padding: 0; justify-content: center; background: linear-gradient(160deg, rgba(27,8,24,.85), rgba(57,19,50,.7)); border-color: var(--gold); color: var(--gold); }
.kp-glass.kp-spot-btn.is-open span { font-size: 1.2rem; filter: none; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .kp-spots > * { animation: none; } }
.kp-spots[hidden] { display: none; }
.kp-spots > * { pointer-events: auto; }
@media (max-width: 700px) {
  .kp-3d-go { flex-wrap: wrap; }
  .kp-glass.kp-spot-btn.is-open { width: 42px; }
  .kp-spots { order: -1; flex-basis: 100%; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(27,8,24,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .kp-glass.kp-spot-btn b { font-size: .82rem; }
}
/* dialog kantor & rumah RT */
.civic-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.civic-acts .btn { width: 100%; justify-content: center; text-align: center; margin: 0; white-space: normal; }
.civic-sched, .civic-tips, .civic-bins { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.civic-sched li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 12px; background: var(--ink); border: 2px solid var(--line-soft); }
.civic-sched li span { color: var(--muted); font-size: .85rem; }
.civic-sched li em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.civic-sched li.now { border-color: var(--gold); }
.civic-tips li { font-size: .88rem; color: var(--cream); line-height: 1.4; }
.civic-ok { margin: 4px 0 8px; font-size: .9rem; }
.civic-bins li { display: grid; grid-template-columns: 18px auto 1fr; gap: 10px; align-items: center; font-size: .88rem; }
.civic-bins i { width: 18px; height: 22px; border-radius: 4px 4px 6px 6px; border: 2px solid var(--ink-2); }
.civic-bins small { color: var(--muted); }
.rt-warga li small { margin-left: auto; color: var(--muted); }

/* ---------- tahap 51: kartu link toko di Komplek lebih rapi ---------- */
.kp-aside .niaga-links { gap: 8px; margin: 0; padding: 12px; border-radius: 22px; background: var(--panel); border: 2px solid var(--line-soft); }
.niaga-links .tugas-banner { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink-2); min-height: 66px; --nc: #FFBE98; background: var(--nc); }
.niaga-links .tugas-banner:nth-child(2) { --nc: #A9EDC8; }
.niaga-links .tugas-banner:nth-child(3) { --nc: #FFD78A; }
.niaga-links .tugas-banner:nth-child(4) { --nc: #F7A9B6; }
.niaga-links .tugas-banner:nth-child(5) { --nc: #C8B6FF; }
.niaga-links .tugas-banner > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.55); border: 2px solid var(--ink-2); font-size: 1.45rem; }
.niaga-links .tugas-banner > div { min-width: 0; }
.niaga-links .tugas-banner b { display: block; font-size: .95rem; line-height: 1.2; }
.niaga-links .tugas-banner small { font-size: .8rem; line-height: 1.3; margin-top: 2px; }
.niaga-links .tugas-banner::after { content: "›"; font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--ink); opacity: .55; transition: transform var(--motion-fast); }
.niaga-links .tugas-banner:hover::after, .niaga-links .tugas-banner:focus-visible::after { transform: translateX(3px); opacity: 1; }
.niaga-links .tugas-banner:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* ---------- tahap 51: photobooth jeda & efek cetak ---------- */
.pb-ask { margin: 4px 0 2px !important; color: var(--cream) !important; font-size: .92rem; }
.pb-stage.is-snap { box-shadow: 0 0 0 3px var(--gold); }
.pb-stage.is-snap canvas { animation: pb-snap .45s ease-out; }
@keyframes pb-snap { from { filter: brightness(2.2); transform: scale(1.03); } to { filter: none; transform: none; } }
.pb-print { display: grid; justify-items: center; margin-bottom: 8px; }
.pb-printer { position: relative; z-index: 2; width: min(100%, 330px); height: 46px; border-radius: 14px 14px 8px 8px; background: linear-gradient(#5A2A50, #2A0F27); border: 2px solid var(--ink-2); box-shadow: 0 6px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); font: 800 .7rem/1 var(--mono); letter-spacing: .12em; }
.pb-printer::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 6px; border-radius: 4px; background: #0D0410; box-shadow: inset 0 2px 3px rgba(0,0,0,.8); }
.pb-printer i { width: 10px; height: 10px; border-radius: 50%; background: #FF6259; }
.pb-printer i.led { background: #7CFF8A; box-shadow: 0 0 8px #7CFF8A; animation: pb-pulse .35s ease-in-out 8 alternate; }
.pb-printer.is-busy i.led { animation: pb-pulse .35s ease-in-out infinite alternate; }
.pb-paper { width: min(100% - 40px, 300px); margin-top: -10px; overflow: hidden; border-radius: 0 0 12px 12px; }
.pb-paper img { display: block; width: 100%; aspect-ratio: 9 / 16; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: pb-print 2.6s cubic-bezier(.3,.1,.4,1) both; }
@keyframes pb-print {
  0% { transform: translateY(-100%); filter: brightness(1.6) saturate(.2); }
  10% { transform: translateY(-92%); } 20% { transform: translateY(-80%); } 30% { transform: translateY(-69%); }
  40% { transform: translateY(-57%); } 50% { transform: translateY(-46%); } 60% { transform: translateY(-35%); }
  70% { transform: translateY(-24%); filter: brightness(1.15) saturate(.8); } 80% { transform: translateY(-13%); }
  90% { transform: translateY(-4%); } 96% { transform: translateY(1.5%) rotate(-.6deg); } 100% { transform: none; filter: none; }
}
.pb-after { width: 100%; animation: pb-after .4s ease 2.5s both; }
@keyframes pb-after { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pb-paper img, .pb-after, .pb-stage.is-snap canvas { animation: none; } }
/* tahap 52: spot penting bergeser ke kanan dalam satu baris (bisa digeser kalau tidak muat) */
.kp-3d-go { flex-wrap: nowrap; }
.kp-spots { flex: 1 1 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 44px 4px 4px; margin: -44px 0 -4px; pointer-events: none; scroll-snap-type: x proximity; }
.kp-spots::-webkit-scrollbar { display: none; }
.kp-spots > * { scroll-snap-align: start; }
@media (max-width: 700px) {
  .kp-3d-go { flex-wrap: wrap; }
  .kp-spots { flex: 0 0 100%; order: -1; padding: 6px; margin: 0; pointer-events: auto; }
}

/* =========================================================
   Tahap 55: tombol lebih seimbang
   ========================================================= */
/* grup tombol yang membungkus ke baris baru: tiap baris terisi penuh, tidak menggantung di kiri */
.sma-actions > .btn, .room-actions > .btn, .moment-actions > .btn, .dp-actions > .btn, .pn-btns > .btn,
.sm-claim-btns > .btn, .ws-acts > .btn, .temu-btns > .btn, .wait-btns > .btn, .pb-btns > .btn, .final-actions > .btn, .sn-actions > .btn {
  flex: 1 1 auto; justify-content: center; text-align: center;
}
/* kartu Aset kami (rumah & kendaraan): tombol utama selebar penuh, sisanya 2 kolom rata */
.aset-sec .sma-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aset-sec .sma-actions > * { min-width: 0; width: 100%; white-space: normal; }
.aset-sec .sma-actions > .btn:not(.btn-ghost), .aset-sec .sma-actions > .pr-tag { grid-column: 1 / -1; }
/* jumlah tombol ganjil → tombol terakhir ikut selebar penuh supaya tidak ada yang menggantung */
.aset-sec .sma-actions:has(> .btn:not(.btn-ghost):first-child) > .btn-ghost:last-child:nth-child(even),
.aset-sec .sma-actions:not(:has(> :not(.btn-ghost))) > .btn-ghost:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
/* tepat 2 tombol → berdampingan */
.aset-sec .sma-actions:has(> :nth-child(2):last-child) > * { grid-column: auto !important; }
@media (max-width: 360px) { .aset-sec .sma-actions { grid-template-columns: 1fr; } }
/* tahap 56: pop-up rumah sendiri */
.aset-sec.ri-own { margin-top: 10px; padding: 0; background: none; border: 0; }
.ri-photo-bar { margin-top: 8px; }
@media (max-width: 560px) {
  .ri-photo-bar span { flex: 1 1 100%; }
  .ri-photo-bar > .btn, .ri-photo-bar > label.btn { flex: 1 1 0; justify-content: center; }
}

/* ---------- tahap 56: kenyamanan mobile ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, summary, label, [role="button"], .btn { -webkit-tap-highlight-color: rgba(255, 215, 138, .18); touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1em); }
@media (max-width: 560px) {
  /* tombol utama kartu toko/showroom selebar kartu, lebih mudah diketuk */
  .sr-item .btn, .sm-card .btn { width: 100%; justify-content: center; }
  /* jendela dialog tidak melewati tinggi layar & bisa digulir */
  .kp-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); overscroll-behavior: contain; }
}

/* ---------- tahap 57: foto bingkai, pemberitahuan chat 3 hari ---------- */
.chat-ttl { margin: 0 0 10px; padding: 7px 12px; border-radius: 12px; border: 2px dashed var(--line-soft); background: var(--ink); color: var(--muted); font-size: .8rem; line-height: 1.45; }
.chat-ttl b { color: var(--gold); }

/* tahap 59: kamera & suara pasangan di photobooth berdua */
.pb-peer { position: absolute; top: 8px; right: 8px; width: 30%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #2b1028; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); z-index: 3; display: grid; place-items: center; }
.pb-peer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-peer-wait { font-size: .68rem; color: #FFF0CD; text-align: center; padding: 6px; line-height: 1.3; }
.pb-peer-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: .68rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-callbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.pb-callbar small { flex: 1 1 100%; font-size: .74rem; opacity: .8; }
.pb-cb { border: 2px solid var(--line-soft); background: var(--plum); color: inherit; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .8rem; cursor: pointer; }
.pb-cb.on { border-color: var(--pink, #F7A9B6); background: rgba(247,169,182,.18); }
.pb-cb:disabled { opacity: .55; cursor: default; }
.pb-result-call { display: flex; gap: 10px; align-items: center; margin: 4px 0 10px; }
.pb-result-call .pb-peer { position: relative; top: auto; right: auto; width: 96px; flex: none; }
.pb-result-call .pb-callbar { flex: 1; margin: 0; }

/* ---------- tahap 59: Kantor Pos, Toko Kado, BUMK ---------- */
.gift-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line-soft); background: linear-gradient(120deg, #FFE3EC, #FFF0CD); color: #391332; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 3px 0 rgba(57,19,50,.18); }
.gift-banner > span { font-size: 2rem; }
.gift-banner div { flex: 1; display: grid; gap: 2px; }
.gift-banner small { opacity: .8; font-size: .78rem; }
.gift-banner i { font-style: normal; font-size: 1.6rem; opacity: .6; }
.gift-banner:hover { transform: translateY(-1px); }
.pos-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.pos-tabs button { flex: 1 1 auto; border: 2px solid var(--line-soft); background: transparent; color: inherit; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.pos-tabs button[aria-selected="true"] { background: var(--coral, #FF6259); border-color: var(--coral, #FF6259); color: #fff; }
.pos-tabs i { font-style: normal; background: #FFD78A; color: #391332; border-radius: 999px; padding: 0 6px; font-size: .72rem; margin-left: 2px; }
.pos-themes { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.pos-themes button { border: 2px solid transparent; background: var(--pbg); color: var(--pink-ink); border-radius: 12px; padding: 6px 10px; font: inherit; font-size: .8rem; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.pos-themes button[aria-checked="true"] { border-color: var(--pink-ink); box-shadow: 0 0 0 2px var(--pbg); }
.pos-paper { position: relative; background: var(--pbg); color: var(--pink-ink); border-radius: 14px; padding: 18px 18px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); background-image: repeating-linear-gradient(transparent 0 31px, var(--pline) 31px 32px); background-position: 0 58px; font-family: Georgia, "Times New Roman", serif; }
.pos-paper textarea { width: 100%; min-height: 190px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.02rem; line-height: 32px; resize: vertical; outline: none; padding: 0; }
.pos-paper textarea::placeholder { color: inherit; opacity: .45; }
.pos-paper:focus-within { box-shadow: 0 0 0 3px var(--pline), 0 6px 18px rgba(0,0,0,.18); }
.pos-stamp { position: absolute; top: 10px; right: 12px; font-size: 1.9rem; transform: rotate(8deg); border: 2px dashed currentColor; border-radius: 6px; padding: 2px 4px; opacity: .85; }
.pos-to { font-style: italic; margin: 0 0 6px !important; font-size: 1.02rem; }
.pos-from { text-align: right; font-style: italic; margin: 6px 0 0 !important; }
.pos-from small { font-style: normal; font-family: var(--font, system-ui); opacity: .6; font-size: .72rem; margin-left: 6px; }
.pos-text { line-height: 32px; font-size: 1.02rem; white-space: normal; overflow-wrap: anywhere; min-height: 96px; }
.pos-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.pos-acts small { opacity: .75; }
.pos-bumk { font-size: .76rem; opacity: .8; margin: 10px 0 0 !important; padding: 8px 10px; border-radius: 10px; background: rgba(255,215,138,.18); border: 1px dashed var(--line-soft); }
.pos-sent { text-align: center; padding: 8px 0; }
.pos-sent .pos-acts { justify-content: center; }
.pos-fly { font-size: 4rem; animation: pos-fly 1.4s ease-out both; }
.pos-fly.truck { animation-name: pos-truck; }
@keyframes pos-fly { 0% { transform: translate(-60px, 30px) rotate(-20deg) scale(.6); opacity: 0; } 60% { transform: translate(10px, -10px) rotate(8deg) scale(1.1); opacity: 1; } 100% { transform: none; } }
@keyframes pos-truck { 0% { transform: translateX(-140px); opacity: 0; } 70% { transform: translateX(12px); opacity: 1; } 100% { transform: none; } }
.pos-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.pos-list button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 9px 11px; border-radius: 12px; border: 2px solid var(--line-soft); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pos-list button > span { font-size: 1.5rem; }
.pos-list button div { flex: 1; min-width: 0; display: grid; }
.pos-list button small { opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-list button em { font-style: normal; font-size: .7rem; opacity: .6; white-space: nowrap; }
.pos-list li.new button { border-color: var(--coral, #FF6259); background: rgba(255,98,89,.08); }
.pos-list li.new b::after { content: " · baru"; color: var(--coral, #FF6259); font-size: .75rem; }
.pos-unbox { position: relative; text-align: center; overflow: hidden; padding: 6px 0; }
.pos-box { position: relative; width: 110px; height: 96px; margin: 4px auto 10px; }
.pos-box .body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 64px; background: #FF6259; border-radius: 6px; }
.pos-box .lid { position: absolute; left: 0; right: 0; top: 14px; height: 22px; background: #E04848; border-radius: 6px; z-index: 1; }
.pos-box span { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-size: 2rem; z-index: 2; }
.pos-unbox.fresh .lid { animation: pos-lid .9s .2s ease-out both; }
.pos-unbox.fresh .pos-box span { animation: pos-lid .9s .2s ease-out both; }
.pos-unbox.fresh .pos-items li { animation: pos-pop .5s ease-out both; }
.pos-unbox.fresh .pos-items li:nth-child(2) { animation-delay: .1s; } .pos-unbox.fresh .pos-items li:nth-child(3) { animation-delay: .2s; } .pos-unbox.fresh .pos-items li:nth-child(n+4) { animation-delay: .3s; }
@keyframes pos-lid { to { transform: translate(-10px, -60px) rotate(-25deg); opacity: 0; } }
@keyframes pos-pop { from { transform: scale(.3) translateY(30px); opacity: 0; } }
.pos-items { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pos-items li { display: grid; justify-items: center; gap: 2px; width: 104px; padding: 10px 6px; border-radius: 14px; background: rgba(247,169,182,.18); border: 2px solid var(--line-soft); }
.pos-items li span { font-size: 2.4rem; }
.pos-items li b { font-size: .76rem; line-height: 1.2; }
.pos-items li em { font-style: normal; font-size: .75rem; opacity: .7; }
.pos-note { margin: 6px auto; max-width: 420px; font-style: italic; font-family: Georgia, serif; }
.pos-conf { position: absolute; top: 40%; width: 8px; height: 12px; border-radius: 2px; animation: pos-conf 1.6s ease-out forwards; pointer-events: none; }
@keyframes pos-conf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 220px) rotate(540deg); opacity: 0; } }
.gift-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.gift-grid li { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 10px 8px; border-radius: 14px; border: 2px solid var(--line-soft); }
.gift-grid li.on { border-color: var(--coral, #FF6259); background: rgba(255,98,89,.08); }
.gift-ic { font-size: 2.3rem; line-height: 1.1; }
.gift-grid b { font-size: .8rem; line-height: 1.2; }
.gift-grid small { font-size: .76rem; opacity: .85; display: inline-flex; align-items: center; gap: 3px; }
.gift-qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.gift-qty button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-soft); background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.gift-qty button:disabled { opacity: .35; cursor: default; }
.gift-qty output { min-width: 14px; font-weight: 800; }
.gift-sum { position: sticky; bottom: -2px; padding: 10px 12px; border-radius: 14px; background: var(--plum); border: 2px solid var(--line-soft); box-shadow: 0 -6px 16px rgba(0,0,0,.08); display: grid; gap: 4px; }
.gift-sum p { margin: 0 !important; font-size: .86rem; }
.gift-sum small { opacity: .7; }
.gift-total { font-size: 1rem !important; }
.gift-sum .input { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .pos-fly, .pos-unbox .lid, .pos-unbox .pos-box span, .pos-items li, .pos-conf { animation: none !important; } }

/* ---------- tahap 58: Juragan Rindu ---------- */
.jr-temu-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--muted); font-size: .85rem; }
.jr-temu-note b { color: var(--gold); }
.jr-pions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jr-pions .variant-opt span { font-size: 2rem; }
.jr-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 14px; }
.jr-stage { position: relative; border-radius: 26px; overflow: hidden; border: 3px solid var(--line); box-shadow: var(--hard-lg);
  background: radial-gradient(circle at 50% 35%, #5A1E4C, #2A0C26 75%); }
.jr-board { position: relative; width: 100%; aspect-ratio: 1 / .92; min-height: 320px; }
.jr-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.jr-no3d { padding: 60px 20px; text-align: center; color: var(--muted); }
.jr-hud { position: absolute; z-index: 3; inset: 10px 10px auto 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none; }
.jr-hud > span { padding: 5px 11px; border-radius: 999px; background: rgba(27,8,24,.78); border: 2px solid var(--line-soft); color: var(--cream); font-weight: 800; font-size: .85rem; backdrop-filter: blur(4px); }
.jr-turn.mine { background: var(--gold); color: var(--ink); border-color: var(--ink-2); animation: jrPulse 1.4s ease-in-out infinite; }
.jr-time { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.jr-time.low { background: var(--coral) !important; }
@keyframes jrPulse { 50% { transform: scale(1.05); } }
.jr-act { position: absolute; z-index: 4; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 24px)); }
.jr-act:has(.mini) { width: min(300px, 62%); top: 60%; }
.jr-act[hidden] { display: none; }
.jr-card { padding: 14px; border-radius: 20px; border: 3px solid var(--ink-2); background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink-2), 0 16px 30px rgba(0,0,0,.35); animation: pop .3s cubic-bezier(.3,1.5,.5,1); max-height: 70vh; overflow-y: auto; }
.jr-card.mini { padding: 10px; }
.jr-card-h { display: flex; gap: 10px; align-items: center; font-size: 1.8rem; line-height: 1; }
.jr-card-h b { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.jr-card-h small { display: block; margin-top: 3px; font-size: .8rem; color: #6B3A5C; line-height: 1.3; }
.jr-q { margin: 10px 0 8px; font-weight: 700; font-size: 1.02rem; line-height: 1.45; }
.jr-req { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: #FFE1EA; }
.jr-line { margin: 8px 0; color: #6B3A5C; font-size: .9rem; }
.jr-tip { display: block; margin: 6px 0; color: #6B3A5C; font-size: .82rem; text-align: center; }
.jr-wait { margin: 6px 0 2px; text-align: center; font-weight: 700; color: #6B3A5C; }
.jr-card.mini .jr-wait { margin: 4px 0; }
.jr-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.jr-btns.col { grid-template-columns: 1fr; }
.jr-card .btn-ghost { color: var(--ink); border-color: var(--ink-2); }
.jr-roll { font-size: 1.15rem; min-height: 52px; }
.jr-photo { position: relative; margin: -14px -14px 10px; height: 140px; background: var(--c, #ddd); overflow: hidden; border-radius: 16px 16px 0 0; }
.jr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr-photo.noimg img { display: none; }
.jr-photo span { position: absolute; left: 10px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--c); color: var(--ink); font-size: .72rem; font-weight: 800; border: 2px solid var(--ink-2); }
.jr-ask label { display: block; margin: 4px 0 6px; font-weight: 700; font-size: .88rem; }
.jr-ask > div { display: flex; gap: 6px; }
.jr-ask .input { flex: 1; min-width: 0; }
.jr-float { position: absolute; z-index: 5; left: 50%; top: 42%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 1.3rem; border: 3px solid var(--ink-2); pointer-events: none; animation: jrFloat 1.8s ease forwards; }
.jr-float.them { background: var(--pink); }
@keyframes jrFloat { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50px); } }
.jr-side { display: grid; gap: 12px; }
.jr-players { display: grid; gap: 8px; }
.jr-player { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--plum); transition: border-color .2s, box-shadow .2s; }
.jr-player.c-host { --pc: #FF6FA8; } .jr-player.c-guest { --pc: #5FB4FF; }
.jr-player { border-left: 6px solid var(--pc); }
.jr-player.turn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,138,.25); border-left-color: var(--pc); }
.jr-pion { font-size: 1.8rem; }
.jr-player > div:nth-child(2) { flex: 1; min-width: 0; }
.jr-player b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-player small { color: var(--muted); font-size: .76rem; }
.jr-cash { text-align: right; }
.jr-cash b { color: var(--gold); font-variant-numeric: tabular-nums; }
.jr-chat-card { padding-bottom: 12px; }
.jr-chat-toggle { display: none; }
.jr-chat { list-style: none; margin: 4px 0 8px; padding: 0; height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.jr-chat li { max-width: 86%; padding: 6px 10px; border-radius: 14px 14px 14px 4px; background: var(--ink); font-size: .88rem; }
.jr-chat li.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #5A2A55; }
.jr-chat li.empty { max-width: none; background: none; color: var(--muted); text-align: center; font-size: .82rem; }
.jr-chat li b { display: block; font-size: .72rem; color: var(--gold); }
.jr-chat li p { margin: 1px 0; overflow-wrap: anywhere; }
.jr-chat li time { font-size: .65rem; color: var(--muted); }
.jr-quick { display: flex; gap: 6px; margin-bottom: 8px; }
.jr-quick button { flex: 1; min-height: 36px; border-radius: 12px; border: 2px solid var(--line-soft); background: transparent; font-size: 1.1rem; cursor: pointer; }
.jr-quick button:hover { border-color: var(--gold); }
.jr-chat-form { display: flex; gap: 6px; }
.jr-chat-form .input { flex: 1; min-width: 0; }
.jr-chat-card .chat-ttl { margin: 8px 0 0; font-size: .72rem; }
.jr-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.jr-log li.new { color: var(--cream); font-weight: 700; }
.jr-assets h3 { margin: 6px 0; font-size: .9rem; }
.jr-assets ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.jr-assets li { display: flex; align-items: center; gap: 6px; }
.jr-assets li.empty { color: var(--muted); font-size: .8rem; }
.jr-asset { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 2px solid var(--line-soft); border-left: 6px solid var(--c); background: var(--ink); color: var(--cream); font: inherit; text-align: left; cursor: pointer; }
.jr-asset i { font-style: normal; font-size: 1.2rem; }
.jr-asset span { min-width: 0; }
.jr-asset b { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-asset small { color: var(--muted); font-size: .7rem; }
.jr-assets .btn-sm { flex: none; padding-inline: 10px; font-size: .78rem; }
.jr-giveup { justify-self: end; }
.jr-final .final-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; margin: 14px auto; }
.jr-credit-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: .78rem; }
.jr-tile-dlg .jr-photo { margin: -18px -18px 12px; height: 190px; border-radius: 0; }
.jr-tile-dlg h2 { margin: 4px 0; }
.jr-rent { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .85rem; }
.jr-rent th, .jr-rent td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.jr-rent small { color: var(--muted); font-size: .7rem; }
.jr-ask-q { padding: 8px 10px; border-radius: 12px; background: var(--ink); font-size: .88rem; }
.jr-owner { padding: 6px 10px; border-radius: 10px; background: var(--ink); border-left: 5px solid #FF6FA8; }
.jr-owner.c-guest { border-left-color: #5FB4FF; }
.jr-credit { color: var(--muted); font-size: .74rem; }
@media (max-width: 900px) {
  .jr-grid { grid-template-columns: 1fr; gap: 12px; }
  .jr-stage { margin-inline: -6px; border-radius: 20px; }
  .jr-board { aspect-ratio: 1 / 1.05; min-height: 0; }
  .jr-players { grid-template-columns: 1fr 1fr; }
  .jr-player { flex-wrap: wrap; gap: 4px 8px; padding: 8px 10px; }
  .jr-pion { font-size: 1.4rem; }
  .jr-cash { flex-basis: 100%; text-align: left; }
  .jr-cash small { display: none; }
  .jr-chat-card { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; margin: 0; max-height: 70dvh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
  .jr-chat-card .win-title { display: none; }
  .jr-chat-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin: -6px -6px 6px; border-radius: 14px; border: 0; background: var(--gold); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
  .jr-chat-toggle i { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .75rem; }
  .jr-chat { height: auto; flex: 1; min-height: 140px; max-height: 40dvh; }
  .jr-chat-card.closed { left: auto; width: auto; padding: 6px !important; border-radius: 999px; }
  .jr-chat-card.closed::before, .jr-chat-card.closed::after { display: none !important; }
  .jr-card.mini .jr-tip { display: none; }
  .jr-chat-card.closed > :not(.jr-chat-toggle) { display: none; }
  .jr-chat-card.closed .jr-chat-toggle { margin: 0; padding: 0 16px; border-radius: 999px; }
  .juragan { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .jr-hud > span { font-size: .75rem; padding: 4px 9px; }
  .jr-act { width: calc(100% - 16px); }
  .jr-act:has(.mini) { width: min(260px, 70%); top: 62%; }
  .jr-card { padding: 12px; max-height: 62vh; }
  .jr-photo { height: 100px; margin: -12px -12px 8px; }
  .jr-card-h { font-size: 1.5rem; }
  .jr-card-h b { font-size: 1.02rem; }
  .jr-q { font-size: .95rem; }
  .jr-btns { grid-template-columns: 1fr 1fr; }
  .jr-btns.col { grid-template-columns: 1fr; }
  .jr-pions .variant-opt { padding: 10px 6px; }
}
.credit-photo-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.credit-photo-list b { color: var(--cream); }

/* tahap 59: Juragan Rindu revisi */
.jr-pions { display: block !important; }
.jr-pion-sex { margin: 6px 0 4px !important; font-weight: 800; font-size: .85rem; opacity: .85; }
.jr-pion-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.jr-pion-opt { padding: 6px 4px !important; min-width: 0; display: grid !important; justify-items: center; gap: 2px; }
.jr-pion-opt img { width: 60px; height: 70px; object-fit: contain; }
.jr-pion-opt b { font-size: .72rem; line-height: 1.15; text-align: center; }
.jr-pion-opt > span { font-size: 1.9rem; }
@media (max-width: 520px) { .jr-pion-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jr-mic-need { margin: 10px 0 !important; padding: 9px 12px; border-radius: 12px; background: rgba(255,215,138,.15); border: 2px dashed var(--gold); font-size: .85rem; }
.jr-mic-warn { position: absolute; z-index: 5; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(27,8,24,.88); color: var(--cream); border: 2px solid var(--coral); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.jr-mic-warn[hidden] { display: none; }
.jr-meter { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 34px; margin: 0 0 8px; border-radius: 12px; overflow: hidden; border: 2px solid var(--ink-2); background: linear-gradient(90deg, #BFE6C8 0 33.3%, #FFE7A8 33.3% 66.6%, #FFB3A8 66.6%); }
.jr-meter span { position: relative; z-index: 1; display: grid; place-content: center; text-align: center; font-size: .68rem; font-weight: 800; line-height: 1.05; color: var(--ink); }
.jr-meter span small { font-weight: 600; opacity: .75; }
.jr-meter span + span { border-left: 2px dashed rgba(27,8,24,.35); }
#jr-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(57,19,50,.28); border-right: 4px solid var(--ink-2); z-index: 0; }
#jr-meter-fill[data-lv="3"] { background: rgba(255,98,89,.35); }
.jr-roll { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.jr-stage.shaking .jr-roll { animation: jrShake .12s linear infinite; }
@keyframes jrShake { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-2px) rotate(-1deg); } 75% { transform: translateX(2px) rotate(1deg); } }
.jr-mini-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.jr-mini-acts:empty { display: none; }
.jr-mini-acts button { border: 2px solid var(--ink-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; }
.jr-sell-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; max-height: 160px; overflow-y: auto; }
.jr-sell-list li { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .82rem; }
.jr-steps { margin: 0 0 10px !important; padding: 8px 12px; border-radius: 12px; background: rgba(255,215,138,.18); border: 2px solid var(--gold); font-size: .9rem; }
.jr-steps small { display: block; opacity: .75; font-size: .76rem; margin-top: 2px; }
.jr-rebut-info { font-size: .85rem; }
.jr-loan { display: block; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--gold); }
.jr-spot { position: absolute; z-index: 4; left: 50%; top: 48px; transform: translateX(-50%); width: min(58%, 400px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #1B0818; border: 4px solid var(--gold); box-shadow: 0 0 0 4px var(--ink-2), 0 0 30px rgba(255,215,138,.55); animation: pop .3s cubic-bezier(.3,1.5,.5,1); }
.jr-spot[hidden] { display: none; }
.jr-spot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr-spot.me video { transform: scaleX(-1); }
.jr-spot.me { width: min(34%, 220px); left: auto; right: 10px; transform: none; border-color: var(--pink); }
.jr-spot-off { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; color: var(--cream); font-size: .85rem; pointer-events: none; }
.jr-spot-off:empty { display: none; }
.jr-spot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: .8rem; animation: jrBlink 1.4s ease-in-out infinite; }
@keyframes jrBlink { 50% { opacity: .65; } }
.jr-stage.spot-on .jr-act { top: auto; bottom: 10px; transform: translateX(-50%); }
.jr-stage.spot-on .jr-act .jr-card { max-height: 42vh; }
.k-debt .jr-btns .btn { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .jr-stage.shaking .jr-roll, .jr-spot-cap { animation: none; } }
@media (max-width: 600px) {
  .jr-spot { width: 46%; top: 42px; border-width: 3px; }
  .jr-spot.me { width: 32%; }
  .jr-spot-cap { font-size: .68rem; padding: 4px 6px; }
  .jr-stage.spot-on .jr-act { width: calc(100% - 16px); bottom: 6px; }
  .jr-stage.spot-on .jr-act .jr-card { max-height: 175px; padding: 10px; }
}

/* ===== Tahap 60: jeda game 1 menit ===== */
.jk-pause { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(27,8,24,.78); backdrop-filter: blur(4px); animation: jkPauseIn var(--motion-enter) var(--ease); }
@keyframes jkPauseIn { from { opacity: 0; } to { opacity: 1; } }
.jk-pause-card { width: min(380px, 100%); text-align: center; padding: 26px 22px 22px; border-radius: var(--radius-card); background: var(--plum); border: 2px solid var(--line); box-shadow: var(--hard-lg); color: var(--cream); }
.jk-pause-ico { font-size: 44px; line-height: 1; animation: jkPausePulse 1.6s ease-in-out infinite; }
@keyframes jkPausePulse { 50% { transform: scale(1.12); } }
.jk-pause-card h2 { font-family: var(--display); margin: 8px 0 6px; font-size: 26px; }
.jk-pause-card p { color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.jk-pause-num { font: 700 44px/1 var(--mono); color: var(--gold); letter-spacing: 1px; }
.jk-pause.low .jk-pause-num { color: var(--coral); }
.jk-pause-bar { display: block; height: 8px; margin: 12px 0 10px; border-radius: 99px; background: var(--ink-2); overflow: hidden; }
.jk-pause-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .25s linear; }
.jk-pause-card small { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .jk-pause, .jk-pause-ico { animation: none; } }

/* ===== Tahap 60: Juragan Rindu ===== */
.jr-main { display: grid; gap: 12px; min-width: 0; }
.jr-main .jr-giveup { justify-self: end; }
.jr-player[role="button"] { cursor: pointer; transition: transform var(--motion-fast) var(--ease); }
.jr-player[role="button"]:hover { transform: translateY(-2px); }
.jr-player[role="button"]:focus-visible { outline: var(--focus); outline-offset: 3px; }
.jr-player.cash-in { animation: jrCashIn .7s var(--ease); }
.jr-player.cash-out { animation: jrCashOut .7s var(--ease); }
@keyframes jrCashIn { 30% { box-shadow: 0 0 0 3px #7BE0A8; } }
@keyframes jrCashOut { 30% { box-shadow: 0 0 0 3px var(--coral); } }
.jr-money { position: fixed; z-index: 8000; transform: translate(-50%, 0); pointer-events: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font: 700 14px/1.2 var(--body); white-space: nowrap; border: 2px solid var(--ink-2); box-shadow: 0 3px 0 var(--ink-2); animation: jrMoney 1.6s var(--ease) forwards; }
.jr-money i { font-style: normal; font-size: 18px; }
.jr-money.in { background: #BFF2D3; color: #0E4A2A; }
.jr-money.out { background: #FFC9C4; color: #6A1418; animation-name: jrMoneyOut; }
@keyframes jrMoney { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
@keyframes jrMoneyOut { 0% { opacity: 0; transform: translate(-50%, -16px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 34px) scale(1); } }
.jr-luck { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: .85rem; }
.jr-luck > span { color: var(--cream); }
.jr-luck button { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 11px; font: 600 .8rem var(--body); cursor: pointer; border: 2px solid var(--line); background: var(--panel); color: var(--cream); }
.jr-luck .jr-luck-use[aria-pressed="true"] { background: #BFF2D3; color: #0E4A2A; border-color: #0E4A2A; }
.jr-luck .jr-luck-buy { background: var(--gold); color: var(--ink); border-color: var(--ink-2); }
.jr-luck button:disabled { opacity: .6; cursor: wait; }
.jr-pa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.jr-pa-pion { width: 60px; height: 70px; display: grid; place-items: center; font-size: 40px; border-radius: 16px; background: var(--panel); flex: none; }
.jr-pa-pion img { width: 60px; height: 70px; object-fit: contain; }
.jr-pa-head h2 { margin: 0; }
.jr-pa-head small { color: var(--muted); }
.jr-pa-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.jr-pa-stats div { background: var(--panel); border-radius: 14px; padding: 9px 10px; display: grid; gap: 2px; }
.jr-pa-stats b { font-size: 1.05rem; color: var(--gold); }
.jr-pa-stats .debt b { color: var(--coral); }
.jr-pa-stats small { color: var(--muted); font-size: .75rem; }
.jr-pa-h { margin: 4px 0 6px; font-size: .95rem; }
.jr-pa-scroll { overflow-x: auto; }
.jr-pa-table td, .jr-pa-table th { white-space: nowrap; }
.jr-pa-tile { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline dotted; }
.jr-pa-tile i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
@media (prefers-reduced-motion: reduce) { .jr-money, .jr-player.cash-in, .jr-player.cash-out { animation-duration: .01s; } }
/* tahap 60: simpan & jual kado */
.pos-keep { margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 2px dashed var(--line-soft); display: grid; gap: 8px; }
.pos-keep p { margin: 0; font-size: .9rem; line-height: 1.45; }
.pos-keep .btn { justify-self: start; }
.pos-keep.stored { border-style: solid; border-color: var(--line); }
.pos-sell { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pos-sell li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--plum); }
.pos-sell li > span { font-size: 1.8rem; flex: none; }
.pos-sell li div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pos-sell li small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.pos-sell li .btn { flex: none; }

/* ===== Tahap 61: pop-up hasil game di depan papan ===== */
.game-page > .final-card.jk-result:not([hidden]) {
  position: fixed; z-index: 7000; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  margin: 0; box-shadow: 0 0 0 100vmax rgba(27,8,24,.72), var(--hard-lg);
  animation: jkResultIn var(--motion-enter) var(--ease);
}
.game-page > .final-card.jk-result.jk-min { display: none; }
@keyframes jkResultIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
body.jk-result-open { overflow: hidden; }
.jk-result-x { position: sticky; top: 0; float: right; z-index: 2; width: 40px; height: 40px; margin: -4px -4px 0 8px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--cream); font: 700 18px/1 var(--body); cursor: pointer; }
.jk-result-x:hover { background: var(--panel-2); }
.jk-result-x:focus-visible { outline: var(--focus); outline-offset: 2px; }
.jk-result-reopen { position: fixed; z-index: 6900; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); box-shadow: var(--hard); }
@media (max-width: 560px) {
  .game-page > .final-card.jk-result:not([hidden]) { top: auto; bottom: 8px; transform: translateX(-50%); max-height: calc(100dvh - 24px); width: calc(100vw - 16px); animation-name: jkResultUp; }
  @keyframes jkResultUp { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
}
@media (prefers-reduced-motion: reduce) { .game-page > .final-card.jk-result:not([hidden]) { animation: none; } }
/* tahap 61: tombol cairkan dana Juragan */
.jr-cair { display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 4px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--ink-2); background: var(--gold); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--ink-2); font: inherit; }
.jr-cair span { display: grid; gap: 2px; }
.jr-cair small { font-size: .75rem; opacity: .8; }
.jr-cair:disabled { opacity: .6; cursor: wait; }
/* tahap 61: hadiah leaderboard */
.lb-prize-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lb-prize-cols h3 { margin: 0 0 6px; font-size: .9rem; color: var(--gold); }
.lb-prize-cols ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.lb-prize-cols li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--panel); font-size: .85rem; }
.lb-prize-h { margin: 14px 0 6px; font-size: .95rem; }
.lb-hof li.mine b { color: var(--gold); }
