/* ============================================================
   Quiz Game — style.css
   Dark blue / gold game-show theme
   ============================================================ */

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

:root {
    --bg-dark: #0d0d2b;
    --bg-panel: #1a1a4e;
    --bg-card: #252566;
    --gold: #FFD700;
    --gold-dim: #b8960f;
    --white: #f0f0f0;
    --text-muted: #8888aa;
    --danger: #e74c3c;
    --success: #2ecc71;

    --team-orange: #FF6B00;
    --team-blue: #1E90FF;
    --team-purple: #9B59B6;
    --team-cyan: #00CED1;
    --team-white: #EEEEEE;

    --brand-teal: #0B7981;
    --brand-orange: #D2691E;

    --font-display: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-brand: 'Orbitron', sans-serif;
    --radius: 8px;
    --transition: 0.3s ease;
}

html, body {
    height: 100%;
    font-family: var(--font-display);
    background: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
}

/* --- Screen management --- */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
}
.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============ 1. Splash ============ */
#splash-screen {
    background: var(--bg-dark);
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.splash-logo {
    width: 600px;
    height: 600px;
    max-width: 70vw;
    max-height: 70vw;
    object-fit: contain;
    margin-bottom: 32px;
}

#splash-screen .branding {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

#splash-screen .branding canvas {
    display: block;
}

#splash-screen .branding-text {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: #5a6a7a;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: left;
}

/* ============ 2. Login ============ */
#login-screen {
    background: var(--bg-dark);
}

.login-box {
    background: var(--bg-panel);
    padding: 40px 48px;
    border-radius: var(--radius);
    border: 2px solid var(--gold-dim);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.login-box h2 {
    color: var(--gold);
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    border: 2px solid var(--bg-card);
    border-radius: var(--radius);
    background: var(--bg-dark);
    color: var(--white);
    outline: none;
    transition: border-color var(--transition);
    margin-bottom: 12px;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: var(--gold);
}

/* --- Shared button styles --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease;
    text-decoration: none;
    color: var(--bg-dark);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
    background: var(--gold);
    color: #111;
}
.btn-gold:hover { background: #ffe033; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover { background: rgba(255, 215, 0, 0.1); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #c0392b; }

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-8 { margin-top: 8px; }

/* ============ 3. Dashboard ============ */
#dashboard-screen {
    justify-content: flex-start;
    padding-top: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 24px;
}

.dashboard-header h2 {
    color: var(--gold);
    font-size: 1.6rem;
}

.user-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.user-info span {
    color: var(--white);
    font-weight: 700;
}

.game-list {
    width: 100%;
    max-width: 800px;
}

.game-card {
    background: var(--bg-panel);
    border: 1px solid var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--transition);
}
.game-card:hover { border-color: var(--gold-dim); }

.game-card .game-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.game-card .game-info .status {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-draft { color: var(--text-muted); }
.status-ready { color: var(--success); }
.status-progress { color: var(--gold); }

.game-card .game-actions {
    display: flex;
    gap: 8px;
}

.no-games {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 1.1rem;
}

.dashboard-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
    max-width: 800px;
}

.dashboard-links a {
    color: var(--white);
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.dashboard-links a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ============ 4. Game Editor ============ */
#editor-screen {
    justify-content: flex-start;
    padding-top: 30px;
}

.editor-container {
    width: 100%;
    max-width: 1100px;
}

.editor-container h2 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.editor-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.editor-top-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-size: 1.1rem;
    border: 2px solid var(--bg-card);
    border-radius: var(--radius);
    background: var(--bg-dark);
    color: var(--white);
    outline: none;
}
.editor-top-bar input[type="text"]:focus {
    border-color: var(--gold);
}

.editor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-editor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.cat-column {
    background: var(--bg-panel);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--bg-card);
}

