/* ECO WORLD — gaya visual: game 2D yang cerah, rounded, nature-inspired. */
:root {
  --forest: #1b4332;
  --green: #2f9e44;
  --green-d: #237032;
  --leaf: #69db7c;
  --mint: #d3f9d8;
  --sky: #1c7ed6;
  --sky-l: #d0ebff;
  --sun: #fab005;
  --sun-l: #fff3bf;
  --earth: #a9714b;
  --earth-l: #f4e6d4;
  --cream: #fffaf0;
  --bg: #eef7e6;
  --ink: #1f2d23;
  --muted: #6b7a6f;
  --line: #dfe9d8;
  --danger: #e03131;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 6px 20px rgba(27, 67, 50, 0.10);
  --shadow-lg: 0 18px 50px rgba(27, 67, 50, 0.22);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.in-app { height: 100vh; height: 100dvh; overflow: hidden; }
body.in-app #app { height: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 900; }
p { margin: 0 0 .8em; line-height: 1.55; }
a { color: var(--sky); }
small { font-size: .82em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--leaf); }
label { display: block; font-weight: 800; font-size: .9rem; color: var(--forest); }
label > input, label > select, label > textarea { margin-top: 6px; font-weight: 600; }
kbd { background: #fff; color: var(--forest); border-radius: 6px; padding: 1px 7px; font-weight: 900; box-shadow: 0 2px 0 rgba(0,0,0,.2); font-family: var(--font); }
.muted { color: var(--muted); }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.row.start { align-items: flex-start; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.wrap { flex-wrap: wrap; }
.gap { gap: 10px; }
.stack > * + * { margin-top: 16px; }
.hidden { display: none !important; }

/* ---------- tombol ---------- */
.btn {
  --b: #e9efe6; --bf: var(--forest); --bb: #cfd9ca;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 14px; border: 0;
  background: var(--b); color: var(--bf); font-weight: 900; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--bb); transition: transform .08s, box-shadow .08s, filter .15s; white-space: nowrap; line-height: 1.1;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bb); }
