:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --primary: #b91c1c;
    --primary-dark: #991b1b;
    --accent-yellow: #f59e0b;
    --text: #111827;
    --muted: #4b5563;
    --border: #d1d5db;
    --shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #f7f7f8 0%, var(--bg) 45%, #f5f5f6 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar,
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(90deg, #000000 0%, #8b0000 100%);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.topbar::after,
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f7c600;
}

.topbar__title,
.navbar .navbar-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
}

.topbar__actions,
.navbar .navbar-actions {
    display: flex;
    gap: 10px;
}

.main-wrapper {
    width: min(100%, 960px);
    margin: 36px auto 24px;
    padding: 0 16px;
    flex: 1;
}

.game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.page h1 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.page p {
    color: var(--muted);
    line-height: 1.6;
}

.page--home {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 8px;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 45%),
    radial-gradient(circle at bottom left, rgba(185, 28, 28, 0.16), transparent 42%);
}

.home-hero {
    border: 1px solid #efded0;
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ea 100%);
    animation: homeHeroIn 0.42s ease both;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #111827;
    color: #f9fafb;
    border-radius: 999px;
    padding: 5px 10px;
    margin-bottom: 10px;
    animation: homeFadeUp 0.45s ease 0.08s both;
}

.home-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    animation: homeFadeUp 0.45s ease 0.14s both;
}

.home-highlights {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-highlights span {
    border: 1px solid #f2d6a6;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 700;
    background: #fff;
    color: #92400e;
    animation: homeFadeUp 0.4s ease both;
}

.home-highlights span:nth-child(1) { animation-delay: 0.18s; }
.home-highlights span:nth-child(2) { animation-delay: 0.22s; }
.home-highlights span:nth-child(3) { animation-delay: 0.26s; }
.home-highlights span:nth-child(4) { animation-delay: 0.3s; }

.home-cta-wrap {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    animation: homeCtaIn 0.45s ease 0.28s both;
}

.home-cta {
    min-width: 220px;
    justify-content: center;
    font-size: 1.02rem;
    padding: 12px 20px;
    box-shadow: 0 10px 18px rgba(185, 28, 28, 0.24);
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    background: #e5e7eb;
    color: #111827;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.btn--primary {
    margin-top: 12px;
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--ghost {
    background: #fff;
    border: 1px solid #d1d5db;
}

.topbar .btn--ghost,
.navbar .navbar-actions button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.topbar .btn--ghost:hover,
.navbar .navbar-actions button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.topbar svg,
.topbar i,
.navbar svg,
.navbar i {
    color: #ffffff;
}

.mode-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.difficulty-picker {
    margin-top: 14px;
    border: 1px solid #f2d6a6;
    border-radius: 12px;
    background: #fff7ea;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.difficulty-picker__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #92400e;
}

.difficulty-picker__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.difficulty-chip {
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 12px;
    background: #ffffff;
    color: #374151;
    font-weight: 700;
    font-size: 0.86rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.difficulty-chip:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 14px rgba(245, 158, 11, 0.16);
}

.difficulty-chip.is-active {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 8px 14px rgba(245, 158, 11, 0.2);
}

.mode-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    background: #fffdfa;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mode-card:hover {
    transform: translateY(-2px);
    border-color: #fcd34d;
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.15);
}

.mode-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.mode-card__difficulty {
    display: inline-flex;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 4px 8px;
}

.placeholder-box {
    margin: 16px 0 18px;
    border: 1px dashed #bcd0f5;
    border-radius: 12px;
    background: #f6f9ff;
    padding: 14px;
}

.footer {
    text-align: center;
    color: #6b7280;
    padding: 14px;
    font-size: 0.86rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.62);
}

.modal__content {
    position: relative;
    max-width: 560px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 24px 42px rgba(2, 6, 23, 0.22);
    z-index: 1;
}

.modal__content h2 {
    margin-top: 0;
}

.btn--small {
    padding: 6px 10px;
    font-size: 0.86rem;
}

.btn.is-disabled,
.btn--small.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.admin-body {
    background: #f7f7f8;
    color: #111827;
}

