:root {
    --arena-bg: #f6faff;
    --arena-bg2: #fbf8ff;
    --arena-card: rgba(255, 255, 255, 0.92);
    --arena-card-soft: rgba(255, 255, 255, 0.74);
    --arena-line: #d8e5f6;
    --arena-line-strong: #bcd2f2;
    --arena-ink: #152033;
    --arena-muted: #5f6c80;
    --arena-primary: #4f63ee;
    --arena-primary-dark: #2447d8;
    --arena-primary-soft: rgba(79, 99, 238, 0.12);
    --arena-mint: #10b981;
    --arena-mint-soft: rgba(16, 185, 129, 0.13);
    --arena-amber: #f59e0b;
    --arena-amber-soft: rgba(245, 158, 11, 0.15);
    --arena-pink: #ec4899;
    --arena-pink-soft: rgba(236, 72, 153, 0.12);
    --arena-red: #ef4469;
    --arena-red-soft: rgba(239, 68, 105, 0.12);
    --arena-shadow: 0 22px 60px rgba(48, 64, 119, 0.14);
    --arena-shadow-soft: 0 12px 28px rgba(48, 64, 119, 0.10);
    --arena-feedback-auto-duration: 2.8s;
}

html,
body.quiz-arena-light {
    color-scheme: light;
}

body.quiz-arena-light {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 14px;
    color: var(--arena-ink);
    background:
        linear-gradient(rgba(91, 118, 185, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 118, 185, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, var(--arena-bg), var(--arena-bg2));
    background-size: 68px 68px, 68px 68px, auto;
    font-family: "Pretendard", var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    overflow-x: hidden;
}

body.quiz-arena-light > .live-page-hero,
body.quiz-arena-light > #liveStatusStrip,
body.quiz-arena-light > #studentProfileCard,
body.quiz-arena-light > #top5Section,
body.quiz-arena-light > #liveQuizCard {
    display: none;
}

body.quiz-arena-light #bossStageShell {
    display: none !important;
}

body.quiz-arena-light .quiz-context-banner {
    display: none !important;
}

.quiz-arena-app {
    position: relative;
    width: min(1500px, calc(100vw - 28px));
    min-height: calc(100vh - 28px);
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
}

.quiz-arena-topbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px 20px;
    border: 1px solid var(--arena-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--arena-shadow-soft);
}

.quiz-arena-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.quiz-arena-brand-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--arena-primary), #7c61ff);
    color: #fff;
    box-shadow: 0 12px 26px rgba(79, 99, 238, 0.26);
    font-size: 26px;
}

.quiz-arena-brand h1 {
    margin: 0;
    color: var(--arena-ink);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.quiz-arena-brand p {
    margin: 5px 0 0;
    color: var(--arena-muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.quiz-arena-stepper {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--arena-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    overflow-x: auto;
}

.quiz-arena-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--arena-muted);
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.quiz-arena-step i {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #edf2ff;
    color: var(--arena-primary);
    font-style: normal;
    font-size: 0.84rem;
}

.quiz-arena-step b {
    font-size: 0.9rem;
}

.quiz-arena-step.active {
    color: var(--arena-ink);
    background: var(--arena-primary-soft);
}

.quiz-arena-step.active i {
    background: var(--arena-primary);
    color: #fff;
}

.quiz-arena-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    min-height: 0;
}

.quiz-arena-main-panel,
.quiz-arena-side-panel {
    border: 1px solid var(--arena-line);
    background: var(--arena-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 32px;
    box-shadow: var(--arena-shadow);
}

.quiz-arena-main-panel {
    min-height: calc(100vh - 128px);
    padding: clamp(18px, 2.3vw, 28px);
}

.quiz-arena-side-panel {
    display: none;
    position: sticky;
    top: 14px;
    gap: 14px;
    padding: 18px;
}

.quiz-arena-screen-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.quiz-arena-screen-copy {
    min-width: 0;
}

.quiz-arena-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--arena-primary-soft);
    color: var(--arena-primary-dark);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0;
}

.quiz-arena-screen-head h2 {
    margin: 0;
    color: var(--arena-ink);
    font-size: clamp(1.75rem, 4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.quiz-arena-screen-head p {
    margin: 10px 0 0;
    color: var(--arena-muted);
    font-weight: 800;
    line-height: 1.55;
}

.quiz-arena-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
}

.quiz-arena-profile-mount {
    display: contents;
}

body.quiz-arena-light #studentProfileCard {
    display: inline-flex !important;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.quiz-arena-light #studentProfileCard h2 {
    display: none;
}

body.quiz-arena-light #studentProfileCard > div {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.quiz-arena-light .student-info {
    margin: 0;
    color: var(--arena-ink);
}

body.quiz-arena-light .student-info-box,
body.quiz-arena-light .student-code-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--arena-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--arena-shadow-soft);
    font-weight: 950;
}

body.quiz-arena-light .student-info-box .avatar-bubble {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

body.quiz-arena-light #changeCodeBtn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--arena-line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--arena-ink);
    font-weight: 850;
}

