/* C or B Game - Retro C64 Boulderdash Styling */

/* CSS Variables for C64 Color Palette */
:root {
    --c64-blue: #4169E1;
    --c64-light-blue: #6C93FF;
    --c64-dark-blue: #000080;
    --c64-cyan: #00FFFF;
    --c64-white: #FFFFFF;
    --c64-yellow: #FFFF00;
    --c64-green: #00FF00;
    --c64-red: #FF0000;
    --c64-purple: #FF00FF;
    --c64-black: #000000;
    --c64-gray: #808080;
    
    /* Timer Colors */
    --timer-lightning: #FF5722;
    --timer-standard: #2196F3;
    --timer-extended: #4CAF50;
    --timer-marathon: #9C27B0;
    
    /* Layout */
    --border-width: 3px;
    --pixel-size: 2px;
    --corner-radius: 4px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
    /* Strongest pull-to-refresh prevention */
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
}

body {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    font-weight: bold;
    background: linear-gradient(45deg, var(--c64-dark-blue) 0%, var(--c64-blue) 50%, var(--c64-dark-blue) 100%);
    color: var(--c64-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.4;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.8);
    /* Strongest pull-to-refresh prevention */
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    width: 100%;
}

/* Retro Scanline Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
    /* Prevent pull-to-refresh on all screens */
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 20;
}

/* Retro Border Component */
.retro-border {
    border: var(--border-width) solid var(--c64-cyan);
    background: rgba(0, 0, 128, 0.9);
    padding: 20px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    max-width: 90vw;
    border-radius: var(--corner-radius);
}

/* Typography */
.game-title {
    font-size: 3rem;
    color: var(--c64-yellow);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 0px var(--c64-blue),
        4px 4px 8px rgba(0,0,0,0.8);
    letter-spacing: 4px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: var(--c64-cyan);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.game-description {
    color: var(--c64-white);
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.subtitle {
    color: var(--c64-cyan);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Loading Screen */
.loading-container {
    text-align: center;
    min-width: 300px;
}

.loading-text {
    color: var(--c64-cyan);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: var(--c64-dark-blue);
    border: 2px solid var(--c64-cyan);
    margin-bottom: 20px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--c64-yellow), var(--c64-green));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* Compression Loading Overlay */
.compression-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 128, 0.95);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: var(--corner-radius);
}

.compression-loading .loading-content {
    text-align: center;
    padding: 30px;
    background: var(--c64-dark-blue);
    border: var(--border-width) solid var(--c64-cyan);
    border-radius: var(--corner-radius);
    box-shadow:
        inset 0 0 0 1px var(--c64-blue),
        0 0 20px rgba(0, 255, 255, 0.3);
    max-width: 300px;
}

