/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-input: #0d0d14;

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #555568;

    /* Player Colors (Unchanged) */
    --p1-primary: #00d4ff;
    --p1-secondary: #0099cc;
    --p1-glow: rgba(0, 212, 255, 0.3);
    --p1-bg: rgba(0, 212, 255, 0.1);

    --p2-primary: #ff4757;
    --p2-secondary: #cc3344;
    --p2-glow: rgba(255, 71, 87, 0.3);
    --p2-bg: rgba(255, 71, 87, 0.1);

    /* UI Action Colors (Light Green) */
    --action-primary: #f0f0f5; /* Light Green */
    --action-secondary: #f0f0f5; /* Slightly Darker for gradient */
    --action-glow: rgba(36, 39, 37, 0.4);

    --valid-color: #2ed573;
    --invalid-color: #ff6b81;
    --warning-color: #ffa502;

    --border-color: #2a2a3a;
    --border-highlight: #3a3a50;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--p1-primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--p2-primary) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Pages */
.page {
    display: none;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

.page.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 460px;
    padding: 1.5rem 1.25rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

/* Landing Header */
.landing-header {
    text-align: center;
    margin-top: 1rem;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.title-red {
    color: var(--p2-primary);
}

.game-subtitle {
    font-size: clamp(0.8rem, 3vw, 1rem);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Player Setup */
.player-setup {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: all var(--transition-base);
}

.player-1-card { border-color: rgba(0, 212, 255, 0.3); box-shadow: 0 0 20px rgba(0, 212, 255, 0.08); }
.player-2-card { border-color: rgba(255, 71, 87, 0.3); box-shadow: 0 0 20px rgba(255, 71, 87, 0.08); }

.player-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.p1-avatar { background: linear-gradient(135deg, var(--p1-primary), var(--p1-secondary)); color: var(--bg-primary); }
.p2-avatar { background: linear-gradient(135deg, var(--p2-primary), var(--p2-secondary)); color: var(--bg-primary); }

.player-label { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }

.player-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.player-input::placeholder { color: var(--text-muted); }
.player-input:focus { outline: none; border-color: var(--border-highlight); }
.p1-input:focus { border-color: var(--p1-primary); box-shadow: 0 0 15px var(--p1-glow); }
.p2-input:focus { border-color: var(--p2-primary); box-shadow: 0 0 15px var(--p2-glow); }

/* VS Divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0;
}
.vs-divider span { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-muted); }

/* Buttons */
.action-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }

/* Updated to Light Green */
.btn-primary { 
    background: linear-gradient(135deg, var(--action-primary), var(--action-secondary)); 
    color: #0a0a0f; /* Dark text for contrast */
    box-shadow: 0 3px 15px var(--action-glow); 
}
.btn-primary:hover { 
    box-shadow: 0 5px 25px var(--action-glow); 
    transform: translateY(-1px); 
}

.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-secondary); border-color: var(--border-highlight); }

.btn-white {
    background: #ffffff;
    color: var(--bg-primary);
    box-shadow: 0 3px 15px rgba(255, 255, 255, 0.15);
}
.btn-white:hover {
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.btn-white:active { transform: scale(0.98); }

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* Submit Button - Updated to Light Green */
.btn-submit {
    margin-top: 0.15rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--action-primary), var(--action-secondary));
    color: #0a0a0f;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 15px var(--action-glow);
    transition: all var(--transition-base);
}
.btn-submit:hover {
    box-shadow: 0 5px 25px var(--action-glow);
    transform: translateY(-1px);
}
.btn-submit:active { transform: scale(0.98); }

/* Footer */
.landing-footer {
    margin-top: auto;
    padding: 0.75rem 0 0.25rem;
    text-align: center;
}
.landing-footer p { font-size: 0.75rem; color: var(--text-muted); }
.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}
.footer-link:hover { opacity: 0.75; text-decoration: underline; }

/* Modal Base */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); }

.modal-title { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }

/* Rules */
/* Rules */
.rules-list { display: flex; flex-direction: column; gap: 0.75rem; }
.rule-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.rule-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f5; /* Updated to your requested color */
    color: #0a0a0f;    /* Dark text for readability against the light background */
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50%;
}
.rule-text { color: var(--text-secondary); line-height: 1.5; padding-top: 0.15rem; font-size: 0.9rem; }