.quiz-arena-btn,
body.quiz-arena-light .btn-primary,
body.quiz-arena-light .btn-secondary,
body.quiz-arena-light .primary-btn,
body.quiz-arena-light .secondary-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--arena-line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--arena-ink);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(67, 86, 151, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.quiz-arena-btn:hover,
body.quiz-arena-light .btn-primary:hover,
body.quiz-arena-light .btn-secondary:hover {
    transform: translateY(-1px);
}

.quiz-arena-btn:active,
body.quiz-arena-light .btn-primary:active,
body.quiz-arena-light .btn-secondary:active {
    transform: translateY(1px);
}

.quiz-arena-btn.primary,
body.quiz-arena-light .btn-primary,
body.quiz-arena-light .primary-btn {
    border-color: transparent;
    background: linear-gradient(135deg, var(--arena-primary), #765ef8);
    color: #fff;
    box-shadow: 0 14px 28px rgba(79, 99, 238, 0.24);
}

body.quiz-arena-light .btn-secondary,
body.quiz-arena-light .secondary-btn {
    border-color: var(--arena-line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--arena-ink);
}

.quiz-arena-status-mount {
    display: none;
}

.quiz-arena-top-info {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.quiz-arena-info-box {
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--arena-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.quiz-arena-info-box span {
    display: block;
    margin-bottom: 5px;
    color: var(--arena-muted);
    font-size: 0.75rem;
    font-weight: 950;
}

.quiz-arena-info-box strong {
    display: block;
    min-width: 0;
    color: var(--arena-ink);
    font-size: 1.18rem;
    font-weight: 1000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-arena-question-panel {
    min-height: 430px;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--arena-line-strong);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--arena-shadow);
}

.quiz-arena-question-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-arena-q-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--arena-muted);
    font-weight: 950;
}

.quiz-arena-q-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--arena-primary-soft);
    color: var(--arena-primary-dark);
    font-size: 0.82rem;
    font-weight: 950;
}

.quiz-arena-question-head h3 {
    margin: 10px 0 0;
    max-width: 850px;
    color: var(--arena-ink);
    font-size: clamp(1.3rem, 2.6vw, 2.35rem);
    line-height: 1.4;
    letter-spacing: 0;
    word-break: keep-all;
}

.quiz-arena-timer {
    min-width: 160px;
    text-align: right;
}

.quiz-arena-timer-text {
    color: var(--arena-muted);
    font-weight: 900;
}

.quiz-arena-timer-text b {
    color: var(--arena-primary-dark);
    font-size: 1.3rem;
}

.quiz-arena-timer-bar {
    width: 100%;
    height: 9px;
    margin-top: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef8;
}

.quiz-arena-timer-bar i {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--arena-mint), var(--arena-primary));
    transition: width 0.2s linear;
}

.quiz-arena-progress-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 12px;
    margin-bottom: 20px;
}

.quiz-arena-progress-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dbe4f4;
}

.quiz-arena-progress-dots i.done {
    background: var(--arena-mint);
}

.quiz-arena-progress-dots i.current {
    background: var(--arena-primary);
    transform: scale(1.25);
}

.quiz-arena-banner {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 12px;
    border-radius: 16px;
    font-weight: 950;
}

.quiz-arena-banner.show {
    display: flex;
    animation: arenaBannerPop 0.36s ease both;
}

.quiz-arena-banner.good {
    background: rgba(22, 163, 74, 0.13);
    color: #10753c;
}

.quiz-arena-banner.bad {
    background: var(--arena-red-soft);
    color: #be123c;
}

body.quiz-arena-light #liveQuizCard {
    display: block !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.quiz-arena-light #liveQuizCard > h2,
body.quiz-arena-light #liveQuizCard > .description,
body.quiz-arena-light #refreshBtn {
    display: none;
}

body.quiz-arena-light #quizArea {
    color: var(--arena-ink);
    font-weight: 750;
}

body.quiz-arena-stage-active #quizArea .quiz-stage-placeholder,
body.quiz-arena-stage-active #quizArea #raceArea,
body.quiz-arena-stage-active #quizArea #quizProgress,
body.quiz-arena-stage-active #quizArea #questionContainer,
body.quiz-arena-stage-active #quizArea .quiz-title,
body.quiz-arena-stage-active #quizArea .quiz-list {
    display: none !important;
}

body.quiz-arena-light #liveQuizCard .btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.quiz-arena-score-line {
    display: none;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--arena-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--arena-muted);
    font-weight: 950;
}

.quiz-arena-score-line b {
    color: var(--arena-ink);
}

.quiz-arena-footer-line {
    margin-top: 12px;
    color: var(--arena-muted);
    font-size: 0.86rem;
    font-weight: 850;
    text-align: center;
}

body.quiz-arena-light .quiz-title {
    margin: 0 0 14px;
    color: var(--arena-primary-dark);
    font-weight: 1000;
}

body.quiz-arena-light .quiz-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.quiz-arena-light .quiz-select-card {
    position: relative;
    min-height: 170px;
    padding: 18px;
    border: 2px solid var(--arena-line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.75));
    box-shadow: var(--arena-shadow-soft);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
}

