/* =====================================================================
   DUNIA OYEN — tema "Lembut" (v12)
   Latar lavender, kad putih dengan bayang lembut, jubin pastel, butang pil
   ungu tua. Dimuat SELEPAS styles.css; hanya mengatasi rupa, bukan logik.
   ===================================================================== */
:root {
  --bg: #EFF0FB;
  --bg-deep: #E3E4F7;
  --surface: #FFFFFF;
  --ink: #221B5C;            /* indigo tua: tajuk & butang utama */
  --muted: #6E6C92;
  --line: #E7E6F5;           /* garis halus */
  --primary: #6C55E8;        /* ungu: butang "Seterusnya", aktif */
  --primary-dark: #5641D0;
  --primary-soft: #EEEAFE;
  --leaf: #2DB57A; --leaf-dark: #1E9463;   /* betul */
  --ok-soft: #E3F7EE;
  --bad-soft: #FFE9E7;
  --t-lilac: #9787F3; --t-mint: #5FCB9B; --t-coral: #F6837B; --t-sun: #FFCB52; --t-sky: #62B9F0; --t-peach: #FFAB6E;
  --sh-1: 0 1px 2px rgba(34, 27, 92, .05), 0 6px 18px rgba(34, 27, 92, .07);
  --sh-2: 0 2px 6px rgba(34, 27, 92, .06), 0 14px 32px rgba(34, 27, 92, .12);
  --sh-press: 0 1px 2px rgba(34, 27, 92, .08);
  --pop: var(--sh-1);
  --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
}
body { background: var(--bg); }
.screen { gap: 18px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.005em; }
.h-big { font-size: 1.75rem; }
.fine { color: var(--muted); }

/* ---------- butang ---------- */
.btn { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(108, 85, 232, .7); font-weight: 800; font-size: 1.08rem; min-height: 56px; letter-spacing: .005em; transition: transform .1s, box-shadow .1s, filter .1s; }
.btn:active { transform: translateY(2px) scale(.99); box-shadow: 0 3px 8px -4px rgba(108, 85, 232, .7); }
.btn.mango { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(34, 27, 92, .75); }
.btn.mango:active { box-shadow: 0 3px 8px -4px rgba(34, 27, 92, .7); }
.btn.white, .gbtn { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); }
.btn.white:active, .gbtn:active { box-shadow: var(--sh-press), inset 0 0 0 1.5px var(--line); }
.btn.ghost { color: var(--primary); background: transparent; box-shadow: none; }
.btn.small { min-height: 42px; font-size: .95rem; }
.icon-btn { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); width: 46px; height: 46px; font-size: 1.2rem; }
.icon-btn:active { transform: scale(.96); box-shadow: var(--sh-press); }

