:root {
  --cream: #fff8ec; --cream2: #fdf0dc; --ink: #24324d; --muted: #6b7280; --red: #e63946; --green: #2a9d8f; --teal: #14524f;
  --yellow: #ffd166; --blue: #2f80ed; --line: #ead9bf; --shadow: 0 4px 0 rgba(36, 50, 77, .18), 0 10px 24px rgba(0, 0, 0, .12);
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #86c95f; color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; overscroll-behavior: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; touch-action: none; }
.hidden { display: none !important; }
b, h1, h2, .chip, .btn { font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif; }
a { color: var(--blue); }
.card { background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.center { text-align: center; }
.small { font-size: 13px; }

/* tombol */
.btn { border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 14px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .06s, box-shadow .06s; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.big { display: block; width: 100%; padding: 13px; font-size: 18px; background: var(--red); color: #fff; margin-top: 12px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.red { background: var(--red); color: #fff; } .btn.green { background: #3cb371; color: #fff; } .btn.blue { background: var(--blue); color: #fff; }
.btn.seg.on { background: var(--yellow); }
.btn.ig { display: inline-block; background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; text-decoration: none; margin-top: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--cream); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center; color: var(--ink); }
.icon-btn.small { font-size: 11px; font-family: 'Fredoka'; }
.chip { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.chip.ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 900; font-size: 22px; border: 2px solid #fff; }
.logo.big { width: 64px; height: 64px; font-size: 40px; border-radius: 18px; border: 3px solid var(--ink); }
.spin { animation: spin 1.4s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* layar */
.screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #ffe3cc, #ffd0da 40%, #c9ecff 100%); overflow-y: auto; padding: 16px; }
#loading { z-index: 60; }
.loader { text-align: center; font-family: 'Fredoka'; font-size: 18px; }
#reg { background: rgba(20, 82, 79, .55); backdrop-filter: blur(4px); align-items: start; }
.reg-card { width: min(720px, 100%); padding: 20px; margin: auto; }
.reg-brand { display: flex; gap: 14px; align-items: center; }
.reg-brand h1 { margin: 0; font-size: 26px; line-height: 1.1; } .reg-brand h1 em { color: var(--red); font-style: normal; }
.reg-brand p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.steps { display: flex; gap: 6px; margin: 14px 0 6px; } .steps span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 5px; border-radius: 8px; background: var(--cream2); color: var(--muted); }
.steps span.on { background: var(--teal); color: #fff; }
.lbl { display: block; font-weight: 800; font-size: 13px; margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .6px; color: var(--teal); }
input { width: 100%; font: 600 16px 'Plus Jakarta Sans', sans-serif; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
input:focus { box-shadow: 0 0 0 3px var(--yellow); }
.reg-grid { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.preview-box { background: linear-gradient(#dcefff, #fff3b8); border: 2px solid var(--ink); border-radius: 14px; text-align: center; padding-bottom: 4px; }
.preview-box canvas { width: 100%; height: 200px; display: block; }
.preview-box small { font-size: 11px; color: var(--muted); }
.seg-row { display: flex; gap: 8px; } .seg-row .btn { flex: 1; }
.skins { display: flex; gap: 10px; } .skins button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; outline: 2px solid var(--ink); cursor: pointer; }
.skins button.on { outline: 3px solid var(--red); transform: scale(1.1); }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.role { border: 2px solid var(--ink); border-radius: 14px; padding: 10px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.role .ri { font-size: 28px; } .role b { display: block; font-size: 16px; } .role small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.role .start { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 800; background: var(--cream2); border-radius: 6px; padding: 2px 6px; }
.role.on { background: #fff3c4; outline: 3px solid var(--red); }
.reg-err { color: var(--red); font-weight: 700; font-size: 14px; min-height: 20px; margin-top: 8px; }
.reg-err .follow-box { background: #ffe8ea; border: 2px dashed var(--red); padding: 10px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.note { background: #fff3c4; border: 2px dashed var(--ink); border-radius: 14px; padding: 12px; margin-top: 10px; } .note p { margin: 6px 0; font-size: 14px; }
.ig-input { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; overflow: hidden; }
.ig-input span { padding: 0 4px 0 12px; font-weight: 800; color: var(--muted); } .ig-input input { border: 0; padding-left: 2px; }
.row2 { display: flex; gap: 10px; align-items: end; } .row2 .btn.big { flex: 1; }
.big-emoji { font-size: 56px; } .code { font: 700 34px 'Fredoka'; letter-spacing: 6px; background: #fff; border: 2px dashed var(--ink); border-radius: 12px; padding: 10px; margin: 10px auto; width: fit-content; }

/* HUD */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 52px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; z-index: 10; border-bottom: 3px solid #0d3b39; }
.brand { display: flex; gap: 8px; align-items: center; } .brand b { font-size: 18px; display: block; line-height: 1; } .brand small { font-size: 11px; opacity: .9; }
.dot { display: inline-block; width: 7px; height: 7px; background: #4ade80; border-radius: 50%; margin-right: 4px; }
.top-right { display: flex; gap: 8px; align-items: center; } .top-right .icon-btn { width: 38px; height: 38px; font-size: 18px; }
.profile { position: fixed; top: 62px; left: 10px; z-index: 9; padding: 8px 10px; width: 230px; }
.pf-top { display: flex; gap: 8px; align-items: center; } .pf-ico { font-size: 26px; } .pf-txt b { display: block; font-size: 16px; line-height: 1.1; } .pf-txt span { font-size: 12px; color: var(--red); font-weight: 800; }
.xp { height: 10px; background: #eadfcd; border-radius: 6px; overflow: hidden; margin-top: 6px; border: 1.5px solid var(--ink); } .xp div { height: 100%; width: 0; background: linear-gradient(90deg, #ffd166, #ff8c42); transition: width .5s; }
.profile small { font-size: 11px; color: var(--muted); font-weight: 600; }
.stats { position: fixed; top: 62px; right: 10px; z-index: 9; display: flex; gap: 10px; padding: 6px 12px; }
.stats div { text-align: center; } .stats b { display: block; font-size: 18px; } .stats small { font-size: 10px; color: var(--muted); font-weight: 700; }
.room-chip { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 8; background: rgba(36, 50, 77, .85); color: #fff; font: 600 13px 'Fredoka'; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.feed { position: fixed; left: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 54px); z-index: 7; display: flex; flex-direction: column; gap: 4px; max-width: min(420px, 62vw); pointer-events: none; }
.feed div { background: rgba(36, 50, 77, .82); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 10px; animation: fadein .3s; transition: opacity 1s; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.tracker { position: fixed; top: 140px; left: 10px; z-index: 8; padding: 8px 10px; max-width: 250px; font-size: 13px; }
.tracker b { color: var(--red); } .tracker .btn { padding: 4px 8px; font-size: 12px; margin-top: 6px; }
.side-btns { position: fixed; right: 10px; top: 128px; z-index: 8; display: flex; flex-direction: column; gap: 8px; }
.emotes { position: fixed; right: 62px; top: 290px; z-index: 9; padding: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .emotes button { font-size: 22px; background: none; border: 0; cursor: pointer; padding: 4px; }
.actions { position: fixed; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.act { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--red); color: #fff; border-radius: 40px; padding: 8px 16px 8px 8px; font: 700 16px 'Fredoka'; cursor: pointer; box-shadow: 0 4px 0 var(--ink); animation: pulse 1.6s infinite; max-width: 78vw; text-align: left; }
.act .ai { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.act.alt { background: var(--cream); color: var(--ink); animation: none; font-size: 14px; padding: 5px 12px 5px 5px; } .act.alt .ai { width: 30px; height: 30px; font-size: 17px; background: var(--cream2); }
.act small { display: block; font: 600 11px 'Plus Jakarta Sans'; opacity: .9; }
.act kbd { background: rgba(255,255,255,.25); border-radius: 5px; padding: 0 5px; font-size: 11px; margin-left: 4px; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.hint { position: fixed; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(36, 50, 77, .85); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 20px; white-space: nowrap; }
.hint b { color: var(--yellow); }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--cream); border-top: 3px solid var(--ink); display: flex; z-index: 12; }
.bottomnav button { flex: 1; background: none; border: 0; font: 600 12px 'Fredoka'; color: var(--muted); cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.bottomnav button span { font-size: 20px; padding: 1px 14px; border-radius: 14px; }
.bottomnav button.on { color: var(--ink); } .bottomnav button.on span { background: var(--yellow); border: 2px solid var(--ink); }
.badge { position: absolute; top: 6px; left: calc(50% + 10px); background: var(--red); color: #fff; font: 700 10px 'Fredoka'; font-style: normal; border-radius: 10px; padding: 1px 6px; border: 1.5px solid #fff; }
.panel { position: fixed; right: 10px; top: 62px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); width: 380px; z-index: 11; background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; animation: slidein .2s; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--line); font-size: 17px; }
.panel-x { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--ink); }
.panel-body { flex: 1; overflow-y: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
.mission { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.mission .mi { font-size: 24px; } .mission .mt { flex: 1; min-width: 0; } .mission b { display: block; font-size: 15px; } .mission small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mission .tag { display: inline-block; font: 700 10px 'Fredoka'; padding: 1px 6px; border-radius: 6px; background: #d1fae5; color: #065f46; margin-top: 3px; } .mission .tag.busy { background: #fee2e2; color: #991b1b; } .mission .tag.mine { background: #fef3c7; color: #92400e; }
.mission .btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 24px 10px; font-size: 14px; }
.chat-log .cm { margin-bottom: 6px; font-size: 14px; line-height: 1.35; word-wrap: break-word; } .chat-log .cm b { font-size: 14px; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 2px solid var(--line); } .chat-form input { padding: 8px 10px; }
.board-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px dashed var(--line); font-size: 14px; } .board-row .n { width: 26px; font: 700 16px 'Fredoka'; text-align: center; } .board-row .nm { flex: 1; min-width: 0; } .board-row small { display: block; color: var(--muted); font-size: 11px; } .board-row.me { background: #fff3c4; border-radius: 8px; }
.ktp { background: linear-gradient(135deg, #e0f7f4, #fff); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; }
.ktp h3 { margin: 0 0 8px; font-family: 'Fredoka'; color: var(--teal); font-size: 14px; letter-spacing: 1px; }
.ktp table { width: 100%; font-size: 14px; } .ktp td:first-child { color: var(--muted); width: 42%; }
.rank-ladder { margin-top: 10px; } .rank-ladder div { padding: 5px 8px; border-radius: 8px; font-size: 13px; display: flex; justify-content: space-between; } .rank-ladder div.cur { background: var(--yellow); font-weight: 800; } .rank-ladder div.done { color: var(--green); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.toggle { width: 52px; height: 30px; border-radius: 20px; border: 2px solid var(--ink); background: #ddd; position: relative; cursor: pointer; } .toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: left .15s; } .toggle.on { background: #4ade80; } .toggle.on::after { left: 23px; }

/* label melayang */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.lb { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; font: 600 12px 'Fredoka'; display: flex; flex-direction: column; align-items: center; gap: 2px; will-change: transform; }
.lb .nm { background: rgba(255, 255, 255, .95); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; padding: 0 6px; }
.lb.staff .nm { background: var(--ink); color: #fff; } .lb.me .nm { background: var(--yellow); color: var(--ink); }
.lb .nm i { font-style: normal; font-size: 9px; opacity: .7; margin-left: 3px; }
.lb .task { background: var(--red); color: #fff; border: 2px solid #fff; border-radius: 10px; padding: 1px 7px; font-size: 12px; animation: bob 1s infinite; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.lb .task.other { background: #64748b; animation: none; font-size: 10px; }
.lb .bubble { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 3px 8px; max-width: 200px; white-space: normal; font: 500 12px 'Plus Jakarta Sans'; text-align: center; }
.lb .emo { font-size: 28px; animation: bob .6s infinite; }
.lb.room { font-size: 13px; } .lb.room .nm { background: rgba(36, 50, 77, .78); color: #fff; border: 0; padding: 2px 9px; border-radius: 10px; }
.lb.call .nm { background: var(--red); color: #fff; animation: bob 1s infinite; }
.lb.target .nm { background: #22c55e; color: #fff; border-color: #fff; animation: bob .8s infinite; font-size: 13px; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* minigame */
.mg-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 50, .5); display: grid; place-items: center; padding: 12px; }
.mg { width: min(460px, 100%); max-height: 92dvh; overflow-y: auto; padding: 14px; }
.pop { animation: pop .22s; } @keyframes pop { from { transform: scale(.85); opacity: 0; } }
.mg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .mg-ico { font-size: 30px; } .mg-head > div { flex: 1; }
.mg-title { font: 700 19px 'Fredoka'; } .mg-sub { font-size: 12px; color: var(--muted); }
.mg-x { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); }
.mg-p { margin: 10px 0 6px; font-size: 14px; }
.keluhan { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font-size: 14px; line-height: 1.45; }
.vitals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; } .vitals div { background: #24324d; color: #fff; border-radius: 10px; padding: 5px 2px; text-align: center; }
.vitals b { display: block; font-size: 10px; color: var(--yellow); } .vitals span { display: block; font: 700 15px 'Fredoka'; } .vitals i { font-size: 9px; opacity: .7; font-style: normal; }
.opts { display: grid; gap: 8px; } .opts.two { grid-template-columns: 1fr 1fr; } .opts .btn { padding: 12px; font-size: 15px; }
.tb-info { font-size: 14px; margin: 6px 0 10px; text-align: center; }
.tb { position: relative; height: 38px; border: 2px solid var(--ink); border-radius: 12px; background: linear-gradient(90deg, #fecaca, #fde68a, #fecaca); overflow: hidden; }
.tb-zone { position: absolute; top: 0; bottom: 0; background: #4ade80; border-left: 2px solid #15803d; border-right: 2px solid #15803d; }
.tb-needle { position: absolute; top: -2px; bottom: -2px; width: 5px; margin-left: -2px; background: var(--ink); border-radius: 3px; }
.tb-res { text-align: center; min-height: 22px; font-weight: 700; margin-top: 8px; font-size: 14px; }
.ring-stage { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #ffe3cc; border: 2px solid var(--line); }
.ring-stage .arm { position: absolute; width: 90%; height: 70px; background: #f1c8a5; border-radius: 40px; border: 2px solid #d9a77f; }
.ring-stage .vein { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 4px dashed #16a34a; } .ring-stage .ring { position: absolute; border-radius: 50%; border: 4px solid var(--red); }
.resep { background: #fff; border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; } .resep ul { margin: 6px 0 0; padding-left: 18px; } .rx-dx { font-size: 12px; color: var(--muted); }
.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pill-btn { border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 6px 2px; font-size: 20px; cursor: pointer; color: var(--ink); }
.pill-btn span { display: block; font: 600 11px 'Plus Jakarta Sans'; line-height: 1.2; } .pill-btn small { display: block; font-size: 10px; color: var(--muted); }
.pill-btn.ok { background: #bbf7d0; } .pill-btn.bad { background: #fecaca; }
.form-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; } .form-row span { width: 80px; font-weight: 700; font-size: 13px; } .form-row .btn { flex: 1; padding: 8px; }
.meter { height: 26px; border: 2px solid var(--ink); border-radius: 12px; background: #eee; overflow: hidden; } .meter div { height: 100%; width: 0; background: linear-gradient(90deg, #ffd166, #e63946); }
.amb-pic { position: relative; height: 200px; font-size: 150px; line-height: 200px; text-align: center; background: #e0f2fe; border-radius: 14px; border: 2px solid var(--line); }
.dirt { position: absolute; width: 38px; height: 30px; border-radius: 50%; background: radial-gradient(#7c5a3a, #a47551); cursor: pointer; border: 2px solid #5b3f26; }

/* pop up umum */
.pop-wrap { position: fixed; inset: 0; z-index: 45; background: rgba(20, 30, 50, .55); display: grid; place-items: center; padding: 14px; }
.pop-card { width: min(480px, 100%); max-height: 92dvh; overflow-y: auto; padding: 18px; text-align: center; }
.pop-card h2 { margin: 4px 0; font-size: 24px; } .pop-card .rank-big { display: inline-block; background: var(--red); color: #fff; font: 700 22px 'Fredoka'; padding: 6px 16px; border-radius: 12px; border: 2px solid var(--ink); margin: 6px 0; transform: rotate(-2deg); }
.pop-card ul { text-align: left; padding-left: 20px; font-size: 14px; line-height: 1.6; } .pop-card .tip { background: #e0f7f4; border-radius: 12px; padding: 10px; font-size: 13px; text-align: left; }
.pop-card .ctrl { font-size: 12px; color: var(--muted); }

#toasts { position: fixed; top: 120px; left: 50%; transform: translateX(-50%); z-index: 46; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 20px; font: 600 14px 'Fredoka'; box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: pop .2s; max-width: 92vw; text-align: center; }
.toast.exp { background: #f59e0b; color: var(--ink); border: 2px solid var(--ink); font-size: 18px; }
.toast.bad { background: var(--red); }

/* ===== responsif ===== */
@media (max-width: 760px) {
  .reg-grid { grid-template-columns: 1fr; } .preview-box canvas { height: 170px; }
  .roles { grid-template-columns: 1fr 1fr; }
  .profile { width: auto; max-width: calc(100vw - 150px); padding: 6px 8px; } .pf-ico { font-size: 22px; } .pf-txt b { font-size: 14px; } .pf-txt span { font-size: 11px; }
  .stats { gap: 6px; padding: 4px 8px; } .stats b { font-size: 14px; } .stats small { font-size: 9px; }
  .room-chip { top: auto; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); left: 10px; transform: none; font-size: 12px; }
  .feed { bottom: calc(var(--nav-h) + var(--safe-b) + 46px); max-width: 60vw; } .feed div { font-size: 11px; }
  .hint { display: none; }
  .side-btns { top: 118px; } .side-btns .icon-btn { width: 40px; height: 40px; }
  .panel { left: 0; right: 0; width: auto; top: auto; bottom: calc(var(--nav-h) + var(--safe-b)); height: 68dvh; border-radius: 18px 18px 0 0; border-bottom: 0; animation: slideup .2s; }
  @keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
  .tracker { top: 128px; max-width: calc(100vw - 80px); }
  .brand b { font-size: 15px; } .chip { font-size: 11px; }
  .vitals span { font-size: 13px; } .pills { grid-template-columns: repeat(3, 1fr); }
  .act { font-size: 15px; }
}
@media (max-width: 380px) { .stats div:last-child { display: none; } .top-right .chip { display: none; } }
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-h: 50px; } .bottomnav button span { font-size: 16px; } .profile { top: 58px; } .feed { display: none; }
  .panel { top: 56px; height: auto; width: 360px; left: auto; right: 10px; bottom: calc(var(--nav-h) + 6px); border-radius: 16px; border-bottom: 2px solid var(--ink); }
}

/* ===== minigame bertahap ===== */
.mg-steps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.mg-steps span { font: 600 10px 'Fredoka'; padding: 2px 7px; border-radius: 8px; background: var(--cream2); color: var(--muted); }
.mg-steps span.on { background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); } .mg-steps span.done { background: #bbf7d0; color: #166534; }
.tb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #60a5fa, #2563eb); opacity: .75; }
.tb-res.good { color: #15803d; } .tb-res.badtxt { color: var(--red); }
.btn.hold { user-select: none; -webkit-user-select: none; touch-action: none; }
.scrub { position: relative; height: 190px; border-radius: 14px; border: 2px solid var(--line); overflow: hidden; touch-action: none; cursor: grab; display: grid; place-items: center; }
.sc-target { font-size: 90px; pointer-events: none; } .sc-dirt { position: absolute; inset: 25%; border-radius: 50%; background: radial-gradient(rgba(140,100,60,.55), transparent 70%); pointer-events: none; }
.sc-tool { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 40px; pointer-events: none; }
.pulse-stage { height: 150px; display: grid; place-items: center; background: #ffe4e6; border-radius: 14px; border: 2px solid var(--line); }
.pulse { font-size: 64px; transition: transform .1s; } .pulse.beat { animation: beat .25s; } @keyframes beat { 40% { transform: scale(1.35); } }
.pt-stage { position: relative; height: 230px; background: #fff1e6; border-radius: 14px; border: 2px solid var(--line); overflow: hidden; }
.pt-bg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 150px; opacity: .45; }
.pt { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: 700 12px 'Fredoka'; cursor: pointer; color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.pt.ok { background: #4ade80; }
.drip { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 20px; margin: 10px 0; } .drip .btn { font-size: 22px; width: 52px; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ekg-strip { background: #fff7f7; border: 2px solid var(--line); border-radius: 12px; background-image: linear-gradient(#fecaca 1px, transparent 1px), linear-gradient(90deg, #fecaca 1px, transparent 1px); background-size: 12px 12px; }
.mg .big-emoji.center, .center { text-align: center; }
/* ujian */
.exam-prog { display: flex; gap: 4px; margin-bottom: 8px; } .exam-prog span { flex: 1; height: 6px; border-radius: 4px; background: #e5e7eb; } .exam-prog span.done { background: #4ade80; } .exam-prog span.on { background: var(--red); }
.btn.opt.on { background: var(--yellow); }
.opts .btn.opt { text-align: left; }
.exam-btn { width: 100%; margin-top: 6px; background: #3cb371; color: #fff; font-size: 13px; padding: 6px; animation: pulse 1.4s infinite; }
.review { text-align: left; font-size: 13px; background: #fff; border-radius: 12px; padding: 8px; margin: 8px 0; max-height: 220px; overflow-y: auto; } .review div { padding: 6px 0; border-bottom: 1px dashed var(--line); }
/* code blue */
body.codeblue::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 30; box-shadow: inset 0 0 0 6px #2563eb, inset 0 0 60px rgba(37, 99, 235, .55); animation: cb .5s infinite alternate; }
@keyframes cb { to { opacity: .2; } }

/* ===== spesialisasi, sertifikasi, otomatis, operasi ===== */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.spec { border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 8px; cursor: pointer; text-align: left; font-family: inherit; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.spec span { font-size: 24px; } .spec b { display: block; font-size: 14px; } .spec small { display: block; font-size: 11px; color: var(--muted); }
.cert-row { display: flex; align-items: center; gap: 8px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: #fff; }
.cert-row > span:first-child { font-size: 22px; } .cert-row div { flex: 1; min-width: 0; } .cert-row b { display: block; } .cert-row small { display: block; font-size: 11px; color: var(--muted); }
.cert-row.own { background: #ecfdf5; } .cert-row .tag { font: 700 11px 'Fredoka'; color: #065f46; } .cert-row .btn { padding: 6px 10px; font-size: 13px; }
.auto-btn.on { background: #4ade80; animation: pulse 1.4s infinite; }
.auto-chip { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 9; background: #16a34a; color: #fff; font: 600 13px 'Fredoka'; padding: 5px 6px 5px 12px; border-radius: 20px; border: 2px solid var(--ink); white-space: nowrap; }
.auto-chip button { margin-left: 6px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: 700 12px 'Fredoka'; padding: 2px 8px; cursor: pointer; }
.trace-stage { position: relative; height: 230px; background: #fff1e6; border: 2px solid var(--line); border-radius: 14px; touch-action: none; overflow: hidden; }
.trace-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-stage.miss { box-shadow: inset 0 0 0 3px var(--red); }
.tp { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-size: 9px; display: grid; place-items: center; pointer-events: none; }
.tp.ok { background: #e63946; border-color: #e63946; }
.scan-img { font-size: 90px; text-align: center; background: #0f172a; border-radius: 14px; filter: grayscale(1) contrast(1.4); }
.count-tray { font-size: 28px; background: #e2e8f0; border-radius: 12px; padding: 8px; text-align: center; letter-spacing: 4px; line-height: 1.5; }
.pill-tray { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; } .pill-tray .tab { font-size: 22px; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; padding: 4px 0; }
.btn.opt.bad { background: #fecaca; }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; } .auto-chip { top: 92px; font-size: 11px; } .pill-tray { grid-template-columns: repeat(4, 1fr); } }

/* ===== misi harian, wabah, tim operasi, peringkat, kartu IG ===== */
.daily { background: linear-gradient(135deg, #fff3c4, #fff); border: 2px solid var(--ink); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.daily-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .daily-head span { font: 700 13px 'Fredoka'; color: #ea580c; }
.dm { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .dm > span { font-size: 22px; } .dm > div { flex: 1; } .dm b { font-size: 13px; }
.dm .xp { height: 7px; margin-top: 4px; } .dm small { font: 700 12px 'Fredoka'; color: var(--muted); } .dm .btn { padding: 4px 10px; font-size: 13px; animation: pulse 1.2s infinite; } .dm.done { opacity: .55; } .dm i { font-style: normal; }
.daily .reset { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 4px; }
b.sec { display: block; margin: 6px 0; font-size: 14px; }
.streak-row { display: flex; justify-content: center; gap: 6px; margin: 10px 0; } .streak-row span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font: 700 14px 'Fredoka'; background: #fff; } .streak-row span.on { background: #fb923c; color: #fff; }
.event-banner { position: fixed; top: 128px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; gap: 8px; align-items: center; background: #b91c1c; color: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 5px 12px 5px 6px; box-shadow: var(--shadow); animation: evpulse 1s infinite alternate; white-space: nowrap; }
.event-banner .ev-ico { font-size: 26px; } .event-banner b { display: block; font-size: 14px; } .event-banner small { font-size: 11px; opacity: .9; }
@keyframes evpulse { to { background: #e63946; } }
.team-list { display: grid; gap: 6px; margin: 8px 0; } .team-m { display: grid; grid-template-columns: 1fr auto; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.team-m small { grid-column: 1; color: var(--muted); font-size: 12px; } .team-m i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font: 600 13px 'Fredoka'; } .team-m.ok { background: #ecfdf5; border-color: #86efac; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; } .tabs button { flex: 1; border: 2px solid var(--ink); border-radius: 10px; background: #fff; padding: 6px; font: 600 13px 'Fredoka'; cursor: pointer; color: var(--ink); } .tabs button.on { background: var(--yellow); }
#boardList h4 { margin: 12px 0 4px; font-family: 'Fredoka'; }
.champs { background: #fff7d6; border: 2px solid #f59e0b; border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.chat-log .rep { border: 0; background: none; cursor: pointer; font-size: 12px; opacity: .5; } .chat-log .rep:hover { opacity: 1; }
.lb .nm.fam { background: #fef3c7; border-color: #d97706; font-size: 11px; }
.share-pop img { width: 100%; max-height: 55dvh; object-fit: contain; border-radius: 12px; border: 2px solid var(--line); }
.share-pop .row2 a { flex: 1; text-align: center; text-decoration: none; }
.btn.big.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
@media (max-width: 760px) { .event-banner { top: 124px; } .event-banner b { font-size: 12px; } }

/* ===== notifikasi tunggal ===== */
#toasts { gap: 0; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s; }
/* ===== chip uang / gotong royong / buff di kartu profil ===== */
.pf-row { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.mini-chip { border: 1.5px solid var(--ink); border-radius: 8px; padding: 1px 6px; font: 700 11px 'Fredoka'; cursor: pointer; background: #fff; color: var(--ink); white-space: nowrap; }
.mini-chip.money { background: #fde68a; } .mini-chip.gr { background: #dbeafe; } .mini-chip.buff { background: #bbf7d0; cursor: default; }
/* ===== label 3D ===== */
.lb .nm.locked { background: rgba(120, 53, 15, .85); }
.lb.plot .nm { background: rgba(254, 243, 199, .95); color: #78350f; border: 1.5px solid #b45309; font-size: 11px; }
.lb.house .nm { background: rgba(22, 163, 74, .88); }
/* ===== toko ===== */
.shop-money { display: flex; flex-direction: column; align-items: center; background: #fef3c7; border: 2px solid var(--ink); border-radius: 12px; padding: 6px; margin-bottom: 8px; font: 600 15px 'Fredoka'; }
.shop-money b { font-size: 22px; } .shop-money small { font-size: 11px; color: var(--muted); }
.plot-map { background: #dcfce7; border: 2px solid var(--ink); border-radius: 12px; padding: 8px; }
.plot-legend { display: flex; gap: 8px; justify-content: center; font-size: 11px; margin-bottom: 6px; }
.plot-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; border: 1px solid var(--ink); }
.plot-legend .free::before { background: #bef264; } .plot-legend .mine::before { background: #60a5fa; } .plot-legend .other::before { background: #fca5a5; }
.plot-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.plot { border: 2px solid var(--ink); border-radius: 8px; padding: 4px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; font: 600 12px 'Fredoka'; min-height: 44px; }
.plot small { font-size: 10px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plot.free { background: #d9f99d; } .plot.mine { background: #93c5fd; } .plot.other { background: #fecaca; }
.plot.sel { outline: 3px solid var(--red); outline-offset: 1px; }
.plot-road { text-align: center; font-size: 10px; color: #475569; background: #cbd5e1; border-radius: 6px; margin: 4px 0; }
.plot-park { text-align: center; font-size: 10px; color: #166534; margin: 4px 0; }
.plot-det { padding: 10px; margin: 8px 0; } .plot-det p { margin: 4px 0; }
.colors { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; } .sw.on { outline: 3px solid var(--red); }
.models { display: flex; flex-direction: column; gap: 6px; }
.model { display: grid; grid-template-columns: 40px 1fr; gap: 6px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.model .mi { font-size: 28px; text-align: center; } .model small { display: block; font-size: 11px; color: var(--muted); } .model small.price { color: var(--red); font-weight: 700; font-size: 13px; }
.model .btn, .model i { grid-column: 1 / -1; font-size: 12px; } .model i { color: var(--muted); text-align: center; } .model.off { opacity: .6; }
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.cos { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 12px; }
.cos.on { border-color: var(--green, #16a34a); background: #f0fdf4; }
.cos .ci { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; border: 2px solid var(--ink); }
.cos .btn { font-size: 11px; padding: 3px 8px; } .cos .lock { color: var(--muted); font-size: 10px; }
.btn.mini { font-size: 10px; padding: 1px 6px; margin-left: 6px; }
.gr-st { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px; margin: 6px 0; }
.gr-st .mi { font-size: 28px; text-align: center; } .gr-st small { display: block; font-size: 11px; color: var(--muted); } .gr-st.open { background: #f0fdf4; border-color: #16a34a; } .gr-st.cur { border-color: var(--red); }
.gr-st .xp { margin: 4px 0 2px; }
.row2.wrap { flex-wrap: wrap; }
/* ===== minigame baru ===== */
.tt-stage { position: relative; height: 230px; background: linear-gradient(#e0f2fe, #f0f9ff); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; touch-action: none; }
.tt-stage .pt-bg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; opacity: .18; }
.tt { position: absolute; transform: translate(-50%, -50%); font-size: 34px; background: none; border: 0; cursor: pointer; animation: pop .15s; padding: 6px; }
.mem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mem-c { min-height: 58px; border: 2px solid var(--ink); border-radius: 10px; background: var(--teal); color: transparent; font: 600 12px 'Fredoka'; cursor: pointer; padding: 4px; }
.mem-c span { visibility: hidden; } .mem-c.up { background: #fff; color: var(--ink); } .mem-c.up span { visibility: visible; } .mem-c.ok { background: #bbf7d0; }
.sl-val { text-align: center; font: 700 20px 'Fredoka'; margin: 6px 0; } .sl-val b { font-size: 30px; color: var(--red); }
.sl { width: 100%; height: 36px; accent-color: var(--red); } .sl-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
/* ===== tutorial ===== */
.tut { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 70px); transform: translateX(-50%); z-index: 45; width: min(420px, 94vw); pointer-events: none; }
.tut-card { padding: 10px 12px; pointer-events: auto; border: 3px solid var(--ink); background: #fffbeb; }
.tut-top { display: flex; justify-content: space-between; align-items: center; font: 700 11px 'Fredoka'; color: var(--muted); }
.tut-x { border: 0; background: none; cursor: pointer; font-size: 14px; }
.tut-card b { font: 700 16px 'Fredoka'; } .tut-card p { margin: 4px 0 8px; font-size: 13px; line-height: 1.45; }
.tut-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .tut-btns small { color: var(--muted); font-weight: 600; }
.tut-btns .btn.big { width: auto; margin: 0; padding: 6px 16px; }
.tut-hl { outline: 4px solid #f59e0b !important; outline-offset: 2px; animation: tutpulse 1s infinite; position: relative; z-index: 44; }
@keyframes tutpulse { 50% { outline-color: #e63946; } }
@media (max-width: 760px) { .tut { bottom: calc(var(--nav-h) + var(--safe-b) + 60px); } .tut-card p { font-size: 12px; } .plot { min-height: 40px; font-size: 11px; } }
/* ===== perumahan 4 kompleks & tempat usaha ===== */
.tabs.small button { font-size: 12px; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tabs.small button small { font-size: 9px; opacity: .7; }
.biz-box { background: #fef9c3; border: 2px dashed #ca8a04; border-radius: 10px; padding: 8px; margin: 6px 0; font-size: 13px; }
.biz-box .btn { padding: 3px 10px; font-size: 12px; margin-left: 4px; } .biz-box small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.model small.inc { color: #15803d; font-weight: 700; }
.lb.house.biz .nm { background: rgba(234, 88, 12, .9); }
.plot-row { gap: 3px; } .plot b { font-size: 11px; }
/* tenaga & toilet */
.mini-chip.need { background: #e0f2fe; } .mini-chip.need.warn { background: #fecaca; animation: pulse 1s infinite; }
/* bar progres kerja otomatis / istirahat / toilet */
.workbar { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; width: min(360px, calc(100vw - 32px)); background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 8px 12px; box-shadow: var(--shadow); }
.workbar .wb-ico { font-size: 28px; } .workbar .wb-main { flex: 1; min-width: 0; } .workbar b { display: block; font: 600 14px 'Fredoka'; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workbar small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workbar .wb-track { height: 10px; border: 2px solid var(--ink); border-radius: 8px; background: #f1f5f9; overflow: hidden; margin-top: 4px; } .workbar .wb-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #34d399, #3cc8b4); transition: width .1s linear; }
.workbar .wb-sec { font: 700 15px 'Fredoka'; min-width: 30px; text-align: right; }
/* banner rush hour: mengecil setelah 10 detik */
.event-banner { cursor: pointer; } .event-banner .ev-x { border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 8px; width: 24px; height: 24px; font: 700 13px 'Fredoka'; cursor: pointer; margin-left: 4px; }
.event-banner.mini { padding: 2px 9px 2px 4px; gap: 4px; animation: none; background: #dc2626; border-radius: 999px; }
.event-banner.mini .ev-ico { font-size: 16px; } .event-banner.mini small { font: 700 11px 'Fredoka'; opacity: 1; }
/* 💎 Dukung (Saweria) */
.pay-card { padding: 10px 12px; margin-bottom: 10px; border: 2px solid #a855f7; background: #faf5ff; }
.pay-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; } .pay-h .pi { font-size: 30px; } .pay-h div { flex: 1; } .pay-h b { display: block; font: 600 16px 'Fredoka'; } .pay-h small { color: var(--muted); font-size: 12px; }
.pay-h em { font: 700 15px 'Fredoka'; font-style: normal; background: #fde68a; border: 2px solid var(--ink); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.spec-grid.mini { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-bottom: 8px; } .spec-grid.mini .spec { padding: 6px; } .spec-grid.mini .spec small { font-size: 11px; } .spec.on { background: #fde68a; border-color: var(--ink); }
.pay-steps { text-align: left; padding-left: 20px; margin: 6px 0 10px; font-size: 14px; } .pay-steps li { margin: 4px 0; }
.pay-code { display: flex; gap: 8px; align-items: center; margin-top: 4px; } .pay-code b { font: 700 22px 'Fredoka'; letter-spacing: 2px; background: #fef9c3; border: 2px dashed var(--ink); border-radius: 10px; padding: 2px 10px; user-select: all; }
.pay-wait { font: 600 14px 'Fredoka'; color: #7c3aed; animation: pulse 1.4s infinite; }
a.btn { display: block; text-align: center; text-decoration: none; }
@media (max-width: 760px) { .spec-grid.mini { grid-template-columns: 1fr 1fr; } }
.pay-card.done { opacity: .75; }
/* shift, cuaca, renovasi, bantu pasien, kode hadiah */
#shopBody .tabs { flex-wrap: wrap; } #shopBody .tabs button { flex: 1 1 30%; }
#clock { cursor: pointer; } #clock.night { background: #1e293b; color: #fde68a; }
.lb .nm.cs { background: #e0f2fe; border-color: #0284c7; font-size: 11px; }
.lb .poor { display: block; margin: 0 auto 2px; width: max-content; background: #fce7f3; border: 2px solid #db2777; color: #9d174d; border-radius: 8px; padding: 1px 6px; font: 600 11px 'Fredoka', sans-serif; }
.lb .plakat { display: block; margin: 2px auto 0; width: max-content; background: linear-gradient(#fde68a, #f59e0b); border: 2px solid #92400e; color: #451a03; border-radius: 6px; padding: 0 6px; font: 600 10px 'Fredoka', sans-serif; }
.reno { padding: 10px 12px; margin-bottom: 8px; } .reno-h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; } .reno-h .pi { font-size: 26px; } .reno-h small { display: block; color: var(--muted); }
.reno .xp { height: 10px; background: #e5e7eb; border-radius: 6px; overflow: hidden; border: 2px solid var(--ink); } .reno .xp div { height: 100%; background: linear-gradient(90deg, #f59e0b, #facc15); }
.reno-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .reno-btns .btn { flex: 1; } .reno-top { display: block; margin-top: 6px; color: #92400e; }
.help { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 8px; border-color: #db2777; background: #fdf2f8; } .help .pi { font-size: 26px; } .help > div { flex: 1; } .help small { display: block; color: var(--muted); }
.code-in { width: 100%; box-sizing: border-box; font: 700 22px 'Fredoka', sans-serif; text-align: center; letter-spacing: 3px; text-transform: uppercase; padding: 8px; border: 3px solid var(--ink); border-radius: 12px; margin: 6px 0; }
#rainShade { position: fixed; inset: 0; pointer-events: none; z-index: 4; background: linear-gradient(rgba(51,65,85,.28), rgba(71,85,105,.12)); opacity: 0; transition: opacity 2.5s; } #rainShade.on { opacity: 1; }