body.quiz-arena-light .quiz-select-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--arena-primary-soft);
}

body.quiz-arena-light .quiz-select-card:nth-child(2n) {
    border-color: rgba(16, 185, 129, 0.42);
}

body.quiz-arena-light .quiz-select-card:nth-child(2n)::after {
    background: var(--arena-mint-soft);
}

body.quiz-arena-light .quiz-select-card:nth-child(3n) {
    border-color: rgba(245, 158, 11, 0.42);
}

body.quiz-arena-light .quiz-select-card:nth-child(3n)::after {
    background: var(--arena-amber-soft);
}

body.quiz-arena-light .quiz-select-card:nth-child(4n) {
    border-color: rgba(236, 72, 153, 0.36);
}

body.quiz-arena-light .quiz-select-card:nth-child(4n)::after {
    background: var(--arena-pink-soft);
}

body.quiz-arena-light .quiz-select-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 99, 238, 0.45);
    box-shadow: 0 16px 28px rgba(79, 99, 238, 0.12);
}

body.quiz-arena-light .quiz-select-title,
body.quiz-arena-light .quiz-select-meta {
    position: relative;
    z-index: 1;
}

body.quiz-arena-light .quiz-select-title {
    margin-top: 22px;
    color: var(--arena-ink);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 1000;
}

body.quiz-arena-light .quiz-select-title::before {
    content: "개인전";
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 0 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf2ff;
    color: var(--arena-primary-dark);
    font-size: 0.76rem;
    font-weight: 950;
}

body.quiz-arena-light .quiz-select-meta {
    margin-top: 8px;
    color: var(--arena-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    font-weight: 800;
}

body.quiz-arena-light .boss-stage-quiz-dock,
body.quiz-arena-light .boss-stage-quiz-dock[data-layout="classic-focus"],
body.quiz-arena-light .boss-stage-quiz-dock[data-layout="classic-focus"][data-state="resolving"],
body.quiz-arena-light .boss-stage-quiz-dock[data-layout="classic-focus"][data-state="entering"] {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: filter 0.14s ease, opacity 0.14s ease;
}

body.quiz-arena-light .boss-stage-quiz-dock:empty {
    display: none;
}

body.quiz-arena-light .classic-focus-modal-shell {
    padding: 0;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.quiz-arena-light .classic-focus-meta {
    display: none;
}

body.quiz-arena-light .classic-focus-question-card,
body.quiz-arena-light .question-card.boss-stage-question-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.quiz-arena-light .classic-focus-question-card::before,
body.quiz-arena-light .question-card::before {
    display: none;
}

body.quiz-arena-light .classic-focus-question-card .question-header {
    display: none;
}

body.quiz-arena-light .classic-focus-question-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
    gap: 20px;
    align-items: start;
}

body.quiz-arena-light .classic-focus-question-layout.no-media {
    grid-template-columns: 1fr;
}

body.quiz-arena-light .classic-focus-media-wrap,
body.quiz-arena-light .classic-focus-question-card .question-media {
    min-height: 280px;
    max-height: 420px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--arena-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
}

body.quiz-arena-light .classic-focus-question-card .question-media img {
    width: 100%;
    height: 100%;
    max-height: 390px;
    object-fit: contain;
}

body.quiz-arena-light .classic-focus-question-card .question-image-zoom-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    cursor: zoom-in;
}

body.quiz-arena-light .classic-focus-question-card .question-image-zoom-trigger:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

body.quiz-arena-light .classic-focus-body {
    display: grid;
    gap: 14px;
}

body.quiz-arena-light .classic-focus-question-card .question-text {
    margin: 0 auto 4px;
    max-width: 850px;
    color: var(--arena-ink);
    font-size: clamp(1.3rem, 2.6vw, 2.35rem);
    line-height: 1.4;
    font-weight: 950;
    text-align: center;
    word-break: keep-all;
}

body.arena-scene-play .classic-focus-question-card .question-text,
body.arena-scene-rush .classic-focus-question-card .question-text {
    display: none;
}

body.quiz-arena-light .classic-focus-question-card .options-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.quiz-arena-light .classic-focus-question-card .options-list li {
    margin: 0;
}

body.quiz-arena-light .classic-focus-question-card .option-item {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: stretch;
    min-height: 96px;
    padding: 0;
    border: 2px solid var(--arena-line);
    border-radius: 22px;
    background: #fff;
    color: var(--arena-ink);
    text-align: center;
    box-shadow: 0 10px 20px rgba(55, 76, 138, 0.08);
    overflow: hidden;
}

body.quiz-arena-light .classic-focus-question-card .option-item:hover {
    border-color: rgba(79, 99, 238, 0.45);
    box-shadow: 0 16px 28px rgba(79, 99, 238, 0.12);
}

body.quiz-arena-light .classic-focus-question-card .option-item::before {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    background: #eff4ff;
    color: var(--arena-primary-dark);
    font-weight: 1000;
    font-size: 1.05rem;
}

