:root {
  --ink: #172b17;
  --forest: #254025;
  --sage: #6d8f6d;
  --moss: #9bb552;
  --mint: #cdfab1;
  --cream: #fefaee;
  --line: rgba(23, 43, 23, .14);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: var(--body); background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.logo { width: 44px; height: 44px; object-fit: contain; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 0; border-radius: 999px; padding: .95rem 1.6rem; font-weight: 700; letter-spacing: .01em;
  background: var(--ink); color: var(--mint);
  transition: transform .25s var(--ease), background .25s, color .25s, opacity .25s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); background: var(--forest); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.btn.lime { background: var(--moss); color: var(--ink); }
.btn.lime:hover:not(:disabled) { background: var(--mint); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--ink); color: var(--mint);
  font-size: .9rem; display: none;
}
.error.show { display: block; animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* =========================================================
   VOTER
   ========================================================= */

/* intro: anak tangga naik lalu tirai terangkat */
.intro {
  position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; overflow: hidden;
  animation: liftOff .9s var(--ease) 2.5s forwards;
}
.intro-steps { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; height: 70vh; }
.intro-steps span { flex: 1; transform: scaleY(0); transform-origin: bottom; animation: rise .9s var(--ease) forwards; }
.intro-steps span:nth-child(1) { height: 18%; background: var(--forest); animation-delay: .1s; }
.intro-steps span:nth-child(2) { height: 34%; background: var(--forest); animation-delay: .2s; }
.intro-steps span:nth-child(3) { height: 50%; background: var(--sage); animation-delay: .3s; }
.intro-steps span:nth-child(4) { height: 66%; background: var(--sage); animation-delay: .4s; }
.intro-steps span:nth-child(5) { height: 82%; background: var(--moss); animation-delay: .5s; }
.intro-steps span:nth-child(6) { height: 100%; background: var(--mint); animation-delay: .6s; }
.intro-word { position: relative; text-align: center; }
.intro-word small { display: block; font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; opacity: 0; animation: fadeUp .6s var(--ease) 1s forwards; }
.intro-word .big { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 15vw, 11rem); line-height: .9; letter-spacing: -.03em; display: flex; overflow: hidden; }
.intro-word .big span { display: inline-block; transform: translateY(105%); animation: up .8s var(--ease) forwards; }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes up { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes liftOff { to { transform: translateY(-100%); visibility: hidden; } }

/* screens */
.screen { display: none; min-height: 100vh; min-height: 100dvh; }
.screen.active { display: block; }
.screen.enter .reveal { opacity: 0; transform: translateY(28px); animation: fadeUp .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.screen.leave { animation: leave .45s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-40px); } }

/* login */
.login { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.login-art { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: .8rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.brand b { display: block; letter-spacing: .14em; }
.login-art h1 { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 10vw, 9.5rem); line-height: .85; letter-spacing: -.04em; margin-top: auto; }
.login-art h1 em { font-style: normal; color: var(--moss); }
.tagline { margin-top: 1.2rem; font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 30ch; color: var(--mint); line-height: 1.45; }
.concept { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(254, 250, 238, .18); display: grid; gap: .25rem; font-size: .9rem; color: rgba(254, 250, 238, .7); max-width: 42ch; position: relative; z-index: 1; }
.periode { position: absolute; top: clamp(1.5rem, 4vw, 3.5rem); right: clamp(1.5rem, 4vw, 3.5rem); font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--moss); }

/* partikel naik di panel gelap */
.motes { position: absolute; inset: 0; pointer-events: none; }
.motes i { position: absolute; bottom: -20px; width: 6px; height: 6px; background: var(--moss); opacity: .5; animation: drift linear infinite; }
@keyframes drift { to { transform: translateY(-110vh) rotate(180deg); opacity: 0; } }

.login-form { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.form-wrap { width: 100%; max-width: 400px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.form-wrap h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; margin: .5rem 0 .6rem; letter-spacing: -.02em; }
.muted { color: var(--sage); line-height: 1.55; font-size: .95rem; }
.field { margin-top: 1.6rem; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: .7rem 0; border-radius: 10px; font-weight: 700; cursor: pointer; position: relative; z-index: 1; transition: color .3s; }
.seg input:checked + label { color: var(--mint); }
.seg input:focus-visible + label { outline: 2px solid var(--moss); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--ink); border-radius: 10px; transition: transform .45s var(--ease); }

