/* ==================================================================
   SIRS — Soft 3D / Clay theme (shared)
   Used by: login.php, register.php, logout.php (Fasa 1B),
            dashboards (Fasa 1C), awareness.php
   Tokens match the inline <style> in index.php exactly.
   ================================================================== */

:root {
    --ink: #1E1B4B;
    --ink-soft: #5B5F8F;
    --indigo: #5B4BF5;
    --indigo-deep: #3F31D6;
    --sun: #FFC83D;
    --sun-deep: #E0A51A;
    --coral: #FF7A6B;
    --coral-deep: #E05A4B;
    --mint: #35CFA8;
    --mint-deep: #22A886;
    --mist: #EEF0FF;
    --mist-deep: #D4D6F3;
    --paper: #FFFDF6;

    --display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
    --body: 'Nunito', system-ui, sans-serif;
    --hand: 'Caveat', 'Comic Sans MS', cursive;

    --clay: 0 22px 40px -18px rgba(63, 49, 214, .45),
            inset 0 -8px 0 rgba(30, 27, 75, .06),
            inset 0 6px 10px rgba(255, 255, 255, .95);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ------------------------------------------------------------------
   BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

body {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* paper grain, same as the landing page */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 10px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------
   PAGE WIPE (in + out). Same indigo circle as index.php
   ------------------------------------------------------------------ */
#wipe {
    position: fixed; inset: 0; z-index: 90;
    background: var(--indigo);
    display: none;
    clip-path: circle(0% at 50% 50%);
    will-change: clip-path;
}
/* incoming: the page starts covered, JS opens it. Failsafe opens it anyway. */
html.js-motion:not([data-wipe-in="off"]) #wipe {
    display: block;
    clip-path: circle(150% at 50% 50%);
    animation: sirs-failsafe-hide 0s 2.6s forwards;
}
@keyframes sirs-failsafe-hide { to { visibility: hidden; } }

/* things that animate in start hidden, but only when motion is allowed */
html.js-motion [data-enter] { opacity: 0; animation: sirs-failsafe-show 0s 2.8s forwards; }
@keyframes sirs-failsafe-show { to { opacity: 1; } }

/* ------------------------------------------------------------------
   BUTTONS — clay that presses in
   ------------------------------------------------------------------ */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.6rem;
    border: 0; border-radius: 999px;
    font: 800 1rem var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: translate .12s ease, box-shadow .12s ease, background-color .2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}
.btn:active { translate: 0 4px; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 0 var(--indigo-deep), 0 16px 26px -12px rgba(63,49,214,.7); }
.btn-primary:hover { background: #6857FF; }
.btn-primary:active { box-shadow: 0 2px 0 var(--indigo-deep), 0 8px 14px -10px rgba(63,49,214,.7); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--mist-deep), 0 16px 26px -14px rgba(63,49,214,.35); }
.btn-ghost:active { box-shadow: 0 2px 0 var(--mist-deep); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 var(--sun-deep), 0 16px 26px -12px rgba(30,27,75,.5); }
.btn-sun:active { box-shadow: 0 2px 0 var(--sun-deep); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 1.6rem; font-size: 1.08rem; }

/* loading state — the button is NOT disabled, so its name still reaches PHP */
.btn .btn-spinner {
    display: none;
    width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: sirs-spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .75; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes sirs-spin { to { transform: rotate(360deg); } }

.text-link {
    font-weight: 800; color: var(--indigo);
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
    text-decoration-color: rgba(91,75,245,.3);
    white-space: nowrap;
    transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--indigo); }

/* ------------------------------------------------------------------
   BRAND
   ------------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-badge {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--sun); color: var(--ink);
    font: 800 1.05rem var(--display);
    box-shadow: inset 0 -5px 0 var(--sun-deep), inset 0 4px 6px rgba(255,255,255,.7), 0 10px 18px -10px rgba(30,27,75,.5);
}
.brand-name { font: 800 1.2rem/1 var(--display); }
.brand-name small { display: block; font: 700 .78rem var(--body); opacity: .75; margin-top: .2rem; }

/* ------------------------------------------------------------------
   FORM FIELDS — wells pressed into the clay, buttons stand out of it
   ------------------------------------------------------------------ */
.field { margin-bottom: 1.15rem; }
.field-label { display: block; margin-bottom: .45rem; font-weight: 800; font-size: .98rem; }
.field-shell { position: relative; }
.field-input {
    width: 100%;
    padding: .95rem 1.15rem;
    border: 2px solid transparent;
    border-radius: 18px;
    background: var(--mist);
    font: 700 1rem var(--body); color: var(--ink);
    box-shadow: inset 0 4px 0 rgba(30,27,75,.07), inset 0 -2px 0 rgba(255,255,255,.9);
    transition: background-color .18s, border-color .18s, box-shadow .18s;
    -webkit-appearance: none; appearance: none;
}
.field-input::placeholder { color: #9A9ED0; font-weight: 600; }
.field-input:hover { background: #E6E9FF; }
.field-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--indigo);
    box-shadow: 0 0 0 5px rgba(91,75,245,.14);
}
.field-shell.has-toggle .field-input { padding-right: 3.6rem; }

.pw-toggle {
    position: absolute; right: .45rem; top: 50%; translate: 0 -50%;
    width: 42px; height: 42px; border: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--ink-soft);
    box-shadow: 0 3px 0 var(--mist-deep);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: translate .12s, box-shadow .12s, color .2s;
}
.pw-toggle:active { translate: 0 calc(-50% + 2px); box-shadow: 0 1px 0 var(--mist-deep); }
.pw-toggle:hover { color: var(--indigo); }
.pw-toggle svg { width: 22px; height: 22px; }
.pw-toggle .ico-hide { display: none; }
.pw-toggle[aria-pressed="true"] .ico-show { display: none; }
.pw-toggle[aria-pressed="true"] .ico-hide { display: block; }