.compression-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--c64-dark-blue);
    border-top: 4px solid var(--c64-cyan);
    border-radius: 50%;
    animation: compress-spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@keyframes compress-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.compression-loading .loading-text h4 {
    color: var(--c64-yellow);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.compression-loading .loading-text p {
    color: var(--c64-cyan);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.compression-loading .loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.compression-loading .loading-dots span {
    color: var(--c64-green);
    font-size: 1.5rem;
    animation: compress-dot 1.4s ease-in-out infinite both;
}

.compression-loading .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.compression-loading .loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.compression-loading .loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes compress-dot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Input Styles */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    color: var(--c64-cyan);
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.retro-input {
    width: 100%;
    background: var(--c64-black);
    border: 2px solid var(--c64-cyan);
    color: var(--c64-white);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--corner-radius);
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all 0.2s ease, transform 0.15s ease;
}

.retro-input:focus {
    border-color: var(--c64-yellow);
    box-shadow: 
        inset 0 0 10px rgba(0, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 0, 0.3);
}

.retro-input::placeholder {
    color: var(--c64-gray);
}

.input-help {
    font-size: 0.7rem;
    color: var(--c64-gray);
    margin-top: 4px;
    text-align: center;
}

.input-with-button {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-with-button .retro-input {
    flex: 1;
}

.input-with-button .retro-button {
    flex-shrink: 0;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Button Styles */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.retro-button {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    padding: 14px 24px;
    border: 2px solid;
    background: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--corner-radius);
    transition: all 0.2s ease;
    min-height: 44px; /* Touch-friendly */
    position: relative;
    overflow: hidden;
}

.retro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.retro-button:active {
    transform: translateY(0);
}

.retro-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Variants */
.retro-button.primary {
    color: var(--c64-yellow);
    border-color: var(--c64-yellow);
    background: linear-gradient(145deg, 
        rgba(255, 255, 0, 0.1), 
        rgba(255, 255, 0, 0.05));
}

.retro-button.primary:hover {
    background: linear-gradient(145deg, 
        rgba(255, 255, 0, 0.2), 
        rgba(255, 255, 0, 0.1));
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.retro-button.secondary {
    color: var(--c64-cyan);
    border-color: var(--c64-cyan);
    background: linear-gradient(145deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(0, 255, 255, 0.05));
}

.retro-button.secondary:hover {
    background: linear-gradient(145deg, 
        rgba(0, 255, 255, 0.2), 
        rgba(0, 255, 255, 0.1));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.retro-button.small {
    font-size: 0.8rem;
    padding: 8px 16px;
    min-height: 36px;
}

.retro-button.danger {
    color: var(--c64-red);
    border-color: var(--c64-red);
    background: linear-gradient(145deg, 
        rgba(255, 0, 0, 0.1), 
        rgba(255, 0, 0, 0.05));
}

.retro-button.danger:hover {
    background: linear-gradient(145deg, 
        rgba(255, 0, 0, 0.2), 
        rgba(255, 0, 0, 0.1));
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.retro-button.warning {
    color: var(--c64-yellow);
    border-color: var(--c64-yellow);
    background: linear-gradient(145deg, 
        rgba(255, 255, 0, 0.1), 
        rgba(255, 255, 0, 0.05));
}

.retro-button.warning:hover {
    background: linear-gradient(145deg,
        rgba(255, 255, 0, 0.2),
        rgba(255, 255, 0, 0.1));
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.retro-button.info {
    color: var(--c64-cyan);
    border-color: var(--c64-cyan);
    background: linear-gradient(145deg,
        rgba(0, 255, 255, 0.1),
        rgba(0, 255, 255, 0.05));
}

.retro-button.info:hover {
    background: linear-gradient(145deg,
        rgba(0, 255, 255, 0.2),
        rgba(0, 255, 255, 0.1));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Global Header Styles */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(145deg,
        rgba(65, 105, 225, 0.95),
        rgba(0, 0, 128, 0.95));
    border-bottom: 2px solid var(--c64-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
}

.header-left .game-logo {
    color: var(--c64-cyan);
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 5px var(--c64-cyan);
}

.header-center .version-display {
    color: var(--c64-white);
    font-size: 14px;
    opacity: 0.8;
}

.header-right .update-btn {
    background: linear-gradient(145deg,
        rgba(0, 255, 255, 0.1),
        rgba(0, 255, 255, 0.05));
    border: 2px solid var(--c64-cyan);
    border-radius: 6px;
    color: var(--c64-cyan);
    cursor: pointer;
    font-size: 16px;
    height: 35px;
    min-width: 35px;
    padding: 5px 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.header-right .update-btn:hover {
    background: linear-gradient(145deg,
        rgba(0, 255, 255, 0.2),
        rgba(0, 255, 255, 0.1));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.header-right .update-btn:active {
    transform: scale(0.98);
}

.header-right .update-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Adjust body padding when header is visible */
body.has-global-header {
    padding-top: 50px;
}

/* Adjust screens to account for header */
body.has-global-header .screen {
    min-height: calc(100vh - 50px);
    padding-top: 10px;
}

/* Room List Styles */
.room-list-container {
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 600px;
}

.notification-setup-container {
    width: 100%;
    max-width: 500px;
}

.notification-setup-container .notification-info {
    background: rgba(65, 105, 225, 0.1);
    border: 2px solid var(--c64-cyan);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: var(--c64-cyan);
}

.notification-setup-container .notification-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.notification-setup-container .notification-info li {
    margin: 8px 0;
    color: var(--c64-white);
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.screen-header h2 {
    color: var(--c64-yellow);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.rooms-grid {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
}

.no-rooms {
    text-align: center;
    padding: 40px 20px;
    border: 2px solid var(--c64-cyan);
    background: rgba(0, 0, 128, 0.3);
    border-radius: var(--corner-radius);
    margin-bottom: 20px;
}

.no-rooms p {
    margin-bottom: 15px;
    color: var(--c64-cyan);
    font-size: 1.1rem;
}

.no-rooms p:last-of-type {
    margin-bottom: 25px;
}

.room-card {
    border: 2px solid var(--c64-cyan);
    background: rgba(0, 0, 128, 0.6);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--corner-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-card:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(4px);
    box-shadow: -4px 0 12px rgba(0, 255, 255, 0.3);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-name {
    color: var(--c64-white);
    font-size: 1.1rem;
    font-weight: bold;
}

.room-players {
    color: var(--c64-yellow);
    font-size: 0.9rem;
}

.room-status {
    color: var(--c64-cyan);
    font-size: 0.8rem;
}

/* Game Room Styles */
.game-container {
    width: 100%;
    height: 100vh;
    padding: 16px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.95) 0%, rgba(65, 105, 225, 0.85) 100%);
    border: 2px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
}

.room-name-large {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--c64-yellow);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.room-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.room-info h3 {
    color: var(--c64-yellow);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

#player-count-display {
    color: var(--c64-cyan);
    font-size: 0.9rem;
}

.game-status {
    text-align: center;
    padding: 16px;
    color: var(--c64-white);
    font-size: 1.1rem;
}

/* Upload Section */
.upload-section {
    overflow-y: auto;
    position: relative; /* Required for compression loading overlay */
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-input {
    display: none;
}

.file-label {
    cursor: pointer;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.correct-answer-group {
    text-align: center;
}

.answer-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.answer-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    font-weight: bold;
    border: 3px solid var(--c64-cyan);
    background: var(--c64-dark-blue);
    color: var(--c64-white);
    border-radius: var(--corner-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-btn:hover {
    background: var(--c64-cyan);
    color: var(--c64-black);
    transform: scale(1.1);
}

.answer-btn.selected {
    background: var(--c64-yellow);
    color: var(--c64-black);
    border-color: var(--c64-yellow);
}

/* Turnup Selection */
.turnup-selection {
    text-align: center;
}

.turnup-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.turnup-btn {
    padding: 12px 8px;
    font-size: 0.9rem;
    border: 2px solid var(--c64-gray);
    background: var(--c64-dark-blue);
    color: var(--c64-white);
    border-radius: var(--corner-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.turnup-btn:hover {
    border-color: var(--c64-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.turnup-btn.active {
    border-color: var(--c64-yellow);
    background: rgba(255, 255, 0, 0.2);
    color: var(--c64-yellow);
}

/* Votes Slider */
.votes-slider-container {
    margin-top: 16px;
    padding: 16px 0;
}

.votes-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--c64-dark-blue);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.votes-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c64-yellow);
    border: 3px solid var(--c64-white);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    transition: all 0.2s ease;
}

.votes-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
}

.votes-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c64-yellow);
    border: 3px solid var(--c64-white);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    transition: all 0.2s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--c64-cyan);
}

#votes-display,
#game-votes-display {
    color: var(--c64-yellow);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Auto-reveal selection */
.auto-reveal-selection {
    text-align: center;
    margin-top: 16px;
}

.auto-reveal-selection input[type="checkbox"] {
    margin-right: 8px;
}

/* Active Round Section */
.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.timer-display {
    text-align: right;
    min-width: 120px;
}

.timer-bar {
    width: 120px;
    height: 8px;
    background: var(--c64-dark-blue);
    border: 2px solid var(--c64-cyan);
    margin-bottom: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--c64-green), var(--c64-yellow), var(--c64-red));
    transition: width 0.1s linear;
}

#time-remaining {
    font-size: 0.9rem;
    color: var(--c64-cyan);
}

.image-container {
    text-align: center;
    margin-bottom: 16px;
}

.round-image {
    max-width: 100%;
    max-height: 200px;
    border: 2px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
}

/* Voting Options */
.voting-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.vote-btn {
    padding: 16px;
    border: 3px solid var(--c64-cyan);
    background: var(--c64-dark-blue);
    color: var(--c64-white);
    border-radius: var(--corner-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vote-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.vote-btn.voted {
    border-color: var(--c64-yellow);
    background: rgba(255, 255, 0, 0.2);
    color: var(--c64-yellow);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.vote-letter {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.vote-status {
    text-align: center;
}

.vote-counts {
    display: flex;
    justify-content: space-around;
}

.vote-count {
    color: var(--c64-cyan);
    font-size: 1.1rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 128, 0.95);
    border: 2px solid var(--c64-cyan);
    border-radius: 20px;
    padding: 12px 24px;
    color: var(--c64-white);
    font-weight: bold;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    text-align: center;
    min-width: 300px;
}

.modal-content h3 {
    color: var(--c64-red);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.modal-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.version-info {
    text-align: center;
    color: var(--c64-gray);
    font-size: 0.7rem;
    margin-top: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c64-dark-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--c64-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c64-yellow);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--c64-cyan) var(--c64-dark-blue);
}

/* Notification system */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: var(--corner-radius);
    border: var(--border-width) solid var(--c64-cyan);
    background: linear-gradient(135deg, var(--c64-blue), var(--c64-cyan));
    color: var(--c64-dark-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: all;
    transform: translateX(120%);
    animation: slideIn 0.3s ease-out forwards;
    cursor: pointer;
}

.notification-info {
    background: linear-gradient(135deg, var(--c64-blue), var(--c64-cyan));
    color: var(--c64-dark-blue);
    border-color: var(--c64-cyan);
}

.notification-success {
    background: linear-gradient(135deg, #4caf50, var(--c64-green));
    color: var(--c64-dark-blue);
    border-color: var(--c64-green);
}

.notification-warning {
    background: linear-gradient(135deg, #ff9800, var(--c64-yellow));
    color: var(--c64-dark-blue);
    border-color: var(--c64-yellow);
}

.notification-error {
    background: linear-gradient(135deg, var(--c64-red), #ff0080);
    color: var(--c64-white);
    border-color: var(--c64-red);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.notification-message {
    font-size: 12px;
    opacity: 0.9;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--corner-radius);
    margin-left: 12px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.notification:hover {
    transform: translateX(0) scale(1.02);
    transition: all 0.2s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Notification permission prompt */
.notification-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--c64-blue), var(--c64-cyan));
    color: var(--c64-dark-blue);
    padding: 16px 24px;
    border-radius: var(--corner-radius);
    border: var(--border-width) solid var(--c64-cyan);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    text-align: center;
    animation: bounceIn 0.5s ease-out;
}

.notification-prompt-buttons {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-prompt button {
    padding: 8px 16px;
    border: 2px solid var(--c64-dark-blue);
    border-radius: var(--corner-radius);
    background: var(--c64-yellow);
    color: var(--c64-dark-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-prompt button:hover {
    background: var(--c64-white);
    transform: scale(1.05);
}

.notification-prompt button.secondary {
    background: transparent;
    color: var(--c64-dark-blue);
    border-color: var(--c64-dark-blue);
}

.notification-prompt button.secondary:hover {
    background: rgba(0, 0, 128, 0.1);
}

@keyframes bounceIn {
    0% {
        transform: translateX(-50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Step-by-step Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--c64-dark-blue);
    border: 2px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c64-yellow), var(--c64-cyan));
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Picture Preview */
.picture-preview {
    margin: 20px 0;
}

.preview-container {
    position: relative;
    border: 3px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
    background: var(--c64-dark-blue);
    overflow: hidden;
    max-width: 300px;
    margin: 10px auto;
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.preview-container button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
    min-height: 32px;
}

/* Player greeting */
.player-greeting {
    font-size: 18px;
    color: var(--c64-cyan);
    margin-bottom: 20px;
    text-align: center;
}

.player-greeting span {
    color: var(--c64-yellow);
    font-weight: bold;
}

/* ==============================================
   ADMIN DASHBOARD STYLES
   ============================================== */

/* Admin Image Container */
.admin-image-container {
    text-align: center;
    margin-bottom: 12px;
}

.admin-round-image {
    max-width: 100%;
    max-height: 150px;
    border: 2px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    object-fit: contain;
}

.admin-dashboard-section {
    margin: 10px 0;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Next Round Section */
.next-round-info {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 2px solid var(--c64-cyan);
}

.next-round-info p {
    margin-bottom: 20px;
    color: var(--c64-cyan);
    font-size: 1.1rem;
}

#play-another-round-btn {
    font-size: 1.1rem;
    padding: 12px 24px;
    margin-bottom: 15px;
}

.next-round-status {
    color: var(--c64-yellow);
    font-style: italic;
    opacity: 0.9;
}

.next-round-status p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* NEW ADMIN DASHBOARD LAYOUT */

/* Admin Header with Room Name + Leave Button */
.admin-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(65, 105, 225, 0.2);
    border: 2px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
}

.admin-room-name {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--c64-yellow);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

/* Admin Voting Progress Section */
.admin-voting-progress {
    margin-bottom: 12px;
}

.admin-voting-progress h5 {
    color: var(--c64-cyan);
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.8);
}

.admin-voting-table-container {
    max-height: 120px;
    overflow-y: auto;
    border: 2px solid var(--c64-white);
    border-radius: var(--corner-radius);
    background: var(--c64-black);
}

.admin-voting-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-voting-table thead {
    background: var(--c64-dark-blue);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-voting-table th {
    padding: 6px 8px;
    text-align: left;
    color: var(--c64-cyan);
    font-size: 12px;
    border-bottom: 2px solid var(--c64-cyan);
}

.admin-voting-table td {
    padding: 6px 8px;
    color: var(--c64-white);
    font-size: 11px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.admin-voting-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

.admin-voting-table tbody tr.voted {
    background: rgba(0, 255, 0, 0.15);
}

.vote-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.vote-badge.vote-c {
    background: var(--c64-green);
    color: var(--c64-black);
}

.vote-badge.vote-b {
    background: var(--c64-red);
    color: var(--c64-white);
}

/* Vote Summary under table */
.admin-vote-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(0, 0, 128, 0.3);
    border: 2px solid var(--c64-white);
    border-radius: var(--corner-radius);
}

.vote-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-summary-label {
    font-size: 18px;
    font-weight: bold;
    color: var(--c64-white);
}

.vote-summary-count {
    font-size: 24px;
    font-weight: bold;
    color: var(--c64-yellow);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

/* Admin Reveal Section */
.admin-reveal-section {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
}

.admin-reveal-section h5 {
    color: var(--c64-yellow);
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

.reveal-buttons-new {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reveal-btn-new {
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    border: 2px solid;
    border-radius: var(--corner-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
}

.reveal-btn-new.reveal-now {
    background: linear-gradient(135deg, #ff5722 0%, #c41c00 100%);
    border-color: var(--c64-yellow);
    color: var(--c64-white);
    font-size: 14px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.reveal-btn-new.reveal-now:hover {
    background: linear-gradient(135deg, #ff6b3d 0%, #ff5722 100%);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.6);
    transform: translateY(-2px);
}

.reveal-btn-new.reveal-delay {
    background: linear-gradient(135deg, #4169E1 0%, #1e3a8a 100%);
    border-color: var(--c64-cyan);
    color: var(--c64-white);
    font-size: 12px;
    text-shadow: 0 0 8px var(--c64-cyan);
}

.reveal-btn-new.reveal-delay:hover {
    background: linear-gradient(135deg, #00FFFF 0%, #4169E1 100%);
    border-color: var(--c64-yellow);
    color: var(--c64-dark-blue);
    text-shadow: 0 0 15px var(--c64-yellow);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

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

/* Admin Countdown Display (shown after scheduling reveal) */
.admin-countdown-display {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.3), rgba(0, 255, 255, 0.2));
    border: 3px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
    text-align: center;
    animation: adminCountdownPulse 2s ease-in-out infinite;
}

.admin-countdown-icon {
    font-size: 2rem;
    display: inline-block;
    animation: spin 3s linear infinite;
    margin-bottom: 8px;
}

.admin-countdown-label {
    font-size: 0.9rem;
    color: var(--c64-white);
    margin-bottom: 8px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.8);
}

.admin-countdown-time {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--c64-yellow);
    font-family: 'Courier New', monospace;
    text-shadow:
        0 0 15px var(--c64-yellow),
        2px 2px 0px rgba(0,0,0,0.8);
    margin: 12px 0;
}

.admin-countdown-hint {
    font-size: 0.8rem;
    color: var(--c64-cyan);
    font-style: italic;
    margin-top: 8px;
}

@keyframes adminCountdownPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    }
}

/* Admin Dashboard Responsive */
@media (max-width: 768px) {
    .admin-header-new {
        padding: 12px;
    }

    .admin-room-name {
        font-size: 16px;
    }

    .admin-voting-table-container {
        max-height: 200px;
    }

    .admin-voting-table th {
        padding: 8px;
        font-size: 12px;
    }

    .admin-voting-table td {
        padding: 8px;
        font-size: 12px;
    }

    .vote-summary-item {
        gap: 8px;
    }

    .vote-summary-label {
        font-size: 20px;
    }

    .vote-summary-count {
        font-size: 26px;
    }

    .reveal-btn-new {
        padding: 16px;
        font-size: 14px;
        min-height: 52px;
    }

    .reveal-btn-new.reveal-now {
        font-size: 16px;
    }
}

/* ================================
   COUNTDOWN STYLES
   ================================ */
.countdown-container {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, var(--c64-dark-blue), var(--c64-blue));
    border: var(--border-width) solid var(--c64-cyan);
    border-radius: var(--corner-radius);
    text-align: center;
    animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-container.urgent {
    animation: countdownUrgent 0.5s ease-in-out infinite;
    border-color: var(--c64-red);
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.countdown-icon {
    font-size: 1.2em;
    animation: spin 2s linear infinite;
}

.countdown-text {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--c64-white);
}

.countdown-progress-container {
    width: 100%;
    height: 8px;
    background: var(--c64-dark-blue);
    border: 1px solid var(--c64-white);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--c64-cyan), var(--c64-blue));
    transition: width 0.1s ease-out, background 0.3s ease;
    border-radius: 2px;
}

.countdown-status-text {
    font-size: 0.9em;
    color: var(--c64-cyan);
    margin: 8px 0;
    font-style: italic;
}

.manual-reveal-btn {
    background: linear-gradient(135deg, var(--c64-red), #cc0000);
    color: var(--c64-white);
    border: 2px solid var(--c64-white);
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: var(--corner-radius);
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-family: inherit;
}

.manual-reveal-btn:hover {
    background: linear-gradient(135deg, #ff3333, var(--c64-red));
    border-color: var(--c64-yellow);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.manual-reveal-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.countdown-status .countdown-icon {
    font-size: 1.5em;
    margin-right: 8px;
}

.countdown-status .countdown-text {
    font-size: 1em;
    color: var(--c64-cyan);
}

/* Countdown Animations */
@keyframes countdownPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    }
}

@keyframes countdownUrgent {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        border-color: var(--c64-red);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
        border-color: var(--c64-yellow);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Countdown Styles */
@media (max-width: 480px) {
    .countdown-container {
        margin: 10px 0;
        padding: 12px;
    }

    .countdown-header {
        gap: 6px;
        margin-bottom: 8px;
    }

    .countdown-text {
        font-size: 1em;
    }

    .countdown-progress-container {
        height: 6px;
        margin: 8px 0;
    }

    .countdown-status-text {
        font-size: 0.8em;
        margin: 6px 0;
    }

    .manual-reveal-btn {
        padding: 8px 16px;
        font-size: 0.8em;
        margin-top: 8px;
    }
}

/* ================================
   SCHEDULED REVEAL FEATURE STYLES
   ================================ */

/* Admin Reveal Timing Selector */
.reveal-timing-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(65, 105, 225, 0.15);
    border: 3px solid #4169E1;
    border-radius: var(--corner-radius);
}

.reveal-timing-section h5 {
    color: #FFFF00;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 15px #FFFF00;
    letter-spacing: 2px;
}

.reveal-timing-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.reveal-timing-btn {
    padding: 18px 12px;
    background: linear-gradient(180deg, #4169E1 0%, #1e3a8a 100%);
    border: 3px solid #00FFFF;
    border-radius: var(--corner-radius);
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 0 8px #00FFFF;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    min-height: 56px;
}

.reveal-timing-btn:hover {
    background: linear-gradient(180deg, #00FFFF 0%, #4169E1 100%);
    border-color: #FFFF00;
    color: #000080;
    text-shadow: 0 0 15px #FFFF00;
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.6);
    transform: translateY(-3px);
}

.reveal-timing-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.reveal-timing-btn[data-delay="0"] {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, #ff5722 0%, #c41c00 100%);
    border-color: #FFFF00;
    font-size: 20px;
    padding: 22px 12px;
    min-height: 64px;
}

.reveal-timing-btn[data-delay="0"]:hover {
    background: linear-gradient(180deg, #ff6b3d 0%, #ff5722 100%);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.7);
}

.reveal-timing-help {
    font-size: 12px;
    color: #00FFFF;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Scheduled Reveal Countdown (for voters) */
.scheduled-reveal-countdown {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(65, 105, 225, 0.2) 0%, rgba(0, 0, 128, 0.3) 100%);
    border: 3px solid #00FFFF;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.scheduled-reveal-countdown.hidden {
    display: none;
}

.reveal-countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.reveal-countdown-header .countdown-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.reveal-countdown-header h5 {
    color: #FFFF00;
    font-size: 16px;
    text-shadow: 0 0 10px #FFFF00;
    margin: 0;
}

.reveal-countdown-time {
    font-size: 48px;
    font-weight: bold;
    color: #00FFFF;
    text-shadow: 0 0 20px #00FFFF;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.reveal-countdown-label {
    font-size: 12px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.reveal-countdown-progress-container {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #4169E1;
    overflow: hidden;
}

.reveal-countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, #4169E1 0%, #00FFFF 100%);
    transition: width 1s linear;
    box-shadow: 0 0 10px #00FFFF;
}

/* Notification Modal Styling */
#scheduled-reveal-notification-modal .modal-content {
    max-width: 400px;
}

#scheduled-reveal-notification-modal h3 {
    color: #FFFF00;
    text-shadow: 0 0 10px #FFFF00;
}

#scheduled-reveal-notification-modal .modal-question {
    font-size: 14px;
    color: #00FFFF;
    margin: 15px 0;
}

#scheduled-reveal-notification-modal .modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .reveal-timing-buttons {
        grid-template-columns: 1fr;
    }

    .reveal-timing-btn {
        font-size: 14px;
        padding: 16px 10px;
    }

    .reveal-timing-btn[data-delay="0"] {
        font-size: 18px;
        padding: 20px 10px;
    }

    .reveal-countdown-time {
        font-size: 36px;
    }
}
/* ================================
   FULLSCREEN REVEAL OVERLAY
   ================================ */
.reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reveal-overlay:not(.hidden) {
    opacity: 1;
}

.reveal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.reveal-answer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.reveal-answer-text {
    font-size: 40vw;
    font-weight: bold;
    color: var(--c64-yellow);
    text-shadow: 
        0 0 40px var(--c64-yellow),
        0 0 80px var(--c64-yellow),
        0 0 120px var(--c64-yellow),
        10px 10px 20px rgba(0, 0, 0, 0.8);
    animation: revealPulse 2s ease-in-out infinite;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.reveal-countdown {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 3rem;
    font-weight: bold;
    color: var(--c64-cyan);
    text-shadow: 
        0 0 20px var(--c64-cyan),
        0 0 40px var(--c64-cyan),
        4px 4px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 128, 0.8);
    padding: 20px 40px;
    border: 4px solid var(--c64-cyan);
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
}

@keyframes revealPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .reveal-answer-text {
        font-size: 50vw;
    }

    .reveal-countdown {
        font-size: 2rem;
        padding: 15px 30px;
        bottom: 15%;
    }
}

/* ================================
   WAITING FOR REVEAL SCREEN
   ================================ */
.waiting-for-reveal-section {
    overflow-y: auto;
}

.waiting-header {
    text-align: center;
    margin-bottom: 24px;
}

.waiting-header h4 {
    color: var(--c64-green);
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--c64-green);
}

.waiting-subtitle {
    color: var(--c64-cyan);
    font-size: 1rem;
    font-style: italic;
}

/* Vote Confirmation */
.vote-confirmation {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--c64-green);
    border-radius: var(--corner-radius);
}

.vote-confirmation-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.vote-confirmation-text {
    font-size: 1.1rem;
    color: var(--c64-white);
}

.my-vote-badge {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 8px;
    background: var(--c64-yellow);
    color: var(--c64-black);
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: none;
    box-shadow: 0 0 10px var(--c64-yellow);
}

/* Countdown Display (scheduled reveal) */
.waiting-countdown-display {
    text-align: center;
    padding: 24px;
    margin: 20px 0;
    background: rgba(65, 105, 225, 0.2);
    border: 3px solid var(--c64-cyan);
    border-radius: var(--corner-radius);
}

.waiting-countdown-icon {
    font-size: 2rem;
    animation: spin 3s linear infinite;
    display: inline-block;
    margin-bottom: 12px;
}

.waiting-countdown-label {
    font-size: 0.9rem;
    color: var(--c64-cyan);
    margin-bottom: 8px;
}

.waiting-countdown-time {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--c64-yellow);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px var(--c64-yellow);
    margin: 12px 0;
}

.waiting-countdown-progress-container {
    width: 100%;
    height: 12px;
    background: var(--c64-dark-blue);
    border: 2px solid var(--c64-cyan);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
}

.waiting-countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--c64-green), var(--c64-yellow));
    transition: width 1s linear;
    box-shadow: 0 0 8px var(--c64-green);
}

/* Generic Waiting Message */
.waiting-generic-message {
    text-align: center;
    padding: 32px 20px;
    margin: 20px 0;
}

.waiting-generic-message p {
    font-size: 1rem;
    color: var(--c64-cyan);
    margin-bottom: 20px;
}

.waiting-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.waiting-dots .dot {
    width: 12px;
    height: 12px;
    background: var(--c64-cyan);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.waiting-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.waiting-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.waiting-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 10px var(--c64-cyan);
    }
}

/* Notification Call-to-Action */
.waiting-notification-cta {
    text-align: center;
    padding: 24px;
    margin: 24px 0;
    background: rgba(255, 255, 0, 0.1);
    border: 2px dashed var(--c64-yellow);
    border-radius: var(--corner-radius);
}

.notification-cta-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.notification-cta-text {
    font-size: 1rem;
    color: var(--c64-white);
    margin-bottom: 16px;
    line-height: 1.5;
}

#waiting-enable-notifications-btn {
    font-size: 1rem;
    padding: 14px 28px;
    margin-top: 8px;
}

.notification-success-message {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid var(--c64-green);
    border-radius: var(--corner-radius);
    color: var(--c64-green);
    font-size: 0.95rem;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .waiting-header h4 {
        font-size: 1.2rem;
    }

    .vote-confirmation-icon {
        font-size: 2.5rem;
    }

    .vote-confirmation-text {
        font-size: 1rem;
    }

    .my-vote-badge {
        font-size: 1.1rem;
        padding: 4px 12px;
    }

    .waiting-countdown-time {
        font-size: 2rem;
    }

    .notification-cta-icon {
        font-size: 2rem;
    }

    .notification-cta-text {
        font-size: 0.9rem;
    }
}

/* ==============================================
   FULL-SCREEN REVEAL STYLES
   ============================================== */

.fullscreen-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

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

.fullscreen-reveal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reveal-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    object-position: center;
}

.reveal-answer-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    max-width: 90%;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.reveal-answer-badge {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.95) 0%, rgba(0, 255, 255, 0.95) 100%);
    border: 4px solid var(--c64-yellow);
    border-radius: 16px;
    padding: 20px 40px;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.8),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 60px rgba(255, 255, 0, 1), inset 0 0 30px rgba(0, 0, 0, 0.3); }
}