.nim-box { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 1rem; transition: border-color .25s, box-shadow .25s; }
.nim-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--mint); }
.nim-prefix { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--sage); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.nim-prefix span { display: inline-block; }
.nim-prefix span.flip { animation: flip .4s var(--ease); }
@keyframes flip { from { transform: translateY(-60%); opacity: 0; } }
.nim-box input { border: 0; outline: 0; background: transparent; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; width: 4.2ch; padding: .8rem 0; font-variant-numeric: tabular-nums; }
.nim-box input::placeholder { color: var(--line); }
.hint { font-size: .8rem; color: var(--sage); margin-top: .5rem; }
.form-wrap .btn { width: 100%; margin-top: 1.8rem; }
.foot { margin-top: 2.5rem; font-size: .75rem; color: var(--sage); }

/* top bar (verify/vote) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.topbar .brand { color: var(--ink); }
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; font-size: .75rem; font-weight: 700; }
.steps li { display: flex; align-items: center; gap: .4rem; color: var(--sage); }
.steps li::before { content: attr(data-n); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-size: .7rem; }
.steps li + li::after { order: -1; content: ''; width: 18px; height: 1.5px; background: currentColor; }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--ink); color: var(--mint); border-color: var(--ink); }

/* verify */
.center { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 4rem) 1rem; min-height: calc(100dvh - 80px); }
.verify { width: 100%; max-width: 520px; }
.verify h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.05; margin: .4rem 0 .6rem; }
.idcard { margin-top: 1.8rem; background: var(--ink); color: var(--cream); border-radius: 22px; padding: 1.6rem; position: relative; overflow: hidden; }
.idcard::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border: 22px solid var(--forest); border-radius: 50%; }
.idcard .who { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--mint); position: relative; z-index: 1; }
.idcard dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.4rem; margin-top: 1.3rem; font-size: .92rem; position: relative; z-index: 1; }
.idcard dt { color: var(--sage); }
.idcard dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.notice { margin-top: 1.2rem; padding: .9rem 1rem; border-left: 3px solid var(--moss); background: rgba(155, 181, 82, .14); font-size: .88rem; line-height: 1.5; }
.actions { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 160px; }

/* vote */
.vote-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 8rem; }
.vote-head h2 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; line-height: 1.02; margin-top: .4rem; }
.vote-head p { margin-top: .6rem; max-width: 56ch; }
.paslon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.paslon {
  text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 24px; padding: 1.4rem; position: relative;
  transition: transform .35s var(--ease), border-color .3s, background .35s, color .35s, box-shadow .35s;
}
.paslon:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(23, 43, 23, .45); }
.paslon .no { font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--sage); transition: color .35s, -webkit-text-stroke-color .35s; }
.paslon .tick { position: absolute; top: 1.3rem; right: 1.3rem; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.paslon .tick path { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s var(--ease) .1s; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.2rem; }
.person .photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--mint); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--forest); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.paslon:hover .photo img { transform: scale(1.04); }
.person .role { display: block; margin-top: .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .16em; color: var(--sage); }
.person .name { display: block; font-weight: 700; line-height: 1.25; margin-top: .15rem; }
.visi { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.55; }
.visi b { display: block; font-size: .7rem; letter-spacing: .16em; color: var(--sage); margin-bottom: .2rem; }
.visi .m { display: block; margin-top: .2rem; }
.paslon.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.paslon.selected .no { color: var(--moss); -webkit-text-stroke-color: var(--moss); }
.paslon.selected .tick { background: var(--mint); border-color: var(--mint); }
.paslon.selected .tick path { stroke-dashoffset: 0; }
.paslon.selected .role, .paslon.selected .visi b { color: var(--moss); }
.paslon.selected .visi { border-color: rgba(254, 250, 238, .18); }
.paslon.dim { opacity: .55; }

.dock {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%); width: min(640px, calc(100% - 2rem));
  background: var(--ink); color: var(--cream); border-radius: 999px; padding: .6rem .6rem .6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: transform .55s var(--ease); z-index: 10;
}
.dock.show { transform: translate(-50%, 0); }
.dock small { display: block; color: var(--sage); font-size: .72rem; }
.dock strong { color: var(--mint); }

dialog { margin: auto; border: 0; border-radius: 24px; padding: 2rem; max-width: 420px; width: calc(100% - 2rem); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgba(23, 43, 23, .6); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
dialog h3 { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; }
dialog p { margin-top: .6rem; }

/* thanks */
.thanks { background: var(--ink); color: var(--cream); display: none; place-items: center; text-align: center; padding: 2rem 1rem; min-height: 100dvh; overflow: hidden; position: relative; }
.thanks.active { display: grid; }
.check { width: 110px; height: 110px; margin: 0 auto; }
.check circle { fill: none; stroke: var(--moss); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s var(--ease) .2s forwards; }
.check path { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .6s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h2 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.03em; line-height: 1; margin-top: 1.6rem; }
.thanks h2 em { font-style: normal; color: var(--moss); }
.thanks p { color: rgba(254, 250, 238, .75); margin: 1rem auto 0; max-width: 40ch; line-height: 1.55; }
.thanks .quote { font-family: var(--display); color: var(--mint); font-size: 1.1rem; margin-top: 1.6rem; }
.countdown { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.4rem; font-size: .85rem; color: var(--sage); }
.ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--forest); }
.ring .fg { stroke: var(--moss); stroke-dasharray: 113; stroke-dashoffset: 0; }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-wrap b { position: absolute; color: var(--cream); font-variant-numeric: tabular-nums; }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; animation: burst 1.4s var(--ease) 1s forwards; opacity: 0; }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(160deg); } }

