/* ===== Ruang Belajar Clarissa — gaya peach/coral, judul Fredoka ===== */
:root {
  --bg: #fff3e8;
  --white: #ffffff;
  --ink: #3a1e2b;
  --ink2: #5b4450;
  --muted: #8d8088;
  --line: #f6e2d6;
  --soft: #fff4ec;
  --soft2: #ffe6d8;
  --coral: #f2603f;
  --coral-d: #d9492a;
  --orange: #f9a24b;
  --plum: #3d1f2b;
  --pink: #e86a8b;
  --yellow: #f7c948;
  --green: #2bb673;
  --red: #e5484d;
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --shadow: 0 14px 36px rgba(210, 110, 60, .14);
  --display: "Fredoka", "Poppins", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg) radial-gradient(1200px 600px at 10% -10%, #ffe1cc 0, transparent 60%) no-repeat;
  color: var(--ink); font-size: 15px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: -.2px; }
.ic { flex-shrink: 0; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header pil melayang ===== */
.site-header { position: sticky; top: 0; z-index: 40; padding: 14px 24px 0; }
.header-pill {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  background: rgba(255, 250, 246, .9); backdrop-filter: blur(12px); border: 1px solid #fbe7da;
  border-radius: 999px; padding: 9px 10px 9px 12px; box-shadow: 0 10px 30px rgba(210, 110, 60, .12);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; background: #fff1e6; display: grid; place-items: center; overflow: hidden; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: -.2px; }
.brand-name b { color: var(--coral); font-weight: 700; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { padding: 10px 20px; border-radius: 999px; color: var(--ink2); font-weight: 500; font-size: 15px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--soft); }
.nav a.on { background: #ffe1d4; color: var(--coral); font-weight: 600; }
.nav a.ask-m { display: none; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid #f3dccf; background: #fff; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.user-chip:hover { background: var(--soft); }
.btn-ask { padding: 10px 20px; border-radius: 999px; background: #ffe6dc; color: var(--coral); border: 1px solid #f9c7b3; font-weight: 600; font-size: 15px; transition: background .15s; white-space: nowrap; }
.btn-ask:hover, .btn-ask.on { background: #ffd6c6; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #f3dccf; background: #fff; font-size: 18px; }
.view { flex: 1; padding: 36px 0 70px; outline: none; }
.site-footer { padding: 22px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ===== Tipografi & util ===== */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.05; letter-spacing: -1px; }
.h1 { font-size: clamp(28px, 3.4vw, 40px); }
.h2 { font-size: 24px; }
.h3 { font-size: 18px; }
.lead { font-size: 18px; color: var(--ink2); line-height: 1.7; }
.muted { color: var(--muted); }
.coral { color: var(--coral); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 18px; } .mt2 { margin-top: 36px; } .mt3 { margin-top: 64px; } .mb { margin-bottom: 14px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid > * { min-width: 0; }
.eyebrow { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #ffe2d6; border: 1px solid #f9c7b3; color: var(--coral); font-size: 12.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid #fbe0d2; color: var(--coral); font-size: 14px; font-weight: 600; }
.crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; flex-wrap: wrap; }
.crumb a:hover { color: var(--coral); }

/* ===== Tombol ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 999px;
  padding: 15px 30px; font-weight: 600; font-size: 16px; background: var(--coral); color: #fff;
  transition: transform .12s, background .15s, opacity .15s; white-space: nowrap; box-shadow: 0 10px 22px rgba(242, 96, 63, .25);
}
.btn:hover { background: var(--coral-d); }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); box-shadow: none; } .btn.dark:hover { background: #24111a; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #f3dccf; box-shadow: none; }
.btn.ghost:hover { background: var(--soft); }
.btn.soft { background: #ffe6dc; color: var(--coral); box-shadow: none; } .btn.soft:hover { background: #ffd6c6; }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 18px; font-size: 13.5px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: none; display: grid; place-items: center; background: #fff1ea; color: var(--coral); transition: background .15s, transform .2s; flex-shrink: 0; }
.icon-btn:hover { background: #ffe1d4; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: #ffe6dc; color: var(--coral); font-size: 12.5px; font-weight: 600; }
.chip.dark { background: #f1e7ea; color: var(--ink); }
.chip.green { background: #e1f6ec; color: #13895a; }
.chip.white { background: rgba(255, 255, 255, .6); color: var(--ink); }

/* ===== Kartu umum ===== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: 0 6px 20px rgba(210, 110, 60, .06); }
.card.hover { transition: transform .15s, box-shadow .15s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card .lbl { font-weight: 500; font-size: 14.5px; }
.stat-card .val { color: var(--coral); font-weight: 600; font-size: 15px; }

/* ===== Beranda ===== */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 30px 0 10px; }
.hero .display .hl { color: var(--coral); }
.hero .lead { max-width: 640px; margin: 26px 0 32px; }
.fox-card {
  position: relative; border-radius: 40px; padding: 30px 36px 36px; min-height: 560px; color: #fff; display: flex; flex-direction: column;
  background: radial-gradient(circle at 15% 25%, #ff9a4a 0, transparent 35%), radial-gradient(circle at 85% 18%, #f0432e 0, transparent 35%), radial-gradient(circle at 85% 85%, #f9b24b 0, transparent 30%), #f05a3c;
  box-shadow: 0 30px 60px rgba(240, 90, 60, .28);
}
.fox-card .lbl { font-family: var(--display); font-weight: 700; font-size: 17px; opacity: .95; }
.fox-card .face { margin: 26px auto 30px; width: min(290px, 70%); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(120, 30, 10, .18); }
.fox-card .face svg { width: 74%; height: auto; }
.fox-card h3 { font-size: clamp(30px, 3.2vw, 44px); text-transform: uppercase; line-height: 1.05; margin-top: auto; }
.fox-card p { margin: 12px 0 0; opacity: .95; }
.fox-card .tag { position: absolute; top: -18px; right: -14px; background: var(--plum); color: #fff; padding: 12px 22px; border-radius: 22px; font-family: var(--display); font-weight: 700; transform: rotate(5deg); box-shadow: 0 10px 20px rgba(58, 30, 43, .25); }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 16px; }
.section-head p { color: var(--ink2); font-size: 17px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 22px; margin-top: 30px; }
.step-card { border-radius: 30px; padding: 28px; color: #fff; min-height: 270px; box-shadow: 0 18px 36px rgba(210, 110, 60, .18); transition: transform .15s; }
.step-card:hover { transform: translateY(-4px); }
.step-card .si { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); margin-bottom: 26px; }
.step-card .k { font-size: 13.5px; font-weight: 600; opacity: .85; }
.step-card h3 { font-size: 22px; margin: 4px 0 10px; }
.step-card p { margin: 0; font-size: 14.5px; opacity: .92; }
.step-card.light { color: var(--ink); } .step-card.light .si { background: rgba(255, 255, 255, .45); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature .art-card { position: relative; border-radius: 36px; aspect-ratio: 1.3; background: radial-gradient(circle at 15% 15%, #ff9a4a 0, transparent 35%), radial-gradient(circle at 80% 20%, #ef3d2b 0, transparent 30%), radial-gradient(circle at 85% 80%, #f9b24b 0, transparent 30%), #f05a3c; display: grid; place-items: center; box-shadow: var(--shadow); }
.feature .art-card .face { width: 48%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.feature .art-card .face svg { width: 74%; height: auto; }
.feature .notif { position: absolute; left: 6%; bottom: -26px; background: rgba(255, 238, 232, .96); border-radius: 22px; padding: 14px 22px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); max-width: 70%; }
.feature .notif .ni { width: 42px; height: 42px; border-radius: 50%; background: #ffd9cb; color: var(--coral); display: grid; place-items: center; flex-shrink: 0; }
.feat-list { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.feat-list .f { display: flex; gap: 18px; }
.feat-list .fi { width: 50px; height: 50px; border-radius: 16px; background: #ffe4d4; color: var(--coral); display: grid; place-items: center; flex-shrink: 0; }
.feat-list b { font-family: var(--display); font-size: 18px; display: block; }
.feat-list span { color: var(--ink2); }
.note { border: 1px solid var(--line); background: rgba(255, 255, 255, .6); border-radius: 18px; padding: 14px 20px; color: var(--ink2); font-size: 14px; }

/* ===== Daftar & kartu materi ===== */
.list { display: flex; flex-direction: column; gap: 16px; }
.item { display: flex; align-items: center; gap: 16px; border-radius: 20px; padding: 6px; margin: -6px; transition: background .15s; }
.item:hover { background: var(--soft); }
.th { width: 72px; height: 72px; border-radius: 20px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 18px rgba(242, 96, 63, .14); background: var(--soft2); position: relative; }
.th svg, .th img { width: 100%; height: 100%; object-fit: cover; }
.th .lock { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 8px; background: rgba(58, 30, 43, .85); color: #fff; display: grid; place-items: center; }
.item .t { font-weight: 500; font-size: 15px; }
.item .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bar { height: 6px; border-radius: 99px; background: #f6e7de; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--coral); border-radius: 99px; }
.mat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mat-card .cover { height: 160px; background: var(--soft2); position: relative; overflow: hidden; }
.mat-card .cover svg, .mat-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.mat-card .body { padding: 18px 20px 20px; }
.mat-card .t { font-family: var(--display); font-weight: 600; font-size: 18px; }
.empty { text-align: center; padding: 20px 20px 30px; max-width: 540px; margin: 0 auto; }
.empty p { color: var(--muted); }

/* ===== Detail materi ===== */
.mat-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: stretch; }
.mat-banner { border-radius: var(--r-xl); padding: 34px 38px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(circle at 90% 10%, #ef3d2b 0, transparent 40%), radial-gradient(circle at 10% 90%, #f9b24b 0, transparent 40%), #f05a3c; }
.mat-banner h1 { font-size: clamp(28px, 3.4vw, 42px); color: #fff; }
.mat-banner .sub { opacity: .9; margin-top: 8px; }
.mat-banner .face { position: absolute; right: -20px; bottom: -30px; width: 170px; opacity: .25; }
.btn.white { background: #fff; color: var(--ink); box-shadow: none; } .btn.white:hover { background: var(--soft); }
.usage .num { font-size: 30px; font-weight: 700; font-family: var(--display); color: var(--coral); }
.usage .body { display: flex; align-items: center; gap: 22px; margin-top: 12px; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-wrap b { position: absolute; font-size: 15px; }
.ai-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; border-radius: 20px; background: #fff; border: 1px dashed #f4b9a3; }
.ai-bar .grow b { display: block; }

/* Accordion bab (seperti contoh) */
.acc { display: flex; flex-direction: column; gap: 16px; }
.acc-item { background: #fff; border-radius: 28px; box-shadow: 0 10px 28px rgba(210, 110, 60, .1); border: 1px solid #fbe9df; overflow: hidden; }
.acc-head { display: flex; align-items: center; gap: 20px; padding: 20px 26px; cursor: pointer; user-select: none; }
.acc-head .num { width: 54px; height: 54px; border-radius: 16px; background: var(--coral); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; flex-shrink: 0; }
.acc-head .num.done { background: var(--green); }
.acc-head h3 { font-size: 20px; }
.acc-head .meta { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acc-item.open > .acc-head { border-bottom: 1px solid #fbe9df; }
.acc-item.open > .acc-head .icon-btn { transform: rotate(180deg); }
.acc-body { display: none; padding: 26px 30px 30px; }
.acc-item.open > .acc-body { display: block; }
.sum-tools { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.local-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 18px; border-radius: 18px; background: #fff6df; border: 1px solid #f7d58a; color: #6b4a00; font-size: 14px; }
.sum-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
.sum-grid.noimg { grid-template-columns: minmax(0, 1fr); }
.prose p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.side-fig { background: linear-gradient(180deg, #fff 0, #fff 60%, #ffe8da 100%); border-radius: 24px; padding: 14px; border: 1px solid #fbe9df; position: sticky; top: 110px; }
.side-fig img { border-radius: 16px; width: 100%; cursor: zoom-in; background: #fff; }
.side-fig .cap { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }
.side-fig .more-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.side-fig .more-imgs img { height: 70px; object-fit: cover; }
.subacc { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sub-item { background: #fff3ec; border-radius: 18px; overflow: hidden; }
.sub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; font-weight: 600; }
.sub-head .ic { color: var(--coral); transition: transform .2s; }
.sub-item.open .sub-head .ic { transform: rotate(180deg); }
.sub-body { display: none; padding: 0 20px 16px; color: var(--ink2); }
.sub-item.open .sub-body { display: block; }
.step-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-top: 26px; }
.step-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; transition: border-color .15s, transform .15s; }
.step-links a:hover { border-color: #f4b9a3; transform: translateY(-2px); }
.step-links .n { width: 32px; height: 32px; border-radius: 10px; background: #ffe6dc; color: var(--coral); display: grid; place-items: center; font-family: var(--display); flex-shrink: 0; }
.step-links a.done .n { background: var(--green); color: #fff; }
.step-links small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.mnemo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.mnemo { border-radius: 28px; padding: 26px 28px; color: #fff; }
.mnemo:nth-child(3n+1) { background: var(--coral); } .mnemo:nth-child(3n+2) { background: var(--plum); } .mnemo:nth-child(3n) { background: var(--orange); color: var(--ink); }
.mnemo h3 { font-size: 34px; text-transform: uppercase; }
.mnemo .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.mnemo .pills span { background: rgba(255, 255, 255, .2); padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.mnemo .pills b { font-weight: 800; }
.mnemo p { margin: 0; font-size: 14px; opacity: .95; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.kw { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; background: #fffaf7; }
.kw .term { font-weight: 600; color: var(--coral); font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kw p { margin: 6px 0 0; font-size: 14px; color: var(--ink2); }
.kw .src { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ===== Halaman langkah bab ===== */
.chapter-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.ch-side { padding: 18px; position: sticky; top: 110px; }
.ch-side .mt-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.ch-nav { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.ch-nav a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 13.5px; color: var(--ink2); align-items: flex-start; }
.ch-nav a:hover { background: var(--soft); }
.ch-nav a.on { background: #ffe6dc; color: var(--ink); font-weight: 600; }
.ch-nav .n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: #f7ece6; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ch-nav a.on .n { background: var(--coral); color: #fff; }
.ch-nav .n.done { background: var(--green); color: #fff; }
.ch-select { display: none; }
.ch-head { border-radius: var(--r-xl); padding: 26px 32px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(circle at 90% 10%, #ef3d2b 0, transparent 40%), radial-gradient(circle at 10% 90%, #f9b24b 0, transparent 40%), #f05a3c; }
.ch-head h1 { font-size: clamp(24px, 3vw, 34px); color: #fff; max-width: 80%; }
.ch-head .face { position: absolute; right: -10px; bottom: -40px; width: 150px; opacity: .25; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 26px; }
.stepper a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink2); }
.stepper a:hover { border-color: #f4b9a3; }
.stepper .n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: #f7ece6; font-family: var(--display); font-weight: 700; }
.stepper a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper a.on .n { background: var(--coral); color: #fff; }
.stepper a.done .n { background: var(--green); color: #fff; }
.stepper small { display: block; font-weight: 400; font-size: 11.5px; opacity: .7; }
.next-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #ffe9de; border-radius: var(--r-lg); padding: 22px 26px; margin-top: 34px; flex-wrap: wrap; }
.next-cta b { display: block; font-family: var(--display); font-size: 19px; }
.core { background: var(--coral); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; position: relative; overflow: hidden; margin-bottom: 24px; }
.core .k { font-size: 12px; font-weight: 600; letter-spacing: .6px; opacity: .85; text-transform: uppercase; }
.core p { margin: 6px 0 0; font-weight: 500; font-size: 17px; line-height: 1.55; position: relative; }
.core::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
mark { background: linear-gradient(transparent 55%, #ffd8b8 55%); color: inherit; font-weight: 600; padding: 0 1px; }
.core mark { background: rgba(255, 255, 255, .22); border-radius: 6px; padding: 0 4px; }

/* Peta konsep (gambar penjelas tanpa AI) */
.cmap { position: relative; height: 400px; border-radius: 22px; background: radial-gradient(circle at 50% 50%, #fff 0, #fff7f0 60%, #ffeede 100%); border: 1px solid var(--line); overflow: hidden; }
.cmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cnode { position: absolute; transform: translate(-50%, -50%); max-width: 140px; padding: 7px 13px; border-radius: 16px; border: none; background: #fff; color: var(--ink); font-weight: 600; font-size: 12.5px; line-height: 1.3; text-align: center; box-shadow: 0 6px 16px rgba(186, 96, 40, .14); border-bottom: 4px solid var(--c, var(--coral)); transition: transform .15s; }
.cnode:hover, .cnode.on { transform: translate(-50%, -50%) scale(1.08); }
.cnode.on { background: var(--c, var(--coral)); color: #fff; }
.cnode.center { background: var(--ink); color: #fff; max-width: 180px; font-size: 13.5px; padding: 13px 17px; border-bottom: none; border-radius: 22px; cursor: default; }
.cmap-info { margin-top: 10px; padding: 12px 16px; border-radius: 16px; background: var(--soft); font-size: 13.5px; }
.cmap-small .cmap { height: 300px; }
.cmap-small .cnode { max-width: 96px; font-size: 11px; padding: 5px 8px; }
.cmap-small .cnode.center { max-width: 110px; font-size: 11.5px; padding: 9px 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gallery img { width: 100%; height: 150px; object-fit: cover; }
.gallery figcaption { font-size: 11.5px; padding: 6px 10px; color: var(--muted); }
.fulltext { font-size: 14.5px; color: var(--ink2); }
.fulltext h4 { margin: 18px 0 6px; color: var(--ink); font-size: 15px; }
.fulltext p { margin: 0 0 10px; }
.fulltext ul { margin: 0 0 10px; padding-left: 20px; }
.fulltext img { border-radius: 14px; margin: 10px 0; max-height: 420px; }
details.more summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary .ic { transform: rotate(180deg); }

/* ===== Kartu hafalan ===== */
.study { max-width: 660px; margin: 0 auto; }
.flash-stage { perspective: 1400px; height: 340px; margin: 6px 0 18px; }
.flash { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2, .7, .2, 1); cursor: pointer; }
.flash.on { transform: rotateY(180deg); }
.flash .f, .flash .b { position: absolute; inset: 0; border-radius: 32px; padding: 30px; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.flash .f { background: radial-gradient(circle at 85% 15%, #ef3d2b 0, transparent 40%), radial-gradient(circle at 15% 85%, #f9b24b 0, transparent 40%), #f05a3c; color: #fff; box-shadow: 0 18px 34px rgba(242, 96, 63, .28); }
.flash .f .term { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.25; }
.flash .f .hint { position: absolute; bottom: 22px; font-size: 13px; opacity: .85; }
.flash .b { background: #fff; border: 1px solid var(--line); transform: rotateY(180deg); box-shadow: var(--shadow); overflow-y: auto; justify-content: flex-start; }
.flash .b .term { color: var(--coral); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.flash .b p { font-size: 17px; margin: auto 0; line-height: 1.6; }
.flash .b small { color: var(--muted); font-size: 11.5px; margin-top: 10px; }
/* kartu hafalan tanpa 3D: tinggi mengikuti isi, jadi teks panjang tetap bisa dibaca/digulir */
.fc { min-height: 300px; border-radius: 32px; margin-bottom: 18px; cursor: pointer; outline: none; transition: transform .16s ease-in, box-shadow .2s; user-select: none; display: flex; }
.fc.turn { transform: scaleX(.02); }
.fc:hover { box-shadow: 0 22px 40px rgba(242, 96, 63, .22); }
.fc-front, .fc-back { flex: 1; border-radius: 32px; padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; }
.fc-front { background: radial-gradient(circle at 85% 15%, #ef3d2b 0, transparent 40%), radial-gradient(circle at 15% 85%, #f9b24b 0, transparent 40%), #f05a3c; color: #fff; box-shadow: 0 18px 34px rgba(242, 96, 63, .28); }
.fc-front .fc-term { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; line-height: 1.25; }
.fc-hint { margin-top: 22px; font-size: 13px; opacity: .9; }
.fc-back { background: #fff; border: 2px solid #f8d4c2; box-shadow: var(--shadow); }
.fc-back .fc-term { color: var(--coral); font-weight: 700; font-size: 15px; margin-bottom: 12px; font-family: var(--display); }
.fc-back p { font-size: 18px; line-height: 1.65; margin: 0 0 14px; }
.fc-back small { color: var(--muted); font-size: 12px; }
.boxes { display: flex; gap: 6px; }
.boxes i { width: 26px; height: 6px; border-radius: 99px; background: #f6e7de; }
.boxes i.on { background: var(--orange); }
.grade { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grade button { border: none; border-radius: 18px; padding: 13px 6px; font-weight: 600; font-size: 13.5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.grade .g0 { background: #fde7e7; color: var(--red); } .grade .g1 { background: #fff2d6; color: #b97a00; } .grade .g2 { background: #e1f6ec; color: #13895a; }
.grade span { font-size: 20px; }

/* ===== Quiz ===== */
.progress { height: 8px; border-radius: 99px; background: #f6e7de; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--coral); transition: width .35s; }
.question { font-size: 19px; font-weight: 600; line-height: 1.5; }
.question blockquote { margin: 12px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--soft); font-weight: 500; font-size: 15.5px; color: var(--ink2); }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; transition: border-color .15s, background .15s; }
.opt .l { flex-shrink: 0; width: 28px; height: 28px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--coral); }
.opt:hover:not(:disabled) { border-color: var(--orange); }
.opt:disabled { cursor: default; }
.opt.ok { border-color: var(--green); background: #effaf4; } .opt.ok .l { background: var(--green); color: #fff; }
.opt.bad { border-color: var(--red); background: #fff1f1; } .opt.bad .l { background: var(--red); color: #fff; }
.explain { border-radius: 18px; padding: 14px 16px; background: var(--soft); font-size: 14px; }
.explain.ok { background: #effaf4; } .explain.bad { background: #fff1f1; }
.score-big { font-size: 34px; font-weight: 700; color: var(--coral); font-family: var(--display); }

/* ===== Game ===== */
.game-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.game-pick button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r-lg); padding: 20px; display: flex; gap: 16px; align-items: center; transition: border-color .15s, transform .15s; }
.game-pick button:hover { border-color: var(--orange); transform: translateY(-2px); }
.game-pick button.on { border-color: var(--coral); background: var(--soft); }
.game-pick .gi { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.game-pick b { display: block; font-size: 16px; font-family: var(--display); }
.game-pick span { font-size: 13px; color: var(--muted); }
.game-pick { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.game-over, .blitz-start { text-align: center; padding: 30px 10px; }
.go-ic { font-size: 64px; line-height: 1; margin-bottom: 10px; animation: bounce 1s infinite alternate; }
@keyframes bounce { to { transform: translateY(-10px); } }
/* Tangkap Istilah */
.arena-hud { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.arena-hud span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.arena-q { margin: 14px 0; padding: 16px 20px; border-radius: 20px; background: var(--plum); color: #fff; font-size: 16px; text-align: center; min-height: 60px; }
.arena { position: relative; height: 430px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #fff4ec 0, #ffe2cf 100%); border: 1px solid #f8d4c2; touch-action: manipulation; }
.arena.shake { animation: shake .35s; }
.arena-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: repeating-linear-gradient(135deg, #f9a24b 0 14px, #f7b56e 14px 28px); }
.drop-item { position: absolute; top: -50px; padding: 10px 18px; border: none; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px rgba(186, 96, 40, .25); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; transition: transform .12s, background .2s; }
.drop-item:hover { transform: scale(1.08); background: #ffe6dc; }
.drop-item.caught { background: var(--green); color: #fff; transform: scale(1.25); }
.drop-item.wrong { background: var(--red); color: #fff; }
.pop { position: absolute; font-weight: 800; font-size: 18px; pointer-events: none; animation: popup .9s ease-out forwards; white-space: nowrap; z-index: 3; }
.pop.good { color: #13895a; } .pop.bad { color: var(--red); }
@keyframes popup { to { transform: translateY(-50px); opacity: 0; } }
/* Seret & Cocokkan */
.chip-tray { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; border-radius: 22px; background: #fff4ec; border: 1px dashed #f4b9a3; min-height: 64px; position: sticky; top: 96px; z-index: 5; }
.dchip { border: none; border-radius: 999px; padding: 10px 18px; background: var(--coral); color: #fff; font-weight: 700; font-size: 14px; cursor: grab; touch-action: none; box-shadow: 0 6px 14px rgba(242, 96, 63, .25); transition: transform .15s, opacity .15s; }
.dchip.sel { outline: 3px solid var(--plum); transform: scale(1.06); }
.dchip.lifted { opacity: .35; }
.dchip.bad { animation: shake .35s; background: var(--red); }
.dchip.ghost { position: fixed; z-index: 100; pointer-events: none; transform: rotate(-3deg) scale(1.08); cursor: grabbing; }
.dz-list { display: grid; gap: 12px; margin-top: 16px; }
.dz { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 20px; background: #fff; border: 2px solid var(--line); transition: border-color .15s, background .15s, transform .15s; cursor: pointer; }
.dz-slot { min-height: 44px; border-radius: 14px; border: 2px dashed #e8c9b8; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 10px; text-align: center; }
.dz-def { font-size: 14.5px; color: var(--ink2); }
.dz.over { border-color: var(--orange); background: #fff8f2; transform: scale(1.01); }
.dz.ok { border-color: var(--green); background: #effaf4; cursor: default; }
.dz.ok .dz-slot { border: none; background: var(--green); color: #fff; }
.dz.bad { border-color: var(--red); animation: shake .35s; }
/* Kuis Kilat */
.blitz { max-width: 720px; margin: 0 auto; }
.blitz-q { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); font-size: 17px; font-weight: 500; text-align: center; min-height: 90px; display: grid; place-items: center; }
.blitz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bopt { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; text-align: left; transition: transform .1s, border-color .15s; }
.bopt:hover { border-color: var(--orange); transform: translateY(-2px); }
.bopt .l { width: 28px; height: 28px; border-radius: 9px; background: var(--soft); color: var(--coral); display: grid; place-items: center; flex-shrink: 0; }
.bopt.ok { border-color: var(--green); background: #effaf4; } .bopt.bad { border-color: var(--red); background: #fff1f1; }
@media (max-width: 640px) { .dz { grid-template-columns: 1fr; } .blitz-opts { grid-template-columns: 1fr; } .arena { height: 380px; } .chip-tray { top: 76px; } }
.scramble { max-width: 720px; margin: 0 auto; text-align: center; }
.slots, .tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.slot, .tile { width: 46px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; font-weight: 700; text-transform: uppercase; font-family: var(--display); }
.slot { border: 2px dashed #e8c9b8; background: #fff; cursor: pointer; }
.slot.filled { border-style: solid; border-color: var(--orange); background: var(--soft); }
.slot.space { width: 18px; border: none; background: none; cursor: default; }
.slots.ok .slot.filled { border-color: var(--green); background: #effaf4; color: #13895a; }
.slots.bad { animation: shake .35s; }
.tile { border: none; background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-d); transition: transform .1s; }
.tile:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-d); }
.tile.used { visibility: hidden; }

/* ===== Upload ===== */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.drop { display: block; border: 2px dashed #f4b9a3; border-radius: 30px; padding: 36px 24px; text-align: center; cursor: pointer; background: #fff; transition: background .15s, transform .15s; }
.drop:hover { background: var(--soft); }
.drop.over { background: var(--soft2); transform: scale(1.01); }
.drop input { display: none; }
.drop .fmt { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.field { width: 100%; border: 1px solid #f0dcd0; border-radius: 16px; padding: 12px 16px; background: #fff; outline: none; }
.field:focus { border-color: var(--orange); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .field { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-size: 17px; line-height: 1; }
.pw-eye:hover, .pw-eye:focus-visible { background: #fff1e8; }
textarea.field { min-height: 160px; resize: vertical; }
.steps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.steps div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.steps div.on { color: var(--ink); font-weight: 500; }
.steps div.ok { color: var(--green); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--coral); animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Tanya Clarissa ===== */
.chat { display: flex; flex-direction: column; height: min(68vh, 680px); padding: 0; overflow: hidden; }
.chat-top { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 20px; white-space: pre-wrap; }
.msg.bot { background: var(--soft); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--coral); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg .src { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; white-space: normal; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; }
.chips button { border: 1px solid #f3dccf; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.chips button:hover { background: var(--soft); }

/* ===== Layar PIN ===== */
.lock-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.lock-top { position: relative; min-height: 460px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.lock-top .blobs { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock-top .fox { position: relative; }
.lock-body { padding: 40px 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.lock-body h2 { font-size: 24px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 18px 0 8px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #e2d3cc; transition: background .15s, border-color .15s; }
.pin-dots i.on { background: var(--coral); border-color: var(--coral); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; max-width: 270px; margin: 8px auto 18px; }
.keypad button { height: 58px; border: none; background: transparent; font-size: 22px; font-weight: 500; border-radius: 18px; display: grid; place-items: center; }
.keypad button:hover { background: var(--soft); }

/* ===== Progres ===== */
.week { display: flex; align-items: flex-end; gap: 12px; height: 140px; }
.week div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week i { width: 100%; max-width: 36px; border-radius: 10px; background: #ffe6dc; min-height: 6px; }
.week i.on { background: var(--coral); }
.week span { font-size: 11.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats b { font-size: 28px; font-weight: 700; display: block; font-family: var(--display); }
.stats span { font-size: 13px; color: var(--muted); }

/* ===== Modal, toast ===== */
.sheet-bg { position: fixed; inset: 0; background: rgba(58, 30, 43, .4); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
.sheet-bg[hidden] { display: none; }
.sheet { background: #fff; width: 100%; max-width: 620px; border-radius: 28px; padding: 26px; max-height: 90vh; overflow-y: auto; animation: up .25s ease-out; }
.sheet img.full { width: 100%; border-radius: 18px; background: #fff; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast-wrap { position: fixed; left: 0; right: 0; top: 96px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: up .25s; max-width: 90vw; }
.confetti { position: fixed; top: -12px; width: 9px; height: 13px; z-index: 90; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(680deg); } }

/* ===== Pencapaian (di Beranda) ===== */
#pencapaian { scroll-margin-top: 110px; }
.brag-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; border-radius: var(--r-xl); padding: 30px 34px; color: #fff;
  background: radial-gradient(circle at 90% 10%, #ef3d2b 0, transparent 40%), radial-gradient(circle at 10% 90%, #f9b24b 0, transparent 45%), #f05a3c; box-shadow: var(--shadow); }
.brag-hero .k { font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; opacity: .9; }
.brag-hero .big { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 58px); line-height: 1.1; margin: 6px 0 14px; }
.bh-level { background: rgba(255, 255, 255, .16); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.bh-level .lv-ic { font-size: 42px; line-height: 1; }
.bh-level b { font-family: var(--display); font-size: 22px; }
.bh-level small { opacity: .9; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bdg { text-align: center; padding: 12px 8px; border-radius: 18px; background: #f7f1ee; filter: grayscale(1); opacity: .5; transition: transform .15s; }
.bdg span { font-size: 28px; display: block; }
.bdg b { display: block; font-size: 12.5px; margin-top: 4px; }
.bdg small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.bdg.ok { filter: none; opacity: 1; background: #fff4ec; border: 1px solid #f8d4c2; }
.bdg.ok:hover { transform: translateY(-3px) rotate(-2deg); }
.brag-preview { display: grid; place-items: center; min-height: 240px; background: #f7f1ee; border-radius: 20px; overflow: hidden; }
.brag-preview img { width: 100%; max-width: 380px; border-radius: 16px; box-shadow: var(--shadow); margin: 14px auto; }
@media (max-width: 820px) { .brag-hero { grid-template-columns: 1fr; padding: 24px; } .badge-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Animasi maskot Clarissa ===== */
.fox-anim { overflow: visible; animation: fx-float 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); cursor: pointer; }
.fox-anim .fx-head, .fox-anim .fx-ear-l, .fox-anim .fx-ear-r, .fox-anim .fx-eye, .fox-anim .fx-tail, .fox-anim .fx-arm,
.fox-anim .fx-cheek, .fox-anim .fx-nose, .fox-anim .fx-wink, .fox-anim .fx-glint { transform-box: fill-box; }
.fox-anim .fx-head { transform-origin: 50% 90%; animation: fx-nod 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.fox-anim .fx-ear-l { transform-origin: 70% 95%; animation: fx-ear-l 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.fox-anim .fx-ear-r { transform-origin: 30% 95%; animation: fx-ear-r 3.6s ease-in-out infinite; animation-delay: calc(var(--d, 0s) - .25s); }
.fox-anim .fx-eye { transform-origin: 50% 50%; animation: fx-blink 4.2s infinite; animation-delay: var(--d, 0s); }
.fox-anim .fx-wink { transform-origin: 50% 50%; animation: fx-wink 4.2s infinite; animation-delay: var(--d, 0s); }
.fox-anim .fx-cheek { animation: fx-cheek 2.6s ease-in-out infinite; }
.fox-anim .fx-nose { transform-origin: 50% 50%; animation: fx-sniff 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.fox-anim .fx-tail { transform-origin: 30% 0%; animation: fx-sway 2.4s ease-in-out infinite; }
.fox-anim .fx-arm { transform-origin: 50% 100%; animation: fx-wave 1.8s ease-in-out infinite; }
.fox-anim .fx-glint { transform-origin: 50% 50%; animation: fx-glint 1.8s ease-in-out infinite; }
/* disentuh kursor / diklik: melompat senang */
.fox-anim:hover, :hover > .fox-anim:not(.happy), .fox-anim.happy { animation: fx-hop .7s cubic-bezier(.3, 1.6, .5, 1) 1; }
.fox-anim:hover .fx-ear-l, .fox-anim.happy .fx-ear-l { animation: fx-ear-l .35s ease-in-out 2; }
.fox-anim:hover .fx-ear-r, .fox-anim.happy .fx-ear-r { animation: fx-ear-r .35s ease-in-out 2; }
.fox-anim.happy .fx-cheek { animation: fx-blush .9s ease-in-out 1; }
.fox-anim.happy .fx-arm { animation: fx-wave .3s ease-in-out 3; }

@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
@keyframes fx-nod { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes fx-ear-l { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(4deg); } }
@keyframes fx-ear-r { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-4deg); } }
@keyframes fx-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes fx-wink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(1.6); } }
@keyframes fx-cheek { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes fx-blush { 50% { opacity: 1; transform: scale(1.35); } }
@keyframes fx-sniff { 0%, 86%, 100% { transform: scale(1); } 89% { transform: scale(1.15, .9); } 92% { transform: scale(1); } 95% { transform: scale(1.15, .9); } }
@keyframes fx-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes fx-wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes fx-glint { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes fx-hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14%) scale(1.04, .96); } 60% { transform: translateY(0) scale(1.06, .92); } 80% { transform: translateY(-3%); } 100% { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fox-anim, .fox-anim * { animation: none !important; }
}

/* ===== Responsif ===== */
@media (max-width: 1080px) {
  .nav a { padding: 9px 13px; }
  .user-chip { display: none; }
  .hero { grid-template-columns: 1fr; }
  .fox-card { min-height: 460px; max-width: 560px; }
  .feature { grid-template-columns: 1fr; }
  .mat-head, .layout-side, .chapter-layout { grid-template-columns: 1fr; }
  .ch-side { display: none; }
  .ch-select { display: block; margin-bottom: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-header { padding: 10px 12px 0; }
  .menu-btn { display: block; }
  .btn-ask { display: none; }
  .nav { position: absolute; top: 74px; left: 12px; right: 12px; flex-direction: column; background: #fff; border-radius: 24px; padding: 10px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a.ask-m { display: block; }
  .header-pill { justify-content: space-between; position: relative; }
  .container { padding: 0 16px; }
  .view { padding-top: 24px; }
  .sum-grid { grid-template-columns: 1fr; }
  .side-fig { position: static; max-width: 420px; }
  .acc-head { padding: 16px 18px; gap: 14px; }
  .acc-head .num { width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
  .acc-head h3 { font-size: 17px; }
  .acc-body { padding: 20px 18px 22px; }
  .prose p { font-size: 15.5px; }
  .stepper { grid-template-columns: 1fr 1fr; }
  .lock-wrap { grid-template-columns: 1fr; }
  .lock-top { min-height: 280px; }
  .lock-top .fox svg { width: 220px; height: 220px; }
  .cmap { height: 340px; }
  .cnode { max-width: 96px; font-size: 11px; padding: 5px 8px; }
  .msg { max-width: 92%; }
}
@media (max-width: 420px) {
  .slot, .tile { width: 38px; height: 46px; font-size: 17px; }
  .fox-card { padding: 24px; min-height: 400px; }
}

/* ---------- Akun: halaman masuk ---------- */
.auth-mode .nav, .auth-mode .header-right, .auth-mode .menu-btn { display: none !important; }
.auth-body { text-align: left; }
.auth-body h2 { font-size: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { margin-top: 4px; }
.auth-form .btn[type="submit"] { margin-top: 8px; }
.cred { border: 1px dashed #f4b9a3; background: #fff7f1; border-radius: 18px; padding: 6px 18px; }
.cred div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cred div:last-child { border-bottom: none; }
.cred span { color: var(--muted); font-size: 13.5px; }
.cred b { font-family: ui-monospace, Consolas, monospace; font-size: 15px; word-break: break-all; }

/* ---------- Backend (admin) ---------- */
.adm-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.adm-tabs a { padding: 9px 22px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: var(--ink2); white-space: nowrap; }
.adm-tabs a:hover { background: var(--soft); }
.adm-tabs a.on { background: var(--coral); color: #fff; }
.adm-ava { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); flex-shrink: 0; }
.adm-table { padding: 6px 0; }
.adm-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr 1.4fr 1.3fr 1fr auto; gap: 14px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.adm-row:last-child { border-bottom: none; }
.adm-row.off { opacity: .55; }
.adm-head { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; padding-top: 10px; padding-bottom: 10px; }
.adm-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.adm-mini div { background: var(--soft); border-radius: 14px; padding: 10px; text-align: center; }
.adm-mini b { display: block; font-family: var(--display); font-size: 18px; }
.adm-mini span { font-size: 11.5px; color: var(--muted); }
.switch-row { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 46px; height: 26px; border-radius: 99px; background: #ead9cf; position: relative; flex-shrink: 0; transition: background .2s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--coral); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 860px) {
  .adm-head { display: none; }
  .adm-row { grid-template-columns: 1fr 1fr; padding: 16px 18px; gap: 10px 14px; }
  .adm-row > span:first-child { grid-column: 1 / -1; }
  .adm-row [data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
  .adm-act { grid-column: 1 / -1; }
  .adm-act .btn { width: 100%; }
  .adm-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) { .auth-wrap .lock-top { min-height: 200px; } .auth-wrap .lock-top .fox svg { width: 170px; height: 170px; } }

/* Rubah bicara di halaman masuk */
.auth-wrap .lock-top .fox { background: none; border: none; padding: 0; cursor: pointer; }
.fox-talk { white-space: normal; overflow-wrap: anywhere; position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: max-content; max-width: min(84%, 340px); min-height: 52px; background: #fff; color: var(--ink); border-radius: 22px; padding: 14px 20px; font-weight: 500; font-size: 15px; line-height: 1.45; text-align: center; box-shadow: 0 12px 30px rgba(120, 40, 10, .22); }
.fox-talk::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%) rotate(45deg); width: 20px; height: 20px; background: #fff; border-radius: 4px; }
.fox-talk.pop { animation: talkPop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes talkPop { from { transform: translateX(-50%) scale(.85); opacity: .4; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.auth-wrap .lock-top { min-height: 560px; }
@media (max-width: 760px) { .auth-wrap .lock-top { min-height: 400px; } .auth-wrap .lock-top .fox svg { width: 260px; height: 260px; } .fox-talk { top: 18px; font-size: 14px; padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .fox-talk.pop { animation: none; } }
/* Mulut rubah: senyum biasa, berganti mulut terbuka yang bergerak saat bicara */
.fx-mouth { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.fox-anim.talking .fx-smile { opacity: 0; }
.fox-anim.talking .fx-mouth { opacity: 1; animation: foxMouth .16s ease-in-out infinite alternate; }
@keyframes foxMouth { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* Ringkasan berbentuk poin */
.pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pts li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.pts li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.pts li b { color: var(--ink); }
.sub-body .pts li { font-size: 15px; color: var(--ink2); }
.sub-body .pts li::before { background: var(--orange); }
.sub-n { margin-left: auto; margin-right: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Gambar dari file materi di dalam subbagian */
.sub-body.has-fig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 18px; align-items: start; }
.sub-figs { display: flex; flex-direction: column; gap: 10px; }
.sub-figs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.sub-figs img { width: 100%; max-height: 240px; object-fit: contain; border-radius: 8px; cursor: zoom-in; display: block; background: #fff; }
.sub-figs figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 700px) { .sub-body.has-fig { grid-template-columns: 1fr; } }

/* Quiz bertingkat */
.lv-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lv { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 14px; border-radius: var(--r-lg); border: 2px solid var(--line); background: #fff; transition: transform .15s, border-color .15s, box-shadow .15s; }
.lv:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lv:disabled { opacity: .45; pointer-events: none; }
.lv .lv-ic { font-size: 34px; line-height: 1.2; }
.lv b { font-family: var(--display); font-size: 20px; }
.lv small { color: var(--muted); font-size: 13px; }
.lv .lv-meta { margin-top: 8px; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--ink2); }
.lv-mudah:hover { border-color: var(--green); } .lv-sedang:hover { border-color: var(--orange); } .lv-sulit:hover { border-color: var(--coral); }
.lv-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-right: 6px; }
.lv-tag.lv-mudah { background: #e1f6ec; color: #13895a; } .lv-tag.lv-sedang { background: #fff2d6; color: #b26a00; } .lv-tag.lv-sulit { background: #ffe6dc; color: var(--coral); }
@media (max-width: 640px) { .lv-pick { grid-template-columns: 1fr; } .lv { flex-direction: row; text-align: left; flex-wrap: wrap; column-gap: 12px; } .lv .lv-meta { margin-top: 0; margin-left: auto; } }

/* ---------- Game: Selamatkan Clarissa ---------- */
.hang { max-width: 680px; margin: 0 auto; }
.hang-stage { position: relative; height: 210px; margin-top: 10px; border-radius: 22px; background: linear-gradient(#e7f3fd, #fff4ec); overflow: hidden; }
.balloons { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 6px; }
.balloon { width: 34px; height: 42px; border-radius: 50% 50% 46% 46%; background: var(--c); position: relative; animation: bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .08); }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 64px; background: #9a8a90; transform: translateX(-50%) rotate(calc((var(--i) - 2.5) * -6deg)); transform-origin: top; }
.balloon.pop { animation: popB .35s forwards; }
.balloon.pop::after { display: none; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes popB { 40% { transform: scale(1.3); opacity: .7; } 100% { transform: scale(0); opacity: 0; } }
.hang-fox { position: absolute; left: 50%; top: 112px; transform: translateX(-50%); transition: top .6s cubic-bezier(.5, 1.6, .5, 1); }
.hang-fox.fall { top: 150px; animation: wobble .5s 2; }
.hang-fox.yay { animation: hop .5s 2; }
@keyframes hop { 50% { transform: translate(-50%, -14px); } }
@keyframes wobble { 25% { transform: translateX(-54%) rotate(-8deg); } 75% { transform: translateX(-46%) rotate(8deg); } }
.hang-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hg-l { width: 34px; height: 44px; border-bottom: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 600; }
.hg-l.on { color: var(--green); border-color: var(--green); animation: pop .25s; }
.hg-l.miss { color: var(--red); }
.hg-l.sep { border: none; width: 16px; }
.keys { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; }
.key { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; }
.key:hover { background: var(--soft); }
.key.ok { background: #e1f6ec; color: #13895a; border-color: #bfe8d3; }
.key.no { background: #f6eef0; color: #b9a6ac; text-decoration: line-through; }
@keyframes pop { 50% { transform: scale(1.25); } }
@media (max-width: 640px) { .keys { grid-template-columns: repeat(7, minmax(0, 1fr)); } .hg-l { width: 26px; height: 38px; font-size: 20px; } }

/* ---------- Game: Benar atau Salah Kilat ---------- */
.swipe { max-width: 560px; margin: 0 auto; }
.swipe-stage { position: relative; height: 290px; display: grid; place-items: center; }
.swipe-hint { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 14px; opacity: .45; }
.swipe-hint.l { left: 0; color: var(--red); } .swipe-hint.r { right: 0; color: var(--green); }
.swipe-card { width: min(360px, 78%); min-height: 230px; padding: 24px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); border: 2px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: center; touch-action: none; user-select: none; cursor: grab; transition: transform .26s, opacity .26s, border-color .15s; opacity: 0; transform: scale(.92); z-index: 1; }
.swipe-card.in { opacity: 1; transform: scale(1); }
.swipe-card.lean-r { border-color: var(--green); } .swipe-card.lean-l { border-color: var(--red); }
.swipe-card.out-r { transform: translateX(140%) rotate(18deg) !important; opacity: 0; }
.swipe-card.out-l { transform: translateX(-140%) rotate(-18deg) !important; opacity: 0; }
.swipe-card.good { background: #effaf4; } .swipe-card.bad { background: #fff1f1; }
.sc-term { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--coral); }
.sc-eq { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.sc-def { font-size: 15px; line-height: 1.55; color: var(--ink); }
.swipe-btn { min-width: 130px; }
.swipe-btn.no { color: var(--red); border-color: #f3c6c6; }

/* ---------- Game: Urutkan Hafalan ---------- */
.order { max-width: 640px; margin: 0 auto; }
.ord-slots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ord-slots li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 14px; border-radius: 14px; border: 2px dashed #f0d6c8; background: #fffaf6; }
.ord-slots li.on { border-style: solid; border-color: #bfe8d3; background: #effaf4; animation: pop .25s; }
.ord-slots .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--coral); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.ord-slots li.on .n { background: var(--green); color: #fff; }
.ord-tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ord-tile { padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 500; box-shadow: 0 3px 0 #f0dcd0; transition: transform .12s; }
.ord-tile:hover { transform: translateY(-2px); }
.ord-tile.shake { animation: shake .35s; border-color: var(--red); }
@media (prefers-reduced-motion: reduce) { .balloon, .hang-fox, .hg-l.on, .ord-slots li.on { animation: none !important; } }

/* ---------- Ringkasan yang lebih ramah ---------- */
.mission { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-lg); background: linear-gradient(120deg, #fff 0, #fff4ec 100%); border: 1px solid var(--line); margin-bottom: 14px; }
.m-fox { flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; background: #ffe6dc; display: grid; place-items: center; overflow: hidden; }
.m-hi { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.35; }
.m-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.m-stats span { font-size: 12.5px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }

.read-bar { position: sticky; top: 92px; z-index: 20; margin-bottom: 18px; padding: 10px 16px 12px; border-radius: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(210, 110, 60, .08); }
.rb-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.rb-msg { font-weight: 500; color: var(--ink); }
.rb-top b { color: var(--coral); white-space: nowrap; }
.rb-track { height: 8px; border-radius: 99px; background: #f6e7de; margin-top: 8px; overflow: hidden; }
.rb-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--coral)); transition: width .5s cubic-bezier(.3, 1.4, .5, 1); }

/* "Intinya" sebagai balon kata Clarissa */
.core.bubble { border-radius: 26px 26px 26px 8px; background: linear-gradient(120deg, var(--coral), #f58a4b); box-shadow: 0 10px 26px rgba(242, 96, 63, .25); }
.core.bubble p { font-size: 18px; }

.sum-card { padding-top: 22px; }
.sec-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-title .st-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: #fff3ec; flex-shrink: 0; }
.sec-title h3 { margin: 0; font-family: var(--display); font-size: 20px; }
.sec-title small { color: var(--muted); font-size: 13px; }

/* poin penting: kartu bernomor berwarna */
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.kp { --c1: #fff3ec; --c2: #f2603f; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--c1); line-height: 1.55; font-size: 15px; color: var(--ink); transition: transform .15s; }
.kp:hover { transform: translateY(-2px); }
.kp[style*="--k:1"] { --c1: #fff6df; --c2: #e39b12; } .kp[style*="--k:2"] { --c1: #e9f7ef; --c2: #2bb673; }
.kp[style*="--k:3"] { --c1: #eaf3fb; --c2: #4a90c2; } .kp[style*="--k:4"] { --c1: #fbeef3; --c2: #e86a8b; }
.kp-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--c2); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; margin-top: 1px; }

/* pelajari per bagian: langkah bernomor */
.steps-acc .sub-item { --c2: #f2603f; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c2); transition: border-color .2s, background .2s; }
.steps-acc .sub-item[style*="--k:1"] { --c2: #f9a24b; } .steps-acc .sub-item[style*="--k:2"] { --c2: #2bb673; }
.steps-acc .sub-item[style*="--k:3"] { --c2: #4a90c2; } .steps-acc .sub-item[style*="--k:4"] { --c2: #e86a8b; }
.steps-acc .sub-item.open { background: #fffaf6; box-shadow: 0 8px 22px rgba(210, 110, 60, .08); }
.steps-acc .sub-head { justify-content: flex-start; }
.sec-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c2); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; }
.steps-acc .sub-item.done { border-left-color: var(--green); }
.steps-acc .sub-item.done .sec-n { background: var(--green); animation: pop .3s; }
.steps-acc .sub-item.done .sub-head .grow { color: var(--ink2); }
.got { margin-top: 14px; background: #e1f6ec; color: #13895a; box-shadow: none; }
.got:hover { background: #cdeedd; }
.sub-item.done .got { background: #fff; color: var(--muted); border: 1px solid var(--line); }

.read-done { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: #effaf4; border: 1px solid #bfe8d3; }
.read-done > span { font-size: 30px; }
.read-done small { display: block; color: var(--muted); }
.read-done[hidden] { display: none; }
@media (max-width: 640px) { .mission { padding: 14px; } .m-fox { width: 56px; height: 56px; } .m-hi { font-size: 16px; } .read-bar { top: 80px; } .read-done { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .rb-track i, .kp { transition: none; } .steps-acc .sub-item.done .sec-n { animation: none; } }

/* ---------- Foto profil & status online ---------- */
.ava { --s: 40px; position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: var(--s); height: var(--s); border-radius: 50%; font-family: var(--display); font-weight: 600; font-size: calc(var(--s) * .42); color: var(--ink); }
.ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ava.is-on::after, .ava.is-off::after { content: ""; position: absolute; right: 0; bottom: 0; width: max(10px, calc(var(--s) * .26)); height: max(10px, calc(var(--s) * .26)); border-radius: 50%; border: 2px solid #fff; background: #c9bcc1; }
.ava.is-on::after { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: onpulse 2s infinite; }
@keyframes onpulse { 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.nav-badge { position: relative; }
.nav-badge[data-badge]:not([data-badge=""])::after { content: attr(data-badge); position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Halaman Teman ---------- */
.fr-hero { display: flex; gap: 20px; align-items: center; padding: 22px 26px; border-radius: var(--r-xl); background: linear-gradient(120deg, #fff 0, #ffeadf 100%); border: 1px solid var(--line); }
.fr-ava { position: relative; border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.fr-ava .ava { box-shadow: 0 6px 18px rgba(210, 110, 60, .2); }
.fr-ava .cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.fr-ava.sm .cam { width: 24px; height: 24px; font-size: 12px; }
.id-chip { border: none; cursor: pointer; font-family: ui-monospace, Consolas, monospace; }
.dot-n { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
.adm-tabs a.on .dot-n { background: #fff; }
.fr-row { display: flex; align-items: center; gap: 12px; }
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.fr-card { padding: 18px 20px; }
.fr-card.on { border-color: #bfe8d3; }
.fr-status { color: var(--ink2); line-height: 1.5; }
.fr-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fr-stats span { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--ink2); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; flex-shrink: 0; }
.icon-btn:hover { background: var(--soft); }
.cheer-list { display: flex; flex-direction: column; gap: 10px; }
.cheer { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; }
.cheer.new { background: #fff6df; }
.cheer-emo { font-size: 20px; }
.stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.stk { font-size: 26px; padding: 8px 0; border-radius: 14px; border: 2px solid var(--line); background: #fff; transition: transform .12s; }
.stk:hover { transform: scale(1.08); }
.stk.on { border-color: var(--coral); background: #fff3ec; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.seg button { flex: 1; border: none; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--ink); color: #fff; }

/* ---------- Peringkat ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; text-align: center; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pod b { font-size: 15px; max-width: 100%; }
.pod > span { font-size: 13px; color: var(--muted); }
.pod-ava { position: relative; }
.pod-ava .medal { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 24px; }
.pod-bar { width: 100%; margin-top: 10px; border-radius: 16px 16px 0 0; display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 700; color: #fff; }
.pod.p1 .pod-bar { height: 110px; background: linear-gradient(#f9b84b, #f2603f); }
.pod.p2 .pod-bar { height: 80px; background: linear-gradient(#c9d6e3, #8aa1b8); }
.pod.p3 .pod-bar { height: 60px; background: linear-gradient(#f3c7a3, #c8845a); }
.pod.me b { color: var(--coral); }
.lb-list { padding: 6px 0; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row.me { background: #fff3ec; }
.lb-rank { width: 28px; text-align: center; font-family: var(--display); font-weight: 700; color: var(--muted); }
.lb-val { white-space: nowrap; }
.lb-me { padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center; }

/* ---------- Belajar bareng & ruang sesi ---------- */
.bb-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: #fff3ec; margin-bottom: 10px; }
.bb-ic.sm { width: 42px; height: 42px; font-size: 20px; margin: 0; flex-shrink: 0; }
.room-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.ava-stack { display: flex; }
.ava-stack .ava { border: 2px solid #fff; margin-left: -8px; }
.inv-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; margin-top: 6px; }
.inv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.inv:has(input:checked) { border-color: var(--coral); background: #fff3ec; }
.room-hero { display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(120deg, #3d1f2b, #6b2f3c); }
.room-hero.berjalan { background: linear-gradient(120deg, #f2603f, #f9a24b); }
.room-hero.selesai { background: linear-gradient(120deg, #13895a, #2bb673); }
.room-clock { position: relative; flex-shrink: 0; }
.room-clock b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 34px; }
.react-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.react-bar button { font-size: 24px; width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: transform .12s; }
.react-bar button:hover { transform: translateY(-3px) scale(1.06); }
.float-emo { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fe { position: absolute; bottom: -60px; display: flex; flex-direction: column; align-items: center; animation: floatUp 3.2s ease-out forwards; }
.fe span { font-size: 44px; }
.fe small { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .9); padding: 1px 8px; border-radius: 99px; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-80px) scale(1.1); } 100% { transform: translateY(-75vh) scale(1); opacity: 0; } }
@media (max-width: 640px) {
  .fr-hero { flex-direction: column; text-align: center; padding: 20px; }
  .fr-hero .row { justify-content: center; }
  .room-hero { flex-direction: column; text-align: center; padding: 22px; }
  .stickers { grid-template-columns: repeat(4, 1fr); }
  .podium { gap: 6px; }
  .pod b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ava.is-on::after, .fe { animation: none; } }

/* ---------- Status (linimasa) ---------- */
.feed { max-width: 680px; margin: 0 auto; }
.composer { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea { resize: none; min-height: 52px; line-height: 1.5; }
.c-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.c-vis { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 999px; }
.c-prev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.c-prev:not(:empty) { margin-top: 10px; }
.c-prev div { position: relative; aspect-ratio: 1; }
.c-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.c-prev button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.post { margin-bottom: 14px; padding: 18px 20px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-tag { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: #fff3ec; color: var(--coral); font-size: 12.5px; font-weight: 600; }
.composer .post-tag { margin: 0 0 8px; }
.post-text { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.tagw { color: var(--coral); font-weight: 500; }
.post-imgs { display: grid; gap: 6px; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.post-imgs img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; background: var(--soft); }
.post-imgs.g1 img { max-height: 460px; object-fit: contain; }
.post-imgs.g2, .post-imgs.g4 { grid-template-columns: 1fr 1fr; }
.post-imgs.g2 img, .post-imgs.g4 img { aspect-ratio: 1; }
.post-imgs.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.post-imgs.g3 img:first-child { grid-row: span 2; }
.post-acts { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pa { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; transition: transform .12s; }
.pa:hover { background: var(--soft); }
.pa.on { border-color: #f7b3c4; background: #fdeef2; }
.pa:active { transform: scale(.94); }
.post-cmts { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.post-cmts[hidden] { display: none; }
.cmt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.cmt-del { border: none; background: none; color: var(--muted); font-size: 12px; padding: 4px; }
.cmt-form { display: flex; gap: 8px; }
.new-pill { position: sticky; top: 96px; z-index: 15; display: block; margin: 0 auto 12px; padding: 8px 18px; border-radius: 999px; border: none; background: var(--coral); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(242, 96, 63, .3); }
.new-pill[hidden] { display: none; }

/* ---------- Peringkat di Beranda ---------- */
.home-lb { background: linear-gradient(135deg, #fff 0, #fff4ec 100%); }
.hlb-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.hlb-side { display: flex; flex-direction: column; gap: 4px; }
.hlb-side .lb-row { padding: 8px 10px; border-radius: 12px; border: none; }
.hlb-side .lb-me { margin-top: 8px; }
@media (max-width: 760px) { .hlb-grid { grid-template-columns: 1fr; } .composer > .ava { display: none; } }

/* ---------- Titik "live" di halaman Stream ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-right: 6px; vertical-align: 1px; animation: liveBlink 1.4s infinite; }
@keyframes liveBlink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* elemen bersembunyi tetap tersembunyi walau punya kelas tombol/flex */
[hidden] { display: none !important; }
.cred-msg { white-space: pre-wrap; font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; background: var(--soft); color: var(--ink2); max-height: 170px; overflow: auto; }

/* ---------- Header: muat 7 menu tanpa meluber ---------- */
.header-pill { max-width: 1320px; gap: 12px; }
.nav { gap: 2px; min-width: 0; }
.nav a { padding: 10px 14px; font-size: 14.5px; white-space: nowrap; }
.header-right { flex-shrink: 0; gap: 8px; }
.user-chip { padding: 6px 12px 6px 6px; white-space: nowrap; max-width: 230px; }
.user-chip .chip { white-space: nowrap; flex-shrink: 0; }
.user-chip .uc-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.btn-ask { padding: 10px 16px; font-size: 14.5px; }
/* layar sedang: nama disembunyikan, cukup foto + waktu */
@media (max-width: 1320px) { .user-chip .uc-name { display: none; } .user-chip { padding: 6px 10px 6px 6px; } }
/* layar lebih sempit: menu pindah ke tombol ☰ supaya header tidak pernah meluber */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .header-pill { justify-content: space-between; position: relative; }
  .nav { position: absolute; top: 74px; left: 12px; right: 12px; margin: 0; flex-direction: column; background: #fff; border-radius: 24px; padding: 10px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 15px; }
  .nav a.ask-m { display: block; }
  .user-chip { display: inline-flex; }
  .user-chip .uc-name { display: inline; }
}
@media (max-width: 560px) { .user-chip .uc-name { display: none; } .btn-ask { display: none; } }

/* ---------- Kartu Clarissa yang mengobrol (Beranda) ---------- */
.fox-card.chat { align-items: center; justify-content: center; gap: 4px; padding: 30px 30px 28px; }
.fc-bubble { position: relative; z-index: 1; align-self: stretch; min-height: 82px; padding: 18px 22px; border-radius: 26px; background: #fff; color: var(--ink); font-weight: 500; font-size: 17px; line-height: 1.5; text-align: center; box-shadow: 0 14px 30px rgba(120, 30, 10, .18); display: grid; place-items: center; white-space: normal; overflow-wrap: anywhere; }
.fc-bubble::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 22px; height: 22px; background: #fff; border-radius: 4px; transform: translateX(-50%) rotate(45deg); }
.fc-bubble.pop { animation: fcPop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fcPop { from { transform: scale(.94); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.fox-card .fc-fox { margin: 22px auto 18px; border: none; padding: 0; cursor: pointer; width: min(270px, 64%); transition: transform .2s; }
.fox-card .fc-fox:hover { transform: scale(1.03); }
.fox-card .fc-fox svg { width: 74%; height: auto; }
.fc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fc-chip { border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .18); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, transform .15s; }
.fc-chip:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.fc-chip.main { background: #fff; color: var(--coral); border-color: #fff; }
@media (max-width: 640px) { .fc-bubble { font-size: 15.5px; min-height: 72px; padding: 14px 16px; } .fox-card .fc-fox { width: min(220px, 70%); } }
@media (prefers-reduced-motion: reduce) { .fc-bubble.pop { animation: none; } }

/* Kartu pengenalan game: pilih dulu, lalu "Mainkan sekarang" */
.game-intro { display: flex; gap: 22px; align-items: flex-start; }
.gi-big { flex-shrink: 0; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 42px; }
.gi-how { padding: 12px 16px; border-radius: 16px; background: var(--soft); font-size: 14.5px; }
.gi-how p { margin: 4px 0 0; color: var(--ink2); line-height: 1.55; }
@media (max-width: 640px) { .game-intro { flex-direction: column; align-items: center; text-align: center; } .game-intro .row { justify-content: center; } }

/* Profil seperti Threads */
.post-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.post-who:hover b { text-decoration: underline; }
.up-head h1 { font-size: clamp(24px, 3vw, 32px); }
.up-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ink2); font-size: 14.5px; }
.up-stats b { color: var(--ink); }
#myPosts .post:last-child { margin-bottom: 0; }

/* Beranda & Tambah: pilihan sumber materi (file / audio / YouTube) */
.src-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; }
.src-opt { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.src-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.src-opt i { font-style: normal; font-size: 24px; line-height: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft2); margin-bottom: 8px; }
.src-opt i.yt { background: #ff3b30; color: #fff; font-size: 18px; }
.src-opt b { font-family: var(--display); font-size: 17px; }
.src-opt span { font-size: 13px; color: var(--muted); }
.src-opt.main { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(242, 96, 63, .3); }
.src-opt.main i { background: rgba(255, 255, 255, .22); color: #fff; }
.src-opt.main span { color: rgba(255, 255, 255, .85); }
@media (max-width: 560px) { .src-pick { grid-template-columns: 1fr; } .src-opt { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; } .src-opt i { margin: 0; } .src-opt span { flex-basis: 100%; padding-left: 56px; margin-top: -14px; } }
.src-seg { max-width: 100%; overflow-x: auto; }
.yt-vid { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--soft); }
.yt-vid img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; flex: none; }
.yt-how { padding: 14px 16px; border-radius: var(--r-md); background: #ffe9de; }
.yt-how ol { margin: 6px 0 0; padding-left: 20px; color: var(--ink2); }
.yt-how li + li { margin-top: 4px; }
#ytText { min-height: 160px; }
@media (max-width: 560px) { .yt-vid { flex-direction: column; align-items: stretch; } .yt-vid img { width: 100%; } }

/* Proses unggah: bilah persen + kartu melayang saat pindah halaman */
.job-bar { height: 8px; border-radius: 99px; background: var(--soft2); overflow: hidden; margin-top: 12px; }
.job-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--coral)); transition: width .4s ease; }
.job-bar.ok i { background: var(--green); }
.job-bar.bad i { background: var(--red); }
.job-dock { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(340px, calc(100vw - 32px)); padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(61, 31, 43, .18); animation: jdIn .25s ease; }
.job-dock .job-bar { margin-top: 10px; height: 6px; }
.job-dock.ok .job-bar i { background: var(--green); }
.job-dock.bad .job-bar i { background: var(--red); }
.jd-main { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.jd-ic { flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--soft2); display: grid; place-items: center; font-size: 18px; }
.jd-ic .spin { width: 18px; height: 18px; }
.jd-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jd-txt b { display: block; font-size: 14px; }
.jd-txt .small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-pct { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--coral); }
.jd-x { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 12px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
@keyframes jdIn { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) { .job-dock { right: 16px; bottom: 16px; } }

/* Bank soal (dari contoh soal) */
.src-pick { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
.src-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px; }
.src-opt i { grid-row: span 2; margin-bottom: 0; }
.src-opt b, .src-opt span { min-width: 0; }
@media (max-width: 560px) { .src-pick { grid-template-columns: 1fr; } .src-opt span { padding-left: 0; margin-top: 0; flex-basis: auto; } }
.chip.warn { background: #fff1d6; color: #9a6200; }
.bank-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bank-topics .bt { text-decoration: none; color: var(--ink); }
.bq-group { margin: 22px 4px 8px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--coral); }
.bq-group:first-child { margin-top: 0; }
.bq .acc-head h3 { font-size: 15.5px; font-weight: 500; font-family: inherit; }
.bq-text { white-space: pre-wrap; line-height: 1.7; }
.bq-opts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bq-opts li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.bq-opts li.ok { background: #e1f6ec; border-color: #a9e2c7; }
.bq-opts .l { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; font-weight: 600; font-size: 13px; }
.bq-opts li > span:nth-child(2) { flex: 1; min-width: 0; }
.bq-tag { font-size: 12px; color: #13895a; }
.bq-tag.warn { color: #9a6200; }
.bank-topics .chip, .bank-topics .coral { white-space: nowrap; flex: none; }
.bank-topics .row { gap: 10px; align-items: flex-start; }

/* Perpustakaan: tombol ⋯ & materi yang disematkan */
.mc-more { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 12px; border: none; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(61, 31, 43, .15); transition: transform .15s; }
.mc-more:hover { transform: scale(1.06); }
.pin-badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12.5px; font-weight: 600; color: var(--coral); box-shadow: 0 4px 12px rgba(61, 31, 43, .12); }
.mat-card.pinned { border-color: #f8c9b3; box-shadow: 0 0 0 2px #ffd9c7; }

/* Area unggah terkunci selama file sedang diproses */
.drop { position: relative; }
.drop.busy { pointer-events: none; cursor: not-allowed; border-style: solid; background: var(--soft); }
.drop.busy > * { visibility: hidden; }
.drop.busy::after { content: "⏳ Sedang memproses… area unggah dibuka lagi setelah selesai"; position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; font-weight: 600; font-size: 15px; color: var(--muted); text-align: center; }
.seg button:disabled { opacity: .5; cursor: not-allowed; }

/* =========================================================
   HALAMAN DEPAN (sebelum masuk)
   ========================================================= */
.guest-nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.lp-mode .guest-nav { display: flex; }
.guest-nav button { border: none; background: none; padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 500; color: var(--ink2); cursor: pointer; }
.guest-nav button:hover { background: var(--soft); color: var(--ink); }
.guest-nav .btn { margin-left: 8px; }
.lp .hl { color: var(--coral); }
.lp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 48px 24px; }
.lp-hero .lead { margin: 24px 0 30px; max-width: 600px; }
.lp-cta { font-size: 17px; padding: 15px 28px; }
.lp-stage { position: relative; height: 460px; }
.lp-blob { position: absolute; inset: 40px 30px 20px; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 30%, #ffd2bd, #ffb08f 55%, #f8936c); animation: lpMorph 12s ease-in-out infinite; }
.lp-fox { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 30px rgba(61, 31, 43, .18)); }
.lp-bubble { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: min(340px, 90%); padding: 14px 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); font-weight: 500; text-align: center; line-height: 1.5; z-index: 2; }
.lp-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.lp-bubble.pop { animation: lpPop .35s ease; }
.lp-float { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px rgba(61, 31, 43, .12); font-size: 14px; animation: lpFloat 5s ease-in-out infinite; z-index: 1; }
.lp-float b { font-family: var(--display); font-size: 15px; }
.lp-float span { color: var(--muted); font-size: 12.5px; }
.lp-float .lp-score { color: var(--green); font-weight: 600; }
.lp-float.f1 { left: 0; top: 120px; }
.lp-float.f2 { right: 0; top: 150px; animation-delay: -1.2s; }
.lp-float.f3 { left: 18px; bottom: 30px; animation-delay: -2.4s; }
.lp-float.f4 { right: 14px; bottom: 60px; animation-delay: -3.6s; }
@keyframes lpFloat { 50% { transform: translateY(-10px); } }
@keyframes lpPop { from { transform: translateX(-50%) scale(.92); opacity: .4; } }
@keyframes lpMorph { 50% { border-radius: 58% 42% 44% 56% / 42% 56% 44% 58%; } }
.lp-eyebrow { display: block; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.lp-sources { padding-block: 30px 10px; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.lp-chips span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; color: var(--ink2); }
.lp-sec { padding-block: 70px 10px; scroll-margin-top: 90px; }
.lp-h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; text-align: center; margin: 0; letter-spacing: -.5px; }
.lp-sub { text-align: center; color: var(--ink2); font-size: 17px; margin: 10px auto 0; max-width: 620px; }
.lp-pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 920px; margin: 34px auto 0; }
.lp-pain { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 16.5px; color: var(--ink2); }
.lp-pain i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px #ffe1d4; }
.lp-answer { text-align: center; margin: 26px 0 0; font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--coral); }
.lp-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.lp-feat { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-feat.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 55%, #ffeadf); }
.lp-feat.wide { grid-column: span 3; background: linear-gradient(120deg, #3d1f2b, #5b2b3c); color: #fff; border: none; }
.lp-feat.wide p { color: rgba(255, 255, 255, .8); }
.lp-feat.wide .lp-ic { background: rgba(255, 255, 255, .14); }
.lp-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft2); font-size: 26px; }
.lp-feat h3 { font-family: var(--display); font-size: 22px; margin: 18px 0 8px; }
.lp-feat p { margin: 0; color: var(--ink2); line-height: 1.65; }
.lp-mini-sum { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.lp-mini-sum b { font-family: var(--display); color: var(--coral); }
.lp-mini-sum span { position: relative; padding: 10px 14px 10px 30px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.lp-mini-sum span::before { content: ""; position: absolute; left: 13px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.lp-step { position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.lp-step > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--display); font-size: 22px; font-weight: 700; }
.lp-step h3 { font-family: var(--display); font-size: 21px; margin: 16px 0 6px; }
.lp-step p { margin: 0; color: var(--ink2); line-height: 1.6; }
.lp-faq { max-width: 820px; margin: 34px auto 0; display: flex; flex-direction: column; gap: 12px; }
.lp-faq details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; font-weight: 600; font-size: 16.5px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary span { flex: none; color: var(--coral); transition: transform .2s; display: grid; }
.lp-faq details[open] summary span { transform: rotate(180deg); }
.lp-faq details p { margin: 0; padding: 0 24px 20px; color: var(--ink2); line-height: 1.7; }
.lp-final { display: flex; align-items: center; gap: 24px; padding: 30px 36px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--coral), var(--orange)); color: #fff; margin-bottom: 40px; }
.lp-final h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); margin: 0; }
.lp-final p { margin: 6px 0 0; color: rgba(255, 255, 255, .9); }
.lp-final-fox { flex: none; }
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; padding-block-start: 24px; }
  .lp-stage { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .lp-bento { grid-template-columns: 1fr 1fr; }
  .lp-feat.big { grid-row: auto; }
  .lp-feat.wide, .lp-feat.ask { grid-column: span 2; }
}
@media (max-width: 700px) {
  .guest-nav button { display: none; }
  .lp-pains, .lp-steps, .lp-bento { grid-template-columns: 1fr; }
  .lp-feat.big, .lp-feat.wide, .lp-feat.ask { grid-column: auto; }
  .lp-final { flex-direction: column; text-align: center; padding: 28px 22px; }
  .lp-stage { height: 380px; }
  .lp-fox svg { width: 180px; height: auto; }
  .lp-float { padding: 9px 12px; }
  .lp-float.f1 { top: 110px; }
  .lp-float.f2 { top: 140px; }
  .lp-sec { padding-top: 54px; }
}
.lp { overflow-x: clip; }
.lp-bubble { white-space: normal; }

/* Halaman depan: kartu format yang didukung */
.lp-formats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 36px; }
.lp-format { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 14px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.lp-format:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-fic { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 20px; font-size: 28px; transition: transform .2s; }
.lp-format:hover .lp-fic { transform: rotate(-6deg) scale(1.06); }
.lp-format b { font-family: var(--display); font-size: 19px; }
.lp-format small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.lp-format.c1 .lp-fic { background: #ffe4d8; }
.lp-format.c2 .lp-fic { background: #ffe0ea; }
.lp-format.c3 .lp-fic { background: #fff0cc; }
.lp-format.c4 .lp-fic { background: #e1f6ec; }
.lp-format.c5 .lp-fic { background: #ff3b30; color: #fff; font-size: 22px; }
.lp-format.c6 .lp-fic { background: #efe3ea; }
@media (max-width: 1100px) { .lp-formats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .lp-formats { grid-template-columns: repeat(2, 1fr); gap: 12px; } .lp-format { padding: 20px 10px 18px; } }

/* Halaman depan: video pengenalan */
.lp-video { position: relative; max-width: 1040px; margin: 34px auto 0; padding: 12px; border-radius: 40px; background: linear-gradient(135deg, #ffd2bd, #ffb08f); box-shadow: 0 30px 70px rgba(210, 110, 60, .25); }
.lp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 30px; background: var(--bg); }
.lp-vbtn { position: absolute; right: 30px; bottom: 30px; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(61, 31, 43, .18); }
@media (max-width: 560px) { .lp-video { padding: 6px; border-radius: 24px; } .lp-video video { border-radius: 19px; } .lp-vbtn { right: 16px; bottom: 16px; width: 40px; height: 40px; } }

/* Daftar akun: dua kolom, catatan kecil, ajakan daftar di halaman masuk */
.auth-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-2 > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth-hint { display: block; margin: -4px 0 2px; line-height: 1.5; }
.g-wrap { margin-bottom: 6px; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: #ffe9de; font-size: 14.5px; font-weight: 500; }
.guest-nav .btn.ghost { margin-left: 8px; }
.guest-nav .btn + .btn { margin-left: 6px; }
@media (max-width: 560px) { .auth-2 { grid-template-columns: 1fr; } .guest-nav .btn.ghost { display: none; } }
.adm-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adm-contact a { padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }

/* Backend: langkah membuat Client ID Google */
.g-steps summary { cursor: pointer; color: var(--coral); }
.g-steps ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink2); line-height: 1.6; }
.g-steps code { font-size: 12px; background: var(--soft); padding: 1px 6px; border-radius: 6px; word-break: break-all; }

/* Halaman depan: muncul saat digulir masuk, menghilang saat keluar layar */
.rv { opacity: 0; transition: opacity .55s ease, transform .75s cubic-bezier(.34, 1.56, .64, 1), translate .75s cubic-bezier(.34, 1.56, .64, 1), scale .75s cubic-bezier(.34, 1.56, .64, 1), rotate .75s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--d, 0s); will-change: opacity, translate; }
.rv-up { translate: 0 46px; }
.rv-pop { scale: .78; translate: 0 26px; }
.rv-zoom { scale: .9; }
.rv-tilt { translate: 0 54px; rotate: -3deg; scale: .96; }
.rv-left { translate: -70px 0; rotate: -2deg; }
.rv-right { translate: 70px 0; rotate: 2deg; }
.rv.in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; translate: none; scale: none; rotate: none; transition: none; } }