.admin-topbar {
    background: #111;
    border-bottom: 1px solid #2f2f2f;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-topbar__badge {
    display: inline-block;
    margin-left: 8px;
    background: #fcd34d;
    color: #111827;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.76rem;
}

.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-nav a {
    text-decoration: none;
    color: #f3f4f6;
    font-weight: 600;
}

.admin-main {
    width: min(1120px, 100%);
    margin: 24px auto;
    padding: 0 16px;
    flex: 1;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.05);
    padding: 20px;
}

.admin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-card__header h1 {
    margin: 0;
}

.admin-card__header p {
    margin: 8px 0 0;
    color: #64748b;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-stat {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #fbfdff;
}

.admin-stat h2 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.admin-stat p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #b45309;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.admin-form input[type='text'],
.admin-form input[type='number'],
.admin-form input[type='file'],
.admin-form textarea,
.admin-form select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.options-fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.options-fieldset legend {
    padding: 0 6px;
    font-weight: 700;
}

.option-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-filters label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table thead th {
    background: #f8fafc;
    font-size: 0.92rem;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.actions-cell form {
    margin: 0;
}

.status-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-chip.is-active {
    background: #fef3c7;
    color: #92400e;
}

.status-chip.is-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.alert--success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.field-error {
    color: #b91c1c;
    font-size: 0.82rem;
}

.image-preview {
    margin-top: 8px;
    max-width: 220px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-footer {
    text-align: center;
    color: #94a3b8;
    padding: 16px 12px;
    font-size: 0.86rem;
}

.logout-form {
    margin: 0;
}

.game-login-card {
    max-width: 430px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.game-login-card h1 {
    margin-bottom: 4px;
}

.game-engine {
    display: grid;
    gap: 12px;
}

.hidden {
    display: none !important;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.game-header h1 {
    margin: 0;
}

.game-header p {
    margin: 8px 0 0;
}

.game-header__difficulty {
    margin: 6px 0 0;
    color: #78350f;
    font-weight: 600;
}

.game-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-header__actions {
    margin-left: auto;
}

.game-icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    border: 1px solid #dbe2ea;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    color: #111827;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
}

.game-icon-btn:hover {
    border-color: #f59e0b;
    color: #92400e;
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.18);
}

.game-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.timer-chip {
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

.timer-chip.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.lifelines {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.lifelines-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #374151;
    margin-right: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.lifeline-btn {
    position: relative;
    min-width: 54px;
    min-height: 44px;
    padding: 8px 12px;
    justify-content: center;
}

.lifeline-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    min-width: 220px;
    max-width: 280px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.96);
    color: #f9fafb;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 30;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.lifeline-btn::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%) translateY(4px);
    width: 8px;
    height: 8px;
    background: rgba(17, 24, 39, 0.96);
    rotate: 45deg;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 29;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.lifeline-btn:hover::after,
.lifeline-btn:hover::before,
.lifeline-btn:focus-visible::after,
.lifeline-btn:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lifeline-count {
    position: absolute;
    right: 4px;
    top: 4px;
    border-radius: 999px;
    background: #fde68a;
    color: #78350f;
    min-width: 20px;
    text-align: center;
    padding: 1px 5px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
}

.lifeline-icon {
    font-size: 1.2rem;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.game-loading {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
}

.game-status-slot {
    min-height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.status-panel {
    width: 100%;
    min-height: 150px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 18px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.status-content {
    display: grid;
    gap: 4px;
    text-align: center;
    max-width: 420px;
}

.status-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.08rem;
    color: #111827;
}

.status-subtitle {
    margin: 0;
    color: #4b5563;
    font-size: 0.92rem;
}

.status-clock {
    --progress: 100;
    --ring-color: #b91c1c;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--ring-color) calc(var(--progress) * 1%),
        #e5e7eb 0
    );
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
    position: relative;
    flex-shrink: 0;
    transition: background 0.18s linear, box-shadow 0.2s ease, transform 0.2s ease;
}

.status-clock::before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.status-clock > span {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
}

.status-clock > span.is-critical-count {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.55), 0 0 18px rgba(234, 88, 12, 0.3);
}

.status-clock > span.is-critical-pulse {
    animation: criticalCountPulse 0.42s ease-out;
}

.status-clock--hidden {
    display: none;
}

.status-panel.is-loading .status-title {
    color: #111827;
}

.status-panel.is-prep {
    --ring-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.status-panel.is-question {
    --ring-color: #b91c1c;
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
}

.status-panel.is-question.is-urgent {
    --ring-color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1), 0 10px 24px rgba(220, 38, 38, 0.14);
}

.status-panel.is-question.is-urgent .status-title {
    color: #991b1b;
}

.status-panel.is-question.is-urgent .status-subtitle {
    color: #b91c1c;
}

.status-clock.is-urgent {
    animation: urgentClockBlink 0.9s ease-in-out infinite;
}

.status-panel.is-timeout {
    --ring-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.status-panel.is-timeout .status-title {
    color: #991b1b;
}

.status-panel.is-result {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.status-panel.state-swap {
    animation: statusSwap 0.26s ease;
}

.status-panel.state-swap .status-content {
    animation: statusTextIn 0.24s ease;
}

.status-panel.state-swap .status-clock {
    animation: statusClockPop 0.28s ease;
}

.game-feedback--floating {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translate(-50%, 8px) scale(0.98);
    width: min(92%, 520px);
    text-align: center;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.1);
}

.game-loading {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
}

.prep-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    padding: 8px 12px;
    font-weight: 700;
}

.prep-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    background: #fcd34d;
    color: #111827;
    font-size: 0.86rem;
}

.game-feedback {
    display: block;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.game-feedback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.game-feedback.is-success {
    background: #ecfdf3;
    color: #166534;
}

.game-feedback.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.game-feedback.is-warning {
    background: #fff7ed;
    color: #9a3412;
}

.game-feedback.is-info {
    background: #fffbeb;
    color: #92400e;
}

.question-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fcfdff;
    text-align: center;
}

.question-legend {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
}

.question-card h2 {
    margin-top: 0;
    text-align: center;
}

.question-image-wrap {
    margin-bottom: 12px;
}

.question-image-wrap img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.options-list,
.answers-grid {
    display: grid;
    gap: 9px;
}

.answers-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }
}