.btn:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
.btn.primary { --b: var(--green); --bf: #fff; --bb: var(--green-d); }
.btn.sky { --b: var(--sky); --bf: #fff; --bb: #1864ab; }
.btn.sun { --b: var(--sun); --bf: #4a3500; --bb: #e67700; }
.btn.danger { --b: var(--danger); --bf: #fff; --bb: #a61e1e; }
.btn.ok { --b: var(--mint); --bf: var(--green-d); --bb: #b2f2bb; }
.btn.ghost { --b: #fff; --bf: var(--forest); --bb: var(--line); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.sm { padding: 8px 12px; font-size: .88rem; border-radius: 11px; }
.btn.xs { padding: 5px 9px; font-size: .78rem; border-radius: 9px; box-shadow: 0 2px 0 var(--bb); }
.btn.lg { padding: 13px 22px; font-size: 1.02rem; }
.btn.xl { padding: 16px 26px; font-size: 1.1rem; border-radius: 18px; }
.btn.block { display: flex; width: 100%; }
.btn small { font-weight: 700; opacity: .8; }
.link { background: none; border: 0; color: var(--sky); font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; }
.center-block { display: block; margin: 14px auto 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 900; white-space: nowrap; }
.badge-ok { background: #d3f9d8; color: #2b8a3e; }
.badge-ok2 { background: #2f9e44; color: #fff; }
.badge-warn { background: #fff3bf; color: #b35c00; }
.badge-info { background: #d0ebff; color: #1864ab; }
.badge-muted { background: #e9ecef; color: #495057; }
.badge-bad { background: #ffe3e3; color: #c92a2a; }
.badge-sun { background: var(--sun); color: #4a3500; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 8px; background: #f1f5ee; color: var(--forest); font-size: .76rem; font-weight: 800; }
.tag.diff-mudah { background: #d3f9d8; } .tag.diff-sedang { background: #fff3bf; } .tag.diff-sulit { background: #ffe3e3; }

.meter { height: 10px; background: #e6eee2; border-radius: 99px; overflow: hidden; }
.meter.thin { height: 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--green)); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.meter.green i { background: linear-gradient(90deg, #8ce99a, #2f9e44); }
.meter.vp i { background: linear-gradient(90deg, #ffe066, #f59f00); }
.meter-label { display: flex; justify-content: space-between; font-size: .82rem; margin: 10px 0 5px; color: var(--muted); }
.meter-label b { color: var(--forest); }
.note { background: #f4fbef; border: 1.5px dashed #b2dfa8; border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; }
.note.subtle { background: transparent; border-color: var(--line); color: var(--muted); font-size: .83rem; }
.empty { padding: 30px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--r); }
.card { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 1.08rem; }
.grid { display: grid; gap: 16px; }
.cols2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-top: 18px; align-items: start; }
.cols2.wide-left { grid-template-columns: 1.5fr 1fr; }
.kpi { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 12px 0; }
.kpi > div { background: #f4f8f1; border-radius: 12px; padding: 9px; text-align: center; }
.kpi b { display: block; font-size: 1.1rem; color: var(--forest); }
.kpi small { color: var(--muted); font-size: .72rem; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); cursor: pointer; }
.brand .logo { font-size: 1.9rem; width: 46px; height: 46px; display: grid; place-items: center; background: linear-gradient(135deg, #b2f2bb, #74c0fc); border-radius: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.brand b { display: block; font-size: 1.1rem; letter-spacing: .04em; }
.brand small { color: var(--muted); font-weight: 700; font-size: .72rem; }

/* ================= SHELL ================= */
.shell { display: grid; grid-template-columns: 228px 1fr; height: 100%; }
.sidenav { background: linear-gradient(180deg, #1b4332, #2d6a4f); color: #fff; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.sidenav .brand { color: #fff; padding: 4px 6px 10px; }
.sidenav .brand small { color: #b7e4c7; }
.sidenav nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: #d8f3dc; text-decoration: none; font-weight: 800; transition: background .15s; }
.nav-item .ni { font-size: 1.25rem; width: 28px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.on { background: #fff; color: var(--forest); box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.side-foot { margin-top: auto; }
.side-foot .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.bottomnav { display: none; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.topbar { height: var(--nav-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #fff; border-bottom: 2px solid var(--line); z-index: 5; }
.tb-user { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 12px; text-align: left; min-width: 0; }
.tb-user:hover { background: #f4f8f1; }
.head { border-radius: 50%; background: radial-gradient(circle at 50% 30%, #e7f5ff, #b2f2bb); display: block; flex: none; }
.tb-meta { display: flex; flex-direction: column; min-width: 0; }
.tb-meta b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tb-meta small { color: var(--muted); font-weight: 700; font-size: .72rem; }
.lvbar { width: 130px; height: 6px; background: #e6eee2; border-radius: 9px; margin: 3px 0; overflow: hidden; }
.lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffe066, #f59f00); }
.tb-chips { display: flex; gap: 8px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #ebfbee; border: 2px solid #b2f2bb; font-weight: 800; color: var(--forest); white-space: nowrap; }
.chip b { font-size: 1rem; }
.chip small { color: var(--muted); font-size: .7rem; }
.chip-vp { background: #fff9db; border-color: #ffe066; cursor: pointer; }
.chip-streak { background: #fff4e6; border-color: #ffc078; }
.chip.pulse { animation: pulse .7s ease; }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(105,219,124,.3); } 100% { transform: scale(1); } }
.tb-bell { position: relative; border: 0; background: #f4f8f1; width: 44px; height: 44px; border-radius: 14px; font-size: 1.25rem; cursor: pointer; flex: none; }
.tb-bell .dot { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 900; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }

.stage { position: relative; flex: 1; min-height: 0; }
.world-layer { position: absolute; inset: 0; overflow: hidden; background: #2f6b3a; }
.world-layer canvas { display: block; touch-action: none; }
.page { position: absolute; inset: 0; overflow-y: auto; display: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M20 30c6-8 14-8 18 0-6 4-12 4-18 0z' fill='%23d8ecd0' opacity='.6'/%3E%3C/svg%3E"); -webkit-overflow-scrolling: touch; }
.page.show { display: block; }
.page-inner { max-width: 1180px; margin: 0 auto; padding: 22px 22px 40px; }
.ptitle { font-size: 1.7rem; }
.lead { color: var(--muted); font-size: 1.02rem; }
.stitle { margin: 26px 0 12px; font-size: 1.15rem; }
.stitle small { font-weight: 700; color: var(--muted); font-size: .8rem; margin-left: 6px; }

/* ================= HUD ================= */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-panels { position: absolute; top: 14px; left: 14px; width: 292px; max-height: calc(100% - 28px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.hud-card { background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-lg); }
.hud-card h4 { margin: 0; font-size: 1rem; }
.hud-card small { color: var(--muted); }
.hud-card .btn.block { margin-top: 10px; }
.ring-wrap { position: relative; width: 54px; height: 54px; flex: none; }
.ring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; }
.ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e6eee2; stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .6s; }
.quick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin-top: 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font-weight: 800; color: var(--ink); transition: border-color .15s, transform .1s; }
.quick:hover { border-color: var(--leaf); transform: translateX(2px); }
.qi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--c) 25%, white); flex: none; }
.qt { flex: 1; font-size: .88rem; }
.qp { color: var(--green); font-weight: 900; }
.done-msg { font-weight: 700; color: var(--green); margin: 10px 0 0; }
.guide-head { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; cursor: pointer; padding: 0; font-weight: 800; color: var(--muted); }
.guide.collapsed .steps { display: none; }
.steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 5px 0 5px 30px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%; background: #e9ecef; color: #495057; display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.steps li.ok { color: var(--muted); text-decoration: line-through; }
.steps li.ok::before { content: "✓"; background: var(--green); color: #fff; }
.steps a { color: var(--sky); font-weight: 800; }
.steps.big li { font-size: .95rem; padding: 7px 0 7px 32px; }
.hud-toggle { display: none; position: absolute; top: 10px; left: 10px; border: 0; background: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 900; color: var(--forest); box-shadow: var(--shadow-lg); cursor: pointer; }
.hud-feed { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(27,67,50,.85); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: .84rem; font-weight: 700; max-width: min(520px, 60%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none !important; }
.hud-feed:empty { display: none; }
.hud-feed small { opacity: .7; }
.hud-near { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); }
.hud-near button { border: 0; background: var(--sun); color: #4a3500; font-weight: 900; padding: 12px 20px; border-radius: 16px; box-shadow: 0 5px 0 #e67700, var(--shadow-lg); cursor: pointer; font-size: 1rem; animation: bob 1.4s ease-in-out infinite; white-space: nowrap; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.hud-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.hud-zoom button { width: 46px; height: 46px; border-radius: 14px; border: 0; background: #fff; font-size: 1.3rem; font-weight: 900; color: var(--forest); box-shadow: 0 4px 0 #cfd9ca, var(--shadow); cursor: pointer; }
.hud-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.88); border-radius: 99px; padding: 7px 16px; font-size: .8rem; font-weight: 700; color: var(--forest); white-space: nowrap; pointer-events: none !important; }
.dpad { position: absolute; left: 16px; bottom: 16px; width: 150px; height: 150px; display: none; }
.dpad button { position: absolute; width: 52px; height: 52px; border-radius: 16px; border: 0; background: rgba(255,255,255,.88); color: var(--forest); font-size: 1.2rem; box-shadow: 0 4px 0 rgba(0,0,0,.18); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.dpad button.on { background: var(--sun); transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.dpad [data-dpad=up] { left: 49px; top: 0; } .dpad [data-dpad=down] { left: 49px; bottom: 0; }
.dpad [data-dpad=left] { left: 0; top: 49px; } .dpad [data-dpad=right] { right: 0; top: 49px; }
@media (pointer: coarse) { .dpad { display: block; } .hud-hint { display: none; } }

/* ================= MISI ================= */
.tabs { display: flex; gap: 8px; margin: 10px 0 18px; flex-wrap: wrap; }
.tabs.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 900; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: 0 4px 0 #0b2a1e; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fchip { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font-weight: 800; cursor: pointer; color: var(--forest); font-size: .85rem; }
.fchip.on { background: var(--mint); border-color: var(--leaf); }
.fchip.locked { opacity: .6; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #2f9e44, #74b816); color: #fff; padding: 20px 22px; border-radius: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.banner.sky { background: linear-gradient(120deg, #1c7ed6, #22b8cf); }
.banner.sun { background: linear-gradient(120deg, #f08c00, #fab005); }
.banner h3 { font-size: 1.3rem; }
.banner p { margin: 0; opacity: .92; max-width: 560px; }
.banner-stats { display: flex; gap: 10px; }
.banner-stats > div { background: rgba(255,255,255,.18); border-radius: 14px; padding: 8px 14px; text-align: center; }
.banner-stats b { display: block; font-size: 1.25rem; }
.banner-stats small { opacity: .9; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.mcard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.mcard:hover { transform: translateY(-3px); }
.mcard.done { opacity: .8; }
.mcard-art { position: relative; height: 104px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 35%, white), color-mix(in srgb, var(--c) 70%, white)); }
.mcard-art span { font-size: 3.4rem; filter: drop-shadow(0 6px 4px rgba(0,0,0,.15)); }
.mcard-art em { position: absolute; top: 10px; right: 10px; background: var(--green); color: #fff; font-style: normal; font-weight: 900; font-size: .78rem; padding: 4px 10px; border-radius: 99px; }
.mcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.mcard-body h4 { font-size: 1.05rem; margin: 0; }
.mcard-body p { font-size: .9rem; color: #43524a; margin: 8px 0; }
.sub { color: var(--muted); font-size: .8rem; font-weight: 700; font-style: italic; }
.pts { background: var(--sun-l); color: #a35f00; font-weight: 900; border-radius: 12px; padding: 5px 10px; white-space: nowrap; }
.pts.big { font-size: 1.2rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.mcard-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mcard-actions .row .btn { flex: 1; }
.meta { list-style: none; padding: 0; margin: 6px 0 10px; font-size: .86rem; color: #43524a; }
.meta li { padding: 2px 0; }
.meta.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.tier { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.tier small { color: var(--muted); }

.ecard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ecover { position: relative; height: 120px; background-size: cover !important; background-position: center !important; display: grid; place-items: center; cursor: pointer; }
.ecover.big { height: 190px; border-radius: 18px; margin-bottom: 14px; }
.ecover > span { font-size: 3.6rem; filter: drop-shadow(0 6px 6px rgba(0,0,0,.2)); }
.ecover-top { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.ebody { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ebody h4 { font-size: 1.05rem; cursor: pointer; margin: 2px 0 4px; }
.ebody .row { margin-top: 12px; }
.cat { color: var(--green); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }

/* ================= VILLAGE ================= */
.vhero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; background: linear-gradient(130deg, var(--vc), #40c057 60%, #94d82d); color: #fff; padding: 24px; border-radius: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.vhero::after { content: "🌳🌲🌳"; position: absolute; right: -10px; bottom: -22px; font-size: 5rem; opacity: .15; letter-spacing: -.2em; }
.vhero h2 { font-size: 2rem; margin: 4px 0; }
.vhero p { opacity: .92; font-style: italic; }
.vhero small { opacity: .85; font-weight: 800; }
.code { background: rgba(255,255,255,.18); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.code .link { color: #fff; }
.vstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vstats > div { background: rgba(255,255,255,.17); border-radius: 14px; padding: 10px; }
.vstats b { font-size: 1.35rem; display: block; }
.vstats small { opacity: .9; font-weight: 700; font-size: .74rem; }
.vstats .meter { margin-top: 6px; background: rgba(255,255,255,.3); }
.vstats .meter i { background: #ffe066; }
.fgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.fcard { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 3px solid transparent; }
.fcard.can { border-color: var(--sun); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(250,176,5,.25), var(--shadow); } }
.fcard.built { border-color: var(--leaf); }
.fthumb { width: 100%; height: 130px; display: block; background: #c9a77c; }
.fcard.built .fthumb { background: #84d472; }
.fcard:not(.built) .fthumb { filter: grayscale(.85) brightness(1.05) opacity(.65); }
.flock { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font-size: 2rem; filter: drop-shadow(0 3px 3px rgba(0,0,0,.2)); }
.fbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fbody h4 { margin: 0; font-size: 1rem; }
.fbody p { font-size: .85rem; color: #43524a; margin: 0; flex: 1; }
.cost { color: #b35c00; }
.members { list-style: none; padding: 0; margin: 0 0 10px; }
.members li { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.members li:hover { background: #f8fbf6; }
.members li.me { background: #fff9db; cursor: default; }
.mm { flex: 1; min-width: 0; }
.mm b { display: block; font-size: .92rem; }
.mm small { color: var(--muted); }
.mm .meter { margin-top: 4px; }
.mc { font-weight: 900; color: #b35c00; white-space: nowrap; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.feed li span { font-size: 1.2rem; }
.feed small { display: block; color: var(--muted); }
.rank-list { list-style: none; padding: 0; margin: 0 0 10px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; }
.rank-list li.me { background: #ebfbee; }
.rank-list li div { flex: 1; }
.rank-list small { display: block; color: var(--muted); }
.rk { font-weight: 900; color: var(--muted); width: 32px; }
.card form.row { margin: 10px 0; }
.card form.row input { flex: 1; }

/* ================= SHOP ================= */
.wallet { background: #fff; border-radius: 99px; padding: 9px 18px; box-shadow: var(--shadow); font-weight: 700; }
.grid.shop { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 14px; }
.scard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.scard:hover { transform: translateY(-3px); }
.scard.owned { opacity: .75; }
.sthumb { position: relative; height: 140px; background: radial-gradient(circle at 50% 80%, #b2f2bb, #e6fcf5 70%); }
.sthumb canvas { width: 100%; height: 100%; display: block; }
.real-tag { position: absolute; top: 8px; left: 8px; background: #fff; color: var(--green); font-size: .7rem; font-weight: 900; padding: 3px 8px; border-radius: 99px; }
.sbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sbody h4 { margin: 0; font-size: .98rem; }
.sbody p { font-size: .82rem; color: var(--muted); margin: 0; flex: 1; }

/* ================= IMPACT ================= */
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .si { font-size: 1.6rem; position: absolute; right: 12px; top: 10px; opacity: .9; }
.stat b { display: block; font-size: 1.6rem; color: var(--forest); margin-top: 18px; }
.stat small { color: var(--muted); font-weight: 700; }
.imap { width: 100%; height: auto; display: block; margin-top: 8px; }
.imap .sea { fill: #d0ebff; }
.imap .isl polygon { fill: #b2f2bb; stroke: #69db7c; stroke-width: 1.5; stroke-linejoin: round; }
.imap .mk { cursor: pointer; outline: none; }
.imap .mk circle { fill: var(--green); stroke: #fff; stroke-width: 2.5; }
.imap .mk .pulse { fill: rgba(47,158,68,.22); stroke: none; animation: mk 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.imap .mk.mine circle:not(.pulse) { fill: var(--sun); }
.imap .mk.on circle:not(.pulse), .imap .mk:hover circle:not(.pulse), .imap .mk:focus circle:not(.pulse) { fill: var(--sky); }
.imap .mk text { font-size: 12px; font-weight: 800; fill: var(--forest); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.imap .mk:hover text, .imap .mk.on text, .imap .mk:focus text { opacity: 1; }
@keyframes mk { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map-detail { margin-top: 12px; background: #f8fbf6; border-radius: 14px; padding: 12px 14px; }
.mini-list { list-style: none; padding: 0; margin: 8px 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .87rem; flex-wrap: wrap; }
.mini-list li[data-act] { cursor: pointer; }
.hbar { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 10px; margin: 8px 0; font-size: .85rem; }
.hbar b { text-align: right; }
.hbar.me span { font-weight: 900; color: var(--green); }
.hbar .meter i.st-Planted { background: #74c0fc; } .hbar .meter i.st-Monitoring { background: #ffd43b; }
.hbar .meter i.st-NeedsFollowup { background: #ff8787; } .hbar .meter i.st-Survived { background: #2f9e44; }
.mine-card { background: linear-gradient(160deg, #fff, #f4fce3); }
.mini-stat { background: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; box-shadow: 0 2px 0 var(--line); flex: 1; min-width: 70px; }
.mini-stat b { display: block; font-size: 1.3rem; color: var(--forest); }
.mini-stat small { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 760px; }
.tbl th { text-align: left; padding: 10px; background: #f1f8ec; color: var(--forest); font-weight: 900; position: sticky; top: 0; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #f8fbf6; }
.tbl tr.mine { background: #fff9db; }
#tree-q { width: 260px; } #tree-s { width: 170px; }
.csr h3 { margin-bottom: 2px; }
.csr-ico { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--mint); border-radius: 14px; flex: none; }
.csr .grid.kpi { grid-template-columns: repeat(4, 1fr); }
.csr h4 { margin: 12px 0 4px; font-size: .9rem; }
.csr .hbar { grid-template-columns: 110px 1fr 46px; }
.csr .btn.block { margin-top: 12px; }

/* ================= LEADERBOARD ================= */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 10px 0 18px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 32%; max-width: 160px; text-align: center; }
.pod b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pod small { color: var(--muted); font-weight: 800; }
.pod-bar { width: 100%; border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-size: 2rem; background: linear-gradient(180deg, #ffe066, #f59f00); }
.pod.r1 .pod-bar { height: 110px; } .pod.r2 .pod-bar { height: 80px; background: linear-gradient(180deg, #e9ecef, #adb5bd); } .pod.r3 .pod-bar { height: 62px; background: linear-gradient(180deg, #ffd8a8, #d9480f); }
.pod.me b { color: var(--green); }
.pod-ico { font-size: 2.2rem; } .pod-ico.sm { font-size: 1.4rem; width: 30px; text-align: center; }
.lb { list-style: none; padding: 0; margin: 0; }
.lb li, .lb.me-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 10px; }
.lb li.me, .lb.me-row { background: #ebfbee; }
.lb li div, .lb.me-row div { flex: 1; min-width: 0; }
.lb small { display: block; color: var(--muted); }
.sc { font-weight: 900; text-align: right; color: var(--forest); }
.sc small { font-weight: 700; font-size: .68rem; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ach { background: #f4f6f3; border-radius: 16px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; filter: grayscale(1); opacity: .7; }
.ach.done { background: linear-gradient(160deg, #fff9db, #d3f9d8); filter: none; opacity: 1; box-shadow: 0 3px 0 #b2f2bb; }
.ach .ai { font-size: 2rem; }
.ach b { font-size: .86rem; }
.ach small { color: var(--muted); font-size: .72rem; }

/* ================= PROFIL ================= */
.av-big { background: radial-gradient(circle at 50% 70%, #b2f2bb, #e7f5ff 70%); border-radius: 20px; padding: 6px; flex: none; }
.profile-card form input { font-weight: 900; font-size: 1.1rem; }
.ed-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; margin: 10px 0; }
.ed-row > span { font-weight: 800; color: var(--muted); font-size: .88rem; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); margin: 3px; cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--green); }
.acts { list-style: none; padding: 0; margin: 0; }
.acts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acts img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.act-ico { width: 48px; height: 48px; display: grid; place-items: center; background: #f4f8f1; border-radius: 12px; font-size: 1.5rem; flex: none; }
.acts .grow small { display: block; color: var(--muted); }
.acts .row { margin-top: 6px; }
.act-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.act-side b { color: var(--green); }

/* ================= MODAL ================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 35, 25, .5); display: grid; place-items: center; padding: 16px; z-index: 50; opacity: 0; transition: opacity .18s; }
.modal-backdrop.show { opacity: 1; }
.modal { position: relative; background: var(--cream); border-radius: 24px; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.97); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.modal-backdrop.show .modal { transform: none; }
.modal.sm { max-width: 400px; } .modal.md { max-width: 560px; } .modal.lg { max-width: 760px; } .modal.xl { max-width: 1040px; }
.modal-body { padding: 24px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-weight: 900; color: var(--muted); z-index: 2; }
.modal h3 { font-size: 1.25rem; padding-right: 30px; }
.modal h4 { margin-top: 16px; }
.confirm p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.form-grid .full { grid-column: 1 / -1; }
.mf-head { display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--c) 18%, white); padding: 14px; border-radius: 18px; margin-bottom: 12px; padding-right: 40px; }
.mf-head h3 { margin: 2px 0 0; padding: 0; }
.mf-head small { font-weight: 800; color: var(--muted); }
.mf-head .pts { margin-left: auto; }
.mf-ico { font-size: 2.6rem; width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: 18px; flex: none; }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.methods.three { grid-template-columns: repeat(3, 1fr); }
.method { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 2.5px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; cursor: pointer; font-weight: 700; color: var(--ink); transition: border-color .15s; }
.method input { display: none; }
.method small { color: var(--muted); font-weight: 600; }
.method em { font-style: normal; background: var(--sun); color: #4a3500; font-size: .66rem; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
.method.on { border-color: var(--green); background: #f4fce3; box-shadow: 0 3px 0 #b2f2bb; }
.est { color: var(--green); }
.proof { margin-top: 14px; background: #fff; border-radius: 16px; padding: 14px; border: 2px dashed #c0e6b8; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.preview { display: flex; align-items: flex-end; gap: 12px; }
.preview img { width: 220px; max-width: 70%; border-radius: 14px; box-shadow: var(--shadow); }
.sensors { margin-top: 10px; }
.verifying { text-align: center; padding: 20px 10px; }
.spinner { font-size: 3rem; animation: spin 1.2s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks { list-style: none; padding: 0; margin: 14px auto; text-align: left; max-width: 460px; }
.checks li { padding: 7px 10px; border-radius: 10px; margin: 5px 0; background: #fff; font-size: .9rem; animation: slidein .3s ease; }
.checks li span { font-weight: 900; color: var(--green); margin-right: 4px; }
.checks li.warn span { color: #e67700; }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); } }
.result { text-align: center; padding: 10px 0; }
.res-ico { font-size: 3.6rem; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(0); } }
.result h3 { font-size: 1.6rem; padding: 0; }
.result.autoapproved h3 { color: var(--green); } .result.limitedtrust h3 { color: #e67700; } .result.manualreview h3 { color: #495057; }
.res-pts { font-size: 1.4rem; font-weight: 900; color: var(--green); }
.res-pts small { font-size: .9rem; color: #b35c00; }
.tree-id { background: var(--mint); border-radius: 14px; padding: 10px; margin: 10px 0 14px; font-weight: 700; }
.big-thumb { width: 160px; height: 160px; display: block; margin: 0 auto 6px; }
.big-thumb.wide { width: 240px; height: 170px; }
.mid-thumb { width: 96px; height: 96px; flex: none; background: radial-gradient(circle at 50% 80%, #b2f2bb, #fff 70%); border-radius: 18px; }
.fac-thumb { width: 100%; height: 180px; display: block; border-radius: 16px; background: #84d472; margin-bottom: 12px; }
.pay .price { font-size: 1.6rem; font-weight: 900; color: var(--forest); }
.alloc { background: #fff; border-radius: 14px; padding: 12px 14px; margin: 14px 0; font-size: .9rem; display: flex; flex-direction: column; gap: 8px; }
.covers { display: flex; gap: 10px; flex-wrap: wrap; }
.cover-opt input { display: none; }
.cover-opt span { width: 74px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; border: 3px solid transparent; cursor: pointer; background-size: cover; background-position: center; }
.cover-opt input:checked + span { border-color: var(--forest); box-shadow: 0 3px 0 var(--forest); }
.upload-cover span { background: #fff; border: 2px dashed var(--line); font-size: 1.2rem; flex-direction: column; line-height: 1; }
.upload-cover small { font-size: .65rem; font-weight: 800; }
.upload-cover { position: relative; }
.upload-cover input { display: block; position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.evd h2 { font-size: 1.5rem; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pp { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #b2f2bb, #74c0fc); display: grid; place-items: center; font-weight: 900; font-size: .78rem; color: var(--forest); border: 2px solid #fff; }
.pp.more { background: #e9ecef; }
.actions { margin: 14px 0; }
.organizer { background: #fff9db; border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.organizer h4 { margin: 0 0 8px; }
.publink { margin-top: 10px; }
.publink small { font-weight: 800; color: var(--muted); }
.publink input { font-size: .82rem; }
.qr-img { width: 220px; height: 220px; border-radius: 14px; border: 8px solid #fff; box-shadow: var(--shadow); }
.scanner { position: relative; width: 200px; height: 200px; margin: 10px auto; border-radius: 18px; overflow: hidden; border: 6px solid var(--forest); }
.scanner img { width: 100%; height: 100%; display: block; }
.scanline { position: absolute; left: 0; right: 0; height: 4px; background: var(--leaf); box-shadow: 0 0 14px var(--leaf); animation: scan 1.2s ease-in-out infinite alternate; top: 0; }
@keyframes scan { to { top: calc(100% - 4px); } }
.share input { flex: 1; }
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0; }
.sh { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: #fff; text-decoration: none; color: var(--forest); font-weight: 800; font-size: .78rem; border: 2px solid var(--line); cursor: pointer; }
.sh span { font-size: 1.6rem; }
.sh.wa { border-color: #8ce99a; } .sh.wa span { color: #25d366; }
.sh:hover { transform: translateY(-2px); }
.cert img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); display: block; margin-bottom: 14px; }
.kv { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
.kv th { text-align: left; color: var(--muted); padding: 7px 0; width: 38%; font-weight: 800; }
.kv td { padding: 7px 0; font-weight: 700; border-bottom: 1px dashed var(--line); }
.timeline { display: flex; list-style: none; padding: 0; margin: 10px 0; gap: 0; }
.timeline li { flex: 1; text-align: center; font-size: .76rem; font-weight: 800; color: var(--muted); position: relative; padding-top: 24px; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #dee2e6; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 4px; background: #dee2e6; }
.timeline li:first-child::after { display: none; }
.timeline li.ok { color: var(--green); }
.timeline li.ok::before, .timeline li.ok::after { background: var(--green); }
.buildm .grid.kpi { grid-template-columns: repeat(3, 1fr); }
.notifs ul { list-style: none; padding: 0; margin: 0; }
.notifs li { display: flex; gap: 12px; padding: 10px; border-radius: 12px; font-size: .9rem; }
.notifs li.unread { background: #ebfbee; }
.notifs li span { font-size: 1.3rem; }
.notifs small { display: block; color: var(--muted); }
.success-box { background: var(--mint); border-radius: 14px; padding: 14px; font-weight: 700; }

/* ---------- toast & reward ---------- */
#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 80; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: auto; font-size: .92rem; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: #237032; } .toast.warn { background: #c25a00; }
.toast-btn { border: 0; background: #fff; color: var(--forest); border-radius: 10px; padding: 6px 12px; font-weight: 900; cursor: pointer; }
#fx-root { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.reward { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; opacity: 0; transition: opacity .25s; }
.reward.show { opacity: 1; }
.reward-card { position: relative; background: linear-gradient(160deg, #fffbe6, #ebfbee); border: 4px solid #ffe066; border-radius: 28px; padding: 26px 36px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: scale(.6); transition: transform .45s cubic-bezier(.2,1.6,.4,1); max-width: calc(100vw - 40px); }
.reward.show .reward-card { transform: scale(1); }
.reward-title { font-weight: 900; color: var(--forest); font-size: 1.1rem; }
.reward-pts { font-size: 2.6rem; font-weight: 900; color: var(--green); line-height: 1.1; margin: 6px 0; }
.reward-pts small { font-size: 1rem; }
.reward-vp { font-weight: 800; color: #b35c00; }
.reward-lv, .reward-ach { margin-top: 8px; background: var(--sun); color: #4a3500; border-radius: 12px; padding: 6px 12px; font-weight: 900; }
.reward-ach { background: #d0bfff; color: #3b1f8a; }
.reward-burst { position: absolute; left: 50%; top: 50%; }
.reward-burst i { position: absolute; font-style: normal; font-size: 1.5rem; opacity: 0; }
.reward.show .reward-burst i { animation: burst 1.1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--dl); }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(120deg); } }

/* ================= LANDING ================= */
body.screen { background: linear-gradient(180deg, #e3fadf, #f6fbef 40%, #fff); min-height: 100vh; }
.lnav { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; max-width: 1200px; margin: 0 auto; }
.lnav nav { display: flex; gap: 20px; align-items: center; }
.lnav nav a:not(.btn) { color: var(--forest); text-decoration: none; font-weight: 800; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 30px 28px 60px; }
.pill { display: inline-block; background: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 800; color: var(--green); box-shadow: var(--shadow); font-size: .85rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; margin: 18px 0; color: var(--forest); }
.hero h1 span { background: linear-gradient(90deg, #2f9e44, #1c7ed6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.1rem; color: #43524a; max-width: 540px; }
.hero-stats { display: flex; gap: 14px; margin: 26px 0 8px; flex-wrap: wrap; }
.hero-stats div { background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow); }
.hero-stats b { display: block; font-size: 1.3rem; color: var(--forest); }
.hero-stats small { color: var(--muted); font-weight: 700; }
.hero-art { position: relative; }
.hero-art canvas { width: 100%; aspect-ratio: 420 / 330; display: block; border-radius: 30px; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 800; box-shadow: var(--shadow-lg); animation: bob 3s ease-in-out infinite; font-size: .9rem; }
.float-card b { color: var(--green); }
.float-card.c1 { top: 8%; left: -24px; } .float-card.c2 { bottom: 16%; right: -16px; animation-delay: -1s; } .float-card.c3 { bottom: -14px; left: 18%; animation-delay: -2s; background: var(--sun); }
.lsec { max-width: 1200px; margin: 0 auto; padding: 50px 28px; }
.lsec.alt { background: #fff; border-radius: 32px; max-width: 1150px; }
.lsec h2 { font-size: 2rem; text-align: center; color: var(--forest); }
.grid.feats { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.feat { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.feat span { font-size: 2.2rem; }
.feat h3 { margin-top: 10px; }
.feat p { color: #43524a; margin: 0; }
.loop { display: flex; list-style: none; padding: 0; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.loop li { position: relative; background: linear-gradient(160deg, #ebfbee, #fff); border-radius: 20px; padding: 18px 16px; width: 150px; text-align: center; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.ln { position: absolute; top: -10px; left: -6px; background: var(--green); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.li { font-size: 2rem; }
.who { list-style: none; padding: 0; font-size: 1.1rem; font-weight: 700; }
.who li { padding: 8px 0; }
.trust { background: linear-gradient(160deg, #fff, #e7f5ff); }
.lfoot { text-align: center; padding: 30px; color: var(--muted); font-weight: 700; }

/* ---------- login ---------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 20%, #b2f2bb, transparent 40%), radial-gradient(circle at 80% 80%, #a5d8ff, transparent 40%); }
.login-card { background: #fff; border-radius: 28px; padding: 30px; width: 100%; max-width: 470px; box-shadow: var(--shadow-lg); }
.login-card h2 { margin-top: 20px; color: var(--forest); }
.login-card form > * { margin-bottom: 14px; }
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avopt input { display: none; }
.avopt canvas { width: 100% !important; height: 86px !important; background: #f4f8f1; border-radius: 16px; border: 3px solid transparent; cursor: pointer; }
.avopt input:checked + canvas { border-color: var(--green); background: #ebfbee; }
.village-pick { display: flex; gap: 12px; align-items: center; background: #fff9db; border-radius: 16px; padding: 12px; }
.village-pick span { font-size: 2rem; }
.village-pick small { display: block; color: var(--muted); }
.public-ev .pe-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px 40px; }
.public-ev h1 { color: var(--forest); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 84px 1fr; }
  .sidenav .brand span:last-child, .nav-item .nl, .side-foot { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .nav-item .ni { font-size: 1.5rem; }
  .sidenav .brand { justify-content: center; padding: 4px 0 10px; }
  .tb-chips .chip small { display: none; }
  .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .shell { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .main { height: calc(100% - 64px - env(safe-area-inset-bottom)); }
  .bottomnav { display: grid; grid-template-columns: repeat(7, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 2px solid var(--line); z-index: 20; }
  .bottomnav .nav-item { flex-direction: column; gap: 2px; padding: 8px 0; color: var(--muted); border-radius: 0; font-size: .64rem; }
  .bottomnav .nav-item .ni { font-size: 1.3rem; width: auto; }
  .bottomnav .nav-item .nl { display: block; }
  .bottomnav .nav-item.on { background: none; color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
  .topbar { padding: 0 10px; gap: 8px; }
  .lvbar { width: 80px; }
  .tb-meta b { max-width: 90px; font-size: .85rem; }
  .chip { padding: 5px 9px; }
  .chip-streak { display: none; }
  .hud-panels { display: none; top: 60px; left: 10px; right: 10px; width: auto; max-height: calc(100% - 140px); }
  .hud-panels.open { display: flex; }
  .hud-toggle { display: block; }
  .hud-feed { top: 66px; max-width: calc(100% - 20px); font-size: .76rem; display: none; }
  .dpad { display: block; }
  .hud-hint { display: none; }
  .hud-near { bottom: 180px; }
  .cols2, .cols2.wide-left { grid-template-columns: 1fr; }
  .vhero { grid-template-columns: 1fr; }
  .page-inner { padding: 16px 14px 30px; }
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .grid.feats { grid-template-columns: 1fr 1fr; }
  .lnav nav a:not(.btn) { display: none; }
  .float-card.c1 { left: 6px; } .float-card.c2 { right: 6px; }
  #tree-q, #tree-s { width: 100%; }
}
@media (max-width: 560px) {
  .tb-meta { display: none; }
  .tb-chips { margin-left: auto; }
  .chip b { font-size: .9rem; }
  .grid.cards, .grid.fgrid { grid-template-columns: 1fr; }
  .grid.shop { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sthumb { height: 110px; }
  .methods, .methods.three, .form-grid, .meta.two { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-body { padding: 18px; }
  .banner-stats { width: 100%; }
  .banner-stats > div { flex: 1; }
  .vstats { grid-template-columns: repeat(2, 1fr); }
  .grid.feats { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .csr .grid.kpi { grid-template-columns: repeat(2, 1fr); }
  .hbar { grid-template-columns: 96px 1fr 36px; }
  .ptitle { font-size: 1.4rem; }
  .preview { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) { #toast-root { bottom: calc(80px + env(safe-area-inset-bottom)); } }

.tb-snd { position: relative; border: 0; background: #f4f8f1; width: 44px; height: 44px; border-radius: 14px; font-size: 1.15rem; cursor: pointer; flex: none; opacity: .55; }
.tb-snd.on { opacity: 1; background: #ebfbee; box-shadow: inset 0 0 0 2px #b2f2bb; }
.tb-snd s { position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; background: var(--danger); transform: rotate(-35deg); border-radius: 2px; }
@media (max-width: 560px) { .tb-snd { width: 36px; height: 36px; font-size: 1rem; border-radius: 11px; } .tb-bell { width: 38px; height: 38px; } }

/* ---------- tombol kembali ---------- */
.backbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: rgba(238,247,230,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.backbar .crumb { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backbar .crumb a { color: var(--green); font-weight: 800; text-decoration: none; }
.modal-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: #fff; color: var(--forest); font-weight: 900; padding: 7px 12px; border-radius: 12px; box-shadow: 0 2px 0 var(--line); cursor: pointer; margin: -6px 0 12px -4px; font-size: .86rem; }
.modal-back:hover { background: var(--mint); }
.back-link { display: inline-block; margin-bottom: 14px; font-weight: 800; color: var(--green); text-decoration: none; }
.pe-wrap .back-link { margin-top: 4px; }
@media (max-width: 900px) { .backbar { padding: 8px 12px; } }
/* ---------- perawatan pohon ---------- */
.meter.bad i { background: linear-gradient(90deg, #ff8787, #e03131); }
.tree-alert { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; border: 2px solid #ffd8a8; background: #fff4e6; color: #a35f00; border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 700; font-size: .86rem; text-align: left; animation: glow 2s ease-in-out infinite; }
.tree-alert span { margin-left: auto; font-weight: 900; }
.tree-ok { margin-top: 10px; font-size: .84rem; font-weight: 700; color: var(--green); }
.tree-health .th-sum { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.th-ring { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), #ffe3e3 0); display: grid; place-items: center; position: relative; flex: none; }
.th-ring::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.th-ring b, .th-ring small { position: relative; display: block; text-align: center; line-height: 1; }
.th-ring b { font-size: 1.3rem; margin-top: 18px; } .th-ring small { font-size: .7rem; color: var(--muted); margin-top: -26px; }
.th-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; min-width: 260px; }
.th-stats > div { background: #f4f8f1; border-radius: 12px; padding: 10px; text-align: center; }
.th-stats b { display: block; font-size: 1.3rem; } .th-stats small { color: var(--muted); font-size: .74rem; }
.th-stats .ok b { color: var(--green); } .th-stats .warn b { color: #e67700; } .th-stats .bad b { color: var(--danger); }
.th-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-top: 14px; }
.th-item { display: flex; align-items: center; gap: 10px; background: #fffaf0; border: 2px solid #ffe8cc; border-radius: 14px; padding: 8px 10px; }
.th-item canvas { width: 52px; height: 52px; flex: none; }
.th-item b { display: block; font-size: .9rem; } .th-item small { color: var(--muted); }
.th-item .meter { margin-top: 4px; }
.carem h3 { margin: 2px 0 6px; padding: 0; }
.care-thumb { width: 120px; height: 130px; }
.symptom { background: #fff4e6; border: 2px dashed #ffc078; border-radius: 14px; padding: 12px 14px; margin: 14px 0; font-size: .92rem; line-height: 1.5; }
.symptom.ok { background: #ebfbee; border-color: #b2f2bb; }
.symptom.bad { background: #f1f3f5; border-color: #ced4da; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.care-btn { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; text-align: left; border: 2.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, transform .1s; }
.care-btn:hover { border-color: var(--leaf); transform: translateY(-2px); }
.care-btn span { grid-row: 1 / 3; font-size: 1.8rem; align-self: center; }
.care-btn b { color: var(--forest); } .care-btn small { color: var(--muted); font-size: .76rem; }
.hud-zoom .vt { font-size: 1.15rem; }
@media (max-width: 560px) { .care-grid { grid-template-columns: 1fr; } .th-stats { grid-template-columns: repeat(2, 1fr); min-width: 0; } .th-list { grid-template-columns: 1fr; } }
.tree-alert em { font-style: normal; }
.tree-alert span { white-space: nowrap; }

/* ---------- tas, bank sampah, pasar ---------- */
.chip-bag { background: #e7f5ff; border-color: #a5d8ff; cursor: pointer; }
.bag-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.bag-row.empty { opacity: .45; }
.bag-row .bi { font-size: 1.6rem; width: 40px; text-align: center; }
.bag-row b { display: block; font-size: .92rem; } .bag-row small { color: var(--muted); font-size: .76rem; }
.bag-row .bc { font-weight: 900; font-size: 1.1rem; color: var(--forest); min-width: 34px; text-align: right; }
.bag-row .bp { font-size: .76rem; color: #b35c00; font-weight: 800; white-space: nowrap; }
.bagm .meter { margin: 0 0 6px; }
.tbl.small { min-width: 0; font-size: .86rem; } .tbl.small tbody tr { cursor: default; }
.big-pts { font-size: 1.4rem; color: var(--green); }
.exch .row.between { margin: 12px 0; }
.harvest-box { display: flex; align-items: center; gap: 12px; background: #fff9db; border: 2px solid #ffe066; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.harvest-box > span { font-size: 2rem; } .harvest-box small { display: block; color: var(--muted); }
.sthumb .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.6rem; filter: drop-shadow(0 6px 6px rgba(0,0,0,.15)); }
.tiers5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tier5 { background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); border: 3px solid transparent; display: flex; flex-direction: column; gap: 4px; opacity: .7; }
.tier5.done { opacity: 1; } .tier5.cur { opacity: 1; border-color: var(--green); background: #f4fce3; }
.tier5 canvas { width: 100%; height: 90px; }
.tier5 b { font-size: .84rem; } .tier5 small { color: var(--muted); font-weight: 800; }
.tier5 ul { margin: 2px 0 0; padding-left: 16px; font-size: .74rem; color: #43524a; }
/* ---------- interior rumah ---------- */
.tierchip { background: var(--forest); color: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 900; }
.home-grid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; margin-top: 10px; }
.home-stage { background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow); min-width: 0; }
.home-stage canvas { display: block; border-radius: 14px; }
.home-hint { font-size: .8rem; color: var(--muted); font-weight: 700; padding: 8px 4px 0; }
.home-side { display: flex; flex-direction: column; gap: 12px; }
.home-side .card { padding: 14px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 12px; }
.checklist li { padding: 5px 0 5px 28px; position: relative; font-size: .86rem; font-weight: 700; }
.checklist li::before { content: "○"; position: absolute; left: 4px; color: var(--muted); font-weight: 900; }
.checklist li.ok { color: var(--green); } .checklist li.ok::before { content: "✓"; color: var(--green); }
/* ---------- TV ---------- */
.tv-grid { display: grid; grid-template-columns: 250px 1fr; gap: 14px; }
.tv-list { max-height: 460px; overflow-y: auto; padding-right: 4px; }
.tv-list h4 { margin: 10px 0 6px; font-size: .86rem; }
.tvitem { display: flex; align-items: center; gap: 8px; width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 9px; margin-bottom: 6px; cursor: pointer; text-align: left; }
.tvitem.on { border-color: var(--sky); background: #e7f5ff; }
.tvitem span { font-size: 1.3rem; } .tvitem b { flex: 1; font-size: .8rem; }
.tvitem em { font-style: normal; font-weight: 900; color: var(--green); font-size: .78rem; } .tvitem em.pt { color: #b35c00; }
.tv-frame { background: #111; border-radius: 16px; padding: 10px; box-shadow: inset 0 0 0 4px #343a40; }
.tv-frame canvas { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 8px; }
.tv-ctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tv-prog { flex: 1; height: 8px; background: #e9ecef; border-radius: 9px; overflow: hidden; }
.tv-prog i { display: block; height: 100%; width: 0; background: var(--danger); }
.tv-time { font-size: .8rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tv-info { margin-top: 8px; font-size: .88rem; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } .tiers5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tv-grid { grid-template-columns: 1fr; } .tv-list { max-height: 180px; } .tiers5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topbar [data-act=snd-music] { display: none; } .chip small { display: none; } }
/* ---------- tubuh, makan, garasi, peta dunia, kunjungan, web-frame ---------- */
.bstat { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; margin: 4px 0; }
.bstat b { text-align: right; }
.body-card .row { margin-top: 8px; flex-wrap: wrap; }
.body-row { background: #fff; border-radius: 14px; padding: 8px 12px; margin: 10px 0; }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.food { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 2.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px; cursor: pointer; transition: transform .1s, border-color .15s; }
.food:hover { transform: translateY(-2px); border-color: var(--leaf); }
.food.dis { opacity: .5; cursor: not-allowed; }
.food .fi { font-size: 2rem; } .food b { font-size: .86rem; } .food small { color: var(--muted); font-weight: 700; }
.ftags { display: flex; flex-wrap: wrap; gap: 4px; }
.ftags em { font-style: normal; font-size: .66rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.ftags em.g { background: #d3f9d8; color: #2b8a3e; } .ftags em.b { background: #ffe3e3; color: #c92a2a; }
.meal-res { text-align: center; }
.mr-ico { font-size: 3.6rem; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.meal-res.good h3 { color: var(--green); } .meal-res.bad h3 { color: #c25a00; }
.meal-res .edu { background: #fff; border-radius: 14px; padding: 12px; text-align: left; margin: 12px 0; }
.effects { list-style: none; padding: 0; margin: 8px auto; text-align: left; max-width: 420px; }
.effects li { padding: 4px 0; font-weight: 700; }
.veh { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 14px; margin: 8px 0; background: #fff; }
.veh.on { border-color: var(--green); background: #f4fce3; }
.veh canvas { width: 64px; height: 48px; flex: none; }
.veh small { display: block; font-size: .76rem; }
.wmap-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.vlist { max-height: 430px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.vcard { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.vcard.mine { border-color: var(--leaf); background: #f4fce3; }
.vcard .btn { align-self: flex-start; }
.vpin { cursor: pointer; } .vpin text { font-size: 12px; font-weight: 800; fill: #1b4332; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.vpin:hover circle { stroke: #1c7ed6; }
.visit-card h4 { font-size: 1.1rem; margin-top: 2px; }
.visit-list { margin: 8px 0; padding-left: 18px; font-size: .84rem; } .visit-list li { padding: 2px 0; }
.visit-list li::marker { content: '✅ '; } .visit-list.bad li::marker { content: '❌ '; }
.visit-card .btn.block { margin-top: 8px; }
.hud-visit { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); }
.hud-visit:empty { display: none; }
.hud-visit { background: #1c7ed6; color: #fff; border-radius: 99px; padding: 6px 8px 6px 16px; font-size: .84rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-lg); }
.hud-visit button { border: 0; background: #fff; color: #1c7ed6; font-weight: 900; border-radius: 99px; padding: 5px 10px; margin-left: 8px; cursor: pointer; }
.web-frame { background: #f1f3f5; border-radius: 16px; overflow: hidden; border: 3px solid #343a40; }
.wf-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #e9ecef; border-bottom: 1px solid #ced4da; }
.wf-bar .dots { display: flex; gap: 5px; } .wf-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #fa5252; } .wf-bar .dots i:nth-child(2) { background: #fab005; } .wf-bar .dots i:nth-child(3) { background: #40c057; }
.wf-url { flex: 1; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 3px 4px 3px 12px; }
.wf-url input { border: 0; padding: 4px; font-size: .8rem; } .wf-url .lock { font-size: .8rem; }
.wf-body { position: relative; aspect-ratio: 16 / 9; background: #000; }
.wf-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wf-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; text-align: center; padding: 20px; }
.wf-empty span { font-size: 3rem; } .wf-empty small { opacity: .8; }
.wf-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; font-size: .78rem; font-weight: 800; }
.wf-search a { background: #fff; border: 1px solid #ced4da; border-radius: 99px; padding: 3px 9px; text-decoration: none; color: #c92a2a; }
.wf-note { font-size: .74rem; color: var(--muted); padding: 0 10px 8px; margin: 0; }
@media (max-width: 800px) { .wmap-grid { grid-template-columns: 1fr; } .vlist { max-height: 260px; } }
/* ---------- danau & mancing ---------- */
.lake-hero { display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, #d0ebff, #e3fafc); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.lake-hero > span { font-size: 2.6rem; } .lake-hero h3 { margin: 0; padding: 0; } .lake-hero small { color: #1864ab; }
.lake-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lake-act { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; border: 2.5px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; cursor: pointer; }
.lake-act:hover:not(:disabled) { border-color: #74c0fc; transform: translateY(-2px); }
.lake-act:disabled { opacity: .5; cursor: not-allowed; }
.lake-act span { font-size: 2rem; } .lake-act small { color: var(--muted); font-size: .76rem; }
.pond { position: relative; height: 170px; border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #74c0fc, #1c7ed6 75%); margin: 8px 0 12px; }
.pond.river { background: linear-gradient(100deg, #e9d8a6 0 8%, #4dabf7 8% 92%, #e9d8a6 92%); }
.pond .ripple { position: absolute; left: 50%; top: 50%; width: 30px; height: 12px; margin: -6px 0 0 -15px; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; animation: rip 2s ease-out infinite; }
@keyframes rip { to { transform: scale(5); opacity: 0; } }
.fsil { position: absolute; font-size: 1.6rem; opacity: .35; filter: grayscale(1) brightness(.4); animation: swim 7s linear infinite; }
.fsil.s1 { top: 30%; } .fsil.s2 { top: 65%; animation-duration: 9s; animation-delay: -4s; }
@keyframes swim { from { left: -10%; } to { left: 110%; } }
.bobber { position: absolute; left: 50%; top: 46%; font-size: 1.3rem; transform: translateX(-50%); animation: bob 1.6s ease-in-out infinite; }
.bobber.bite { animation: jerk .25s ease-in-out infinite; }
@keyframes jerk { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.fish-status { text-align: center; font-weight: 700; min-height: 26px; margin-bottom: 10px; }
.reel { margin: 6px 0 12px; text-align: center; } .reel small { color: var(--muted); }
.reel-bar { position: relative; height: 22px; background: #ffe3e3; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.reel-bar .zone { position: absolute; top: 0; bottom: 0; background: #69db7c; }
.reel-bar .marker { position: absolute; top: -2px; width: 6px; height: 26px; margin-left: -3px; background: #1b4332; border-radius: 3px; }
.catch { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border-radius: 14px; padding: 10px 14px; }
.catch > span { font-size: 2.4rem; } .catch small { display: block; color: var(--muted); font-weight: 600; }
.catch.trash { background: #fff4e6; }
.fish-btns { flex-wrap: wrap; } .fish-stock { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) { .lake-acts { grid-template-columns: 1fr; } }

/* ===== Kopdes Eco ===== */
.kopdes-logo { display: inline-block; vertical-align: middle; flex: none; }
.kopdes-head { display: flex; align-items: center; gap: 12px; }
.kopdes-head h2 { margin: 0; color: #c92a2a; }
.kopdes-head small { color: var(--muted, #868e96); }
.nav-item .ni .kopdes-logo { width: 24px; height: 24px; }
.bottomnav .side-only { display: none !important; }
.clockline { font-size: 12px; margin: 4px 0 8px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.clockline span { color: #e8590c; font-weight: 700; }

/* ===== Tagihan listrik ===== */
.bill .bill-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 8px; align-items: center; margin: 6px 0 10px; }
.bill .bill-top > div { background: #f8f9fa; border-radius: 10px; padding: 6px 8px; text-align: center; }
.bill .bill-top b { display: block; font-size: 15px; }
.bill .bill-top small { font-size: 11px; color: #868e96; }
.bill .rate { font-size: 22px; font-weight: 900; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 !important; }
.rA { background: #2f9e44 !important; } .rB { background: #74b816 !important; } .rC { background: #f59f00 !important; } .rD { background: #f76707 !important; } .rE { background: #e03131 !important; }
.bill-bars { display: flex; gap: 6px; height: 70px; align-items: flex-end; margin-bottom: 6px; }
.bill-bars > div { flex: 1; max-width: 42px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bill-bars i { width: 100%; border-radius: 4px 4px 0 0; display: block; }
.bill-bars small { font-size: 10px; color: #868e96; }
.warnline { color: #c92a2a; font-weight: 600; font-size: 13px; }
.small { font-size: 12px; }

/* ===== Akuarium ===== */
.aq-stage canvas { width: 100%; height: auto; border-radius: 12px; display: block; background: #1864ab; }
.aq-body h4 { margin: 12px 0 6px; }
.aq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #dee2e6; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.chip.ok { border-color: #69db7c; background: #ebfbee; }
.chip.on { background: #e7f5ff; border-color: #74c0fc; cursor: default; }
.chip:disabled { opacity: .5; cursor: not-allowed; }
.privnote { background: #fff9db; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin: 0 0 8px; }

/* ===== Pengolahan ===== */
.proc-steps { padding-left: 20px; margin: 6px 0 12px; line-height: 1.7; }
.card.soft { background: #f8f9fa; border-radius: 12px; padding: 12px; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }

/* ===== Olahraga ===== */
.sportm { text-align: center; }
.goal { position: relative; height: 200px; margin: 10px 0; border-radius: 12px; background: linear-gradient(#4dabf7 0 30%, #2f9e44 30%); overflow: hidden; }
.goal::before { content: ''; position: absolute; left: 8%; right: 8%; top: 10%; height: 55%; border: 6px solid #fff; border-bottom: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 2px, transparent 2px 14px), repeating-linear-gradient(0deg, rgba(255,255,255,.25) 0 2px, transparent 2px 14px); }
.goal .keeper { position: absolute; left: 50%; top: 32%; font-size: 40px; transform: translateX(-50%); transition: left .35s; }
.goal .ball { position: absolute; left: 50%; bottom: 6%; font-size: 30px; transform: translateX(-50%); transition: left .4s, bottom .4s; }
.sp-status { margin: 8px 0; min-height: 24px; }
.sp-score { margin-top: 10px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.sp-score i { width: 14px; height: 14px; border-radius: 50%; background: #dee2e6; display: inline-block; }
.sp-score i.g { background: #2f9e44; } .sp-score i.m { background: #e03131; }
.court { position: relative; height: 90px; border-radius: 12px; background: #2b8a3e; margin: 10px 0; overflow: hidden; border: 3px solid #fff; }
.court::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #fff; }
.court .hitzone { position: absolute; right: 0; top: 0; bottom: 0; width: 22%; background: rgba(140, 233, 154, .45); }
.court .shuttle { position: absolute; top: 28px; font-size: 28px; }
.gym-moves { display: flex; gap: 8px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.gym-moves .gm { width: 86px; padding: 8px; border-radius: 12px; background: #f1f3f5; transition: transform .2s, background .2s; }
.gym-moves .gm span { font-size: 32px; display: block; }
.gym-moves .gm.on { background: #d3f9d8; transform: scale(1.1); }

/* ===== Pusat Belajar ===== */
.grid.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.course { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 2px solid transparent; }
.course.done { border-color: #8ce99a; }
.course .c-ico { font-size: 36px; width: 56px; height: 56px; display: grid; place-items: center; background: #f3f0ff; border-radius: 14px; flex: none; }
.course .c-body { flex: 1; min-width: 0; }
.course h4 { margin: 6px 0 2px; }
.badge-sun { background: #fff3bf; color: #e67700; }
.badge-ok2 { background: #d3f9d8; color: #2b8a3e; }
.lesson { text-align: center; padding: 18px 10px; }
.lesson > span { font-size: 54px; display: block; }
.lesson p { max-width: 520px; margin: 8px auto; line-height: 1.6; }
.quiz { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.qopt { text-align: left; padding: 10px 14px; border-radius: 10px; border: 2px solid #dee2e6; background: #fff; cursor: pointer; font: inherit; }
.qopt:hover:not(:disabled) { border-color: #7048e8; }
.qopt.right { border-color: #2f9e44; background: #ebfbee; }
.qopt.wrong { border-color: #e03131; background: #fff5f5; }
.cprog { margin: 6px 0 4px; }
.pay-methods { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.pay-methods label { padding: 8px 12px; border: 1px solid #dee2e6; border-radius: 10px; cursor: pointer; }

/* ===== Arena olahraga ===== */
.lobby .lob-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; margin-top: 8px; }
.lob-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f8f9fa; }
.lob-row.off { opacity: .55; }
.lob-row canvas.head { border-radius: 50%; background: #d3f9d8; flex: none; }
.lob-row small { display: block; color: #868e96; font-size: 12px; }
.lob-row .stars { color: #f59f00; letter-spacing: 1px; }
.lob-st { font-size: 12px; white-space: nowrap; }
.arena-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.arena-score { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.arena-score b { font-size: 22px; background: #1b4332; color: #fff; padding: 2px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.arena-score .clock { color: #868e96; font-variant-numeric: tabular-nums; }
.arena-stage { position: relative; }
.arena-stage canvas { width: 100%; height: auto; display: block; border-radius: 12px; touch-action: none; }
.arena-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; background: rgba(0,0,0,.35); border-radius: 12px; font-size: 16px; }
.arena-msg.hidden { display: none; }
.arena-msg .big { font-size: 40px; font-weight: 900; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.arena-msg .end { background: rgba(27,67,50,.92); padding: 20px 28px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.arena-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.arena-ctrl .pad, .arena-ctrl .acts { display: flex; gap: 6px; }
.arena-ctrl .pad button { width: 48px; height: 44px; border-radius: 10px; border: 0; background: #e9ecef; font-size: 18px; cursor: pointer; user-select: none; touch-action: none; }
.arena-ctrl button.on { background: #74c0fc !important; }
.arena-ctrl .acts .btn { touch-action: none; user-select: none; }
.arena-help { display: block; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .arena-ctrl .pad { opacity: .6; } }
.btn.danger { background: #e03131; color: #fff; }

/* ===== Pengembangan desa & sawit ===== */
.grid.devgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.devcard { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); border: 2px solid transparent; }
.devcard.done { border-color: #8ce99a; background: #f4fce3; }
.devcard .dv-ico { font-size: 30px; width: 48px; height: 48px; display: grid; place-items: center; background: #fff3bf; border-radius: 12px; flex: none; }
.devcard h4 { margin: 0 0 4px; } .devcard p { margin: 0 0 4px; font-size: 13px; } .devcard small { display: block; margin-bottom: 6px; font-size: 12px; }
.fuelbar { background: #fff9db; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: 13px; }
.aq-warn { background: #fff5f5; border: 1px solid #ffc9c9; color: #c92a2a; border-radius: 10px; padding: 8px 12px; margin-top: 10px; font-size: 13px; display: grid; gap: 4px; }
.sawitm .card.soft { margin-bottom: 10px; }

/* ===== Online: akun, cloud, chat ===== */
.acc-box { background: #f8f9fa; border-radius: 14px; padding: 14px; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.acc-box.off { background: #fff9db; }
.acc-box .stack, form.stack { display: flex; flex-direction: column; gap: 8px; }
.acc-box input, form.stack input { padding: 10px 12px; border-radius: 10px; border: 1px solid #ced4da; font: inherit; }
.acc-form.hidden { display: none; }
.acc-msg { font-size: 13px; } .acc-msg.ok { color: #2b8a3e; } .acc-msg.warn { color: #c92a2a; }
details.guest { margin-top: 8px; border-top: 1px dashed #dee2e6; padding-top: 10px; }
details.guest summary { cursor: pointer; color: #495057; font-size: 14px; margin-bottom: 10px; }
.chip-cloud { cursor: pointer; } .chip-cloud.error { background: #fff5f5; color: #c92a2a; } .chip-cloud.off { opacity: .75; }
.net-chat { position: fixed; right: 16px; top: 76px; z-index: 40; width: min(340px, 70vw); display: flex; flex-direction: column-reverse; gap: 4px; pointer-events: none; }
.net-chat .nc-toggle { display: none; }
@media (max-width: 760px) {
  .net-chat { top: calc(env(safe-area-inset-top, 0px) + 66px); bottom: auto; right: 8px; width: min(320px, 86vw); flex-direction: column; align-items: flex-end; }
  .net-chat .nc-toggle { display: grid; place-items: center; position: relative; pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2f9e44; color: #fff; font-size: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
  .net-chat .nc-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #e03131; color: #fff; font-size: 11px; font-style: normal; display: grid; place-items: center; }
  .net-chat .nc-badge.hidden { display: none; }
  .net-chat:not(.open) .nc-form, .net-chat:not(.open) .nc-emotes, .net-chat:not(.open) .nc-log { display: none; }
  .net-chat.open { background: rgba(255,255,255,.96); padding: 8px; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
  .net-chat.open .nc-log div { align-self: stretch; }
  .net-chat .nc-emotes { flex-wrap: wrap; }
}
.net-chat.hidden { display: none; }
.net-chat .nc-log { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.net-chat .nc-log div { background: rgba(27,67,50,.78); color: #fff; padding: 3px 10px; border-radius: 10px; align-self: flex-start; }
.net-chat .nc-log div.me { background: rgba(230,119,0,.85); }
.net-chat .nc-form { display: flex; gap: 6px; pointer-events: auto; }
.net-chat input { flex: 1; padding: 8px 12px; border-radius: 999px; border: 1px solid #ced4da; font: inherit; background: rgba(255,255,255,.95); }
.lb.global li { display: flex; align-items: center; gap: 10px; }
.emote-row { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.emo-btn { font-size: 24px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #dee2e6; background: #fff; cursor: pointer; }
.emo-btn:hover { transform: scale(1.12); }
.net-chat .nc-emotes { display: flex; gap: 4px; pointer-events: auto; justify-content: flex-end; }
.net-chat .nc-emotes button { font-size: 16px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.lob-list.real .lob-row { background: #fff9db; border: 1px solid #ffe066; }
.online-card .members li { display: flex; align-items: center; gap: 8px; }
.invite .meter, .center .meter { margin: 10px 0; }
.btn.google { background: #fff; color: #3c4043; border: 1px solid #dadce0; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; padding: 11px; }
.btn.google:hover { background: #f8f9fa; }
.acc-box .or { display: flex; align-items: center; gap: 8px; color: #868e96; font-size: 12px; }
.acc-box .or::before, .acc-box .or::after { content: ''; flex: 1; height: 1px; background: #dee2e6; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; }
.inv-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid #dee2e6; background: #fff; text-decoration: none; color: #212529; font-size: 22px; cursor: pointer; }
.inv-btn b { font-size: 13px; } .inv-btn.wa { background: #ebfbee; border-color: #8ce99a; } .inv-btn.em { background: #e7f5ff; border-color: #a5d8ff; } .inv-btn.tg { background: #e3fafc; border-color: #99e9f2; }
.inv-link { display: flex; gap: 6px; } .inv-link input { flex: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid #ced4da; font-size: 12px; }
.net-chat .nc-emotes .nc-inv { width: auto; white-space: nowrap; border-radius: 999px; padding: 0 12px; font-size: 13px; font-weight: 700; background: #2f9e44; color: #fff; }
.legal-note { font-size: 12px; color: #868e96; text-align: center; margin-top: 12px; }
.hero h1 .brand-h { display: block; font-size: .5em; letter-spacing: .06em; color: #2f9e44; margin-bottom: .2em; }
.props { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.props .prop { display: flex; gap: 10px; align-items: center; background: #f8f9fa; border-radius: 12px; padding: 8px 10px; }
.props .pi { font-size: 26px; }
.props-card { border: 2px solid #ffe066; }
.dv-ico.big { font-size: 48px; text-align: center; }
.kopdes-logo { border-radius: 8px; background: #fff; object-fit: contain; }
.ptslog { list-style: none; padding: 0; margin: 8px 0 0; max-height: 380px; overflow: auto; }
.ptslog li { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #f1f3f5; font-size: 14px; }
.ptslog b.up { color: #2b8a3e; } .ptslog b.down { color: #c92a2a; } .ptslog small { color: #868e96; }
.chip-points[data-act] { cursor: pointer; }
/* level fasilitas, akuarium, lomba */
.lvstars { color: #fab005; font-size: 16px; letter-spacing: 1px; } .lvstars s { color: #dee2e6; text-decoration: none; }
.lvlist { padding-left: 0; list-style: none; display: grid; gap: 6px; margin: 6px 0 12px; }
.lvlist li { background: #f8f9fa; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: #868e96; }
.lvlist li.on { background: #ebfbee; color: #1b4332; }
.lvlist li b { display: inline-block; min-width: 30px; }
.facm .upg { margin-top: 10px; } .facm .upg small { color: #495057; }
.aq-tier { background: #e7f5ff; border-radius: 10px; padding: 8px 12px; margin: 8px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.fc-panel { background: #fff9db; border: 1px solid #ffe066; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.fc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .fc-top b { font-size: 18px; } .fc-top small { color: #868e96; }
.fc-rank { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; font-size: 14px; }
.fc-rank li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; } .fc-rank li small { grid-column: 1 / -1; color: #868e96; font-size: 11px; }
.fc-rank li.me { font-weight: 800; color: #e67700; } .fc-rank i { font-size: 10px; background: #e9ecef; border-radius: 4px; padding: 0 4px; font-style: normal; }
.fc-rank.big { list-style: none; padding: 0; text-align: left; } .fc-rank.big li { grid-template-columns: 28px 1fr auto; padding: 6px 8px; border-radius: 8px; background: #f8f9fa; }
.fc-inv { display: grid; gap: 6px; max-height: 180px; overflow: auto; } .fc-inv label { background: #f8f9fa; padding: 6px 10px; border-radius: 8px; }
.fc-plist { list-style: none; padding: 0; text-align: left; display: grid; gap: 4px; margin: 10px 0; }
.chip.on { background: #d3f9d8; border-color: #69db7c; font-weight: 700; }
/* dapur & meja makan */
.kit-stage canvas { width: 100%; height: auto; display: block; border-radius: 14px; touch-action: none; background: #fff4e6; }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.recipe { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px; border-radius: 14px; border: 2px solid #e9ecef; background: #fff; cursor: pointer; font: inherit; }
.recipe .ri { font-size: 34px; } .recipe small { display: flex; flex-wrap: wrap; gap: 4px; }
.recipe small i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; } .recipe i.ok { background: #d3f9d8; } .recipe i.no { background: #ffe3e3; }
.recipe.good:hover { border-color: #69db7c; } .recipe.bad:hover { border-color: #ffa94d; } .recipe.dis { opacity: .55; }
.tag.ok { background: #d3f9d8; color: #2b8a3e; } .tag.warn { background: #fff3bf; color: #e67700; }
.kit-ctrl { margin-top: 10px; display: grid; gap: 8px; text-align: center; } .kit-done b { font-size: 18px; display: block; } .kit-done small { color: #495057; }
.eat-ctrl { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.eat-res { width: 100%; text-align: center; padding: 10px; border-radius: 12px; } .eat-res.good { background: #ebfbee; } .eat-res.bad { background: #fff4e6; }
.eat-res b { font-size: 18px; } .eat-res .effects { margin: 6px 0; font-weight: 700; }
.food.meh { border-color: #ffd8a8; }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.place { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 14px 10px; border-radius: 14px; border: 2px solid #dee2e6; background: #fff; cursor: pointer; font: inherit; }
.place span { font-size: 34px; } .place small { color: #868e96; font-size: 12px; } .place:hover { border-color: #69db7c; background: #f4fce3; }
/* kebun TOGA */
.farm-stage canvas { width: 100%; height: auto; display: block; border-radius: 14px; touch-action: manipulation; }
.farm-info { min-height: 22px; margin: 8px 0; font-weight: 700; color: #1b4332; }
.farm-seeds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.farm-seeds p { width: 100%; margin: 4px 0 0; }
.vote-alert { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: #f3f0ff; color: #5f3dc4; border-radius: 12px; padding: 8px 12px; margin: 8px 0; cursor: pointer; font: inherit; animation: votepulse 1.6s ease-in-out infinite; }
.vote-alert em { font-style: normal; } .vote-alert span { font-weight: 800; }
@keyframes votepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(112,72,232,.35); } 50% { box-shadow: 0 0 0 6px rgba(112,72,232,0); } }

/* Evolusi rumah 9 tahap */
.evo9 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.evo { background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow); border: 3px solid transparent; display: flex; flex-direction: column; gap: 3px; }
.evo img { width: 100%; aspect-ratio: 560/360; object-fit: contain; }
.evo.lock img { filter: grayscale(.85) opacity(.55); } .evo.lock { opacity: .8; }
.evo.cur { border-color: var(--green); background: #f4fce3; }
.evo b { font-size: .82rem; } .evo small { color: var(--muted); font-weight: 800; font-size: .72rem; } .evo p { margin: 0; font-size: .72rem; color: #43524a; }
.evo-now { width: 100%; max-height: 150px; object-fit: contain; }
.evo-next { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .evo-next img { width: 72px; filter: grayscale(.6); }

/* Ambil buah tetangga & Hansip */
.steal { text-align: left; } .steal-head { font-size: 2.4rem; text-align: center; }
.steal h3 { text-align: center; margin: 4px 0 8px; }
.steal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.steal-grid > div { background: #f1f3f5; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.steal-grid > div.hot { background: #fff3bf; } .steal-grid > div.bad { background: #ffe3e3; }
.steal-grid b { font-size: 1.05rem; } .steal-grid small { font-size: .7rem; color: #5c6b63; font-weight: 700; }
.arrest-scene { font-size: 3rem; animation: arrestShake .5s ease 3; }
@keyframes arrestShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.fine-box { background: #ffe3e3; border-radius: 14px; padding: 10px; margin: 8px 0; display: flex; flex-direction: column; } .fine-box b { font-size: 1.5rem; color: #c92a2a; } .fine-box small { color: #7a3b3b; font-weight: 700; }
@media (max-width: 520px) { .steal-grid { grid-template-columns: 1fr; } }

/* Direktori village */
.vdir h4 { margin: 12px 0 6px; } .vdir-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.vdir-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f8f9fa; border-radius: 12px; padding: 8px 10px; }
.vdir-row.me { background: #ebfbee; } .vdir-row small { display: block; color: var(--muted); font-weight: 700; font-size: .74rem; }
.vhist { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; } .vhist small { color: var(--muted); }

/* Pratinjau tingkat akuarium */
.aq-prev { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 4px; }
.aq-prev figure { margin: 0; background: #f1f3f5; border-radius: 12px; padding: 4px; border: 2px solid transparent; text-align: center; }
.aq-prev figure.cur { border-color: var(--green); background: #ebfbee; } .aq-prev figure:not(.cur):not(.done) canvas { filter: saturate(.55); opacity: .8; }
.aq-prev canvas { width: 100%; height: auto; display: block; } .aq-prev figcaption { font-size: .66rem; font-weight: 800; color: #43524a; line-height: 1.2; }
@media (max-width: 600px) { .aq-prev { grid-template-columns: repeat(3, 1fr); } }

/* Tugas rumah harian */
.chore-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.chore-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; background: #f8f9fa; border-radius: 12px; padding: 6px 8px; }
.chore-list li.ok { background: #ebfbee; opacity: .85; } .chore-list li span { font-size: 1.3rem; } .chore-list li small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.chore-list li em { font-style: normal; color: #2b8a3e; font-weight: 900; }
.chore h3 { margin: 0 0 6px; } .chore-say { background: #fff3bf; border-radius: 12px; padding: 8px 10px; font-weight: 700; margin: 0 0 8px; }
.chore-stage { position: relative; border-radius: 14px; overflow: hidden; touch-action: none; } .chore-stage canvas { width: 100%; height: auto; display: block; cursor: pointer; }
.chore-prog { position: absolute; left: 10px; right: 10px; top: 10px; height: 10px; background: rgba(0,0,0,.25); border-radius: 6px; overflow: hidden; } .chore-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #69db7c, #ffd43b); transition: width .2s; }
.chore-done { position: absolute; inset: 0; background: rgba(255,255,255,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 1.05rem; } .chore-done .big { font-size: 3rem; } .chore-done span { color: #2b8a3e; font-weight: 900; }
.chore-hint { margin: 6px 0 0; font-size: .82rem; }
/* Akuarium: tab & daftar ikan */
.aq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; } .aq-tabs .chip small { opacity: .7; }
.aq-fish { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.fishrow { display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 8px; align-items: center; background: #f1f8ff; border-radius: 12px; padding: 6px 8px; }
.fishrow .fi { font-size: 1.4rem; } .fishrow small { color: var(--muted); font-size: .72rem; } .fishrow select { font-size: .75rem; border-radius: 8px; padding: 3px; max-width: 110px; }
@media (max-width: 560px) { .fishrow { grid-template-columns: 26px 1fr auto auto; } .fishrow select { grid-column: 2 / -1; max-width: none; } }

.chore-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .chore-btns em { font-style: normal; font-size: .75rem; font-weight: 900; color: #2b8a3e; }
.chore-list li { grid-template-columns: 28px 1fr auto; }
.evo-goal { background: #fff9db; border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; } .evo-goal ul { margin: 6px 0 0; padding-left: 4px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; } .evo-goal li.ok { color: #2b8a3e; } .evo-goal small { color: var(--muted); }
.evo p.req { color: #9c6500; font-weight: 700; }
.chore-list li { grid-template-columns: 28px 1fr; } .chore-list li .chore-btns { grid-column: 2; justify-content: flex-start; }

.yard-strip { background: #f4fce3; border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; } .yard-strip > div { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.ychip { background: #fff; border-radius: 10px; padding: 3px 7px; font-size: .95rem; opacity: .45; filter: grayscale(1); border: 1px solid #e9ecef; } .ychip.on { opacity: 1; filter: none; border-color: #8ce99a; } .ychip small { font-size: .62rem; font-weight: 800; color: var(--muted); }

/* Pilih desa (akun baru) */
.vsetup h2 { margin: 0 0 4px; } .vs-tabs { display: flex; gap: 6px; margin: 10px 0; }
.vs-maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vs-map { text-align: left; background: #f8f9fa; border: 3px solid transparent; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font: inherit; }
.vs-map.on { border-color: var(--green); background: #ebfbee; } .vs-map canvas { width: 100%; height: auto; border-radius: 8px; } .vs-map small { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.vs-start { list-style: none; padding: 0; margin: 10px 0; font-size: .85rem; display: grid; gap: 3px; }
.vsetup label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; } .vsetup input { padding: 8px 10px; border-radius: 10px; border: 2px solid #dee2e6; font: inherit; }
.land-card { border: 2px dashed #e67700; margin-bottom: 14px; }
@media (max-width: 560px) { .vs-maps { grid-template-columns: 1fr; } }

.scard.locked { opacity: .62; } .scard.locked .sthumb { filter: grayscale(.9); position: relative; }
.slock { position: absolute; top: 6px; left: 6px; z-index: 2; background: #343a40; color: #fff; font-weight: 900; font-size: .72rem; padding: 2px 8px; border-radius: 999px; filter: none; }
.lv-note { background: #fff9db; border-radius: 12px; padding: 6px 10px; font-size: .82rem; margin: 6px 0 10px; }
.slock { left: auto; right: 6px; }

/* ===== Tutorial interaktif ===== */
.tut-root { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.tut-ring { position: fixed; border: 3px solid #ffd43b; border-radius: 14px; box-shadow: 0 0 0 4px rgba(255,212,59,.35), 0 0 22px rgba(255,212,59,.8); animation: tutPulse 1.2s ease-in-out infinite; transition: all .15s; }
.tut-arrow { position: fixed; font-size: 2rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); animation: tutBounce .8s ease-in-out infinite; transition: left .1s, top .1s; }
.tut-bubble { position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%); width: min(520px, 94vw); background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); border: 3px solid #ffd43b; display: flex; gap: 10px; padding: 12px 14px; pointer-events: auto; }
.tut-bubble.pop { animation: tutPop .35s ease-out; }
.tut-mascot { font-size: 2.4rem; line-height: 1; animation: tutWave 2s ease-in-out infinite; }
.tut-body { flex: 1; min-width: 0; } .tut-body h4 { margin: 0 0 2px; font-size: 1rem; } .tut-body p { margin: 0; font-size: .88rem; line-height: 1.4; }
.tut-count { color: var(--muted); font-weight: 800; font-size: .7rem; }
.tut-body kbd { display: inline-block; min-width: 18px; padding: 0 5px; margin: 0 1px; border-radius: 5px; background: #f1f3f5; border: 1px solid #ced4da; border-bottom-width: 3px; font: 800 .75rem system-ui; text-align: center; }
.tut-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; } .tut-skip { font-size: .78rem; color: var(--muted); }
.tut-keys { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: 26px 26px; gap: 3px; margin: 6px 0 0; }
.tut-keys .k { display: flex; align-items: center; justify-content: center; background: #f1f3f5; border: 1px solid #ced4da; border-bottom-width: 3px; border-radius: 6px; font: 900 .78rem system-ui; animation: tutKey 2.4s infinite; }
.tut-keys .w { grid-column: 2; grid-row: 1; } .tut-keys .a { grid-column: 1; grid-row: 2; animation-delay: .6s; } .tut-keys .s { grid-column: 2; grid-row: 2; animation-delay: 1.2s; } .tut-keys .d { grid-column: 3; grid-row: 2; animation-delay: 1.8s; }
.tut-tap { font-size: 1.8rem; animation: tutTap 1.1s ease-in-out infinite; display: inline-block; margin-top: 4px; }
@keyframes tutPulse { 50% { box-shadow: 0 0 0 9px rgba(255,212,59,.15), 0 0 28px rgba(255,212,59,.9); } }
@keyframes tutBounce { 50% { transform: translateY(10px); } }
@keyframes tutPop { from { transform: translateX(-50%) scale(.92); opacity: .4; } }
@keyframes tutWave { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } }
@keyframes tutKey { 0%, 20%, 100% { background: #f1f3f5; transform: none; } 8% { background: #ffd43b; transform: translateY(2px); } }
@keyframes tutTap { 50% { transform: translateY(6px) scale(.9); } }
@media (max-width: 700px) { .tut-bubble { bottom: auto; top: 64px; } }

.tut-min .tut-bubble { top: 8px; bottom: auto; left: 8px; transform: none; width: auto; max-width: 280px; padding: 6px 10px; pointer-events: none; opacity: .95; animation: none; z-index: 60; }
.tut-min .tut-bubble p, .tut-min .tut-anim, .tut-min .tut-actions, .tut-min .tut-count { display: none; } .tut-min .tut-mascot { font-size: 1.4rem; } .tut-min .tut-body h4 { font-size: .82rem; margin: 0; }
.tut-min .tut-ring, .tut-min .tut-arrow { display: none; }
@media (max-width: 700px) { .tut-bubble { padding: 8px 10px; gap: 8px; } .tut-mascot { font-size: 1.6rem; } .tut-body h4 { font-size: .9rem; } .tut-body p { font-size: .8rem; } .tut-tap { font-size: 1.3rem; } .tut-actions { margin-top: 4px; } }

/* tutorial: layar diredupkan, hanya sasaran yang terang */
.tut-dim { position: fixed; inset: 0; background: rgba(8,20,14,.55); display: none; }
.tut-full .tut-dim { display: block; }
.tut-ring { box-shadow: 0 0 0 4px rgba(255,212,59,.45), 0 0 22px rgba(255,212,59,.8), 0 0 0 200vmax rgba(8,20,14,.55) !important; animation: tutPulse2 1.2s ease-in-out infinite; }
.tut-ring.round { border-radius: 50%; }
@keyframes tutPulse2 { 50% { box-shadow: 0 0 0 9px rgba(255,212,59,.2), 0 0 28px rgba(255,212,59,.95), 0 0 0 200vmax rgba(8,20,14,.55); } }
.tut-min .tut-dim { display: none; }
.tut-bubble { z-index: 2; } .tut-arrow { z-index: 2; }

.vs-ask { background: #f1f8ff; border: 1px dashed #74c0fc; border-radius: 12px; padding: 10px; font-size: .86rem; line-height: 1.4; word-break: break-word; }
.vs-tabs { flex-wrap: wrap; }
.tut-top .tut-bubble { bottom: auto; top: 76px; }

/* Cerita & Misi Utama */
.story-stage { text-align: center; } .story-stage.in { animation: storyIn .45s ease-out; }
.story-stage h3 { margin: 10px 0 6px; font-size: 1.3rem; } .story-stage p { margin: 0 auto; max-width: 420px; line-height: 1.55; color: #43524a; }
.sc { position: relative; height: 180px; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc .big { font-size: 5rem; animation: storyFloat 3s ease-in-out infinite; } .sc img { height: 165px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.sc span[class^=f] { position: absolute; font-size: 2rem; animation: storyFloat 2.6s ease-in-out infinite; } .sc .f1 { left: 18%; top: 22%; } .sc .f2 { right: 18%; top: 30%; animation-delay: .8s; } .sc .f3 { left: 28%; bottom: 14%; animation-delay: 1.4s; }
.sc-earth { background: radial-gradient(circle at 50% 120%, #ff922b, #5c2a18 75%); } .sc-hut { background: linear-gradient(#f3d9a4, #c9a26b); } .sc-farmer { background: linear-gradient(#a5d8ff, #8ce99a); }
.sc-hero { background: linear-gradient(135deg, #2f9e44, #1c7ed6); } .sc-villa { background: linear-gradient(#d0ebff, #b2f2bb); }
.story-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; } .story-dots i { width: 8px; height: 8px; border-radius: 50%; background: #dee2e6; } .story-dots i.on { background: var(--green); width: 22px; border-radius: 6px; }
@keyframes storyIn { from { opacity: 0; transform: translateY(10px); } } @keyframes storyFloat { 50% { transform: translateY(-8px); } }
.hud-card.quest { border: 2px solid #ffe066; background: linear-gradient(#fffbea, #fff); } .hud-card.quest.ready { animation: tutPulse 1.4s infinite; border-color: #fab005; }
.q-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #9c6500; } .hud-card.quest h4 { margin: 4px 0 2px; }
.q-story { font-size: .76rem; color: #5c6b63; margin: 0 0 6px; line-height: 1.35; } .q-goals { list-style: none; padding: 0; margin: 0 0 6px; font-size: .8rem; display: grid; gap: 3px; } .q-goals li.ok { color: #2b8a3e; } .q-goals small { color: var(--muted); font-weight: 800; }
.q-chapters { padding-left: 0; list-style: none; display: grid; gap: 8px; max-height: 380px; overflow: auto; } .q-chapters li { background: #f8f9fa; border-radius: 12px; padding: 8px 10px; } .q-chapters li.cur { background: #fff9db; border: 2px solid #ffe066; } .q-chapters li.ok { background: #ebfbee; } .q-chapters p { margin: 4px 0 0; font-size: .82rem; }
.quest-done .big { font-size: 3rem; } .q-next { background: #fff9db; border-radius: 12px; padding: 10px; margin: 10px 0; text-align: left; } .q-next p { margin: 4px 0 0; font-size: .85rem; }
.q-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.q-gifts > div { background: #ebfbee; border-radius: 12px; padding: 8px 6px; }
.q-gifts b { display: block; color: #2b8a3e; font-size: .95rem; }
.q-gifts small { color: #5c6b62; font-size: .72rem; }
.cert-land { position: relative; background: linear-gradient(135deg, #fffdf3, #f4f9ec); border: 3px double #b08d3c; border-radius: 14px; padding: 16px 16px 10px; margin-bottom: 12px; text-align: left; overflow: hidden; }
.cert-land .cl-head { text-align: center; border-bottom: 1px dashed #c9b27a; padding-bottom: 8px; margin-bottom: 8px; }
.cert-land .cl-head small { letter-spacing: .12em; color: #8a6d2b; font-size: .66rem; }
.cert-land .cl-head h3 { margin: 4px 0 2px; color: #2b5d34; letter-spacing: .04em; }
.cert-land .cl-head span { font-family: ui-monospace, monospace; color: #6b5a2d; font-size: .82rem; }
.cert-land dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 8px; margin: 6px 0; font-size: .9rem; }
.cert-land dt { color: #7a6a45; } .cert-land dd { margin: 0; font-weight: 700; color: #1f3d27; }
.cert-land .cl-stamp { position: absolute; right: 14px; bottom: 52px; transform: rotate(-12deg); border: 3px solid #2f9e44; color: #2f9e44; font-weight: 800; padding: 2px 10px; border-radius: 8px; opacity: .8; letter-spacing: .08em; }
.cert-land .cl-stamp.second { border-color: #1c7ed6; color: #1c7ed6; }
.cert-land .cl-foot { font-size: .72rem; color: #7a6a45; margin: 8px 0 0; }
.lot-list { list-style: none; padding: 0; margin: 6px 0; } .lot-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2ea; }
.lot-list li small { display: block; color: #6b776e; font-size: .75rem; }
/* Kamera ECO WORLD dengan bingkai */
.ecocam-modal .modal { max-width: 560px; }
.ecocam-view { position: relative; border-radius: 18px; overflow: hidden; background: #0f4c2b; aspect-ratio: 4 / 3; padding: 10px 10px 64px; }
.ecocam-view video { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; background: #000; }
.ecocam-view video.mirror { transform: scaleX(-1); }
.ecocam-view::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #2f9e44, #1b6e3a 55%, #0f4c2b); z-index: -1; }
.ecocam-frame { position: absolute; inset: 0; pointer-events: none; }
.ecocam-frame .lf { position: absolute; width: 34px; height: 16px; background: #8ce99a; border-radius: 0 100% 0 100%; }
.ecocam-frame .l1 { left: 2px; top: 6px; transform: rotate(40deg); } .ecocam-frame .l2 { right: 2px; top: 6px; transform: rotate(-40deg) scaleX(-1); }
.ec-pill { position: absolute; left: 22px; top: 20px; background: rgba(15,76,43,.82); color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 99px; }
.ec-ico { position: absolute; right: 22px; bottom: 80px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); border: 3px solid #2f9e44; display: grid; place-items: center; font-size: 1.3rem; }
.ec-band { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #fff; }
.ec-band b { width: 40px; height: 40px; border-radius: 50%; background: #d3f9d8; border: 3px solid #fff; display: grid; place-items: center; font-size: 1.3rem; }
.ec-band div { flex: 1; min-width: 0; } .ec-band strong { display: block; font-weight: 900; letter-spacing: .02em; }
.ec-band small { display: block; color: #b2f2bb; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-band em { font-style: normal; font-weight: 800; font-size: .72rem; opacity: .6; align-self: flex-start; margin-top: 14px; }
.ecocam-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }
.ecocam-view.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: ecflash .25s ease-out forwards; }
@keyframes ecflash { from { opacity: .9; } to { opacity: 0; } }
.ecocam-ctl { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ec-shutter { width: 66px; height: 66px; border-radius: 50%; border: 5px solid #2f9e44; background: #fff; box-shadow: 0 0 0 4px #d3f9d8; cursor: pointer; }
.ec-shutter:active { transform: scale(.94); background: #ebfbee; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 14px; max-height: 60vh; overflow: auto; }
.ph-item { border: 0; background: #f4f9ec; border-radius: 12px; padding: 6px; text-align: left; cursor: pointer; }
.ph-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #d3f9d8; display: block; }
.ph-item span { display: block; font-weight: 700; font-size: .8rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-item small { color: #6b776e; font-size: .7rem; } .ph-item.ph-off img { opacity: .35; }
.ph-big { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; }
/* kartu pemain bertab & kartu rumah */
.pc-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.pc-tabs button { border: 0; background: #eef5ea; border-radius: 99px; padding: 7px 14px; font-weight: 800; cursor: pointer; }
.pc-tabs button.on { background: #2f9e44; color: #fff; }
.pc-house { display: flex; gap: 10px; align-items: center; background: #f4f9ec; border-radius: 12px; padding: 8px; margin-bottom: 10px; }
.pc-house img { width: 96px; height: 72px; object-fit: contain; }
.pc-house b, .pc-house small { display: block; } .pc-house small { color: #6b776e; }
.pc-goals { list-style: none; padding: 0; margin: 6px 0; text-align: left; font-size: .88rem; } .pc-goals li { padding: 4px 0; border-bottom: 1px dashed #e3ebdf; }
.hcard { text-align: center; } .hc-head h3 { margin: 0; }
.hc-slide { margin: 10px 0; min-height: 260px; }
.hc-img { position: relative; background: linear-gradient(#e7f5ff, #ebfbee); border-radius: 14px; padding: 6px; margin-bottom: 8px; }
.hc-img img { width: 100%; max-height: 190px; object-fit: contain; display: block; }
.hc-img.lock img { filter: grayscale(.85) brightness(.85); opacity: .75; }
.hc-lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; }
.hc-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hc-nav .btn { font-size: 1.4rem; padding: 4px 16px; }
.hc-dots { display: flex; gap: 5px; } .hc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dee2e6; } .hc-dots i.done { background: #8ce99a; } .hc-dots i.on { background: #2f9e44; transform: scale(1.3); }
/* inbox */
.tb-inbox { position: relative; } .tb-inbox .dot { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 900; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.ib-list { list-style: none; padding: 0; margin: 0; } .ib-list li { padding: 10px 6px; border-bottom: 1px solid #eef2ea; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.ib-list li small { grid-column: 1; color: #6b776e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ib-list li em { grid-row: 1; grid-column: 2; font-style: normal; font-size: .72rem; color: #868e96; }
.dot-n { background: var(--danger); color: #fff; border-radius: 9px; font-size: .7rem; padding: 1px 6px; }
.ib-thread { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 0 10px; }
.ib-msg { align-self: flex-start; background: #f1f3f5; border-radius: 12px 12px 12px 4px; padding: 7px 10px; max-width: 80%; }
.ib-msg.me { align-self: flex-end; background: #d3f9d8; border-radius: 12px 12px 4px 12px; } .ib-msg small { display: block; font-size: .66rem; color: #868e96; }
.tpl .chip { border: 1px solid #d3e6cf; background: #f4f9ec; border-radius: 99px; padding: 4px 10px; font-size: .78rem; cursor: pointer; }
/* HP: angka besar di topbar tidak boleh menutupi foto profil */
@media (max-width: 560px) {
  .topbar { gap: 6px; }
  .tb-user { flex: none; }
  .tb-chips { min-width: 0; flex: 0 1 auto; margin-left: auto; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 5px; }
  .tb-chips::-webkit-scrollbar { display: none; }
  .tb-chips .chip { flex: none; padding: 4px 7px; }
  .topbar .chip-cloud small { display: none; }
  .topbar .tb-snd, .topbar .tb-bell { flex: none; }
}
@media (max-width: 420px) {
  .topbar .chip-cloud { display: none; }
  .topbar [data-act=snd-sfx] { display: none; }
  .tb-chips .chip-bag { display: none; }
}
.vpop { display: flex; gap: 8px; flex-wrap: wrap; font-size: .76rem; margin: 3px 0; } .vpop span { background: #f1f3f5; border-radius: 99px; padding: 2px 8px; }
.vpop .live { background: #d3f9d8; color: #2b8a3e; font-weight: 800; animation: livepulse 1.6s ease-in-out infinite; } @keyframes livepulse { 50% { opacity: .55; } }
.tabs-wrap { position: relative; display: flex; align-items: center; gap: 6px; margin: 10px 0 18px; }
.tabs-wrap .tabs.scroll { margin: 0; flex: 1; min-width: 0; scroll-behavior: smooth; }
.tw-arr { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line, #e3ebdf); background: #fff; font-size: 1.3rem; font-weight: 900; color: #2b8a3e; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tw-arr:hover { background: #ebfbee; }
.hud-near .ride-stop { background: #e03131 !important; color: #fff; }
.arena-score .pk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #dee2e6; margin-right: 3px; vertical-align: middle; } .arena-score .pk.g { background: #2f9e44; } .arena-score .pk.m { background: #e03131; }
.pw-wrap { position: relative; } .pw-wrap input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; padding: 4px 6px; line-height: 1; }
.pw-hint { font-size: .78rem; margin-top: -4px; min-height: 1em; }
.acc-hide { display: none !important; }
.acc-done { text-align: center; } .acc-done .big { font-size: 3rem; } .acc-done h3 { margin: 4px 0; color: #2b8a3e; }
.acc-steps { text-align: left; margin: 10px 0; padding-left: 22px; font-size: .9rem; } .acc-steps li { margin: 4px 0; }
.trial .tr-ic { font-size: 3.2rem; } .trial .tr-p { text-align: left; } .trial .tr-p .meta { margin: 6px 0; }
.hud-card.invite-m { border: 2px solid #fab005; background: linear-gradient(135deg, #fff9db, #fff); animation: invglow 2.4s ease-in-out infinite; }
.hud-card.invite-m.ready { border-color: #2f9e44; background: linear-gradient(135deg, #ebfbee, #fff); }
.hud-card.invite-m small { display: block; margin: 3px 0; } .hud-card.invite-m .meter { margin: 6px 0 2px; }
@keyframes invglow { 50% { box-shadow: 0 0 0 4px rgba(250,176,5,.25); } }
.tab-paused { position: fixed; inset: 0; z-index: 99999; background: rgba(15,40,25,.78); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.tab-paused .tp-box { background: #fff; border-radius: 20px; padding: 24px; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.tab-paused .big { font-size: 3rem; }
