:root {
  --bg: #0f211c;
  --bg2: #132a24;
  --panel: rgba(19,40,34, .92);
  --panel2: #16302a;
  --line: rgba(196,204,178, .16);
  --line2: rgba(196,204,178, .28);
  --ink: #ece8dc;
  --ink2: #b3bba9;
  --ink3: #7f8b7f;
  --red: #d9434b;
  --red2: #e8323d;
  --gold: #c9a55a;
  --teal: #3aa58a;
  --green: #57c98a;
  --blue: #58a6ff;
  --neutral: #56635c;
  --sea: #0b2326;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
b { font-weight: 700; }

.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }

/* ---------------- Buttons ---------------- */
.btn { border: 1px solid var(--line2); background: rgba(255,255,255,.04); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: .15s; }
.btn:hover { background: rgba(255,255,255,.1); border-color: var(--ink3); }
.btn-primary { background: linear-gradient(180deg, #ff4d55, #c4161f); border-color: #ff6a70; color: #fff; box-shadow: 0 6px 24px rgba(217,67,75, .35); }
.btn-primary:hover { background: linear-gradient(180deg, #ff6067, #d61e28); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { background: transparent; border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.08); }

/* ---------------- Intro ---------------- */
#intro { background: radial-gradient(ellipse at 50% 60%, #0f2140 0%, #060a13 70%); overflow: auto; }
.intro-bg { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.intro-bg svg { width: 100%; height: 100%; }
.intro-bg path { fill: rgba(58,165,138, .08); stroke: rgba(58,165,138, .55); stroke-width: .8; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-inner { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 28px; }
.intro-logo { text-align: center; }
.logo-badge { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, #d4920f 70%); font-size: 46px; box-shadow: 0 0 0 4px rgba(201,165,90,.25), 0 0 60px rgba(201,165,90,.45); animation: pulseGlow 3s ease-in-out infinite; }
.logo-badge.sm { width: 30px; height: 30px; font-size: 17px; box-shadow: 0 0 14px rgba(201,165,90,.4); animation: none; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 8px rgba(201,165,90,.12), 0 0 90px rgba(201,165,90,.6); } }
.intro-logo h1 { font-family: var(--display); font-size: clamp(44px, 8vw, 96px); letter-spacing: 3px; margin: 14px 0 0; line-height: .95; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.intro-logo h1 span { color: var(--red2); text-shadow: 0 0 30px rgba(232,50,61, .5); }
.tagline { color: var(--ink2); font-size: 16px; margin: 10px 0 0; }
.intro-card { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); backdrop-filter: blur(8px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.intro-card.setup { width: min(860px, 100%); }
.intro-card h2 { margin: 0 0 4px; font-family: var(--display); letter-spacing: 1.5px; font-size: 30px; font-weight: 400; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--ink2); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-top: 6px; }
.field input { background: #11251f; border: 1px solid var(--line2); color: var(--ink); padding: 12px; border-radius: 8px; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.vp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vp-card { text-align: left; background: #11251f; border: 1px solid var(--line2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; transition: .15s; }
.vp-card .vp-ic { font-size: 28px; }
.vp-card b { font-size: 13px; }
.vp-card small { color: var(--gold); font-size: 11px; }
.vp-card p { margin: 4px 0 0; color: var(--ink2); font-size: 12px; line-height: 1.35; }
.vp-card:hover { border-color: var(--ink3); }
.vp-card.on { border-color: var(--gold); background: rgba(201,165,90,.08); box-shadow: 0 0 0 1px var(--gold) inset; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; background: #11251f; border: 1px solid var(--line2); border-radius: 8px; padding: 10px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.seg button small { font-weight: 400; color: var(--ink3); font-size: 11px; }
.seg button.on { border-color: var(--gold); background: rgba(201,165,90,.1); }
.setup-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.intro-foot { color: var(--ink3); font-size: 11px; text-align: center; }

/* ---------------- Game layout ---------------- */
#game { display: none; grid-template-columns: 210px 1fr 300px; grid-template-rows: 58px 1fr 38px; grid-template-areas: "top top top" "left map right" "tick tick tick"; background: var(--bg); }
#game.active { display: grid; }
#topbar { grid-area: top; display: flex; align-items: stretch; gap: 0; background: linear-gradient(180deg, #132b25, #0e221c); border-bottom: 1px solid var(--line2); padding: 0 10px; z-index: 5; }
.tb-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 22px; letter-spacing: 2px; padding-right: 14px; border-right: 1px solid var(--line); }
.tb-date { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border-right: 1px solid var(--line); }
.tb-date div { font-family: var(--display); font-size: 24px; letter-spacing: 1px; line-height: 1; }
.tb-date small { color: var(--ink3); font-size: 11px; }
.tb-stat { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border-right: 1px solid var(--line); min-width: 100px; position: relative; }
.tb-stat small { color: var(--ink3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.tb-stat b { font-size: 19px; font-variant-numeric: tabular-nums; }
.tb-stat i { position: absolute; right: 8px; bottom: 10px; font-style: normal; font-size: 11px; font-weight: 700; }
.tb-stat.big b { font-size: 24px; }
.tb-stat.warn b { color: var(--gold); }
.tb-stat.bad b { color: var(--red); }
.tb-stat.good b { color: var(--green); }
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.up { color: var(--green); } .down { color: var(--red); }

/* left */
#left { grid-area: left; background: var(--panel2); border-right: 1px solid var(--line); overflow-y: auto; padding: 10px 8px; z-index: 4; }
.panel-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--ink3); font-weight: 700; padding: 8px 8px 6px; }
#catList button, #actList button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; position: relative; }
#catList button span, #actList button span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.05); font-size: 15px; flex: none; }
#catList button:hover, #actList button:hover { background: rgba(255,255,255,.05); border-color: var(--line); }
#catList button.on { background: rgba(255,255,255,.07); border-color: var(--line2); }
#catList button em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--gold); color: #000; border-radius: 10px; padding: 1px 6px; }
.left-hint { margin: 14px 6px; padding: 10px; border: 1px dashed var(--line2); border-radius: 8px; color: var(--ink2); font-size: 12px; line-height: 1.45; }

/* map */
#mapWrap { grid-area: map; position: relative; overflow: hidden; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 50% 55%, #123430 0%, #0a1915 75%); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#left, #right { min-height: 0; }
#map.dragging { cursor: grabbing; }
#map .prov { stroke: rgba(16,35,30, .9); stroke-width: .7; transition: fill 1.1s ease; cursor: pointer; vector-effect: non-scaling-stroke; }
#map .prov:hover { filter: brightness(1.35); stroke: #fff; stroke-width: 1.2; }
#map .prov.sel { stroke: var(--gold); stroke-width: 2; }
#map .prov.flash { animation: provFlash .9s ease; }
@keyframes provFlash { 30% { filter: brightness(2.2) saturate(1.4); } }
#map .glow { fill: none; stroke: rgba(80, 200, 255, .28); stroke-width: 5; filter: url(#blur6); pointer-events: none; }
#map .grat { stroke: rgba(170,190,150, .07); stroke-width: 1; fill: none; }
#map .route { fill: none; stroke: rgba(120, 190, 255, .22); stroke-width: 1.1; stroke-dasharray: 4 6; animation: dash 30s linear infinite; pointer-events: none; }
#map .flight { fill: none; stroke: rgba(255, 220, 140, .18); stroke-width: 1; stroke-dasharray: 2 5; pointer-events: none; }
@keyframes dash { to { stroke-dashoffset: -600; } }
#map .label { font: 600 9px var(--font); fill: rgba(236,232,220, .75); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(6,16,13, .8); stroke-width: 2.5px; letter-spacing: .3px; }
#map .label.pct { font-size: 8px; fill: rgba(255,255,255,.95); }
#map .city { fill: #fff; opacity: .8; }
#map .city-ring { fill: none; stroke: #fff; opacity: .5; animation: cityPulse 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cityPulse { from { transform: scale(.4); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.ripple { fill: none; stroke-width: 3; pointer-events: none; }
.marker { cursor: pointer; }
.marker .m-ring { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mring 1.8s ease-out infinite; }
@keyframes mring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.marker .m-bg { stroke: rgba(0,0,0,.6); stroke-width: 1; }
.marker text { font-size: 13px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.bubble { cursor: pointer; transform-box: fill-box; transform-origin: center; animation: bubIn .45s cubic-bezier(.2, 1.6, .4, 1) both, bubFloat 2.2s ease-in-out .45s infinite; }
.bubble circle.b-bg { stroke: #fff; stroke-width: 1.5; }
.bubble text { font-size: 15px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.bubble.pop { animation: bubPop .35s ease forwards; }
.bubble.fade { animation: bubFade .6s ease forwards; }
@keyframes bubIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bubFloat { 50% { transform: translateY(-4px); } }
@keyframes bubPop { to { transform: scale(1.8); opacity: 0; } }
@keyframes bubFade { to { transform: scale(.3); opacity: 0; } }
.floattxt { font: 800 14px var(--font); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #000; stroke-width: 3px; animation: floatUp 1.4s ease-out forwards; }
@keyframes floatUp { to { transform: translateY(-34px); opacity: 0; } }
.shake { animation: shake .6s ease; }
@keyframes shake { 10%, 50%, 90% { transform: translate(-4px, 2px); } 30%, 70% { transform: translate(4px, -2px); } }

#mapHud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.layer-seg { display: inline-flex; background: rgba(14,32,27, .85); border: 1px solid var(--line2); border-radius: 8px; padding: 3px; pointer-events: auto; align-self: flex-start; }
.layer-seg button { background: transparent; border: 0; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.layer-seg button.on { background: rgba(255,255,255,.12); color: #fff; }
#sitChips { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; max-width: 70%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(217,67,75,.18); border: 1px solid rgba(217,67,75,.6); cursor: pointer; animation: chipIn .4s ease; }
.chip.good { background: rgba(87,201,138,.14); border-color: rgba(87,201,138,.55); }
@keyframes chipIn { from { transform: translateY(-8px); opacity: 0; } }
#legend { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink2); background: rgba(14,32,27,.8); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.lg-bar { display: inline-block; width: 130px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d9434b, #56635c, #3aa58a); }
#zoomCtl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; }
#zoomCtl button { width: 30px; height: 30px; border-radius: 7px; background: rgba(14,32,27,.85); border: 1px solid var(--line2); font-weight: 700; }
#tooltip { position: absolute; pointer-events: none; background: rgba(10,24,20, .96); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 12px; min-width: 200px; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#tooltip h4 { margin: 0 0 6px; font-size: 14px; }
#tooltip .tt-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink2); margin: 2px 0; }
#tooltip .tt-row b { color: var(--ink); }
#tooltip .tt-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 6px 0; overflow: hidden; }
#tooltip .tt-bar i { display: block; height: 100%; border-radius: 3px; }

.btn-next { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 12px 18px 12px 20px; border-radius: 12px; border: 1px solid #ff7a80; background: linear-gradient(180deg, #ff4d55, #b3121c); color: #fff; box-shadow: 0 10px 34px rgba(217,67,75,.45), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .15s; z-index: 3; }
.btn-next:hover { transform: translateY(-2px) scale(1.02); }
.btn-next:disabled { filter: grayscale(.8); opacity: .6; transform: none; cursor: wait; }
.nx-label { font-family: var(--display); font-size: 26px; letter-spacing: 1.5px; line-height: 1; }
.nx-sub { grid-column: 1; font-size: 11px; opacity: .85; text-align: left; }
.nx-arrow { grid-row: 1 / 3; grid-column: 2; font-size: 22px; }
#toastBox { position: absolute; right: 16px; bottom: 96px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; z-index: 6; }
.toast { background: rgba(14,32,27, .95); border: 1px solid var(--line2); border-left: 4px solid var(--gold); border-radius: 8px; padding: 9px 12px; font-size: 13px; max-width: 320px; animation: toastIn .3s ease, toastOut .4s ease 3.6s forwards; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.bad { border-left-color: var(--red); } .toast.good { border-left-color: var(--green); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

/* right */
#right { grid-area: right; background: var(--panel2); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 4; }
.tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { flex: 1; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 11px 4px; font-weight: 700; font-size: 12.5px; color: var(--ink3); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.tab-body { overflow-y: auto; padding: 8px; flex: 1; min-height: 0; }
.st-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 8px; cursor: default; }
.st-row:hover { background: rgba(255,255,255,.04); }
.st-row .ic { font-size: 16px; text-align: center; }
.st-row .nm { font-size: 12.5px; font-weight: 600; }
.st-row .val { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.st-row .val small { display: block; font-size: 10.5px; font-weight: 700; }
.mini-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); margin-top: 4px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 2px; transition: width .8s ease; }
.grp-row { display: grid; grid-template-columns: 26px 1fr 44px; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; }
.grp-row:hover { background: rgba(255,255,255,.04); }
.grp-row .ic { font-size: 17px; text-align: center; }
.grp-row .nm { font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; }
.grp-row .nm small { color: var(--ink3); font-weight: 500; }
.grp-row .val { font-weight: 800; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.section-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink3); font-weight: 700; margin: 12px 6px 6px; }
.trend-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; }
.trend-tags span { background: rgba(88,166,255,.12); color: #8cc4ff; border: 1px solid rgba(88,166,255,.3); border-radius: 14px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
.post { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0 0 8px; background: rgba(255,255,255,.02); animation: postIn .5s ease both; }
@keyframes postIn { from { opacity: 0; transform: translateY(8px); } }
.post .ph { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.post .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #22403a; flex: none; }
.post .un { font-weight: 700; font-size: 12.5px; }
.post .un small { display: block; color: var(--ink3); font-weight: 500; font-size: 10.5px; }
.post p { margin: 0; font-size: 13px; line-height: 1.42; }
.post .pf { display: flex; gap: 14px; color: var(--ink3); font-size: 11px; margin-top: 6px; }
.post.neg { border-left: 3px solid var(--red); } .post.pos { border-left: 3px solid var(--teal); }
.post.buzzer { opacity: .8; border-style: dashed; }

/* ticker */
#ticker { grid-area: tick; display: flex; align-items: stretch; background: #0c1a16; border-top: 2px solid var(--red2); overflow: hidden; z-index: 5; }
.tk-label { background: var(--red2); display: flex; align-items: center; gap: 6px; padding: 0 14px; font-family: var(--display); font-size: 20px; letter-spacing: 1.5px; flex: none; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); padding-right: 22px; }
.tk-label span { color: #ffe08a; }
.tk-track { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tk-inner { display: inline-flex; white-space: nowrap; gap: 0; animation: tick 90s linear infinite; will-change: transform; }
.tk-inner span { padding: 0 22px; font-weight: 600; font-size: 13.5px; }
.tk-inner span::before { content: '◆'; color: var(--red2); margin-right: 22px; font-size: 9px; vertical-align: middle; }
.tk-inner span.breaking { color: #ffd0d2; }
.tk-inner span.good { color: #b8f5d2; }
.tk-inner span.kebijakan { color: #ffe08a; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-brand { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 14px; background: #16302a; font-family: var(--display); font-size: 16px; letter-spacing: 1px; line-height: 1; border-left: 1px solid var(--line); }
.tk-brand small { font-size: 10px; color: var(--red2); }

/* ---------------- Drawer ---------------- */
.drawer { position: fixed; top: 58px; bottom: 38px; left: 210px; width: min(560px, calc(100vw - 230px)); background: rgba(16,35,30, .97); border-right: 1px solid var(--line2); z-index: 20; display: flex; flex-direction: column; animation: drawerIn .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.45); }
@keyframes drawerIn { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 1.2px; }
.drawer-body { overflow-y: auto; padding: 12px; flex: 1; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pol-card { text-align: left; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; transition: .15s; position: relative; }
.pol-card:hover { border-color: var(--ink3); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.pol-card .pc-top { display: flex; gap: 8px; align-items: center; }
.pol-card .pc-ic { font-size: 20px; }
.pol-card b { font-size: 12.5px; line-height: 1.25; }
.pol-card .pc-lv { font-size: 11.5px; color: var(--gold); font-weight: 600; }
.pol-card .pips { display: flex; gap: 3px; }
.pol-card .pips i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); }
.pol-card .pips i.on { background: var(--gold); }
.pol-card .pips i.pend { background: repeating-linear-gradient(45deg, var(--gold) 0 3px, transparent 3px 6px); }
.pol-card.changed { border-color: var(--gold); }
.pol-card .tag-uu { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 800; color: #c38bff; border: 1px solid #c38bff; border-radius: 4px; padding: 0 4px; }

/* ---------------- Modal ---------------- */
#modalBack { position: fixed; inset: 0; background: rgba(5,14,11, .65); backdrop-filter: blur(3px); z-index: 30; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 60px); overflow-y: auto; background: #15302a; border: 1px solid var(--line2); border-radius: 16px; z-index: 31; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: modalIn .28s cubic-bezier(.2, 1.2, .4, 1); }
.modal.wide { width: min(1000px, calc(100vw - 32px)); }
@keyframes modalIn { from { transform: translate(-50%, -46%) scale(.96); opacity: 0; } }
.m-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #15302a; z-index: 2; }
.m-head .m-ic { font-size: 30px; }
.m-head h3 { margin: 0; font-size: 20px; }
.m-head p { margin: 2px 0 0; color: var(--ink2); font-size: 12.5px; }
.m-head .icon-btn { margin-left: auto; }
.m-body { padding: 16px 18px; }
.m-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #15302a; }
.lv-seg { display: flex; gap: 4px; margin: 10px 0 4px; }
.lv-seg button { flex: 1; padding: 10px 4px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 12px; font-weight: 600; line-height: 1.2; }
.lv-seg button.cur { border-color: var(--ink3); }
.lv-seg button.on { background: rgba(201,165,90,.16); border-color: var(--gold); color: #fff; }
.lv-seg button:disabled { opacity: .35; }
.eff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.eff-box { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.eff-box h5 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink3); }
.eff { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 3px 0; }
.eff .arrows { font-weight: 800; letter-spacing: -1px; }
.kv { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.kv div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.kv small { display: block; color: var(--ink3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.kv b { font-size: 15px; }
.note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; background: rgba(195,139,255,.08); border: 1px solid rgba(195,139,255,.3); }
.note.bad { background: rgba(217,67,75,.1); border-color: rgba(217,67,75,.45); }

/* event newspaper */
.paper { background: #f3ecdc; color: #1b1712; border-radius: 6px; margin: 0; overflow: hidden; }
.paper-mast { text-align: center; padding: 14px 18px 8px; border-bottom: 3px double #1b1712; }
.paper-mast h2 { font-family: var(--serif); font-weight: 900; font-size: 34px; margin: 0; letter-spacing: 1px; }
.paper-mast small { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-top: 1px solid #1b1712; margin-top: 6px; padding-top: 4px; }
.paper-body { padding: 16px 20px 18px; display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
.paper-img { width: 150px; height: 150px; background: #d8ceb6; border: 1px solid #1b1712; display: grid; place-items: center; font-size: 80px; filter: sepia(.25); position: relative; }
.paper-img::after { content: 'FOTO: ANTARA-N'; position: absolute; bottom: 3px; right: 5px; font-size: 8px; letter-spacing: 1px; color: #5a4e3a; }
.paper h1 { font-family: var(--serif); font-size: 27px; line-height: 1.1; margin: 0 0 8px; }
.paper p { font-family: Georgia, serif; font-size: 14.5px; line-height: 1.55; margin: 0; }
.paper .kicker { font-size: 11px; font-weight: 800; color: #b3121c; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.choices { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.choice { text-align: left; border: 1px solid var(--line2); background: rgba(255,255,255,.03); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; transition: .15s; }
.choice:hover { border-color: var(--gold); background: rgba(201,165,90,.08); transform: translateX(3px); }
.choice .cn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #000; font-weight: 800; }
.choice b { font-size: 14.5px; }
.choice p { margin: 3px 0 6px; color: var(--ink2); font-size: 12.5px; }
.choice .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tg { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.06); }
.tg.p { color: #8ff0bf; background: rgba(87,201,138,.12); } .tg.n { color: #ffb1b4; background: rgba(217,67,75,.14); } .tg.k { color: #ffe08a; background: rgba(201,165,90,.12); }

/* DPR hemicycle */
.hemi { display: block; margin: 0 auto; max-width: 520px; width: 100%; }
.party-row { display: grid; grid-template-columns: 14px 1fr 70px 110px auto; gap: 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.party-row .dot { width: 12px; height: 12px; border-radius: 3px; }
.party-row small { color: var(--ink3); display: block; font-size: 11px; }
.party-row .acts { display: flex; gap: 4px; }
.party-row .acts button { padding: 5px 8px; font-size: 11px; border-radius: 6px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); }
.party-row .acts button:hover { border-color: var(--gold); }
.sat-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.sat-bar i { display: block; height: 100%; border-radius: 3px; }
.badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: rgba(87,201,138,.15); color: #8ff0bf; margin-left: 6px; }
.badge.op { background: rgba(217,67,75,.15); color: #ffb1b4; }

/* budget */
.bud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bud-item { display: grid; grid-template-columns: 1fr 70px; gap: 8px; font-size: 12.5px; padding: 3px 0; align-items: center; }
.bud-item .bb { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); grid-column: 1 / 3; overflow: hidden; }
.bud-item .bb i { display: block; height: 100%; border-radius: 4px; }
.bud-item span:last-of-type { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
canvas.chart { width: 100%; height: 220px; display: block; }
.chart-wrap { position: relative; }
.chart-tip { position: absolute; pointer-events: none; background: #0a1915; border: 1px solid var(--line2); border-radius: 6px; padding: 5px 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); }

/* turn summary */
#fullscreen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5,14,11,.82); backdrop-filter: blur(4px); animation: fadeIn .3s ease; overflow: auto; padding: 20px; }
.summary { width: min(820px, 100%); }
.sum-paper { background: #f3ecdc; color: #1b1712; border-radius: 6px; box-shadow: 0 40px 120px rgba(0,0,0,.7); animation: paperSpin .7s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes paperSpin { from { transform: rotate(-200deg) scale(.1); opacity: 0; } }
.sum-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; padding: 16px 20px 20px; }
.sum-cols h1 { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin: 0 0 10px; }
.sum-cols ul { margin: 0; padding-left: 18px; font-family: Georgia, serif; font-size: 14px; line-height: 1.55; }
.sum-side { border-left: 1px solid #1b1712; padding-left: 16px; font-size: 13px; }
.sum-side h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.sum-side .bigpct { font-family: var(--serif); font-size: 52px; font-weight: 900; line-height: 1; }
.sum-side .row { display: flex; justify-content: space-between; border-bottom: 1px dotted #8a7f6a; padding: 3px 0; }
.sum-actions { text-align: center; margin-top: 16px; }

/* election night */
.elect { width: min(1100px, 100%); background: #070d1a; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.el-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: linear-gradient(90deg, #b3121c, #6e0a12); }
.el-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 2px; }
.el-live { background: #fff; color: #b3121c; font-weight: 900; padding: 3px 10px; border-radius: 4px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .4; } }
.el-tally { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.el-cand { padding: 14px 20px; display: flex; flex-direction: column; gap: 4px; }
.el-cand.you { background: rgba(58,165,138,.12); }
.el-cand.riv { background: rgba(217,67,75,.12); text-align: right; }
.el-cand small { color: var(--ink2); }
.el-cand .pct { font-family: var(--display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.el-bar { height: 16px; display: flex; background: #222; }
.el-bar i { display: block; height: 100%; transition: width .3s; flex: none; }
.el-bar i:nth-child(2) { flex: 1 1 auto; }
.el-bar .mid { position: absolute; left: 50%; }
.el-map svg { width: 100%; display: block; background: radial-gradient(ellipse, #123430, #0a1915); }
.el-progress { padding: 10px 20px; color: var(--ink2); font-size: 13px; display: flex; justify-content: space-between; }
.el-verdict { text-align: center; padding: 16px 20px 22px; animation: fadeIn .6s ease; }
.el-verdict h1 { font-family: var(--display); font-weight: 400; font-size: 56px; letter-spacing: 2px; margin: 0; }

/* ending */
.ending { width: min(720px, 100%); text-align: center; background: #15302a; border: 1px solid var(--line2); border-radius: 18px; padding: 32px 24px; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.ending .end-ic { font-size: 72px; }
.ending h1 { font-family: var(--display); font-weight: 400; font-size: 54px; letter-spacing: 2px; margin: 8px 0; }
.ending p { color: var(--ink2); font-size: 15px; line-height: 1.55; }
.ending .score { font-family: var(--display); font-size: 90px; color: var(--gold); line-height: 1; }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.end-stats div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.end-stats small { display: block; color: var(--ink3); font-size: 11px; }
.end-stats b { font-size: 18px; }

.howto h4 { margin: 14px 0 4px; color: var(--gold); }
.howto p, .howto li { color: var(--ink2); line-height: 1.55; font-size: 13.5px; }
.arsip-row { border-bottom: 1px solid var(--line); padding: 8px 2px; font-size: 13px; }
.arsip-row small { color: var(--ink3); }

/* province panel */
.prov-head { display: flex; align-items: center; gap: 14px; }
.prov-big { font-family: var(--display); font-size: 56px; line-height: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  #game { grid-template-columns: 64px 1fr 260px; }
  #catList button, #actList button { font-size: 0; justify-content: center; padding: 8px 0; }
  #catList button em { position: absolute; top: 2px; right: 4px; font-size: 9px; }
  .panel-title, .left-hint { display: none; }
  .drawer { left: 64px; width: min(560px, calc(100vw - 80px)); }
  .tb-stat { min-width: 84px; padding: 0 10px; }
  #tbDebt, #tbElection { display: none; }
}
@media (max-width: 760px) {
  html, body { overflow: auto; }
  #game.active { display: flex; flex-direction: column; height: auto; min-height: 100%; position: relative; }
  #topbar { flex-wrap: wrap; height: auto; padding: 6px 10px; gap: 4px; position: sticky; top: 0; }
  .tb-brand { display: none; }
  .tb-stat, .tb-date { border: 0; padding: 4px 8px; min-width: 0; }
  #tbDeficit, #tbCoal { display: none; }
  #left { order: 3; display: block; }
  #catList, #actList { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  #catList button, #actList button { font-size: 10px; flex-direction: column; gap: 3px; padding: 6px 2px; text-align: center; }
  #mapWrap { order: 1; height: 62vh; flex: none; }
  #right { order: 4; height: 70vh; }
  #ticker { order: 2; height: 34px; flex: none; }
  .drawer { left: 0; top: 0; bottom: 0; width: 100vw; }
  .vp-grid { grid-template-columns: 1fr 1fr; }
  .eff-cols, .bud-grid, .sum-cols, .paper-body { grid-template-columns: 1fr; }
  .paper-img { width: 100%; height: 110px; }
  .btn-next { right: 10px; bottom: 10px; padding: 10px 14px; }
  .nx-label { font-size: 20px; }
  #legend { display: none; }
  .end-stats { grid-template-columns: 1fr 1fr; }
  .party-row { grid-template-columns: 12px 1fr 60px; }
  .party-row .acts { grid-column: 2 / 4; }
  .party-row .sat-bar { display: none; }
}

/* ================= v2 ================= */
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.fine { color: var(--ink3); font-size: 12px; line-height: 1.45; }
.st-row .sub { color: var(--ink3); font-size: 10.5px; margin-top: 1px; }
.st-row .val { white-space: nowrap; }
.chip.info { background: rgba(195,139,255,.15); border-color: rgba(195,139,255,.55); }
.sel { background: #11251f; color: var(--ink); border: 1px solid var(--line2); border-radius: 6px; padding: 6px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.argu { font-size: 12.5px; color: var(--ink2); padding: 7px 10px; border-radius: 8px; margin-bottom: 6px; line-height: 1.45; background: rgba(255,255,255,.03); border-left: 3px solid var(--line2); font-style: italic; }
.argu.pro { border-left-color: rgba(58,165,138,.7); } .argu.con { border-left-color: rgba(217,67,75,.7); }
.quote { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.q-who { font-weight: 700; font-size: 13px; } .q-who span { color: var(--ink3); font-weight: 500; font-size: 11.5px; margin-left: 4px; }
.q-text { color: var(--ink2); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.study { background: rgba(201,165,90,.06); border: 1px solid rgba(201,165,90,.3); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 13px; }
.study-h { font-weight: 700; margin-bottom: 4px; } .study ul { margin: 4px 0; padding-left: 18px; line-height: 1.6; }
.note-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.5; }
.min-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.min-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.min-row small { display: block; color: var(--ink3); font-size: 11.5px; margin-top: 2px; }
.bill { background: rgba(195,139,255,.06); border: 1px solid rgba(195,139,255,.3); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-size: 13px; }
.bill .sat-bar { margin-top: 6px; }
.party-row { grid-template-columns: 14px 1fr 80px 110px auto; }
.party-row b.up, .party-row b.down { font-size: 12px; }
.ln-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.country-row, .deal-row { display: grid; width: 100%; text-align: left; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; gap: 10px; align-items: center; transition: .15s; }
.country-row { grid-template-columns: 30px 1fr 120px; }
.country-row:hover, .deal-row:hover { border-color: var(--gold); background: rgba(201,165,90,.06); }
.country-row .flag { font-size: 24px; } .country-row small, .deal-row small { display: block; color: var(--ink3); font-size: 11.5px; margin-top: 2px; }
.country-row .rel small { text-align: right; }
.clause { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.opt { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; margin-top: 6px; cursor: pointer; color: var(--ink2); border: 1px solid transparent; }
.opt.on { border-color: var(--gold); background: rgba(201,165,90,.08); color: var(--ink); }
.opt input { margin-top: 3px; accent-color: var(--gold); }
.lini-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.lini-feed { max-height: 58vh; overflow-y: auto; margin-top: 10px; padding-right: 4px; }
.sent { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sent-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); margin: 5px 0; gap: 2px; }
.sent-bar i { display: block; height: 100%; } .sent-bar i.p { background: #3aa58a; } .sent-bar i.n { background: #d9434b; }
.post-ref { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--ink2); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 2px 8px; }
.adv { font-size: 11.5px; color: #8cc4ff; margin-top: 2px; }
.lv-seg button { min-height: 44px; }
#topbar { overflow-x: auto; }
.tb-stat { min-width: 86px; padding: 0 11px; }
#left { padding-bottom: 20px; }
@media (max-width: 1180px) { #tbKurs, #tbDeficit { display: none; } .min-grid, .ln-grid, .lini-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pp-grid { grid-template-columns: 1fr; } #tbGrowth, #tbInfl { display: none; } .min-row { grid-template-columns: 1fr auto; } }

.flag-img { width: 28px; height: auto; border-radius: 3px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.deal-row .flag-img { width: 20px; margin-right: 4px; }

/* ===== Wizard pelantikan ===== */
.intro-card.setup { width: min(1000px, 100%); }
.steps { display: flex; gap: 6px; margin-bottom: 4px; }
.steps span { flex: 1; text-align: center; padding: 7px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink3); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.steps span.on { color: #fff; border-color: var(--gold); background: rgba(201,165,90,.12); }
.steps span.done { color: var(--green); }
.quota { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.quota .q { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 16px; font-size: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); }
.quota .q i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.quota .q.short { border-color: rgba(217,67,75,.7); background: rgba(217,67,75,.12); }
.quota .q.over { border-color: rgba(201,165,90,.6); }
.quota .q.ok { border-color: rgba(87,201,138,.5); }
.cab-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.cab-list { max-height: 40vh; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 8px; }
.cab-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: stretch; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cab-post { font-weight: 700; font-size: 12.5px; align-self: center; }
.cab-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cab-opt { text-align: left; background: #11251f; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; transition: .12s; }
.cab-opt:hover { border-color: var(--ink3); }
.cab-opt.on { border-color: var(--gold); background: rgba(201,165,90,.09); box-shadow: 0 0 0 1px var(--gold) inset; }
.cab-opt b { font-size: 12px; }
.cab-opt small { color: var(--ink3); font-size: 10.5px; line-height: 1.35; }
.cab-opt small b { color: var(--ink2); font-size: 10.5px; }
.cab-party { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink2); }
.cab-party i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
@media (max-width: 900px) { .cab-row { grid-template-columns: 1fr; } .cab-opts { grid-template-columns: 1fr 1fr; } }

/* ===== Pasar, investasi, politik ===== */
.live-dot { color: #e8323d; animation: blink 1.2s steps(2) infinite; font-size: 10px; }
.px-row { display: grid; grid-template-columns: 1fr auto 90px; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.px-row small { color: var(--ink3); font-size: 11px; } .px-row > span:last-child, .px-row > .up, .px-row > .down { text-align: right; }
.stk-grid { max-height: 300px; overflow-y: auto; }
.inv-card { background: rgba(255,255,255,.03); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.inv-h { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.inv-ic { font-size: 28px; } .inv-h small { display: block; color: var(--ink3); font-size: 12px; margin-top: 2px; }
.inv-usd { text-align: right; font-weight: 800; font-size: 16px; } .inv-usd small { display: block; font-weight: 500; font-size: 11px; color: var(--ink3); }
.inv-asks { font-size: 12.5px; color: var(--ink2); margin: 8px 0 4px; line-height: 1.5; }
.inv-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pv-row { display: grid; grid-template-columns: 200px 1fr 60px; gap: 10px; align-items: center; padding: 5px 2px; font-size: 12.5px; }
.pv-row .dot { display: none; } .pv-row.me { font-weight: 800; }
.pv-bar { position: relative; height: 10px; background: rgba(255,255,255,.06); border-radius: 5px; overflow: hidden; }
.pv-bar i { display: block; height: 100%; border-radius: 5px; } .pv-bar i.p { background: #3aa58a; } .pv-bar i.n { background: #d9434b; }
.pv-bar em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; opacity: .6; }
.pv-row b { text-align: right; font-variant-numeric: tabular-nums; }
.rs-row { display: grid; grid-template-columns: 1fr 90px 40px; gap: 8px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.rs-row b { text-align: right; }
.orient { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; background: rgba(122,162,255,.06); border: 1px solid rgba(122,162,255,.3); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.orient-l { display: flex; gap: 12px; align-items: flex-start; } .orient-ic { font-size: 36px; }
.orient-l small { display: block; color: var(--ink3); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; } .orient-l b { font-size: 20px; display: block; margin: 2px 0 4px; }
.orient .pv-row { grid-template-columns: 130px 1fr 50px; }
.gov-tag { margin-left: auto; text-align: right; font-size: 12.5px; } .gov-tag small { display: block; color: var(--ink3); font-size: 11px; } .gov-tag b { display: block; }
.gov-tag span i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
#actList button em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--gold); color: #000; border-radius: 10px; padding: 1px 6px; }
@media (max-width: 900px) { .orient { grid-template-columns: 1fr; } .pv-row { grid-template-columns: 120px 1fr 50px; } }

/* ===== Program unggulan ===== */
.prog-builder .section-h { margin-top: 12px; }
.prog-tpl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.prog-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.prog-name { width: 100%; background: #11251f; border: 1px solid var(--line2); color: var(--ink); padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.prog-name:focus { outline: 2px solid var(--gold); border-color: transparent; }
.prog-builder .seg button { font-size: 13px; }
.prog-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.prog-chip { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.45); border-radius: 10px; padding: 8px 10px; }
.prog-chip > span { font-size: 22px; } .prog-chip small { display: block; color: var(--ink3); font-size: 11.5px; }
#step4 #progBuilder { max-height: 46vh; overflow-y: auto; padding-right: 4px; }
@media (max-width: 900px) { .prog-tpl { grid-template-columns: 1fr 1fr; } .prog-opts { grid-template-columns: 1fr 1fr; } }

/* ===== Arah pembangunan & status kursi ===== */
.arah-pick { max-height: 50vh; overflow-y: auto; padding-right: 4px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.arah-row { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.arah-p { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .arah-p span { font-size: 20px; } .arah-p b { font-size: 14px; }
.arah-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.arah-opts .cab-opt small + small { color: var(--gold); margin-top: 2px; }
.arah-choose { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 8px; }
.ms-track { position: relative; height: 10px; background: rgba(255,255,255,.07); border-radius: 5px; margin: 14px 0 30px; }
.ms-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #c9a55a, #3aa58a); transition: width .6s; }
.ms { position: absolute; top: -4px; transform: translateX(-100%); text-align: right; font-size: 10.5px; color: var(--ink3); width: 24%; }
.ms i { position: absolute; right: -6px; top: 0; width: 12px; height: 18px; border-radius: 3px; background: #22403a; border: 1px solid var(--line2); }
.ms span { position: absolute; right: 0; top: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ms.done i { background: var(--gold); border-color: var(--gold); } .ms.done span { color: var(--ink); font-weight: 700; }
#powerBox { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); flex: none; }
.pw-head { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink3); font-weight: 700; margin-bottom: 6px; }
.pw-head b { font-size: 11px; letter-spacing: 1px; }
.pw-row { display: grid; grid-template-columns: 1fr 70px 36px; gap: 6px; align-items: center; font-size: 11.5px; padding: 2px 0; }
.pw-row b { text-align: right; font-variant-numeric: tabular-nums; } .pw-row .pv-bar { height: 7px; }

/* ===== Save data ===== */
.save-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.save-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.save-slot { font-weight: 700; font-size: 13px; }
.save-info { font-size: 13px; } .save-info small { display: block; color: var(--ink3); font-size: 11.5px; margin-top: 2px; }
.save-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .save-row { grid-template-columns: 1fr; } .save-btns { justify-content: flex-start; } }

/* ===== Tampilan sederhana ===== */
#game { grid-template-columns: 92px 1fr 300px; }
#left { padding: 10px 6px; }
#dock { display: flex; flex-direction: column; gap: 6px; }
#dock button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: center; transition: .15s; }
#dock button span { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
#dock button b { font-size: 11.5px; font-weight: 700; color: var(--ink2); line-height: 1.15; }
#dock button:hover { background: rgba(255,255,255,.06); border-color: var(--line2); } #dock button:hover b { color: #fff; }
#dock button em { position: absolute; top: 6px; right: 10px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--gold); color: #000; border-radius: 10px; padding: 1px 6px; }
.drawer { left: 92px; }
.drawer-head { gap: 10px; }
#polSearch { flex: 1; min-width: 0; background: #11251f; border: 1px solid var(--line2); color: var(--ink); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
#polSearch:focus { outline: 2px solid var(--gold); border-color: transparent; }
#catList { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); flex: none; scrollbar-width: thin; }
#catList button { flex: none; display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 6px 10px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 12px; font-weight: 600; white-space: nowrap; }
#catList button span { width: auto; height: auto; background: none !important; font-size: 14px; }
#catList button.on { border-color: var(--gold); background: rgba(201,165,90,.12); color: #fff; }
#catList button em { margin-left: 2px; position: static; }
.hub-tabs { display: flex; gap: 4px; padding: 8px 18px 0; border-bottom: 1px solid var(--line); position: sticky; top: 63px; background: #15302a; z-index: 2; overflow-x: auto; }
.hub-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; font-weight: 700; font-size: 13px; color: var(--ink3); white-space: nowrap; }
.hub-tabs button.on { color: #fff; border-bottom-color: var(--gold); }
.hub-tabs button:hover { color: var(--ink); }
#tab-stats .extra { display: none !important; }
.more-btn { display: block; margin: 8px auto 4px; }
/* Pop-up Lini ala Chirper */
#chirp { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(460px, 70%); }
#chirpIcon { pointer-events: auto; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #36c5f0; background: radial-gradient(circle at 35% 30%, #2f5a4e, #0d1a33); font-size: 20px; box-shadow: 0 0 18px rgba(54,197,240,.45); }
#chirpIcon.muted { filter: grayscale(1); opacity: .5; box-shadow: none; }
#chirpCount { position: absolute; top: -4px; right: -6px; font-style: normal; font-size: 10px; font-weight: 800; background: #e8323d; color: #fff; border-radius: 10px; padding: 1px 5px; }
#chirpStack { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.chirp-card { pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: 34px 1fr; gap: 10px; background: rgba(250,252,255,.97); color: #1b2333; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); position: relative; animation: chirpIn .45s cubic-bezier(.2,1.4,.4,1); transition: opacity .4s, transform .4s; }
.chirp-card::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 14px; height: 14px; background: inherit; }
.chirp-card + .chirp-card::before { display: none; }
.chirp-card.out { opacity: 0; transform: translateY(-10px) scale(.96); }
.chirp-card.neg { border-left: 4px solid #d9434b; } .chirp-card.pos { border-left: 4px solid #3aa58a; }
.ch-av { width: 34px; height: 34px; border-radius: 50%; background: #e7eefb; display: grid; place-items: center; font-size: 18px; }
.ch-user { font-weight: 800; font-size: 12.5px; } .ch-user small { font-weight: 500; color: #7d877c; margin-left: 4px; }
.ch-text { font-size: 13px; line-height: 1.4; margin-top: 2px; } .ch-meta { font-size: 11px; color: #7d877c; margin-top: 4px; }
@keyframes chirpIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
#mapHud { right: auto; max-width: calc(50% - 250px); }
/* Tur */
#tour { position: fixed; inset: 0; z-index: 80; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(5,14,11,.72); border: 2px solid var(--gold); pointer-events: none; transition: all .3s; }
.tour-card { position: fixed; width: 320px; background: #15302a; border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: modalIn .3s ease; }
.tour-card small { color: var(--gold); font-weight: 700; } .tour-card b { display: block; font-size: 17px; margin: 4px 0 6px; } .tour-card p { margin: 0 0 12px; color: var(--ink2); font-size: 13.5px; line-height: 1.5; }
.tour-card div { display: flex; justify-content: space-between; }
@media (max-width: 1180px) { #game { grid-template-columns: 76px 1fr 260px; } #dock button b { font-size: 10px; } .drawer { left: 76px; } #mapHud { max-width: 40%; } }
@media (max-width: 760px) { #dock { flex-direction: row; overflow-x: auto; } #dock button { flex: none; min-width: 74px; } .drawer { left: 0; } #chirp { width: 92%; } #mapHud { max-width: none; } }

/* ===== Kenapa? / penjelasan indikator ===== */
.clickable, #tbGrowth, #tbInfl, #tbIhsg, #tbApproval, #tbMP { cursor: pointer; }
.st-row.clickable .val::after { content: ' ⓘ'; color: var(--ink3); font-size: 10px; }
#tbGrowth:hover, #tbInfl:hover, #tbIhsg:hover, #tbApproval:hover, #tbMP:hover { background: rgba(255,255,255,.05); }
.why-hint { font-size: 11px; color: var(--ink3); margin: 0 6px 6px; }
.why-sum { margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; }
.why-legend { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; margin-bottom: 4px; padding: 0 70px 0 calc(38% + 10px); }
.why-row { display: grid; grid-template-columns: 38% 1fr 62px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.why-l { line-height: 1.3; }
.why-bar { position: relative; height: 14px; background: rgba(255,255,255,.04); border-radius: 7px; }
.why-bar em { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink3); }
.why-bar i { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; }
.why-bar i.pos { background: #3aa58a; } .why-bar i.neg { background: #d9434b; }
.why-row b { text-align: right; font-variant-numeric: tabular-nums; }
.wp { color: #3fd6c4; } .wn { color: #ff8085; }
/* ===== Kebijakan: ringkasan cepat & bubble chat ===== */
.qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.qs-empty { display: block; padding: 12px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--ink2); font-size: 13px; }
.qs-item { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.qs-item small { display: block; color: var(--ink3); font-size: 11px; font-weight: 600; } .qs-item b { font-size: 16px; }
.qs-meter { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.qs-meter i { display: block; height: 100%; } .qs-meter i.g { background: #3aa58a; } .qs-meter i.r { background: #d9434b; } .qs-meter i.y { background: #c9a55a; }
.quote.chat { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; background: none; border: 0; padding: 4px 0; }
.quote.chat .q-who { grid-column: 2; font-size: 12px; }
.quote.chat .q-text { grid-column: 2; position: relative; background: #1b2740; border: 1px solid var(--line2); border-radius: 4px 14px 14px 14px; padding: 9px 12px; margin-top: 3px; color: var(--ink); font-size: 13.5px; }
.quote.chat.st-dukung .q-text { border-color: rgba(58,165,138,.6); background: rgba(58,165,138,.10); }
.quote.chat.st-keberatan .q-text { border-color: rgba(217,67,75,.6); background: rgba(217,67,75,.10); }
.quote.chat.st-info .q-text { border-color: rgba(195,139,255,.5); background: rgba(195,139,255,.08); }
.chat-av { grid-row: 1 / 3; position: relative; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2f5a4e, #182a48); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.chat-av span { position: absolute; right: -6px; bottom: -4px; font-size: 14px; }
details.more { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: rgba(255,255,255,.02); }
details.more summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 13px; color: var(--ink2); }
details.more[open] { padding-bottom: 10px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
/* kategori kebijakan: turun ke bawah, tanpa geser */
#catList { flex-wrap: wrap; overflow: visible; }
@media (max-width: 760px) { .qs { grid-template-columns: 1fr 1fr; } .why-row { grid-template-columns: 1fr 80px 50px; } .why-legend { padding-left: 0; } }

/* ===== Musik lo-fi ===== */
.btn-music.on { border-color: #36c5f0; box-shadow: 0 0 10px rgba(54,197,240,.4); }
.intro-music { position: absolute; top: 16px; right: 16px; z-index: 5; width: 42px; height: 42px; font-size: 18px; background: rgba(19,40,34,.8); }
#musicPanel { position: fixed; top: 64px; right: 14px; width: 330px; z-index: 70; background: #15302a; border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: modalIn .2s ease; }
.mu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .mu-head b { font-size: 15px; }
.mu-now { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mu-now small { display: block; color: var(--ink3); font-size: 11px; } .mu-now b { font-size: 13.5px; }
.mu-eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.mu-eq i { width: 5px; height: 4px; background: #36c5f0; border-radius: 2px; }
.mu-eq.on i { animation: eq 1s ease-in-out infinite; } .mu-eq.on i:nth-child(2) { animation-delay: .2s; } .mu-eq.on i:nth-child(3) { animation-delay: .4s; } .mu-eq.on i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.mu-list { display: flex; flex-direction: column; gap: 3px; margin: 10px 0; }
.mu-list label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.mu-list label:hover { background: rgba(255,255,255,.04); } .mu-list label.on { border-color: rgba(54,197,240,.5); background: rgba(54,197,240,.08); }
.mu-list label small { margin-left: auto; color: var(--ink3); font-size: 11px; } .mu-list input { accent-color: #36c5f0; }
.mu-vol { display: grid; grid-template-columns: 1fr 120px 40px; gap: 8px; align-items: center; font-size: 12.5px; margin-top: 6px; }
.mu-vol input { width: 100%; accent-color: #36c5f0; } .mu-vol b { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Fase 1: Reaksi publik, rapor, kursi goyang ===== */
#reactCard { position: fixed; top: 70px; right: 16px; width: 300px; z-index: 45; background: rgba(15,33,28, .97); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.55); transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.1, .4, 1), opacity .25s; pointer-events: none; overflow: hidden; }
#reactCard.rc-show { transform: none; opacity: 1; pointer-events: auto; }
#reactCard.rc-bad { border-color: rgba(217,67,75,.6); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(217,67,75,.25), 0 0 40px rgba(217,67,75,.18); }
#reactCard.rc-good { border-color: rgba(87,201,138,.45); }
.rc-head { display: grid; grid-template-columns: 1fr auto; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.rc-head small { grid-column: 1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.rc-head b { grid-column: 1; font-size: 14px; line-height: 1.25; }
.rc-head .icon-btn { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.rc-body { padding: 6px 12px; display: flex; flex-direction: column; gap: 3px; }
.rc-row { display: grid; grid-template-columns: 22px 1fr auto 40px; align-items: center; gap: 6px; font-size: 13px; padding: 3px 0; animation: rcIn .35s ease both; }
.rc-row:nth-child(2) { animation-delay: .06s } .rc-row:nth-child(3) { animation-delay: .12s } .rc-row:nth-child(4) { animation-delay: .18s } .rc-row:nth-child(5) { animation-delay: .24s } .rc-row:nth-child(6) { animation-delay: .3s }
@keyframes rcIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.rc-ic { font-size: 16px; } .rc-w { font-size: 12px; color: var(--ink2); }
.rc-ar { text-align: right; font-size: 10px; letter-spacing: -1px; }
.rc-row.rc-up .rc-ar { color: var(--green); } .rc-row.rc-down .rc-ar { color: var(--red); }
.rc-natl { padding: 8px 12px; font-size: 12px; color: var(--ink2); border-top: 1px solid var(--line); }
.rc-foot { padding: 8px 12px; font-size: 12px; border-top: 1px solid var(--line); }
.rc-foot.bad { background: rgba(217,67,75,.1); color: #ffb3b6; } .rc-foot.good { background: rgba(87,201,138,.08); color: #9ff0c4; }

#rapor { position: absolute; left: 12px; bottom: 46px; z-index: 5; width: 320px; max-height: calc(100% - 150px); display: flex; flex-direction: column; }
#rapor .rp-pill { display: none; }
#rapor.rp-min .rp-card { display: none; }
#rapor.rp-min .rp-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: rgba(15,33,28,.92); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.rp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 10px var(--red2); animation: pulse 1.2s infinite; }
.rp-card { overflow-x: hidden; background: rgba(15,33,28, .95); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; overflow-y: auto; box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: raporIn .45s cubic-bezier(.2, 1.1, .4, 1); }
#rapor.rp-alert .rp-card { border-color: rgba(217,67,75,.65); animation: raporIn .45s cubic-bezier(.2, 1.1, .4, 1), raporShake .5s ease .45s; }
@keyframes raporIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes raporShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.rp-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.rp-head small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.rp-head b { font-size: 14px; }
.rp-app { text-align: right; line-height: 1; } .rp-app span { font-family: var(--display); font-size: 30px; letter-spacing: .02em; } .rp-app em { display: block; font-style: normal; font-size: 11px; margin-top: 2px; }
.up { color: var(--green); } .down { color: var(--red); }
#rapor h5 { margin: 8px 0 4px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); font-weight: 600; }
.rp-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.rp-g { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; padding: 2px 0; } .rp-g span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ev { font-size: 12px; line-height: 1.4; padding: 6px 8px; border-radius: 8px; margin: 4px 0; background: rgba(196,204,178,.07); }
.rp-ev.bad { background: rgba(217,67,75,.12); border-left: 3px solid var(--red); } .rp-ev.good { background: rgba(87,201,138,.09); border-left: 3px solid var(--green); }
.rp-opp { margin-top: 8px; font-size: 12px; } .rp-opp > div:first-child { display: flex; justify-content: space-between; } .rp-opp em { font-style: normal; font-size: 11px; }
.rp-opp small { display: block; color: var(--ink2); margin-top: 3px; }
.rp-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(196,204,178,.15); margin-top: 4px; }
.rp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.rp-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .6; }
.rp-th { font-size: 12px; padding: 3px 0 3px 14px; position: relative; color: var(--ink2); }
.rp-th::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); }
.rp-th.l1::before { background: var(--gold); } .rp-th.l2 { color: var(--ink); } .rp-th.l2::before { background: var(--red2); box-shadow: 0 0 8px var(--red2); }
#mapWrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 1s; }
#mapWrap.danger::after { opacity: 1; box-shadow: inset 0 0 90px rgba(217,67,75,.28); }
#mapWrap.critical::after { opacity: 1; box-shadow: inset 0 0 140px rgba(232,50,61,.5); animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { opacity: .55; } 12% { opacity: 1; } 24% { opacity: .7; } 36% { opacity: .95; } }
@media (max-width: 760px) { #rapor { width: calc(100% - 24px); } #reactCard { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { #mapWrap.critical::after, .rp-dot { animation: none; } #rapor.rp-alert .rp-card { animation: none; } }
@keyframes pulse { 50% { opacity: .35; } }
