@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('/fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-700-normal.woff2') format('woff2'); }
:root { --hijau: #375742; --hijau-tua: #2b4634; --hijau-muda: #7aa05f; --krem: #f9f7e7; --krem-2: #efe9cf; --merah: #c0392b; --teks: #1f2d24; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--hijau); color: var(--krem); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.45; }
main { max-width: 480px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
h1, h2, h3, .judul { font-family: 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: .02em; margin: 0; font-weight: 500; }
h1 { font-size: 2rem; line-height: 1.05; text-transform: uppercase; }
h1 b { font-weight: 700; }
h2 { font-size: 1.25rem; text-transform: uppercase; margin: 1.4rem 0 .6rem; }
p { margin: .4rem 0; }
.memuat { text-align: center; opacity: .8; margin-top: 40vh; }
.atas { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.atas img { width: 54px; height: auto; }
.atas .kecil { font-size: .8rem; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
.pahlawan { display: grid; grid-template-columns: 1fr 120px; align-items: end; gap: 8px; margin: 6px 0 10px; }
.pahlawan img { width: 120px; height: auto; }
.kartu { background: var(--krem); color: var(--teks); border-radius: 22px; padding: 16px; margin: 12px 0; }
.kartu.hijau { background: var(--hijau-tua); color: var(--krem); border: 1px solid rgba(249,247,231,.15); }
.identitas { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.identitas .no { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--hijau); }
.identitas .nm { font-weight: 700; font-size: 1.15rem; }
.badge { display: inline-block; background: var(--hijau); color: var(--krem); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; letter-spacing: .03em; }
.badge.emas { background: #b98a2a; }
.qr { background: #fff; border-radius: 14px; padding: 6px; width: 132px; height: 132px; display: grid; place-items: center; }
.qr svg { width: 120px; height: 120px; display: block; }
.qr-besar { text-align: center; }
.qr-besar .qr { width: 240px; height: 240px; margin: 8px auto; }
.qr-besar .qr svg { width: 226px; height: 226px; }
.kode { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; opacity: .7; text-align: center; margin-top: 4px; }
.stempel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 6px; }
.bulat { aspect-ratio: 1; border-radius: 50%; background: var(--krem); color: var(--hijau); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .52rem; line-height: 1.05; text-transform: uppercase; padding: 3px; letter-spacing: -.01em; }
.bulat .n { position: absolute; bottom: 3px; left: 0; right: 0; font-size: .55rem; opacity: .45; font-weight: 500; }
.bulat.isi { background: var(--hijau-muda); color: var(--krem); }
.bulat.isi::after { content: ''; position: absolute; inset: 0; background: url(/warga/cap.png) center 46% / 66% no-repeat; }
.bulat.isi.hadiah::after { background-size: 46%; background-position: center 18%; }
.bulat.isi .lbl { opacity: 0; }
.bulat.isi.hadiah .lbl { opacity: 1; margin-top: 40%; color: var(--krem); }
.bulat.baru { animation: cap .7s ease-out; }
@keyframes cap { 0% { transform: scale(1.4); } 100% { transform: scale(1); } }
.progres { font-size: .92rem; }
.tnc { font-size: .8rem; opacity: .85; }
.tnc li { margin: 2px 0; }
.voucher { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 2px dashed var(--hijau); border-radius: 16px; padding: 12px; margin: 8px 0; background: #fff; color: var(--teks); }
.voucher b { font-family: 'Oswald', sans-serif; font-size: 1.15rem; text-transform: uppercase; color: var(--hijau); font-weight: 600; }
.voucher .k { font-size: .78rem; opacity: .7; }
.btn { appearance: none; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; background: var(--krem); color: var(--hijau); width: 100%; margin-top: 8px; font-family: inherit; }
.btn.kecil { width: auto; padding: 8px 14px; font-size: .88rem; margin: 0; }
.btn.garis { background: transparent; color: var(--krem); border: 1.5px solid rgba(249,247,231,.6); }
.btn.hijau { background: var(--hijau); color: var(--krem); }
.btn:disabled { opacity: .5; }
label.f { display: block; margin: 10px 0; }
label.f span { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
label.f small { font-weight: 400; opacity: .7; }
input, textarea { width: 100%; border: 0; border-radius: 999px; padding: 12px 16px; font-size: 1rem; background: var(--krem); color: var(--teks); font-family: inherit; }
textarea { border-radius: 18px; min-height: 90px; resize: vertical; }
.kartu input, .kartu textarea { background: #fff; border: 1px solid #ddd5b6; }
.cek { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .88rem; }
.cek input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.err { background: #fbe3df; color: var(--merah); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
.ok { background: #e6f1dc; color: #2c5a1e; border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
.riw { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(31,45,36,.1); font-size: .9rem; }
.riw:last-child { border-bottom: 0; }
.muted { opacity: .7; font-size: .85rem; }
.tab { display: flex; gap: 6px; margin: 14px 0 4px; overflow-x: auto; }
.tab button { flex: none; border: 1.5px solid rgba(249,247,231,.5); background: transparent; color: var(--krem); border-radius: 999px; padding: 6px 10px; font-size: .82rem; font-weight: 600; font-family: inherit; }
.tab button.on { background: var(--krem); color: var(--hijau); border-color: var(--krem); }
.lvl { height: 8px; background: rgba(31,45,36,.12); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.lvl i { display: block; height: 100%; background: var(--hijau-muda); }
.tag { font-size: .8rem; opacity: .85; text-align: center; margin-top: 18px; letter-spacing: .06em; }
.lapis { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; z-index: 9; }
.lapis .kartu { width: 100%; max-width: 420px; }

.ajakan { background: var(--hijau-muda); color: #fff; border-radius: 16px; padding: 12px 14px; font-weight: 600; margin: 8px 0 4px; }
.wifi { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.wifi .pw { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; margin-top: 2px; word-break: break-all; }
.link { color: var(--krem); font-size: .9rem; display: inline-block; margin-top: 4px; }
.level.kunci { opacity: .72; }
.level.kini { outline: 3px solid var(--hijau-muda); }

/* v0.24.3: kartu "Level Up" (level 2+): latar krem, lingkaran hijau, seperti kartu fisik */
.kartu.levelup { background: var(--krem); color: var(--hijau); border: 2px solid var(--hijau-muda); }
.kartu.levelup .bulat { background: var(--hijau); color: var(--krem); }
.kartu.levelup .bulat.isi { background: var(--hijau-muda); }
.kartu.levelup .tnc, .kartu.levelup .progres { color: var(--teks); }
.kartu.levelup .link { color: var(--hijau); }
.mini-hadiah ul { margin: 4px 0 0; padding-left: 18px; font-size: .88rem; }

/* v0.25.0: kabar Sedjenak */
.kartu.kabar img { width: 100%; border-radius: 14px; margin-bottom: 8px; display: block; max-height: 260px; object-fit: cover; }
a.btn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.pilih-kat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-k { border: 1.5px solid #cfc6a3; background: transparent; color: var(--teks); border-radius: 999px; padding: 7px 12px; font-size: .88rem; font-weight: 600; font-family: inherit; }
.chip-k.on { background: var(--hijau); border-color: var(--hijau); color: var(--krem); }
.balasan { background: rgba(122,160,95,.18); border-radius: 12px; padding: 8px 10px; margin-top: 6px; }