.cat-column h3 {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.cat-column input.cat-name {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid var(--bg-card);
    border-radius: 4px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
}
.cat-column input.cat-name:focus { border-color: var(--gold); }

.clue-row {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.clue-row label {
    display: block;
    font-size: 0.75rem;
    color: var(--gold-dim);
    margin-bottom: 3px;
    font-weight: 600;
}

.clue-row input,
.clue-row textarea {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 4px;
    border: 1px solid var(--bg-card);
    border-radius: 4px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    resize: vertical;
}
.clue-row input:focus,
.clue-row textarea:focus { border-color: var(--gold); }

.clue-value-label {
    color: var(--gold);
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.csv-upload-area {
    margin-top: 16px;
    text-align: center;
}
.csv-upload-area input[type="file"] { display: none; }

.field-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

/* ============ 5. Team Setup ============ */
#team-setup-screen {
    background: var(--bg-dark);
}

.team-setup-box {
    background: var(--bg-panel);
    padding: 32px 40px;
    border-radius: var(--radius);
    border: 2px solid var(--gold-dim);
    max-width: 560px;
    width: 100%;
}

.team-setup-box h2 {
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.team-count-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.team-count-selector label {
    font-size: 1rem;
}

.team-count-selector select {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--bg-card);
    background: var(--bg-dark);
    color: var(--white);
    outline: none;
}

.team-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.team-entry .color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #555;
    flex-shrink: 0;
}

.team-entry input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--bg-card);
    border-radius: 4px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
}
.team-entry input:focus { border-color: var(--gold); }

.team-entry select {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid var(--bg-card);
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
}

.esp-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    text-align: center;
}

/* ============ 6. Game Board ============ */
.board-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 4px 0;
    flex-shrink: 0;
}

.board-top-bar .btn + .btn {
    margin-left: 6px;
}

.board-top-spacer {
    flex: 1;
}

/* --- Help Overlay --- */
.help-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 30, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.help-overlay.active {
    display: flex;
}

.help-panel {
    background: var(--bg-panel);
    border: 2px solid var(--gold-dim);
    border-radius: var(--radius);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    flex-shrink: 0;
}

.help-header h2 {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0;
}

.help-body {
    padding: 24px;
    overflow-y: auto;
    color: #c0c0d0;
    font-size: 0.9rem;
    line-height: 1.8;
}

.help-body h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.help-body h3:first-child {
    margin-top: 0;
}

.help-body p {
    margin-bottom: 1rem;
}

.help-body ul, .help-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-body li {
    margin-bottom: 0.4rem;
}

.help-body .key {
    display: inline-block;
    background: #252566;
    color: var(--gold);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
}

#gameboard-screen {
    padding: 10px;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

.board-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 20px);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    gap: 6px;
    flex: 1;
    width: 100%;
}

.grid-header {
    background: var(--bg-panel);
    color: var(--gold);
    font-weight: 900;
    font-size: clamp(0.8rem, 2vw, 1.4rem);
    text-align: center;
    padding: 12px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.grid-cell {
    background: var(--bg-panel);
    border: 2px solid var(--gold-dim);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--gold);
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease, border-color var(--transition);
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    user-select: none;
}

.grid-cell:hover {
    background: var(--bg-card);
    border-color: var(--gold);
    transform: scale(1.03);
}

.grid-cell.answered {
    background: rgba(13, 13, 43, 0.7);
    border-color: #333;
    color: #333;
    cursor: default;
    transform: none;
}
.grid-cell.answered:hover {
    transform: none;
    background: rgba(13, 13, 43, 0.7);
    border-color: #333;
}

/* --- Clue Overlay --- */
.clue-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 30, 0.95);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}
.clue-overlay.active {
    display: flex;
}

.clue-category {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.clue-value-display {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--gold-dim);
    margin-bottom: 24px;
}

.clue-text {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    max-width: 900px;
    line-height: 1.3;
    margin-bottom: 32px;
}

.clue-response-text {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 20px;
    display: none;
}
.clue-response-text.visible {
    display: block;
}

.buzz-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.buzz-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 3px solid;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow var(--transition);
    color: #111;
}
.buzz-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.buzz-btn.locked {
    opacity: 0.3;
    filter: grayscale(60%);
    transform: none;
}
.buzz-btn.locked:hover {
    transform: none;
    box-shadow: none;
}
.buzz-btn.buzzed-in {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    transform: scale(1.15);
}
.buzz-btn.eliminated {
    opacity: 0.25;
    pointer-events: none;
    filter: grayscale(100%);
    transform: none;
}
.buzz-btn.eliminated:hover {
    transform: none;
    box-shadow: none;
}

.judge-buttons {
    display: none;
    gap: 12px;
    margin-top: 16px;
}
.judge-buttons.active {
    display: flex;
}

.buzzed-team-display {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 12px;
    display: none;
}
.buzzed-team-display.active {
    display: block;
}