body.quiz-arena-light .classic-focus-question-card li[data-idx="0"] .option-item::before { content: "1"; }
body.quiz-arena-light .classic-focus-question-card li[data-idx="1"] .option-item::before { content: "2"; }
body.quiz-arena-light .classic-focus-question-card li[data-idx="2"] .option-item::before { content: "3"; }
body.quiz-arena-light .classic-focus-question-card li[data-idx="3"] .option-item::before { content: "4"; }
body.quiz-arena-light .classic-focus-question-card li[data-idx="4"] .option-item::before { content: "5"; }
body.quiz-arena-light .classic-focus-question-card li[data-idx="5"] .option-item::before { content: "6"; }

body.quiz-arena-light .classic-focus-question-card .option-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.quiz-arena-light .classic-focus-question-card .option-main {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 100%;
    padding: 18px 22px;
    min-width: 0;
    text-align: center;
}

body.quiz-arena-light .classic-focus-question-card .option-index {
    display: none;
}

body.quiz-arena-light .classic-focus-question-card .option-text {
    color: var(--arena-ink);
    width: 100%;
    font-size: clamp(1.12rem, 1.65vw, 1.42rem);
    line-height: 1.38;
    font-weight: 900;
    word-break: keep-all;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: center;
    transform: translateY(5px);
}

body.question-image-lightbox-open {
    overflow: hidden;
}

.question-image-lightbox[hidden] {
    display: none !important;
}

.question-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(8px);
}

.question-image-lightbox-panel {
    position: relative;
    display: grid;
    place-items: center;
    width: min(96vw, 1280px);
    max-height: 92vh;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

.question-image-lightbox-img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 72px);
    object-fit: contain;
    border-radius: 16px;
    cursor: zoom-out;
}

.question-image-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 64px;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.question-image-lightbox-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 3px;
}

body.quiz-arena-light .classic-focus-question-card .correct-answer {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    color: #08784f !important;
}

body.quiz-arena-light .classic-focus-question-card .correct-answer::before {
    background: #10b981;
    color: #fff;
}

body.quiz-arena-light .classic-focus-question-card .wrong-answer-selected {
    border-color: #fb7185 !important;
    background: #fff1f5 !important;
    color: #be123c !important;
}

body.quiz-arena-light .classic-focus-question-card .wrong-answer-selected::before {
    background: #fb7185;
    color: #fff;
}

body.quiz-arena-light .short-answer-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

body.quiz-arena-light .short-answer-box label {
    grid-column: 1 / -1;
    color: var(--arena-muted);
    font-weight: 800;
}

body.quiz-arena-light .short-answer-box input {
    min-height: 52px;
    border: 1px solid var(--arena-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

body.quiz-arena-light .question-multi-actions,
body.quiz-arena-light .classic-focus-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.quiz-arena-light .live-reveal-summary,
body.quiz-arena-light .short-answer-review {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--arena-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--arena-muted);
    line-height: 1.55;
    font-weight: 800;
}

body.quiz-arena-light .live-reveal-summary-explanation {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    color: #244164;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.quiz-arena-feedback-stage {
    display: none;
    max-width: 920px;
    margin: 20px auto;
    padding: clamp(26px, 5vw, 56px) clamp(20px, 4vw, 44px);
    border: 2px solid rgba(16, 185, 129, 0.25);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 253, 245, 0.92));
    box-shadow: var(--arena-shadow);
    text-align: center;
}

.quiz-arena-feedback-star {
    margin-bottom: 12px;
    font-size: 74px;
    animation: arenaFeedbackPop 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.5) both;
}

.quiz-arena-feedback-stage h2 {
    margin: 0;
    color: var(--arena-mint);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.quiz-arena-feedback-stage p {
    margin: 10px 0 0;
    color: var(--arena-muted);
    font-weight: 850;
    line-height: 1.6;
}

.quiz-arena-answer-box {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 18px;
    border: 1px solid var(--arena-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    font-weight: 950;
}

.quiz-arena-explanation-box {
    max-width: 760px;
    max-height: min(220px, 28svh);
    margin: 14px auto 0;
    padding: 16px 18px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.86);
    color: #244164;
    font-weight: 850;
    line-height: 1.65;
    overflow: auto;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: pre-wrap;
}

.quiz-arena-explanation-box[hidden],
.quiz-arena-feedback-next[hidden],
.quiz-arena-feedback-progress[hidden] {
    display: none !important;
}

.quiz-arena-feedback-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 20px auto 0;
    padding: 0 28px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--arena-primary), var(--arena-primary-dark));
    color: #fff;
    box-shadow: var(--arena-shadow-soft);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 950;
}

.quiz-arena-feedback-next:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}

.quiz-arena-feedback-progress {
    width: min(460px, 100%);
    height: 10px;
    margin: 28px auto 0;
    border-radius: 999px;
    background: #e8eef8;
    overflow: hidden;
}

.quiz-arena-feedback-progress i {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--arena-mint), var(--arena-primary));
    animation: arenaFillNext var(--arena-feedback-auto-duration) linear forwards;
}

