/* ========================================
   GLOBAL STYLES & COLOR SCHEME
   ======================================== */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header.header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
}

.header-content h1.title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.header-content p.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 400;
}

.header-stats {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.header-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.92;
}

.header-stat-value {
    min-width: 2ch;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.site-footer {
    margin: 12px auto 24px;
    max-width: 1400px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-stat-pill {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(226, 232, 240, 0.3);
    color: #f8fafc;
    box-shadow: var(--shadow-md);
}

.footer-commit-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
    -webkit-user-select: text;
    user-select: text;
}

.footer-stat-pill .header-stat-label {
    opacity: 0.95;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-btn {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn-active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
    .language-switcher {
        gap: 4px;
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8em;
        border-radius: 4px;
    }
}

main.game-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

main.game-layout.lobby-mode {
    grid-template-columns: 1fr;
}

main.game-layout.lobby-mode .game-column {
    display: none;
}

.game-column {
    grid-column: 1 / -1;
}

.info-column {
    grid-column: 1 / -1;
}

#lobbyControls {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
}

#matchControls {
    display: none;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px;
    background: #eff6ff;
}

#gamePhase {
    display: none;
}

#gamePhase > * + * {
    margin-top: 12px;
}

.player-info-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 0;
}

.name-edit-icon-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
}

.name-edit-icon-btn:hover {
    color: #64748b;
}

.name-edit-close-btn {
    color: #475569;
}

.name-edit-controls {
    display: none;
    margin-bottom: 0;
}

.name-edit-controls.is-open {
    display: block;
}

#joinGameForm {
    display: none;
}

#joinGameForm .input-group:first-of-type {
    display: flex;
    gap: 10px;
}

#joinGameForm .input-group:first-of-type #gameIdInput {
    flex: 1;
}

#joinGameForm .input-group:last-of-type {
    display: flex;
    gap: 10px;
}

#joinGameForm .input-group:last-of-type #gamePinInput {
    flex: 0 0 150px;
    min-width: 150px;
}

@media (max-width: 480px) {
    #joinGameForm .input-group:first-of-type {
        flex-wrap: wrap;
        gap: 6px;
    }

    #joinGameForm .input-group:first-of-type #gameIdInput {
        flex: 1 1 100%;
        min-width: 150px;
    }

    #joinGameForm .input-group:first-of-type .btn {
        flex: 1 1 45%;
    }

    #joinGameForm .input-group:last-of-type {
        flex-direction: column;
        gap: 8px;
    }

    #joinGameForm .input-group:last-of-type #gamePinInput {
        flex: 1;
        min-width: 100%;
    }
}

#lobbyGames {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.lobby-games-title {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #475569;
}

#lobbyGamesList {
    margin: 0;
    padding-left: 18px;
}

#gameInfo {
    display: none;
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.game-info-label {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #64748b;
}

.game-id-display {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    font-family: monospace;
}

.game-pin-display {
    margin: 5px 0 15px 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #dc2626;
    text-align: center;
    font-family: monospace;
    letter-spacing: 0.2em;
}

#pinSection {
    display: none;
}

#pinSection.visible {
    display: block;
}

#inGamePlayerList {
    margin: 0;
    padding-left: 20px;
    color: #2d3748;
}

#inGameButtons {
    display: none;
}

#warmupBtn,
#lockSettingsBtn {
    display: none;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-primary);
}

