/* ==========================================
   Design Tokens & Reset
   ========================================== */
:root {
    --bg-dark: #0c0c1a;
    --bg-card: rgba(255, 255, 255, 0.97);
    --bg-card-solid: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-border: rgba(255, 255, 255, 0.1);
    --accent: hsl(262, 70%, 52%);        /* Rich purple */
    --accent-hover: hsl(262, 70%, 44%);  /* Darker purple */
    --accent-light: hsl(262, 70%, 96%);  /* Very subtle purple tint */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --text-light: #e8e8f0;
    --text-light-muted: rgba(232, 232, 240, 0.6);
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 100px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Particle Canvas
   ========================================== */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================
   Timer Display
   ========================================== */
.timer-display {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}

.timer-display.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.timer-display.warning {
    background: rgba(180, 30, 30, 0.25);
    border-color: rgba(220, 50, 50, 0.5);
    color: #ffb3b3;
    animation: timerPulse 1.2s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 50, 50, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(220, 50, 50, 0); }
}

/* ==========================================
   Hero Section — Professional Competition Landing
   ========================================== */
.hero-section {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        var(--bg-dark);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    padding: 24px;
    max-width: 640px;
    animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-badge__year {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.hero-badge__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Hero Title */
.hero-title-block {
    margin-bottom: 28px;
}

.hero-region {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
}

.hero-title__line {
    display: block;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.03em;
}

.hero-title__line--accent {
    color: var(--accent);
}

/* Hero Divider */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-divider__line {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.hero-divider__icon {
    color: var(--text-light-muted);
    opacity: 0.5;
}

/* Hero Details */
.hero-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light-muted);
}

.hero-detail svg {
    opacity: 0.5;
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.02em;
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
}

.hero-cta svg {
    transition: transform var(--transition-base);
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

/* ==========================================
   Quiz Container
   ========================================== */
.quiz-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

/* ==========================================
   Screen Management
   ========================================== */
.screen {
    display: none;
    width: 100%;
    max-width: 600px;
    animation: screenEnter 0.35s ease;
}

.screen--active {
    display: block;
}

@keyframes screenEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 16px;
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' 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 14px center;
    padding-right: 42px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--text-muted);
}

.btn-ghost:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Paper Selection
   ========================================== */
.paper-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.paper-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    background: #fff;
}

.paper-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.paper-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.paper-option.selected .paper-option__check {
    opacity: 1;
    transform: scale(1);
}

.paper-option.selected .paper-option__icon {
    background: var(--accent);
    color: #fff;
}

.paper-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(37, 99, 235, 0.07);
    color: var(--accent);
    border-radius: 10px;
    transition: all var(--transition-base);
}

.paper-option__content {
    flex: 1;
}

.paper-option__content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.paper-option__content p {
    font-size: 12px;
    color: var(--text-muted);
}

.paper-option__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: all var(--transition-base);
}

/* ==========================================
   Quiz Screen Layout
   ========================================== */
.quiz-layout {
    width: 100%;
    max-width: 680px;
}

.quiz-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.quiz-header__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quiz-participant {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light-muted);
}

.quiz-paper-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
}

.quiz-question-progress {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light-muted);
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

/* Progress Bar */
.progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-pill);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Card */
.question-card {
    padding: 32px;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-counter {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.paper-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.question-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 50px;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.option:hover:not(.disabled) {
    border-color: var(--accent);
    background: var(--accent-light);
}

.option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.option.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.option.selected .option-letter {
    background: var(--accent);
    color: #fff;
}

.option-text {
    flex: 1;
    padding-top: 2px;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ==========================================
   Paper Transition Screen
   ========================================== */
.transition-card {
    text-align: center;
    padding: 44px 36px;
}

.transition-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    border-radius: 50%;
    margin-bottom: 20px;
}

.transition-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.transition-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.transition-paper {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}

/* ==========================================
   Results Screen
   ========================================== */
.results-card {
    text-align: center;
    padding: 36px 32px;
}

.results-header {
    margin-bottom: 24px;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    border-radius: 50%;
    margin-bottom: 16px;
}

.results-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.results-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Score Circle */
.score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: rgba(37, 99, 235, 0.1);
    stroke-width: 10;
}

.score-ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.score-percent {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

/* Paper Breakdown */
.paper-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.paper-score-item {
    padding: 14px 10px;
    background: rgba(37, 99, 235, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.paper-score-item__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.paper-score-item__value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.paper-score-item__percent {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 3px;
}

/* Results Message */
.results-message {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 14px 16px;
    background: rgba(37, 99, 235, 0.04);
    border-radius: var(--radius-md);
    line-height: 1.5;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.results-actions form,
.results-actions .btn {
    width: 100%;
}

.results-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ==========================================
   Instructions Modal
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(16px) scale(0.97);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px 28px;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.instruction-item:last-child {
    border-bottom: none;
}

.instruction-item--warning {
    background: rgba(220, 38, 38, 0.03);
    margin: 8px -12px 0;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.instruction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.instruction-icon--warning {
    background: rgba(220, 38, 38, 0.08);
    color: hsl(0, 72%, 51%);
}

.instruction-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: 6px;
}

.instruction-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 28px 24px;
}

/* ==========================================
   Toast
   ========================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--text-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   Refresh Warning Overlay
   ========================================== */
.refresh-warning {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    padding: 20px;
}

.refresh-warning.active {
    opacity: 1;
    visibility: visible;
}

.refresh-warning__content {
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.refresh-warning__content svg {
    color: hsl(0, 72%, 51%);
    margin-bottom: 16px;
}

.refresh-warning__content h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.refresh-warning__content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 640px) {
    .card {
        padding: 24px 18px;
    }

    .card-title {
        font-size: 20px;
    }

    .question-card {
        padding: 22px 18px;
    }

    .question-text {
        font-size: 16px;
    }

    .quiz-nav .btn {
        width: 100%;
    }

    .paper-breakdown {
        grid-template-columns: 1fr;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-number {
        font-size: 40px;
    }

    .timer-display {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .quiz-container {
        padding: 68px 12px 20px;
    }

    .hero-details {
        gap: 16px;
    }

    .hero-detail span {
        font-size: 12px;
    }

    .hero-title__line {
        font-size: clamp(28px, 8vw, 48px);
    }
}

/* ==========================================
   Utility
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