body.arena-scene-wrong .quiz-arena-feedback-stage {
    border-color: rgba(239, 68, 105, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 247, 0.92));
}

body.arena-scene-wrong .quiz-arena-feedback-stage h2 {
    color: var(--arena-red);
}

body.arena-scene-play .quiz-arena-screen-head,
body.arena-scene-rush .quiz-arena-screen-head,
body.arena-scene-correct .quiz-arena-screen-head,
body.arena-scene-wrong .quiz-arena-screen-head,
body.arena-scene-result .quiz-arena-screen-head,
body.arena-scene-play #arenaHudMount,
body.arena-scene-rush #arenaHudMount,
body.arena-scene-correct #arenaHudMount,
body.arena-scene-wrong #arenaHudMount,
body.arena-scene-result #arenaHudMount,
body.arena-scene-result #arenaTop5Mount {
    display: none !important;
}

body.arena-scene-play .quiz-arena-layout,
body.arena-scene-rush .quiz-arena-layout {
    grid-template-columns: minmax(0, 1fr);
}

body.arena-scene-play .quiz-arena-side-panel,
body.arena-scene-rush .quiz-arena-side-panel {
    display: none !important;
}

body.arena-scene-play .quiz-arena-topbar,
body.arena-scene-rush .quiz-arena-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 18px;
}

body.arena-scene-play .quiz-arena-brand,
body.arena-scene-rush .quiz-arena-brand {
    gap: 10px;
}

body.arena-scene-play .quiz-arena-brand-badge,
body.arena-scene-rush .quiz-arena-brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 22px;
}

body.arena-scene-play .quiz-arena-brand h1,
body.arena-scene-rush .quiz-arena-brand h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
}

body.arena-scene-play .quiz-arena-brand p,
body.arena-scene-rush .quiz-arena-brand p {
    margin-top: 2px;
    font-size: 0.78rem;
}

body.arena-scene-play .quiz-arena-stepper,
body.arena-scene-rush .quiz-arena-stepper {
    gap: 4px;
    padding: 5px;
}

body.arena-scene-play .quiz-arena-step,
body.arena-scene-rush .quiz-arena-step {
    height: 30px;
    gap: 4px;
    padding: 0 8px;
}

body.arena-scene-play .quiz-arena-step i,
body.arena-scene-rush .quiz-arena-step i {
    width: 22px;
    height: 22px;
    font-size: 0.74rem;
}

body.arena-scene-play .quiz-arena-step b,
body.arena-scene-rush .quiz-arena-step b {
    font-size: 0.78rem;
}

body.arena-scene-selection .quiz-arena-question-panel,
body.arena-scene-ready .quiz-arena-question-panel,
body.arena-scene-loading .quiz-arena-question-panel {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.arena-scene-selection .quiz-arena-question-head,
body.arena-scene-ready .quiz-arena-question-head,
body.arena-scene-loading .quiz-arena-question-head,
body.arena-scene-selection .quiz-arena-progress-dots,
body.arena-scene-ready .quiz-arena-progress-dots,
body.arena-scene-loading .quiz-arena-progress-dots,
body.arena-scene-selection .quiz-arena-footer-line,
body.arena-scene-ready .quiz-arena-footer-line,
body.arena-scene-loading .quiz-arena-footer-line {
    display: none;
}

body.arena-scene-play .quiz-arena-top-info,
body.arena-scene-rush .quiz-arena-top-info,
body.arena-scene-correct .quiz-arena-top-info,
body.arena-scene-wrong .quiz-arena-top-info,
body.arena-scene-result .quiz-arena-top-info {
    display: grid;
}

body.arena-scene-play .quiz-arena-top-info,
body.arena-scene-rush .quiz-arena-top-info {
    gap: 8px;
    margin-bottom: 12px;
}

body.arena-scene-play .quiz-arena-info-box,
body.arena-scene-rush .quiz-arena-info-box {
    min-height: 58px;
    padding: 9px 12px;
    border-radius: 16px;
}

body.arena-scene-play .quiz-arena-score-line,
body.arena-scene-rush .quiz-arena-score-line {
    display: flex;
}

body.arena-scene-correct .quiz-arena-question-panel,
body.arena-scene-wrong .quiz-arena-question-panel {
    display: none;
}

body.arena-scene-correct .quiz-arena-feedback-stage,
body.arena-scene-wrong .quiz-arena-feedback-stage {
    display: block;
}

body.quiz-arena-light .classic-focus-result-summary {
    text-align: center;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--arena-line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--arena-shadow);
}

body.quiz-arena-light .result-summary-score {
    margin: 0 0 12px;
    color: var(--arena-primary);
    font-size: clamp(3.4rem, 9vw, 7rem);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: 0;
}

body.quiz-arena-light .classic-focus-result-summary h2 {
    margin: 0 0 12px;
    color: var(--arena-ink);
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: 0;
}

body.quiz-arena-light .quiz-arena-result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