/* Quit Modal */
.quit-content { text-align: center; }
.quit-text { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; }
.quit-buttons { display: flex; flex-direction: column; gap: 0.6rem; }

/* ========== GAME PAGE ========== */
.game-container {
    width: 100%;
    max-width: 520px;
    padding: 0.4rem 0.85rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 0.4rem;
    flex-shrink: 0;
}

.round-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.55rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.round-indicator span { font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.round-indicator strong { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

.score-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.score span { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 700; }
.p1-score-display span { color: var(--p1-primary); }
.p2-score-display span { color: var(--p2-primary); }
.score-divider { font-size: 0.95rem; color: var(--text-muted); }

.btn-quit {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.btn-quit:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-highlight); }

/* Game Info Bar */
.game-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.5rem 0 0.35rem;
    flex-shrink: 0;
}

.info-turn {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}
.info-turn.p1-turn { background: var(--p1-bg); border: 1px solid var(--p1-primary); color: var(--p1-primary); }
.info-turn.p2-turn { background: var(--p2-bg); border: 1px solid var(--p2-primary); color: var(--p2-primary); }

/* Letter Box — colored outline + colored text */
.info-letter {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 2px solid;
    transition: all var(--transition-base);
}
[data-turn="p1"] .info-letter {
    border-color: var(--p1-primary);
    background: var(--p1-bg);
    box-shadow: 0 0 18px var(--p1-glow);
}
[data-turn="p2"] .info-letter {
    border-color: var(--p2-primary);
    background: var(--p2-bg);
    box-shadow: 0 0 18px var(--p2-glow);
}

.info-letter span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    animation: letterPulse 2s ease-in-out infinite;
}
[data-turn="p1"] .info-letter span {
    color: var(--p1-primary);
}
[data-turn="p2"] .info-letter span {
    color: var(--p2-primary);
}

@keyframes letterPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Timer — colored SVG outline + colored seconds */
.info-timer {
    position: relative;
    width: 46px;
    height: 46px;
}
.timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-bg { fill: none; stroke: var(--bg-card); stroke-width: 8; }
.timer-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
[data-turn="p1"] .timer-progress {
    stroke: var(--p1-primary);
    filter: drop-shadow(0 0 5px var(--p1-glow));
}
[data-turn="p2"] .timer-progress {
    stroke: var(--p2-primary);
    filter: drop-shadow(0 0 5px var(--p2-glow));
}

#timer-seconds {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}
[data-turn="p1"] #timer-seconds {
    color: var(--p1-primary);
}
[data-turn="p2"] #timer-seconds {
    color: var(--p2-primary);
}

/* Game Main */
.game-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

/* Game Form */
.game-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.input-row label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-left: 0.15rem;
}

.game-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}
.game-input::placeholder { color: var(--text-muted); font-size: 0.8rem; }
.game-input:focus { outline: none; border-color: var(--border-highlight); background: var(--bg-secondary); }
[data-turn="p1"] .game-input:focus { border-color: var(--p1-primary); box-shadow: 0 0 10px var(--p1-glow); }
[data-turn="p2"] .game-input:focus { border-color: var(--p2-primary); box-shadow: 0 0 10px var(--p2-glow); }

/* Validation Overlay */
.validation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.validation-overlay.active { display: flex; }
.validation-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--p1-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.validation-overlay p { color: var(--text-secondary); font-size: 0.95rem; letter-spacing: 0.04em; }

/* Handoff Overlay */
.handoff-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}
.handoff-overlay.active { display: flex; animation: modalFadeIn 0.3s ease; }
.handoff-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.handoff-text { font-size: 0.95rem; color: var(--text-secondary); }
.handoff-name { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--p2-primary); }
.handoff-hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* Results */
.results-content { text-align: center; }
.results-body { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }

.result-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    text-align: left;
}
.result-player { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; }
.result-player-name { font-weight: 600; font-size: 0.9rem; }
.result-player-name.p1 { color: var(--p1-primary); }
.result-player-name.p2 { color: var(--p2-primary); }
.result-time { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; color: var(--text-muted); }

