/* =====================================================
   MATH LEAP — Web App CSS
   app.css — complete design system for /web/ pages
   Mobile-first. No Bootstrap.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    --color-primary:      #5B6AF0;
    --color-primary-dk:   #4452D8;
    --color-success:      #2ECC71;
    --color-error:        #E74C3C;
    --color-warning:      #E67E22;
    --color-purple:       #9B59B6;
    --color-background:   #F5F6FF;
    --color-card:         #FFFFFF;
    --color-label:        #1C1C1E;
    --color-secondary:    #6C6C70;
    --color-border:       #E4E6F8;
    --color-keypad-btn:   #F2F2F7;

    --radius-sm:   12px;
    --radius-md:   20px;
    --radius-pill: 999px;
    --radius-key:  14px;

    --shadow-card:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-btn:     0 4px 10px rgba(91,106,240,0.35);
    --shadow-overlay: 0 8px 32px rgba(0,0,0,0.15);

    --transition-fast:   0.15s ease;
    --transition-normal: 0.2s ease-out;
    --transition-bar:    0.4s ease-out;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--color-background);
    color: var(--color-label);
    min-height: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* =====================================================
   TYPOGRAPHY SCALE
   ===================================================== */
.text-72  { font-size: 72px;  font-weight: 800; }
.text-56  { font-size: 56px;  font-weight: 700; }
.text-32  { font-size: 32px;  font-weight: 800; }
.text-24  { font-size: 24px;  font-weight: 700; }
.text-28  { font-size: 28px;  font-weight: 600; }
.text-16  { font-size: 16px;  font-weight: 400; }
.text-13  { font-size: 13px;  font-weight: 600; }

.color-primary   { color: var(--color-primary); }
.color-success   { color: var(--color-success); }
.color-error     { color: var(--color-error); }
.color-secondary { color: var(--color-secondary); }

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.page {
    min-height: 100vh;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
}

.page-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =====================================================
   CARD
   ===================================================== */
.card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 32px 28px;
    width: 100%;
}

.card-tight {
    padding: 20px;
}

/* =====================================================
   LOGO / BRAND
   ===================================================== */
.app-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    cursor: pointer;
    transition: background var(--transition-fast), transform 0.12s, box-shadow var(--transition-fast);
    text-decoration: none;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-btn);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91,106,240,0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #C5C9F8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-success {
    background: var(--color-success);
    color: #fff;
    box-shadow: 0 4px 10px rgba(46,204,113,0.3);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-success:hover:not(:disabled) {
    background: #27ae60;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-secondary);
    padding: 8px 12px;
    font-size: 0.88rem;
}

.btn-ghost:hover {
    color: var(--color-label);
}

/* Spinner in button */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-label);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-label);
    background: var(--color-card);
    transition: border-color var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91,106,240,0.12);
}

.form-input::placeholder {
    color: var(--color-secondary);
    font-weight: 400;
}

.form-error {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.25);
    color: var(--color-error);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
    min-height: 100vh;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--color-label);
}

.login-portal-hint {
    margin-top: 24px;
    font-size: 0.82rem;
    color: var(--color-secondary);
    line-height: 1.5;
}

/* =====================================================
   HOME / DASHBOARD
   ===================================================== */
.home-page {
    min-height: 100vh;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
}

/* Top bar */
.topbar {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.topbar-left:hover .avatar { opacity: 0.85; }

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.avatar-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-label);
}

.avatar-hint {
    font-size: 0.72rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Sessions remaining badge */
.sessions-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
}

.sessions-badge.has-sessions {
    background: rgba(91,106,240,0.1);
    color: var(--color-primary);
}

.sessions-badge.no-sessions {
    background: rgba(231,76,60,0.1);
    color: var(--color-error);
}

/* Home main content */
.home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 32px;
}

/* Goal ring */
.goal-ring-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.goal-ring-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.goal-ring-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.goal-ring-svg {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}

.goal-ring-track {
    fill: none;
    stroke: rgba(91,106,240,0.15);
    stroke-width: 14;
}

.goal-ring-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset var(--transition-bar);
}

