/* Keliling kota Pawtropolitan. Warna & ukuran dari PANDUAN-GAYA v1 dan website v2. */
@font-face { font-family: "Baloo 2"; src: url("fonts/baloo2-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --krem: #FFF6E6; --kartu: #FFFFFF; --halus: #F6EBD8; --tinta: #3B2A25; --redup: #7A6A62; --garis: #EADCC4;
  --merah: #E8604C; --merah-tua: #B8432F; --kuning: #FFD27A;
  --f-judul: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-isi: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #BFE3F7; color: var(--tinta); font: 500 16px/1.45 var(--f-isi); overscroll-behavior: none; }
#kanvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
h1, h2 { font-family: var(--f-judul); font-weight: 800; line-height: 1.15; margin: 0 0 6px; color: var(--merah-tua); }
h1 { font-size: 28px; } h2 { font-size: 24px; overflow-wrap: anywhere; }
p { margin: 0 0 10px; }

.bulat { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--tinta); box-shadow: 0 3px 0 var(--garis), 0 4px 10px rgba(59,42,37,.14); display: grid; place-items: center; padding: 0; cursor: pointer; }
.bulat svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bulat:active { transform: translateY(2px); }
.tombol { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px; border: 0; border-radius: 16px; font: 800 17px/1.1 var(--f-judul); background: #fff; color: var(--tinta); box-shadow: 0 4px 0 var(--garis); cursor: pointer; text-decoration: none; text-align: center; }
.tombol:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--garis); }
.tombol.utama { background: var(--merah); color: #fff; box-shadow: 0 4px 0 var(--merah-tua); min-height: 54px; font-size: 19px; }
.tombol.utama:active { box-shadow: 0 2px 0 var(--merah-tua); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--merah-tua); outline-offset: 2px; }

#hud { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: calc(8px + env(safe-area-inset-left, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); pointer-events: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
#hud > * { pointer-events: auto; }
.pil { background: rgba(255,246,230,.95); border-radius: 16px; padding: 4px 14px; box-shadow: 0 3px 10px rgba(59,42,37,.16); display: flex; flex-direction: column; line-height: 1.1; }
.pil .kecil { font: 800 13px/1.2 var(--f-judul); color: var(--redup); }
.pil b { font: 800 24px/1.1 var(--f-judul); font-variant-numeric: tabular-nums; }
.label-proto { background: var(--tinta); color: var(--kuning); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; max-width: 150px; line-height: 1.25; }
.kanan { margin-left: auto; display: flex; flex-direction: column; gap: 8px; }