body.quiz-arena-light .quiz-arena-result-metrics div {
    padding: 18px 10px;
    border: 1px solid var(--arena-line);
    border-radius: 20px;
    background: #f8fbff;
}

body.quiz-arena-light .quiz-arena-result-metrics span {
    display: block;
    margin-bottom: 8px;
    color: var(--arena-muted);
    font-size: 0.82rem;
    font-weight: 950;
}

body.quiz-arena-light .quiz-arena-result-metrics strong {
    color: var(--arena-ink);
    font-size: 1.45rem;
    font-weight: 1000;
}

body.quiz-arena-light .result-summary-sub {
    margin: 16px 0;
    color: var(--arena-muted);
    font-weight: 850;
}

body.quiz-arena-light .classic-focus-review-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

body.quiz-arena-light .classic-focus-review-actions .quiz-result-return-btn {
    position: relative;
    justify-content: center;
    flex: 1 1 100%;
    max-width: 420px;
    min-height: 58px;
    border-color: transparent;
    background: linear-gradient(135deg, var(--arena-mint), var(--arena-primary));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 1000;
    box-shadow:
        0 18px 34px rgba(16, 185, 129, 0.24),
        0 8px 20px rgba(79, 99, 238, 0.18);
}

body.quiz-arena-light .classic-focus-review-actions .quiz-result-return-btn::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    pointer-events: none;
}

body.quiz-arena-light .classic-focus-review-actions .quiz-result-return-btn:hover {
    background: linear-gradient(135deg, #059669, var(--arena-primary-dark));
    color: #fff;
    box-shadow:
        0 22px 42px rgba(16, 185, 129, 0.28),
        0 10px 24px rgba(79, 99, 238, 0.22);
}

body.quiz-arena-light .classic-focus-review-actions .quiz-result-return-btn:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.34);
    outline-offset: 4px;
}

body.quiz-arena-light .quiz-arena-result-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    align-items: start;
}

body.quiz-arena-light .result-top5-mount {
    margin: 0;
}

body.quiz-arena-light .result-top5-card {
    min-height: 100%;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--arena-line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--arena-shadow);
}

body.quiz-arena-light .result-top5-head {
    display: block;
    margin-bottom: 14px;
}

body.quiz-arena-light .result-top5-eyebrow,
body.quiz-arena-light .result-top5-my-label {
    color: var(--arena-primary-dark);
    font-size: 0.82rem;
    font-weight: 950;
}

body.quiz-arena-light .result-top5-head h3 {
    margin: 4px 0 0;
    color: var(--arena-ink);
    font-size: 1.35rem;
}

body.quiz-arena-light .result-top5-head p {
    margin: 8px 0 0;
    color: var(--arena-muted);
    font-weight: 800;
    line-height: 1.5;
}

body.quiz-arena-light .result-top5-list {
    display: grid;
    gap: 8px;
}

body.quiz-arena-light .quiz-top-item,
body.quiz-arena-light .rank-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-bottom: 1px solid #edf2f7;
    color: var(--arena-ink);
    font-weight: 900;
}

body.quiz-arena-light .quiz-top-item:last-child,
body.quiz-arena-light .rank-row:last-child {
    border-bottom: 0;
}

body.quiz-arena-light .result-top5-my-rank {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(83, 111, 176, 0.32);
}

body.quiz-arena-light .classic-focus-review-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.quiz-arena-mini-card {
    padding: 16px;
    border: 1px solid var(--arena-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--arena-shadow-soft);
}

.quiz-arena-mini-title {
    margin: 0 0 8px;
    color: var(--arena-ink);
    font-size: 0.96rem;
    font-weight: 950;
}

.quiz-arena-mini-desc {
    margin: 0;
    color: var(--arena-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    font-weight: 700;
}

.quiz-arena-mini-desc b {
    color: var(--arena-ink);
}

.quiz-arena-hud-progress {
    height: 9px;
    margin-top: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef8;
}

.quiz-arena-hud-progress i {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--arena-mint), var(--arena-amber));
}

.quiz-arena-hud-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: var(--arena-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.quiz-arena-tagline {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-top: 12px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--arena-primary-soft);
    color: var(--arena-primary-dark);
    font-size: 0.76rem;
    font-weight: 950;
}

.quiz-arena-feedback-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: center;
}

.quiz-arena-feedback-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #16a34a, var(--arena-mint));
    color: #fff;
    font-size: 0.88rem;
    font-weight: 1000;
    box-shadow: var(--arena-shadow-soft);
}