.guess-input {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.input-hint {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-hint strong {
    color: var(--text-primary);
}

.answer-submission-hint {
    min-height: 24px;
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.answer-submission-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.answer-submission-hint.is-pending {
    color: var(--text-secondary);
}

.answer-submission-hint.is-success {
    color: #15803d;
}

.answer-submission-hint.is-error {
    color: var(--danger-color);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

/* ========================================
   BUTTONS
   ======================================== */

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 11px 20px;
    font-size: 0.95em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

/* ========================================
   PLAYER SETUP
   ======================================== */

.player-setup {
    background: white;
    border-left: 4px solid var(--primary-color);
}

/* Player Setup for Tablet/Phone */
@media (max-width: 768px) {
    .player-setup {
        background: white;
        border-left: 4px solid var(--primary-color);
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 15px 0;
    }

    .button-group .btn {
        padding: 10px 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .player-setup {
        background: white;
        border-left: 4px solid var(--primary-color);
    }

    .button-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin: 12px 0;
    }

    .button-group .btn {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .player-info {
        font-size: 0.9em;
    }

    #gameInfo {
        padding: 10px 0;
    }

    .game-info-label {
        font-size: 0.9em;
        margin-bottom: 4px;
    }

    .game-id-display {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .game-pin-display {
        font-size: 1.3em;
    }

    #inGameButtons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    #inGameButtons .btn {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    #inGamePlayerList {
        max-height: 120px;
        overflow-y: auto;
    }
}

.question-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-left: 4px solid var(--secondary-color);
}

.question-content {
    text-align: center;
}

.question-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.city {
    flex: 1;
    max-width: 150px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.city:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.city-from {
    border-color: #0000;
}

.city-to {
    border-color: #0000;
}

.city-name {
    font-size: 1.5em;
    font-weight: 700;
    font-family: "Gidole", "DIN 1451", "DIN 1451 Mittelschrift", "Bahnschrift", "Arial Narrow", Arial, sans-serif;
    color: var(--text-primary);
    text-align: center;
}

.city-separator {
    font-size: 1.8em;
    color: var(--text-secondary);
}

/* ========================================
   MAP CONTAINER
   ======================================== */

.map-container {
    margin-top: 20px;
    min-height: 380px;
    width: 100%;
    display: block;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #eaf2ff;
}

#mapContainer {
    max-width: 100%;
    height: 380px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    #mapContainer {
        height: 280px;
    }
}

@media (max-width: 480px) {
    #mapContainer {
        height: 200px;
    }
}

/* Leaflet uses internal SVG overlays for vectors; do not stretch them via global SVG sizing. */
.map-container svg {
    max-width: none;
    height: auto;
}

.leaflet-container {
    font: inherit;
    width: 100%;
    height: 100%;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.1));
    text-align: center;
}

.map-container.has-map .map-placeholder {
    display: none;
}


.ortsschild-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    padding: 8px 0 4px;
    flex-wrap: wrap;
    min-height: 0;
}

.ortsschild-container:empty {
    display: none;
}

