/* Flo Cards — gaya "Paspor ilustrasi": kertas krem, tinta cokelat tua, warna hanya untuk cap dan kartu. */
:root {
  --paper: #F3ECDF;
  --paper-2: #FBF7EF;
  --paper-3: #EAE0CE;
  --ink: #2A2118;
  --ink-2: #4A3C2C;
  --muted: #7A6A55;
  --faint: #A8977B;
  --line: #CDBFA6;
  --line-2: #E1D5BF;
  --land: #E4D8C2;
  --land-on: #D9C4A0;
  --umum: #B8743B;
  --jarang: #3F7C74;
  --langka: #8E3B46;
  --legenda: #C9A227;
  --lain: #8A7F70;
  --danger: #9C2F2F;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dock-h: 84px;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
.page { padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); }

/* ---------- atas ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 4px; }
.brand { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.brand span { color: var(--umum); margin: 0 .3em; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 12px var(--sans); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.link { font: 600 13px var(--sans); padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }

.hero { padding: 10px 20px 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.hero h1 { font-size: 32px; line-height: 1.08; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 34ch; }

/* ---------- tab negara ---------- */
.tabs { display: flex; gap: 6px; padding: 14px 20px 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 500 12.5px var(--sans); padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.tab b { font-weight: 600; color: var(--umum); margin-left: 2px; }
.tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab.on b { color: #E8C9A0; }

/* ---------- peta ---------- */
.map-wrap { position: relative; margin-top: 10px; }
.map-box { height: min(340px, 46dvh); position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; border-block: 1px solid var(--line-2); background: var(--paper); }
.map-box[data-cc="id"] { height: min(300px, 42dvh); }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font: 500 13px var(--sans); }
.map-svg { width: 100%; height: 100%; display: block; cursor: grab; }
.map-svg:active { cursor: grabbing; }
.sea-lines path { stroke: #E6DCC9; fill: none; stroke-width: .7; vector-effect: non-scaling-stroke; }
.land { fill: var(--land); stroke: var(--line); stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .4s; }
.land.u { fill: var(--land-on); }
.hit { fill: transparent; }
.locked { cursor: pointer; }
.locked .q { fill: var(--paper-2); fill-opacity: .6; stroke: var(--faint); stroke-width: .9; stroke-dasharray: 1.6 1.6; }
.locked .q-label { font: 600 6px var(--sans); fill: var(--faint); text-anchor: middle; }
.locked:hover .q, .locked:focus .q { stroke: var(--ink); }
.stamp { cursor: pointer; }
.m-label { font: 500 9px var(--serif); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.m-in { transform-box: fill-box; transform-origin: center; }
.stamp.fresh .m-in { animation: stamp-drop 420ms cubic-bezier(.2, .8, .3, 1) both; }
@keyframes stamp-drop {
  0% { transform: scale(1.6) rotate(-8deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.map-ctl { position: absolute; right: 12px; bottom: 34px; display: flex; flex-direction: column; gap: 1px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.map-ctl button { width: 36px; height: 34px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.map-ctl .ic { width: 16px; height: 16px; }
.hint { padding: 8px 20px 0; font: 500 11.5px var(--sans); color: var(--faint); }

/* ---------- statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 20px 0; }
.stat { border-top: 1px solid var(--ink); padding-top: 8px; min-width: 0; }
.stat b { display: block; font: 400 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font: 500 11.5px var(--sans); color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- bagian ---------- */
.sec { padding: 26px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px 12px; }
.sec h2, .sec-head h2 { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sec-head a { font: 500 12.5px var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.sec-head a .ic { width: 14px; height: 14px; }
.sec-sub { padding: 0 20px 12px; margin-top: -6px; font-size: 13px; color: var(--muted); }

.intro ol { list-style: none; margin: 0 20px; border-top: 1px solid var(--line-2); counter-reset: s; }
.intro li { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line-2); counter-increment: s; }
.intro li::before { content: counter(s); font: 400 22px/1 var(--serif); color: var(--umum); grid-row: span 2; }
.intro li b { font: 500 16px var(--serif); }
.intro li span { font-size: 13.5px; color: var(--muted); }

/* ---------- kartu koleksi ---------- */
.tiles { display: flex; gap: 12px; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile { width: 148px; flex: none; scroll-snap-align: start; border-radius: var(--radius); padding: 9px; background: var(--paper-2); border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--line-2); transition: transform .15s; }
.tile:active { transform: scale(.98); }
.art { height: 118px; border-radius: 9px; position: relative; overflow: hidden; background: var(--paper-3); }
.art svg { width: 100%; height: 100%; display: block; }
.tile h3 { font: 500 17px/1.2 var(--serif); margin-top: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile p { font-size: 11.5px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rar { font: 600 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(251, 247, 239, .93); font-style: normal; }
.art .rar { position: absolute; top: 7px; left: 7px; }
.r-umum { color: var(--umum); } .r-jarang { color: var(--jarang); } .r-langka { color: var(--langka); } .r-legenda { color: #8A6D12; } .r-lain { color: var(--lain); }
em.rar { border: 1px solid currentColor; background: transparent; }
.no { position: absolute; bottom: 6px; right: 8px; font: 600 10px var(--sans); color: rgba(251, 247, 239, .92); }
.mark { position: absolute; top: 7px; right: 7px; font: 700 9.5px var(--sans); padding: 3px 6px; border-radius: 6px; background: var(--ink); color: var(--paper); }

.next-list { display: flex; flex-direction: column; margin: 0 20px; border-top: 1px solid var(--line-2); }
.next-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.next-item img, .next-item .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; overflow: hidden; background: var(--paper-3); }
.next-item .ph svg { width: 100%; height: 100%; }
.next-item b { display: block; font: 500 16px var(--serif); }
.next-item small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item > span { min-width: 0; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 18px; border-radius: 15px; font: 600 15px var(--sans); transition: transform .12s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.btn.busy { opacity: .8; pointer-events: none; }
.btn.busy .ic { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 72%, rgba(243, 236, 223, 0)); z-index: 20; }
.dock.single { grid-template-columns: 1fr; }
.dock .ghost span { white-space: nowrap; }

/* ---------- form ---------- */
.bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 8px 0; }
.bar-title { text-align: center; font-size: 18px; }
.back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.back .ic { width: 22px; height: 22px; }
.ribbon { margin: 10px 20px 0; padding: 9px 12px; border-radius: 10px; background: var(--ink); color: #F4E3A6; font: 600 13px var(--sans); display: flex; gap: 8px; align-items: center; }
.ai-note { margin: 10px 20px 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.ai-note .ic { color: var(--jarang); }
.origin-block { position: relative; padding: 18px 20px 0; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font: 500 12.5px var(--sans); color: var(--muted); margin-bottom: 6px; }
.field.big { margin-top: 0; }
.field.big > span { font: 400 22px/1.2 var(--serif); color: var(--ink); margin-bottom: 10px; }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); font: 400 16px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(42, 33, 24, .08); }
.input.ai { border-color: var(--jarang); background: #EEF4F1; box-shadow: inset 3px 0 0 var(--jarang); }
.field.big .input { height: 56px; font-size: 18px; }
.input.slim { margin-top: 8px; height: 42px; font-size: 15px; }
.suggest { position: absolute; left: 20px; right: 20px; top: calc(100% - 8px); list-style: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(42, 33, 24, .12); z-index: 10; overflow: hidden; }
.origin-block .suggest { top: auto; margin-top: 6px; position: absolute; }
.suggest li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.suggest li:last-child { border-bottom: 0; }
.suggest li:hover { background: var(--paper-3); }
.suggest b { font: 500 15px var(--serif); display: block; }
.suggest small { font-size: 12px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot.flo { background: var(--ink); box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 3px var(--ink); }
.guess { min-height: 22px; margin-top: 10px; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.guess b { font-weight: 600; }
.more { margin: 22px 20px 0; width: calc(100% - 40px); display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font: 500 15px var(--sans); text-align: left; }
.more span { flex: 1; }
.more small { color: var(--faint); font-size: 12px; }
.more .ic { transition: transform .2s; }
.more.on .ic { transform: rotate(45deg); }
.details { padding: 0 20px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font: 500 13px var(--sans); background: var(--paper-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.other { border-style: dashed; }
.chip.other.on { border-style: solid; }
.chips:has(+ .input.ai) .chip.on { box-shadow: 0 0 0 3px #BFDCD5; }
.form-error { margin: 16px 20px 0; color: var(--danger); font-size: 13.5px; }

/* ---------- lembar ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(42, 33, 24, .38); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 100%); background: var(--paper-2); border-radius: 20px 20px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); transition: transform .24s cubic-bezier(.2, .8, .3, 1); display: flex; flex-direction: column; gap: 14px; }
.sheet-wrap.on .scrim { opacity: 1; }
.sheet-wrap.on .sheet { transform: translate(-50%, 0); }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.sheet-title { font-size: 24px; }
.sheet-sub { color: var(--muted); font-size: 14px; margin-top: -6px; padding-right: 24px; }
.gis { min-height: 44px; display: flex; align-items: center; }
.fine { font-size: 11.5px; color: var(--faint); }

/* ---------- perayaan ---------- */
.reveal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(42, 33, 24, .92); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .2s; overflow-y: auto; }
.reveal-wrap.on { opacity: 1; }
.reveal { width: 100%; max-width: 340px; text-align: center; color: var(--paper); }
.eyebrow { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.reveal .eyebrow { color: #E8C9A0; }
.big-card { margin: 18px auto 0; width: 240px; background: var(--paper-2); color: var(--ink); border-radius: 18px; padding: 12px 12px 16px; text-align: left; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); animation: card-in 520ms cubic-bezier(.2, .8, .3, 1) both; }
.big-card .art { height: 200px; border-radius: 11px; }
.big-card h2 { font-size: 26px; margin-top: 12px; }
.big-card p { color: var(--muted); font-size: 13px; }
.big-card.r-legenda { box-shadow: 0 0 0 2px var(--legenda), 0 24px 48px rgba(0, 0, 0, .35); }
@keyframes card-in { from { transform: translateY(24px) rotate(-4deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.points { margin-top: 18px; font: 400 22px var(--serif); }
.badges { margin-top: 6px; font-size: 13px; color: #E8C9A0; }
.reveal .btn { margin-top: 22px; width: 100%; background: var(--paper); color: var(--ink); }

/* ---------- lembar daerah ---------- */
.region-hero { height: 220px; position: relative; overflow: hidden; }
.region-hero > svg { width: 100%; height: 100%; display: block; }
.back.on-art { position: absolute; top: 12px; left: 12px; background: rgba(251, 247, 239, .9); }
.region-body { padding: 18px 20px 0; }
.region-body .eyebrow { color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; letter-spacing: .08em; }
.region-body h2 { font-size: 34px; margin-top: 6px; }
.status { color: var(--ink-2); font-size: 14px; margin: 4px 0 16px; }
.region-body .tiles { padding: 0 0 4px; margin: 0 -20px; padding-inline: 20px; }
.flo-here { margin-top: 24px; }
.flo-here h3 { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.flo-here .next-list { margin: 0; }

/* ---------- check-in ---------- */
.checkin { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.checkin-card { text-align: center; max-width: 340px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.seal { width: 84px; height: 84px; border-radius: 50%; border: 1.5px dashed var(--legenda); display: grid; place-items: center; color: var(--legenda); }
.seal .ic { width: 34px; height: 34px; }
.checkin h1 { font-size: 28px; line-height: 1.12; }
.checkin .btn { width: 100%; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: min(440px, calc(100% - 32px)); background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 12px; font: 500 13.5px var(--sans); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
@media (min-width: 520px) {
  body { background: var(--paper-3); }
  #app { background: var(--paper); box-shadow: 0 0 0 1px var(--line-2); }
}

/* ---------- navigasi atas ---------- */
.top-nav { display: flex; align-items: center; gap: 4px; }
.nav-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.nav-ic.on { background: var(--paper-3); color: var(--ink); }
.nav-ic .ic { width: 20px; height: 20px; }
.top-nav .avatar, .top-nav .link { margin-left: 4px; }
.season-banner { margin: 10px 20px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.season-banner b { font: 500 16px var(--serif); }
.season-banner span { grid-column: 1; font-size: 12.5px; color: #E8C9A0; }
.season-banner .ic { grid-row: 1 / span 2; grid-column: 2; }

/* ---------- paspor ---------- */
.pp { padding: 26px 20px 0; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; }
.pp-head h2 { font-size: 22px; }
.pp-head span { font: 500 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-bar { height: 3px; background: var(--line-2); border-radius: 3px; margin: 8px 0 14px; overflow: hidden; }
.pp-bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px 4px; }
.pstamp { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 2px; border-radius: 10px; min-width: 0; }
.pstamp svg { width: 52px; height: 52px; }
.pstamp.on svg { transform: rotate(-6deg); }
.pstamp b { font: 500 13.5px/1.2 var(--serif); margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstamp small { font-size: 10.5px; color: var(--faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstamp:not(.on) b { color: var(--faint); font-weight: 400; }
.pstamp.on small { color: var(--muted); }
.badges-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badge { padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper-2); display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; align-items: center; }
.badge .medal { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--legenda); color: var(--paper-2); }
.badge b { font: 500 14px/1.2 var(--serif); }
.badge small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.badge.off { background: transparent; border-style: dashed; }
.badge.off .medal { background: var(--paper-3); color: var(--faint); }
.badge.off b { color: var(--muted); }

/* ---------- kartu detail ---------- */
.card-detail .big-card { margin: 14px auto 0; width: calc(100% - 40px); max-width: 360px; box-shadow: 0 1px 0 var(--line-2), 0 18px 36px rgba(42, 33, 24, .12); border: 1px solid var(--line-2); }
.card-detail .big-card .art { height: 260px; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.notes span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--paper-3); color: var(--ink-2); }
.facts { margin: 20px 20px 0; border-top: 1px solid var(--line-2); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.note-box { margin: 20px 20px 0; }
.note-box label { display: block; font: 500 12.5px var(--sans); color: var(--muted); margin-bottom: 6px; }
.note-box small { color: var(--faint); font-weight: 400; }
.switch-row { margin: 16px 20px 0; width: calc(100% - 40px); display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper-2); }
.switch-row span { flex: 1; min-width: 0; }
.switch-row b { display: block; font-weight: 600; font-size: 14.5px; }
.switch-row small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.switch-row i { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch-row[aria-checked="true"] i { background: var(--jarang); }
.switch-row[aria-checked="true"] i::after { transform: translateX(18px); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 20px 0; }
.actions .btn { height: 44px; font-size: 14px; flex: 1; }
.link.danger { color: var(--danger); border-color: transparent; }
.pts { margin: 14px 20px 0; font-size: 12.5px; color: var(--faint); }
.sheet .btn { width: 100%; }

/* ---------- klasemen ---------- */
.seg { display: flex; margin: 16px 20px 0; padding: 3px; border-radius: 12px; background: var(--paper-3); }
.seg a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; font: 500 13px var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg a.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 33, 24, .12); }
.rows { list-style: none; margin: 14px 20px 0; border-top: 1px solid var(--line-2); }
.rows li a, .me-row { display: grid; grid-template-columns: 30px 38px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; }
.rows li { border-bottom: 1px solid var(--line-2); }
.rows li.me { background: linear-gradient(90deg, transparent, rgba(184, 116, 59, .1), transparent); }
.rk { font: 400 18px var(--serif); text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows li.top .rk { color: var(--ink); font-weight: 600; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; font: 600 12px var(--sans); color: var(--ink-2); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.who { min-width: 0; }
.who b { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-size: 12px; color: var(--muted); }
.pt { font: 400 19px var(--serif); font-variant-numeric: tabular-nums; }
.me-row { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); z-index: 20; }
.me-row .rk, .me-row .who small { color: #E8C9A0; }
.me-row .av { background: var(--ink-2); color: var(--paper); }
.empty { margin: 24px 20px 0; padding: 24px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ---------- profil ---------- */
.form-pad { padding: 4px 20px 0; display: flex; flex-direction: column; }
.form-pad .btn.primary { margin-top: 18px; }
.form-pad .actions { margin: 12px 0 0; }
.form-pad .link.out { margin-top: 24px; align-self: flex-start; color: var(--danger); border-color: transparent; padding-left: 0; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.public .eyebrow { color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px; }