#petaMini { position: fixed; left: calc(8px + env(safe-area-inset-left, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 104px; height: 104px; border-radius: 16px; background: rgba(255,246,230,.86); box-shadow: 0 3px 10px rgba(59,42,37,.16); pointer-events: none; }
@media (max-height: 520px) { #petaMini { display: none; } }

#bawah { position: fixed; left: 0; right: 0; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; padding: 0 8px; }
#bawah > *, #bawah .baris > * { pointer-events: auto; }
#bawah .baris { display: flex; gap: 8px; pointer-events: none; }
#tKunjungi { max-width: min(92vw, 420px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
#bawah .tombol:not(.utama) { padding: 8px 13px; font-size: 16px; }

.kartu { position: fixed; z-index: 5; background: var(--krem); border-radius: 22px; padding: 18px; box-shadow: 0 10px 34px rgba(59,42,37,.28); }
.kartu.tengah { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 380px); max-height: 92dvh; overflow: auto; }
.kartu.lembar { left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(96vw, 440px); max-height: 82dvh; overflow: auto; }
.kartu .tombol { width: 100%; margin-top: 10px; }
.kartu .tutup { position: absolute; right: 8px; top: 8px; }
.kartu.lembar h2 { padding-right: 52px; }
.catatan { font-size: 14px; color: var(--redup); margin: 10px 0 0; }
.pesan { min-height: 20px; margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--merah-tua); }
.isian { display: flex; align-items: center; gap: 4px; background: #fff; border: 2px solid var(--garis); border-radius: 14px; padding: 0 12px; min-height: 50px; font: 800 18px var(--f-judul); }
.isian input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 46px; font: 500 16px var(--f-isi); color: var(--tinta); }
.profil { display: flex; gap: 12px; align-items: center; }
.profil p { margin: 0 0 2px; }
.ktpaw { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.gambar-kucing { flex: none; width: 112px; height: 112px; background-repeat: no-repeat; background-size: auto 100%; background-color: var(--halus); border-radius: 18px; }
.reaksi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.reaksi button { min-height: 72px; padding: 6px 0 4px; border: 2px solid transparent; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--garis); color: var(--tinta); font: 800 13px/1.1 var(--f-judul); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reaksi button[aria-pressed="true"] { border-color: var(--merah-tua); background: #FFF0EC; }
.reaksi button:active { transform: translateY(2px); }
.reaksi svg { width: 38px; height: 38px; display: block; }
#hasilCari { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#hasilCari .tombol { margin: 0; justify-content: space-between; font-size: 16px; gap: 8px; }
#hasilCari .tombol span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hasilCari .tombol small { font: 500 13px var(--f-isi); color: var(--redup); flex: none; }
#uji { position: fixed; z-index: 9; left: 4px; top: 70px; max-width: min(96vw, 620px); max-height: 60vh; overflow: auto; margin: 0; padding: 8px; font: 12px/1.35 ui-monospace, Menlo, monospace; background: rgba(255,255,255,.93); border-radius: 10px; white-space: pre-wrap; }

/* Papan Pawlun: Pawran & Pawngumuman */
.tab { display: flex; gap: 8px; padding-right: 56px; }
.kartu .tab .tombol { width: auto; flex: 1; margin: 0; padding: 8px 6px; font-size: 16px; position: relative; }
.tab .tombol[aria-selected="true"] { background: var(--tinta); color: var(--kuning); box-shadow: none; }
#titikPawngumuman { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--merah); }
#isiPawran, #isiPawngumuman { margin-top: 12px; }
#koranBerita article, #koranRubrik article, .pengumuman { background: #fff; border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
#koranBerita h3, #koranRubrik h3, .pengumuman h3 { font: 800 17px/1.2 var(--f-judul); margin: 0 0 4px; color: var(--tinta); overflow-wrap: anywhere; }
#koranBerita p, #koranRubrik p, .pengumuman p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.pengumuman small { display: block; color: var(--redup); font-size: 13px; margin-bottom: 2px; }
.baris-dua { display: flex; gap: 8px; }

/* Pawdio: logo radio di kanan atas, kartu pilih lagu (Levin 4 Nov) */
.kanan { align-items: center; }
.logo-pawdio { width: 62px; min-height: 62px; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; border-radius: 18px; background: var(--tinta); color: var(--kuning, #FFD27A); box-shadow: 0 3px 0 rgba(0,0,0,.25), 0 4px 10px rgba(59,42,37,.18); cursor: pointer; font: 800 12px/1.1 "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif; }
.logo-pawdio svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-pawdio:active { transform: translateY(2px); }
.logo-pawdio:focus-visible, .pilih-lagu:focus-visible { outline: 3px solid #FF9A2E; outline-offset: 2px; }
.daftar-lagu { display: grid; gap: 8px; margin-top: 8px; }
.pilih-lagu { min-height: 58px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; text-align: left; border: 2px solid rgba(59,42,37,.14); border-radius: 16px; background: #fff; color: inherit; cursor: pointer; font: inherit; }
.pilih-lagu b { display: block; font-family: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif; font-size: 17px; line-height: 1.2; }
.pilih-lagu small { display: block; opacity: .75; font-size: 13px; }
.pilih-lagu i { flex: none; font-style: normal; font-weight: 800; font-size: 12px; color: #B8432F; }
.pilih-lagu[aria-pressed="true"] { border-color: #E8604C; background: #FFF0EC; }
