/* ==========================================================
   Umut Akademi – design tokens (prefix: --ua-)
   ========================================================== */
:root {
    --ua-orange: #ff8a3d;
    --ua-orange-d: #e96f1f;
    --ua-ink: #1f2a44;
    --ua-ink-2: #4a5572;
    --ua-muted: #7a849c;
    --ua-line: #e7e9f0;
    --ua-green: #2bb673;
    --ua-green-l: #e3f7ec;
    --ua-red: #ef5b5b;
    --ua-red-l: #fde9e9;
    --ua-purple: #7c5cff;
    --ua-yellow: #f2b705;
    --ua-blue: #00a6d6;
    --ua-sand: #fff6ec;
    --ua-card: #ffffff;
    --ua-radius: 22px;
    --ua-radius-sm: 14px;
    --ua-shadow: 0 10px 30px rgba(31, 42, 68, .08);
    --ua-shadow-pop: 0 6px 0 rgba(31, 42, 68, .12);
    --ua-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ua-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    --bs-body-font-family: var(--ua-font);
    --bs-body-color: var(--ua-ink);
    --bs-primary: var(--ua-orange);
}

body { font-family: var(--ua-font); color: var(--ua-ink); -webkit-font-smoothing: antialiased; }
.ua-display, .ua-h2, h1, h2, h3 { font-family: var(--ua-display); letter-spacing: -.01em; }
.ua-h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: .6rem; }
.ua-muted { color: var(--ua-muted); }
.ua-text-warn { color: var(--ua-orange-d); }
a { color: var(--ua-orange-d); }

/* ---------- buttons ---------- */
.btn { border-radius: 14px; font-weight: 800; }
.btn-ua-primary { background: var(--ua-orange); color: #fff; border: 0; box-shadow: 0 4px 0 var(--ua-orange-d); transition: transform .08s, box-shadow .08s; }
.btn-ua-primary:hover, .btn-ua-primary:focus { background: #ff9852; color: #fff; }
.btn-ua-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ua-orange-d); }
.btn-ua-primary:disabled { background: #f3c3a3; box-shadow: none; color: #fff; }
.btn-ua-ghost { background: #fff; color: var(--ua-ink); border: 2px solid var(--ua-line); }
.btn-ua-ghost:hover { border-color: var(--ua-orange); color: var(--ua-orange-d); }
.btn-ua-boss { background: linear-gradient(135deg, #5b3ee6, #a142f4); color: #fff; border: 0; box-shadow: 0 4px 0 #3b23a8; padding: .8rem; }
.btn-ua-boss:hover { color: #fff; filter: brightness(1.05); }

/* ---------- brand ---------- */
.ua-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--ua-display); font-weight: 800; font-size: 1.2rem; color: var(--ua-ink); text-decoration: none; }
.ua-brand-mark { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--ua-orange); color: #fff; font-weight: 800; box-shadow: 0 3px 0 var(--ua-orange-d); transform: rotate(-6deg); }
.ua-brand-mark-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; }

.ua-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ua-sand); font-size: 1.4rem; border: 2px solid #ffe0c7; }
.ua-avatar-sm { width: 32px; height: 32px; font-size: 1.05rem; }
.ua-avatar-lg { width: 64px; height: 64px; font-size: 2.2rem; }
.ua-avatar-xl { width: 84px; height: 84px; font-size: 3rem; border-width: 3px; }
.ua-avatar-btn { border: 0; background: none; padding: 0; }

.ua-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 2px solid var(--ua-line); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.ua-chip .bi-fire { color: var(--ua-orange); }
.ua-chip .bi-star-fill { color: var(--ua-yellow); }
.ua-tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--ua-sand); color: var(--ua-orange-d); font-weight: 800; font-size: .8rem; }