/* ---------- cip, bar atas ---------- */
.chip { background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); padding: 7px 12px; }
.chip.hot { background: #FFF1E4; box-shadow: var(--sh-1); }
.who { background: var(--surface); box-shadow: var(--sh-1); }
.lang-switch { background: var(--surface); box-shadow: var(--sh-1); }
.lang-switch button.on { background: var(--ink); }
.hero-badges span { box-shadow: var(--sh-1); }
.tabs button { box-shadow: var(--sh-1); }
.tabs button.on { background: var(--ink); }
.seg button { background: var(--bg); }
.seg button.on { background: var(--ink); }

/* ---------- kad & panel ---------- */
.panel, .form, .pcard, .stage-card, .need, .stagebox, .prompt, .sheet .panel { box-shadow: var(--sh-1); }
.panel { border-radius: var(--r-lg); }
.form input[type=text] { border: 2px solid var(--line); background: #F7F7FE; }
.form input[type=text]:focus { border-color: var(--primary); outline: none; }
.age-grid button { background: #F4F4FD; border: 2px solid transparent; }
.age-grid button.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.swatches button.on { border-color: var(--ink); box-shadow: 0 0 0 3px #fff inset; }
.pcard.add { border: 2px dashed #CFCBEF; color: var(--primary); }
.bar { background: var(--bg-deep); }
.bar > i { background: var(--primary); }
.bar.mango > i { background: linear-gradient(90deg, #FFC94D, #FFA93D); }

/* ---------- navigasi bawah ---------- */
.nav { background: rgba(255, 255, 255, .96); box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(34, 27, 92, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav button { color: #8F8DAE; font-weight: 800; }
.nav button.on { color: var(--primary); }
.nav button.on::before { background: var(--primary-soft); }

/* ---------- lembaran & toast ---------- */
.sheet-wrap { background: rgba(34, 27, 92, .42); }
.sheet { background: var(--bg); border-radius: 28px 28px 0 0; }
.toast { background: var(--ink); border-radius: 999px; box-shadow: var(--sh-2); }

/* ---------- peta dunia ---------- */
.wcard { background: var(--surface); border: 0; box-shadow: var(--sh-1); border-radius: var(--r-lg); padding: 12px 16px 12px 12px; }
.wcard:active { transform: scale(.985); box-shadow: var(--sh-press); }
.wcard .wicon { background: color-mix(in srgb, var(--ws) 70%, #fff); border-radius: 18px; }
.winfo small { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.world-screen { background: linear-gradient(color-mix(in srgb, var(--ws) 55%, var(--bg)), var(--bg) 60%); }
.wtitle small { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.gnode { border-width: 4px; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--wc) 80%, transparent); }
.gnode:active { transform: scale(.96); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--wc) 80%, transparent); }
.gnode .num { background: var(--ink); }
.pnode.here .gnode { animation: pulseL 1.6s infinite; }
@keyframes pulseL { 0%, 100% { box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--wc) 80%, transparent), 0 0 0 0 rgba(108, 85, 232, .45) } 50% { box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--wc) 80%, transparent), 0 0 0 14px rgba(108, 85, 232, 0) } }

/* ---------- Akademi, Kampung, kedai ---------- */
.tcard, .vcard, .lv, .item, .plan, .vill-cta, .acad-cta, .rw-card, .prw { box-shadow: var(--sh-1); }
.tcard:active, .vcard:active, .lv:active, .item:active, .vill-cta:active, .acad-cta:active { transform: scale(.985); box-shadow: var(--sh-press); }

/* ---------- game: pilihan jawapan ---------- */
.opt { background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 2px var(--line); color: var(--ink); border-radius: 20px; }
.opt:active { transform: scale(.97); box-shadow: var(--sh-press), inset 0 0 0 2px var(--primary); }
.opt.right { background: var(--ok-soft); color: var(--leaf-dark); box-shadow: 0 8px 18px -10px rgba(45, 181, 122, .8), inset 0 0 0 2.5px var(--leaf); position: relative; }
.opt.right::after { content: "✓"; position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font: 900 .95rem/1 var(--f-body); box-shadow: 0 0 0 3px #fff; }
.opt.wrong { background: var(--bad-soft); color: #D9473D; box-shadow: inset 0 0 0 2.5px #F6A49D; opacity: .75; }
.tile { box-shadow: var(--sh-1), inset 0 0 0 2px var(--line); }
.slot { background: #F6F6FD; box-shadow: inset 0 0 0 2px var(--line); }
.stagebox { border-radius: var(--r-lg); }
.count-in span { color: var(--primary); }

/* ---------- keputusan ---------- */
.result h1 { color: var(--ink); }

/* =====================  SKRIN RUMAH (papan pemuka)  ===================== */
.dash { gap: 16px; }
.dash-head { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.dash-av .dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 1.35rem/1 var(--f-display); box-shadow: 0 0 0 3px #fff, var(--sh-1); overflow: hidden; }
.dash-av .dot.av svg, .dash-av .dot.av img { width: 118%; height: 118%; }
.dash-hi { flex: 1; min-width: 0; }
.dash-hi h1 { font-size: 1.32rem; line-height: 1.15; overflow-wrap: break-word; }
@media (max-width: 380px) { .dash-head { gap: 8px; } .dash-av .dot { width: 44px; height: 44px; font-size: 1.15rem; } .dash-hi h1 { font-size: 1.12rem; } .dash-hi p { display: none; } .dash-head .chip { padding: 6px 9px; } .dash-head .icon-btn { width: 38px; height: 38px; } }
.dash-hi p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; font-weight: 700; line-height: 1.3; }
.dash-head .chip { flex: none; }
.dash-head .icon-btn { width: 42px; height: 42px; font-size: 1.05rem; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px -6px; }
.sec-h h2 { font-size: 1.2rem; }
.sec-h .see { color: var(--primary); font-weight: 800; font-size: .9rem; padding: 6px 2px; }

/* kad Oyen */
.pet-card { background: var(--surface); border-radius: 28px; padding: 10px 10px 14px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; }
.pet-card .room { border-radius: 20px; min-height: 300px; box-shadow: none; }
.pet-card .room-hint { margin: -4px 0 0; }
.stage-line { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 0 6px; }
.stage-line .lvl { font: 800 1.02rem/1.2 var(--f-display); color: var(--ink); }
.stage-line small { color: var(--muted); font-weight: 700; font-size: .8rem; text-align: right; }
.stage-line .bar { grid-column: 1 / -1; height: 10px; margin-top: 6px; }
.pneeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 2px; }
.pneed { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 8px; padding: 10px 10px 11px; border-radius: 18px; background: #F5F4FE; text-align: left; }
.pneed:active { transform: scale(.96); }
.pneed .ico { font-size: 1.55rem; line-height: 1; }
.pneed .nt { display: flex; flex-direction: column; min-width: 0; font: 800 .92rem/1.1 var(--f-display); color: var(--ink); }
.pneed .nt small { font: 700 .68rem/1.2 var(--f-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pneed .bar { grid-column: 1 / -1; height: 7px; background: #E2E0F5; }
/* teruskan belajar */
.cont-card { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border-radius: 24px; padding: 12px 12px 12px 12px; box-shadow: var(--sh-1); }
.cont-card:active { transform: scale(.985); box-shadow: var(--sh-press); }
.cc-ic { flex: none; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(150deg, color-mix(in srgb, var(--ws) 85%, #fff), color-mix(in srgb, var(--wc) 35%, #fff)); }
.cc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-tx small { color: var(--muted); font-weight: 800; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tx b { font: 800 1.12rem/1.15 var(--f-display); color: var(--ink); }
.cc-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cc-bar .bar { flex: 1; height: 8px; }
.cc-bar .bar > i { background: linear-gradient(90deg, #5FCB9B, #3DB6C9); }
.cc-bar em { font-style: normal; font-weight: 900; font-size: .78rem; color: #2E9E93; white-space: nowrap; }
.cc-go { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.15rem; padding-left: 3px; box-shadow: 0 8px 18px -8px rgba(108, 85, 232, .8); }

/* streak minggu */
.streak-card { background: linear-gradient(150deg, #EEEBFF, #E6E2FD); border-radius: 24px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.sk-top { display: flex; align-items: center; gap: 10px; }
.sk-top > div { flex: 1; min-width: 0; }
.sk-top b { display: block; font: 800 1.02rem/1.2 var(--f-display); color: var(--ink); }
.sk-top small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; margin-top: 2px; }
.sk-star { font-size: 2rem; filter: drop-shadow(0 4px 6px rgba(255, 180, 40, .35)); }
.sk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.sk-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; color: var(--muted); }
.sk-week i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: .85rem; color: #fff; background: #fff; box-shadow: inset 0 0 0 2px #D4CFF6; }
.sk-week span.on i { background: var(--primary); box-shadow: none; }
.sk-week span.today { color: var(--primary); }
.sk-week span.today i { box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 3px rgba(108, 85, 232, .18); }
.sk-week span.today.on i { box-shadow: 0 0 0 3px rgba(108, 85, 232, .22); }

/* jubin jelajah */
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dtile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; min-height: 150px; padding: 14px 14px 16px; border-radius: 24px; color: var(--ink); background: linear-gradient(155deg, var(--tc1), var(--tc2)); box-shadow: 0 12px 22px -16px var(--tc2); overflow: hidden; isolation: isolate; }
.dtile::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .22); z-index: -1; }
.dtile:active { transform: scale(.97); }
.dtile .ti { width: 54px; height: 54px; border-radius: 17px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; font-size: 1.85rem; margin-bottom: 8px; overflow: hidden; }
.dtile .ti svg, .dtile .ti img { width: 44px; height: 44px; }
.dtile .ti .ptyplayers { display: flex; }
.dtile .ti .ptyplayers i { width: 24px; height: 24px; margin-right: -8px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px #fff; }
.dtile .ti .ptyplayers i:last-child { margin-right: 0; }
.dtile .ti .ptyplayers svg { width: 100%; height: 100%; }
.dtile b { font: 800 1.1rem/1.12 var(--f-display); }
.dtile small { font-size: .78rem; font-weight: 700; line-height: 1.28; color: color-mix(in srgb, var(--ink) 78%, transparent); padding-right: 30px; }
.dtile .go { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; font: 900 1.2rem/1 var(--f-body); padding-bottom: 2px; }
.dtile em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: .62rem; font-weight: 900; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 999px; letter-spacing: .03em; }
.t-lilac { --tc1: #C3B8FA; --tc2: #A091F5; }
.t-mint { --tc1: #A8EBC9; --tc2: #74D5A5; }
.t-coral { --tc1: #FFC0BA; --tc2: #F99690; }
.t-sun { --tc1: #FFE69A; --tc2: #FFD262; }
.t-sky { --tc1: #B5E2FB; --tc2: #82C9F3; }
.t-peach { --tc1: #FFD2B8; --tc2: #FFB287; }

/* carta juara */
.lb-card { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border-radius: 24px; padding: 12px 14px 12px 12px; box-shadow: var(--sh-1); }
.lb-card:active { transform: scale(.985); }
.lb-ic { flex: none; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(150deg, #FFF1C2, #FFDC7A); display: grid; place-items: center; font-size: 1.9rem; }
.lb-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-tx b { font: 800 1.08rem/1.15 var(--f-display); }
.lb-tx small { color: var(--muted); font-weight: 700; font-size: .8rem; line-height: 1.3; }
.lb-tx .lbmini { font-size: .8rem; font-weight: 800; color: var(--ink); }
.lb-card .go { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font: 900 1.2rem/1 var(--f-body); padding-bottom: 2px; }

/* misi, ganjaran */
.dash .missions { gap: 14px; }
.dash .missions .title-row h2 { font-size: 1.15rem; }
.mdone { background: var(--leaf); }
.rw-card { background: linear-gradient(140deg, #FFF8E6, #FFEEDC); border: 0; box-shadow: var(--sh-1); }
.rw-card.ready { box-shadow: var(--sh-1), inset 0 0 0 2.5px var(--t-sun); }

/* lencana */
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--surface); border-radius: 24px; padding: 16px 8px; box-shadow: var(--sh-1); }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.bdg i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.6rem; margin-bottom: 4px; }
.bdg.b1 i { background: #FFF3CF; } .bdg.b2 i { background: #FFE4DA; } .bdg.b3 i { background: #E5F1FF; } .bdg.b4 i { background: #EEEAFE; }
.bdg b { font: 800 1.1rem/1 var(--f-display); color: var(--ink); }
.bdg small { font-size: .72rem; font-weight: 800; color: var(--muted); }

/* =====================  SKRIN ALU-ALUAN  ===================== */
.welcome.ob { justify-content: flex-start; align-items: stretch; text-align: left; gap: 14px; padding-top: 18px; background: radial-gradient(120% 60% at 100% 0%, #FCE9F2 0, transparent 60%), radial-gradient(90% 50% at 0% 100%, #FFF1D9 0, transparent 60%); min-height: 100dvh; }
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ob .brand { font-size: 1.5rem; }
.ob-title { font-size: clamp(2.1rem, 9.5vw, 2.7rem); line-height: 1.04; letter-spacing: -.015em; max-width: 12ch; margin-top: 8px; }
.ob-sub { margin: 0; color: var(--muted); font-size: 1.02rem; font-weight: 700; line-height: 1.45; max-width: 34ch; }
.ob-hero { position: relative; display: grid; place-items: center; padding: 10px 0 14px; isolation: isolate; }
.ob-blob { position: absolute; width: min(250px, 66vw); aspect-ratio: 1.08; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: linear-gradient(150deg, #FFE3C4, #FFD0DE); z-index: -1; top: 52%; left: 50%; transform: translate(-50%, -50%); }
.ob-spark { position: absolute; color: var(--t-sun); font-size: 1.6rem; z-index: 1; }
.ob-spark.s1 { top: 6%; left: 12%; color: #FFB43D; } .ob-spark.s2 { top: 18%; right: 10%; font-size: 1.3rem; color: var(--primary); } .ob-spark.s3 { bottom: 10%; left: 18%; font-size: 1.1rem; color: #F27BA8; }
.ob-hero .oyen-big { width: min(200px, 52vw); }
.ob .hero-badges { justify-content: center; }
.ob .hero-badges span { background: rgba(255, 255, 255, .85); font-size: .82rem; }
.ob .stack { max-width: none; margin-top: 4px; }
.ob .stack .fine { text-align: center; }
.ob .stack .btn.ghost { align-self: center; }
.btn .arr { font-size: 1.5rem; line-height: 1; margin-left: 2px; }
@media (min-width: 560px) { .welcome.ob { max-width: 460px; margin: 0 auto; width: 100%; } }

/* =====================  SKRIN GAME (pelajaran)  ===================== */
.game { gap: 14px; }
.game-top { gap: 10px; }
.game-top .icon-btn { width: 42px; height: 42px; font-size: 1rem; }
.gtitle { flex: 1; min-width: 0; text-align: center; }
.gtitle b { display: block; font: 800 1.05rem/1.2 var(--f-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gprog { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.gprog .gbar { flex: 1; height: 10px; background: var(--bg-deep); box-shadow: none; }
.gprog .gbar i { background: linear-gradient(90deg, #8D78F2, var(--primary)); }
.gseg { display: none; flex: 1; gap: 5px; }
.gprog.seg .gbar { display: none; }
.gprog.seg .gseg { display: flex; }
.gseg i { flex: 1; height: 8px; border-radius: 999px; background: #DCD9F3; transition: background .3s; }
.gseg i.on { background: var(--primary); }
.gcount { flex: none; min-width: 2.6em; text-align: right; font-weight: 900; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gcount:empty { display: none; }
.game .prompt { background: transparent; box-shadow: none; padding: 0; align-items: flex-end; gap: 6px; }
.game .oy-mini { width: 64px; height: 64px; margin-bottom: -4px; }
.pbub { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 22px; padding: 14px 12px 14px 16px; box-shadow: var(--sh-1); }
.pbub::before { content: ""; position: absolute; left: -7px; bottom: 16px; width: 16px; height: 16px; background: var(--surface); border-radius: 3px; transform: rotate(45deg); }
.pbub p { position: relative; margin: 0; flex: 1; min-width: 0; font: 800 1.2rem/1.25 var(--f-display); color: var(--ink); }
.pbub .say { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.15rem; box-shadow: none; }
.pbub .say:active { transform: scale(.94); }

/* =====================  SKRIN LAIN: kad tanpa bingkai tebal  ===================== */
/* Akademi & Kampung: kad putih, ikon dalam petak berwarna */
.tracks, .vgrid { gap: 12px; }
.tcard, .vcard { border: 0; box-shadow: var(--sh-1); border-radius: 24px; padding: 16px 12px 14px; gap: 5px; }
.tcard .ticon { width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--wc) 16%, #fff); display: grid; place-items: center; margin-bottom: 4px; }
.tcard .ticon svg { width: 48px; height: 48px; }
.tcard b, .vcard b { color: var(--ink); }
.tcard .bar > i { background: var(--wc); }
.vcard .vic { width: 72px; height: 72px; border-radius: 22px; background: color-mix(in srgb, var(--wc) 16%, #fff); display: grid; place-items: center; margin-bottom: 4px; position: relative; }
.vcard.locked { filter: none; opacity: 1; }
.vcard.locked .vic { filter: grayscale(.9); opacity: .55; }
.vcard.locked b, .vcard.locked small { opacity: .6; }
.vcard .tier { background: var(--bg); color: var(--muted); }
.vill-cta, .acad-cta { border: 0; box-shadow: var(--sh-1); border-radius: 24px; }
.vill-cta .big { width: 56px; height: 56px; border-radius: 18px; background: #DDF6EA; display: grid; place-items: center; }
.vill-cta .go, .acad-cta .go { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 900; }
.lv { border: 0; box-shadow: var(--sh-1); border-radius: 20px; }
.lv.here { box-shadow: var(--sh-1), inset 0 0 0 2.5px var(--primary); }

/* Peta: dunia berkunci lebih lembut */
.wcard.locked { filter: none; opacity: 1; }
.wcard.locked .wicon { filter: grayscale(.9); opacity: .55; }
.wcard.locked .winfo b, .wcard.locked .winfo small { opacity: .6; }

/* Hab Game 3D & Main Bersama */
.g3grid { gap: 12px; }
.g3card { border: 0; border-radius: 24px; padding: 14px; background: linear-gradient(165deg, #fff 52%, color-mix(in srgb, var(--gc) 16%, #fff)); box-shadow: var(--sh-1); }
.g3card:active { transform: scale(.97); box-shadow: var(--sh-press); }
.g3card .g3i { width: 56px; height: 56px; border-radius: 18px; background: color-mix(in srgb, var(--gc) 16%, #fff); display: grid; place-items: center; font-size: 2.1rem; filter: none; margin-bottom: 4px; }
.g3card b { color: var(--ink); }
.g3card em, .hub-t em { background: var(--ink); color: #fff; }

/* Kedai, album, pakej */
.item { border: 0; box-shadow: var(--sh-1); border-radius: 22px; }
.item.on { box-shadow: var(--sh-1), inset 0 0 0 2.5px var(--leaf); }
.plan { border: 0; box-shadow: var(--sh-1); }
.plan.cur { box-shadow: var(--sh-1), inset 0 0 0 2.5px var(--leaf); }
.plan.hot { box-shadow: var(--sh-2), inset 0 0 0 2.5px var(--primary); }
.plan .flag { background: var(--primary); color: #fff; }
.plan.cur .flag { background: var(--leaf); }
.plan li::before { color: var(--leaf); }

/* bar atas skrin dalaman */
.topbar { gap: 8px; }
.title-row h1 { font-size: 1.65rem; }
.fp-in { font: 700 1.05rem var(--f-body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; }
.fp-in:focus { border-color: var(--primary); outline: none; }

/* ---------- Level game 3D ---------- */
.lv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.lv-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; border-radius: 16px; background: #fff; box-shadow: var(--sh-1); border: 0; padding: 4px 0; }
.lv-b b { font: 800 1.25rem/1 var(--f-display); color: var(--ink); }
.lv-b.done { background: color-mix(in srgb, var(--gc) 14%, #fff); }
.lv-b.on { outline: 3px solid var(--primary); outline-offset: 1px; transform: scale(1.05); }
.lv-b.lock { opacity: .5; box-shadow: none; background: rgba(255,255,255,.6); } .lv-b.lock b { font-size: 1rem; }
.lv-st { display: flex; gap: 0; font-size: .62rem; line-height: 1; } .lv-st i, .lv-big i { font-style: normal; color: #D9D8EC; } .lv-st i.on, .lv-big i.on { color: #FFB800; }
.lv-info { font-weight: 800; font-size: .9rem; color: var(--ink); background: #fff; border-radius: 14px; padding: 8px 12px; margin: 0; }
.r-howd summary { cursor: pointer; font-weight: 900; font-size: .82rem; color: var(--primary); list-style: none; padding: 2px 0 6px; } .r-howd summary::-webkit-details-marker { display: none; } .r-howd summary::before { content: "❔ "; }
.lv-tag { font-weight: 900; font-size: .78rem; color: var(--muted); }
.lv-big { display: flex; justify-content: center; gap: 6px; font-size: 3rem; line-height: 1; }
.lv-big i.on { animation: lvpop .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * .35s); text-shadow: 0 3px 0 #E09600; }
@keyframes lvpop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lv-big i.on { animation: none; } }
.r-score.sm b { font-size: 1.6rem; } .lv-nudge { font-weight: 900; color: var(--primary-dark, #5641D0); margin: 0; }
.lvchip { font-weight: 900; }
.g3card .g3bar { display: block; width: 100%; height: 6px; border-radius: 99px; background: rgba(34,27,92,.08); overflow: hidden; margin-top: 2px; } .g3card .g3bar i { display: block; height: 100%; background: #FFB800; border-radius: 99px; }