.show-answer-btn {
    margin-top: 12px;
}

/* --- Scoreboard Bar --- */
.scoreboard-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.score-cell {
    text-align: center;
    padding: 8px 20px;
    border-radius: var(--radius);
    min-width: 120px;
    border: 2px solid;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.score-cell:hover { transform: scale(1.05); }

.score-cell .team-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-cell .team-score {
    font-size: 1.4rem;
    font-weight: 900;
}

/* ============ 7. Game Over ============ */
#gameover-screen {
    background: radial-gradient(ellipse at center, #1a1a5e 0%, #0a0a20 70%);
    text-align: center;
}

#gameover-screen h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--gold);
    margin-bottom: 8px;
}

.winner-announcement {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    margin: 20px 0;
}

.final-scores {
    margin: 24px 0;
}

.final-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    font-size: 1.3rem;
}

.final-score-row .rank {
    font-weight: 900;
    color: var(--gold);
    width: 30px;
}

.final-score-row .fname {
    font-weight: 700;
    min-width: 140px;
    text-align: right;
}

.final-score-row .fscore {
    font-weight: 900;
    color: var(--gold);
    min-width: 80px;
    text-align: left;
}

.gameover-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* --- Help overlay tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

th, td {
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    text-align: center;
}

th {
    background: #252566;
    color: #FFD700;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

td { color: #c0c0d0; }

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.note {
    background: rgba(255, 215, 0, 0.06);
    border-left: 3px solid #FFD700;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0 8px 8px 0;
}

.note p { margin-bottom: 0; }

/* --- Utility --- */
.hidden { display: none !important; }

/* ============================================================
   Final Jeopardy — Editor
   ============================================================ */
.fj-editor-section {
    margin-top: 32px;
    border-top: 2px solid var(--gold-dim);
    padding-top: 24px;
}

.fj-editor-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.fj-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
}

.fj-editor-fields {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fj-editor-fields label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

.fj-editor-fields input,
.fj-editor-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
}

.fj-editor-fields input:focus,
.fj-editor-fields textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* ============================================================
   Final Jeopardy — Gameplay Overlays
   ============================================================ */
.fj-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(7, 7, 30, 0.97);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.fj-overlay.active {
    display: flex;
}

.fj-screen {
    width: 90%;
    max-width: 700px;
    text-align: center;
    padding: 40px 24px;
}

.fj-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Category Reveal */
.fj-category-reveal {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: fjReveal 0.6s ease-out;
}

@keyframes fjReveal {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.fj-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Wager Screen */
.fj-wager-entries {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.fj-wager-row {
    background: var(--bg-panel);
    border: 2px solid;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.fj-wager-team {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    flex: 1;
    min-width: 100px;
}

.fj-wager-score {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.fj-wager-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    width: 100%;
}

.fj-wager-input {
    width: 120px;
    padding: 8px 10px;
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.fj-wager-input:disabled {
    opacity: 0.4;
}

.fj-wager-max {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Timer */
.fj-timer {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fj-timer-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.fj-timer-display.fj-timer-urgent {
    color: var(--danger);
    animation: fjTimerPulse 1s ease-in-out infinite;
}

@keyframes fjTimerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Clue Screen */
.fj-clue-category {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.fj-clue-text {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 24px;
}

.fj-clue-response {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fj-clue-response.visible {
    opacity: 1;
}

/* Judging Screen */
.fj-judging-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.fj-judge-card {
    background: var(--bg-panel);
    border: 2px solid;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.fj-judge-team {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.fj-judge-wager {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.fj-judge-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.fj-judge-correct {
    background: var(--success) !important;
    color: #fff !important;
    border: none;
}

.fj-judge-incorrect {
    background: var(--danger) !important;
    color: #fff !important;
    border: none;
}

.fj-judge-result {
    display: none;
    font-size: 0.95rem;
    margin-top: 8px;
    line-height: 1.6;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
    .game-grid { gap: 3px; }
    .grid-cell { font-size: 1.2rem; }
    .grid-header { font-size: 0.7rem; padding: 8px 4px; }
    .score-cell { min-width: 80px; padding: 6px 10px; }
    .score-cell .team-score { font-size: 1.1rem; }
    .category-editor { grid-template-columns: 1fr; }
    .fj-screen { padding: 24px 16px; }
    .fj-wager-row { flex-direction: column; align-items: stretch; }
}