.quiz-arena-feedback-icon.bad {
    background: linear-gradient(135deg, var(--arena-red), #ff8e2a);
}

body.quiz-arena-light .rank-overlay {
    z-index: 1000;
    background: rgba(28, 40, 72, 0.58);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

body.quiz-arena-light .rank-overlay-inner {
    width: min(560px, 92vw);
    padding: 44px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--arena-ink);
    text-align: center;
    box-shadow: 0 35px 90px rgba(19, 26, 50, 0.28);
}

body.quiz-arena-light .rank-overlay.photo-finish .rank-overlay-inner {
    border-color: rgba(251, 146, 60, 0.84);
    box-shadow: 0 32px 90px rgba(251, 146, 60, 0.28), inset 0 0 0 2px rgba(255, 247, 237, 0.95);
}

body.quiz-arena-light .rank-overlay.lead-under-threat .rank-overlay-inner {
    border-color: rgba(248, 113, 113, 0.84);
    box-shadow: 0 32px 90px rgba(248, 113, 113, 0.28), inset 0 0 0 2px rgba(254, 242, 242, 0.95);
}

body.quiz-arena-light .rank-overlay.rank-pressure .rank-overlay-inner {
    border-color: rgba(96, 165, 250, 0.84);
    box-shadow: 0 32px 90px rgba(37, 99, 235, 0.22), inset 0 0 0 2px rgba(239, 246, 255, 0.95);
}

body.quiz-arena-light .rank-title {
    color: var(--arena-ink);
    font-size: clamp(1.8rem, 6vw, 3.1rem);
    line-height: 1.1;
    font-weight: 1000;
    letter-spacing: 0;
    transition: color 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

body.quiz-arena-light .rank-overlay.phase-loading .rank-title {
    color: #64748b;
    opacity: 0.74;
}

body.quiz-arena-light .rank-overlay.phase-drumroll .rank-title {
    color: #0f172a;
    filter: blur(1px);
    transform: scale(1.02);
}

body.quiz-arena-light .rank-overlay.phase-reveal .rank-title {
    animation: rankRevealPop 420ms cubic-bezier(.2, .8, .2, 1) both;
}

body.quiz-arena-light .rank-overlay.photo-finish.phase-reveal .rank-title {
    color: #ea580c;
}

body.quiz-arena-light .rank-overlay.lead-under-threat.phase-reveal .rank-title {
    color: #dc2626;
}

body.quiz-arena-light .rank-overlay.rank-pressure.phase-reveal .rank-title {
    color: #2563eb;
}

body.quiz-arena-light .rank-sub,
body.quiz-arena-light .rank-hint {
    color: var(--arena-muted);
    font-weight: 850;
}

body.quiz-arena-light .rank-list {
    background: #f8fbff;
    border-color: var(--arena-line);
    transition: opacity 0.24s ease, filter 0.24s ease, transform 0.24s ease;
}

body.quiz-arena-light .rank-overlay.phase-loading .rank-list {
    opacity: 0.55;
}

body.quiz-arena-light .rank-overlay.phase-drumroll .rank-list {
    opacity: 0.72;
    filter: blur(0.8px);
    transform: translateY(2px);
}

body.quiz-arena-light .rank-overlay.phase-reveal .rank-list {
    opacity: 1;
    filter: none;
    transform: none;
}

@keyframes rankRevealPop {
    0% { opacity: 0.58; transform: translateY(8px) scale(0.98); }
    70% { opacity: 1; transform: translateY(-2px) scale(1.025); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

body.quiz-arena-light .score-popup {
    top: 84px;
    right: 26px;
    background: linear-gradient(135deg, var(--arena-primary), #765ef8);
}

.quiz-arena-score-float {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1001;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--arena-primary);
    font-weight: 950;
    box-shadow: var(--arena-shadow);
    transform: translate(-50%, -50%);
    animation: arenaScoreFloat 1.05s ease forwards;
}

.quiz-arena-score-float.bad {
    color: var(--arena-red);
}

body.quiz-arena-light .student-code-prompt {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: min(520px, 100%);
    border-radius: 24px;
}

body.quiz-arena-light .student-code-title {
    color: var(--arena-ink);
    font-size: 1.2rem;
}

body.quiz-arena-light .student-code-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

body.quiz-arena-light .student-code-actions input {
    min-height: 46px;
    min-width: 0;
    border: 1px solid var(--arena-line);
    border-radius: 16px;
}

body.quiz-arena-light .news-reading-panel {
    max-height: 260px;
    overflow: auto;
    border-radius: 20px;
}

.quiz-arena-bottombar {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--arena-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--arena-muted);
    font-size: 0.84rem;
    font-weight: 850;
    box-shadow: var(--arena-shadow-soft);
}

.quiz-arena-fx {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

@keyframes arenaBannerPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes arenaFeedbackPop {
    from {
        opacity: 0.2;
        transform: scale(0.3) rotate(-14deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes arenaFillNext {
    to {
        width: 100%;
    }
}

@keyframes arenaScoreFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 18px)) scale(0.92);
    }
    18% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 72px)) scale(0.96);
    }
}

