/* ========================================
   GAME THEMES — GRAFFITI BALLOON
   body.mimic-page  → لا تقلد         (Orange / Yellow)
   body.trivia-page → تحدي المعلومات  (Purple / Blue / Teal)
   ======================================== */

body.mimic-page,
body.trivia-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
    scroll-behavior: smooth;
}


/* ═══════════════════════════════════════════════════════
   لا تقلِّد  —  MIMIC  —  Orange / Yellow
   ═══════════════════════════════════════════════════════ */

body.mimic-page {
    background:
        radial-gradient(circle at  8% 10%, rgba(255, 212, 71, 0.22), transparent 22rem),
        radial-gradient(circle at 92% 12%, rgba(255, 107, 53, 0.26), transparent 20rem),
        radial-gradient(circle at 45% 88%, rgba(255, 140,  0, 0.18), transparent 22rem),
        linear-gradient(135deg, #1a0e05 0%, #2b1306 48%, #1a1205 100%);
    background-attachment: fixed;
}

/* ── Brand / Title Panel ── */
body.mimic-page .brand-panel.game-title-panel {
    border-radius: 18px;
    border: 3px solid rgba(255, 212, 71, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 85% 72%, rgba(255, 107, 53, 0.28), transparent 12rem),
        linear-gradient(135deg, #c2410c 0%, #FF6B35 52%, #FFD447 100%);
    box-shadow:
        0 0 0 6px rgba(255, 212, 71, 0.10),
        0 28px 56px rgba(0, 0, 0, 0.48);
    color: #ffffff;
}

body.mimic-page .brand-panel.game-title-panel::before {
    background: linear-gradient(90deg, #FFD447, #FF6B35, #c2410c, #FF6B35, #FFD447);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.mimic-page .brand-panel h1 {
    color: #ffffff;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 900;
    text-shadow:
        3px  3px 0 rgba(0, 0, 0, 0.45),
        6px  6px 0 rgba(194, 65, 12, 0.72),
        0   18px 36px rgba(255, 107, 53, 0.42);
}

body.mimic-page .back-link,
body.mimic-page .game-back-link {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.26);
    border: 2px solid rgba(255, 255, 255, 0.30);
}

body.mimic-page .back-link:hover,
body.mimic-page .game-back-link:hover {
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
}

/* ── Join Panel ── */
body.mimic-page .join-panel {
    border-radius: 16px;
    border: 2px solid rgba(255, 212, 71, 0.20);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

body.mimic-page .home-action.create {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #c2410c, #FF6B35 52%, #FF8C00);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.mimic-page .home-action.join {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    color: #1a0e05;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #FF8C00, #FFD447 52%, #FFF176);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.mimic-page .home-action:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.mimic-page .join-form label,
body.mimic-page .join-panel label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.mimic-page .join-form input,
body.mimic-page .join-panel input {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 212, 71, 0.32);
    border-radius: 10px;
    color: #ffffff;
}

body.mimic-page .join-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.mimic-page .join-form input:focus,
body.mimic-page .join-panel input:focus {
    border-color: #FFD447;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(255, 212, 71, 0.22);
}

body.mimic-page .back-button {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ── Primary Action Button ── */
body.mimic-page .primary-action {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    color: #0d0d1a;
    font-weight: 1000;
    background: linear-gradient(135deg, #FF6B35, #FFD447);
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.mimic-page .primary-action:hover {
    background: linear-gradient(135deg, #ff5010, #ffcc00);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.54);
}

/* ── Game Header ── */
body.mimic-page .game-header {
    border-radius: 14px;
    border: 2px solid rgba(255, 212, 71, 0.28);
    background: rgba(194, 65, 12, 0.42);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

body.mimic-page .game-header h1 {
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.40);
}

body.mimic-page .home-button {
    border: 2px solid rgba(255, 212, 71, 0.45);
    border-radius: 10px;
    color: #FFD447;
    background: rgba(0, 0, 0, 0.28);
}

body.mimic-page .home-button:hover {
    background: rgba(0, 0, 0, 0.44);
    color: #ffffff;
}

body.mimic-page .round-meter div {
    background: #FFD447;
}

/* ── Play Panel ── */
body.mimic-page .play-panel {
    border-radius: 16px;
    border: 2px solid rgba(255, 212, 71, 0.18);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

/* ── Timer Badge ── */
body.mimic-page .timer-badge {
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6B35, #FFD447);
    color: #0d0d1a;
    font-weight: 1000;
    box-shadow: 0 6px 14px rgba(255, 107, 53, 0.42);
}

/* ── Wager Grid (mimic-specific) ── */
body.mimic-page .wager-grid button:hover:not(:disabled),
body.mimic-page .wager-grid button.selected {
    color: #ffffff;
    border-color: #FF6B35;
    background: linear-gradient(135deg, #c2410c, #FF6B35);
}

/* ── Ranking ── */
body.mimic-page .ranking-showcase {
    border-color: rgba(255, 212, 71, 0.42);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 212, 71, 0.18), transparent 14rem),
        linear-gradient(135deg, rgba(255, 107, 53, 0.07), rgba(255, 212, 71, 0.09)),
        #ffffff;
}

/* ── Footer ── */
body.mimic-page .site-footer {
    border-color: rgba(255, 212, 71, 0.22);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.30);
}

body.mimic-page .site-footer a {
    background: rgba(255, 212, 71, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

body.mimic-page .site-footer a:hover {
    background: rgba(255, 212, 71, 0.28);
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════
   تحدي المعلومات  —  TRIVIA  —  Purple / Blue / Teal
   ═══════════════════════════════════════════════════════ */

body.trivia-page {
    background:
        radial-gradient(circle at  8% 10%, rgba(113,  88, 255, 0.22), transparent 22rem),
        radial-gradient(circle at 92%  8%, rgba( 18, 103, 255, 0.22), transparent 20rem),
        radial-gradient(circle at 50% 90%, rgba(  0, 178, 169, 0.18), transparent 22rem),
        linear-gradient(135deg, #0e0a1f 0%, #140d35 48%, #0a1a2e 100%);
    background-attachment: fixed;
}

/* ── Brand / Title Panel ── */
body.trivia-page .brand-panel.game-title-panel {
    border-radius: 18px;
    border: 3px solid rgba(113, 88, 255, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 86% 72%, rgba(0, 178, 169, 0.28), transparent 12rem),
        linear-gradient(135deg, #7158FF 0%, #1267FF 52%, #00B2A9 100%);
    box-shadow:
        0 0 0 6px rgba(113, 88, 255, 0.10),
        0 28px 56px rgba(0, 0, 0, 0.48);
    color: #ffffff;
}

body.trivia-page .brand-panel.game-title-panel::before {
    background: linear-gradient(90deg, #7158FF, #1267FF, #00B2A9, #1267FF, #7158FF);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.trivia-page .brand-panel h1 {
    color: #ffffff;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-shadow:
        3px  3px 0 rgba(0, 0, 0, 0.45),
        6px  6px 0 rgba(7, 59, 149, 0.72),
        0   18px 36px rgba(113, 88, 255, 0.48);
}

body.trivia-page .back-link,
body.trivia-page .game-back-link {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.26);
    border: 2px solid rgba(255, 255, 255, 0.30);
}

body.trivia-page .back-link:hover,
body.trivia-page .game-back-link:hover {
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
}

/* ── Join Panel ── */
body.trivia-page .join-panel {
    border-radius: 16px;
    border: 2px solid rgba(113, 88, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

body.trivia-page .home-action.create {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #7158FF, #1267FF 52%, #0099CC);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.trivia-page .home-action.join {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #00B2A9, #1267FF 52%, #7158FF);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.trivia-page .home-action:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.trivia-page .join-form label,
body.trivia-page .join-panel label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.trivia-page .join-form input,
body.trivia-page .join-panel input {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(113, 88, 255, 0.35);
    border-radius: 10px;
    color: #ffffff;
}

body.trivia-page .join-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.trivia-page .join-form input:focus,
body.trivia-page .join-panel input:focus {
    border-color: #7158FF;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(113, 88, 255, 0.22);
}

body.trivia-page .back-button {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ── Primary Action Button ── */
body.trivia-page .primary-action {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 1000;
    background: linear-gradient(135deg, #7158FF, #1267FF);
    box-shadow: 0 10px 22px rgba(113, 88, 255, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.trivia-page .primary-action:hover {
    background: linear-gradient(135deg, #5a43f0, #0757d8);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(113, 88, 255, 0.54);
}

/* ── Game Header ── */
body.trivia-page .game-header {
    border-radius: 14px;
    border: 2px solid rgba(113, 88, 255, 0.30);
    background: rgba(14, 10, 40, 0.52);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

body.trivia-page .game-header h1 {
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.40);
}

body.trivia-page .home-button {
    border: 2px solid rgba(113, 88, 255, 0.50);
    border-radius: 10px;
    color: #b8a8ff;
    background: rgba(0, 0, 0, 0.28);
}

body.trivia-page .home-button:hover {
    background: rgba(0, 0, 0, 0.44);
    color: #ffffff;
}

body.trivia-page .round-meter div {
    background: #7158FF;
}

/* ── Play Panel ── */
body.trivia-page .play-panel {
    border-radius: 16px;
    border: 2px solid rgba(113, 88, 255, 0.18);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

/* ── Timer Badge ── */
body.trivia-page .timer-badge {
    border-radius: 10px;
    background: linear-gradient(135deg, #7158FF, #1267FF, #00B2A9);
    color: #ffffff;
    font-weight: 1000;
    box-shadow: 0 6px 14px rgba(113, 88, 255, 0.42);
}

/* ── Option & Category Buttons ── */
@media (hover: hover) and (pointer: fine) {
    body.trivia-page .option-button:hover:not(:disabled),
    body.trivia-page .category-button:hover:not(:disabled) {
        color: #fff;
        border-color: #7158FF;
        background: linear-gradient(135deg, #7158FF, #1267FF, #00B2A9);
        box-shadow: 0 12px 24px rgba(113, 88, 255, 0.28);
    }
}

body.trivia-page .category-button.selected {
    color: #fff;
    border-color: #7158FF;
    background: linear-gradient(135deg, #7158FF, #1267FF, #00B2A9);
    box-shadow: 0 12px 24px rgba(113, 88, 255, 0.28);
}

/* ── Category Label Pill ── */
body.trivia-page .question-category {
    border-radius: 10px;
    background: linear-gradient(135deg, #7158FF, #1267FF, #00B2A9);
}

/* ── Chooser Card ── */
body.trivia-page .chooser-card {
    border-radius: 12px;
    background: linear-gradient(135deg, #7158FF, #1267FF, #00B2A9);
    box-shadow: 0 12px 24px rgba(113, 88, 255, 0.30);
}

/* ── System Answer ── */
body.trivia-page .system-answer {
    border-radius: 10px;
    border-color: rgba(113, 88, 255, 0.38);
    background:
        linear-gradient(90deg, rgba(113, 88, 255, 0.10), rgba(0, 178, 169, 0.10)),
        #ffffff;
}

/* ── Ranking ── */
body.trivia-page .ranking-showcase {
    border-color: rgba(113, 88, 255, 0.40);
    background:
        radial-gradient(circle at 18% 8%, rgba(113, 88, 255, 0.16), transparent 14rem),
        linear-gradient(135deg, rgba(18, 103, 255, 0.07), rgba(0, 178, 169, 0.08)),
        #ffffff;
}

/* ── Footer ── */
body.trivia-page .site-footer {
    border-color: rgba(113, 88, 255, 0.25);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.30);
}

body.trivia-page .site-footer a {
    background: rgba(113, 88, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
}

body.trivia-page .site-footer a:hover {
    background: rgba(113, 88, 255, 0.32);
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════
   صمّم لعبتك  —  CUSTOM TRIVIA  —  Yellow / Orange / Purple
   ═══════════════════════════════════════════════════════ */

body.custom-trivia-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
    background:
        radial-gradient(circle at  8% 10%, rgba(255, 212, 71, 0.22), transparent 22rem),
        radial-gradient(circle at 92%  8%, rgba(255, 107, 53, 0.22), transparent 20rem),
        radial-gradient(circle at 50% 90%, rgba(113,  88, 255, 0.20), transparent 22rem),
        linear-gradient(135deg, #1a1205 0%, #200e00 48%, #120a2e 100%);
    background-attachment: fixed;
}

/* ── Brand / Title Panel ── */
body.custom-trivia-page .brand-panel.game-title-panel {
    border-radius: 18px;
    border: 3px solid rgba(255, 212, 71, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 86% 72%, rgba(113, 88, 255, 0.28), transparent 12rem),
        linear-gradient(135deg, #FFD447 0%, #FF8C00 48%, #7158FF 100%);
    box-shadow:
        0 0 0 6px rgba(255, 212, 71, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.48);
    color: #0d0d1a;
}

body.custom-trivia-page .brand-panel.game-title-panel::before {
    background: linear-gradient(90deg, #FFD447, #FF8C00, #7158FF, #FF8C00, #FFD447);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.custom-trivia-page .brand-panel h1 {
    color: #0d0d1a;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    text-shadow:
        3px  3px 0 rgba(255, 255, 255, 0.30),
        6px  6px 0 rgba(113, 88, 255, 0.50),
        0   16px 32px rgba(255, 140, 0, 0.45);
}

body.custom-trivia-page .back-link,
body.custom-trivia-page .game-back-link {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.26);
    border: 2px solid rgba(255, 255, 255, 0.30);
}

body.custom-trivia-page .back-link:hover,
body.custom-trivia-page .game-back-link:hover {
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
}

/* ── Join Panel ── */
body.custom-trivia-page .join-panel {
    border-radius: 16px;
    border: 2px solid rgba(255, 212, 71, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

body.custom-trivia-page .home-action.create {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #FFD447, #FF8C00 52%, #7158FF);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.custom-trivia-page .home-action.join {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #7158FF, #FF8C00 52%, #FFD447);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.custom-trivia-page .home-action:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.custom-trivia-page .home-action span {
    color: #0d0d1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
}

body.custom-trivia-page .join-form label,
body.custom-trivia-page .join-panel label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.custom-trivia-page .join-form input,
body.custom-trivia-page .join-panel input,
body.custom-trivia-page .join-panel select {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 212, 71, 0.35);
    border-radius: 10px;
    color: #ffffff;
}

body.custom-trivia-page .join-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.custom-trivia-page .join-form input:focus,
body.custom-trivia-page .join-panel input:focus,
body.custom-trivia-page .join-panel select:focus {
    border-color: #FFD447;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(255, 212, 71, 0.22);
}

body.custom-trivia-page .back-button {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ── Primary / Secondary Actions ── */
body.custom-trivia-page .primary-action {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    color: #0d0d1a;
    font-weight: 1000;
    background: linear-gradient(135deg, #FFD447, #FF8C00);
    box-shadow: 0 10px 22px rgba(255, 140, 0, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.custom-trivia-page .primary-action:hover {
    background: linear-gradient(135deg, #f5c800, #e07600);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 140, 0, 0.54);
}

body.custom-trivia-page .secondary-action {
    border: 2px solid rgba(255, 212, 71, 0.45);
    border-radius: 10px;
    color: #FFD447;
    background: rgba(255, 212, 71, 0.10);
    font-weight: 900;
}

body.custom-trivia-page .secondary-action:hover {
    background: rgba(255, 212, 71, 0.20);
    color: #ffffff;
}

body.custom-trivia-page .text-button {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
}

body.custom-trivia-page .saved-game-item .secondary-action {
    color: #0f3f8f;
    background: #eaf4ff;
    border-color: rgba(18, 103, 255, 0.32);
}

body.custom-trivia-page .saved-game-item .secondary-action:hover {
    color: #061833;
    background: #d7ecff;
}

body.custom-trivia-page .saved-game-item .text-button.danger-text,
body.custom-trivia-page .custom-game-editor > .custom-editor-actions .text-button {
    color: #991b1b;
    background: #fee2e2;
    border: 2px solid rgba(153, 27, 27, 0.24);
    font-weight: 900;
}

body.custom-trivia-page .saved-game-item .text-button.danger-text:hover,
body.custom-trivia-page .custom-game-editor > .custom-editor-actions .text-button:hover {
    color: #7f1d1d;
    background: #fecaca;
}

/* ── Game Header ── */
body.custom-trivia-page .game-header {
    border-radius: 14px;
    border: 2px solid rgba(255, 212, 71, 0.30);
    background: rgba(26, 18, 5, 0.55);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

body.custom-trivia-page .game-header h1 {
    color: #ffffff;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.40);
}

body.custom-trivia-page .game-header .lead {
    color: rgba(255, 255, 255, 0.75);
}

body.custom-trivia-page .home-button {
    border: 2px solid rgba(255, 212, 71, 0.50);
    border-radius: 10px;
    color: #FFD447;
    background: rgba(0, 0, 0, 0.28);
}

body.custom-trivia-page .home-button:hover {
    background: rgba(0, 0, 0, 0.44);
    color: #ffffff;
}

body.custom-trivia-page .round-meter div {
    background: linear-gradient(90deg, #FFD447, #7158FF);
}

/* ── Play Panel ── */
body.custom-trivia-page .play-panel {
    border-radius: 16px;
    border: 2px solid rgba(255, 212, 71, 0.18);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

/* ── Timer Badge ── */
body.custom-trivia-page .timer-badge {
    border-radius: 10px;
    background: linear-gradient(135deg, #FFD447, #FF8C00, #7158FF);
    color: #0d0d1a;
    font-weight: 1000;
    box-shadow: 0 6px 14px rgba(255, 140, 0, 0.42);
}

/* ── Option Buttons ── */
@media (hover: hover) and (pointer: fine) {
    body.custom-trivia-page .option-button:hover:not(:disabled),
    body.custom-trivia-page .category-button:hover:not(:disabled) {
        color: #0d0d1a;
        border-color: #FFD447;
        background: linear-gradient(135deg, #FFD447, #FF8C00, #7158FF);
        box-shadow: 0 12px 24px rgba(255, 140, 0, 0.28);
    }
}

body.custom-trivia-page .option-button.correct-answer,
body.custom-trivia-page .category-button.selected {
    color: #0d0d1a;
    border-color: #FFD447;
    background: linear-gradient(135deg, #FFD447, #FF8C00, #7158FF);
    box-shadow: 0 12px 24px rgba(255, 140, 0, 0.28);
}

/* ── Category Label Pill ── */
body.custom-trivia-page .question-category {
    border-radius: 10px;
    background: linear-gradient(135deg, #FFD447, #FF8C00, #7158FF);
    color: #0d0d1a;
}

/* ── Chooser Card ── */
body.custom-trivia-page .chooser-card {
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD447, #FF8C00, #7158FF);
    box-shadow: 0 12px 24px rgba(255, 140, 0, 0.30);
}

/* ── System Answer ── */
body.custom-trivia-page .system-answer {
    border-radius: 10px;
    border-color: rgba(255, 212, 71, 0.38);
    background:
        linear-gradient(90deg, rgba(255, 212, 71, 0.08), rgba(113, 88, 255, 0.08)),
        #ffffff;
}

/* ── Saved Games Panel ── */
body.custom-trivia-page .custom-games-panel {
    margin-top: 16px;
    border-radius: 14px;
    border: 2px solid rgba(255, 212, 71, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    padding: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body.custom-trivia-page .custom-games-panel .section-title h2,
body.custom-trivia-page .custom-games-panel .section-title h3 {
    color: #FFD447;
    font-weight: 900;
}

body.custom-trivia-page .custom-games-panel .section-title span {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.82rem;
}

body.custom-trivia-page .saved-games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

/* ── Game Editor Form ── */
body.custom-trivia-page .custom-game-editor {
    border-radius: 12px;
    border: 1px solid rgba(255, 212, 71, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    padding: 14px;
    margin-top: 10px;
}

body.custom-trivia-page .custom-game-editor > label,
body.custom-trivia-page .custom-game-editor .compact-title h3 {
    color: #FFD447;
}

body.custom-trivia-page .custom-game-editor .compact-title span {
    color: rgba(255, 255, 255, 0.72);
}

body.custom-trivia-page .custom-game-editor input,
body.custom-trivia-page .custom-game-editor textarea,
body.custom-trivia-page .custom-game-editor select {
    background: #ffffff;
    border: 2px solid rgba(255, 212, 71, 0.30);
    border-radius: 10px;
    color: #0d0d1a;
}

body.custom-trivia-page .custom-game-editor input::placeholder,
body.custom-trivia-page .custom-game-editor textarea::placeholder {
    color: rgba(13, 13, 26, 0.46);
}

body.custom-trivia-page .custom-game-editor option {
    color: #0d0d1a;
    background: #ffffff;
}

body.custom-trivia-page .question-editor-card {
    background: #ffffff;
    color: #0d0d1a;
}

body.custom-trivia-page .question-editor-number {
    color: #4c2ec7;
}

body.custom-trivia-page .question-editor-card .danger-text {
    color: #991b1b;
}

body.custom-trivia-page .custom-game-editor input:focus,
body.custom-trivia-page .custom-game-editor textarea:focus {
    border-color: #FFD447;
    box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.20);
}

/* ── Ranking ── */
body.custom-trivia-page .ranking-showcase {
    border-color: rgba(255, 212, 71, 0.35);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 212, 71, 0.14), transparent 14rem),
        linear-gradient(135deg, rgba(255, 140, 0, 0.06), rgba(113, 88, 255, 0.07)),
        #ffffff;
}

/* ── Footer ── */
body.custom-trivia-page .site-footer {
    border-color: rgba(255, 212, 71, 0.22);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.30);
}

body.custom-trivia-page .site-footer a {
    background: rgba(255, 212, 71, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

body.custom-trivia-page .site-footer a:hover {
    background: rgba(255, 212, 71, 0.28);
    color: #ffffff;
}

/* ════════════════════════════════════════════════
   SHARED FIXES — mimic-page, trivia-page, bara-page
   ════════════════════════════════════════════════ */

/* ── Back link → RED ── */
body.mimic-page .game-back-link,
body.trivia-page .game-back-link,
body.bara-page .game-back-link,
body.custom-trivia-page .game-back-link,
body.no-word-page .game-back-link {
    color: #ffffff !important;
    background: #dc2626 !important;
    border: 2px solid #991b1b !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.38) !important;
}

body.mimic-page .game-back-link:hover,
body.trivia-page .game-back-link:hover,
body.bara-page .game-back-link:hover {
    background: #b91c1c !important;
}

/* ── Room icon buttons — fix overflow ── */
body.mimic-page .room-icon-button,
body.trivia-page .room-icon-button,
body.bara-page .room-icon-button {
    width: 70px;
}

body.mimic-page .room-icon-label,
body.trivia-page .room-icon-label,
body.bara-page .room-icon-label {
    white-space: normal;
    text-align: center;
    font-size: 0.60rem;
    line-height: 1.2;
    padding: 0 3px 4px;
}

/* ── Waiting player badges ── */
body.mimic-page .waiting-player {
    border: 2px solid rgba(255, 107, 53, 0.35);
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.09);
    color: #7c2d12;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.14);
}

body.trivia-page .waiting-player {
    border: 2px solid rgba(113, 88, 255, 0.32);
    border-radius: 12px;
    background: rgba(113, 88, 255, 0.09);
    color: #3730a3;
    box-shadow: 0 4px 12px rgba(113, 88, 255, 0.14);
}

/* ── Player avatar — stop flicker/blink ── */
body.mimic-page .player-avatar,
body.trivia-page .player-avatar,
body.bara-page .player-avatar {
    animation: none;
}

/* ── Countdown panel — MIMIC (Orange/Yellow) ── */
body.mimic-page .countdown-panel {
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 212, 71, 0.30), transparent 16rem),
        linear-gradient(135deg, #1a0e05 0%, #c2410c 52%, #FF6B35 100%);
}

body.mimic-page .countdown-panel div {
    border-color: rgba(255, 212, 71, 0.90);
    color: #ffffff;
    background: rgba(194, 65, 12, 0.38);
    will-change: transform;
}

/* ── Countdown panel — TRIVIA (Purple/Blue) ── */
body.trivia-page .countdown-panel {
    background:
        radial-gradient(circle at 50% 44%, rgba(113, 88, 255, 0.32), transparent 16rem),
        linear-gradient(135deg, #0e0a1f 0%, #7158FF 52%, #1267FF 100%);
}

body.trivia-page .countdown-panel div {
    border-color: rgba(255, 255, 255, 0.90);
    color: #FFD447;
    background: rgba(14, 10, 40, 0.40);
    will-change: transform;
}

/* ── Smoother countdown bounce animation ── */
body.mimic-page .countdown-panel div.countdown-pop,
body.trivia-page .countdown-panel div.countdown-pop,
body.bara-page .countdown-panel div.countdown-pop {
    animation: countdownBounce 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes countdownBounce {
    from { transform: scale(0.55); opacity: 0.5; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Podium — MIMIC ── */
body.mimic-page .podium-modal {
    background: rgba(26, 14, 5, 0.75);
}

body.mimic-page .podium-card {
    border: 2px solid rgba(255, 212, 71, 0.62);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 212, 71, 0.16), rgba(255, 107, 53, 0.10)),
        #4a210d;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

body.mimic-page .podium-place {
    border: 1px solid rgba(255, 212, 71, 0.22);
    border-radius: 8px;
    background: rgba(255, 212, 71, 0.08);
}

/* ── Podium — TRIVIA ── */
body.trivia-page .podium-modal {
    background: rgba(14, 10, 31, 0.75);
}

body.trivia-page .podium-card {
    border: 2px solid rgba(113, 88, 255, 0.62);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(113, 88, 255, 0.18), rgba(0, 178, 169, 0.10)),
        #141024;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

body.trivia-page .podium-place {
    border: 1px solid rgba(113, 88, 255, 0.28);
    border-radius: 8px;
    background: rgba(113, 88, 255, 0.10);
}

body.custom-trivia-page .podium-modal {
    background: rgba(24, 18, 8, 0.75);
}

body.custom-trivia-page .podium-card {
    border: 2px solid rgba(255, 212, 71, 0.58);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 212, 71, 0.18), rgba(0, 178, 169, 0.10)),
        #241b0b;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

body.custom-trivia-page .podium-place {
    border: 1px solid rgba(255, 212, 71, 0.24);
    border-radius: 8px;
    background: rgba(255, 212, 71, 0.09);
}

/* ── Footer link vertical centering ── */
body.mimic-page .site-footer a,
body.trivia-page .site-footer a,
body.bara-page .site-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Round Results & Ranking Cards — MIMIC ── */
body.mimic-page .result-row,
body.mimic-page .score-row {
    border: 2px solid rgba(255, 107, 53, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(255, 212, 71, 0.06));
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.08);
    padding: 13px 14px;
}

body.mimic-page .result-row.unique {
    border-color: rgba(22, 163, 74, 0.35);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.07), rgba(255, 212, 71, 0.05));
}

body.mimic-page .result-row.duplicate {
    border-color: rgba(255, 93, 122, 0.32);
    background: rgba(255, 93, 122, 0.05);
}

body.mimic-page .ranking-card {
    border: 2px solid rgba(255, 107, 53, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(255, 212, 71, 0.05));
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.09);
    padding: 13px 14px;
}

body.mimic-page .rank-1 .ranking-card {
    border-color: rgba(255, 212, 71, 0.55);
    background: linear-gradient(135deg, rgba(255, 212, 71, 0.14), rgba(255, 107, 53, 0.08));
    box-shadow: 0 6px 18px rgba(255, 212, 71, 0.18);
}

body.mimic-page .rank-2 .ranking-card {
    border-color: rgba(255, 107, 53, 0.35);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.09), rgba(255, 212, 71, 0.05));
}

/* ── Round Results & Ranking Cards — TRIVIA ── */
body.trivia-page .result-row,
body.trivia-page .score-row {
    border: 2px solid rgba(113, 88, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(113, 88, 255, 0.04), rgba(18, 103, 255, 0.05));
    box-shadow: 0 3px 10px rgba(113, 88, 255, 0.08);
    padding: 13px 14px;
}

body.trivia-page .ranking-card {
    border: 2px solid rgba(113, 88, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(113, 88, 255, 0.04), rgba(18, 103, 255, 0.05));
    box-shadow: 0 4px 14px rgba(113, 88, 255, 0.09);
    padding: 13px 14px;
}

body.trivia-page .rank-1 .ranking-card {
    border-color: rgba(255, 212, 71, 0.55);
    background: linear-gradient(135deg, rgba(255, 212, 71, 0.12), rgba(113, 88, 255, 0.08));
    box-shadow: 0 6px 18px rgba(255, 212, 71, 0.18);
}

body.trivia-page .rank-2 .ranking-card {
    border-color: rgba(113, 88, 255, 0.35);
    background: linear-gradient(135deg, rgba(113, 88, 255, 0.10), rgba(18, 103, 255, 0.06));
}


/* ═══════════════════════════════════════════════════════
   برا السالفة  —  BARA  —  Navy Blue / Ocean / Tiffany
   ═══════════════════════════════════════════════════════ */

body.bara-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at  8% 10%, rgba( 18, 103, 255, 0.22), transparent 22rem),
        radial-gradient(circle at 92%  8%, rgba(  0, 153, 204, 0.22), transparent 20rem),
        radial-gradient(circle at 50% 90%, rgba(  0, 178, 169, 0.16), transparent 22rem),
        linear-gradient(135deg, #05101f 0%, #082040 48%, #041830 100%);
    background-attachment: fixed;
}

body.bara-page .brand-panel.game-title-panel {
    border-radius: 18px;
    border: 3px solid rgba(0, 178, 169, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 85% 72%, rgba(0, 178, 169, 0.30), transparent 12rem),
        linear-gradient(135deg, #1267FF 0%, #0099CC 52%, #00B2A9 100%);
    box-shadow:
        0 0 0 6px rgba(18, 103, 255, 0.10),
        0 28px 56px rgba(0, 0, 0, 0.48);
    color: #ffffff;
}

body.bara-page .brand-panel.game-title-panel::before {
    background: linear-gradient(90deg, #1267FF, #0099CC, #00B2A9, #0099CC, #1267FF);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.bara-page .brand-panel h1 {
    color: #ffffff;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    text-shadow:
        3px  3px 0 rgba(0, 0, 0, 0.45),
        6px  6px 0 rgba(0, 60, 140, 0.72),
        0   18px 36px rgba(18, 103, 255, 0.48);
}

body.bara-page .back-link,
body.bara-page .game-back-link {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.26);
    border: 2px solid rgba(255, 255, 255, 0.30);
}

body.bara-page .back-link:hover,
body.bara-page .game-back-link:hover {
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
}

body.bara-page .join-panel {
    border-radius: 16px;
    border: 2px solid rgba(18, 103, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

body.bara-page .home-action.create {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #1267FF, #0099CC 52%, #00B2A9);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.bara-page .home-action.join {
    border: 3px solid #0d0d1a;
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #00B2A9, #0099CC 52%, #1267FF);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d1a,
        0 16px 32px rgba(0, 0, 0, 0.35);
}

body.bara-page .home-action:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.bara-page .join-form label,
body.bara-page .join-panel label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.bara-page .join-form input,
body.bara-page .join-panel input {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(18, 103, 255, 0.32);
    border-radius: 10px;
    color: #ffffff;
}

body.bara-page .join-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.bara-page .join-form input:focus,
body.bara-page .join-panel input:focus {
    border-color: #1267FF;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(18, 103, 255, 0.22);
}

body.bara-page .back-button {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.bara-page .primary-action {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 1000;
    background: linear-gradient(135deg, #1267FF, #00B2A9);
    box-shadow: 0 10px 22px rgba(18, 103, 255, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.bara-page .primary-action:hover {
    background: linear-gradient(135deg, #0757d8, #009990);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 103, 255, 0.54);
}

body.bara-page .secondary-action {
    border: 2px solid rgba(18, 103, 255, 0.38);
    border-radius: 12px;
    color: #1267FF;
    background: rgba(18, 103, 255, 0.10);
    transition: transform 120ms ease, background 120ms ease;
}

body.bara-page .secondary-action:hover {
    background: rgba(18, 103, 255, 0.22);
    transform: translateY(-2px);
}

body.bara-page .game-header {
    border-radius: 14px;
    border: 2px solid rgba(18, 103, 255, 0.28);
    background: rgba(5, 16, 31, 0.55);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

body.bara-page .game-header h1 {
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.40);
}

body.bara-page .home-button {
    border: 2px solid rgba(0, 178, 169, 0.50);
    border-radius: 10px;
    color: #7dd3fa;
    background: rgba(0, 0, 0, 0.28);
}

body.bara-page .home-button:hover {
    background: rgba(0, 0, 0, 0.44);
    color: #ffffff;
}

body.bara-page .round-meter div {
    background: #1267FF;
}

/* ── Hide game header (JS still uses mainTitle/subTitle/roundProgress) ── */
body.bara-page .game-header {
    display: none;
}

/* ── Home button topbar inside play panel ── */
body.bara-page .bara-play-topbar {
    display: none;
}

/* Exit button pinned to the top-left of the room */
body.bara-page .play-panel > .home-button {
    justify-self: start;
    align-self: start;
    margin: -4px 0 8px;
    min-height: 0;
    padding: 3px 10px;
    border: 1px solid rgba(248, 113, 113, 0.78);
    border-radius: 999px;
    color: #fee2e2;
    background: rgba(185, 28, 28, 0.64);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
}

body.bara-page .play-panel > .home-button:hover {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.86);
}

/* Typing dots animation on turn label */
body.bara-page #wordEntryTurnLabel::after {
    content: " ";
    animation: baraTypingDots 1.5s step-end infinite;
}

@keyframes baraTypingDots {
    0%,  24% { content: " "; }
    25%, 49% { content: " ."; }
    50%, 74% { content: " .."; }
    75%, 99% { content: " ..."; }
}

/* ── Play panel → dark navy ── */
body.bara-page .play-panel {
    border-radius: 16px;
    border: 2px solid rgba(18, 103, 255, 0.28);
    background: rgba(5, 16, 31, 0.95);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52);
    color: #ffffff;
}

/* ── General text on dark panel ── */
body.bara-page .play-panel h2,
body.bara-page .play-panel p:not(.form-error),
body.bara-page .play-panel .eyebrow,
body.bara-page .play-panel label {
    color: rgba(255, 255, 255, 0.90);
}

body.bara-page .play-panel .lead,
body.bara-page .play-panel .hint {
    color: rgba(255, 255, 255, 0.65);
}

body.bara-page .play-panel .turn-label {
    color: rgba(0, 178, 169, 0.90);
    font-weight: 900;
}

/* ── Hide round number eyebrow (mini-pill replaces it) ── */
body.bara-page .round-line .eyebrow {
    display: none;
}

/* ── Hide word entry count ── */
body.bara-page #wordEntryStatusLabel {
    display: none;
}

/* ── Info bar — question-block styled as status strip ── */
body.bara-page .question-block {
    border-radius: 14px;
    border: 1px solid rgba(0, 178, 169, 0.35);
    background: linear-gradient(135deg, rgba(18, 103, 255, 0.18), rgba(0, 178, 169, 0.18));
    padding: 12px 16px;
    margin-bottom: 12px;
}

body.bara-page .question-block h2 {
    color: #ffffff;
    font-size: clamp(0.92rem, 2.8vw, 1.15rem);
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* ── Room code on dark ── */
body.bara-page .big-code {
    color: #ffffff;
    background: rgba(18, 103, 255, 0.18);
    border-radius: 12px;
    padding: 6px 18px;
}

/* ── Host controls select on dark ── */
body.bara-page .play-panel select {
    background: rgba(18, 103, 255, 0.15);
    border: 2px solid rgba(18, 103, 255, 0.35);
    border-radius: 10px;
    color: #ffffff;
}

body.bara-page .play-panel select option {
    background: #082040;
    color: #ffffff;
}

/* ── Section titles on dark ── */
body.bara-page .play-panel .section-title h2 {
    color: #ffffff;
}

body.bara-page .play-panel .section-title span {
    color: rgba(0, 178, 169, 0.85);
}

/* ── Vote prompt on dark ── */
body.bara-page .vote-prompt {
    color: #7dd3fa;
}

/* ── Category (vote) buttons on dark ── */
body.bara-page .play-panel .category-button {
    background: rgba(18, 103, 255, 0.12);
    border-color: rgba(18, 103, 255, 0.35);
    color: rgba(255, 255, 255, 0.88);
}

/* ── Players round title ── */
body.bara-page .players-round-title {
    color: rgba(0, 178, 169, 0.90) !important;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
}

/* ── System answer cards on dark ── */
body.bara-page .system-answer {
    background: rgba(18, 103, 255, 0.12) !important;
    border-color: rgba(18, 103, 255, 0.38) !important;
}

body.bara-page .system-answer span {
    color: rgba(0, 178, 169, 0.88);
}

body.bara-page .system-answer strong {
    color: #ffffff;
}

body.bara-page .outsider-secret-card {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(220, 38, 38, 0.48) !important;
}

body.bara-page .outsider-secret-card span {
    color: rgba(252, 165, 165, 0.90);
}

/* ── Bara words stage on dark ── */
body.bara-page .bara-words-stage {
    border-color: rgba(18, 103, 255, 0.22);
    background: rgba(0, 0, 0, 0.22);
}

body.bara-page .bara-words-stage .section-title h2 {
    color: rgba(0, 178, 169, 0.90);
    font-size: clamp(0.85rem, 2.2vw, 1rem);
}

/* ── Word cards — smaller + colored accents ── */
body.bara-page .bara-word-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(18, 103, 255, 0.28);
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 12px;
    font-size: 0.88rem;
}

body.bara-page .bara-word-card:nth-child(5n+1) { border-right: 3px solid #1267FF; }
body.bara-page .bara-word-card:nth-child(5n+2) { border-right: 3px solid #00B2A9; }
body.bara-page .bara-word-card:nth-child(5n+3) { border-right: 3px solid #0099CC; }
body.bara-page .bara-word-card:nth-child(5n+4) { border-right: 3px solid #60a5fa; }
body.bara-page .bara-word-card:nth-child(5n+5) { border-right: 3px solid #818cf8; }

/* ── Player badges — smaller + rotating colors ── */
body.bara-page .bara-player-grid .waiting-player {
    padding: 5px 10px;
    font-size: 0.80rem;
    min-height: 0 !important;
    border-width: 1.5px;
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+1) {
    border-color: rgba(18, 103, 255, 0.70);
    background: rgba(18, 103, 255, 0.18);
    color: #93c5fd;
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+2) {
    border-color: rgba(0, 178, 169, 0.70);
    background: rgba(0, 178, 169, 0.18);
    color: #5eead4;
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+3) {
    border-color: rgba(0, 153, 204, 0.70);
    background: rgba(0, 153, 204, 0.18);
    color: #a5f3fc;
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+4) {
    border-color: rgba(129, 140, 248, 0.70);
    background: rgba(129, 140, 248, 0.18);
    color: #c7d2fe;
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+5) {
    border-color: rgba(56, 189, 248, 0.70);
    background: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
}

/* ── Round results on dark ── */
body.bara-page .result-row,
body.bara-page .score-row,
body.bara-page .ranking-card {
    color: rgba(255, 255, 255, 0.90);
}

/* ── Ranking showcase on dark ── */
body.bara-page .ranking-showcase {
    background: rgba(5, 16, 31, 0.80);
    border-color: rgba(18, 103, 255, 0.30);
}

body.bara-page .ranking-showcase .system-answer {
    color: #ffffff;
}

body.bara-page .countdown-panel {
    background:
        radial-gradient(circle at 50% 44%, rgba(18, 103, 255, 0.32), transparent 16rem),
        linear-gradient(135deg, #05101f 0%, #1267FF 52%, #00B2A9 100%);
}

body.bara-page .countdown-panel div {
    border-color: rgba(255, 255, 255, 0.90);
    color: #ffffff;
    background: rgba(5, 16, 31, 0.40);
    will-change: transform;
}

body.bara-page .system-answer {
    border-radius: 12px;
    border-color: rgba(18, 103, 255, 0.26);
    background:
        linear-gradient(90deg, rgba(18, 103, 255, 0.07), rgba(0, 178, 169, 0.05)),
        #ffffff;
}

body.bara-page .outsider-secret-card {
    border-color: rgba(220, 38, 38, 0.38) !important;
    background:
        linear-gradient(135deg, rgba(220, 38, 38, 0.07), rgba(18, 103, 255, 0.04)),
        #ffffff !important;
}

body.bara-page .compact-secret-card {
    border-color: rgba(18, 103, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(18, 103, 255, 0.06), rgba(0, 178, 169, 0.04)),
        #ffffff;
}

body.bara-page .mini-pill {
    border-radius: 999px;
    background: linear-gradient(135deg, #1267FF, #00B2A9);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(18, 103, 255, 0.34);
}

body.bara-page .vote-prompt {
    color: #0369a1;
}

body.bara-page .bara-words-stage {
    border-radius: 14px;
    border: 2px solid rgba(18, 103, 255, 0.14);
    background: rgba(18, 103, 255, 0.03);
    padding: 12px;
}

body.bara-page .bara-word-card {
    border: 2px solid rgba(18, 103, 255, 0.20);
    border-radius: 12px;
    background: rgba(18, 103, 255, 0.05);
    box-shadow: 0 3px 10px rgba(18, 103, 255, 0.08);
}

body.bara-page .category-button:hover:not(:disabled),
body.bara-page .category-button.selected {
    color: #ffffff;
    border-color: #1267FF;
    background: linear-gradient(135deg, #1267FF, #00B2A9);
    box-shadow: 0 12px 24px rgba(18, 103, 255, 0.26);
}

body.bara-page .result-modal {
    background: rgba(5, 16, 31, 0.80);
}

body.bara-page .result-modal-card {
    border: 3px solid rgba(0, 178, 169, 0.62);
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 10rem),
        linear-gradient(135deg, #1267FF, #0099CC 52%, #00B2A9);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

body.bara-page .word-entry-modal {
    background: rgba(5, 16, 31, 0.78);
}

body.bara-page .word-entry-modal-card {
    border: 2px solid rgba(18, 103, 255, 0.38);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.50);
}

body.bara-page .word-entry-modal-card input {
    border: 2px solid rgba(18, 103, 255, 0.28);
    border-radius: 10px;
}

body.bara-page .word-entry-modal-card input:focus {
    border-color: #1267FF;
    box-shadow: 0 0 0 4px rgba(18, 103, 255, 0.18);
}

body.bara-page .waiting-player {
    border: 2px solid rgba(18, 103, 255, 0.30);
    border-radius: 12px;
    background: rgba(18, 103, 255, 0.08);
    color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(18, 103, 255, 0.13);
}

body.bara-page .lobby-avatar-panel {
    width: min(100%, 520px);
    border-color: rgba(18, 103, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(18, 103, 255, 0.08), rgba(0, 178, 169, 0.06)),
        rgba(255, 255, 255, 0.92);
}

body.bara-page .lobby-avatar-panel > strong {
    color: #1267FF;
}

body.bara-page .lobby-avatar-picker {
    justify-content: center;
}

body.bara-page .podium-modal {
    background: rgba(5, 16, 31, 0.75);
}

body.bara-page .podium-card {
    border: 3px solid rgba(0, 178, 169, 0.62);
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 16%, rgba(18, 103, 255, 0.40), transparent 10rem),
        linear-gradient(135deg, #1267FF, #0099CC 56%, #00B2A9);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

body.bara-page .podium-place {
    background: rgba(0, 0, 0, 0.20);
    border-radius: 12px;
}

body.bara-page .ranking-showcase {
    border-color: rgba(18, 103, 255, 0.36);
    background:
        radial-gradient(circle at 18% 8%, rgba(18, 103, 255, 0.14), transparent 14rem),
        linear-gradient(135deg, rgba(18, 103, 255, 0.05), rgba(0, 178, 169, 0.06)),
        #ffffff;
}

body.bara-page .result-row,
body.bara-page .score-row {
    border: 2px solid rgba(18, 103, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(18, 103, 255, 0.04), rgba(0, 178, 169, 0.05));
    box-shadow: 0 3px 10px rgba(18, 103, 255, 0.08);
    padding: 13px 14px;
}

body.bara-page .ranking-card {
    border: 2px solid rgba(18, 103, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(18, 103, 255, 0.04), rgba(0, 178, 169, 0.05));
    box-shadow: 0 4px 14px rgba(18, 103, 255, 0.09);
    padding: 13px 14px;
}

body.bara-page .rank-1 .ranking-card {
    border-color: rgba(255, 212, 71, 0.55);
    background: linear-gradient(135deg, rgba(255, 212, 71, 0.12), rgba(18, 103, 255, 0.08));
    box-shadow: 0 6px 18px rgba(255, 212, 71, 0.18);
}

body.bara-page .rank-2 .ranking-card {
    border-color: rgba(18, 103, 255, 0.35);
    background: linear-gradient(135deg, rgba(18, 103, 255, 0.09), rgba(0, 178, 169, 0.06));
}

body.bara-page .site-footer {
    border-color: rgba(18, 103, 255, 0.22);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.30);
}

body.bara-page .site-footer a {
    background: rgba(18, 103, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

body.bara-page .site-footer a:hover {
    background: rgba(18, 103, 255, 0.28);
    color: #ffffff;
}

/* ── Bara: System Answer Cards — compact grey ── */
body.bara-page #wordCard,
body.bara-page #wordEntryWordCard {
    background: #f0f2f5 !important;
    border: 2px solid #d1d5db !important;
    color: #374151;
    padding: 8px 14px !important;
    gap: 4px 8px;
    font-size: 0.86rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

body.bara-page #wordCard span,
body.bara-page #wordEntryWordCard span {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ── Orange value boxes (category & word) ── */
body.bara-page #playerCategoryLabel,
body.bara-page #wordLabel,
body.bara-page #wordEntryCategoryLabel,
body.bara-page #wordEntryWordLabel {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35, #FFD447);
    color: #0d0d1a;
    border-radius: 8px;
    padding: 2px 12px;
    font-weight: 900;
    font-size: 0.90rem;
    text-align: center;
    max-width: 100%;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.35);
}

/* ── Outsider card: solid red ── */
body.bara-page #outsiderCard,
body.bara-page #wordEntryOutsiderCard {
    border: none !important;
    padding: 8px 14px !important;
    font-size: 0.86rem;
    color: #ffffff;
    background: #dc2626 !important;
    background-image: none !important;
    animation: none;
}

/* "انت برا السالفة" — bigger */
body.bara-page #outsiderCard span,
body.bara-page #wordEntryOutsiderCard span {
    color: #000000;
    font-weight: 900;
    font-size: 1.15rem;
}

/* "في كلمة ظاهرة للجميع ما عداك" — black */
body.bara-page .outsider-warning {
    color: #000000 !important;
    font-size: 0.75rem;
    font-weight: 700;
}

/* فئة الكلمة — smaller, one line */
body.bara-page #categoryLabel,
body.bara-page #wordEntryOutsiderCategoryLabel {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Player badges: full solid gradient ── */
body.bara-page .bara-player-grid .waiting-player:nth-child(5n+1) {
    border-color: #1267FF;
    background: linear-gradient(135deg, #1267FF, #0099CC);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+2) {
    border-color: #00B2A9;
    background: linear-gradient(135deg, #0099CC, #00B2A9);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+3) {
    border-color: #7158FF;
    background: linear-gradient(135deg, #7158FF, #1267FF);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+4) {
    border-color: #FF6B35;
    background: linear-gradient(135deg, #FF6B35, #FFD447);
    color: #0d0d1a;
    text-shadow: none;
}

body.bara-page .bara-player-grid .waiting-player:nth-child(5n+5) {
    border-color: #16a34a;
    background: linear-gradient(135deg, #16a34a, #00B2A9);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
}

/* ── Turn Alert (word entry modal) ── */
body.bara-page .bara-turn-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.40);
    animation: baraTurnPulse 1s ease-in-out infinite;
    margin-bottom: 8px;
}

@keyframes baraTurnPulse {
    0%, 100% { transform: scale(1);     box-shadow: 0 6px 18px rgba(220, 38, 38, 0.40); }
    50%       { transform: scale(1.04); box-shadow: 0 10px 26px rgba(220, 38, 38, 0.65); }
}

/* ── Modal secret line ── */
body.bara-page .modal-secret-line {
    background: linear-gradient(135deg, #FF6B35, #FFD447);
    color: #0d0d1a;
    border-radius: 10px;
    padding: 6px 16px;
    font-weight: 900;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
    margin: 4px 0;
}

/* ── Word board header: avatar beside name ── */
body.bara-page .bara-word-card-header strong {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* ── Hide status chips (يكتب الآن / بانتظار الدور / يكتب كلمة جديدة) ── */
body.bara-page .empty-word-chip {
    display: none !important;
}

/* ── Word board cards: distinct color per player ── */
body.bara-page .bara-word-card.player-color-1 {
    background: linear-gradient(135deg, #1267FF, #0099CC) !important;
    border-color: #1267FF;
    color: #ffffff;
}

body.bara-page .bara-word-card.player-color-2 {
    background: linear-gradient(135deg, #0099CC, #00B2A9) !important;
    border-color: #00B2A9;
    color: #ffffff;
}

body.bara-page .bara-word-card.player-color-3 {
    background: linear-gradient(135deg, #FFD447, #FF9F43) !important;
    border-color: #FFD447;
    color: #0d0d1a;
}

body.bara-page .bara-word-card.player-color-4 {
    background: linear-gradient(135deg, #16a34a, #00B2A9) !important;
    border-color: #16a34a;
    color: #ffffff;
}

body.bara-page .bara-word-card.player-color-5 {
    background: linear-gradient(135deg, #7158FF, #1267FF) !important;
    border-color: #7158FF;
    color: #ffffff;
}

body.bara-page .bara-word-card.player-color-6 {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    border-color: #dc2626;
    color: #ffffff;
}

body.bara-page .bara-word-card.player-color-3 .word-chip {
    color: #0d0d1a;
}

body.bara-page .bara-word-card .word-chip {
    color: #10182c;
    background: rgba(255, 255, 255, 0.90);
}

body.bara-page #wordEntryPanel > .question-block {
    display: none;
}

body.bara-page #wordEntryStatusLabel {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1267FF, #00B2A9);
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

body.bara-page .bara-words-stage .section-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.bara-page .bara-words-stage .section-title h2 {
    flex: 0 1 auto;
}

body.bara-page .bara-words-stage #wordEntryStatusLabel {
    flex: 0 0 auto;
    margin-inline-start: auto;
}

body.bara-page #wordEntryPanel.player-word-entry .compact-secret-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "categoryLabel wordLabel"
        "categoryValue wordValue";
    align-items: stretch;
    min-height: clamp(126px, 18vh, 176px);
    padding: clamp(12px, 2.6vw, 20px);
    gap: 8px 12px;
}

body.bara-page #wordEntryPanel.player-word-entry .compact-secret-card span {
    align-self: end;
    font-size: clamp(0.9rem, 2.1vw, 1.12rem);
    line-height: 1;
    text-align: center;
}

body.bara-page #wordEntryPanel.player-word-entry .compact-secret-card span:nth-of-type(1) {
    grid-area: categoryLabel;
}

body.bara-page #wordEntryPanel.player-word-entry .compact-secret-card span:nth-of-type(2) {
    grid-area: wordLabel;
}

body.bara-page #wordEntryPanel.player-word-entry #wordEntryCategoryLabel {
    grid-area: categoryValue;
}

body.bara-page #wordEntryPanel.player-word-entry #wordEntryWordLabel {
    grid-area: wordValue;
}

body.bara-page #wordEntryPanel.player-word-entry .compact-secret-card strong {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: clamp(56px, 9vw, 92px);
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 2px rgba(18, 103, 255, 0.12);
    font-size: clamp(1.45rem, 5vw, 3.4rem);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

body.bara-page #wordEntryPanel.outsider-word-entry .outsider-secret-card {
    margin-top: 0;
    margin-bottom: 12px;
}

body.bara-page #wordEntryPanel.outsider-word-entry .outsider-secret-card #wordEntryOutsiderCategoryLabel {
    display: inline-grid;
    place-items: center;
    width: min(100%, 520px);
    margin: 8px auto 0;
    padding: 12px 16px;
    border: 2px solid rgba(252, 165, 165, 0.58);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.24);
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1.1;
}

body.bara-page #wordEntryPanel.outsider-word-entry .bara-words-stage {
    margin-top: 10px;
}

body.bara-page .bara-guess-words {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

body.bara-page .bara-guess-words h3 {
    margin: 0;
    color: rgba(0, 178, 169, 0.95);
    font-size: 1rem;
    font-weight: 900;
}

body.bara-page .typing-dots {
    color: currentColor;
}

/* ========================================
   توب 10 — GRAFFITI BALLOON THEME
   Palette: Violet #7158FF → Blue #1267FF → Tiffany #00B2A9
   Only applies to body.top10-page
   ======================================== */

/* ── Page Background ── */
body.top10-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
    background:
        radial-gradient(circle at 8%  10%, rgba(113,  88, 255, 0.20), transparent 22rem),
        radial-gradient(circle at 92%  6%, rgba(18, 103, 255, 0.18), transparent 20rem),
        radial-gradient(circle at 50% 94%, rgba(0,  178, 169, 0.16), transparent 24rem),
        radial-gradient(circle at 20% 65%, rgba(113,  88, 255, 0.12), transparent 18rem),
        radial-gradient(circle at 80% 58%, rgba(0,  178, 169, 0.12), transparent 16rem),
        linear-gradient(135deg, #0e0e1f 0%, #1a0f3c 48%, #0b1d3a 100%);
    background-attachment: fixed;
}

/* ── Brand Panel (title header) ── */
body.top10-page .top10-brand {
    min-height: 150px;
    padding-bottom: clamp(10px, 2vw, 18px);
    border-radius: 20px;
    border: 4px solid rgba(113, 88, 255, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(113,  88, 255, 0.30), transparent 16rem),
        radial-gradient(circle at 88% 78%, rgba(0,  178, 169, 0.28), transparent 14rem),
        radial-gradient(circle at 50% 50%, rgba(18, 103, 255, 0.14), transparent 20rem),
        linear-gradient(135deg, #12112a, #1e1048 52%, #0e2248);
    box-shadow:
        0 0 0 7px rgba(113, 88, 255, 0.10),
        0 32px 64px rgba(0, 0, 0, 0.55);
}

body.top10-page .top10-brand::before {
    background: linear-gradient(90deg, #7158FF, #1267FF, #00B2A9, #FFD447, #7158FF);
    height: 6px;
    border-radius: 20px 20px 0 0;
}

body.top10-page .top10-brand h1 {
    color: #FFD447;
    font-family: 'Cairo', 'Arial Black', Arial, sans-serif;
    font-size: clamp(4rem, 16vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    transform: rotate(-2deg) skew(-4deg);
    text-shadow:
        4px  4px 0 #7158FF,
        8px  8px 0 #1267FF,
       -2px -2px 0 rgba(255, 255, 255, 0.25),
        0   20px 40px rgba(255, 212, 71, 0.45);
}

body.top10-page .game-back-link {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.80);
    border-radius: 10px;
    padding: 4px 14px;
    font-weight: 900;
    text-decoration: none;
    transition: background 120ms ease;
}

body.top10-page .game-back-link:hover {
    background: rgba(220, 38, 38, 1);
}

/* ── Join Panel ── */
body.top10-page .join-panel {
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

body.top10-page .home-action {
    border-radius: 14px;
    border: 3px solid #0d0d1a;
    font-weight: 900;
    box-shadow: 4px 5px 0 #0d0d1a;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.top10-page .home-action.create {
    background: linear-gradient(135deg, #7158FF, #1267FF);
    color: #ffffff;
}

body.top10-page .home-action.join {
    background: linear-gradient(135deg, #1267FF, #00B2A9);
    color: #ffffff;
}

body.top10-page .home-action:hover {
    transform: translate(-2px, -3px);
    box-shadow: 6px 8px 0 #0d0d1a;
}

body.top10-page .join-form {
    background: transparent;
}

body.top10-page .join-form label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

body.top10-page .join-form input {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
}

body.top10-page .join-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.top10-page .join-form input:focus {
    border-color: #7158FF;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(113, 88, 255, 0.22);
}

body.top10-page .primary-action {
    border-radius: 12px;
    border: 3px solid #0d0d1a;
    color: #0d0d1a;
    font-weight: 1000;
    background: linear-gradient(135deg, #7158FF, #FFD447);
    box-shadow: 0 8px 20px rgba(113, 88, 255, 0.40);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.top10-page .primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(113, 88, 255, 0.55);
}

body.top10-page .back-button {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.10);
    font-weight: 900;
}

/* ── Game Header (انتظار اللاعبين + home button) ── */
body.top10-page .game-header {
    border-radius: 14px;
    border: 2px solid rgba(113, 88, 255, 0.38);
    background:
        radial-gradient(circle at 10% 50%, rgba(113, 88, 255, 0.20), transparent 14rem),
        linear-gradient(135deg, rgba(18, 103, 255, 0.90), rgba(113, 88, 255, 0.85));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
    color: #ffffff;
}

body.top10-page .game-header h1 {
    color: #ffffff;
    font-family: 'Cairo', Arial, sans-serif;
}

body.top10-page .game-header .lead {
    color: rgba(255, 255, 255, 0.80);
}

body.top10-page .home-button {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.40);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 900;
    transition: background 120ms ease;
}

body.top10-page .home-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* ── Play Panel ── */
body.top10-page .top10-panel {
    border-radius: 18px;
    border: 2px solid rgba(113, 88, 255, 0.22);
    background:
        radial-gradient(circle at 80% 10%, rgba(113, 88, 255, 0.12), transparent 18rem),
        linear-gradient(180deg, rgba(14, 14, 31, 0.97), rgba(11, 29, 58, 0.97));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.50);
}

/* ── Waiting Room ── */
body.top10-page .turn-label {
    color: rgba(255, 255, 255, 0.80) !important;
    text-shadow: none !important;
}

body.top10-page .big-code {
    color: #073b95;
    background: rgba(255, 255, 255, 0.96);
    border: 3px dashed #1267FF;
    text-shadow: none;
}

body.top10-page .room-code-actions {
    border: 3px dashed #1267FF;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
}

body.top10-page .room-icon-button {
    border-color: rgba(113, 88, 255, 0.50);
    background: rgba(113, 88, 255, 0.14);
}

body.top10-page .room-icon-button:hover {
    background: rgba(113, 88, 255, 0.28);
}

body.top10-page .top10-host-controls label {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: none !important;
}

body.top10-page .top10-host-controls select {
    border-radius: 10px;
    border: 2px solid rgba(113, 88, 255, 0.40);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 700;
}

body.top10-page .hint {
    color: rgba(255, 255, 255, 0.65) !important;
    text-shadow: none !important;
}

body.top10-page .waiting-players {
    color: #ffffff !important;
}

body.top10-page .waiting-player {
    border: 2px solid rgba(113, 88, 255, 0.38);
    border-radius: 12px;
    background: rgba(113, 88, 255, 0.12);
    color: #ffffff;
}

/* ── Question Bar ── */
body.top10-page .top10-question {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    background:
        radial-gradient(circle at 10% 50%, rgba(113, 88, 255, 0.28), transparent 12rem),
        linear-gradient(135deg, #1a0f3c, #1267FF 60%, #00B2A9);
    box-shadow: 5px 6px 0 #0d0d1a;
    color: #ffffff;
}

body.top10-page .top10-question h2 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
}

body.top10-page .top10-back-button {
    border: 3px solid #0d0d1a;
    border-radius: 10px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    box-shadow: 3px 4px 0 #0d0d1a;
}

body.top10-page .top10-back-button:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* ── Turn Bar ── */
body.top10-page .top10-turn-bar {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    background:
        radial-gradient(circle at 5% 50%, rgba(113, 88, 255, 0.18), transparent 10rem),
        linear-gradient(135deg, rgba(14, 14, 31, 0.96), rgba(18, 103, 255, 0.20)),
        #0e0e1f;
    box-shadow:
        0 0 0 3px rgba(113, 88, 255, 0.20),
        5px 6px 0 #0d0d1a;
    color: #ffffff;
}

body.top10-page .top10-turn-bar p {
    color: #ffffff;
}

body.top10-page .top10-turn-bar.is-my-turn {
    background:
        radial-gradient(circle at 5% 50%, rgba(0, 178, 169, 0.30), transparent 12rem),
        linear-gradient(135deg, #0e2248, #00B2A9 80%);
    border-color: #00B2A9;
    box-shadow:
        0 0 0 3px rgba(0, 178, 169, 0.30),
        5px 6px 0 #0d0d1a;
}

body.top10-page .top10-turn-feedback.correct {
    color: #5eead4;
}

body.top10-page .top10-turn-feedback.wrong {
    color: #fca5a5;
}

body.top10-page .top10-timer-box {
    border-color: #0d0d1a;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 2px 3px 0 #0d0d1a;
}

/* ── Slot Items ── */
body.top10-page .top10-slot {
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

body.top10-page .top10-slot span {
    background: linear-gradient(135deg, #7158FF, #1267FF);
    border-radius: 8px;
    color: #ffffff;
}

body.top10-page .top10-slot strong {
    color: rgba(255, 255, 255, 0.90);
}

body.top10-page .top10-slot em {
    color: rgba(255, 255, 255, 0.55);
}

body.top10-page .top10-slot.revealed {
    border-color: #00B2A9;
    background: rgba(0, 178, 169, 0.14);
}

body.top10-page .top10-slot.revealed strong {
    color: #ffffff;
}

/* ── Player Side Panels ── */
body.top10-page .top10-player {
    border: 2px solid rgba(113, 88, 255, 0.30);
    border-radius: 10px;
    background: rgba(113, 88, 255, 0.10);
    color: #ffffff;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.30);
}

body.top10-page .top10-player strong {
    color: #ffffff;
}

body.top10-page .top10-player span,
body.top10-page .top10-player em {
    color: rgba(255, 255, 255, 0.65);
}

body.top10-page .top10-player.active {
    border-color: #FFD447;
    background: rgba(255, 212, 71, 0.14);
    box-shadow: 3px 4px 0 rgba(255, 212, 71, 0.35);
}

body.top10-page .top10-player.active strong {
    color: #FFD447;
}

body.top10-page .top10-player.out {
    opacity: 0.45;
}

body.top10-page .top10-player .top10-attempts .attempts-3 {
    color: #4ade80;
}

body.top10-page .top10-player .top10-attempts .attempts-2 {
    color: #fb923c;
}

body.top10-page .top10-player .top10-attempts .attempts-1 {
    color: #f87171;
}

body.top10-page .top10-player .top10-attempts .attempts-0 {
    color: rgba(255, 255, 255, 0.40);
}

/* ── Events Log ── */
body.top10-page .top10-events {
    border: 2px solid rgba(113, 88, 255, 0.22);
    border-radius: 10px;
    background: rgba(14, 14, 31, 0.85);
    box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.30);
}

body.top10-page .top10-events p {
    color: rgba(255, 255, 255, 0.88);
}

body.top10-page .top10-events .correct {
    color: #5eead4;
}

body.top10-page .top10-events .wrong {
    color: #fca5a5;
}

/* ── Answer Form ── */
body.top10-page .top10-answer-form {
    border: 3px solid #0d0d1a;
    border-radius: 12px;
    background:
        linear-gradient(135deg, #1a0f3c, #7158FF 50%, #1267FF);
    box-shadow:
        0 0 0 3px rgba(113, 88, 255, 0.30),
        5px 6px 0 #0d0d1a;
}

body.top10-page .top10-answer-form input {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    background: #ffffff;
    color: #0d0d1a;
}

body.top10-page .top10-answer-form input::placeholder {
    color: rgba(0, 0, 0, 0.40);
}

body.top10-page .top10-answer-form input:focus {
    border-color: #FFD447;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 212, 71, 0.35);
}

body.top10-page .top10-answer-form button {
    border-radius: 8px;
    border: 2px solid #0d0d1a;
    background: linear-gradient(135deg, #FFD447, #FF6B35);
    color: #0d0d1a;
    font-weight: 1000;
    box-shadow: 2px 3px 0 #0d0d1a;
}

body.top10-page .top10-answer-form button:hover {
    background: linear-gradient(135deg, #ffcc00, #ff5010);
}

/* ── Finished / Podium Panel ── */
body.top10-page #finishedPanel {
    color: #ffffff;
}

body.top10-page #finishedPanel .eyebrow {
    color: rgba(255, 255, 255, 0.70);
}

body.top10-page #finishedPanel h2 {
    color: #FFD447;
    text-shadow: 3px 3px 0 #7158FF;
}

body.top10-page .podium-list .podium-place {
    border: 1px solid rgba(113, 88, 255, 0.40);
    border-radius: 8px;
    background: rgba(113, 88, 255, 0.10);
    color: #ffffff;
}

/* ── End-reveal: unanswered slots (faded but visible) ── */
body.top10-page .top10-game.end-reveal .top10-slot:not(.revealed) {
    border-color: rgba(113, 88, 255, 0.45);
    background: rgba(113, 88, 255, 0.18);
    opacity: 0.72;
}

body.top10-page .top10-game.end-reveal .top10-slot:not(.revealed) strong {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

/* ── Secondary action (back-to-game button) ── */
body.top10-page .secondary-action {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.10);
    margin-top: 10px;
    transition: background 120ms ease;
}

body.top10-page .secondary-action:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* ── Toast ── */
body.top10-page .toast {
    background: linear-gradient(135deg, #7158FF, #1267FF);
    color: #ffffff;
    border-radius: 12px;
}

/* ── Responsive ── */
@media (max-width: 560px) {
    body.top10-page .top10-brand h1 {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }
}


/* ═══════════════════════════════════════════════════════
   ولا كلمة  —  NO-WORD  —  Teal / Green / Yellow
   ═══════════════════════════════════════════════════════ */

body.no-word-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
    background:
        radial-gradient(circle at  8% 10%, rgba(  0, 178, 169, 0.22), transparent 22rem),
        radial-gradient(circle at 92%  8%, rgba( 22, 163,  74, 0.22), transparent 20rem),
        radial-gradient(circle at 50% 90%, rgba(255, 212,  71, 0.18), transparent 22rem),
        linear-gradient(135deg, #041a0e 0%, #062616 48%, #0d1a06 100%);
    background-attachment: fixed;
}

/* ── Brand / Title Panel (setup view) ── */
body.no-word-page .brand-panel.game-title-panel.no-word-brand {
    border-radius: 18px;
    border: 3px solid rgba(0, 178, 169, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 86% 72%, rgba(255, 212, 71, 0.28), transparent 12rem),
        linear-gradient(135deg, #00B2A9 0%, #16a34a 48%, #FFD447 100%);
    box-shadow:
        0 0 0 6px rgba(0, 178, 169, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.48);
    color: #0d1a06;
}

body.no-word-page .brand-panel.game-title-panel.no-word-brand::before {
    background: linear-gradient(90deg, #00B2A9, #16a34a, #FFD447, #16a34a, #00B2A9);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.no-word-page .brand-panel h1 {
    color: #0d1a06;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    text-shadow:
        3px  3px 0 rgba(255, 255, 255, 0.30),
        6px  6px 0 rgba(0, 178, 169, 0.55),
        0   16px 32px rgba(22, 163, 74, 0.45);
}

body.no-word-page .back-link,
body.no-word-page .game-back-link {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.26);
    border: 2px solid rgba(255, 255, 255, 0.30);
}

body.no-word-page .back-link:hover,
body.no-word-page .game-back-link:hover {
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
}

/* ── Setup Panel (team name form) ── */
body.no-word-page .no-word-start-panel {
    border-radius: 16px;
    border: 2px solid rgba(0, 178, 169, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

body.no-word-page .no-word-start-form label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.no-word-page .no-word-start-form input {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(0, 178, 169, 0.35);
    border-radius: 10px;
    color: #ffffff;
}

body.no-word-page .no-word-start-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.no-word-page .no-word-start-form input:focus {
    border-color: #00B2A9;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(0, 178, 169, 0.22);
}

/* ── Primary / Secondary Actions ── */
body.no-word-page .primary-action {
    border: 3px solid #0d1a06;
    border-radius: 12px;
    color: #0d1a06;
    font-weight: 1000;
    background: linear-gradient(135deg, #00B2A9, #16a34a 52%, #FFD447);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.no-word-page .primary-action:hover {
    filter: brightness(1.08) saturate(1.1);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.54);
}

body.no-word-page .secondary-action {
    border: 2px solid rgba(0, 178, 169, 0.45);
    border-radius: 10px;
    color: #00B2A9;
    background: rgba(0, 178, 169, 0.10);
    font-weight: 900;
}

body.no-word-page .secondary-action:hover {
    background: rgba(0, 178, 169, 0.22);
    color: #ffffff;
}

/* ── Game Toolbar ── */
body.no-word-page .no-word-game-toolbar {
    border-radius: 14px;
    border: 2px solid rgba(0, 178, 169, 0.30);
    gap: 4px 10px;
    margin-bottom: 8px;
    background:
        radial-gradient(circle at 10% 50%, rgba(0, 178, 169, 0.20), transparent 14rem),
        linear-gradient(135deg, rgba(4, 26, 14, 0.92), rgba(6, 38, 22, 0.92));
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

body.no-word-page #subTitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.1;
}

body.no-word-page .no-word-top-meta {
    font-size: 0.68rem;
    gap: 5px;
}

body.no-word-page .no-word-top-meta span {
    color: #14532d;
    font-weight: 700;
    padding: 3px 8px;
    line-height: 1.1;
}

body.no-word-page .no-word-top-meta strong {
    color: #000000;
    font-weight: 900;
}

/* ── Exit Button ── */
body.no-word-page .no-word-exit-button {
    border: 2px solid rgba(0, 178, 169, 0.50);
    border-radius: 10px;
    color: #5eead4;
    background: rgba(0, 0, 0, 0.28);
    font-weight: 900;
    transition: background 120ms ease;
}

body.no-word-page .no-word-exit-button:hover {
    background: rgba(0, 0, 0, 0.44);
    color: #ffffff;
}

/* ── Round Meter ── */
body.no-word-page .round-meter div {
    background: linear-gradient(90deg, #00B2A9, #16a34a, #FFD447);
}

/* ── Scoreboard ── */
body.no-word-page .no-word-scoreboard {
    gap: 12px;
}

body.no-word-page .no-word-team-card {
    border: 3px solid #9ca3af;
    border-radius: 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #00B2A9, #16a34a 52%, #FFD447);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.70),
        5px 7px 0 #6b7280,
        0 16px 32px rgba(0, 0, 0, 0.28);
    color: #0d1a06;
    font-weight: 900;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.no-word-page .no-word-team-card:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.no-word-page .no-word-team-card.selected,
body.no-word-page .no-word-team-card.active {
    border-color: #dc2626;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.70),
        5px 7px 0 #991b1b,
        0 0 18px 4px rgba(220, 38, 38, 0.45),
        0 16px 32px rgba(0, 0, 0, 0.28);
    animation: noWordTeamGlow 1.8s ease-in-out infinite;
}

@keyframes noWordTeamGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,.70), 5px 7px 0 #991b1b, 0 0 14px 3px rgba(220,38,38,.38), 0 16px 32px rgba(0,0,0,.28); }
    50%       { box-shadow: 0 0 0 3px rgba(255,255,255,.70), 5px 7px 0 #991b1b, 0 0 26px 8px rgba(220,38,38,.62), 0 16px 32px rgba(0,0,0,.28); }
}

body.no-word-page .no-word-team-card strong {
    color: #0d1a06;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
}

body.no-word-page .no-word-team-card span {
    color: #0d1a06;
    font-weight: 1000;
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1;
}

/* ── Control Panel ── */
body.no-word-page .no-word-control {
    border-radius: 16px;
    border: 2px solid rgba(0, 178, 169, 0.22);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

body.no-word-page .no-word-choice-title {
    color: #064e3b;
    font-weight: 900;
    font-size: 0.80rem;
}

/* ── Category / Points Buttons inside control ── */
body.no-word-page .no-word-category-grid button,
body.no-word-page .no-word-points-grid button {
    border: 2px solid rgba(0, 178, 169, 0.30);
    border-radius: 10px;
    background: rgba(0, 178, 169, 0.07);
    color: #064e3b;
    font-weight: 900;
    transition: background 120ms ease, border-color 120ms ease;
}

body.no-word-page .no-word-category-grid button:hover,
body.no-word-page .no-word-points-grid button:hover {
    border-color: #00B2A9;
    background: rgba(0, 178, 169, 0.18);
    color: #022c22;
}

body.no-word-page .no-word-category-grid button.selected,
body.no-word-page .no-word-points-grid button.selected {
    color: #0d1a06;
    border-color: #00B2A9;
    background: linear-gradient(135deg, #00B2A9, #16a34a 60%, #FFD447);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.30);
}

body.no-word-page .no-word-round-line {
    color: #374151;
    font-size: 0.85rem;
}

body.no-word-page .no-word-round-line strong {
    color: #16a34a;
    font-weight: 900;
}

/* ── Finished Panel ── */
body.no-word-page #finishedPanel {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
    padding: 24px;
}

body.no-word-page #finishedPanel .eyebrow {
    color: #16a34a;
    font-weight: 900;
}

body.no-word-page #winnerTitle {
    color: #064e3b;
    font-weight: 900;
    text-shadow: 3px 3px 0 rgba(0, 178, 169, 0.30);
}

/* ── QR Modal ── */
body.no-word-page .no-word-qr-modal {
    background: rgba(4, 26, 14, 0.80);
}

body.no-word-page .no-word-qr-modal-card {
    border-radius: 20px;
    border: 3px solid rgba(0, 178, 169, 0.62);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        linear-gradient(135deg, #00B2A9, #16a34a 52%, #215c27);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

body.no-word-page .no-word-qr-modal-head strong {
    color: #ffffff;
    font-weight: 900;
    font-size: 1rem;
}

/* ── Timer Card ── */
body.no-word-page .no-word-timer-card {
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 12px 16px;
}

body.no-word-page .no-word-timer-card > span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.80rem;
    font-weight: 700;
}

body.no-word-page #timerLabel {
    color: #FFD447;
    font-weight: 1000;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    text-shadow: 3px 3px 0 rgba(22, 163, 74, 0.55);
}

body.no-word-page .no-word-qr-meta span {
    color: #064e3b;
    background: rgba(255, 255, 255, 0.92);
}

/* ── Result Panel (inside QR modal) ── */
body.no-word-page #resultPanel {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    padding: 16px;
    border: 2px solid rgba(0, 178, 169, 0.30);
}

body.no-word-page #resultPanel > span {
    color: #16a34a;
    font-weight: 900;
    font-size: 0.80rem;
}

body.no-word-page #questionText {
    color: #064e3b;
    font-weight: 900;
}

body.no-word-page .hint {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ── Toast ── */
body.no-word-page .toast {
    background: linear-gradient(135deg, #00B2A9, #16a34a);
    color: #ffffff;
    border-radius: 12px;
}

body.on-tv-page .no-word-category-grid button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 54px;
    text-align: start;
}

body.on-tv-page .no-word-category-grid button img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.74);
    padding: 4px;
}

body.on-tv-page .no-word-category-grid button strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
}

@media (orientation: landscape) and (max-height: 620px) {
    body.no-word-page .no-word-shell {
        width: min(100% - 10px, 1360px);
        padding-block: 5px;
    }

    body.no-word-page .view {
        min-height: auto;
    }

    body.no-word-page .no-word-game-toolbar {
        border-radius: 10px;
        border-width: 1px;
        margin-bottom: 6px;
        gap: 3px 8px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    }

    body.no-word-page .no-word-top-meta {
        font-size: 0.62rem;
        gap: 4px;
    }

    body.no-word-page .no-word-top-meta span {
        padding: 2px 7px;
    }

    body.no-word-page #subTitle {
        font-size: 0.78rem;
    }

    body.no-word-page .round-meter {
        height: 3px;
    }

    body.no-word-page .no-word-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.no-word-page .no-word-team-card {
        min-height: 86px;
        padding: 10px;
        border-radius: 12px;
        box-shadow:
            0 0 0 2px rgba(255, 255, 255, 0.62),
            4px 5px 0 #6b7280,
            0 10px 20px rgba(0, 0, 0, 0.22);
    }

    body.no-word-page .no-word-team-card strong {
        font-size: clamp(0.95rem, 2.3vw, 1.35rem);
    }

    body.no-word-page .no-word-team-card span {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    body.no-word-page .no-word-control {
        margin-top: 6px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    body.no-word-page .no-word-controls-row {
        grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
        grid-template-areas:
            "categories categories"
            "levels action";
        gap: 8px;
        align-items: stretch;
    }

    body.no-word-page .no-word-choice-title,
    body.no-word-page .no-word-round-line {
        font-size: 0.72rem;
    }

    body.no-word-page .no-word-category-grid,
    body.no-word-page .no-word-points-grid {
        gap: 6px;
    }

    body.no-word-page .no-word-category-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    body.no-word-page .no-word-points-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.no-word-page .no-word-category-grid button,
    body.no-word-page .no-word-points-grid button {
        min-height: 40px;
        border-radius: 8px;
        padding-inline: 10px;
        font-size: 0.88rem;
    }

    body.no-word-page .no-word-category-grid button {
        min-width: 0;
        min-height: 48px;
        padding: 5px 7px;
        text-align: center;
    }

    body.no-word-page .no-word-point-button {
        min-width: 0;
        min-height: 46px;
    }

    body.no-word-page .no-word-point-button span {
        font-size: 0.68rem;
    }

    body.no-word-page #prepareButton {
        justify-self: stretch;
        min-width: 132px;
        min-height: 46px;
        padding-inline: 12px;
    }

    body.no-word-page .no-word-qr-modal {
        padding: 8px;
    }

    body.no-word-page .no-word-qr-modal-card {
        width: min(760px, calc(100vw - 18px));
        max-height: calc(100dvh - 16px);
        gap: 8px;
        padding: 10px;
        border-radius: 14px;
        overflow: auto;
        box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
    }

    body.no-word-page .no-word-qr-modal-head {
        min-height: 34px;
        font-size: 0.95rem;
    }

    body.no-word-page .no-word-qr-modal-head .secondary-action {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    body.no-word-page .no-word-main-stage {
        grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.62fr);
        gap: 10px;
    }

    body.no-word-page .no-word-main-stage.reveal {
        grid-template-columns: 1fr;
    }

    body.no-word-page .no-word-qr-wrap {
        min-height: min(62dvh, 310px);
        padding: 10px;
    }

    body.no-word-page .no-word-qr-wrap > img {
        width: min(100%, 260px);
    }

    body.no-word-page .no-word-timer-card {
        min-height: 0;
        padding: 10px;
        gap: 8px;
    }

    body.no-word-page #timerLabel {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    body.no-word-page .no-word-timer-actions {
        width: min(100%, 330px);
        grid-template-columns: 1fr;
    }

    body.no-word-page #startTimerButton,
    body.no-word-page #showResultButton {
        min-width: 96px;
        min-height: 38px;
        padding-inline: 10px;
        font-size: 0.84rem;
    }

    body.no-word-page #resultPanel {
        padding: 10px;
        gap: 8px;
    }

    body.no-word-page #questionText {
        font-size: clamp(1.15rem, 3vw, 2rem);
        line-height: 1.25;
    }

    body.no-word-page .no-word-question-image {
        max-height: 34dvh;
        width: min(100%, 360px);
    }

    body.no-word-page .winner-actions {
        gap: 8px;
    }

    body.no-word-page .winner-actions .primary-action,
    body.no-word-page .winner-actions .secondary-action {
        min-width: 108px;
        min-height: 38px;
        padding-inline: 10px;
        font-size: 0.84rem;
    }
}


/* ═══════════════════════════════════════════════════════
   شفرة الكلمات  —  JOIN VIEW + LOBBY ONLY
   Red #b91c1c/#ff523e  ·  Blue #073b95/#1267ff/#35d3ff
   ═══════════════════════════════════════════════════════ */

body.codewords-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
}

/* ── Brand / Title Panel ── */
body.codewords-page .brand-panel.codewords-brand.game-title-panel {
    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, 0.28);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.20), transparent 12rem),
        radial-gradient(circle at 88% 72%, rgba(53, 211, 255, 0.28), transparent 12rem),
        linear-gradient(135deg, #b91c1c 0%, #f8ead2 48%, #073b95 100%);
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.10),
        0 32px 64px rgba(0, 0, 0, 0.55);
}

body.codewords-page .brand-panel.codewords-brand.game-title-panel::before {
    background: linear-gradient(90deg, #b91c1c, #ff523e, #f8ead2, #1267ff, #35d3ff);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.codewords-page .brand-panel h1 {
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #0d0f1e;
    text-shadow:
        3px  3px 0 rgba(255, 255, 255, 0.35),
        6px  6px 0 rgba(7, 59, 149, 0.55),
        0   18px 36px rgba(185, 28, 28, 0.40);
}

/* ── Back Link ── */
body.codewords-page .game-back-link {
    color: #ffffff !important;
    background: #dc2626 !important;
    border: 2px solid #991b1b !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.38) !important;
}

body.codewords-page .game-back-link:hover {
    background: #b91c1c !important;
}

/* ── Join Panel ── */
body.codewords-page #joinView .join-panel {
    border-radius: 16px;
    border: 2px solid rgba(18, 103, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
}

/* ── Home Action Buttons ── */
body.codewords-page .home-action.create {
    border: 3px solid #0d0f1e;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.20), transparent 8rem),
        linear-gradient(135deg, #812316, #b91c1c 52%, #ff523e);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0f1e,
        0 16px 32px rgba(185, 28, 28, 0.38);
    color: #ffffff;
}

body.codewords-page .home-action.join {
    border: 3px solid #0d0f1e;
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.20), transparent 8rem),
        linear-gradient(135deg, #073b95, #1267ff 52%, #35d3ff);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0f1e,
        0 16px 32px rgba(18, 103, 255, 0.38);
    color: #ffffff;
}

body.codewords-page .home-action:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.codewords-page .home-action span {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.40);
}

/* ── Join Form ── */
body.codewords-page #joinView .join-form label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.codewords-page #joinView .join-form input {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(53, 211, 255, 0.32);
    border-radius: 10px;
    color: #ffffff;
}

body.codewords-page #joinView .join-form input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

body.codewords-page #joinView .join-form input:focus {
    border-color: #35d3ff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(53, 211, 255, 0.20);
}

body.codewords-page #joinView .back-button {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.codewords-page #joinView .primary-action {
    border: 3px solid #0d0f1e;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 1000;
    background: linear-gradient(135deg, #073b95, #1267ff 52%, #35d3ff);
    box-shadow: 0 10px 22px rgba(18, 103, 255, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.codewords-page #joinView .primary-action:hover {
    filter: brightness(1.10);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 103, 255, 0.56);
}

/* ══════════════════
   LOBBY / WAITING
   ══════════════════ */

body.codewords-page #waitingPanel.codewords-waiting {
    border-radius: 18px;
    border: 2px solid rgba(53, 211, 255, 0.22);
    background:
        radial-gradient(circle at  8% 10%, rgba(185, 28,  28, 0.18), transparent 18rem),
        radial-gradient(circle at 92%  8%, rgba( 53,211, 255, 0.18), transparent 18rem),
        radial-gradient(circle at 50% 92%, rgba( 18,103, 255, 0.16), transparent 20rem),
        linear-gradient(135deg, #07091a 0%, #0d1230 52%, #07091a 100%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

body.codewords-page #waitingPanel .turn-label {
    color: #35d3ff;
    font-weight: 900;
    font-size: 0.82rem;
    text-shadow: 0 0 12px rgba(53, 211, 255, 0.45);
}

body.codewords-page #waitingPanel .big-code {
    color: #ffffff;
    background: rgba(18, 103, 255, 0.20);
    border-radius: 12px;
    padding: 6px 20px;
    font-weight: 1000;
    text-shadow: 0 2px 8px rgba(53, 211, 255, 0.35);
}

body.codewords-page #waitingPanel .room-icon-button {
    border-color: rgba(53, 211, 255, 0.40);
    background: rgba(18, 103, 255, 0.14);
}

body.codewords-page #waitingPanel .room-icon-button:hover {
    background: rgba(18, 103, 255, 0.28);
}

body.codewords-page #waitingPanel .primary-action {
    border: 3px solid #0d0f1e;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 1000;
    background: linear-gradient(135deg, #073b95, #1267ff 52%, #35d3ff);
    box-shadow: 0 10px 22px rgba(18, 103, 255, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.codewords-page #waitingPanel .primary-action:hover {
    filter: brightness(1.10);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 103, 255, 0.56);
}

body.codewords-page #waitingPanel .secondary-action {
    border: 2px solid rgba(53, 211, 255, 0.35);
    border-radius: 10px;
    color: #35d3ff;
    background: rgba(18, 103, 255, 0.10);
    font-weight: 900;
}

body.codewords-page #waitingPanel .secondary-action:hover {
    background: rgba(18, 103, 255, 0.22);
    color: #ffffff;
}

body.trivia-page .online-name-panel label,
body.trivia-page .online-name-panel .online-avatar-panel > strong {
    color: #172554;
}

body.trivia-page .online-name-panel input {
    color: #10233f;
    background: #ffffff;
}

body.trivia-page .online-name-panel input::placeholder {
    color: #64748b;
}

body.trivia-page .home-action.online-play {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 12px 22px rgba(0, 0, 0, 0.18);
}

body.top10-page .online-name-panel .secondary-action,
body.top10-page .online-waiting-panel .secondary-action {
    border-color: rgba(13, 13, 26, 0.28);
    color: #0d0d1a;
    background: #fff7d6;
}

body.top10-page .online-name-panel .secondary-action:hover,
body.top10-page .online-waiting-panel .secondary-action:hover {
    color: #0d0d1a;
    background: #ffeeb0;
}

body.top10-page .online-waiting-panel .online-cancel-button,
body.trivia-page .online-waiting-panel .online-cancel-button {
    border-color: #7f1d1d;
    color: #ffffff;
    background: #dc2626;
}

body.top10-page .online-waiting-panel .online-cancel-button:hover,
body.trivia-page .online-waiting-panel .online-cancel-button:hover {
    color: #ffffff;
    background: #b91c1c;
}

body.codewords-page #waitingPanel .hint {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ── Lobby Team Sections ── */
body.codewords-page .codewords-lobby .lobby-team.red-team {
    border: 2px solid rgba(255, 82, 62, 0.40);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), transparent 40%),
        linear-gradient(145deg, rgba(129, 35, 22, 0.60), rgba(255, 82, 62, 0.40));
    padding: 10px;
}

body.codewords-page .codewords-lobby .lobby-team.blue-team {
    border: 2px solid rgba(53, 211, 255, 0.40);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), transparent 40%),
        linear-gradient(145deg, rgba(7, 87, 127, 0.60), rgba(18, 168, 211, 0.40));
    padding: 10px;
}

body.codewords-page .codewords-lobby .lobby-team h3 {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
}

body.codewords-page .codewords-lobby .lobby-team.red-team .waiting-player {
    border-color: rgba(255, 82, 62, 0.60);
    background: rgba(185, 28, 28, 0.20);
    color: #fca5a5;
}

body.codewords-page .codewords-lobby .lobby-team.blue-team .waiting-player {
    border-color: rgba(53, 211, 255, 0.60);
    background: rgba(18, 103, 255, 0.20);
    color: #93c5fd;
}


/* ═══════════════════════════════════════════════════════
   أسئلة عالشاشة  —  JEOPARDY  —  Dark / Orange / Red
   Palette: #2f2f2f → #ff7043 → #c90000  +  Gold #FFD447
   ═══════════════════════════════════════════════════════ */

body.jeopardy-page {
    font-family: 'Cairo', 'Trebuchet MS', Arial, sans-serif;
    background:
        radial-gradient(circle at  8% 10%, rgba(255, 112,  67, 0.22), transparent 22rem),
        radial-gradient(circle at 92%  8%, rgba(201,   0,   0, 0.20), transparent 20rem),
        radial-gradient(circle at 50% 90%, rgba(255, 212,  71, 0.14), transparent 22rem),
        linear-gradient(135deg, #110505 0%, #1f0a08 50%, #0d0d0d 100%);
    background-attachment: fixed;
}

/* ── Brand / Title Panel ── */
body.jeopardy-page .brand-panel.jeopardy-brand.game-title-panel {
    border-radius: 18px;
    border: 3px solid rgba(255, 112, 67, 0.55);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 88% 72%, rgba(255, 212, 71, 0.28), transparent 12rem),
        linear-gradient(135deg, #2f2f2f 0%, #ff7043 52%, #c90000 100%);
    box-shadow:
        0 0 0 6px rgba(255, 112, 67, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

body.jeopardy-page .brand-panel.jeopardy-brand.game-title-panel::before {
    background: linear-gradient(90deg, #2f2f2f, #ff7043, #FFD447, #ff7043, #c90000);
    height: 6px;
    border-radius: 18px 18px 0 0;
}

body.jeopardy-page .brand-panel h1 {
    font-family: 'Cairo', Arial, sans-serif;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #FFD447;
    text-shadow:
        3px  3px 0 rgba(0, 0, 0, 0.50),
        6px  6px 0 rgba(201, 0, 0, 0.65),
        0   18px 36px rgba(255, 112, 67, 0.45);
}

/* ── Back Link ── */
body.jeopardy-page .game-back-link {
    color: #ffffff !important;
    background: #dc2626 !important;
    border: 2px solid #991b1b !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.38) !important;
}

body.jeopardy-page .game-back-link:hover {
    background: #b91c1c !important;
}

/* ── Join Panel ── */
body.jeopardy-page #joinView .join-panel {
    border-radius: 16px;
    border: 2px solid rgba(255, 112, 67, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
}

/* ── Home Action Buttons ── */
body.jeopardy-page .home-action.create {
    border: 3px solid #0d0d0d;
    border-radius: 16px;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #2f2f2f, #ff7043 52%, #c90000);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.88),
        5px 7px 0 #0d0d0d,
        0 16px 32px rgba(201, 0, 0, 0.38);
}

body.jeopardy-page .home-action:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.jeopardy-page .home-action span {
    color: #FFD447;
    font-weight: 900;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.50);
}

/* ── Join Form ── */
body.jeopardy-page #joinView .back-button {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.jeopardy-page #joinView .primary-action {
    border: 3px solid #0d0d0d;
    border-radius: 12px;
    color: #0d0d0d;
    font-weight: 1000;
    background: linear-gradient(135deg, #ff7043, #FFD447);
    box-shadow: 0 10px 22px rgba(255, 112, 67, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.jeopardy-page #joinView .primary-action:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 112, 67, 0.56);
}

/* ══════════════════════════════════
   SETUP / WAITING PANEL
   ══════════════════════════════════ */

body.jeopardy-page #waitingPanel.jeopardy-waiting {
    border-radius: 18px;
    border: 2px solid rgba(255, 112, 67, 0.25);
    background:
        radial-gradient(circle at  8%  8%, rgba(255, 112,  67, 0.16), transparent 16rem),
        radial-gradient(circle at 92%  8%, rgba(201,   0,   0, 0.14), transparent 16rem),
        linear-gradient(135deg, #140606 0%, #1e0c0a 52%, #0f0f0f 100%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    padding: 20px;
}

body.jeopardy-page .jeopardy-setup-header h1 {
    color: #FFD447;
    font-family: 'Cairo', Arial, sans-serif;
    font-weight: 900;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.50),
        0 8px 20px rgba(255, 112, 67, 0.40);
}

body.jeopardy-page .jeopardy-exit-button {
    border: 2px solid #991b1b;
    border-radius: 10px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.38);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.jeopardy-page .jeopardy-exit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.52);
}

body.jeopardy-page .jeopardy-setup label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

body.jeopardy-page .jeopardy-setup input,
body.jeopardy-page .jeopardy-setup select {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 112, 67, 0.32);
    border-radius: 10px;
    color: #ffffff;
}

body.jeopardy-page .jeopardy-setup input:focus,
body.jeopardy-page .jeopardy-setup select:focus {
    border-color: #ff7043;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.20);
}

body.jeopardy-page #waitingPanel .primary-action {
    border: 3px solid #0d0d0d;
    border-radius: 12px;
    color: #0d0d0d;
    font-weight: 1000;
    background: linear-gradient(135deg, #ff7043, #FFD447);
    box-shadow: 0 10px 22px rgba(255, 112, 67, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.jeopardy-page #waitingPanel .primary-action:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 112, 67, 0.56);
}

body.jeopardy-page #waitingPanel .hint {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Category selection cards in setup */
body.jeopardy-page .setup-category-card {
    border-radius: 10px;
    border: 2px solid rgba(255, 112, 67, 0.20);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

body.jeopardy-page .setup-category-card span {
    color: rgba(255, 255, 255, 0.60);
}

body.jeopardy-page .setup-category-card:has(input:checked) {
    border-color: #ff7043;
    background: rgba(255, 112, 67, 0.14);
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.28);
}

body.jeopardy-page .jeopardy-setup-header .big-code {
    color: #FFD447;
    font-weight: 1000;
    background: rgba(255, 112, 67, 0.16);
    border-radius: 10px;
    padding: 4px 14px;
}

/* ══════════════════════════════════
   GAME — TOPBAR + SCOREBOARD
   ══════════════════════════════════ */

body.jeopardy-page .jeopardy-topbar {
    border-radius: 14px;
    border: 2px solid rgba(255, 112, 67, 0.30);
    background:
        radial-gradient(circle at 10% 50%, rgba(255, 112, 67, 0.18), transparent 14rem),
        linear-gradient(135deg, rgba(20, 6, 6, 0.95), rgba(30, 12, 10, 0.95));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    gap: 4px 10px;
    color: #FFD447;
}

body.jeopardy-page .jeopardy-topbar strong {
    color: #FFD447;
    font-family: 'Cairo', Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(0.82rem, 2vw, 1rem);
    text-shadow: 0 2px 8px rgba(255, 112, 67, 0.45);
}

body.jeopardy-page .jeopardy-topbar button {
    border: 1px solid rgba(255, 112, 67, 0.45);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 112, 67, 0.14);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 12px;
    min-height: 0;
    transition: background 120ms ease;
}

body.jeopardy-page .jeopardy-topbar button:hover {
    background: rgba(255, 112, 67, 0.30);
    color: #FFD447;
}

body.jeopardy-page #turnBadge {
    border-radius: 8px;
    background: linear-gradient(135deg, #c90000, #ff7043);
    color: #ffffff;
    font-weight: 900;
    font-size: clamp(0.72rem, 1.8vw, 0.88rem);
    box-shadow: 0 3px 10px rgba(201, 0, 0, 0.38);
}

/* Score Cards — no-word style: gray border → gradient bg → red glow on select */
body.jeopardy-page .jeopardy-scoreboard .score-card {
    border: 3px solid #9ca3af;
    border-radius: 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 8rem),
        linear-gradient(135deg, #2f2f2f, #ff7043 52%, #c90000);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.70),
        5px 7px 0 #6b7280,
        0 16px 32px rgba(0, 0, 0, 0.30);
    color: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.jeopardy-page .jeopardy-scoreboard .score-card:hover {
    transform: translate(-2px, -3px);
    filter: saturate(1.1) brightness(1.06);
}

body.jeopardy-page .jeopardy-scoreboard .score-card strong {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.25);
}

body.jeopardy-page .jeopardy-scoreboard .score-card span {
    color: #FFD447;
    font-weight: 1000;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

body.jeopardy-page .jeopardy-scoreboard .score-card.selected {
    border-color: #dc2626;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.70),
        5px 7px 0 #991b1b,
        0 0 18px 4px rgba(220, 38, 38, 0.50),
        0 16px 32px rgba(0, 0, 0, 0.30);
    animation: jeopardyCardGlow 1.8s ease-in-out infinite;
}

@keyframes jeopardyCardGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,.70), 5px 7px 0 #991b1b, 0 0 14px 3px rgba(220,38,38,.40), 0 16px 32px rgba(0,0,0,.30); }
    50%       { box-shadow: 0 0 0 3px rgba(255,255,255,.70), 5px 7px 0 #991b1b, 0 0 26px 8px rgba(220,38,38,.65), 0 16px 32px rgba(0,0,0,.30); }
}

/* ══════════════════════════════════
   CONTROL BOARD
   ══════════════════════════════════ */

body.jeopardy-page .jeopardy-control-board {
    border-radius: 16px;
    border: 2px solid rgba(255, 112, 67, 0.20);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

body.jeopardy-page .jeopardy-choice-group > span {
    color: #7c2d12;
    font-weight: 900;
}

/* Category & difficulty buttons — no-word control style */
body.jeopardy-page .jeopardy-category-choice,
body.jeopardy-page .jeopardy-difficulty-button {
    border: 2px solid rgba(255, 112, 67, 0.30);
    border-radius: 10px;
    background: rgba(255, 112, 67, 0.07);
    color: #7c2d12;
    font-weight: 900;
    transition: background 120ms ease, border-color 120ms ease;
}

body.jeopardy-page .jeopardy-category-choice:hover,
body.jeopardy-page .jeopardy-difficulty-button:hover {
    border-color: #ff7043;
    background: rgba(255, 112, 67, 0.18);
    color: #431407;
}

body.jeopardy-page .jeopardy-category-choice.selected,
body.jeopardy-page .jeopardy-difficulty-button.selected {
    color: #0d0d0d;
    border-color: #ff7043;
    background: linear-gradient(135deg, #ff7043, #FFD447);
    box-shadow: 0 6px 14px rgba(255, 112, 67, 0.32);
}

body.jeopardy-page .jeopardy-show-question {
    border: 3px solid #0d0d0d;
    border-radius: 12px;
    color: #0d0d0d;
    font-weight: 1000;
    background: linear-gradient(135deg, #ff7043, #FFD447);
    box-shadow: 0 10px 22px rgba(255, 112, 67, 0.42);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

body.jeopardy-page .jeopardy-show-question:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 112, 67, 0.56);
}

/* ══════════════════════════════════
   QUESTION PANEL
   ══════════════════════════════════ */

/* Question frame — no-word QR modal card style: full gradient background */
body.jeopardy-page .question-frame {
    border-radius: 20px;
    border: 3px solid rgba(255, 112, 67, 0.62);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 12rem),
        radial-gradient(circle at 88% 78%, rgba(255, 212, 71, 0.20), transparent 12rem),
        linear-gradient(135deg, #2f2f2f 0%, #ff7043 52%, #c90000 100%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

body.jeopardy-page #questionPoints {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #FFD447;
    font-weight: 900;
    padding: 3px 12px;
}

body.jeopardy-page .jeopardy-timer {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 212, 71, 0.55);
    color: #FFD447;
    font-weight: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

body.jeopardy-page .jeopardy-timer.danger {
    background: rgba(220, 38, 38, 0.55);
    border-color: rgba(255, 100, 100, 0.70);
    color: #ffffff;
    animation: jeopardyTimerDanger 0.5s ease-in-out infinite;
}

@keyframes jeopardyTimerDanger {
    0%, 100% { box-shadow: 0 2px 8px rgba(201, 0, 0, 0.40); }
    50%       { box-shadow: 0 4px 18px rgba(201, 0, 0, 0.75); }
}

body.jeopardy-page #questionText {
    color: #ffffff;
    font-family: 'Cairo', Arial, sans-serif;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
}

body.jeopardy-page .answer-box {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    background: rgba(0, 0, 0, 0.28);
}

body.jeopardy-page .answer-box span {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 700;
    font-size: 0.78rem;
}

body.jeopardy-page .answer-box strong {
    color: #FFD447;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
}

body.jeopardy-page #showAnswerButton {
    border: 2px solid rgba(255, 255, 255, 0.40);
    border-radius: 12px;
    color: #0d0d0d;
    font-weight: 1000;
    background: linear-gradient(135deg, #FFD447, #ff7043);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 120ms ease;
}

body.jeopardy-page #showAnswerButton:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

body.jeopardy-page .question-actions button,
body.jeopardy-page .award-actions button {
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    color: #0d0d0d;
    font-weight: 1000;
    background: linear-gradient(135deg, #FFD447, #ff7043);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 120ms ease;
}

body.jeopardy-page .award-actions button:last-child {
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

body.jeopardy-page .question-actions button:hover,
body.jeopardy-page .award-actions button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* ── Winner Modal ── */
body.jeopardy-page .result-modal {
    background: rgba(17, 5, 5, 0.80);
}

body.jeopardy-page .result-modal-card {
    border: 3px solid rgba(255, 112, 67, 0.62);
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 212, 71, 0.32), transparent 10rem),
        linear-gradient(135deg, #2f2f2f, #ff7043 52%, #c90000);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.60);
    color: #ffffff;
}

body.jeopardy-page .result-modal-card span {
    color: rgba(255, 255, 255, 0.75);
}

body.jeopardy-page .result-modal-card strong {
    color: #FFD447;
    text-shadow: 3px 3px 0 rgba(201, 0, 0, 0.55);
}

body.jeopardy-page .result-modal-card p {
    color: rgba(255, 255, 255, 0.80);
}

body.jeopardy-page .result-modal-card .primary-action {
    border: 3px solid #0d0d0d;
    border-radius: 12px;
    color: #0d0d0d;
    font-weight: 1000;
    background: linear-gradient(135deg, #ff7043, #FFD447);
    box-shadow: 0 10px 22px rgba(255, 112, 67, 0.42);
}

body.jeopardy-page .winner-close-button {
    color: rgba(255, 255, 255, 0.70);
    font-size: 1.4rem;
    background: transparent;
    border: none;
}

/* ── Toast ── */
body.jeopardy-page .toast {
    background: linear-gradient(135deg, #c90000, #ff7043);
    color: #ffffff;
    border-radius: 12px;
}