.ua-card { background: var(--ua-card); border-radius: var(--ua-radius); box-shadow: var(--ua-shadow); padding: 1.25rem; border: 1px solid rgba(31, 42, 68, .04); }
.ua-note { background: #fff4e5; border: 2px dashed #ffd2a8; border-radius: var(--ua-radius-sm); padding: .8rem 1rem; font-weight: 700; margin-bottom: 1rem; }
.ua-note-soft { background: #f4f6fb; border-color: var(--ua-line); color: var(--ua-ink-2); font-weight: 600; }
.ua-note-good { background: var(--ua-green-l); border-color: #a9e5c6; }
.ua-skeleton { height: 86px; border-radius: var(--ua-radius-sm); background: linear-gradient(90deg, #f1f2f6 25%, #f8f9fb 50%, #f1f2f6 75%); background-size: 200% 100%; animation: ua-sk 1.2s infinite; }
@keyframes ua-sk { to { background-position: -200% 0; } }

/* ---------- toasts ---------- */
.ua-toast-wrap { position: fixed; z-index: 3000; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.ua-toast { display: flex; gap: .6rem; align-items: center; background: var(--ua-ink); color: #fff; padding: .8rem 1rem; border-radius: 16px; font-weight: 700; box-shadow: var(--ua-shadow); opacity: 0; transform: translateY(12px); transition: .25s; }
.ua-toast.show { opacity: 1; transform: none; }
.ua-toast-success { background: #178a55; }
.ua-toast-error { background: #c94141; }
.ua-toast-star { background: linear-gradient(135deg, #7c5cff, #ff8a3d); }

/* ==========================================================
   Auth / setup
   ========================================================== */
.ua-plain { background: radial-gradient(circle at 15% 10%, #ffe7d1 0, transparent 40%), radial-gradient(circle at 85% 90%, #dff3ff 0, transparent 45%), #fffaf4; min-height: 100vh; }
.ua-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.ua-auth-card { width: min(100%, 440px); background: #fff; border-radius: 28px; padding: 2rem 1.6rem; box-shadow: var(--ua-shadow); }
.ua-auth-card-wide { width: min(100%, 860px); }
.ua-tabs .nav-link { border-radius: 999px; font-weight: 800; color: var(--ua-ink-2); padding: .5rem 1.3rem; }
.ua-tabs .nav-link.active { background: var(--ua-ink); }
.ua-student-pick { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ua-student-card { border: 3px solid var(--ua-line); background: #fff; border-radius: 20px; padding: .8rem 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.ua-student-card.active { border-color: var(--ua-orange); background: var(--ua-sand); }
.ua-pin-dots { display: flex; gap: .9rem; justify-content: center; }
.ua-pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ua-ink-2); }
.ua-pin-dots i.on { background: var(--ua-orange); border-color: var(--ua-orange); }
.ua-pin-dots.shake { animation: ua-shake .4s; }
@keyframes ua-shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.ua-pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 300px; margin: 0 auto; }
.ua-pinpad button { height: 62px; border-radius: 18px; border: 2px solid var(--ua-line); background: #fff; font-family: var(--ua-display); font-size: 1.6rem; font-weight: 700; box-shadow: 0 4px 0 var(--ua-line); }
.ua-pinpad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ua-line); }
.ua-pin-input { letter-spacing: .6em; font-weight: 800; }
.ua-avatar-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.ua-avatar-pick input { display: none; }
.ua-avatar-pick span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; border: 3px solid var(--ua-line); font-size: 1.7rem; cursor: pointer; background: #fff; }
.ua-avatar-pick input:checked + span { border-color: var(--ua-orange); background: var(--ua-sand); transform: scale(1.08); }

/* ==========================================================
   Student
   ========================================================== */
.ua-student { background: linear-gradient(180deg, #fff3e6 0, #fffaf4 320px), #fffaf4; min-height: 100vh; }
.ua-topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: .75rem; padding: .7rem 16px; background: rgba(255, 250, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid #f6e5d4; }
.ua-topbar-stats { margin-left: auto; display: flex; gap: .5rem; }
.ua-main { padding: 18px 16px 90px; }

.ua-hero { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 28px; padding: 1.1rem 1.25rem; box-shadow: var(--ua-shadow); margin-bottom: 1.2rem; position: relative; overflow: hidden; }
.ua-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #ffe0c4, transparent 70%); }
.ua-hero-hello { font-family: var(--ua-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.ua-hero-title { color: var(--ua-ink-2); font-weight: 700; margin-bottom: .35rem; }
.ua-level-bar { height: 12px; background: #f1ece6; border-radius: 99px; overflow: hidden; }
.ua-level-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ua-yellow), var(--ua-orange)); border-radius: 99px; transition: width .8s; }
.ua-hero-streak { flex-direction: column; align-items: center; z-index: 1; padding: .4rem .9rem; border-radius: 18px; background: var(--ua-sand); }
.ua-hero-streak i { color: var(--ua-orange); font-size: 1.6rem; line-height: 1; }
.ua-hero-streak b { font-family: var(--ua-display); font-size: 1.6rem; line-height: 1; }
.ua-hero-streak small { font-weight: 700; color: var(--ua-muted); }

.ua-missions { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ua-mission { display: flex; align-items: center; gap: .8rem; text-align: left; background: #fff; border: 3px solid var(--ua-line); border-radius: 22px; padding: .9rem 1rem; box-shadow: 0 5px 0 var(--ua-line); transition: transform .1s; width: 100%; }
.ua-mission:hover { transform: translateY(-2px); border-color: var(--ua-orange); }
.ua-mission:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ua-line); }
.ua-mission.done { opacity: .6; background: #f7f8fa; }
.ua-mission-icon { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--ua-sand); flex-shrink: 0; }
.ua-mission-diagnostic .ua-mission-icon { background: #ebe6ff; }
.ua-mission-fluency .ua-mission-icon { background: #fff4c7; }
.ua-mission-trap .ua-mission-icon { background: #e1f6fd; }
.ua-mission-review .ua-mission-icon { background: var(--ua-green-l); }
.ua-mission-text { display: flex; flex-direction: column; flex-grow: 1; line-height: 1.2; }
.ua-mission-text b { font-family: var(--ua-display); font-size: 1.15rem; }
.ua-mission-text small { color: var(--ua-muted); font-weight: 600; }
.ua-mission-xp { font-weight: 800; color: var(--ua-orange-d); white-space: nowrap; }
.ua-bonus { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; padding: .9rem 1rem; border-radius: 22px; background: linear-gradient(135deg, #fff0d6, #ffe3f1); }
.ua-bonus-chest { font-size: 2.2rem; }

.ua-map { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ua-island { position: relative; text-align: left; border: 0; border-radius: 28px; padding: 1.1rem; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #fff) 0, #fff 70%); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, #fff), var(--ua-shadow); display: flex; flex-direction: column; gap: .2rem; transition: transform .12s; min-height: 190px; }
.ua-island:hover { transform: translateY(-3px) rotate(-.5deg); }
.ua-island.far { filter: saturate(.35); opacity: .75; }
.ua-island.current { outline: 3px solid var(--c); }
.ua-island-flag { position: absolute; top: -10px; right: 14px; background: var(--ua-ink); color: #fff; font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; }
.ua-island-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.6rem; margin-bottom: .4rem; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); }
.ua-island-name { font-family: var(--ua-display); font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.ua-island-theme { color: var(--ua-ink-2); font-size: .85rem; font-weight: 600; }
.ua-island-stops { display: flex; gap: 5px; flex-wrap: wrap; margin: .5rem 0 .3rem; }
.ua-island-stops i { width: 14px; height: 14px; border-radius: 50%; background: #e6e8ee; border: 2px solid #fff; box-shadow: 0 0 0 1px #d6d9e2; }
.ua-island-stops i.s-support { background: #ffd9a8; }
.ua-island-stops i.s-developing { background: #9be0bc; }
.ua-island-stops i.s-mastered { background: var(--ua-yellow); }
.ua-island-stops i.s-review { background: #c6b9ff; }
.ua-island-progress { height: 8px; border-radius: 99px; background: #eceef3; overflow: hidden; }
.ua-island-progress span { display: block; height: 100%; background: var(--c); }
.ua-island small { color: var(--ua-muted); font-weight: 700; }

.ua-modal { border-radius: 26px; border: 0; }
.ua-stop { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px dashed var(--ua-line); }
.ua-stop:last-of-type { border-bottom: 0; }
.ua-stop-icon { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #f2f3f7; font-size: 1.2rem; flex-shrink: 0; }
.ua-stop.s-mastered .ua-stop-icon { background: #fff4c7; }
.ua-stop.s-developing .ua-stop-icon { background: var(--ua-green-l); }
.ua-stop-bar { height: 6px; border-radius: 99px; background: #eceef3; margin-top: .3rem; overflow: hidden; max-width: 220px; }
.ua-stop-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ua-green), var(--ua-yellow)); }
.ua-moods { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.ua-moods button { border: 3px solid var(--ua-line); background: #fff; border-radius: 20px; font-size: 2.2rem; padding: .5rem .9rem; display: flex; flex-direction: column; align-items: center; min-width: 84px; }
.ua-moods button small { font-size: .8rem; font-weight: 800; color: var(--ua-ink-2); }
.ua-moods button:hover { border-color: var(--ua-orange); transform: translateY(-2px); }

/* ---------- play ---------- */
.ua-play { max-width: 760px; }
.ua-play-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ua-play-title { font-family: var(--ua-display); font-weight: 800; font-size: 1.25rem; }
.ua-progress-dots { display: flex; gap: 6px; margin-left: auto; }
.ua-progress-dots i { width: 14px; height: 14px; border-radius: 50%; background: #e6e8ee; }
.ua-progress-dots i.now { background: var(--ua-orange); box-shadow: 0 0 0 4px #ffe1c9; }
.ua-progress-dots i.ok { background: var(--ua-green); }
.ua-progress-dots i.no { background: var(--ua-red); }
.ua-boss { display: flex; gap: .8rem; align-items: center; background: linear-gradient(135deg, #2b1d6b, #5b3ee6); color: #fff; padding: .8rem 1rem; border-radius: 20px; margin-bottom: 1rem; }
.ua-boss-face { font-size: 2.4rem; }
.ua-boss-hp { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: .3rem; }
.ua-boss-hp span { display: block; height: 100%; background: linear-gradient(90deg, #ff5a7a, #ffb03a); transition: width .6s; }

.ua-question-card { padding: 1.4rem; }
.ua-stem { font-size: 1.2rem; line-height: 1.7; font-weight: 600; }
.ua-question { font-size: 1.25rem; font-weight: 800; line-height: 1.6; margin: .7rem 0 .4rem; padding: .7rem .9rem; border-radius: 16px; background: #fff7ef; border-left: 5px solid var(--ua-orange); }
.ua-figure { margin: .8rem 0; padding: .6rem; background: #fbfcfe; border-radius: 16px; text-align: center; }
.ua-figure svg { max-width: 100%; height: auto; max-height: 220px; }
.ua-q-table { max-width: 420px; font-size: 1.05rem; border-radius: 14px; overflow: hidden; }
.ua-q-table th { background: var(--ua-ink); color: #fff; }
.tk { border-radius: 6px; transition: background .15s; }
.kw-mode .tk { cursor: pointer; }
.kw-mode .tk:hover { background: #fff0a8; }
.tk.kw-hit { background: #ffe57a; box-shadow: 0 2px 0 #e5c33a; padding: 0 2px; }
.tk.kw-miss { text-decoration: line-through wavy var(--ua-red); }
.ua-step { margin-top: 1rem; padding: .9rem 1rem; border-radius: 16px; background: #f4f6fb; font-weight: 600; }
.ua-step-kw { background: #fff8d6; animation: ua-pulse 1.6s infinite; }
.ua-step-ok { background: var(--ua-green-l); }
@keyframes ua-pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 183, 5, .15); } }
.ua-check { background: #eef6ff; }
.ua-check-opts { display: grid; gap: .5rem; }
.ua-check-opt { text-align: left; border: 2px solid #cfe2ff; background: #fff; border-radius: 14px; padding: .6rem .9rem; font-weight: 700; }
.ua-check-opt.ok { border-color: var(--ua-green); background: var(--ua-green-l); }
.ua-check-opt.no { border-color: var(--ua-red); background: var(--ua-red-l); }
.ua-options { display: grid; gap: .65rem; margin-top: 1rem; }
@media (min-width: 640px) { .ua-options { grid-template-columns: 1fr 1fr; } }
.ua-option { display: flex; align-items: center; gap: .75rem; text-align: left; border: 3px solid var(--ua-line); background: #fff; border-radius: 18px; padding: .8rem 1rem; font-size: 1.1rem; font-weight: 700; box-shadow: 0 4px 0 var(--ua-line); transition: transform .08s; }
.ua-option:hover:not(:disabled) { border-color: #ffc59b; }
.ua-option.sel { border-color: var(--ua-orange); background: #fff4ea; box-shadow: 0 4px 0 #ffc59b; }
.ua-option.ok { border-color: var(--ua-green); background: var(--ua-green-l); box-shadow: 0 4px 0 #9ad8b8; }
.ua-option.no { border-color: var(--ua-red); background: var(--ua-red-l); box-shadow: 0 4px 0 #f3b2b2; }
.ua-option-letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1f2f6; font-family: var(--ua-display); flex-shrink: 0; }
.ua-option.sel .ua-option-letter { background: var(--ua-orange); color: #fff; }
.ua-answer-bar { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.ua-answer-bar #submitBtn { margin-left: auto; padding: .7rem 1.6rem; font-size: 1.1rem; }
.ua-confidence { display: flex; gap: .3rem; }
.ua-confidence button { border: 2px solid var(--ua-line); background: #fff; border-radius: 999px; padding: .35rem .8rem; font-weight: 700; font-size: .9rem; }
.ua-confidence button.on { border-color: var(--ua-purple); background: #efeaff; }
.ua-hint { margin-top: .7rem; padding: .7rem 1rem; border-radius: 14px; background: #fffbe6; border: 2px dashed #f5d76e; font-weight: 600; }
.ua-target { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-weight: 800; font-size: .85rem; color: var(--ua-purple); }
.ua-target-bar { flex-grow: 1; height: 8px; border-radius: 99px; background: #eee9ff; overflow: hidden; }
.ua-target-bar span { display: block; height: 100%; width: 0; background: var(--ua-purple); }
.ua-target-bar span.over { background: #b9a9ff; }
.ua-feedback { margin-top: 1rem; border: 3px solid var(--ua-line); }
.ua-feedback.good { border-color: #9ad8b8; background: linear-gradient(180deg, #f0fbf5, #fff 60%); }
.ua-feedback.bad { border-color: #ffd2a8; background: linear-gradient(180deg, #fff6ee, #fff 60%); }
.ua-feedback-head { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.05rem; }
.ua-feedback-emoji { font-size: 2.2rem; line-height: 1; }
.ua-xp { margin-left: auto; font-weight: 800; color: var(--ua-orange-d); white-space: nowrap; animation: ua-pop .5s; }
@keyframes ua-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
.ua-solution { margin-top: .8rem; background: #f7f8fb; border-radius: 14px; padding: .6rem .9rem; }
.ua-solution summary { font-weight: 800; cursor: pointer; }
.ua-solution div { margin-top: .4rem; font-weight: 600; }
.ua-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(31, 42, 68, .55); display: grid; place-items: center; padding: 16px; }
.ua-overlay-card { background: #fff; border-radius: 28px; padding: 2rem; width: min(100%, 380px); }
.ua-break-timer { font-family: var(--ua-display); font-size: 3rem; font-weight: 800; color: var(--ua-orange); }
.ua-summary { padding: 2rem 1.4rem; }
.ua-ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--ua-green) calc(var(--p) * 1%), #eceef3 0); }
.ua-ring b { font-family: var(--ua-display); font-size: 2.2rem; line-height: 1; }
.ua-ring small { font-weight: 700; color: var(--ua-muted); }
.ua-new-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-top: 1rem; }

/* ---------- fluency game ---------- */
.ua-game { max-width: 520px; }
.ua-game-card { text-align: center; padding: 1.6rem; }
.ua-game-emoji { font-size: 3.4rem; }
.ua-fact { font-family: var(--ua-display); font-size: 3.4rem; font-weight: 800; line-height: 1; padding: .6rem; border-radius: 22px; transition: background .2s; }
.ua-fact.ok { background: var(--ua-green-l); }
.ua-fact.no { background: var(--ua-red-l); }
.ua-answer-display { font-family: var(--ua-display); font-size: 2.4rem; font-weight: 700; min-height: 3.4rem; border-bottom: 4px dashed var(--ua-line); margin: .3rem auto 1rem; max-width: 220px; }
.ua-pinpad-game button.ok { background: var(--ua-green); color: #fff; border-color: var(--ua-green); box-shadow: 0 4px 0 #1d8a55; }
.ua-game-timer { position: relative; width: 64px; height: 64px; }
.ua-game-timer svg { transform: rotate(-90deg); width: 64px; height: 64px; }
.ua-game-timer circle { fill: none; stroke-width: 4; }
.ua-game-timer .bg { stroke: #eceef3; }
.ua-game-timer .fg { stroke: var(--ua-orange); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.ua-game-timer b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ua-display); font-size: 1.3rem; }

/* ---------- profile ---------- */
.ua-stat { text-align: center; display: flex; flex-direction: column; gap: .1rem; height: 100%; }
.ua-stat span { font-size: 1.8rem; }
.ua-stat b { font-family: var(--ua-display); font-size: 1.35rem; }
.ua-stat small { color: var(--ua-muted); font-weight: 700; }
.ua-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.ua-badge { background: #fff; border-radius: 22px; padding: 1rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; border: 3px dashed var(--ua-line); filter: grayscale(1); opacity: .6; }
.ua-badge.earned { filter: none; opacity: 1; border-style: solid; border-color: #ffd9a8; box-shadow: 0 5px 0 #ffe7cf; }
.ua-badge span { font-size: 2.4rem; }
.ua-badge small { color: var(--ua-muted); font-weight: 600; }
.ua-badge em { font-style: normal; font-size: .75rem; color: var(--ua-orange-d); font-weight: 800; }

/* ==========================================================
   Parent
   ========================================================== */
.ua-parent { background: #f5f7fb; }
.ua-shell { display: flex; min-height: 100vh; }
.ua-sidebar { width: 250px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; flex-direction: column; padding: 1.4rem 1rem; background: #fff; border-right: 1px solid var(--ua-line); }
.ua-nav { display: flex; flex-direction: column; gap: .2rem; }
.ua-nav-link { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 12px; color: var(--ua-ink-2); font-weight: 700; text-decoration: none; }
.ua-nav-link i { font-size: 1.1rem; }
.ua-nav-link:hover { background: #f4f6fb; color: var(--ua-ink); }
.ua-nav-link.active { background: var(--ua-sand); color: var(--ua-orange-d); }
.ua-content { flex-grow: 1; min-width: 0; }
.ua-pagebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .8rem; padding: .8rem 16px; background: rgba(245, 247, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ua-line); }
@media (min-width: 992px) { .ua-pagebar { padding: 1rem 2rem; } }
.ua-pagetitle { font-size: 1.4rem; font-weight: 800; margin: 0; }
.ua-page { padding: 1.2rem 16px 3rem; }
@media (min-width: 992px) { .ua-page { padding: 1.5rem 2rem 3rem; } }
.ua-offcanvas { width: 270px !important; }

.ua-kpi { background: #fff; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--ua-shadow); height: 100%; }
.ua-kpi small { color: var(--ua-muted); font-weight: 700; display: block; }
.ua-kpi b { font-family: var(--ua-display); font-size: 1.8rem; line-height: 1.1; }
.ua-kpi .ua-kpi-sub { font-size: .8rem; color: var(--ua-ink-2); font-weight: 600; }
.ua-panel { background: #fff; border-radius: 18px; box-shadow: var(--ua-shadow); padding: 1.1rem 1.2rem; height: 100%; }
.ua-panel-title { font-family: var(--ua-display); font-weight: 800; font-size: 1.1rem; margin-bottom: .2rem; display: flex; align-items: center; gap: .4rem; }
.ua-panel-sub { color: var(--ua-muted); font-size: .85rem; margin-bottom: .8rem; }
.ua-chart { position: relative; height: 240px; }
.ua-chart-sm { height: 200px; }
.ua-rec { border: 1px solid var(--ua-line); border-left: 5px solid var(--ua-orange); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .7rem; }
.ua-rec-comprehension, .ua-rec-rapid, .ua-rec-confidence { border-left-color: var(--ua-blue); }
.ua-rec-zpd_up, .ua-rec-review { border-left-color: var(--ua-green); }
.ua-rec-prereq, .ua-rec-zpd_down, .ua-rec-misconception { border-left-color: var(--ua-red); }
.ua-rec-focus, .ua-rec-inactive, .ua-rec-fluency { border-left-color: var(--ua-purple); }
.ua-rec-science { font-size: .8rem; color: var(--ua-muted); margin-top: .35rem; }
.ua-mastery-table td, .ua-mastery-table th { vertical-align: middle; font-size: .9rem; }
.ua-state { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: #eef0f5; color: var(--ua-ink-2); }
.ua-state-mastered { background: #fff1c2; color: #8a6a00; }
.ua-state-developing { background: var(--ua-green-l); color: #17794a; }
.ua-state-support { background: #ffe6d4; color: #b4541a; }
.ua-state-review { background: #ece6ff; color: #5235c9; }
.ua-pbar { height: 8px; border-radius: 99px; background: #eceef3; overflow: hidden; min-width: 70px; }
.ua-pbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ua-orange), var(--ua-green)); }
.ua-insight { white-space: pre-line; line-height: 1.6; }
.ua-metric-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--ua-line); font-weight: 600; }
.ua-metric-row:last-child { border-bottom: 0; }
.ua-metric-row b { font-family: var(--ua-display); }
.ua-item-card { background: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--ua-shadow); margin-bottom: .9rem; border: 2px solid transparent; }
.ua-item-card.st-pending { border-color: #ffd9a8; }
.ua-item-card.st-rejected { opacity: .55; }
.ua-item-opt { padding: .25rem .6rem; border-radius: 10px; margin: .15rem 0; font-size: .92rem; }
.ua-item-opt.ok { background: var(--ua-green-l); font-weight: 800; }
.ua-item-opt small { color: var(--ua-muted); }
.ua-science h3 { font-size: 1.15rem; font-weight: 800; margin-top: 1.4rem; }
.table > :not(caption) > * > * { padding: .55rem .6rem; }

.ua-option:disabled, .ua-check-opt:disabled { opacity: 1; color: var(--ua-ink); }

/* ---------- subjects (student map) ---------- */
.ua-subjects { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .8rem; scrollbar-width: thin; }
.ua-subject { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; border: 3px solid var(--ua-line); background: #fff; border-radius: 999px; padding: .45rem .9rem; font-weight: 800; color: var(--ua-ink); box-shadow: 0 3px 0 var(--ua-line); }
.ua-subject i { color: var(--c); font-size: 1.1rem; }
.ua-subject small { color: var(--ua-muted); font-weight: 700; }
.ua-subject.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 45%, #fff); }
.ua-grade-select { width: auto; border-radius: 999px; font-weight: 700; }
.ua-filterbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ua-filterbar .form-select { width: auto; min-width: 140px; }

/* ==========================================================
   figures (question visuals rendered by figure.js, prefix ua-fig)
   ========================================================== */
:root {
    --ua-fig-c1: var(--ua-orange);
    --ua-fig-c2: var(--ua-blue);
    --ua-fig-c3: var(--ua-purple);
    --ua-fig-bg: #fbfcfe;
    --ua-fig-grid: #e4e8f1;
    --ua-fig-grid-strong: #c9d0de;
    --ua-fig-stroke: var(--ua-ink);
    --ua-fig-fill-a: #ffd8b8;
    --ua-fig-fill-b: #bfe8f6;
    --ua-fig-fill-c: #dcd2ff;
    --ua-fig-halo: #ffffff;
}
.ua-fig { max-width: 560px; margin: .9rem auto; padding: .7rem .8rem .8rem; background: var(--ua-fig-bg); border: 1px solid var(--ua-line); border-radius: 18px; color: var(--ua-ink); container-type: inline-size; }
.ua-fig-title { font-family: var(--ua-display); font-weight: 700; font-size: .95rem; color: var(--ua-ink-2); text-align: center; margin-bottom: .45rem; line-height: 1.3; }
.ua-fig-body { width: 100%; }
.ua-fig-svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.ua-fig-svg text { font-family: var(--ua-font); fill: var(--ua-ink); font-size: 18px; }
.ua-fig-halo { paint-order: stroke; stroke: var(--ua-fig-halo); stroke-width: 4px; stroke-linejoin: round; }
.ua-fig-s0 { color: var(--ua-fig-c1); }
.ua-fig-s1 { color: var(--ua-fig-c2); }
.ua-fig-s2 { color: var(--ua-fig-c3); }
.ua-fig-gridline { stroke: var(--ua-fig-grid); stroke-width: 1; }
.ua-fig-axis { stroke: var(--ua-fig-stroke); stroke-width: 2; stroke-linecap: round; }
.ua-fig-svg .ua-fig-tick { font-size: 17px; fill: var(--ua-ink-2); font-weight: 700; }
.ua-fig-svg .ua-fig-xlabel { font-weight: 700; }
.ua-fig-svg .ua-fig-axis-title { font-weight: 800; fill: var(--ua-ink-2); }
.ua-fig-svg .ua-fig-legend { font-size: 17px; font-weight: 700; }
.ua-fig-svg .ua-fig-value { font-size: 17px; font-weight: 800; fill: var(--ua-ink); }
.ua-fig-pt { stroke: #fff; stroke-width: 2; }
/* pictograph */
.ua-fig-picto { display: grid; gap: .35rem; }
.ua-fig-picto-row { display: grid; grid-template-columns: minmax(64px, max-content) 1fr; align-items: center; gap: .7rem; padding: .3rem .5rem; border-radius: 12px; background: #fff; border: 1px solid var(--ua-line); }
.ua-fig-picto-label { font-weight: 800; font-size: 1rem; }
.ua-fig-picto-icons { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; line-height: 1; }
.ua-fig-icon { display: inline-block; width: 1.25em; font-size: 1.55rem; line-height: 1.2; text-align: center; overflow: hidden; white-space: nowrap; vertical-align: middle; }
.ua-fig-icon.ua-fig-half { width: .625em; text-align: left; }
.ua-fig-icon.ua-fig-half > span { display: inline-block; width: 1.25em; text-align: center; }
.ua-fig-picto-empty { color: var(--ua-muted); font-weight: 700; }
.ua-fig-key { margin-top: .55rem; text-align: right; font-weight: 800; font-size: .98rem; color: var(--ua-ink-2); }
.ua-fig-key .ua-fig-icon { font-size: 1.25rem; }
/* number line */
.ua-fig-nl-line { stroke: var(--ua-fig-stroke); stroke-width: 2.5; }
.ua-fig-nl-arrow { fill: var(--ua-fig-stroke); }
.ua-fig-nl-tick { stroke: var(--ua-fig-stroke); stroke-width: 2; stroke-linecap: round; }
.ua-fig-svg .ua-fig-nl-custom { font-weight: 800; fill: var(--ua-purple); }
.ua-fig-nl-leader { stroke: var(--ua-fig-grid-strong); stroke-width: 1; }
.ua-fig-nl-fracbar { stroke: var(--ua-purple); stroke-width: 2; stroke-linecap: round; }
.ua-fig-nl-jump { fill: none; stroke: var(--ua-blue); stroke-width: 2.5; stroke-linecap: round; }
.ua-fig-nl-jump-head { fill: var(--ua-blue); }
.ua-fig-svg .ua-fig-nl-jump-label { font-weight: 800; fill: #0086ad; }
.ua-fig-nl-dot { fill: var(--ua-orange-d); stroke: #fff; stroke-width: 2; }
.ua-fig-nl-badge { fill: #fff; stroke: var(--ua-orange-d); stroke-width: 2; }
.ua-fig-svg .ua-fig-nl-badge-text { font-weight: 800; fill: var(--ua-orange-d); }
/* grid / geometry */
.ua-fig-gridlines { stroke: var(--ua-fig-grid-strong); stroke-width: 1; fill: none; }
.ua-fig-gridframe { fill: none; stroke: var(--ua-fig-grid-strong); stroke-width: 1.5; }
.ua-fig-poly { stroke: var(--ua-fig-stroke); stroke-width: 2.5; stroke-linejoin: round; }
.ua-fig-nofill { fill: none; }
.ua-fig-fill-a { fill: var(--ua-fig-fill-a); fill-opacity: .9; }
.ua-fig-fill-b { fill: var(--ua-fig-fill-b); fill-opacity: .9; }
.ua-fig-fill-c { fill: var(--ua-fig-fill-c); fill-opacity: .9; }
.ua-fig-angle { fill: none; stroke: var(--ua-fig-stroke); stroke-width: 1.5; }
.ua-fig-svg .ua-fig-poly-label { font-weight: 800; }
.ua-fig-svg .ua-fig-side-label { font-weight: 800; fill: var(--ua-ink-2); }
.ua-fig-svg .ua-fig-angle-label { font-weight: 800; fill: var(--ua-purple); }
.ua-fig-seg { stroke: var(--ua-red); stroke-width: 2.5; stroke-linecap: round; }
.ua-fig-seg.ua-fig-dashed { stroke-dasharray: 7 6; }
.ua-fig-svg .ua-fig-seg-label { font-weight: 800; fill: var(--ua-red); }
.ua-fig-dot { fill: var(--ua-ink); }
.ua-fig-svg .ua-fig-dot-label { font-weight: 800; }
.ua-fig-compass-ring { fill: #fff; stroke: var(--ua-fig-grid-strong); stroke-width: 1.5; }
.ua-fig-compass-n { fill: var(--ua-red); }
.ua-fig-compass-s { fill: var(--ua-fig-grid-strong); }
.ua-fig-svg .ua-fig-compass-k { font-weight: 800; fill: var(--ua-red); font-size: 18px; }
.ua-fig-note { margin-top: .45rem; text-align: center; font-size: .9rem; font-weight: 700; color: var(--ua-muted); }
/* poster */
.ua-fig-poster { position: relative; text-align: center; padding: 1.1rem 1rem 1rem; border-radius: 16px; background: linear-gradient(160deg, #fff4e3 0%, #ffe3ef 55%, #e6f3ff 100%); border: 3px dashed var(--ua-orange); }
.ua-fig-poster-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .3rem; }
.ua-fig-poster-title { font-family: var(--ua-display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--ua-orange-d); margin-bottom: .5rem; }
.ua-fig-poster-lines { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; }
.ua-fig-poster-lines li { font-weight: 700; font-size: 1.02rem; padding: .3rem .4rem; border-bottom: 1px dotted rgba(31, 42, 68, .18); }
.ua-fig-poster-lines li:last-child { border-bottom: 0; }
.ua-fig-poster-footer { display: inline-block; margin-top: .6rem; padding: .3rem .85rem; border-radius: 16px; background: var(--ua-ink); color: #fff; font-weight: 800; font-size: .92rem; }
/* dialog */
.ua-fig-dialog { display: flex; flex-direction: column; gap: .5rem; }
.ua-fig-msg { max-width: 82%; display: flex; flex-direction: column; }
.ua-fig-msg-left { align-self: flex-start; align-items: flex-start; }
.ua-fig-msg-right { align-self: flex-end; align-items: flex-end; }
.ua-fig-msg-who { font-size: .8rem; font-weight: 800; color: var(--ua-ink-2); margin: 0 .5rem .1rem; }
.ua-fig-bubble { padding: .5rem .8rem; border-radius: 16px; font-weight: 600; font-size: 1.02rem; line-height: 1.4; background: #fff; border: 1px solid var(--ua-line); }
.ua-fig-msg-left .ua-fig-bubble { border-top-left-radius: 4px; }
.ua-fig-msg-right .ua-fig-bubble { border-top-right-radius: 4px; }
.ua-fig-sp0 .ua-fig-bubble { background: #fff1e5; border-color: #ffd6b5; }
.ua-fig-sp1 .ua-fig-bubble { background: #e3f6fc; border-color: #b8e6f5; }
.ua-fig-sp2 .ua-fig-bubble { background: #eee9ff; border-color: #d7cdff; }
.ua-fig-sp3 .ua-fig-bubble { background: var(--ua-green-l); border-color: #bfe9d2; }
/* cards */
.ua-fig-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .55rem; }
.ua-fig-card { background: #fff; border-radius: 14px; padding: .7rem .7rem .75rem; text-align: center; border: 1px solid var(--ua-line); box-shadow: inset 0 5px 0 var(--ua-fig-c1); padding-top: .9rem; }
.ua-fig-card.ua-fig-tone1 { box-shadow: inset 0 5px 0 var(--ua-fig-c2); }
.ua-fig-card.ua-fig-tone2 { box-shadow: inset 0 5px 0 var(--ua-fig-c3); }
.ua-fig-card.ua-fig-tone3 { box-shadow: inset 0 5px 0 var(--ua-green); }
.ua-fig-card-emoji { font-size: 1.9rem; line-height: 1.1; }
.ua-fig-card-title { font-weight: 800; font-size: 1rem; margin-top: .2rem; }
.ua-fig-card-text { font-size: .95rem; line-height: 1.35; color: var(--ua-ink-2); margin-top: .2rem; font-weight: 600; }
/* timeline */
.ua-fig-timeline { list-style: none; margin: 0; padding: .3rem 0 0; display: flex; }
.ua-fig-tl-item { position: relative; flex: 1 1 0; min-width: 0; text-align: center; padding: 2rem .25rem 0; }
.ua-fig-tl-item::before { content: ''; position: absolute; top: .55rem; left: 0; right: 0; height: 4px; background: #ffd2ad; }
.ua-fig-tl-item:first-child::before { left: 50%; }
.ua-fig-tl-item:last-child::before { right: 50%; }
.ua-fig-tl-dot { position: absolute; top: .2rem; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ua-orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ua-orange); }
.ua-fig-tl-label { font-weight: 800; font-size: .92rem; color: var(--ua-orange-d); line-height: 1.25; overflow-wrap: anywhere; }
.ua-fig-tl-text { font-weight: 600; font-size: .95rem; line-height: 1.3; margin-top: .15rem; overflow-wrap: anywhere; }
@container (max-width: 500px) {
    .ua-fig-timeline { flex-direction: column; padding: 0; }
    .ua-fig-tl-item { text-align: left; padding: 0 0 .7rem 2rem; }
    .ua-fig-tl-item::before { top: 0; bottom: 0; left: .5rem; right: auto; width: 4px; height: auto; margin-left: -2px; }
    .ua-fig-tl-item:first-child::before { left: .5rem; top: .6rem; }
    .ua-fig-tl-item:last-child::before { right: auto; bottom: auto; height: .6rem; }
    .ua-fig-tl-item:only-child::before { display: none; }
    .ua-fig-tl-dot { left: .5rem; top: .15rem; }
}
@container (max-width: 420px) {
    .ua-fig-msg { max-width: 92%; }
    .ua-fig-poster-title { font-size: 1.2rem; }
}
@media (max-width: 575px) {
    .ua-fig { padding: .55rem .45rem .65rem; border-radius: 14px; }
}
/* compact preview (parent item bank) */
.ua-fig-compact .ua-fig { max-width: 440px; margin-left: 0; margin-right: 0; font-size: .92rem; }

/* ======================= multi-family additions ======================= */
.ua-pinpad button.ok { background: var(--ua-green); color: #fff; border-color: var(--ua-green); box-shadow: 0 4px 0 #1d8a55; }
.ua-guest-banner { background: #e8f6fb; color: #0b6b8a; font-weight: 800; text-align: center; padding: .45rem 16px; font-size: .9rem; border-bottom: 1px solid #c9e9f3; }
.ua-guest-banner.ua-parent-banner { background: var(--ua-sand); color: var(--ua-orange-d); border-color: #ffe0c7; }
.ua-guest-banner a { color: inherit; text-decoration: underline; }
.ua-child-card { background: var(--ua-card); border-radius: 18px; box-shadow: var(--ua-shadow); padding: 1.1rem 1.2rem; height: 100%; border: 2px solid transparent; }
.ua-child-card.archived { opacity: .65; border-style: dashed; border-color: var(--ua-line); box-shadow: none; }
.ua-child-card .min-w-0 { min-width: 0; }
.ua-quota { font-size: 1.05rem; }
.ua-cred { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ua-cred > div { background: var(--ua-sand); border: 2px dashed #ffd2a8; border-radius: var(--ua-radius-sm); padding: .6rem 1rem; min-width: 140px; }
.ua-cred small { display: block; color: var(--ua-muted); font-weight: 700; }
.ua-cred b { font-family: var(--ua-display); font-size: 1.5rem; letter-spacing: .04em; word-break: break-all; }
.ua-bank-grade { border: 2px solid var(--ua-line); border-radius: var(--ua-radius-sm); padding: .8rem 1rem; margin-bottom: .9rem; opacity: .8; }
.ua-bank-grade.on { border-color: #a9e5c6; opacity: 1; }
.ua-kpi-hot { outline: 3px solid var(--ua-yellow); }
.ua-kpi a { color: inherit; text-decoration: none; }
.ua-child-switch .dropdown-item.active { background: var(--ua-sand); color: var(--ua-orange-d); }
.ua-admin .ua-brand-mark { background: var(--ua-ink); box-shadow: 0 3px 0 #0e1527; }

/* speed-round modes */
.ua-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto 2rem; }
.ua-mode { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.ua-mode:hover { transform: translateY(-3px); }
.ua-mode-icon { font-size: 2.2rem; line-height: 1; }
.ua-mode b { font-family: var(--ua-display); font-size: 1.15rem; }
.ua-mode small { color: var(--ua-muted, #6b7280); }
.ua-mode-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: .4rem; }
.ua-game-stage { min-height: 2rem; margin-bottom: .6rem; }
.ua-game-prompt { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.ua-ask.synonyms { color: var(--ua-green, #1d8a55); }
.ua-ask.antonyms { color: var(--ua-red, #d9480f); }
.ua-word { font-family: var(--ua-display); font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.ua-cmp { display: flex; flex-direction: column; gap: .5rem; align-items: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2.1rem; font-weight: 700; letter-spacing: .12em; }
.ua-cmp span { background: var(--ua-bg-soft, #f6f2ec); padding: .2rem .9rem; border-radius: 12px; }
.ua-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ua-choice { font-size: 1.35rem; font-weight: 700; padding: 1rem .6rem; border-radius: 18px; border: 2px solid var(--ua-line, #e5e7eb); background: #fff; box-shadow: 0 4px 0 var(--ua-line, #e5e7eb); transition: transform .08s; word-break: break-word; }
.ua-choice:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ua-line, #e5e7eb); }
.ua-choice.ok { background: var(--ua-green-l); border-color: var(--ua-green); }
.ua-choice.no { background: var(--ua-red-l); border-color: var(--ua-red, #e03131); }
@media (max-width: 420px) { .ua-word { font-size: 2.1rem; } .ua-cmp { font-size: 1.6rem; } .ua-choice { font-size: 1.15rem; } }

/* instant subject switching */
.ua-subject, .ua-island, .ua-mission, .ua-option, .ua-choice { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ua-map.ua-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* brand: logo files in /assets/brand (logo*.svg full logo, mark*.svg small square mark, icon*.svg icon with arrows) */
.ua-brand-mark { font-size: 0; }
.ua-brand-mark::before { content: ""; width: 74%; height: 74%; background: currentColor; -webkit-mask: url(/assets/brand/mark.svg) center / contain no-repeat; mask: url(/assets/brand/mark.svg) center / contain no-repeat; }
.ua-brand-logo { height: 54px; width: auto; display: block; }
@media (max-width: 575.98px) { .ua-brand-logo { height: 34px; } }
.ua-side-brand-logo { flex-direction: column; align-items: flex-start; gap: .15rem; }
.ua-side-brand-logo img { width: 100%; max-width: 210px; height: auto; display: block; }
.ua-authx-brand .ua-side-brand-logo img { max-width: 300px; }
.ua-authx-brand .ua-side-brand-logo small { color: rgba(255,255,255,.85); }
.ua-authx-brand .ua-side-brand-logo { align-self: flex-start; align-items: flex-start; text-align: left; margin-left: -6px; }