@media (max-width: 1100px) {
    .quiz-arena-topbar,
    .quiz-arena-layout,
    .quiz-arena-result-grid {
        grid-template-columns: 1fr !important;
    }

    .quiz-arena-stepper {
        justify-content: flex-start;
    }

    .quiz-arena-side-panel {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.arena-scene-play .quiz-arena-topbar,
    body.arena-scene-rush .quiz-arena-topbar {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.arena-scene-play .quiz-arena-stepper,
    body.arena-scene-rush .quiz-arena-stepper {
        flex: 0 0 auto;
        overflow: visible;
    }

    body.arena-scene-play .quiz-arena-step,
    body.arena-scene-rush .quiz-arena-step {
        width: 30px;
        justify-content: center;
        padding: 0;
    }

    body.arena-scene-play .quiz-arena-step b,
    body.arena-scene-rush .quiz-arena-step b {
        display: none;
    }

    body.quiz-arena-light .quiz-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.quiz-arena-light {
        padding: 8px;
    }

    .quiz-arena-app {
        width: 100%;
        min-height: calc(100svh - 16px);
        gap: 10px;
    }

    .quiz-arena-topbar {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }

    .quiz-arena-brand-badge {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.25rem;
    }

    .quiz-arena-brand {
        gap: 10px;
    }

    .quiz-arena-brand h1 {
        font-size: 1.12rem;
        line-height: 1.2;
    }

    .quiz-arena-brand p,
    .quiz-arena-step b {
        display: none;
    }

    .quiz-arena-stepper {
        width: 100%;
        min-width: 0;
        padding: 6px;
        border-radius: 14px;
    }

    .quiz-arena-step {
        flex: 1 0 34px;
        justify-content: center;
        height: 34px;
        padding: 0;
    }

    .quiz-arena-main-panel,
    .quiz-arena-side-panel {
        border-radius: 18px;
    }

    .quiz-arena-main-panel {
        min-height: auto;
        padding: 12px;
    }

    .quiz-arena-screen-head,
    .quiz-arena-question-head {
        display: block;
    }

    .quiz-arena-hero-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .quiz-arena-screen-head {
        margin-bottom: 14px;
    }

    .quiz-arena-screen-copy h2,
    .quiz-arena-question-head h2 {
        font-size: 1.08rem;
        line-height: 1.25;
    }

    .quiz-arena-screen-copy p,
    .quiz-arena-question-head p {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .quiz-arena-top-info,
    .quiz-arena-side-panel,
    body.quiz-arena-light .quiz-list,
    body.quiz-arena-light .classic-focus-question-layout,
    body.quiz-arena-light .classic-focus-question-card .options-list {
        grid-template-columns: 1fr !important;
    }

    .quiz-arena-timer {
        width: 100%;
        margin-top: 12px;
        text-align: left;
    }

    body.quiz-arena-light .classic-focus-question-card .option-item {
        grid-template-columns: 46px 1fr;
        min-height: 68px;
        border-radius: 14px;
    }

    body.quiz-arena-light .classic-focus-question-card .option-main {
        padding: 12px 14px;
    }

    body.quiz-arena-light .classic-focus-question-card .option-text {
        font-size: 1.08rem;
        line-height: 1.35;
        transform: none;
    }

    body.quiz-arena-light .classic-focus-question-card,
    body.quiz-arena-light .question-card.boss-stage-question-card {
        padding: 12px;
        border-radius: 18px;
    }

    body.quiz-arena-light .classic-focus-question-card .question-header {
        gap: 8px;
        font-size: 0.82rem;
    }

    body.quiz-arena-light .classic-focus-question-card .question-text {
        max-width: none;
        font-size: 1.08rem;
        line-height: 1.45;
    }

    body.quiz-arena-light .classic-focus-media-wrap,
    body.quiz-arena-light .classic-focus-question-card .question-media {
        min-height: 180px;
    }

    .question-image-lightbox {
        padding: 14px;
    }

    .question-image-lightbox-panel {
        width: 100%;
        max-height: 94vh;
        padding: 12px;
        border-radius: 18px;
    }

    .question-image-lightbox-img {
        max-height: calc(94vh - 60px);
    }
}

@media (max-width: 560px) {
    .quiz-arena-hero-actions,
    body.quiz-arena-light .student-code-actions,
    body.quiz-arena-light #liveQuizCard .btn-row,
    body.quiz-arena-light .classic-focus-review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quiz-arena-btn,
    body.quiz-arena-light .student-code-actions input,
    body.quiz-arena-light .student-code-actions button,
    body.quiz-arena-light .classic-focus-review-actions button {
        width: 100%;
        max-width: none;
    }

    .quiz-arena-question-panel,
    .quiz-arena-feedback-stage,
    body.quiz-arena-light .classic-focus-result-summary,
    body.quiz-arena-light .result-top5-card {
        border-radius: 18px;
    }

    body.quiz-arena-light .quiz-arena-btn,
    body.quiz-arena-light .btn-primary,
    body.quiz-arena-light .btn-secondary {
        min-height: 44px;
    }

    body.quiz-arena-light .quiz-select-card {
        min-height: 124px;
        padding: 14px;
        border-radius: 18px;
    }

    body.quiz-arena-light .rank-overlay-inner {
        width: calc(100vw - 20px);
        max-height: calc(100svh - 20px);
        padding: 18px 14px;
        border-radius: 18px;
        overflow: auto;
    }

    body.quiz-arena-light .rank-title {
        font-size: 1.24rem;
        line-height: 1.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