/* role picker — two clay tiles (real radio inputs underneath) */
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; border: 0; }
.role-picker legend { margin-bottom: .45rem; font-weight: 800; font-size: .98rem; }
.role-opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.role-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-face {
    display: flex; align-items: center; gap: .75rem;
    height: 100%;
    padding: .85rem .9rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 0 var(--mist-deep), 0 14px 22px -16px rgba(63,49,214,.5);
    transition: translate .12s, box-shadow .12s, background-color .2s, color .2s;
}
.role-ico {
    flex: none; width: 42px; height: 42px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--mist);
    box-shadow: inset 0 -4px 0 rgba(30,27,75,.07);
    transition: background-color .2s;
}
.role-ico svg { width: 24px; height: 24px; }
.role-text b { display: block; font-weight: 800; line-height: 1.15; }
.role-text small { display: block; font-weight: 600; font-size: .82rem; line-height: 1.3; color: var(--ink-soft); transition: color .2s; }
.role-opt:hover .role-face { background: #FAFAFF; }
.role-opt input:checked + .role-face {
    background: var(--indigo); color: #fff;
    translate: 0 3px;
    box-shadow: 0 2px 0 var(--indigo-deep), 0 10px 18px -12px rgba(63,49,214,.8);
}
.role-opt input:checked + .role-face .role-ico { background: var(--sun); box-shadow: inset 0 -4px 0 var(--sun-deep); }
.role-opt input:checked + .role-face small { color: rgba(255,255,255,.82); }
.role-opt input:focus-visible + .role-face { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ------------------------------------------------------------------
   ALERTS
   ------------------------------------------------------------------ */
.alert {
    display: flex; align-items: flex-start; gap: .75rem;
    margin-bottom: 1.2rem;
    padding: .85rem 1rem;
    border-radius: 18px;
    font-weight: 700; font-size: .98rem; line-height: 1.45;
}
.alert-mark {
    flex: none; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    font: 900 .95rem/1 var(--body);
}
.alert-error { background: #FFE9E6; color: #8A2A20; box-shadow: inset 0 -3px 0 rgba(255,122,107,.25); }
.alert-error .alert-mark { background: var(--coral); color: #fff; box-shadow: inset 0 -3px 0 var(--coral-deep); }
.alert-success { background: #DDF8EF; color: #13624E; box-shadow: inset 0 -3px 0 rgba(53,207,168,.3); }
.alert-success .alert-mark { background: var(--mint); color: var(--ink); box-shadow: inset 0 -3px 0 var(--mint-deep); }
.alert span:last-child { padding-top: .1rem; }

/* ------------------------------------------------------------------
   MASCOT — shared robot
   ------------------------------------------------------------------ */
.mascot { position: relative; display: grid; justify-items: center; }
.robot-btn {
    position: relative; z-index: 2;
    border: 0; background: none; padding: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 40px;
}
.robot { width: 100%; height: auto; overflow: visible; }
.platform {
    width: 86%; height: 30px; margin-top: -24px; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(30,27,75,.35), rgba(30,27,75,0) 70%);
}
.bubble {
    position: absolute; z-index: 3;
    max-width: 230px;
    padding: .8rem 1.1rem;
    background: #fff; color: var(--ink);
    border-radius: 22px 22px 22px 6px;
    font: 800 .98rem/1.35 var(--body);
    box-shadow: var(--clay);
}
.bubble-text:empty::after { content: "\00a0"; }

/* ------------------------------------------------------------------
   AUTH LAYOUT (login / register)
   ------------------------------------------------------------------ */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 1280px;
    min-height: 100vh; min-height: 100svh;
    margin: 0 auto;
    padding: 1.25rem;
}

/* the indigo slab with the robot */
.auth-stage {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column;
    padding: 1.8rem 2.4rem 2.6rem;
    border-radius: 44px;
    background: var(--indigo); color: #fff;
    box-shadow: 0 30px 50px -24px rgba(63,49,214,.8), inset 0 -10px 0 var(--indigo-deep), inset 0 8px 14px rgba(255,255,255,.2);
}
.auth-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .95rem; border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-weight: 800; font-size: .92rem; text-decoration: none;
    box-shadow: 0 4px 0 rgba(0,0,0,.15);
    transition: translate .12s, box-shadow .12s, background-color .2s;
}
.back-link:hover { background: rgba(255,255,255,.22); }
.back-link:active { translate: 0 3px; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.back-link svg { width: 16px; height: 16px; }

.auth-stage .mascot {
    position: relative; z-index: 1;
    flex: 1;
    align-content: center;
    padding: 1.2rem 0 1rem;
}
.auth-stage .robot-btn { width: clamp(180px, 22vw, 270px); }
.auth-stage .bubble { position: relative; translate: 34% 0; margin-bottom: -.4rem; }
.auth-copy { position: relative; z-index: 2; }
.auth-title {
    font: 800 clamp(2.6rem, 5vw, 4.2rem)/.95 var(--display);
    letter-spacing: -.035em;
    text-shadow: 0 5px 0 rgba(30,27,75,.18);
}
.auth-lede { max-width: 26rem; margin-top: .9rem; font-weight: 600; font-size: 1.1rem; opacity: .9; }

/* decorative clay shapes, same family as the landing page */
.deco { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.deco-sun {
    width: 170px; height: 170px; right: -46px; top: 18%;
    background: radial-gradient(circle at 32% 28%, #FFE59A 0 18%, var(--sun) 48%, var(--sun-deep) 100%);
    box-shadow: 0 20px 30px -16px rgba(0,0,0,.35);
}
.deco-ring {
    width: 96px; height: 96px; left: -26px; bottom: 46%;
    border: 22px solid var(--coral);
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.08), 0 14px 22px -12px rgba(0,0,0,.35);
}
.deco-pill {
    width: 96px; height: 40px; border-radius: 99px; right: 9%; bottom: 36%;
    background: radial-gradient(circle at 30% 30%, #8FF0D6 0 20%, var(--mint) 70%);
    box-shadow: inset 0 -5px 0 var(--mint-deep);
    rotate: -16deg;
}

/* the form side */
.auth-panel { display: grid; place-items: center; padding: 1.5rem 0; }
.auth-card {
    width: 100%; max-width: 460px;
    padding: 2.4rem 2.2rem 2rem;
    border-radius: 36px;
    background: #fff;
    box-shadow: var(--clay);
}
.panel-title { font: 800 clamp(1.9rem, 3vw, 2.3rem)/1.05 var(--display); letter-spacing: -.025em; }
.panel-sub { margin: .5rem 0 1.6rem; color: var(--ink-soft); font-weight: 600; }
.auth-card form { margin-top: .2rem; }
.auth-card .btn-block { margin-top: .6rem; }

.foot-row { margin-top: 1.5rem; text-align: center; font-weight: 700; color: var(--ink-soft); }
.foot-row .text-link { margin-left: .25rem; }

.privacy-note {
    display: flex; align-items: flex-start; gap: .8rem;
    margin-top: 1.4rem;
    padding: .95rem 1rem;
    border-radius: 20px;
    background: var(--mist);
    font-weight: 600; font-size: .9rem; line-height: 1.45; color: var(--ink-soft);
}
.privacy-note .tick {
    flex: none; width: 30px; height: 30px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--mint); color: var(--ink); font-weight: 900;
    box-shadow: inset 0 -4px 0 var(--mint-deep);
}

/* confetti dots for the success moment */
.confetti-dot { position: fixed; z-index: 70; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; }

/* ------------------------------------------------------------------
   CENTERED CARD PAGES (logout, setup, messages)
   ------------------------------------------------------------------ */
.center-page {
    min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    padding: 1.5rem;
    position: relative; overflow: hidden;
}
.center-page .deco-sun { right: 8%; top: 10%; width: 140px; height: 140px; }
.center-page .deco-ring { left: 7%; bottom: 14%; }
.center-page .deco-pill { right: 14%; bottom: 12%; }

.simple-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    padding: 2rem 2.2rem 2.4rem;
    border-radius: 40px;
    background: #fff;
    text-align: center;
    box-shadow: var(--clay);
}
.simple-card .mascot { padding-top: 4.4rem; }
.simple-card .robot-btn { width: 170px; }
.simple-card .bubble { top: 0; left: calc(50% + 12px); max-width: 190px; text-align: left; }
.simple-card h1 { margin-top: 1rem; font: 800 2.1rem/1.05 var(--display); letter-spacing: -.03em; }
.simple-card p { margin: .6rem auto 0; max-width: 22rem; color: var(--ink-soft); font-weight: 600; }
.simple-card .btn { margin-top: 1.6rem; }

.countdown {
    height: 12px; margin: 1.4rem auto 0; max-width: 260px;
    border-radius: 99px; overflow: hidden;
    background: var(--mist);
    box-shadow: inset 0 3px 0 rgba(30,27,75,.07);
}
.countdown i {
    display: block; height: 100%;
    border-radius: inherit;
    background: var(--sun);
    box-shadow: inset 0 -3px 0 var(--sun-deep);
    transform-origin: left center;
    animation: sirs-countdown var(--count, 1.4s) linear forwards;
}
@keyframes sirs-countdown { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==================================================================
   FASA 1C — DASHBOARDS (student, teacher, admin)
   ================================================================== */

/* ---------- app shell ---------- */
.app-top {
    position: sticky; top: 0; z-index: 30;
    background: rgba(238, 240, 255, .86);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.app-top-inner {
    max-width: 1240px; margin: 0 auto;
    padding: .85rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.app-top .brand-name small { color: var(--ink-soft); opacity: 1; }
.top-right { display: flex; align-items: center; gap: .8rem; }
.who-chip { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink-soft); }
.who-chip strong { color: var(--ink); font-weight: 800; }
.role-tag {
    padding: .22rem .7rem; border-radius: 99px;
    font: 800 .78rem var(--body); color: var(--ink);
    background: var(--sun); box-shadow: inset 0 -3px 0 var(--sun-deep);
}
.role-tag.is-teacher { background: var(--mint); box-shadow: inset 0 -3px 0 var(--mint-deep); }
.role-tag.is-admin { background: var(--coral); color: #fff; box-shadow: inset 0 -3px 0 var(--coral-deep); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-ghost.btn-sm { box-shadow: 0 4px 0 var(--mist-deep), 0 10px 18px -12px rgba(63,49,214,.35); }
.btn-primary.btn-sm { box-shadow: 0 4px 0 var(--indigo-deep), 0 10px 18px -10px rgba(63,49,214,.6); }
.btn-sm:active { translate: 0 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }

[id] { scroll-margin-top: 90px; }
.app-main { max-width: 1240px; margin: 0 auto; padding: .4rem 1.25rem 4rem; }
.app-foot { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem 2.5rem; text-align: center; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }

/* ---------- hello band (student / teacher) ---------- */
.hello-band {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
    margin: .6rem 0 1.6rem;
    padding: 1.7rem 2.2rem;
    border-radius: 38px;
    background: var(--indigo); color: #fff;
    box-shadow: 0 26px 44px -24px rgba(63,49,214,.8), inset 0 -10px 0 var(--indigo-deep), inset 0 8px 14px rgba(255,255,255,.2);
}
.hello-band > :not(.deco) { position: relative; z-index: 1; }
.hello-band .deco { z-index: 0; }
.hello-band .deco-sun { width: 150px; height: 150px; right: -50px; top: -60px; }
.hello-band .deco-pill { right: 38%; bottom: -14px; }
.hello-title { font: 800 clamp(2.1rem, 4.4vw, 3.2rem)/1 var(--display); letter-spacing: -.035em; text-shadow: 0 5px 0 rgba(30,27,75,.18); }
.hello-sub { margin-top: .6rem; max-width: 30rem; font-weight: 600; opacity: .92; }
.hello-actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-on-indigo { background: rgba(255,255,255,.16); color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.16); }
.btn-on-indigo:active { box-shadow: 0 2px 0 rgba(0,0,0,.16); }
.hello-band .mascot {
    grid-template-columns: auto auto; align-items: center; gap: .9rem;
}
.hello-band .robot-btn { width: 118px; }
.hello-band .bubble { position: relative; grid-column: 2; grid-row: 1; max-width: 220px; font-size: .95rem; }

/* ---------- cards ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.6rem; align-items: start; }
.panel {
    background: #fff; border-radius: 32px;
    padding: 1.8rem 1.8rem 2rem;
    box-shadow: var(--clay);
}
.card-title { font: 800 1.55rem/1.1 var(--display); letter-spacing: -.02em; }
.card-sub { margin: .35rem 0 1.4rem; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: .2rem .3rem 1rem; }
.count-chip { padding: .25rem .75rem; border-radius: 99px; background: #fff; font-weight: 800; font-size: .88rem; box-shadow: 0 3px 0 var(--mist-deep); white-space: nowrap; }

/* ---------- more form controls ---------- */
textarea.field-input { min-height: 132px; resize: vertical; line-height: 1.5; }
select.field-input {
    padding-right: 2.8rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B4BF5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field-hint { display: block; margin-top: .45rem; font-weight: 600; font-size: .86rem; color: var(--ink-soft); }

/* category chips (real radio inputs, same name/values as the old <select>) */
.chip-picker { border: 0; }
.chip-picker legend { margin-bottom: .5rem; font-weight: 800; font-size: .98rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-opt { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-face {
    display: inline-block;
    padding: .6rem 1.05rem; border-radius: 99px;
    background: var(--mist);
    font-weight: 800; font-size: .95rem;
    box-shadow: 0 4px 0 var(--mist-deep);
    transition: translate .12s, box-shadow .12s, background-color .2s, color .2s;
}
.chip-opt:hover .chip-face { background: #E4E7FF; }
.chip-opt input:checked + .chip-face { background: var(--indigo); color: #fff; translate: 0 3px; box-shadow: 0 1px 0 var(--indigo-deep); }
.chip-opt input:focus-visible + .chip-face { outline: 3px solid var(--coral); outline-offset: 3px; }

/* "improve my report" suggestion — reads like a note from a teacher */
.improve-btn { margin-top: .7rem; }
.suggest-box {
    margin-top: .9rem; padding: 1rem 1.15rem 1.1rem;
    border-radius: 20px;
    background: #FFF4D2;
    box-shadow: inset 0 -4px 0 rgba(224,165,26,.28);
}
.suggest-label { font: 700 1.35rem/1 var(--hand); color: #8A5A00; }
.suggest-text { margin: .5rem 0 .9rem; font-weight: 600; line-height: 1.55; }

/* evidence drop zone */
.dropzone {
    position: relative;
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.1rem;
    border: 3px dashed #C6C9EE; border-radius: 22px;
    background: var(--mist);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--indigo); background: #E8EBFF; }
.dropzone.is-filled { border-style: solid; border-color: var(--mint); background: #E6FAF3; }
.dz-ico {
    flex: none; width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--sun); box-shadow: inset 0 -4px 0 var(--sun-deep);
}
.dz-ico svg { width: 24px; height: 24px; }
.dz-text b { display: block; font-weight: 800; }
.dz-text small { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- pills ---------- */
.pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .75rem; border-radius: 99px;
    font: 800 .82rem/1.2 var(--body); white-space: nowrap;
}
.pill-pending  { background: var(--sun); color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun-deep); }
.pill-progress { background: var(--indigo); color: #fff; box-shadow: inset 0 -3px 0 var(--indigo-deep); }
.pill-resolved { background: var(--mint); color: var(--ink); box-shadow: inset 0 -3px 0 var(--mint-deep); }
.sev-low      { background: #DDF8EF; color: #13624E; }
.sev-medium   { background: #FFF1C7; color: #7A5500; }
.sev-high     { background: #FFE2DD; color: #A23427; }
.sev-critical { background: var(--coral); color: #fff; box-shadow: inset 0 -3px 0 var(--coral-deep); }
.tag { display: inline-block; white-space: nowrap; padding: .26rem .72rem; border-radius: 99px; background: var(--mist); font-weight: 800; font-size: .82rem; color: var(--ink-soft); }

/* ---------- report cards (student / teacher) ---------- */
.report-list { list-style: none; display: grid; gap: 1rem; }
.report { background: #fff; border-radius: 26px; padding: 1.25rem 1.35rem 1.3rem; box-shadow: var(--clay); }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.report-id { display: block; font-weight: 800; font-size: .84rem; color: var(--indigo); }
.report-title { font: 800 1.16rem/1.25 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .7rem; }
.report-date { font-weight: 700; font-size: .84rem; color: var(--ink-soft); }

/* sent → being handled → resolved */
.case-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.1rem; }
.case-track::before, .case-track-fill {
    content: ""; position: absolute; top: 9px; left: 16.66%; height: 6px; border-radius: 99px;
}
.case-track::before { right: 16.66%; background: var(--mist); }
.case-track-fill { width: calc(66.68% * var(--p, 0)); background: var(--indigo); }
.case-step { position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; font-weight: 700; font-size: .78rem; color: #9A9ED0; }
.case-step i { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--mist-deep); }
.case-step.done { color: var(--ink); }
.case-step.done i { background: var(--indigo); box-shadow: inset 0 -3px 0 var(--indigo-deep); }
.case-track.is-resolved .case-track-fill { background: var(--mint); }
.case-track.is-resolved .case-step.done i { background: var(--mint); box-shadow: inset 0 -3px 0 var(--mint-deep); }

.report-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.file-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .85rem; border-radius: 99px;
    background: var(--mist); color: var(--ink);
    font-weight: 800; font-size: .85rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 3px 0 var(--mist-deep);
    transition: translate .12s, box-shadow .12s, background-color .2s;
}
.file-link:hover { background: #E4E7FF; }
.file-link:active { translate: 0 2px; box-shadow: 0 1px 0 var(--mist-deep); }
.file-link.is-proof { background: #DDF8EF; box-shadow: 0 3px 0 #B5EBD9; }
.file-link svg { width: 16px; height: 16px; }
.muted { color: #9A9ED0; font-weight: 700; font-size: .85rem; }

.empty-state { padding: 2.4rem 1.5rem; text-align: center; border-radius: 26px; background: #fff; box-shadow: var(--clay); }
.empty-state b { display: block; font: 800 1.25rem var(--display); }
.empty-state p { margin-top: .3rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- admin ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.page-title { font: 800 clamp(2.1rem, 4.4vw, 3.1rem)/1 var(--display); letter-spacing: -.035em; }
.page-sub { margin-top: .5rem; color: var(--ink-soft); font-weight: 600; }
.date-chip { padding: .55rem 1rem; border-radius: 99px; background: #fff; font-weight: 700; color: var(--ink-soft); box-shadow: 0 4px 0 var(--mist-deep); }
.date-chip strong { color: var(--ink); font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { position: relative; overflow: hidden; padding: 1.3rem 1.4rem 1.4rem; border-radius: 28px; background: #fff; box-shadow: var(--clay); }
.stat-label { font-weight: 800; }
.stat-num { margin: .35rem 0 .25rem; font: 800 clamp(2.4rem, 4vw, 3.1rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-desc { font-weight: 600; font-size: .9rem; opacity: .8; }
.stat-total { background: var(--indigo); color: #fff; box-shadow: 0 22px 36px -20px rgba(63,49,214,.8), inset 0 -8px 0 var(--indigo-deep), inset 0 6px 10px rgba(255,255,255,.2); }
.stat-pending { background: var(--sun); box-shadow: 0 22px 36px -20px rgba(224,165,26,.7), inset 0 -8px 0 var(--sun-deep), inset 0 6px 10px rgba(255,255,255,.5); }
.stat-resolved { background: var(--mint); box-shadow: 0 22px 36px -20px rgba(34,168,134,.7), inset 0 -8px 0 var(--mint-deep), inset 0 6px 10px rgba(255,255,255,.45); }

.analytics { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem; margin-top: 1.5rem; }
.stack-gap { margin-top: 1.5rem; }
.bar-row + .bar-row { margin-top: 1rem; }
.bar-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; font-weight: 800; }
.bar-count { font-weight: 700; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.bar-track { height: 14px; border-radius: 99px; background: var(--mist); box-shadow: inset 0 3px 0 rgba(30,27,75,.06); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--indigo); box-shadow: inset 0 -3px 0 var(--indigo-deep); transform-origin: left center; }

.donut-wrap { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.donut {
    flex: none; width: 164px; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 18px 28px -16px rgba(34,168,134,.8), inset 0 -6px 0 rgba(0,0,0,.06);
}
.donut-inner { width: 68%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #fff; box-shadow: inset 0 5px 0 rgba(30,27,75,.06); }
.donut-num { font: 800 2rem/1 var(--display); }
.donut-lbl { font-weight: 700; font-size: .8rem; color: var(--ink-soft); }
.legend { list-style: none; display: grid; gap: .7rem; flex: 1; min-width: 150px; }
.legend li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; }
.legend li span { display: inline-flex; align-items: center; gap: .55rem; }
.legend i { width: 14px; height: 14px; border-radius: 50%; }
.legend b { font: 800 1.15rem var(--display); }

.trend { display: flex; align-items: stretch; gap: .8rem; height: 220px; overflow-x: auto; padding: .2rem .2rem .4rem; }
.trend-col { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.trend-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.trend-bar { width: 100%; max-width: 48px; min-height: 8px; border-radius: 14px 14px 8px 8px; background: var(--sun); box-shadow: inset 0 -5px 0 var(--sun-deep), inset 0 4px 6px rgba(255,255,255,.55); transform-origin: bottom center; }
.trend-num { font-weight: 800; font-size: .9rem; }
.trend-month { font-weight: 700; font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }

/* AI insights — the robot answers in its own speech bubble */
.insight { display: grid; grid-template-columns: 124px minmax(0, 1fr); grid-template-areas: "bot form" "bot talk"; column-gap: 1.4rem; row-gap: 1rem; align-items: center; }
.insight .mascot { display: contents; }
.insight .robot-btn { grid-area: bot; width: 124px; align-self: center; }
.insight .bubble { grid-area: talk; position: static; max-width: none; background: var(--mist); box-shadow: inset 0 -4px 0 rgba(30,27,75,.06); font-weight: 700; white-space: pre-line; }
.insight form { grid-area: form; }
.ask-row { display: flex; gap: .6rem; }
.ask-row .field-input { flex: 1; min-width: 0; }

/* reports table */
.reports-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.4rem .2rem 1rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.toolbar .spacer { flex: 1; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .35rem; border-radius: 26px; background: #fff; box-shadow: var(--clay); }
.seg a {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem; border-radius: 99px;
    font-weight: 800; font-size: .92rem; text-decoration: none; color: var(--ink-soft);
    transition: background-color .2s, color .2s;
}
.seg a span { padding: .05rem .5rem; border-radius: 99px; background: var(--mist); color: var(--ink); font-size: .8rem; }
.seg a:hover { color: var(--indigo); }
.seg a.active { background: var(--indigo); color: #fff; box-shadow: 0 3px 0 var(--indigo-deep); }
.seg a.active span { background: rgba(255,255,255,.2); color: #fff; }
.search {
    display: flex; align-items: center; gap: .3rem;
    flex: 1; min-width: 240px; max-width: 420px;
    padding: .3rem; border-radius: 99px;
    background: #fff; box-shadow: var(--clay);
}
.search input { flex: 1; min-width: 0; padding: .55rem .9rem; border: 0; background: none; font: 700 .95rem var(--body); color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: var(--clay), 0 0 0 4px rgba(91,75,245,.18); }
.search button { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--indigo-deep); }
.search button:active { translate: 0 2px; box-shadow: 0 1px 0 var(--indigo-deep); }
.search button svg { width: 18px; height: 18px; }

.table-card { background: #fff; border-radius: 30px; box-shadow: var(--clay); overflow: hidden; }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
table.data th { position: sticky; top: 0; padding: .95rem .85rem; background: #F6F7FF; text-align: left; font-weight: 800; font-size: .84rem; color: var(--ink-soft); white-space: nowrap; }
table.data td { padding: 1rem .85rem; border-top: 2px solid var(--mist); vertical-align: top; }
table.data tbody tr:hover td { background: #FBFBFF; }
.case-id { font-weight: 800; color: var(--indigo); }
.reporter { min-width: 120px; }
.reporter b { display: block; font-weight: 800; }
.reporter small { font-weight: 700; color: var(--ink-soft); }
.title-cell { font-weight: 800; min-width: 150px; max-width: 200px; overflow-wrap: break-word; }
.cell-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.head-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.desc-cell { min-width: 200px; max-width: 260px; color: var(--ink-soft); font-weight: 600; line-height: 1.45; }
.ai-tag { display: inline-block; margin-right: .3rem; padding: .05rem .45rem; border-radius: 99px; background: var(--mint); color: var(--ink); font-weight: 900; font-size: .72rem; box-shadow: inset 0 -2px 0 var(--mint-deep); }
.ev-links { display: grid; gap: .4rem; justify-items: start; }
.date-cell { white-space: nowrap; }
.date-cell small { display: block; margin-top: .15rem; font-weight: 700; font-size: .8rem; color: var(--ink-soft); }
.manage { display: grid; gap: .5rem; min-width: 178px; }
.manage select.field-input { padding: .6rem 2.4rem .6rem .9rem; border-radius: 14px; font-size: .92rem; background-position: right .7rem center; }
.file-mini { position: relative; display: flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border: 2px dashed #C6C9EE; border-radius: 14px; font-weight: 800; font-size: .84rem; color: var(--ink-soft); cursor: pointer; }
.file-mini input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-mini:hover, .file-mini:focus-within { border-color: var(--indigo); color: var(--indigo); }
.file-mini.is-filled { border-style: solid; border-color: var(--mint); color: #13624E; background: #E6FAF3; }
.file-mini svg { width: 16px; height: 16px; flex: none; }
.file-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.table-empty { padding: 3rem 1rem !important; text-align: center; color: var(--ink-soft); font-weight: 700; }

/* ---------- print (admin "Print / PDF") ---------- */
@media print {
    body { background: #fff; }
    body::after, #wipe, .confetti-dot, .print-hide, .app-top { display: none !important; }
    .app-main { padding: 0; max-width: none; }
    .table-card, .panel, .stat { box-shadow: none; border: 1px solid #ccc; }
    table.data { min-width: 0; font-size: 10px; }
    table.data th { position: static; }
    .pill, .tag { box-shadow: none; border: 1px solid #999; }
}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; gap: 1rem; min-height: 0; padding: .9rem; }
    .auth-stage { padding: 1.1rem 1.3rem 1.6rem; border-radius: 34px; }
    /* robot on the left, speech bubble beside it */
    .auth-stage .mascot {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center; justify-items: start;
        gap: .9rem;
        padding: 1.1rem 0 1.2rem;
    }
    .auth-stage .robot-btn { width: 118px; }
    .auth-stage .bubble { position: relative; grid-column: 2; grid-row: 1; top: auto; left: auto; translate: none; max-width: 230px; font-size: .92rem; }
    .auth-stage .platform { display: none; }
    .auth-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
    .auth-lede { font-size: 1rem; }
    .deco-sun { width: 120px; height: 120px; right: -40px; top: 22%; }
    .auth-stage .deco-ring { display: none; }
    .deco-pill { display: none; }
    .auth-panel { padding: 0 0 1.5rem; }
    .auth-card { max-width: 560px; }
}
@media (max-width: 1000px) {
    .dash-grid, .analytics { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .hello-band { grid-template-columns: 1fr; padding: 1.4rem 1.3rem; border-radius: 30px; gap: 1rem; }
    .hello-band .mascot { order: -1; }
    .hello-band .robot-btn { width: 96px; }
    .hello-band .deco-sun { width: 110px; height: 110px; right: -40px; top: -40px; }
    .hello-band .deco-pill { display: none; }
    .who-chip .who-name { display: none; }
    .panel { padding: 1.4rem 1.2rem 1.6rem; border-radius: 28px; }
    .insight { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "bot talk" "form form"; column-gap: .9rem; }
    .insight .robot-btn { width: 84px; }
    .ask-row { flex-direction: column; }
    .toolbar .spacer { display: none; }
    .seg, .search { width: 100%; max-width: none; }
    .search input { width: 100%; flex: 1; }
}
@media (max-width: 520px) {
    .brand-name small { display: none; }
    .stat-num { font-size: 2.2rem; }
    .app-top-inner { padding: .7rem .9rem; }
    .app-main { padding: .3rem .9rem 3rem; }
    .brand-badge { width: 40px; height: 40px; font-size: .95rem; }
    .auth-card { padding: 1.8rem 1.3rem 1.5rem; border-radius: 30px; }
    .role-picker { grid-template-columns: 1fr; }
    .simple-card { padding: 1.6rem 1.3rem 2rem; border-radius: 32px; }
    .center-page .deco-sun { width: 100px; height: 100px; right: -20px; }
}

/* ------------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .btn, .pw-toggle, .role-face, .back-link, .field-input { transition: none; }
    .btn .btn-spinner { animation-duration: 1.6s; }
    .countdown i { animation: none; transform: scaleX(1); }
}

/* ==================================================================
   AWARENESS v2 — awareness.php · awareness_topik.php · awareness_kuiz.php
   Semua class guna prefix .aw- supaya tak bertembung dengan halaman lain.
   Guna token :root, .btn, .brand, .back-link, .deco, .field dari atas.
   ================================================================== */

.aw-page {
    --wrap: min(1160px, 100% - 40px);
    --clay-sm: 0 12px 24px -12px rgba(63, 49, 214, .35),
               inset 0 -6px 0 rgba(30, 27, 75, .06),
               inset 0 5px 8px rgba(255, 255, 255, .9);
    --r-xl: 40px;
    --r-lg: 28px;
    --r-md: 20px;
}
.aw-page h1, .aw-page h2, .aw-page h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.025em; }
.aw-page h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.aw-page h3 { font-size: 1.5rem; font-weight: 800; }
.aw-page img, .aw-page video, .aw-page canvas { max-width: 100%; display: block; }
.aw-page [hidden] { display: none !important; }
.aw-skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.aw-skip:focus { left: 10px; }

/* tone per insiden: --t utama, --td teks gelap, --tl latar cerah, --tc teks atas --t */
.aw-tone--indigo { --t: var(--indigo); --td: var(--indigo-deep); --tl: #E4E1FF; --ts: var(--indigo-deep); --tc: #fff; }
.aw-tone--sun    { --t: var(--sun);    --td: #8A5E00;            --tl: #FFF3CF; --ts: var(--sun-deep);    --tc: var(--ink); }
.aw-tone--coral  { --t: var(--coral);  --td: #B8382A;            --tl: #FFE3DF; --ts: var(--coral-deep);  --tc: var(--ink); }
.aw-tone--mint   { --t: var(--mint);   --td: #0F7A60;            --tl: #D8F7EE; --ts: var(--mint-deep);   --tc: var(--ink); }
.aw-tone--ink    { --t: var(--ink);    --td: var(--ink);         --tl: #E2E3F6; --ts: #0E0C2E;            --tc: #fff; }

/* ---------- nav ---------- */
.aw-nav {
    position: sticky; top: 12px; z-index: 50;
    width: var(--wrap); margin: 12px auto 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 12px; border-radius: 999px;
    background: rgba(255,255,255,.84);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: var(--clay-sm);
}
.aw-nav .brand-badge { width: 42px; height: 42px; }
.aw-nav nav { display: flex; align-items: center; gap: 4px; }
.aw-nav nav a:not(.btn) { padding: .55em .95em; border-radius: 999px; font-weight: 800; color: var(--ink-soft); text-decoration: none; transition: background-color .2s, color .2s; }
.aw-nav nav a:not(.btn):hover { color: var(--indigo); }
.aw-nav nav a[aria-current="page"] { color: var(--indigo); background: var(--mist); }
.aw-nav .btn { white-space: nowrap; }
@media (max-width: 560px) {
    .aw-nav .brand-name small { display: none; }
    .aw-nav nav a:not(.btn) { padding: .5em .6em; font-size: .92rem; }
    .aw-nav .btn-sm { padding: .55rem .8rem; font-size: .85rem; }
}

/* ---------- section shell ---------- */
.aw-section { width: var(--wrap); margin: 0 auto; padding-top: 100px; }
.aw-head { max-width: 640px; margin-bottom: 36px; }
.aw-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.1rem; font-weight: 600; }
.aw-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.aw-line > span { display: inline-block; }

/* ==================================================================
   HUB — hero
   ================================================================== */
.aw-hero {
    width: var(--wrap); margin: 0 auto;
    min-height: min(90vh, 860px);
    display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
    padding: 50px 0 30px;
}
.aw-kicker {
    display: inline-flex; align-items: center; gap: .5em;
    font-weight: 800; font-size: .95rem; color: var(--indigo-deep);
    background: #fff; padding: .5em 1.1em; border-radius: 999px; box-shadow: var(--clay-sm); margin-bottom: 22px;
}
.aw-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(53,207,168,.25); }
.aw-hero-title { font-size: clamp(2.8rem, 6.2vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .96; }
.aw-line--pop > span {
    color: var(--indigo);
    text-shadow: 0 6px 0 #D9D5FF;
    position: relative;
}
.aw-lead { max-width: 33em; margin-top: 24px; font-size: 1.15rem; font-weight: 600; color: var(--ink-soft); }
.aw-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.aw-progress-chip {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
    padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--clay-sm);
    font-weight: 700; color: var(--ink-soft);
}
.aw-progress-chip b { color: var(--ink); font-weight: 900; }
.aw-progress-chip svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.aw-ring-bg { fill: none; stroke: var(--mist); stroke-width: 5; }
.aw-ring-fg { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset 1s var(--bounce); }

.aw-hero-art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: center; }
.aw-orbit-ring {
    position: absolute; left: 50%; top: 50%; width: 96%; height: 42%;
    border: 3px dashed rgba(91,75,245,.28); border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
}
.aw-shield {
    position: absolute; left: 50%; top: 50%; width: 56%; z-index: 2;
    transform: translate(-50%, -52%);
    filter: drop-shadow(0 30px 30px rgba(63,49,214,.35));
    will-change: transform;
}
.aw-shield svg { width: 100%; height: auto; }
.aw-planet {
    position: absolute; left: 50%; top: 50%; z-index: 3;
    width: 68px; height: 68px; margin: -34px 0 0 -34px;
    display: grid; place-items: center; font-size: 32px;
    border-radius: 24px; background: var(--tl);
    box-shadow: 0 16px 24px -12px var(--ts), inset 0 -6px 0 rgba(30,27,75,.08), inset 0 5px 8px rgba(255,255,255,.9);
    will-change: transform;
}
.aw-spark { position: absolute; color: var(--sun); font-size: 30px; text-shadow: 0 3px 0 var(--sun-deep); }
.aw-spark--1 { left: 8%; top: 12%; }
.aw-spark--2 { right: 4%; top: 64%; font-size: 22px; }
.aw-spark--3 { left: 20%; bottom: 6%; font-size: 18px; color: var(--coral); text-shadow: 0 3px 0 var(--coral-deep); }

@media (prefers-reduced-motion: no-preference) {
    .aw-spark { animation: aw-twinkle 2.4s ease-in-out infinite; }
    .aw-spark--2 { animation-delay: .8s; } .aw-spark--3 { animation-delay: 1.6s; }
    .aw-sound { animation: aw-sound 1.6s ease-out infinite; }
    .aw-sound--2 { animation-delay: .25s; }
}
@keyframes aw-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }
@keyframes aw-sound { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

@media (max-width: 880px) {
    .aw-hero { grid-template-columns: 1fr; padding-top: 24px; min-height: 0; gap: 10px; }
    .aw-hero-art { max-width: 380px; order: -1; }
    .aw-planet { width: 54px; height: 54px; margin: -27px 0 0 -27px; font-size: 25px; border-radius: 18px; }
}

/* ---------- marquee ---------- */
.aw-marquee {
    width: 112vw; margin: 60px 0 0 -6vw; overflow: hidden;
    background: var(--indigo); color: #fff;
    transform: rotate(-2deg);
    box-shadow: 0 20px 36px -20px rgba(63,49,214,.8), inset 0 -6px 0 var(--indigo-deep), inset 0 5px 8px rgba(255,255,255,.2);
}
.aw-marquee-track { display: flex; width: max-content; padding: 18px 0; }
.aw-marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 800 clamp(1.2rem, 2.4vw, 1.7rem)/1 var(--display); white-space: nowrap; }
.aw-marquee-group i { font-style: normal; color: var(--sun); }
@media (prefers-reduced-motion: no-preference) {
    .aw-marquee-track { animation: aw-marquee 38s linear infinite; }
}
@keyframes aw-marquee { to { transform: translateX(-50%); } }

/* ==================================================================
   HUB — peta misi
   ================================================================== */
.aw-map { position: relative; list-style: none; display: grid; gap: 26px; max-width: 1000px; margin: 0 auto; }
.aw-road {
    position: absolute; left: 50%; top: 20px; bottom: 20px; width: 12px; margin-left: -6px;
    border-radius: 99px; background: #fff; overflow: hidden;
    box-shadow: inset 0 3px 6px rgba(30,27,75,.1);
}
.aw-road-fill {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(var(--indigo), var(--coral) 35%, var(--sun) 65%, var(--mint));
    transform-origin: top center; transform: scaleY(1);
}
html.js-motion .aw-road-fill { transform: scaleY(0); }
.aw-station { position: relative; width: calc(50% - 50px); }
.aw-station:nth-child(odd) { margin-left: auto; }
.aw-node {
    position: absolute; top: 50%; z-index: 2;
    width: 48px; height: 48px; margin-top: -24px;
    display: grid; place-items: center;
    border-radius: 50%; background: #fff; color: var(--ink);
    font: 800 1.15rem var(--display);
    box-shadow: 0 6px 0 var(--mist-deep), 0 12px 20px -10px rgba(63,49,214,.5);
    transition: background-color .3s, color .3s, box-shadow .3s;
}
.aw-station:nth-child(even) .aw-node { right: -74px; }
.aw-station:nth-child(odd) .aw-node { left: -74px; }
.aw-station.is-done .aw-node { background: var(--mint); box-shadow: 0 6px 0 var(--mint-deep), 0 12px 20px -10px rgba(34,168,134,.6); }

.aw-station-card {
    position: relative; display: flex; align-items: center; gap: 18px;
    padding: 20px 20px 20px 20px; border-radius: var(--r-lg);
    background: #fff; color: var(--ink); text-decoration: none;
    box-shadow: var(--clay);
    transition: transform .25s var(--bounce), box-shadow .25s;
}
.aw-station-card:hover { transform: translateY(-5px) rotate(-.6deg); }
.aw-station-card:active { transform: translateY(2px) scale(.99); }
.aw-station-icon {
    flex: none; width: 70px; height: 70px; display: grid; place-items: center; font-size: 34px;
    border-radius: 24px; background: var(--tl);
    box-shadow: inset 0 -6px 0 rgba(30,27,75,.07), inset 0 5px 8px rgba(255,255,255,.9), 0 12px 18px -12px var(--ts);
    transition: transform .35s var(--bounce);
}
.aw-station-card:hover .aw-station-icon { transform: rotate(-10deg) scale(1.08); }
.aw-station-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.aw-station-text small { font-weight: 900; font-size: .82rem; color: var(--td); }
.aw-station-text b { font: 800 1.35rem/1.1 var(--display); letter-spacing: -.02em; }
.aw-station-text span { color: var(--ink-soft); font-weight: 600; font-size: .96rem; line-height: 1.4; }
.aw-station-go {
    flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--t); color: var(--tc); box-shadow: inset 0 -4px 0 var(--ts);
    transition: transform .25s var(--bounce);
}
.aw-station-go svg { width: 20px; height: 20px; }
.aw-station-card:hover .aw-station-go { transform: translateX(4px); }
.aw-done-stamp {
    position: absolute; top: -12px; right: 18px;
    padding: .2em .6em; border: 3px solid var(--mint-deep); border-radius: 10px;
    background: #fff; color: var(--mint-deep);
    font: 800 .95rem var(--display); letter-spacing: .08em;
    transform: rotate(10deg) scale(2.2); opacity: 0;
    transition: transform .45s var(--bounce), opacity .2s;
}
.aw-station.is-done .aw-done-stamp { transform: rotate(10deg) scale(1); opacity: 1; }

.aw-station--final .aw-station-card { background: var(--ink); color: #fff; }
.aw-station--final .aw-station-text small { color: var(--sun); }
.aw-station--final .aw-station-text span { color: rgba(255,255,255,.75); }
.aw-station--final .aw-station-icon { background: var(--sun); box-shadow: inset 0 -6px 0 var(--sun-deep), inset 0 5px 8px rgba(255,255,255,.6); }
.aw-station--final .aw-station-go { background: var(--sun); color: var(--ink); box-shadow: inset 0 -4px 0 var(--sun-deep); }
.aw-station--final .aw-node { background: var(--sun); box-shadow: 0 6px 0 var(--sun-deep); font-size: 1.4rem; }

@media (max-width: 760px) {
    .aw-road { left: 24px; }
    .aw-station, .aw-station:nth-child(odd) { width: auto; margin-left: 66px; }
    .aw-station:nth-child(even) .aw-node, .aw-station:nth-child(odd) .aw-node { left: -66px; right: auto; }
    .aw-station-card { gap: 14px; padding: 16px; }
    .aw-station-icon { width: 56px; height: 56px; font-size: 27px; border-radius: 18px; }
    .aw-station-go { display: none; }
    .aw-station-text b { font-size: 1.2rem; }
}

/* ==================================================================
   HUB — komik Kisah Aina (tiada scroll-jacking)
   ================================================================== */
.aw-comic {
    position: relative; padding: 22px; border-radius: var(--r-xl);
    background: #fff; box-shadow: var(--clay);
    touch-action: pan-y;
}
.aw-comic:focus-visible { outline-offset: 6px; }
.aw-comic-stage { display: grid; perspective: 1600px; }
.aw-panel {
    grid-area: 1 / 1;
    display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 36px;
    visibility: hidden; opacity: 0;
    transform-origin: 50% 50%;
}
.aw-panel.is-active { visibility: visible; opacity: 1; }
.aw-panel-art {
    position: relative; min-height: 320px; padding: 12px;
    display: grid; place-items: center; align-content: center; gap: 10px;
    border-radius: var(--r-lg); background: var(--mist);
    box-shadow: inset 0 6px 14px rgba(30,27,75,.08);
}
.aw-panel[data-step="2"] .aw-panel-art { background: #FFF6DC; }
.aw-panel[data-step="3"] .aw-panel-art { background: #E4E1FF; }
.aw-panel[data-step="4"] .aw-panel-art { background: #DDF8EF; }
.aw-panel-art > svg { width: 100%; height: auto; }
.aw-panel-copy { padding-right: 20px; }
.aw-panel-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.aw-panel-copy p { margin-top: 12px; color: var(--ink-soft); font-size: 1.12rem; font-weight: 600; }
.aw-step { display: inline-block; margin-bottom: 4px; font: 700 1.6rem var(--hand); color: var(--coral-deep); }

.aw-svg-hand { font: 700 22px var(--hand); fill: var(--indigo-deep); }
.aw-svg-bold { font: 800 15px var(--body); fill: var(--ink); }
.aw-svg-chalk { font: 700 22px var(--hand); fill: #E9FFF6; }
.aw-svg-star { font-size: 28px; fill: var(--sun); }
.aw-pop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.5); transition: opacity .35s, transform .55s var(--bounce); }
.aw-panel.is-live .aw-pop { opacity: 1; transform: scale(1); transition-delay: .35s; }
.aw-panel.is-live .aw-pop + .aw-pop { transition-delay: .6s; }
.aw-kid { transform-box: fill-box; transform-origin: 50% 100%; }
.aw-panel.is-live .aw-kid { animation: aw-kid-bob 2.6s ease-in-out infinite; }
.aw-panel.is-live g:nth-of-type(2n) > .aw-kid { animation-delay: -.9s; }
@keyframes aw-kid-bob { 50% { transform: translateY(-4px) scaleY(1.02); } }

.aw-phone { position: relative; width: 220px; aspect-ratio: 9 / 17; padding: 10px; border-radius: 36px; background: var(--ink); transform: rotate(-4deg); box-shadow: 0 30px 50px -20px rgba(30,27,75,.55), inset 0 2px 2px rgba(255,255,255,.2); }
.aw-phone-notch { position: absolute; left: 50%; top: 14px; z-index: 2; width: 70px; height: 16px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.aw-phone-screen { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 40px 14px 14px; border-radius: 28px; background: var(--mist); }
.aw-phone-title { font: 800 1.05rem var(--display); }
.aw-field { min-height: 46px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: var(--clay-sm); }
.aw-field small { display: block; font-size: .68rem; font-weight: 800; color: var(--ink-soft); }
.aw-field--tall { min-height: 86px; }
.aw-type { font-size: .8rem; font-weight: 700; line-height: 1.35; }
.aw-type.is-typing::after { content: "|"; margin-left: 1px; color: var(--indigo); animation: aw-blink .8s steps(1) infinite; }
@keyframes aw-blink { 50% { opacity: 0; } }
.aw-phone-btn { margin-top: auto; padding: 10px; border-radius: 999px; text-align: center; font-weight: 900; font-size: .85rem; color: #fff; background: var(--indigo); box-shadow: 0 5px 0 var(--indigo-deep); transition: translate .12s, box-shadow .12s; }
.aw-phone-btn.is-pressed { translate: 0 4px; box-shadow: 0 1px 0 var(--indigo-deep); }
.aw-phone-ok { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px; border-radius: 999px; text-align: center; font-weight: 900; font-size: .85rem; background: var(--mint); transform: translateY(160%); transition: transform .5s var(--bounce); }
.aw-phone-ok.is-shown { transform: none; }

.aw-status { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aw-status li { padding: .45em .9em; border-radius: 999px; background: #fff; color: var(--ink-soft); font-weight: 800; font-size: .9rem; box-shadow: var(--clay-sm); transition: background-color .3s, color .3s; }
.aw-panel.is-live .aw-status li { background: var(--mint); color: var(--ink); }
.aw-panel.is-live .aw-status li:nth-child(1) { transition-delay: .3s; }
.aw-panel.is-live .aw-status li:nth-child(2) { transition-delay: .8s; }
.aw-panel.is-live .aw-status li:nth-child(3) { transition-delay: 1.3s; }

.aw-comic-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.aw-round {
    width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: #fff; color: var(--ink);
    box-shadow: 0 6px 0 var(--mist-deep), 0 14px 22px -12px rgba(63,49,214,.4);
    transition: translate .12s, box-shadow .12s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.aw-round svg { width: 24px; height: 24px; }
.aw-round:active { translate: 0 4px; box-shadow: 0 2px 0 var(--mist-deep); }
.aw-round--main { background: var(--indigo); color: #fff; box-shadow: 0 6px 0 var(--indigo-deep), 0 14px 22px -10px rgba(63,49,214,.6); }
.aw-round--main:active { box-shadow: 0 2px 0 var(--indigo-deep); }
.aw-round[disabled] { opacity: .35; pointer-events: none; }
.aw-dots { display: flex; gap: 8px; }
.aw-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; background: var(--mist-deep); cursor: pointer; transition: width .35s var(--bounce), background-color .3s; }
.aw-dots button[aria-selected="true"] { width: 34px; background: var(--indigo); }

@media (max-width: 800px) {
    .aw-comic { padding: 14px; }
    .aw-panel { grid-template-columns: 1fr; gap: 16px; }
    .aw-panel-art { min-height: 250px; }
    .aw-panel-copy { padding: 0 6px 4px; }
}

/* ==================================================================
   Pingat 3D (dikongsi)
   ================================================================== */
.aw-medal { --s: 230px; position: relative; width: var(--s); height: var(--s); perspective: 900px; }
.aw-medal-spin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.aw-medal-face {
    position: absolute; inset: 0; border-radius: 50%;
    display: grid; place-content: center; justify-items: center; text-align: center;
    backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
    background: radial-gradient(circle at 32% 26%, #FFF6D0 0 8%, #FFD95E 34%, var(--sun) 58%, var(--sun-deep) 100%);
    box-shadow: inset 0 0 0 calc(var(--s) * .045) rgba(224,165,26,.6), inset 0 0 0 calc(var(--s) * .07) #FFE59A, inset 0 calc(var(--s) * -.05) calc(var(--s) * .08) rgba(150,95,0,.35);
}
.aw-medal-front { transform: translateZ(7px); }
.aw-medal-back { transform: rotateY(180deg) translateZ(7px); color: #6B4500; gap: 2px; }
.aw-medal-front::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%);
    background-size: 260% 100%; background-position: 130% 0;
}
.aw-medal-edge { position: absolute; inset: 1px; border-radius: 50%; background: #C98E10; transform: translateZ(var(--z)); }
.aw-medal-star { width: 46%; height: auto; fill: #FFF8DF; filter: drop-shadow(0 calc(var(--s) * .015) 0 rgba(150,95,0,.45)); }
.aw-medal-label { margin-top: 4%; font: 800 calc(var(--s) * .1)/1 var(--display); letter-spacing: .14em; color: #7A4F00; }
.aw-medal-back small { font: 800 calc(var(--s) * .055)/1.2 var(--body); letter-spacing: .04em; }
.aw-medal-name { max-width: 78%; font: 700 calc(var(--s) * .15)/1 var(--hand); overflow-wrap: anywhere; }
.aw-medal-date { opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
    .aw-medal--idle .aw-medal-spin { animation: aw-medal-idle 8s ease-in-out infinite; }
    .aw-medal-front::after { animation: aw-medal-shine 3.8s ease-in-out infinite; }
}
@keyframes aw-medal-idle {
    0%   { transform: rotateY(-22deg) rotateX(6deg); }
    30%  { transform: rotateY(22deg) rotateX(-4deg); }
    60%  { transform: rotateY(-22deg) rotateX(6deg); }
    100% { transform: rotateY(338deg) rotateX(6deg); }
}
@keyframes aw-medal-shine { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
.aw-medal--locked { filter: grayscale(1) contrast(.9) brightness(1.05); opacity: .75; }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }

/* quiz band di hub */
.aw-quizband {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px;
    padding: clamp(28px, 5vw, 60px); border-radius: 44px;
    background: var(--ink); color: #fff;
    box-shadow: 0 30px 50px -24px rgba(30,27,75,.8), inset 0 -10px 0 #0E0C2E, inset 0 8px 14px rgba(255,255,255,.12);
}
.aw-quizband-rays {
    position: absolute; z-index: -1; right: -20%; top: 50%; width: 900px; height: 900px; margin-top: -450px;
    background: repeating-conic-gradient(rgba(255,200,61,.14) 0 8deg, transparent 8deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%);
}
@media (prefers-reduced-motion: no-preference) { .aw-quizband-rays, .aw-award-rays { animation: aw-spin 60s linear infinite; } }
@keyframes aw-spin { to { transform: rotate(360deg); } }
.aw-quizband-copy p { margin: 14px 0 26px; max-width: 30em; font-size: 1.12rem; font-weight: 600; opacity: .85; }
.aw-quizband-medal { justify-self: center; }
.aw-quizband .aw-medal { --s: clamp(180px, 24vw, 260px); }
@media (max-width: 800px) { .aw-quizband { grid-template-columns: 1fr; text-align: center; } .aw-quizband-medal { order: -1; } .aw-quizband-copy p { margin-inline: auto; } }

/* ---------- helplines + final CTA ---------- */
.aw-help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.aw-line-card {
    display: flex; flex-direction: column; gap: 2px; padding: 22px;
    border-radius: var(--r-lg); background: var(--tl); color: var(--ink); text-decoration: none;
    box-shadow: 0 6px 0 rgba(30,27,75,.07), 0 16px 26px -16px var(--ts);
    transition: translate .12s, box-shadow .12s;
}
.aw-line-card:active { translate: 0 4px; box-shadow: 0 2px 0 rgba(30,27,75,.07); }
.aw-line-card b { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); }
.aw-line-card span { font-weight: 900; }
.aw-line-card small { font-weight: 700; color: var(--ink-soft); }
@media (max-width: 900px) { .aw-help { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .aw-help { grid-template-columns: 1fr; } }

.aw-final {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(28px, 5vw, 56px); border-radius: 44px;
    background: var(--indigo); color: #fff;
    box-shadow: 0 30px 50px -24px rgba(63,49,214,.8), inset 0 -12px 0 var(--indigo-deep), inset 0 10px 18px rgba(255,255,255,.2);
}
.aw-final p { margin-top: 8px; font-size: 1.15rem; font-weight: 600; opacity: .88; }
.aw-footer { padding: 60px 20px 40px; text-align: center; font-weight: 700; font-size: .95rem; color: var(--ink-soft); }

/* ==================================================================
   TOPIK — satu misi
   ================================================================== */
.aw-topic-hero {
    position: relative; overflow: hidden; isolation: isolate;
    width: var(--wrap); margin: 20px auto 0;
    padding: 26px clamp(22px, 4vw, 48px) 34px;
    border-radius: 44px; background: var(--t); color: var(--tc);
    box-shadow: 0 30px 50px -26px var(--ts), inset 0 -10px 0 var(--ts), inset 0 8px 14px rgba(255,255,255,.25);
}
.aw-topic-hero > :not(.deco) { position: relative; z-index: 1; }
.aw-topic-hero .deco-sun { width: 190px; height: 190px; right: -60px; top: auto; bottom: -80px; }
.aw-topic-hero .deco-ring { left: 42%; right: auto; bottom: -58px; }
.aw-tone--sun.aw-topic-hero .deco-sun { background: radial-gradient(circle at 32% 28%, #FFD0C9 0 18%, var(--coral) 55%, var(--coral-deep)); }
.aw-tone--coral.aw-topic-hero .deco-ring { border-color: var(--sun); }
.aw-topic-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aw-topic-hero .back-link { color: inherit; }
.aw-mission-count { font-weight: 900; padding: .45em .9em; border-radius: 999px; background: rgba(255,255,255,.22); }
.aw-topic-main { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); margin-top: 34px; }
.aw-topic-icon {
    flex: none; width: clamp(96px, 14vw, 140px); aspect-ratio: 1; display: grid; place-items: center;
    border-radius: 36px; background: #fff; font-size: clamp(48px, 7vw, 72px);
    box-shadow: 0 18px 30px -14px rgba(30,27,75,.5), inset 0 -8px 0 rgba(30,27,75,.08), inset 0 6px 10px #fff;
}
.aw-topic-icon span { display: block; }
@media (prefers-reduced-motion: no-preference) { .aw-topic-icon span { animation: aw-wobble 3.4s ease-in-out infinite; } }
@keyframes aw-wobble { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
.aw-topic-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; text-shadow: 0 5px 0 rgba(30,27,75,.14); }
.aw-topic-short { margin-top: 10px; max-width: 30em; font-size: 1.15rem; font-weight: 700; opacity: .9; }
.aw-mission-bar { display: flex; gap: 8px; margin-top: 30px; }
.aw-mission-bar i { flex: 1; height: 10px; border-radius: 99px; background: currentColor; opacity: .2; transition: opacity .4s; }
.aw-mission-bar i.is-done { opacity: .55; }
.aw-mission-bar i.is-here { opacity: 1; }
@media (max-width: 560px) { .aw-topic-main { flex-direction: column; align-items: flex-start; } }

.aw-topic-body { width: min(900px, 100% - 40px); margin: 0 auto; }
.aw-block { margin-top: 80px; }
.aw-block h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.aw-what { max-width: 38em; font-size: 1.25rem; font-weight: 600; line-height: 1.55; }
.aw-mini-label { margin: 28px 0 14px; font: 700 1.6rem var(--hand); color: var(--td); }
.aw-examples { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.aw-examples li {
    padding: 14px 18px; border-radius: 22px 22px 22px 6px;
    background: #fff; font-weight: 700; line-height: 1.35; box-shadow: var(--clay-sm);
    transform: rotate(var(--r, 0deg));
}
.aw-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aw-sign { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 24px; background: var(--tl); box-shadow: inset 0 -5px 0 rgba(30,27,75,.05); }
.aw-sign > span { flex: none; width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; border-radius: 18px; background: #fff; box-shadow: 0 8px 14px -10px var(--ts); }
.aw-sign p { font-weight: 700; line-height: 1.4; }
@media (max-width: 640px) { .aw-signs { grid-template-columns: 1fr; } }

/* game: buat atau jangan */
.aw-sortwrap { padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--clay); }
.aw-sort-head p { margin: -8px 0 22px; color: var(--ink-soft); font-weight: 600; }
.aw-sort-stack { position: relative; display: grid; min-height: 240px; margin-bottom: 26px; }
.aw-sort-card, .aw-sort-done { grid-area: 1 / 1; }
.aw-sort-card {
    --k: 0;
    position: relative; display: flex; flex-direction: column; justify-content: center;
    padding: 28px 30px; border-radius: 30px;
    background: var(--tl); color: var(--ink);
    box-shadow: 0 16px 26px -16px var(--ts), inset 0 -6px 0 rgba(30,27,75,.06), inset 0 5px 8px rgba(255,255,255,.8);
    transform: translateY(calc(var(--k) * 12px)) scale(calc(1 - var(--k) * .05));
    transition: transform .4s var(--bounce);
    touch-action: pan-y; user-select: none; cursor: grab;
}
.aw-sort-card:not(.is-top) { pointer-events: none; }
.aw-sort-card.is-gone { visibility: hidden; }
.aw-sort-card.is-dragging { transition: none; cursor: grabbing; }
.aw-sort-num { font-weight: 900; font-size: .85rem; color: var(--td); }
.aw-sort-card p { margin-top: 8px; font: 700 clamp(1.3rem, 3vw, 1.7rem)/1.25 var(--display); }
.aw-sort-tag {
    position: absolute; top: 18px; padding: .2em .55em; border: 3px solid currentColor; border-radius: 10px;
    font: 800 1rem var(--display); letter-spacing: .08em; opacity: 0;
}
.aw-sort-tag--no { left: 18px; color: var(--coral-deep); transform: rotate(-12deg); opacity: calc(var(--drag, 0) * -1); }
.aw-sort-tag--yes { right: 18px; color: var(--mint-deep); transform: rotate(12deg); opacity: var(--drag, 0); }
.aw-sort-done { display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 20px; }
.aw-sort-score { font: 800 3.4rem/1 var(--display); color: var(--td); }
.aw-sort-msg { font-weight: 700; color: var(--ink-soft); }
.aw-sort-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aw-choice-btn {
    display: flex; align-items: center; justify-content: center; gap: .5em;
    padding: 1rem; border: 0; border-radius: 22px; cursor: pointer;
    font: 800 1.1rem var(--body);
    transition: translate .12s, box-shadow .12s, opacity .2s;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.aw-choice-btn span { font-size: 1.3em; }
.aw-choice-btn--no { background: #FFE3DF; color: #8A2A20; box-shadow: 0 6px 0 #F5B3A9; }
.aw-choice-btn--yes { background: #D8F7EE; color: #0F5E4A; box-shadow: 0 6px 0 #9FE3CE; }
.aw-choice-btn:active { translate: 0 4px; box-shadow: 0 2px 0 rgba(30,27,75,.1); }
.aw-choice-btn[disabled] { opacity: .4; pointer-events: none; }
.aw-sort-feedback { min-height: 3em; margin-top: 16px; padding: 12px 16px; border-radius: 18px; font-weight: 700; line-height: 1.4; background: var(--mist); color: var(--ink-soft); }
.aw-sort-feedback:empty { background: transparent; }
.aw-sort-feedback.is-right { background: #DDF8EF; color: #0F5E4A; }
.aw-sort-feedback.is-wrong { background: #FFE9E6; color: #8A2A20; }

.aw-steps { list-style: none; counter-reset: aw-step; display: grid; gap: 14px; }
.aw-steps li {
    counter-increment: aw-step; position: relative;
    padding: 18px 20px 18px 78px; border-radius: 24px; background: #fff;
    font-weight: 700; font-size: 1.08rem; box-shadow: var(--clay-sm);
}
.aw-steps li::before {
    content: counter(aw-step); position: absolute; left: 16px; top: 50%; margin-top: -23px;
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px;
    background: var(--t); color: var(--tc); font: 800 1.3rem var(--display);
    box-shadow: inset 0 -4px 0 var(--ts);
}

.aw-note {
    position: relative; max-width: 620px; margin: 80px auto 0; padding: 34px 32px 28px;
    border-radius: 8px 8px 28px 8px; background: #FFF4C2; color: #4A3500;
    box-shadow: 0 22px 30px -20px rgba(160,110,0,.55), inset 0 -6px 0 rgba(160,110,0,.1);
    transform: rotate(-1.5deg);
}
.aw-note b { display: block; font: 700 2rem/1 var(--hand); color: #8A5E00; margin-bottom: 8px; }
.aw-note p { font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
.aw-note-pin { position: absolute; left: 50%; top: -12px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--coral); box-shadow: inset 0 -4px 0 var(--coral-deep), 0 6px 8px -4px rgba(0,0,0,.35); }

.aw-finish {
    margin-top: 80px; padding: clamp(28px, 5vw, 50px); text-align: center;
    border-radius: 44px; background: #fff; box-shadow: var(--clay);
}
.aw-finish p { margin: 10px auto 24px; max-width: 30em; color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; }
.aw-finish-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.aw-pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; }
.aw-pager-link {
    display: grid; gap: 2px; padding: 14px 20px; border-radius: 22px;
    background: #fff; color: var(--ink); text-decoration: none; font-weight: 800;
    box-shadow: 0 5px 0 var(--mist-deep);
    transition: translate .12s, box-shadow .12s;
}
.aw-pager-link small { font-weight: 700; font-size: .8rem; color: var(--ink-soft); }
.aw-pager-link--next { text-align: right; margin-left: auto; }
.aw-pager-link:active { translate: 0 3px; box-shadow: 0 2px 0 var(--mist-deep); }

.aw-bigstamp {
    position: fixed; inset: 0; z-index: 82; display: grid; place-items: center; pointer-events: none;
    visibility: hidden;
}
.aw-bigstamp span {
    padding: .25em .45em; border: 10px solid var(--mint-deep); border-radius: 26px;
    background: rgba(255,255,255,.92); color: var(--mint-deep);
    font: 800 clamp(3rem, 12vw, 6.5rem)/.95 var(--display); letter-spacing: .04em; text-align: center;
    transform: rotate(-12deg);
    box-shadow: 0 30px 60px -20px rgba(30,27,75,.5);
}

/* ==================================================================
   KUIZ
   ================================================================== */
.aw-quizpage { width: var(--wrap); margin: 0 auto; padding-top: 34px; }
.aw-qcard {
    position: relative; max-width: 780px; margin: 0 auto; padding: clamp(24px, 5vw, 52px);
    border-radius: 44px; background: #fff; box-shadow: var(--clay);
}
.aw-q-intro { text-align: center; }
.aw-q-intro-medal { position: relative; width: max-content; margin: 0 auto 18px; }
.aw-q-intro .aw-medal { --s: 170px; }
.aw-lock { position: absolute; right: -8px; bottom: 6px; width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; border-radius: 50%; background: #fff; box-shadow: var(--clay-sm); }
.aw-q-intro h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.aw-q-intro > p { margin: 12px auto 0; max-width: 32em; color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; }
.aw-q-missions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.aw-q-m { width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; border-radius: 16px; background: var(--mist); filter: grayscale(1); opacity: .45; transition: filter .3s, opacity .3s; }
.aw-q-m.is-done { filter: none; opacity: 1; background: #DDF8EF; box-shadow: inset 0 -4px 0 #A8E9D6; }
.aw-q-tip { min-height: 1.5em; margin: 12px auto 0; font: 700 1.4rem var(--hand); color: var(--coral-deep); }
.aw-q-name { max-width: 420px; margin: 20px auto 18px; text-align: left; }
.aw-q-intro .btn-block { max-width: 420px; }

.aw-q-top { display: flex; align-items: center; gap: 12px; }
.aw-q-topic { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border-radius: 999px; background: var(--tl); color: var(--ink); font-weight: 800; font-size: .92rem; }
.aw-q-num { margin-left: auto; font-weight: 800; color: var(--ink-soft); }
.aw-q-num b { color: var(--ink); font-size: 1.2rem; }
.aw-sound-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; font-size: 18px; box-shadow: 0 3px 0 var(--mist-deep); }
.aw-sound-btn .off { display: none; }
.aw-sound-btn[aria-pressed="false"] .on { display: none; }
.aw-sound-btn[aria-pressed="false"] .off { display: inline; }
.aw-q-segs { display: flex; gap: 5px; margin: 16px 0 26px; }
.aw-q-segs i { flex: 1; height: 9px; border-radius: 99px; background: var(--mist); transition: background-color .3s; }
.aw-q-segs i.is-now { background: var(--indigo); }
.aw-q-segs i.is-right { background: var(--mint); }
.aw-q-segs i.is-wrong { background: var(--coral); }
.aw-q-text { font: 700 clamp(1.35rem, 3.2vw, 1.75rem)/1.3 var(--display); letter-spacing: -.01em; margin-bottom: 22px; }
.aw-opts { display: grid; gap: 12px; }
.aw-opt {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    padding: 16px 18px; border: 0; border-radius: 22px; cursor: pointer;
    background: var(--mist); color: var(--ink); font: 800 1.05rem/1.35 var(--body);
    box-shadow: 0 5px 0 var(--mist-deep);
    transition: translate .12s, box-shadow .12s, background-color .2s;
    -webkit-tap-highlight-color: transparent;
}
.aw-opt:hover { background: #E4E7FF; }
.aw-opt:active { translate: 0 4px; box-shadow: 0 1px 0 var(--mist-deep); }
.aw-opt b { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--indigo); font-weight: 900; }
.aw-opt.is-right { background: #CFF5E9; box-shadow: 0 5px 0 #8FE3C9; }
.aw-opt.is-right b { background: var(--mint); color: var(--ink); }
.aw-opt.is-wrong { background: #FFE0DB; box-shadow: 0 5px 0 #FFB5AB; }
.aw-opt.is-wrong b { background: var(--coral); color: #fff; }
.aw-opt[disabled] { cursor: default; }
.aw-q-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 22px; background: #FFF6DC; font-weight: 700; line-height: 1.4; }
.aw-q-feedback.is-right { background: #DDF8EF; }

.aw-q-result { text-align: center; }
.aw-score-ring { position: relative; width: 170px; height: 170px; margin: 0 auto 18px; }
.aw-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.aw-score-ring .aw-ring-bg, .aw-score-ring .aw-ring-fg { stroke-width: 12; }
.aw-score-ring .aw-ring-fg { stroke: var(--indigo); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: none; }
.aw-score-ring > span { position: absolute; inset: 0; display: grid; place-content: center; font: 800 3rem/1 var(--display); }
.aw-score-ring small { font-size: 1.1rem; color: var(--ink-soft); }
.aw-q-result h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.aw-result-msg { margin: 10px auto 18px; max-width: 30em; color: var(--ink-soft); font-weight: 600; }
.aw-review { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.aw-review a { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em; border-radius: 999px; background: var(--tl); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 rgba(30,27,75,.08); }
.aw-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- majlis pingat ---------- */
.aw-award { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.aw-award[hidden] { display: none; }
.aw-award-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, #4336C9 0, #2A2380 38%, var(--ink) 72%); }
.aw-award-rays {
    position: absolute; left: 50%; top: 42%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
    background: repeating-conic-gradient(rgba(255,200,61,.16) 0 7deg, transparent 7deg 20deg);
    -webkit-mask: radial-gradient(circle, #000 4%, transparent 34%); mask: radial-gradient(circle, #000 4%, transparent 34%);
}
.aw-award-inner { position: relative; display: grid; justify-items: center; padding: 20px; }
.aw-award-score { position: relative; z-index: 3; font: 800 clamp(2.2rem, 7vw, 3.6rem)/1 var(--display); color: var(--sun); text-shadow: 0 5px 0 rgba(0,0,0,.25); }
.aw-award-score span { font-size: 1.5em; }
.aw-award-medalwrap { position: relative; z-index: 1; margin: 24px 0 14px; }
.aw-award .aw-medal { --s: min(250px, 58vw); }
.aw-ribbon { position: absolute; left: 50%; bottom: 72%; z-index: -1; width: 140px; height: 50vh; margin-left: -70px; transform-origin: 50% 0; }
.aw-ribbon i { position: absolute; bottom: 0; width: 62px; height: 100%; }
.aw-ribbon i:first-child { left: 8px; background: linear-gradient(90deg, var(--coral-deep), var(--coral) 40%, var(--coral-deep)); transform: skewX(14deg); transform-origin: bottom; }
.aw-ribbon i:last-child { right: 8px; background: linear-gradient(90deg, var(--indigo-deep), var(--indigo) 40%, var(--indigo-deep)); transform: skewX(-14deg); transform-origin: bottom; }
.aw-sparkle { position: absolute; left: 50%; top: 50%; color: var(--sun); font-size: 30px; transform: translate(-50%, -50%) translate(var(--x), var(--y)); text-shadow: 0 0 18px rgba(255,200,61,.8); }
@media (prefers-reduced-motion: no-preference) { .aw-award.is-live .aw-sparkle { animation: aw-sparkle 1.8s ease-in-out infinite var(--d); } }
@keyframes aw-sparkle { 0%, 100% { opacity: .2; scale: .4; } 50% { opacity: 1; scale: 1.2; } }
.aw-award-title { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.aw-award-sub { margin-top: 8px; font-size: 1.15rem; font-weight: 700; opacity: .85; }
.aw-award-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.aw-confetti { position: fixed; inset: 0; z-index: 85; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .aw-page *, .aw-page *::before, .aw-page *::after { animation: none !important; transition-duration: .01ms !important; }
    .aw-pop { opacity: 1; transform: none; }
    [data-tilt] { transform: none; }
}