.ortsschild-overlay {
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.ortsschild-plate {
    position: relative;
    width: var(--ortsschild-width, 216px);
    height: var(--ortsschild-height, 144px);
    border: max(3px, calc(var(--ortsschild-height, 144px) * 0.06)) solid #111827;
    border-radius: max(4px, calc(var(--ortsschild-height, 144px) * 0.045));
    background: #facc15;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ortsschild-plate::before,
.ortsschild-plate::after {
    display: none;
}

.ortsschild-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 calc(var(--ortsschild-width, 216px) * 0.1);
    color: #111827;
    font-family: "Gidole", "DIN 1451", "DIN 1451 Mittelschrift", "Bahnschrift", "Arial Narrow", Arial, sans-serif;
    font-size: var(--ortsschild-font-size, 32px);
    font-weight: 900;
    letter-spacing: var(--ortsschild-letter-spacing, 0.03em);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

@media (max-width: 768px) {
    .ortsschild-container {
        gap: 10px;
    }

    .ortsschild-plate {
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
    }

    .ortsschild-text {
        line-height: 0.95;
    }
}

.ortsschild-from .ortsschild-plate {
    border-color: #1d4ed8;
}

.ortsschild-to .ortsschild-plate {
    border-color: #c2410c;
}

.map-label {
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   ANSWER CARD
   ======================================== */

.answer-card {
    border-left: 4px solid var(--success-color);
}

/* Laptop Layout */
@media (min-width: 1025px) {
    .answer-card {
        position: sticky;
        top: 20px;
        z-index: 100;
    }

    .answer-card .input-group {
        align-items: stretch;
    }

    .answer-card .btn {
        min-width: 180px;
    }

    .game-column {
        display: grid;
        gap: 20px;
        align-content: start;
    }
}

/* Tablet Layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .card {
        padding: 18px;
    }

    .answer-card {
        margin-bottom: 15px;
    }

    .question-card {
        margin-bottom: 15px;
    }
}

/* Phone Layout - Optimized */
@media (max-width: 768px) {
    .game-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .answer-card {
        margin-bottom: 10px;
        order: -1;
    }

    .answer-card .input-group {
        flex-direction: row;
        gap: 8px;
    }

    .guess-input {
        font-size: 16px;
        padding: 12px;
    }

    #submitGuessBtn {
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: nowrap;
    }

    .question-card {
        margin-bottom: 12px;
    }

    .input-hint {
        font-size: 0.85em;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 14px;
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .answer-card .input-group {
        flex-direction: column;
        gap: 6px;
    }

    .guess-input {
        width: 100%;
        font-size: 16px;
        padding: 10px;
    }

    #submitGuessBtn {
        width: 100%;
        padding: 10px;
        font-size: 0.9em;
    }

    .input-hint {
        font-size: 0.8em;
        line-height: 1.3;
    }

    .question-text {
        font-size: 0.95em;
    }

    .cities-container {
        padding: 10px 0;
    }
}

.fade{
    width:200px;
    height: 200px;
    background: red;
    opacity:0;
}

.answerFeedback {
    animation: fadeInOut 4s linear forwards;
}

@keyframes fadeInOut {
 0% { opacity:0; }
 50% { opacity:1; } 
 100% { opacity:0; } 
}

/* ========================================
   COUNTDOWN & STATUS
   ======================================== */

.countdown-card {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffaeb 100%);
}

.status-display {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 15px;
}

#countdown {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 2em;
    background-color: hsl(120, 100%, 50%);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* ========================================
   RULES/SETTINGS CARD
   ======================================== */

.rules-card {
    border-left: 4px solid var(--info-color);
}

.settings-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.host-settings-editor {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    display: none;
}

.host-settings-editor.visible {
    display: block;
}

.host-settings-title {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.host-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.host-settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.host-settings-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.host-settings-field input:disabled {
    background: #f1f5f9;
    color: #64748b;
}

.no-time-limit-row {
    display: none;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1;
}

.host-settings-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.host-settings-options {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.host-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.host-settings-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.podium-section {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.podium-place {
    display: none;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600;
}

.podium-place.visible {
    display: block;
}

@media (max-width: 760px) {
    .host-settings-grid {
        grid-template-columns: 1fr;
    }

    .host-settings-actions {
        justify-content: stretch;
    }

    .host-settings-actions .btn {
        width: 100%;
    }
}

/* ========================================
   PLAYERS LIST
   ======================================== */

.players-card {
    border-left: 4px solid var(--primary-color);
}

.lobby-guide-card {
    border-left: 4px solid #0ea5e9;
}

.lobby-guide-list {
    margin: 10px 0 0 20px;
    color: var(--text-secondary);
    display: grid;
    gap: 8px;
    line-height: 1.4;
}

.lobby-guide-subtitle {
    margin: 12px 0 6px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-list li {
    padding: 12px 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.round-review-section {
    margin-bottom: 25px;
    text-align: left;
}

.round-review-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.round-review-list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 12px;
}

.round-review-card {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f8fafc;
}

.round-review-question {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.round-review-meta {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.round-review-solution {
    font-size: 1rem;
    color: #22c55e;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-weight: 600;
}

.round-review-player {
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.round-review-player:last-child {
    margin-bottom: 0;
}

.round-review-player-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.round-review-player-final {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.round-review-answer-log {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.player-list li:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.player-list li:last-child {
    margin-bottom: 0;
}

/* ========================================
   MESSAGES
   ======================================== */

.messages-card {
    border-left: 4px solid #0ea5e9;
    grid-column: 1 / -1;
}

.messages-container {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.messages-container p {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--light-bg);
    border-radius: 6px;
    font-size: 0.95em;
    color: var(--text-secondary);
    animation: slideIn 0.3s ease;
}

.messages-container p:last-child {
    margin-bottom: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    transition: background 0.2s;
}

/* ========================================
   GAME FINISHED MODAL
   ======================================== */

#gameFinishedModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.game-finished-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.game-finished-celebration {
    font-size: 3em;
    margin-bottom: 20px;
}

.game-finished-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2d3748;
}

.winner-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.winner-label {
    font-size: 0.9em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.winner-name {
    font-size: 2em;
    margin: 0;
}

.final-scores-section {
    margin-bottom: 25px;
}

.final-scores-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #2d3748;
    text-align: left;
}

#scoresTable {
    width: 100%;
    border-collapse: collapse;
}

.scores-header-row {
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.scores-header-cell {
    padding: 12px;
    font-weight: 600;
    color: #2d3748;
}

.scores-header-cell-left {
    text-align: left;
}

.scores-header-cell-center {
    text-align: center;
}

.round-review-section {
    text-align: left;
    margin-bottom: 20px;
}

.round-review-title {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #2d3748;
}

.round-review-list {
    max-height: 300px;
    overflow-y: auto;
    gap: 10px;
    display: grid;
}

.accuracy-section {
    text-align: left;
    margin-bottom: 20px;
}

.accuracy-list {
    font-size: 0.95rem;
    color: #475569;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.game-finished-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.game-finished-btn {
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-finished-btn-primary {
    background: #6366f1;
    color: white;
}

.game-finished-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

/* Mobile: Tablet and below */
@media (max-width: 768px) {
    #gameFinishedModal {
        padding: 10px;
    }

    .game-finished-modal-content {
        padding: 25px 20px;
        max-height: 95vh;
    }

    .game-finished-celebration {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .game-finished-title {
        font-size: 1.8em;
        margin-bottom: 8px;
    }

    .winner-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .winner-name {
        font-size: 1.5em;
    }

    .final-scores-section {
        margin-bottom: 15px;
    }

    .final-scores-title {
        font-size: 1em;
        margin-bottom: 10px;
    }

    #scoresTable {
        font-size: 0.9em;
    }

    .scores-header-cell {
        padding: 8px;
    }

    .round-review-section {
        margin-bottom: 15px;
    }

    .round-review-title {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .round-review-list {
        max-height: 250px;
    }

    .accuracy-list {
        font-size: 0.9rem;
    }

    .game-finished-actions {
        gap: 8px;
    }

    .game-finished-btn {
        padding: 10px 20px;
        font-size: 0.95em;
        flex: 1;
    }
}

/* Mobile: Phone */
@media (max-width: 480px) {
    #gameFinishedModal {
        padding: 5px;
    }

    .game-finished-modal-content {
        padding: 20px 15px;
        border-radius: 12px;
        max-height: 95vh;
    }

    .game-finished-celebration {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .game-finished-title {
        font-size: 1.4em;
        margin-bottom: 6px;
    }

    .winner-section {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .winner-label {
        font-size: 0.8em;
        margin-bottom: 4px;
    }

    .winner-name {
        font-size: 1.3em;
    }

    .final-scores-section {
        margin-bottom: 12px;
    }

    .final-scores-title {
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    #scoresTable {
        font-size: 0.85em;
    }

    .scores-header-cell {
        padding: 6px;
        font-size: 0.85em;
    }

    #scoresTable td {
        padding: 8px 4px;
        font-size: 0.85em;
    }

    .round-review-section {
        margin-bottom: 12px;
    }

    .round-review-title {
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    .round-review-card {
        padding: 10px 12px;
    }

    .round-review-question {
        font-weight: 600;
        font-size: 0.9em;
    }

    .round-review-solution {
        font-size: 0.9em;
        padding: 8px 10px;
    }

    .round-review-list {
        max-height: 200px;
        gap: 8px;
    }

    .accuracy-list {
        font-size: 0.86rem;
        padding: 8px 10px;
    }

    .game-finished-actions {
        gap: 6px;
        flex-direction: column;
    }

    .game-finished-btn {
        padding: 10px 15px;
        font-size: 0.9em;
        width: 100%;
    }
}

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

#gameFinishedModal > div {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#gameFinishedModal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#gameFinishedModal button:active {
    transform: translateY(0);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    main.game-layout {
        grid-template-columns: 1fr;
    }

    .messages-card {
        grid-column: 1;
    }

    .header-content h1.title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header.header {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .header-content h1.title {
        font-size: 1.8em;
    }

    .header-content p.subtitle {
        font-size: 0.95em;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .input-group {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .question-text {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .city-name {
        font-size: 1.3em;
    }

    .cities-container {
        flex-direction: column;
        gap: 10px;
    }

    .city-separator {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header.header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .header-content h1.title {
        font-size: 1.5em;
    }

    .card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    .question-text {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    .city-name {
        font-size: 1.2em;
    }

    .city-separator {
        font-size: 1.5em;
    }

    .cities-container {
        padding: 12px 0;
        gap: 8px;
    }

    .city {
        max-width: 110px;
        padding: 10px;
    }

    #countdown {
        height: 50px;
        font-size: 1.5em;
    }

    .input-field,
    .btn {
        font-size: 16px;
    }
}

/* ========================================
   MATCH HUD (IMPROVEMENT ROUND 1)
   ======================================== */

.match-hud {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.hud-pill {
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-align: left;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hud-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    opacity: 0.86;
    text-transform: uppercase;
}

.hud-value {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hud-value.is-countdown {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   UX POLISH (IMPROVEMENT ROUND 2)
   ======================================== */

main.game-layout.round-active .info-column {
    position: sticky;
    top: 14px;
    align-self: start;
}

main.game-layout.pre-round .messages-container,
main.game-layout.lobby-mode .messages-container {
    height: 180px;
}

.question-card,
.answer-card,
.player-setup,
.countdown-card,
.messages-card,
.players-card,
.rules-card {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96));
}

@media (max-width: 1024px) {
    .match-hud {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    main.game-layout.round-active .info-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .match-hud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }

    .hud-pill {
        padding: 8px 10px;
        border-radius: 9px;
    }

    .hud-label {
        font-size: 0.68rem;
    }

    .hud-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .match-hud {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .hud-pill {
        padding: 7px 8px;
    }

    .hud-label {
        font-size: 0.62rem;
    }

    .hud-value {
        font-size: 0.84rem;
    }
}

/* ========================================
   ADMIN UTILITIES
   ======================================== */

.admin-hidden {
    display: none;
}

.admin-import-section {
    margin-top: 16px;
}

.admin-suggestion-controls {
    margin: 10px 0 14px 0;
}

.suggestion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    display: grid;
    gap: 6px;
}

.suggestion-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-coords {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* ========================================
   ADMIN PAGE LOOK & FEEL
   ======================================== */

body.admin-page {
    background:
        radial-gradient(circle at 10% -10%, rgba(99, 102, 241, 0.22), transparent 38%),
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.18), transparent 34%),
        linear-gradient(160deg, #eef2ff 0%, #f8fafc 52%, #ecfeff 100%);
}

.admin-shell {
    max-width: 1200px;
    display: grid;
    gap: 14px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-left: none;
    border-top: 5px solid #4f46e5;
    background:
        linear-gradient(140deg, rgba(79, 70, 229, 0.10), rgba(6, 182, 212, 0.08)),
        #ffffff;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    color: #1f2937;
}

.admin-header p {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
}

.admin-user-badge {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.86rem;
    white-space: nowrap;
}

.admin-card {
    margin-bottom: 0;
    border-left: none;
    border-top: 4px solid #c7d2fe;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.admin-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
}

.admin-card h3 {
    margin: 2px 0 8px 0;
    font-size: 0.98rem;
    color: #334155;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    margin-bottom: 12px;
}

.admin-form-grid label {
    font-weight: 600;
    color: #334155;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.admin-import-section {
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.admin-data-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.city-pair,
.high-score,
.game-result {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px 12px;
}

.game-result em {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-badge {
        width: fit-content;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid label {
        margin-top: 4px;
    }

    .admin-actions {
        justify-content: stretch;
    }

    .admin-actions .btn {
        width: 100%;
    }
}

/* ========================================
   PHASE-BASED HUD REDESIGN
   ======================================== */

main.game-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    align-items: start;
    gap: 18px;
}

.game-column {
    display: grid;
    gap: 16px;
    align-content: start;
}

.round-top-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 14px;
    align-items: start;
}

.round-top-panels .answer-card,
.round-top-panels .countdown-card {
    margin-bottom: 0;
    height: 100%;
}

.info-column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.card {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card-title {
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.question-card {
    border-left: none;
    border-top: 5px solid #7c3aed;
}

.answer-card {
    border-left: none;
    border-top: 5px solid #22c55e;
}

.countdown-card {
    border-left: none;
    border-top: 5px solid #f59e0b;
}

.players-card {
    border-left: none;
    border-top: 5px solid #3b82f6;
}

.messages-card {
    border-left: none;
    border-top: 5px solid #06b6d4;
}

main.game-layout.lobby-mode,
main.game-layout.pre-round {
    grid-template-columns: 1fr;
}

main.game-layout.lobby-mode .info-column,
main.game-layout.pre-round .info-column {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

main.game-layout.lobby-mode .player-setup,
main.game-layout.pre-round .player-setup,
main.game-layout.lobby-mode .messages-card,
main.game-layout.pre-round .messages-card {
    grid-column: 1 / -1;
}

main.game-layout.lobby-mode .game-column,
main.game-layout.pre-round .game-column {
    display: none;
}

main.game-layout.round-active .game-column {
    display: grid;
}

main.game-layout.round-active .info-column {
    grid-template-columns: 1fr;
}

main.game-layout.round-active .messages-card {
    min-height: 240px;
}

main.game-layout.round-active .messages-container {
    height: 220px;
}

@media (max-width: 1024px) {
    main.game-layout,
    main.game-layout.pre-round,
    main.game-layout.round-active {
        grid-template-columns: 1fr;
    }

    main.game-layout .info-column,
    main.game-layout.pre-round .info-column,
    main.game-layout.round-active .info-column {
        max-width: 100%;
        margin: 0;
        grid-template-columns: 1fr;
    }

    .round-top-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    header.header {
        padding: 22px 14px 16px;
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .header-content h1.title {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .header-content p.subtitle {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .header-stats {
        margin-top: 10px;
    }

    .header-stat-pill {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
    }

    .site-footer {
        padding: 0 12px 8px;
        margin: 4px auto 12px;
    }

    .site-footer .header-stat-pill {
        width: 100%;
    }

    .language-switcher {
        position: static;
        justify-content: center;
        margin-top: 10px;
    }

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

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .question-text {
        font-size: 0.92rem;
        margin-bottom: 10px;
    }

    .cities-container {
        gap: 8px;
        padding: 8px 0;
    }

    .city {
        max-width: none;
        width: 100%;
        padding: 10px;
    }

    .city-name {
        font-size: 1.05rem;
    }

    .city-separator {
        font-size: 1.2rem;
    }

    #mapContainer {
        height: 180px;
    }

    .answer-card .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .guess-input,
    .btn,
    .input-field {
        font-size: 16px;
    }

    .messages-container {
        height: 180px;
        padding: 10px;
    }

    main.game-layout.round-active .messages-card {
        display: none;
    }

    .button-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .round-top-panels {
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
        padding: 10px 8px;
    }

    #inGameButtons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* ========================================
   CAPTCHA MODAL STYLES
   ======================================== */

.captcha-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.captcha-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.captcha-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.captcha-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.captcha-question-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.captcha-question {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.captcha-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.captcha-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.captcha-submit {
    padding: 12px 24px;
    white-space: nowrap;
}

.captcha-error {
    background: #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border-left: 4px solid #dc2626;
    display: none;
}

.captcha-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

@media (max-width: 480px) {
    .captcha-modal-content {
        padding: 24px 20px;
    }

    .captcha-title {
        font-size: 1.3rem;
    }

    .captcha-question-box {
        padding: 18px;
    }

    .captcha-question {
        font-size: 1.5rem;
    }

    .captcha-input-group {
        flex-direction: column;
    }

    .captcha-submit {
        width: 100%;
    }
}