:root {
    --cell-size: 150px;
    
    /* Accessible High-Contrast Colors */
    --primary-bg: #FFFFFF;
    --secondary-bg: #F5F5F5;
    --primary-text: #004A87;
    --dollar-green: #62A30D;
    --button-bg: #004A87;
    --button-text: #FFFFFF;
    --border-color: #004A87;
    --hover-bg: #E5F0F7;
    --error-color: #B91C1C;
    --success-color: #166534;
    
    /* Neutral Colors */
    --gray-dark: #4D4F53;
    --gray-medium: #6B7280;
    --gray-light: #E5E7EB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

/* WordPress iframe embedding compatibility */
body.embedded {
    min-height: auto;
    max-width: 100%;
}

/* Remove all floating orbs - no animations */
.floating-orb {
    display: none;
}

/* Container */
.container-fluid {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: var(--primary-bg);
}

/* Logo and Title Section */
.text-center.mb-4 {
    margin-bottom: 2rem !important;
}

.company-logo {
    max-height: 70px;
    width: auto;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-text);
    margin: 1rem 0 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Subtitle for requirement #4 */
.game-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Action Buttons Section */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.liquid-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--button-bg);
    border-radius: 8px;
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.liquid-button:hover {
    background: var(--primary-text);
    border-color: var(--primary-text);
}

.liquid-button.gold {
    background: var(--dollar-green);
    border-color: var(--dollar-green);
    color: white;
}