.result-answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; font-size: 0.78rem; }
.answer-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.4rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
}
.answer-item.valid { border-left-color: var(--valid-color); }
.answer-item.invalid { border-left-color: var(--invalid-color); }
.answer-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.answer-value { color: var(--text-primary); font-weight: 500; word-break: break-word; font-size: 0.8rem; }
.answer-value.empty { color: var(--text-muted); font-style: italic; }
.answer-status { font-size: 0.6rem; font-weight: 600; }
.answer-status.valid { color: var(--valid-color); }
.answer-status.invalid { color: var(--invalid-color); }

.result-score { margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.1rem; }
.result-score.p1 { color: var(--p1-primary); }
.result-score.p2 { color: var(--p2-primary); }

.bonus-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-sm);
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 600;
}

.winner-banner { padding: 0.65rem; border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600; }
.winner-banner.p1 { background: var(--p1-bg); border: 1px solid var(--p1-primary); color: var(--p1-primary); }
.winner-banner.p2 { background: var(--p2-bg); border: 1px solid var(--p2-primary); color: var(--p2-primary); }
.winner-banner.tie { background: var(--bg-secondary); border: 1px solid var(--border-highlight); color: var(--text-primary); }

.results-buttons { display: flex; flex-direction: column; gap: 0.6rem; }

/* Final scores side by side */
.final-scores { display: flex; gap: 0.6rem; }
.final-scores .result-card { flex: 1; }

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

@media (min-width: 420px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .result-answers { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 480px) {
    .container { padding: 2rem 1.5rem; gap: 2rem; }
    .landing-header { margin-top: 1.5rem; }
    .action-buttons { flex-direction: row; }
    .action-buttons .btn { flex: 1; }
    .results-buttons { flex-direction: row; }
    .results-buttons .btn { flex: 1; }
    .quit-buttons { flex-direction: row; }
    .quit-buttons .btn { flex: 1; }

    .game-container { padding: 0.5rem 1rem; }
    .info-letter { width: 58px; height: 58px; }
    .info-letter span { font-size: 1.8rem; }
    .info-timer { width: 50px; height: 50px; }
    #timer-seconds { font-size: 0.85rem; }
}

/* Desktop — bigger game page */
@media (min-width: 768px) {
    .game-container {
        max-width: 680px;
        padding: 1rem 1.5rem;
    }

    .game-header {
        padding: 0.6rem 0;
        gap: 0.75rem;
    }

    .round-indicator { padding: 0.35rem 0.85rem; }
    .round-indicator span { font-size: 0.65rem; }
    .round-indicator strong { font-size: 1.1rem; }

    .score-display { padding: 0.35rem 0.85rem; gap: 0.5rem; }
    .score span { font-size: 1.15rem; }
    .score-divider { font-size: 1.15rem; }

    .btn-quit { width: 36px; height: 36px; font-size: 1rem; }

    .game-info-bar { gap: 1.5rem; padding: 0.75rem 0 0.5rem; }

    .info-turn { padding: 0.4rem 1rem; font-size: 0.95rem; border-radius: var(--radius-md); }

    .info-letter {
        width: 80px;
        height: 80px;
        border-radius: var(--radius-lg);
        border-width: 3px;
    }
    .info-letter span { font-size: 2.4rem; }
    [data-turn="p1"] .info-letter { box-shadow: 0 0 28px var(--p1-glow); }
    [data-turn="p2"] .info-letter { box-shadow: 0 0 28px var(--p2-glow); }

    .info-timer { width: 70px; height: 70px; }
    .timer-bg { stroke-width: 6; }
    .timer-progress { stroke-width: 6; }
    #timer-seconds { font-size: 1.15rem; }
    [data-turn="p1"] .timer-progress { filter: drop-shadow(0 0 8px var(--p1-glow)); }
    [data-turn="p2"] .timer-progress { filter: drop-shadow(0 0 8px var(--p2-glow)); }

    .game-main { padding-top: 0.5rem; }

    .game-form { gap: 0.85rem; }
    .form-grid { gap: 0.75rem; }
    .input-row label { font-size: 0.75rem; }

    .game-input {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }
    .game-input::placeholder { font-size: 0.9rem; }

    .btn-submit { margin-top: 0.25rem; padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }

    .modal-content { padding: 2rem; }
    .modal-title { font-size: 1.4rem; }
}

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

:focus-visible { outline: 2px solid var(--p1-primary); outline-offset: 2px; }