.option-btn {
    width: 100%;
    border: 1px solid #f2d6a6;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ea 100%);
    padding: 14px 16px;
    font-size: 1.04rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #111827;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    opacity: 0.65;
}

.option-text {
    font-weight: 600;
    color: #111827;
    padding-left: 4px;
}

.option-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.option-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.28);
}

.answers-grid .answer-btn {
    width: 100%;
    min-height: 60px;
}

.option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(180, 83, 9, 0.2);
    border-color: #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fff3da 100%);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.answer-btn:focus {
    outline: none;
}

.answer-btn:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.85);
    outline-offset: 3px;
}

.option-btn.is-correct {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.option-btn.is-wrong {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.option-btn.is-eliminated {
    opacity: 0.72;
    text-decoration: line-through;
}

.option-percent {
    font-weight: 700;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px 8px;
}

.option-correct-badge {
    font-size: 1.2rem;
    line-height: 1;
}

.option-percent.is-best {
    color: #92400e;
}

.game-result {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffdfa;
    padding: 18px;
    text-align: center;
}

.result-emoji {
    font-size: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 16px 0;
    text-align: left;
}

.result-stats p {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.result-idle-note {
    margin-top: 10px;
    color: #64748b;
}

.btn:focus-visible,
.mode-card:focus-visible,
.admin-nav a:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.question-card,
.game-result,
.mode-card,
.modal__content {
    animation: cardFadeIn 0.24s ease;
}

.surface-pop {
    animation: surfacePop 0.26s ease;
}

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

@keyframes homeHeroIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes homeCtaIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes statusSwap {
    from {
        opacity: 0.78;
        transform: translateY(4px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes statusClockPop {
    from {
        opacity: 0.75;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes urgentClockBlink {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18), 0 12px 24px rgba(220, 38, 38, 0.22);
    }
}

@keyframes criticalCountPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.92;
    }
}

@keyframes surfacePop {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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