@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { min-height: 52vh; }
  .login-art h1 { margin-top: 3rem; }
  .concept { display: none; }
  .steps li:not(.on) span { display: none; }
}
@media (max-width: 520px) {
  .steps { display: none; }
  .duo { gap: .6rem; }
  .dock { border-radius: 20px; flex-direction: column; align-items: stretch; padding: 1rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* =========================================================
   ADMIN
   ========================================================= */
.adm-login { min-height: 100dvh; display: grid; place-items: center; background: var(--ink); padding: 1rem; }
.adm-login form { width: 100%; max-width: 380px; background: var(--cream); border-radius: 24px; padding: 2rem; animation: pop .5s var(--ease); }
.adm-login h1 { font-family: var(--display); font-size: 1.8rem; margin: 1rem 0 .3rem; letter-spacing: -.02em; }
.adm-login input { width: 100%; margin-top: 1.4rem; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: 0; }
.adm-login input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--mint); }
.adm-login .btn { width: 100%; margin-top: 1rem; }

.adm-top { position: sticky; top: 0; z-index: 5; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1rem, 3vw, 2.5rem); }
.live { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--mint); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); animation: pulse 1.6s infinite; }
.live.off { color: var(--sage); }
.live.off::before { background: var(--sage); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 181, 82, .7); } 100% { box-shadow: 0 0 0 10px rgba(155, 181, 82, 0); } }
.adm-top .btn { padding: .55rem 1rem; font-size: .85rem; background: var(--forest); }

.adm { max-width: 1280px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.5rem); display: grid; gap: 1.2rem; }
.adm-title h1 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.02em; line-height: 1.05; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; }
.stat small { font-size: .75rem; font-weight: 700; color: var(--sage); letter-spacing: .06em; }
.stat b { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1.1; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.stat.dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.stat.dark b { color: var(--mint); }
.meter { height: 6px; background: var(--forest); border-radius: 6px; margin-top: .6rem; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--moss); border-radius: 6px; transition: width .8s var(--ease); }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); color: var(--moss); } }

.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; min-width: 0; }
.card h2 { font-size: 1rem; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card h2 small { font-weight: 500; color: var(--sage); font-size: .8rem; }
.chart-box { position: relative; height: 280px; margin-top: 1rem; }

.paslon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.ps { display: flex; gap: 1rem; align-items: center; }
.ps .num { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--sage); }
.ps .names { flex: 1; font-size: .88rem; line-height: 1.45; }
.ps .names b { display: block; }
.ps .count { text-align: right; }
.ps .count b { font-family: var(--display); font-size: 2rem; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.ps .count small { color: var(--sage); }

.feed { list-style: none; padding: 0; margin-top: .8rem; display: grid; gap: .1rem; max-height: 280px; overflow: auto; }
.feed li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .87rem; animation: fadeUp .5s var(--ease); }
.feed li span:last-child { color: var(--sage); white-space: nowrap; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.toolbar input, .toolbar select { padding: .6rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream); outline: 0; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--ink); }
.table-wrap { overflow: auto; margin-top: 1rem; max-height: 560px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { position: sticky; top: 0; background: #fff; text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); padding: .8rem .6rem; border-bottom: 1px solid var(--line); }
td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.nm { white-space: normal; min-width: 180px; }
tr.flash td { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: var(--mint); } }
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge.belum { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--sage); }
.badge.memilih { background: var(--moss); color: var(--ink); }
.badge.sudah { background: var(--ink); color: var(--mint); }
.badge.p1 { background: var(--forest); color: var(--cream); }
.badge.p2 { background: var(--moss); color: var(--ink); }
.mini { padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-size: .78rem; font-weight: 700; transition: background .2s, color .2s; }
.mini:hover { background: var(--ink); color: var(--mint); }
.danger { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; background: var(--ink); color: var(--cream); }
.danger p { color: var(--sage); font-size: .88rem; margin-top: .3rem; }
.danger h2 { color: var(--mint); }
dialog input { width: 100%; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: 0; }
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; background: var(--ink); color: var(--mint); padding: .8rem 1.2rem; border-radius: 14px; font-size: .88rem; transform: translateY(calc(100% + 2rem)); transition: transform .45s var(--ease); z-index: 20; }
.toast.show { transform: none; }

@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