.goal-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.goal-ring-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.goal-ring-word {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Start session area */
.start-section {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Inline upgrade prompt on home */
.home-upgrade-prompt {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.home-upgrade-prompt p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Home logout link */
.home-logout {
    margin-top: auto;
    padding: 20px;
    text-align: center;
}

.logout-link {
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.logout-link:hover {
    color: var(--color-error);
    background: rgba(231,76,60,0.07);
}

/* =====================================================
   QUIZ PAGE
   ===================================================== */
.quiz-page {
    min-height: 100vh;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Quiz top bar */
.quiz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
}

.quiz-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-background);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-secondary);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.quiz-close-btn:hover {
    background: rgba(231,76,60,0.1);
    color: var(--color-error);
}

.quiz-student-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Score progress bar */
.score-bar-section {
    padding: 16px 20px 8px;
    background: var(--color-card);
}

.score-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.score-bar-labels span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.score-bar-track {
    height: 10px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #7B61FF);
    border-radius: var(--radius-pill);
    transition: width var(--transition-bar);
    width: 0%;
}

/* Tier pill */
.tier-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: rgba(91,106,240,0.1);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    margin: 10px 20px 0;
}

.tier-pill.tier-1 { background: rgba(46,204,113,0.12);  color: #1a8a4a; }
.tier-pill.tier-2 { background: rgba(230,126,34,0.12);  color: #b35c00; }
.tier-pill.tier-3 { background: rgba(91,106,240,0.12);  color: var(--color-primary); }
.tier-pill.tier-4 { background: rgba(155,89,182,0.12);  color: #7b2d8b; }

/* Problem area */
.problem-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.problem-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: slideInFromRight var(--transition-normal) both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.problem-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--color-label);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.problem-operator {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.problem-operator.op-add      { color: #2ECC71; }
.problem-operator.op-subtract { color: #E67E22; }
.problem-operator.op-multiply { color: #5B6AF0; }
.problem-operator.op-divide   { color: #9B59B6; }

.problem-equals {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

/* Text-mode prompt — used when a problem reads as natural language (e.g. rounding) */
.problem-text {
    font-size: clamp(28px, 9vw, 44px);
    font-weight: 800;
    color: var(--color-label);
    line-height: 1.25;
    text-align: center;
    max-width: 88vw;
    white-space: pre-line; /* respects \n in display_text */
}

.answer-slot {
    font-size: 72px;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 100px;
    text-align: center;
    line-height: 1;
    position: relative;
    padding-bottom: 4px;
}

/* Multiple-choice and Yes/No buttons */
.choice-btn {
    flex: 1;
    min-height: 96px;
    border: 3px solid var(--color-border);
    border-radius: 20px;
    background: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--color-label);
    cursor: pointer;
    transition: background .12s, border-color .12s, transform .08s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.choice-btn:not(:disabled):active {
    transform: scale(0.95);
}
.choice-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.choice-btn--yes {
    border-color: #2ECC71;
    color: #2ECC71;
}
.choice-btn--no {
    border-color: #E74C3C;
    color: #E74C3C;
}

.answer-slot.empty {
    color: transparent;
}

.answer-slot.empty::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
    opacity: 0.4;
}

/* =====================================================
   NUMERIC KEYPAD
   ===================================================== */
.keypad {
    padding: 12px 16px 20px;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 340px;
    margin: 0 auto;
}

.key {
    min-width: 70px;
    min-height: 70px;
    border-radius: var(--radius-key);
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform 0.1s, opacity var(--transition-fast);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.key-digit, .key-backspace {
    background: var(--color-keypad-btn);
    color: var(--color-label);
}

.key-digit:hover, .key-backspace:hover {
    background: #e5e5ea;
}

.key-digit:active, .key-backspace:active {
    transform: scale(0.94);
    background: #d8d8dc;
}

.key-submit {
    background: var(--color-success);
    color: #fff;
    font-size: 28px;
}

.key-submit:hover {
    background: #27ae60;
}

.key-submit:active {
    transform: scale(0.94);
}

.key-submit.disabled {
    background: var(--color-keypad-btn);
    color: var(--color-secondary);
    cursor: not-allowed;
    transform: none;
}

.keypad.locked .key {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================================================
   FEEDBACK OVERLAYS
   ===================================================== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: overlayFadeIn 0.15s ease both;
    pointer-events: all;
}

.overlay.fade-out {
    animation: overlayFadeOut 0.2s ease both;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes overlayFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.overlay-correct {
    background: rgba(46,204,113,0.92);
}

.overlay-wrong {
    background: rgba(231,76,60,0.92);
}

.overlay-tier {
    background: rgba(91,106,240,0.95);
}

.overlay-icon {
    font-size: 80px;
    line-height: 1;
    color: #fff;
}

.overlay-answer-label {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 700;
}

.overlay-answer-number {
    font-size: 72px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.overlay-tier-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.overlay-tier-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

/* =====================================================
   SUMMARY PAGE
   ===================================================== */
.summary-page {
    min-height: 100vh;
    background: var(--color-background);
    padding: 32px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    /* Account for full-page centering on larger screens */
}

.summary-header {
    text-align: center;
    margin-bottom: 32px;
}

.summary-star {
    font-size: 64px;
    display: inline-block;
    animation: starBounce 0.5s ease both;
    margin-bottom: 12px;
}

@keyframes starBounce {
    0%   { opacity: 0; transform: scale(0.4); }
    70%  { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.summary-message {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-label);
    margin-bottom: 8px;
}

/* Stats cards */
.summary-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 24px 20px;
    margin-bottom: 16px;
    width: 100%;
}

.stats-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.stats-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-cell {
    text-align: center;
    padding: 8px 4px;
}

.stat-cell-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-cell-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-cell-value.v-score   { color: var(--color-primary); }
.stat-cell-value.v-goal    { color: var(--color-secondary); }
.stat-cell-value.v-time    { color: var(--color-label); }
.stat-cell-value.v-correct { color: var(--color-success); }
.stat-cell-value.v-missed-some  { color: var(--color-error); }
.stat-cell-value.v-missed-zero  { color: var(--color-secondary); }

/* Tier breakdown */
.tier-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.tier-breakdown-row:last-child {
    border-bottom: none;
}

.tier-breakdown-name {
    font-weight: 700;
    font-size: 0.95rem;
    flex: 1;
}

.tier-breakdown-correct {
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 48px;
    text-align: right;
}

.tier-breakdown-missed {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 48px;
    text-align: right;
}

.tier-breakdown-missed.has-errors { color: var(--color-error); }
.tier-breakdown-missed.no-errors  { color: var(--color-secondary); }

/* =====================================================
   UPGRADE PAGE
   ===================================================== */
.upgrade-page {
    min-height: 100vh;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.upgrade-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 48px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.upgrade-star {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.upgrade-heading {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-label);
    margin-bottom: 12px;
}

.upgrade-body {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.upgrade-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 28px 0;
}

.upgrade-manage-text {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.upgrade-domain {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 24px;
}

/* =====================================================
   RESPONSIVE — 600px+
   ===================================================== */
@media (min-width: 600px) {
    .quiz-page {
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
        margin: 0 auto;
    }

    .problem-number {
        font-size: 80px;
    }

    .problem-operator {
        font-size: 64px;
    }

    .problem-equals {
        font-size: 64px;
    }

    .problem-text {
        font-size: 44px;
    }

    .answer-slot {
        font-size: 80px;
    }

    .key {
        min-height: 76px;
        font-size: 30px;
    }

    .goal-ring-wrapper {
        width: 220px;
        height: 220px;
    }

    .goal-ring-svg {
        width: 220px;
        height: 220px;
    }

    .goal-ring-number {
        font-size: 2.6rem;
    }
}

/* =====================================================
   RESPONSIVE — 900px+
   ===================================================== */
@media (min-width: 900px) {
    .quiz-page {
        max-width: 480px;
        min-height: 100vh;
        box-shadow: 0 0 60px rgba(91,106,240,0.1);
    }

    .home-page {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
        min-height: 100vh;
    }

    .summary-page {
        margin: 40px auto;
        min-height: unset;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-overlay);
        padding: 40px 32px;
    }
}