.reveal-answer-label {
    color: var(--c64-white);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.reveal-answer-letter {
    font-size: 5rem;
    font-weight: bold;
    color: var(--c64-yellow);
    text-shadow:
        4px 4px 8px rgba(0, 0, 0, 1),
        0 0 20px rgba(255, 255, 0, 0.8);
    line-height: 1;
}

.reveal-countdown-timer {
    color: var(--c64-white);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#reveal-timer-seconds {
    color: var(--c64-yellow);
    font-size: 1.6rem;
    text-shadow:
        0 0 10px rgba(255, 255, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .reveal-answer-badge {
        padding: 16px 32px;
        gap: 10px;
    }

    .reveal-answer-label {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .reveal-answer-letter {
        font-size: 4rem;
    }

    .reveal-countdown-timer {
        font-size: 1rem;
    }

    #reveal-timer-seconds {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .reveal-answer-overlay {
        bottom: 12px;
        max-width: 95%;
    }

    .reveal-answer-badge {
        padding: 12px 24px;
        border-width: 3px;
        gap: 8px;
    }

    .reveal-answer-label {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .reveal-answer-letter {
        font-size: 3rem;
    }

    .reveal-countdown-timer {
        font-size: 0.9rem;
    }

    #reveal-timer-seconds {
        font-size: 1.2rem;
    }
}