.liquid-button.gold:hover {
    background: #4A7C0A;
    border-color: #4A7C0A;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.share-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--button-bg);
    border-radius: 6px;
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button:hover {
    background: var(--primary-text);
    color: white;
}

/* Embed Code Button */
.embed-button {
    background: var(--gray-medium);
    border-color: var(--gray-medium);
}

.embed-button:hover {
    background: var(--gray-dark);
    border-color: var(--gray-dark);
}

/* Player Cards */
.players-container {
    margin-bottom: 2rem;
}

.player-card {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.player-card h3 {
    color: var(--primary-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.player-card .score {
    color: var(--dollar-green);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Game Board */
.game-board {
    background: var(--secondary-bg);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Category Headers */
.category-header {
    background: var(--button-bg);
    color: white;
    padding: 15px 5px;
    text-align: center;
    border: 2px solid var(--border-color);
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Question Cells */
.question-cell {
    background: white;
    border: 3px solid var(--border-color);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dollar-green);
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
}

.question-cell:hover:not(.answered) {
    background: var(--hover-bg);
    color: var(--primary-text);
}

.question-cell.answered {
    background: var(--gray-light);
    color: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.7;
}

.question-cell.current {
    background: var(--hover-bg);
    border-color: var(--dollar-green);
    border-width: 4px;
}

/* Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.custom-modal.show {
    display: block;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.custom-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
}

.custom-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-color);
}

.modal-header {
    background: var(--secondary-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 6px 6px 0 0;
}

.modal-title {
    color: var(--primary-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    background: white;
}

.modal-footer {
    background: var(--secondary-bg);
    border-top: 2px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-radius: 0 0 6px 6px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--button-bg);
    color: white;
    border-color: var(--button-bg);
}

.btn-primary:hover {
    background: var(--primary-text);
    border-color: var(--primary-text);
}

.btn-secondary {
    background: var(--gray-medium);
    color: white;
    border-color: var(--gray-medium);
}

.btn-secondary:hover {
    background: var(--gray-dark);
    border-color: var(--gray-dark);
}

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

.btn-success:hover {
    background: #0F5132;
    border-color: #0F5132;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Timer */
.timer-container {
    display: flex;
    align-items: center;
}

.timer-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-text);
}

/* Answer Options */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-group-item {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-text);
}

.list-group-item:hover {
    background: var(--hover-bg);
}

.list-group-item.correct {
    background: #D1FAE5;
    border-color: var(--success-color);
    color: var(--success-color);
}

.list-group-item.incorrect {
    background: #FEE2E2;
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Tutorial Modal */
.tutorial-content .modal-body {
    padding: 2rem;
}

.tutorial-step h4 {
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.tutorial-step p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.tutorial-logo {
    max-height: 40px;
}

.tutorial-progress {
    font-size: 1rem;
    color: var(--gray-medium);
}

.tutorial-highlight {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.demo-board {
    text-align: center;
}

.demo-category {
    background: var(--button-bg);
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.demo-tile {
    background: white;
    border: 2px solid var(--border-color);
    padding: 15px;
    color: var(--dollar-green);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
}

.demo-timer {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-text);
    margin: 0 auto;
}

.demo-score {
    color: var(--dollar-green);
    font-size: 2rem;
    font-weight: bold;
}

/* Trivia Modal */
.trivia-content {
    background: white;
}

#triviaFactTitle {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 1.2rem;
}

#triviaFact {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Embed Code Modal */
.embed-modal-content {
    background: white;
}

.embed-code-container {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.embed-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--primary-text);
    white-space: pre-wrap;
    word-break: break-all;
}

.copy-button {
    margin-top: 1rem;
    width: 100%;
}

/* Certificate */
.certificate-container {
    background: white;
    border: 3px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
}

.certificate-title {
    color: var(--primary-text);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.certificate-body {
    color: var(--gray-dark);
    font-size: 1.2rem;
    margin: 1rem 0;
}

.certificate-score {
    color: var(--dollar-green);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Accessibility */
:focus {
    outline: 3px solid var(--button-bg);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .game-subtitle {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .liquid-button {
        width: 100%;
        max-width: 300px;
    }
    
    .category-header {
        font-size: 0.9rem;
        min-height: 60px;
    }
    
    .question-cell {
        font-size: 1.4rem;
        min-height: 80px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .container-fluid {
        padding: 1rem;
    }
    
    .player-card {
        padding: 1rem;
    }
    
    .player-card h3 {
        font-size: 1.2rem;
    }
    
    .player-card .score {
        font-size: 1.5rem;
    }
}

/* Remove all animations - static interactions only */
* {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Question cell flip animation removed */
.question-cell-front,
.question-cell-back {
    display: block;
    position: static;
}

.question-cell.flip .question-cell-front {
    display: none;
}

.question-cell.flip .question-cell-back {
    display: block;
}

/* No confetti or particle effects */
.confetti,
.particle,
.sparkle {
    display: none !important;
}

/* Daily Double indicator - static */
.daily-double-indicator {
    background: var(--dollar-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* Remove all keyframes */
@keyframes none {}

/* Ensure no gradients are used */
body::before,
body::after {
    display: none !important;
}

/* Static ripple elements if they exist */
.ripple {
    display: none !important;
}

/* Remove cascade animations */
.cascade,
.fade-in,
.slide-in,
.zoom-in {
    opacity: 1 !important;
    transform: none !important;
}

/* Static hover effects */
*:hover {
    transition: none !important;
    animation: none !important;
}

/* Responsive Design for Mobile and Tablet */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .game-subtitle {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .liquid-button {
        width: 100%;
        max-width: 300px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .share-button {
        width: 100%;
        max-width: 300px;
    }
    
    .category-header {
        font-size: 0.85rem;
        min-height: 60px;
        padding: 10px 3px;
    }
    
    .question-cell {
        font-size: 1.3rem;
        min-height: 80px;
        padding: 15px;
    }
    
    .player-card {
        padding: 1rem;
    }
    
    .player-card .score {
        font-size: 1.5rem;
    }
    
    .custom-modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .company-logo {
        max-height: 50px;
    }
    
    .category-header {
        font-size: 0.75rem;
        min-height: 50px;
    }
    
    .question-cell {
        font-size: 1.1rem;
        min-height: 70px;
        padding: 10px;
    }
}