/* ============ TEMA TAHUN (papan pemuka) ============ */
body[data-app="year4"] { --bg: #e7f6ff; --bg-art: radial-gradient(circle at 10% 10%, #fff7c2 0 80px, transparent 81px), linear-gradient(180deg, #bfe8ff 0%, #e9f9ff 55%, #fff6dc 100%); --accent: #0b61c9; --map-path: #c27b2a; --map-done: #8fe3a8; }
body[data-app="year5"] { --font: "Lexend", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bg: #f3ead7; --bg-art: radial-gradient(ellipse at 20% 0%, rgba(140, 90, 30, .15), transparent 60%), linear-gradient(160deg, #f6eedb, #e9dcc0); --accent: #7a2e0e; --card: #fffaf0; --opt-line: #c6a77a; --opt-sel: #f7e3c2; --map-path: #7a2e0e; --map-done: #f3c46b; --map-ink: #3a1f0a; }
body[data-app="year6"] { --font: "Atkinson Hyperlegible", "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bg: #0f1b2d; --bg-art: radial-gradient(circle at 80% -10%, #23466e 0, transparent 50%), linear-gradient(180deg, #0f1b2d, #13243c); --ink: #eef3fb; --muted: #c4d0e4; --accent: #2bb3a3; --accent-ink: #061a17; --card: #f5f8fc; --card-ink: #0f1b2d; --map-path: #2bb3a3; --map-done: #7fe0d3; --map-ink: #0f1b2d; }
body[data-app="year6"] .home-foot, body[data-app="year6"] .teacher .t-head { color: #eef3fb; }
body[data-page="home"][data-app="year4"] .brand h1 { color: #0b3a75; }
body[data-page="home"][data-app="year5"] .brand h1 { color: #4a1a06; letter-spacing: .5px; }
body[data-page="home"][data-app="year5"] .map { background: #fff3d9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23e6d2a8' stroke-width='1'/%3E%3C/svg%3E"); border: 4px double #a0763c; }
body[data-page="home"][data-app="year5"] .act-card { border-style: double; border-width: 5px; }
body[data-page="home"][data-app="year6"] .brand h1 { color: #ffffff; }
body[data-page="home"][data-app="year6"] .map { background: #0b1626; color: #eef3fb; border: 2px solid #2bb3a3; }
body[data-page="home"][data-app="year6"] .map-path { stroke-dasharray: none; stroke-width: 8; }
body[data-page="home"][data-app="year6"] .map-node circle { stroke: #2bb3a3; }
body[data-page="home"][data-app="year6"] .act-card { border-radius: 8px; border-left-width: 10px; }
body[data-page="home"][data-app="year4"] .act-card { border-radius: 28px; }

/* kad bahan di papan pemuka mengambil warna dunianya */
.act-card[data-world], .suggest[data-world] { border-color: var(--w-c, var(--opt-line)); }
.act-card[data-world] .ac-emo { background: var(--w-soft, transparent); border-radius: 16px; display: grid; place-items: center; height: 72px; }
.suggest[data-world] { background: var(--w-c, var(--accent)); color: var(--w-on, #fff); }
[data-world="angkasa"] { --w-c: #2c2f8f; --w-soft: #e5e6ff; --w-on: #fff; }
[data-world="robot"] { --w-c: #49566b; --w-soft: #e6ebf2; --w-on: #fff; }
[data-world="lautan"] { --w-c: #006c80; --w-soft: #d7f4f8; --w-on: #fff; }
[data-world="rimba"] { --w-c: #2d6a1f; --w-soft: #e1f3d6; --w-on: #fff; }
[data-world="pasarmalam"] { --w-c: #a3122a; --w-soft: #ffe2e2; --w-on: #fff; }
[data-world="keretapi"] { --w-c: #1c4e80; --w-soft: #dbe9f7; --w-on: #fff; }
[data-world="binaan"] { --w-c: #8a5a00; --w-soft: #fff0c2; --w-on: #fff; }
[data-world="istana"] { --w-c: #6b2fa0; --w-soft: #f0e3ff; --w-on: #fff; }
[data-world="harta"] { --w-c: #7a4b16; --w-soft: #f6e7c8; --w-on: #fff; }
[data-world="berita"] { --w-c: #111111; --w-soft: #ececec; --w-on: #fff; }
[data-world="gunung"] { --w-c: #2f5d50; --w-soft: #dcefe8; --w-on: #fff; }
[data-world="detektif"] { --w-c: #5b3a1e; --w-soft: #f3e2c6; --w-on: #fff; }
[data-world="stadium"] { --w-c: #116634; --w-soft: #dcf5e4; --w-on: #fff; }
[data-world="ekobandar"] { --w-c: #1f7a4d; --w-soft: #ddf7e9; --w-on: #fff; }
[data-world="arked"] { --w-c: #3b1670; --w-soft: #ece0ff; --w-on: #fff; }
[data-world="muzium"] { --w-c: #6d5512; --w-soft: #f6efd8; --w-on: #fff; }
[data-world="dapur"] { --w-c: #b03a2e; --w-soft: #fde6e2; --w-on: #fff; }
[data-world="arkitek"] { --w-c: #0d4a86; --w-soft: #dcebfb; --w-on: #fff; }
[data-world="pelayaran"] { --w-c: #0e3a5c; --w-soft: #d9ecf8; --w-on: #fff; }
[data-world="cuaca"] { --w-c: #0f5f8c; --w-soft: #ddf1fb; --w-on: #fff; }
[data-world="kawalan"] { --w-c: #0a7d38; --w-soft: #dcf7e6; --w-on: #fff; }
[data-world="kunci"] { --w-c: #3d4652; --w-soft: #e4e8ee; --w-on: #fff; }
[data-world="kimia"] { --w-c: #0b7268; --w-soft: #d9f5f1; --w-on: #fff; }
[data-world="solar"] { --w-c: #8a6200; --w-soft: #fff3c4; --w-on: #fff; }
[data-world="usahawan"] { --w-c: #1d3f72; --w-soft: #e1e9f6; --w-on: #fff; }
[data-world="lapangan"] { --w-c: #24318f; --w-soft: #e2e6ff; --w-on: #fff; }
[data-world="pelabuhan"] { --w-c: #9a3412; --w-soft: #fde4d6; --w-on: #fff; }
[data-world="balaicerap"] { --w-c: #1b1f5e; --w-soft: #e4e5fb; --w-on: #fff; }
[data-world="taman"] { --w-c: #3f5f1a; --w-soft: #e8f2d6; --w-on: #fff; }
[data-world="kajiselidik"] { --w-c: #a1194a; --w-soft: #fde1ec; --w-on: #fff; }

/* ============ DUNIA AKTIVITI ============ */
/* ---- 4.1 ANGKASA: dok kawalan di bawah, planet sebagai pilihan */
body[data-world="angkasa"] { --bg: #0b1030; --bg-art: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 120px 80px, #cfe0ff, transparent), radial-gradient(2px 2px at 220px 160px, #fff, transparent), radial-gradient(circle at 85% 15%, #3b3fa8 0, transparent 35%), linear-gradient(#0b1030, #1b1f5a); background-size: 260px 200px, 260px 200px, 260px 200px, auto, auto; --ink: #f3f5ff; --muted: #d5dafc; --card: #f6f7ff; --card-ink: #12164a; --accent: #ffcc33; --accent-ink: #1b1400; --opt-line: #7d84d8; --opt-sel: #fff3c4; --top-bg: #12164a; --top-ink: #fff; --viz-fill: #6d5dfc; --viz-accent: #ff6b35; }
[data-world="angkasa"] .stage { grid-template-columns: 1fr !important; }
[data-world="angkasa"] .side { position: relative !important; top: auto !important; grid-template-columns: auto 1fr; align-items: center; background: #12164a; color: #fff; border-radius: 26px 26px 0 0; padding: 12px 16px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .4); border-top: 4px solid #ffcc33; }
[data-world="angkasa"] .side .feedback, [data-world="angkasa"] .side .q-actions { grid-column: 1 / -1; }
[data-world="angkasa"] .opt { border-radius: 999px; padding-left: 8px; }
[data-world="angkasa"] .opt-key { border-radius: 50%; background: radial-gradient(circle at 30% 30%, #b9b3ff, #4b3fd1); color: #fff; width: 44px; height: 44px; }
[data-world="angkasa"] .q-card { border-radius: 30px; border: 4px solid #7d84d8; }
.pg-rocket .pg-track { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 26px 10px 8px; background: rgba(255, 255, 255, .08); border-radius: 999px; border: 2px dashed #7d84d8; }
.pg-rocket .planet { width: 20px; height: 20px; border-radius: 50%; background: #3a3f82; border: 2px solid #9aa0ff; }
.pg-rocket .planet.ok { background: radial-gradient(circle at 30% 30%, #ffe680, #f0a500); } .pg-rocket .planet.no { background: radial-gradient(circle at 30% 30%, #b8c4ff, #6b74d6); } .pg-rocket .planet.now { box-shadow: 0 0 0 5px rgba(255, 204, 51, .5); }
.pg-rocket .rocket { position: absolute; top: -14px; left: calc(var(--p) * (100% - 40px)); font-size: 30px; transform: rotate(45deg); transition: left .6s ease; }

/* ---- 4.2 ROBOT: bingkai mesin dan skrin LCD */
body[data-world="robot"] { --bg: #d9dee6; --bg-art: repeating-linear-gradient(45deg, #d3d9e2 0 14px, #dde2ea 14px 28px); --card: #eef1f5; --card-ink: #1d2533; --accent: #ff7a00; --accent-ink: #1a0b00; --opt-line: #8b97ab; --opt-sel: #ffe2c2; --top-bg: #2d3646; --top-ink: #fff; --radius: 10px; --key-bg: #3b4659; --key-ink: #fff; --key-del: #8c2f1b; --key-next: #ff7a00; --font-head: "Lexend", ui-rounded, system-ui, sans-serif; }
[data-world="robot"] .key-del { color: #fff; } [data-world="robot"] .key-next { color: #1a0b00; }
[data-world="robot"] .q-card { border: 10px solid #5a6578; box-shadow: inset 0 0 0 3px #a8b2c2, 0 10px 0 #3b4659; position: relative; }
[data-world="robot"] .q-card::before, [data-world="robot"] .q-card::after { content: ""; position: absolute; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #8b97ab; box-shadow: inset -2px -2px 0 #5a6578; }
[data-world="robot"] .q-card::before { left: 8px; } [data-world="robot"] .q-card::after { right: 8px; }
[data-world="robot"] .q-head { background: #c8f5c4; border: 4px solid #2d3646; border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; }
[data-world="robot"] .q-prompt { margin: 0; font-family: "Lexend", ui-monospace, monospace; color: #0f2d10; }
[data-world="robot"] .opt { border-radius: 8px; border-left: 14px solid #ff7a00; }
[data-world="robot"] .key { border-radius: 50%; aspect-ratio: 1; min-height: 64px; }
[data-world="robot"] .key-next { border-radius: 14px; aspect-ratio: auto; }
.pg-conveyor .belt { display: flex; gap: 4px; padding: 6px 8px 14px; background: repeating-linear-gradient(90deg, #3b4659 0 12px, #4a566c 12px 24px); border-radius: 10px; border-bottom: 8px solid #222b38; overflow: hidden; }
.pg-conveyor .box { flex: 1; text-align: center; font-size: 22px; filter: grayscale(.8); }
.pg-conveyor .box.ok, .pg-conveyor .box.no { filter: none; } .pg-conveyor .box.now { animation: bob 1s infinite; filter: none; }

/* ---- 4.3 LAUTAN: tingkap kapal selam (porthole) */
body[data-world="lautan"] { --bg: #0a4f6e; --bg-art: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .18) 0 6px, transparent 7px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .15) 0 10px, transparent 11px), linear-gradient(180deg, #34b5d6 0%, #0a6a8c 45%, #06384f 100%); background-size: 180px 220px, 260px 300px, auto; --ink: #f0fbff; --muted: #d4f1fa; --card: #f2fdff; --card-ink: #08364a; --accent: #ffd23f; --accent-ink: #2a1f00; --opt-line: #4fb3cc; --opt-sel: #d2f5ff; --top-bg: #063a52; --top-ink: #fff; --radius: 34px; --viz-fill: #ff8a5b; }
[data-world="lautan"] .q-visual { border-radius: 50%; aspect-ratio: 1; max-width: 360px; margin: 6px auto 14px; display: grid; place-items: center; background: radial-gradient(circle, #ffffff 58%, #e4f8fd 70%); border: 14px solid #c99a3a; box-shadow: inset 0 0 0 4px #8a6420, 0 0 0 4px #8a6420; overflow: hidden; padding: 30px; }
[data-world="lautan"] .q-visual .viz { max-width: 100%; }
[data-world="lautan"] .opt { border-radius: 40px; }
[data-world="lautan"] .tok { border-radius: 999px; background: radial-gradient(circle at 30% 30%, #ffffff, #d2f5ff); }
.pg-bubbles { display: flex; gap: 6px; justify-content: space-between; align-items: flex-end; height: 64px; }
.pg-bubbles .bub { width: min(34px, 8vw); height: min(34px, 8vw); flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #08364a; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .8); transition: transform .5s; }
.pg-bubbles .bub.ok, .pg-bubbles .bub.no { transform: translateY(-26px); background: #fff; } .pg-bubbles .bub.ok { box-shadow: 0 0 0 4px #ffd23f; } .pg-bubbles .bub.now { transform: translateY(-12px) scale(1.15); background: #ffd23f; }

/* ---- 4.4 RIMBA: bar sisi pokok menjalar */
body[data-world="rimba"] { --bg: #dff2d0; --bg-art: radial-gradient(circle at 0 0, #b8e09c 0 120px, transparent 121px), radial-gradient(circle at 100% 100%, #a6d684 0 160px, transparent 161px), linear-gradient(#e9f7dd, #cfe9b8); --card: #fbfff5; --card-ink: #1f3d12; --accent: #2d6a1f; --accent-ink: #fff; --opt-line: #8cc06a; --opt-sel: #e3f6cf; --top-bg: #2d6a1f; --top-ink: #fff; --pg-stem: #5a8f2e; --radius: 22px 6px 22px 6px; --viz-fill: #5aa832; }
@media (min-width: 900px) {
  [data-world="rimba"] .act-main { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
  [data-world="rimba"] .act-main > .progress { position: sticky; top: 90px; }
  [data-world="rimba"] .pg-vine { height: 520px; width: 90px; }
  [data-world="rimba"] .pg-vine svg { display: none; }
  [data-world="rimba"] .pg-vine::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 6px; background: var(--pg-stem); border-radius: 3px; }
  [data-world="rimba"] .pg-vine .leaf { left: 30px !important; top: var(--x); }
  [data-world="rimba"] .act-main > .results, [data-world="rimba"] .act-main > .intro { grid-column: 1 / -1; }
}
[data-world="rimba"] .opt { border-radius: 26px 6px 26px 6px; }
[data-world="rimba"] .q-card { border-left: 10px solid #5a8f2e; }
.pg-vine { position: relative; height: 60px; }
.pg-vine svg { width: 100%; height: 60px; }
.pg-vine .leaf { position: absolute; left: var(--x); top: 14px; font-size: 26px; transition: transform .4s; }
.pg-vine .leaf.todo { color: #5a8f2e; font-weight: 900; }
.pg-vine .leaf.now { transform: scale(1.3); }

/* ---- 4.5 PASAR MALAM: kanopi gerai dan tanda harga */
body[data-world="pasarmalam"] { --bg: #2a0f2e; --bg-art: radial-gradient(circle at 10% 20%, rgba(255, 196, 0, .35) 0 30px, transparent 60px), radial-gradient(circle at 80% 10%, rgba(255, 120, 0, .3) 0 30px, transparent 70px), linear-gradient(#2a0f2e, #4a1630); --ink: #fff4e6; --muted: #ffe0bf; --card: #fffaf2; --card-ink: #3a0d16; --accent: #c8102e; --accent-ink: #fff; --accent2: #ffc83d; --opt-line: #d98c5f; --opt-sel: #ffe9cf; --top-bg: #3a0d16; --top-ink: #fff; --radius: 14px; }
[data-world="pasarmalam"] .q-card { padding-top: 46px; position: relative; overflow: hidden; }
[data-world="pasarmalam"] .q-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: repeating-linear-gradient(90deg, #c8102e 0 36px, #fff 36px 72px); -webkit-mask: radial-gradient(circle 18px at 18px 12px, #000 98%, transparent) 0 0 / 36px 30px repeat-x, linear-gradient(#000 0 12px, transparent 12px); mask: radial-gradient(circle 18px at 18px 12px, #000 98%, transparent) 0 0 / 36px 30px repeat-x, linear-gradient(#000 0 12px, transparent 12px); }
[data-world="pasarmalam"] .opt { border-radius: 6px 22px 22px 6px; border-left: 6px dotted #c8102e; background: #fff7e8; }
[data-world="pasarmalam"] .opt-key { border-radius: 50%; background: #ffc83d; color: #3a0d16; }
.pg-lanterns { display: flex; justify-content: space-between; padding: 0 6px; border-top: 3px solid #ffc83d; }
.pg-lanterns .lan { width: 22px; display: flex; flex-direction: column; align-items: center; }
.pg-lanterns .lan::before { content: ""; width: 2px; height: 10px; background: #ffc83d; }
.pg-lanterns .lan i { width: 22px; height: 28px; border-radius: 40%; background: #5a2a3a; border: 2px solid #ffc83d; }
.pg-lanterns .lan.ok i, .pg-lanterns .lan.no i { background: radial-gradient(circle, #fff6a8, #ff9a1f); box-shadow: 0 0 14px #ffb800; } .pg-lanterns .lan.now i { animation: bob 1.2s infinite; background: #c8102e; }

/* ---- 4.6 KERETAPI: kad tiket berlubang */
body[data-world="keretapi"] { --bg: #e8eef6; --bg-art: linear-gradient(transparent 92%, #b6c2d4 92% 94%, transparent 94%), repeating-linear-gradient(90deg, transparent 0 40px, #c9d3e0 40px 46px); background-size: auto, auto; --card: #fffdf6; --card-ink: #13304f; --accent: #1c4e80; --accent-ink: #fff; --opt-line: #8aa4c4; --opt-sel: #dbe9f7; --top-bg: #1c4e80; --top-ink: #fff; --radius: 10px; }
[data-world="keretapi"] .q-card { border-left: 4px dashed #8aa4c4; -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 100% 100%; mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 100% 100%; padding-left: 26px; background: linear-gradient(90deg, #fff3cf 0 10px, #fffdf6 10px); }
[data-world="keretapi"] .q-meta span { border-radius: 4px; background: #13304f; color: #fff; border: 0; }
[data-world="keretapi"] .opt { border-radius: 4px; border-width: 3px 3px 3px 12px; border-color: #8aa4c4 #8aa4c4 #8aa4c4 #1c4e80; }
.pg-train { display: flex; align-items: flex-end; gap: 3px; overflow: hidden; padding-bottom: 6px; border-bottom: 5px solid #5a6a80; }
.pg-train .loco { font-size: 28px; } .pg-train .station { font-size: 24px; margin-left: auto; }
.pg-train .car { flex: 1; min-width: 20px; height: 26px; border-radius: 6px 6px 2px 2px; background: #c9d3e0; color: #13304f; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pg-train .car.ok, .pg-train .car.no { background: #1c4e80; color: #fff; } .pg-train .car.now { background: #ffb703; color: #2a1d00; }

/* ---- 4.7 BINAAN: papan klip + jalur bahaya */
body[data-world="binaan"] { --bg: #f5ecd0; --bg-art: linear-gradient(#e5d8ad 1px, transparent 1px), linear-gradient(90deg, #e5d8ad 1px, transparent 1px); background-size: 24px 24px; --card: #fffef8; --card-ink: #2b2100; --accent: #1f2937; --accent-ink: #ffd400; --opt-line: #b49446; --opt-sel: #fff1b8; --top-bg: #ffd400; --top-ink: #1f2937; --radius: 6px; --viz-ruler: #ffe066; }
[data-world="binaan"] .act-top { border-bottom: 10px solid; border-image: repeating-linear-gradient(45deg, #1f2937 0 14px, #ffd400 14px 28px) 10; }
[data-world="binaan"] .q-card { margin-top: 22px; position: relative; border: 3px solid #8a6d1f; }
[data-world="binaan"] .q-card::before { content: ""; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#bfc5cd, #8a919b); border: 3px solid #5d636b; }
[data-world="binaan"] .opt { border-radius: 4px; background: repeating-linear-gradient(-45deg, #fffef8 0 12px, #fff7d6 12px 24px); }
.pg-tape { display: flex; align-items: center; gap: 4px; }
.pg-tape .tape-body { flex: 1; display: flex; justify-content: space-between; height: 34px; align-items: center; padding: 0 6px; background: linear-gradient(90deg, #ffd400 calc(var(--p) * 100%), #ece3bf calc(var(--p) * 100%)); border: 3px solid #1f2937; border-radius: 4px; font-size: 11px; font-weight: 800; color: #1f2937; transition: background .4s; }
.pg-tape .tape-case { font-size: 28px; }

/* ---- 4.8 ISTANA: skrol parchmen dan perisai */
body[data-world="istana"] { --bg: #efe4ff; --bg-art: radial-gradient(circle at 50% 120%, #c9a7ff 0, transparent 60%), linear-gradient(#f6f0ff, #e3d2ff); --card: #fffaf0; --card-ink: #3a1660; --accent: #6b2fa0; --accent-ink: #fff; --opt-line: #b48ce0; --opt-sel: #f1e4ff; --top-bg: #3a1660; --top-ink: #ffe9a8; --font-head: Georgia, "Times New Roman", serif; --viz-fill: #b06cf0; }
[data-world="istana"] .q-card { position: relative; border-radius: 4px; background: linear-gradient(#f6e7c4, #fffaf0 12%, #fffaf0 88%, #f6e7c4); border-left: 3px solid #d6b77a; border-right: 3px solid #d6b77a; margin: 18px 6px; }
[data-world="istana"] .q-card::before, [data-world="istana"] .q-card::after { content: ""; position: absolute; left: -10px; right: -10px; height: 20px; border-radius: 10px; background: linear-gradient(#d6b77a, #a8844a); }
[data-world="istana"] .q-card::before { top: -14px; } [data-world="istana"] .q-card::after { bottom: -14px; }
[data-world="istana"] .opt { clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); padding-bottom: 26px; border-radius: 0; background: #fff; }
.pg-castle { display: flex; justify-content: space-between; align-items: flex-end; height: 58px; }
.pg-castle .tower { position: relative; width: 26px; height: 34px; background: #c8b0e8; border: 2px solid #6b2fa0; border-bottom: 0; }
.pg-castle .tower::before { content: ""; position: absolute; top: -8px; left: -2px; right: -2px; height: 8px; background: repeating-linear-gradient(90deg, #6b2fa0 0 6px, transparent 6px 10px); }
.pg-castle .tower b { position: absolute; top: -32px; left: 2px; font-size: 20px; }
.pg-castle .tower.ok, .pg-castle .tower.no { background: #6b2fa0; } .pg-castle .tower.now { background: #ffd54a; }

/* ---- 4.9 HARTA: peta lama */
body[data-world="harta"] { --bg: #1f5f7a; --bg-art: radial-gradient(circle at 30% 40%, #2a7b9b 0, transparent 40%), repeating-radial-gradient(circle at 70% 70%, transparent 0 18px, rgba(255, 255, 255, .06) 18px 20px); --ink: #fff8e7; --muted: #fbe9c4; --card: #f4e2b8; --card-ink: #3b230a; --accent: #8a2d0a; --accent-ink: #fff; --opt-line: #a87b3e; --opt-sel: #ffe9b8; --top-bg: #3b230a; --top-ink: #f4e2b8; --font-head: Georgia, serif; --radius: 4px; --viz-paper: #fbf0d4; --viz-grid: #c8a86c; }
[data-world="harta"] .q-card { border: 3px dashed #7a4b16; box-shadow: 0 0 0 8px #f4e2b8, 0 10px 30px rgba(0, 0, 0, .4); background: radial-gradient(circle at 20% 20%, #fbeecd, #ecd39b); }
[data-world="harta"] .opt { background: linear-gradient(#b07a3c, #8a5a24); color: #fffbe9; border: 3px solid #5a3510; border-radius: 6px; }
[data-world="harta"] .opt-key { background: #fffbe9; color: #5a3510; }
[data-world="harta"] .opt[aria-checked="true"] { background: #5a3510; }
.pg-treasure { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: #f4e2b8; border-radius: 6px; border: 2px dashed #7a4b16; }
.pg-treasure .step { font-size: 18px; color: #7a4b16; font-weight: 900; } .pg-treasure .step.now { font-size: 24px; } .pg-treasure .x { font-size: 22px; }

/* ---- 4.10 BERITA: akhbar */
body[data-world="berita"] { --font-head: Georgia, "Times New Roman", serif; --bg: #e9e6df; --bg-art: none; --card: #fffdf8; --card-ink: #111; --accent: #111; --accent-ink: #fff; --opt-line: #555; --opt-sel: #f1ede2; --top-bg: #111; --top-ink: #fff; --radius: 0; --viz-c1: #1f4e79; --viz-c2: #c0392b; --viz-c3: #2e7d32; --viz-c4: #8e44ad; --viz-c5: #d68910; --viz-fill: #1f4e79; }
[data-world="berita"] .q-card { border-top: 6px double #111; border-bottom: 6px double #111; box-shadow: none; }
[data-world="berita"] .q-card::before { content: "BERITA CILIK · EDISI DATA"; display: block; font-family: Georgia, serif; font-weight: 900; font-size: 22px; letter-spacing: 3px; border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 10px; text-align: center; }
[data-world="berita"] .q-prompt { font-family: Georgia, serif; font-size: clamp(21px, 4.6vw, 27px); }
[data-world="berita"] .opt { border: 2px dashed #111; border-radius: 0; background: #fff; }
[data-world="berita"] .opt-key { border-radius: 0; background: #111; }
@media (min-width: 640px) { [data-world="berita"] .opts { column-count: 2; display: block; } [data-world="berita"] .opts .opt { break-inside: avoid; margin-bottom: 12px; } }
.pg-news { display: flex; gap: 2px; overflow: hidden; }
.pg-news .pgtab { flex: 1; text-align: center; font-size: 12px; font-weight: 800; padding: 6px 0; background: #d8d3c6; color: #111; border-radius: 6px 6px 0 0; white-space: nowrap; }
.pg-news .pgtab.ok, .pg-news .pgtab.no { background: #111; color: #fff; } .pg-news .pgtab.now { background: #fffdf8; outline: 2px solid #111; }

/* ---- 5.1 GUNUNG: denai pendakian */
body[data-world="gunung"] { --bg: #cfe3dc; --bg-art: linear-gradient(170deg, #9ccbb9 0, #cfe3dc 40%, #f2efe4 100%); --card: #fbfaf6; --card-ink: #17332b; --accent: #2f5d50; --accent-ink: #fff; --opt-line: #8bb2a4; --opt-sel: #dcefe8; --top-bg: #17332b; --top-ink: #fff; --radius: 26px 26px 8px 8px; }
[data-world="gunung"] .opt { border-radius: 40% 30% 36% 28% / 50% 40% 50% 40%; background: linear-gradient(#f3f1ea, #e2ddd0); }
[data-world="gunung"] .q-card { border-top: 12px solid #2f5d50; }
.pg-summit svg { width: 100%; max-height: 140px; }
.pg-summit .mtn { fill: #6f9488; } .pg-summit .snow { fill: #fff; }
.pg-summit .trail { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 4 5; }
.pg-summit circle { fill: #fff; stroke: #17332b; stroke-width: 2; } .pg-summit circle.ok, .pg-summit circle.no { fill: #f2b134; } .pg-summit circle.now { fill: #e4572e; }

/* ---- 5.2 DETEKTIF: papan gabus */
body[data-world="detektif"] { --font-head: "Courier New", Courier, ui-monospace, monospace; --bg: #3a2817; --bg-art: radial-gradient(#5b3f24 1px, transparent 1.5px), linear-gradient(#4a3320, #2c1d10); background-size: 9px 9px, auto; --ink: #fbf1de; --muted: #f0dfbf; --card: #fffdf3; --card-ink: #2b1d0e; --accent: #b3261e; --accent-ink: #fff; --opt-line: #a88b63; --opt-sel: #fff2b3; --top-bg: #1d140a; --top-ink: #fbf1de; --radius: 2px; }
[data-world="detektif"] .stage { background: #b98b5a; background-image: radial-gradient(#a37548 1px, transparent 1.6px); background-size: 7px 7px; padding: 16px; border-radius: 10px; border: 10px solid #6b4423; }
[data-world="detektif"] .q-card { transform: rotate(-.6deg); box-shadow: 4px 6px 0 rgba(0, 0, 0, .25); background: repeating-linear-gradient(#fffdf3 0 31px, #cfe0f5 31px 32px); position: relative; }
[data-world="detektif"] .q-card::before { content: "📌"; position: absolute; top: -14px; left: 50%; font-size: 28px; }
[data-world="detektif"] .side { background: #fff07a; color: #2b1d0e; padding: 14px; transform: rotate(.8deg); box-shadow: 3px 5px 0 rgba(0, 0, 0, .25); }
[data-world="detektif"] .opt { border-radius: 0; border: 2px solid #2b1d0e; box-shadow: 3px 3px 0 #2b1d0e; font-family: "Courier New", monospace; }
.pg-board { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-board .clue { width: calc(10% - 6px); min-width: 28px; display: grid; justify-items: center; padding: 4px 0; background: #fffdf3; color: #2b1d0e; transform: rotate(var(--r)); font-weight: 900; box-shadow: 2px 2px 0 rgba(0, 0, 0, .3); }
.pg-board .clue small { font-size: 9px; } .pg-board .clue.ok { background: #fff07a; } .pg-board .clue.no { background: #f3dfc6; } .pg-board .clue.now { outline: 3px solid #b3261e; }

/* ---- 5.3 STADIUM: papan skor LED */
body[data-world="stadium"] { --bg: #0d5c2e; --bg-art: repeating-linear-gradient(90deg, #0f6a35 0 60px, #0d5c2e 60px 120px); --ink: #f2fff6; --muted: #d1f5dc; --card: #ffffff; --card-ink: #0b2a17; --accent: #ffcc00; --accent-ink: #1a1400; --opt-line: #67b383; --opt-sel: #e3f8ea; --top-bg: #08371b; --top-ink: #fff; --radius: 12px; }
[data-world="stadium"] .q-card { border-top: 10px solid #ffcc00; border-bottom: 10px solid #c8102e; }
[data-world="stadium"] .opt { border-radius: 999px 14px 14px 999px; }
[data-world="stadium"] .opt-key { width: 46px; height: 46px; border-radius: 50%; background: #c8102e; color: #fff; font-size: 20px; }
.pg-score { display: grid; gap: 6px; padding: 10px; background: #111; border-radius: 10px; border: 4px solid #333; }
.pg-score .led { font-family: ui-monospace, "Courier New", monospace; color: #ffcc00; font-size: 24px; text-align: center; letter-spacing: 2px; text-shadow: 0 0 8px #ffb000; }
.pg-score .led b { color: #fff; }
.pg-score .led-lights { display: flex; justify-content: center; gap: 6px; }
.pg-score .led-lights i { width: 14px; height: 14px; border-radius: 50%; background: #333; } .pg-score .led-lights i.ok { background: #36d26b; box-shadow: 0 0 8px #36d26b; } .pg-score .led-lights i.no { background: #ffcc00; } .pg-score .led-lights i.now { background: #fff; }

/* ---- 5.4 EKO BANDAR: daun & bandar hijau */
body[data-world="ekobandar"] { --bg: #e6f8ee; --bg-art: radial-gradient(ellipse at 50% 120%, #a5e0bf 0, transparent 60%), linear-gradient(#f2fff8, #dcf3e6); --card: #ffffff; --card-ink: #12402a; --accent: #1f7a4d; --accent-ink: #fff; --opt-line: #7cc59f; --opt-sel: #ddf7e9; --top-bg: #12402a; --top-ink: #fff; --radius: 40px 8px 40px 8px; --viz-fill: #2fae6f; }
[data-world="ekobandar"] .opt { border-radius: 30px 4px 30px 4px; border-color: #7cc59f; }
[data-world="ekobandar"] .opt-key { border-radius: 50% 0 50% 0; background: #1f7a4d; }
[data-world="ekobandar"] .q-card { border: 3px solid #7cc59f; }
.pg-eco { display: flex; align-items: flex-end; gap: 4px; height: 76px; border-bottom: 6px solid #4f9a6e; }
.pg-eco .bld { flex: 1; height: var(--h); background: #b9c7bf; border-radius: 4px 4px 0 0; display: grid; place-items: start center; font-size: 18px; }
.pg-eco .bld.ok, .pg-eco .bld.no { background: #1f7a4d; } .pg-eco .bld.now { background: #ffd23f; }

/* ---- 5.5 ARKED: kabinet arked (tiada unsur perjudian) */
body[data-world="arked"] { --font-head: ui-monospace, "Courier New", monospace; --bg: #1a0b33; --bg-art: linear-gradient(rgba(255, 255, 255, .04) 50%, transparent 50%), radial-gradient(circle at 50% 0, #4b1f8f 0, #1a0b33 70%); background-size: 100% 4px, auto; --ink: #f6efff; --muted: #e1d2ff; --card: #f7f2ff; --card-ink: #24104a; --accent: #00e0b8; --accent-ink: #062019; --opt-line: #9c7be0; --opt-sel: #e9fff9; --top-bg: #0e0620; --top-ink: #00e0b8; --radius: 0; }
[data-world="arked"] .q-card { border: 8px solid #24104a; box-shadow: 0 0 0 4px #ff3ea5, 0 0 30px rgba(255, 62, 165, .4); }
[data-world="arked"] .q-prompt, [data-world="arked"] h1 { text-transform: none; letter-spacing: .5px; }
[data-world="arked"] .opt { border-radius: 0; border: 4px solid #24104a; box-shadow: 5px 5px 0 #24104a; }
[data-world="arked"] .opt-key { border-radius: 50%; width: 42px; height: 42px; background: #ff3ea5; color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3); }
[data-world="arked"] .btn-main { border-radius: 0; box-shadow: 5px 5px 0 #ff3ea5; font-family: ui-monospace, monospace; }
.pg-pixel { display: flex; gap: 3px; align-items: center; padding: 8px; background: #0e0620; border: 3px solid #00e0b8; }
.pg-pixel .lvl { color: #00e0b8; font-family: ui-monospace, monospace; font-weight: 900; margin-right: 6px; }
.pg-pixel i { flex: 1; height: 18px; background: #3a2266; } .pg-pixel i.ok { background: #00e0b8; } .pg-pixel i.no { background: #ffcf3f; } .pg-pixel i.now { background: #ff3ea5; animation: bob .8s steps(2) infinite; }

/* ---- 5.6 MUZIUM: bingkai bersepuh */
body[data-world="muzium"] { --font-head: Georgia, "Times New Roman", serif; --bg: #efe9dc; --bg-art: linear-gradient(115deg, rgba(255, 255, 255, .5) 0, transparent 30%), repeating-linear-gradient(90deg, #ebe3d1 0 2px, #efe9dc 2px 90px); --card: #fffdf7; --card-ink: #2e2410; --accent: #6d5512; --accent-ink: #fff; --opt-line: #c3ab6b; --opt-sel: #f6efd8; --top-bg: #2e2410; --top-ink: #f3dc8f; --radius: 2px; }
[data-world="muzium"] .q-card { border: 14px solid; border-image: linear-gradient(135deg, #b8932f, #f3dc8f, #8a6a12, #e7c96a) 14; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
[data-world="muzium"] .q-meta span { background: #2e2410; color: #f3dc8f; border: 0; border-radius: 2px; font-family: Georgia, serif; }
[data-world="muzium"] .opt { border-radius: 2px; border: 1px solid #c3ab6b; box-shadow: 0 2px 0 #c3ab6b; font-family: Georgia, serif; }
.pg-gallery { display: flex; gap: 4px; }
.pg-gallery .room { flex: 1; display: grid; justify-items: center; padding: 4px 0; border: 2px solid #c3ab6b; background: #fffdf7; font-size: 18px; color: #2e2410; }
.pg-gallery .room small { font-size: 9px; font-weight: 800; } .pg-gallery .room.ok, .pg-gallery .room.no { background: #f6efd8; } .pg-gallery .room.now { background: #2e2410; color: #f3dc8f; }

/* ---- 5.7 DAPUR: kad resipi atas alas kotak-kotak */
body[data-world="dapur"] { --bg: #fdf3f1; --bg-art: linear-gradient(90deg, rgba(214, 69, 65, .18) 50%, transparent 50%), linear-gradient(rgba(214, 69, 65, .18) 50%, transparent 50%); background-size: 46px 46px; --card: #fffef9; --card-ink: #3d140f; --accent: #b03a2e; --accent-ink: #fff; --opt-line: #e3a59d; --opt-sel: #fde6e2; --top-bg: #b03a2e; --top-ink: #fff; --radius: 6px; --viz-liquid: #ffb24d; }
[data-world="dapur"] .q-card { background: linear-gradient(90deg, transparent 52px, #e88a84 52px 54px, transparent 54px), repeating-linear-gradient(#fffef9 0 33px, #c9dcf2 33px 34px); padding-left: 66px; }
[data-world="dapur"] .opt { border-radius: 999px; border-style: dotted; }
[data-world="dapur"] .opt-key { border-radius: 50%; background: #b03a2e; }
.pg-recipe { background: #fffef9; color: #3d140f; border: 2px solid #e3a59d; border-radius: 6px; padding: 6px 10px; }
.pg-recipe ol { display: flex; gap: 4px; list-style: none; margin: 4px 0 0; padding: 0; }
.pg-recipe li { flex: 1; text-align: center; font-weight: 900; border-bottom: 3px solid #e3a59d; } .pg-recipe li.ok, .pg-recipe li.no { color: #1f7a4d; border-color: #1f7a4d; } .pg-recipe li.now { border-color: #b03a2e; }

/* ---- 5.8 ARKITEK: pelan biru */
body[data-world="arkitek"] { --font-head: ui-monospace, "SF Mono", Menlo, monospace; --bg: #0d4a86; --bg-art: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px; --ink: #ffffff; --muted: #d8e8fa; --card: #0f5598; --card-ink: #ffffff; --accent: #ffffff; --accent-ink: #0d4a86; --opt-line: #9cc6f2; --opt-sel: #1b6bb8; --opt-bg: #0f5598; --opt-ink: #fff; --top-bg: #083462; --top-ink: #fff; --radius: 0; --viz-ink: #ffffff; --viz-paper: #0f5598; --viz-grid: #5f97d1; --viz-fill: #ffd54a; --viz-accent: #ffd54a; --tok-bg: #0f5598; --tok-ink: #fff; --slot-bg: rgba(255, 255, 255, .08); --hint-bg: #fff4d6; }
[data-world="arkitek"] .q-card { border: 2px solid #fff; box-shadow: 8px 8px 0 rgba(0, 0, 0, .25); }
[data-world="arkitek"] .q-meta span { background: transparent; border: 1px dashed #fff; border-radius: 0; color: #fff; }
[data-world="arkitek"] .opt { border-radius: 0; border: 2px dashed #9cc6f2; }
[data-world="arkitek"] .opt-key { background: #fff; color: #0d4a86; border-radius: 0; }
[data-world="arkitek"] .gcell { border-color: #5f97d1; }
.pg-blueprint { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pg-blueprint .bp { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; padding: 4px; border: 1px dashed #9cc6f2; color: #fff; text-align: center; }
.pg-blueprint .bp.ok, .pg-blueprint .bp.no { background: rgba(255, 255, 255, .2); border-style: solid; } .pg-blueprint .bp.now { background: #ffd54a; color: #0d4a86; }

/* ---- 5.9 PELAYARAN: buku log kapal */
body[data-world="pelayaran"] { --font-head: Georgia, serif; --bg: #0e3a5c; --bg-art: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 22px, rgba(255, 255, 255, .06) 22px 24px), linear-gradient(#155a8a, #0e3a5c); --ink: #f2f8ff; --muted: #d3e6f7; --card: #fbf6ea; --card-ink: #1d2a36; --accent: #c8102e; --accent-ink: #fff; --opt-line: #9fb3c4; --opt-sel: #e8f1f8; --top-bg: #0a2a43; --top-ink: #fff; --radius: 4px 18px 18px 4px; }
[data-world="pelayaran"] .q-card { border-left: 18px solid #6b3e1f; box-shadow: inset 6px 0 0 #8a5a33, 0 10px 30px rgba(0, 0, 0, .35); }
[data-world="pelayaran"] .opt { border-radius: 4px; border-bottom-width: 6px; }
[data-world="pelayaran"] .opt-key { background: #0e3a5c; border-radius: 50%; }
.pg-compass { display: flex; justify-content: center; }
.pg-compass svg { width: 120px; height: 120px; }
.pg-compass path { fill: #2a5a80; stroke: #0e3a5c; stroke-width: 1.5; } .pg-compass path.ok, .pg-compass path.no { fill: #ffd23f; } .pg-compass path.now { fill: #c8102e; }

/* ---- 5.10 CUACA: papan pemuka stesen cuaca */
body[data-world="cuaca"] { --bg: #dff1fb; --bg-art: radial-gradient(circle at 85% 10%, #ffe27a 0 50px, transparent 52px), linear-gradient(#bfe6fa, #eef8fd); --card: #ffffff; --card-ink: #0b2e44; --accent: #0f5f8c; --accent-ink: #fff; --opt-line: #8cc3e0; --opt-sel: #ddf1fb; --top-bg: #0b2e44; --top-ink: #fff; --radius: 16px; }
[data-world="cuaca"] .q-card { border-top: 46px solid #0f5f8c; position: relative; }
[data-world="cuaca"] .q-card::before { content: "📡 STESEN DATA"; position: absolute; top: -36px; left: 16px; color: #fff; font-weight: 900; letter-spacing: 1px; }
[data-world="cuaca"] .opts { gap: 8px; }
[data-world="cuaca"] .opt { border-radius: 12px; border-width: 2px; background: linear-gradient(#ffffff, #eef8fd); }
.pg-gauge { display: flex; justify-content: center; }
.pg-gauge svg { width: 220px; }
.pg-gauge .g-bg { fill: none; stroke: #c6dfee; stroke-width: 16; } .pg-gauge .g-fg { fill: none; stroke: #0f5f8c; stroke-width: 16; transition: stroke-dasharray .5s; }
.pg-gauge .needle { stroke: #e4572e; stroke-width: 4; stroke-linecap: round; } .pg-gauge circle { fill: #0b2e44; } .pg-gauge text { fill: #0b2e44; font-weight: 800; }

/* ---- 6.1 KAWALAN MISI: konsol terminal */
body[data-world="kawalan"] { --font-head: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --bg: #05080d; --bg-art: radial-gradient(circle at 50% -20%, #0c2a1a 0, #05080d 60%); --ink: #c9ffd9; --muted: #9fe6b5; --card: #07120c; --card-ink: #d8ffe4; --accent: #39ff88; --accent-ink: #02170a; --opt-line: #2f8f57; --opt-sel: #0f3a22; --opt-bg: #07120c; --opt-ink: #d8ffe4; --top-bg: #02070a; --top-ink: #39ff88; --radius: 4px; --viz-ink: #c9ffd9; --viz-paper: #07120c; --viz-grid: #1e5c39; --viz-fill: #39ff88; --viz-accent: #ffcc33; --tok-bg: #07120c; --tok-ink: #d8ffe4; --slot-bg: #0b1d13; --key-bg: #0f3a22; --key-ink: #c9ffd9; --key-del: #3a1a0f; --key-next: #1b5e36; }
[data-world="kawalan"] .q-card { border: 1px solid #2f8f57; box-shadow: 0 0 0 1px #0f3a22, 0 0 30px rgba(57, 255, 136, .12); }
[data-world="kawalan"] .q-prompt::before { content: "> "; color: #39ff88; }
[data-world="kawalan"] .q-meta span { background: transparent; border-color: #2f8f57; color: #9fe6b5; font-family: ui-monospace, monospace; }
[data-world="kawalan"] .opt { font-family: ui-monospace, monospace; border-width: 1px; }
[data-world="kawalan"] .opt-key { background: #39ff88; color: #02170a; border-radius: 2px; }
[data-world="kawalan"] .f-box { background: #000; color: #39ff88; border-color: #2f8f57; }
[data-world="kawalan"] .key-del, [data-world="kawalan"] .key-next { color: #c9ffd9; }
[data-world="kawalan"] .intro, [data-world="kawalan"] .results { border: 1px solid #2f8f57; }
[data-world="kawalan"] .howto { background: #0f3a22; color: #d8ffe4; }
[data-world="kawalan"] .code.sk { background: #39ff88; color: #02170a; }
.pg-tele code { display: block; font-size: 16px; padding: 8px 10px; background: #000; color: #39ff88; border: 1px solid #2f8f57; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 6.2 KUNCI: peti besi */
body[data-world="kunci"] { --bg: #1f242b; --bg-art: radial-gradient(circle at 30% 30%, #3a414b 0, transparent 50%), repeating-linear-gradient(90deg, #232931 0 3px, #1f242b 3px 6px); --ink: #eef1f4; --muted: #cfd5dc; --card: #e9edf1; --card-ink: #1b2027; --accent: #f2b705; --accent-ink: #1b1400; --opt-line: #8b96a3; --opt-sel: #fff1bf; --top-bg: #121519; --top-ink: #f2b705; --radius: 10px; --key-bg: #2b313a; --key-ink: #f2b705; --key-del: #4a2a1a; --key-next: #f2b705; }
[data-world="kunci"] .key-next { color: #1b1400; } [data-world="kunci"] .key-del { color: #fff; }
[data-world="kunci"] .q-card { background: linear-gradient(145deg, #f3f5f7, #d9dee4); border: 6px solid #6f7a87; box-shadow: inset 0 0 0 2px #fff, 0 10px 0 #0e1114; }
[data-world="kunci"] .opt { border-radius: 10px; background: linear-gradient(#ffffff, #dfe4ea); box-shadow: 0 4px 0 #6f7a87; }
[data-world="kunci"] .opt-key { border-radius: 50%; background: #1b2027; color: #f2b705; }
.pg-lock { display: flex; align-items: center; gap: 4px; padding: 8px; background: #121519; border-radius: 10px; border: 3px solid #6f7a87; }
.pg-lock .lk { font-size: 26px; margin-right: 4px; }
.pg-lock .dial { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 6px; background: #2b313a; color: #8b96a3; font-family: ui-monospace, monospace; font-weight: 900; font-size: 18px; }
.pg-lock .dial.ok, .pg-lock .dial.no { color: #f2b705; background: #3a3216; } .pg-lock .dial.now { outline: 2px solid #f2b705; color: #fff; }

/* ---- 6.3 KIMIA: makmal klinikal */
body[data-world="kimia"] { --bg: #eefaf8; --bg-art: radial-gradient(circle at 95% 5%, rgba(11, 114, 104, .12) 0 120px, transparent 121px), linear-gradient(#f7fdfc, #e6f6f3); --card: #ffffff; --card-ink: #082f2b; --accent: #0b7268; --accent-ink: #fff; --opt-line: #7fc6bd; --opt-sel: #d9f5f1; --top-bg: #082f2b; --top-ink: #fff; --radius: 14px; --viz-liquid: #3bc9b6; }
[data-world="kimia"] .q-card { border: 2px solid #7fc6bd; position: relative; }
[data-world="kimia"] .q-card::after { content: "⚠ UJIAN"; position: absolute; top: 12px; right: 12px; font-size: 13px; font-weight: 900; background: #ffd23f; color: #2a1f00; padding: 2px 8px; border-radius: 4px; transform: rotate(4deg); }
[data-world="kimia"] .q-meta { padding-right: 90px; }
[data-world="kimia"] .opt { border-radius: 14px 14px 40px 40px; border-width: 2px; }
[data-world="kimia"] .opt-key { background: #0b7268; border-radius: 4px 4px 14px 14px; }
.pg-tubes { display: flex; justify-content: space-between; gap: 4px; height: 70px; align-items: flex-end; }
.pg-tubes .tube { width: 22px; height: 64px; border: 3px solid #0b7268; border-top: 0; border-radius: 0 0 12px 12px; display: flex; align-items: flex-end; overflow: hidden; background: #fff; }
.pg-tubes .tube i { width: 100%; height: 0; background: #3bc9b6; transition: height .5s; }
.pg-tubes .tube.ok i { height: 80%; } .pg-tubes .tube.no i { height: 80%; background: #ffd23f; } .pg-tubes .tube.now i { height: 30%; background: #9be7dc; }

/* ---- 6.4 SOLAR: panel sel suria */
body[data-world="solar"] { --bg: #fff8dc; --bg-art: radial-gradient(circle at 90% 0, #ffd84d 0 90px, transparent 92px), linear-gradient(#ffe9a3, #fffaf0 60%); --card: #ffffff; --card-ink: #2c2100; --accent: #0b5f86; --accent-ink: #fff; --opt-line: #d4b456; --opt-sel: #fff3c4; --top-bg: #0b3550; --top-ink: #ffd84d; --radius: 6px; --viz-fill: #f2a900; }
[data-world="solar"] .q-card { border-top: 22px solid; border-image: repeating-linear-gradient(90deg, #0b3550 0 30px, #1e5f8a 30px 32px) 22; }
[data-world="solar"] .opt { border-radius: 4px; background: linear-gradient(135deg, #ffffff 0 70%, #fff3c4 70%); }
[data-world="solar"] .opt-key { background: #0b3550; color: #ffd84d; border-radius: 4px; }
.pg-battery { display: flex; align-items: center; gap: 0; }
.pg-battery .cells { flex: 1; display: flex; gap: 3px; padding: 4px; border: 4px solid #0b3550; border-radius: 8px; background: #fff; }
.pg-battery .cells i { flex: 1; height: 26px; border-radius: 3px; background: #e7e2cf; } .pg-battery .cells i.ok { background: #2fb86f; } .pg-battery .cells i.no { background: #f2a900; } .pg-battery .cells i.now { background: #9fd6f5; animation: bob 1s infinite; }
.pg-battery .cap { width: 8px; height: 18px; background: #0b3550; border-radius: 0 4px 4px 0; }
.pg-battery b { margin-left: 10px; color: #2c2100; }

/* ---- 6.5 USAHAWAN: lejar hamparan */
body[data-world="usahawan"] { --bg: #eef2f8; --bg-art: linear-gradient(90deg, transparent 0 48px, #dfe5ef 48px 49px, transparent 49px), repeating-linear-gradient(#eef2f8 0 35px, #e2e8f1 35px 36px); --card: #ffffff; --card-ink: #13243f; --accent: #1d3f72; --accent-ink: #fff; --opt-line: #a7b8d3; --opt-sel: #e1e9f6; --top-bg: #13243f; --top-ink: #fff; --radius: 4px; }
[data-world="usahawan"] .q-card { background: linear-gradient(90deg, #f3f6fb 0 38px, #ffffff 38px); border: 1px solid #a7b8d3; padding-left: 52px; }
[data-world="usahawan"] .opts { gap: 0; grid-template-columns: 1fr !important; border: 1px solid #a7b8d3; }
[data-world="usahawan"] .opt { border-radius: 0; border: 0; border-bottom: 1px solid #a7b8d3; min-height: 60px; }
[data-world="usahawan"] .opt:hover { transform: none; background: #f3f6fb; }
[data-world="usahawan"] .opt-key { border-radius: 0; background: #e1e9f6; color: #13243f; }
.pg-kpi { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 6px; }
.pg-kpi .kp { background: #fff; color: #13243f; border: 1px solid #a7b8d3; border-radius: 6px; padding: 4px 8px; display: grid; }
.pg-kpi .kp b { font-size: 22px; } .pg-kpi .kp small { font-size: 12px; font-weight: 800; }
.pg-kpi .spark { display: flex; align-items: flex-end; gap: 2px; }
.pg-kpi .spark i { flex: 1; height: var(--h); background: #dfe5ef; } .pg-kpi .spark i.ok { background: #1d3f72; } .pg-kpi .spark i.no { background: #f59e0b; } .pg-kpi .spark i.now { background: #2bb3a3; }

/* ---- 6.6 LAPANGAN TERBANG: pas masuk */
body[data-world="lapangan"] { --bg: #e9ecf7; --bg-art: linear-gradient(160deg, #cdd5f3 0, transparent 40%), linear-gradient(#f1f3fb, #e2e6f5); --card: #ffffff; --card-ink: #151c4f; --accent: #24318f; --accent-ink: #fff; --opt-line: #9aa5dd; --opt-sel: #e2e6ff; --top-bg: #151c4f; --top-ink: #ffd166; --radius: 18px; }
[data-world="lapangan"] .q-card { border-right: 70px solid #24318f; position: relative; }
[data-world="lapangan"] .q-card::after { content: ""; position: absolute; right: -58px; top: 20px; bottom: 20px; width: 46px; background: repeating-linear-gradient(#fff 0 3px, transparent 3px 6px, #fff 6px 7px, transparent 7px 11px); }
[data-world="lapangan"] .opt { border-radius: 10px; border-left: 10px solid #24318f; }
.pg-flip { background: #111; border-radius: 8px; padding: 6px; font-family: ui-monospace, monospace; }
.pg-flip .fb-row { display: flex; justify-content: space-between; padding: 3px 8px; color: #ffd166; font-size: 15px; border-bottom: 1px solid #333; letter-spacing: 1px; }
.pg-flip .fb-row:first-child { color: #9aa5dd; font-size: 12px; } .pg-flip .fb-row.now { background: #2a2a2a; color: #fff; } .pg-flip .fb-row.ok, .pg-flip .fb-row.no { color: #6ee7a3; }

/* ---- 6.7 PELABUHAN: manifes kontena */
body[data-world="pelabuhan"] { --bg: #f3ece6; --bg-art: repeating-linear-gradient(90deg, #ece2d8 0 8px, #f3ece6 8px 16px); --card: #ffffff; --card-ink: #3a1406; --accent: #9a3412; --accent-ink: #fff; --opt-line: #d9a98d; --opt-sel: #fde4d6; --top-bg: #3a1406; --top-ink: #fff; --radius: 2px; }
[data-world="pelabuhan"] .q-card { border-top: 18px solid #9a3412; background: linear-gradient(#ffffff, #ffffff) padding-box; box-shadow: 0 0 0 3px #3a1406; }
[data-world="pelabuhan"] .opt { border-radius: 2px; background: repeating-linear-gradient(90deg, #fff 0 18px, #fbefe8 18px 22px); border: 3px solid #9a3412; }
[data-world="pelabuhan"] .opt-key { border-radius: 2px; background: #9a3412; }
.pg-cont { display: flex; align-items: flex-end; gap: 6px; }
.pg-cont .crane { font-size: 34px; }
.pg-cont .stack { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.pg-cont .stack i { height: 26px; border: 2px solid #3a1406; background: #e8ddd5; } .pg-cont .stack i.ok, .pg-cont .stack i.no { background: hsl(calc(var(--c) * 90 + 10), 65%, 45%); } .pg-cont .stack i.now { background: #ffd166; }

/* ---- 6.8 BALAI CERAP: kaca malam */
body[data-world="balaicerap"] { --bg: #070a24; --bg-art: radial-gradient(1px 1px at 30px 40px, #fff, transparent), radial-gradient(1.5px 1.5px at 140px 90px, #fff, transparent), radial-gradient(1px 1px at 200px 20px, #cfd8ff, transparent), radial-gradient(ellipse at 70% 0, #24296b 0, transparent 60%), #070a24; background-size: 240px 140px, 240px 140px, 240px 140px, auto, auto; --ink: #eef0ff; --muted: #cdd2ff; --card: rgba(238, 240, 255, .96); --card-ink: #13164a; --accent: #9ab0ff; --accent-ink: #0b0e33; --opt-line: #8790d8; --opt-sel: #e1e5ff; --top-bg: #0b0e33; --top-ink: #eef0ff; --radius: 22px; --viz-fill: #6d7cff; }
[data-world="balaicerap"] .q-card { border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 0 40px rgba(154, 176, 255, .35); }
[data-world="balaicerap"] .opt { border-radius: 22px; }
[data-world="balaicerap"] .opt-key { background: #13164a; color: #ffe27a; border-radius: 50%; }
.pg-const svg { width: 100%; max-height: 90px; }
.pg-const line { stroke: #9ab0ff; stroke-width: 2; } .pg-const circle { fill: #3b4080; } .pg-const circle.ok, .pg-const circle.no { fill: #ffe27a; } .pg-const circle.now { fill: #fff; }

/* ---- 6.9 TAMAN NEGARA: peta topografi + buku nota lapangan */
body[data-world="taman"] { --bg: #eef3e2; --bg-art: repeating-radial-gradient(circle at 20% 30%, transparent 0 26px, rgba(63, 95, 26, .16) 26px 28px), repeating-radial-gradient(circle at 85% 80%, transparent 0 30px, rgba(63, 95, 26, .12) 30px 32px); --card: #fffef6; --card-ink: #22330c; --accent: #3f5f1a; --accent-ink: #fff; --opt-line: #a9be86; --opt-sel: #e8f2d6; --top-bg: #22330c; --top-ink: #f4e9b0; --radius: 8px; }
[data-world="taman"] .q-card { border-left: 30px solid transparent; background: radial-gradient(circle at -15px 20px, #3f5f1a 0 6px, transparent 7px) 0 0 / 30px 34px repeat-y border-box, #fffef6 padding-box; border-image: none; }
[data-world="taman"] .opt { border-radius: 8px; border-style: solid solid solid dashed; }
[data-world="taman"] .opt-key { background: #3f5f1a; }
.pg-trail { position: relative; height: 70px; }
.pg-trail svg { position: absolute; inset: 0; width: 100%; height: 100%; } .pg-trail path { stroke: #3f5f1a; stroke-width: 3; }
.pg-trail .pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-30%, -60%); font-size: 20px; font-weight: 900; color: #3f5f1a; }

/* ---- 6.10 KAJI SELIDIK: majalah infografik */
body[data-world="kajiselidik"] { --font-head: "Lexend", "Atkinson Hyperlegible", system-ui, sans-serif; --bg: #fff5f8; --bg-art: linear-gradient(90deg, #ffd6e4 0 12px, transparent 12px), linear-gradient(#fff5f8, #fff5f8); --card: #ffffff; --card-ink: #2a0716; --accent: #a1194a; --accent-ink: #fff; --opt-line: #e59ab6; --opt-sel: #fde1ec; --top-bg: #2a0716; --top-ink: #ffd6e4; --radius: 0; --viz-c1: #a1194a; --viz-c2: #f59e0b; --viz-c3: #0f766e; --viz-c4: #6366f1; --viz-c5: #84cc16; }
[data-world="kajiselidik"] .q-card { border-left: 12px solid #a1194a; box-shadow: 10px 10px 0 #ffd6e4; }
[data-world="kajiselidik"] .q-prompt { font-weight: 800; }
[data-world="kajiselidik"] .opt { border-radius: 0; border: 0; border-top: 5px solid #a1194a; background: #fff5f8; }
[data-world="kajiselidik"] .opt-key { border-radius: 0; background: #a1194a; font-size: 20px; }
.pg-pie { display: flex; align-items: center; gap: 10px; }
.pg-pie svg { width: 66px; height: 66px; } .pg-pie path { fill: #f3d6e1; stroke: #fff; stroke-width: 1.5; } .pg-pie path.ok { fill: #a1194a; } .pg-pie path.no { fill: #f59e0b; } .pg-pie path.now { fill: #6366f1; }
.pg-pie b { color: var(--ink); }

/* Dunia Tahun 6 berlatar cerah: teks halaman gelap */
body[data-world="kimia"], body[data-world="solar"], body[data-world="usahawan"], body[data-world="lapangan"], body[data-world="pelabuhan"], body[data-world="taman"], body[data-world="kajiselidik"] { --ink: #14213d; --muted: #3d4a66; }
body[data-world="kawalan"] { --card-muted: #9fe6b5; } body[data-world="arkitek"] { --card-muted: #d8e8fa; }
/* Teks pada latar gelap: pastikan label kemajuan & footer kontras */
body[data-world="angkasa"] .pg-label, body[data-world="lautan"] .pg-label, body[data-world="pasarmalam"] .pg-label, body[data-world="harta"] .pg-label,
body[data-world="detektif"] .pg-label, body[data-world="stadium"] .pg-label, body[data-world="arked"] .pg-label, body[data-world="arkitek"] .pg-label,
body[data-world="pelayaran"] .pg-label, body[data-world="kawalan"] .pg-label, body[data-world="kunci"] .pg-label, body[data-world="balaicerap"] .pg-label { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
