/* Bingo Game Styles */

/* General card styling */
.bingo-card {
    margin-bottom: 1rem;
    page-break-inside: avoid;
}

.bingo-table {
    width: 100% !important;
    margin: 0 auto;
}

.bingo-table th {
    background-color: #3273dc !important;
    color: white !important;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.75rem !important;
}

.bingo-cell {
    width: 20%;
    height: 60px;
    vertical-align: middle !important;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.5rem !important;
    border: 2px solid #dbdbdb !important;
}

.free-space {
    background-color: #48c774 !important;
    color: white !important;
    font-weight: bold;
}

/* Grid size variations */
.grid-3x3 .bingo-cell {
    width: 33.33%;
    height: 80px;
    font-size: 1.3rem;
}

.grid-3x3 .bingo-table th {
    font-size: 1.4rem;
    padding: 1rem !important;
}

.grid-4x4 .bingo-cell {
    width: 25%;
    height: 70px;
    font-size: 1.2rem;
}

.grid-4x4 .bingo-table th {
    font-size: 1.3rem;
}

/* Number drawing section */
#currentNumber {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Bingo letter styling */
.bingo-letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3273dc;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: letterPulse 0.6s ease-out;
}

/* Bingo number styling */
.bingo-number {
    font-size: 3rem;
    font-weight: bold;
    color: #363636;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: numberSlide 0.6s ease-out;
}

/* Number reveal animation */
.number-reveal {
    animation: revealNumber 0.6s ease-out;
}

@keyframes letterPulse {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes numberSlide {
    0% {
        transform: translateX(100px) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateX(0) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes revealNumber {
    0% {
        transform: scale(0.8);
        background-color: #ffeb3b;
        border-radius: 20px;
        box-shadow: 0 0 30px rgba(255, 235, 59, 0.8);
    }
    50% {
        transform: scale(1.1);
        background-color: #4caf50;
        box-shadow: 0 0 40px rgba(76, 175, 80, 0.6);
    }
    100% {
        transform: scale(1);
        background-color: transparent;
        box-shadow: none;
    }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tag letter styling */
.tag-letter {
    font-weight: bold;
    margin-right: 0.2rem;
    opacity: 0.8;
}

/* Enhanced tag animations */
.tag {
    animation: tagAppear 0.3s ease-out;
    border: 2px solid rgba(255,255,255,0.2);
}

@keyframes tagAppear {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    /* Default page setup */
    @page {
        margin: 0.3cm;
        size: A4;
    }
    
    /* Specific page setup for 4-card layout */
    .print-cards-4 {
        page: four-cards;
    }
    
    @page four-cards {
        margin: 0.2cm;
        size: A4;
    }

    /* Hide non-essential elements when printing */
    .navbar,
    .section > .container > .columns > .column > .box > #cardGenerationSection,
    .level,
    #gameSection,
    .help,
    .title,
    .subtitle {
        display: none !important;
    }

    /* Optimize card layout for printing */
    .section {
        padding: 0 !important;
        background-color: white !important;
        background: white !important;
    }
    
    /* Specific section styling for 4-card layout */
    .print-cards-4 .section {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: white !important;
        background: white !important;
    }
    
    /* Specific container styling for 4-card layout */
    body.print-cards-4 .section .container,
    .print-cards-4 .section .container,
    .print-cards-4 .container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .box {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .columns {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* Specific styling for 4-card layout columns */
    .print-cards-4.columns {
        margin: 0 !important;
        padding: 0 !important;
        width: calc(100vw - 0.6cm) !important;
        max-width: none !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Ensure full width usage and white background */
    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: white !important;
        background: white !important;
    }
    
    /* Force full width for 4-card layout */
    .print-cards-4 * {
        box-sizing: border-box !important;
    }
    
    .print-cards-4 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Override all Bulma container max-width restrictions */
    @media print {
        body.print-cards-4 .container,
        .print-cards-4 .container {
            max-width: none !important;
            width: 100% !important;
        }
    }

    /* Base column styling */
    .column {
        padding: 0.25rem !important;
    }
    
    /* Specific column padding for 4-card layout */
    .print-cards-4 .column {
        padding: 0.25rem !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        box-sizing: border-box !important;
    }

    /* 1 card per A4 page - Large size */
    .print-cards-1 .column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        page-break-after: always;
    }
    
    .print-cards-1 .bingo-card {
        border: 3px solid #000 !important;
        padding: 1.8rem !important;
        margin: 2rem auto !important;
        page-break-inside: avoid;
        width: calc(90% - 2rem) !important;
        box-sizing: border-box !important;
        height: calc(90vh - 4rem) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .print-cards-1 .bingo-table {
        font-size: 1.8rem !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    .print-cards-1 .bingo-table th {
        background-color: #000 !important;
        color: white !important;
        padding: 0.8rem !important;
        font-size: 2rem !important;
        height: 80px !important;
        vertical-align: middle !important;
    }
    
    .print-cards-1 .bingo-cell {
        height: 80px !important;
        font-size: 1.8rem !important;
        padding: 0.8rem !important;
        border: 2px solid #000 !important;
        vertical-align: middle !important;
    }
    
    .print-cards-1 .title {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    /* 2 cards per A4 page - Vertical layout */
    .print-cards-2 .column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .print-cards-2 .bingo-card {
        border: 2px solid #000 !important;
        padding: 0.8rem !important;
        margin: 0.8rem auto !important;
        page-break-inside: avoid;
        width: calc(95% - 1.6rem) !important;
        box-sizing: border-box !important;
        height: calc(45vh - 1.6rem) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .print-cards-2 .bingo-table {
        font-size: 1.2rem !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    .print-cards-2 .bingo-table th {
        background-color: #000 !important;
        color: white !important;
        padding: 0.4rem !important;
        font-size: 1.3rem !important;
        height: 55px !important;
        vertical-align: middle !important;
    }
    
    .print-cards-2 .bingo-cell {
        height: 55px !important;
        font-size: 1.2rem !important;
        padding: 0.4rem !important;
        border: 2px solid #000 !important;
        vertical-align: middle !important;
    }
    
    .print-cards-2 .title {
        font-size: 1.3rem !important;
        margin-bottom: 0.7rem !important;
        text-align: center !important;
    }
    
    /* Remove automatic page breaks for 2 cards to prevent empty pages */
    .print-cards-2 .column:nth-child(2n):not(:last-child) {
        page-break-after: always;
    }

    /* 4 cards per A4 page - Small size - styles defined above */
    
    .print-cards-4 .bingo-card {
        border: 2px solid #000 !important;
        padding: 0.2rem !important;
        margin: 0.3rem !important;
        page-break-inside: avoid;
        width: calc(100% - 0.6rem) !important;
        box-sizing: border-box !important;
        height: calc(48vh - 1rem) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        max-width: 100% !important;
    }
    
    .print-cards-4 .bingo-table {
        font-size: 1rem !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    .print-cards-4 .bingo-table th {
        background-color: #000 !important;
        color: white !important;
        padding: 0.3rem !important;
        font-size: 1.1rem !important;
        height: 45px !important;
        vertical-align: middle !important;
    }
    
    .print-cards-4 .bingo-cell {
        height: 45px !important;
        font-size: 1rem !important;
        padding: 0.3rem !important;
        border: 1px solid #000 !important;
        vertical-align: middle !important;
    }
    
    .print-cards-4 .title {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
        text-align: center !important;
    }
    
    /* Remove automatic page breaks for 4 cards to prevent empty pages */
    .print-cards-4 .column:nth-child(4n):not(:last-child) {
        page-break-after: always;
    }



    /* Common print styles */
    .free-space {
        background-color: #ccc !important;
        color: #000 !important;
    }

    /* Ensure proper spacing */
    body {
        font-size: 12pt !important;
        line-height: 1.2 !important;
    }

    /* Grid size print adjustments */
    .grid-3x3 .bingo-cell {
        height: 100px !important;
        font-size: 1.4rem !important;
    }

    .grid-4x4 .bingo-cell {
        height: 80px !important;
        font-size: 1.2rem !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bingo-table {
        font-size: 0.9rem;
    }

    .bingo-cell {
        height: 50px;
        font-size: 1rem;
    }

    .bingo-table th {
        font-size: 1rem;
        padding: 0.5rem;
    }

    /* Seadistusvaate nupud väiksemaks mobiilis */
    #cardGenerationSection .button.is-large {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Preview layout for screen display - always 2 cards per row */
/* Uses default Bulma responsive classes: is-full-mobile is-half-tablet is-half-desktop */

/* Input validation styling */
.input:invalid {
    border-color: #ff3860;
}

.input:invalid:focus {
    box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25);
}

/* Loading state */
.button[disabled] {
    cursor: not-allowed;
}

/* Enhanced draw number button */
#drawNumber {
    background: linear-gradient(45deg, #3273dc, #48c774);
    border: none;
    box-shadow: 0 4px 15px rgba(50, 115, 220, 0.3);
    transition: all 0.3s ease;
}

#drawNumber:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 115, 220, 0.4);
    background: linear-gradient(45deg, #2366d1, #3ec46d);
}

#drawNumber:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(50, 115, 220, 0.3);
}

/* Current number display enhancement */
#currentNumberDisplay .notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Elegant number reveal for drawing page */
.current-number-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 3rem;
}

.current-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bingo-letter-large {
    font-size: 4rem;
    font-weight: 700;
    color: #3273dc;
    opacity: 0.7;
    animation: letterFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bingo-number-large {
    font-size: 6rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -2px;
    animation: numberPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Elegant reveal animation */
.number-reveal-spectacular {
    animation: elegantReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

@keyframes letterFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 0.7;
        transform: translateX(0);
    }
}

@keyframes numberPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes elegantReveal {
    0% {
        transform: scale(0.95);
        box-shadow: 0 5px 20px rgba(50, 115, 220, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 20px 50px rgba(50, 115, 220, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    }
}

/* Drawn numbers grid styling */
.drawn-numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
}

.drawn-number-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    animation: itemFadeIn 0.3s ease-out;
}

@keyframes itemFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.drawn-number-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Newest number highlight */
.drawn-number-item.newest-number {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: newestPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes newestPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.drawn-number-item.is-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.drawn-number-item.is-warning {
    background: linear-gradient(135deg, #ffd93d, #f9c74f);
    color: #333;
}

.drawn-number-item.is-info {
    background: linear-gradient(135deg, #4dabf7, #339af0);
    color: white;
}

.drawn-number-item.is-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.drawn-number-item.is-primary {
    background: linear-gradient(135deg, #748ffc, #5c7cfa);
    color: white;
}

.number-order {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.7;
    margin-right: 0.4rem;
    min-width: 18px;
}

.number-letter {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 0.2rem;
    opacity: 0.9;
}

.number-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Color coding for number ranges */
.tag.is-danger {
    background-color: #ff3860 !important; /* B: 1-15 */
}

.tag.is-warning {
    background-color: #ffdd57 !important; /* I: 16-30 */
    color: #000 !important;
}

.tag.is-info {
    background-color: #3298dc !important; /* N: 31-45 */
}

.tag.is-success {
    background-color: #48c774 !important; /* G: 46-60 */
}

.tag.is-primary {
    background-color: #3273dc !important; /* O: 61-75 */
}

/* Fullscreen mode styles */
.fullscreen-mode {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%) !important;
    padding: 2rem !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fullscreen-mode .box {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.fullscreen-mode .current-number-card {
    transform: scale(1.2);
    margin: 2rem auto;
    padding: 3rem 4rem;
}

.fullscreen-mode .bingo-letter-large {
    font-size: 5rem;
}

.fullscreen-mode .bingo-number-large {
    font-size: 9rem;
}

.fullscreen-mode .drawn-number-item {
    padding: 0.6rem 1rem;
}

.fullscreen-mode .drawn-number-item.newest-number {
    transform: scale(1.15);
}

.fullscreen-mode #drawNumber {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
}

/* Fullscreen hint text */
.fullscreen-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   MODERN BINGO DRAWING PAGE STYLES
   ======================================== */

/* Main drawing section */
.bingo-drawing-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 52px);
    padding: 1.5rem !important;
}

/* Toolbar */
.drawing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.toolbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.drawing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Main content */
.drawing-main {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Current number display */
.current-number-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.current-number-card {
    background: white;
    border-radius: 24px;
    padding: 2rem 4rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    text-align: center;
}

.current-number-value {
    font-size: 8rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    letter-spacing: -2px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    text-align: center;
}

.current-number-value .current-number-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.current-number-value .bingo-letter-large {
    font-size: 2.5rem;
    color: #94a3b8;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    animation: letterSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-self: center;
}

.current-number-value .bingo-number-large {
    font-size: 8rem;
    color: #1a1a2e;
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    animation: numberPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes letterSlideIn {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Draw button area */
.draw-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.draw-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.draw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.draw-button:active {
    transform: translateY(0);
}

.draw-counter {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

/* Settings panel */
.settings-panel {
    width: 100%;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.settings-content {
    padding: 1rem;
    background: #f8fafc;
}

/* Settings button active state */
#settingsBtn.is-active {
    background: #e2e8f0;
}

/* Drawn numbers section */
.drawn-numbers-section {
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    min-height: 120px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.drawn-numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
    width: 100%;
}

.empty-state i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Drawn number items - minimal style */
.drawn-number-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    transition: all 0.15s ease;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.drawn-number-item.newest-number {
    transform: scale(1.1);
    background: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drawn-number-item:hover {
    background: #e2e8f0;
}

/* Override color classes for neutral look */
.drawn-number-item.is-danger,
.drawn-number-item.is-warning,
.drawn-number-item.is-info,
.drawn-number-item.is-success,
.drawn-number-item.is-primary {
    background: #f1f5f9;
    color: #334155;
}

.drawn-number-item.newest-number.is-danger,
.drawn-number-item.newest-number.is-warning,
.drawn-number-item.newest-number.is-info,
.drawn-number-item.newest-number.is-success,
.drawn-number-item.newest-number.is-primary {
    background: #e2e8f0;
    color: #1e293b;
}

.number-order {
    font-size: 0.6rem;
    opacity: 0.5;
    margin-right: 0.15rem;
}

.number-letter {
    font-size: 0.75rem;
    opacity: 0.6;
}

.number-value {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Keyboard hints */
.keyboard-hints {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.keyboard-hints kbd {
    background: #e2e8f0;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

/* ========================================
   FULLSCREEN MODE - MODERN
   ======================================== */

.fullscreen-mode.bingo-drawing-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 1.5rem !important;
    min-height: 100vh;
    overflow-y: auto;
}

.fullscreen-mode .drawing-main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.fullscreen-mode .drawing-toolbar {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.fullscreen-mode .draw-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.fullscreen-mode .toolbar-left .button,
.fullscreen-mode .toolbar-right .button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
}

.fullscreen-mode .toolbar-left .button:hover,
.fullscreen-mode .toolbar-right .button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-mode .current-number-wrapper {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.fullscreen-mode .current-number-card {
    background: white;
    padding: 2rem 4rem;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.fullscreen-mode .current-number-value {
    font-size: 10rem;
}

.fullscreen-mode .current-number-value .bingo-letter-large {
    font-size: 3rem;
}

.fullscreen-mode .current-number-value .bingo-number-large {
    font-size: 10rem;
}

.fullscreen-mode .draw-button-wrapper {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.fullscreen-mode .draw-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.fullscreen-mode .settings-panel {
    display: none;
}

.fullscreen-mode .drawn-numbers-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.fullscreen-mode .drawn-number-item,
.fullscreen-mode .drawn-number-item.is-danger,
.fullscreen-mode .drawn-number-item.is-warning,
.fullscreen-mode .drawn-number-item.is-info,
.fullscreen-mode .drawn-number-item.is-success,
.fullscreen-mode .drawn-number-item.is-primary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.fullscreen-mode .drawn-number-item.newest-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.fullscreen-mode .keyboard-hints {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    margin-top: 1rem;
}

.fullscreen-mode .keyboard-hints kbd {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.fullscreen-mode .empty-state {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .current-number-value {
        font-size: 5rem;
    }
    
    .current-number-value .bingo-letter-large {
        font-size: 1.5rem;
    }
    
    .current-number-value .bingo-number-large {
        font-size: 5rem;
    }
    
    .current-number-card {
        padding: 1.5rem 2rem;
    }
    
    .drawing-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .toolbar-center {
        position: static;
        transform: none;
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .fullscreen-mode .current-number-value {
        font-size: 6rem;
    }
    
    .fullscreen-mode .current-number-value .bingo-letter-large {
        font-size: 2rem;
    }
    
    .fullscreen-mode .current-number-value .bingo-number-large {
        font-size: 6rem;
    }
    
    .fullscreen-mode .current-number-card {
        padding: 1.5rem 2rem;
    }
}

/* ========================================
   TUMEDA REŽIIMI TUGI
   Ainult loetavuse parandus tumedas — heledat vaadet ei muudeta.
   Aktsentvärvid (sinine header, roheline free-space, värvilised sildid) säilivad.
   ======================================== */

/* Lahtri ääris — kasuta globaalset ääriste värvi */
[data-theme="dark"] .bingo-cell {
    border-color: var(--border-color) !important;
}

/* Loosimise sektsiooni taust ja number — tekstid heledaks */
[data-theme="dark"] .bingo-number {
    color: var(--text-primary);
}

/* Loosimislehe põhitaust */
[data-theme="dark"] .bingo-drawing-section {
    background: var(--bg-secondary);
}

/* Loosimise pealkiri ja loosija number — heledaks */
[data-theme="dark"] .drawing-title,
[data-theme="dark"] .current-number-value,
[data-theme="dark"] .current-number-value .bingo-number-large {
    color: var(--text-primary);
}

/* Praeguse numbri kaart — tume taust ja kontrastne vari */
[data-theme="dark"] .current-number-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

/* Sätete paneel ja sisu — tumedaks */
[data-theme="dark"] .settings-panel {
    background: var(--bg-card);
}
[data-theme="dark"] .settings-content {
    background: var(--bg-secondary);
}
[data-theme="dark"] #settingsBtn.is-active {
    background: var(--bg-hover);
}

/* Loositud numbrite sektsioon — tume taust */
[data-theme="dark"] .drawn-numbers-section {
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

/* Loositud numbri sildid (minimalistlik neutraalne stiil) — tumedad ja heleda tekstiga */
[data-theme="dark"] .drawn-number-item,
[data-theme="dark"] .drawn-number-item.is-danger,
[data-theme="dark"] .drawn-number-item.is-warning,
[data-theme="dark"] .drawn-number-item.is-info,
[data-theme="dark"] .drawn-number-item.is-success,
[data-theme="dark"] .drawn-number-item.is-primary {
    background: var(--bg-hover);
    color: var(--text-primary);
}
[data-theme="dark"] .drawn-number-item.newest-number,
[data-theme="dark"] .drawn-number-item.newest-number.is-danger,
[data-theme="dark"] .drawn-number-item.newest-number.is-warning,
[data-theme="dark"] .drawn-number-item.newest-number.is-info,
[data-theme="dark"] .drawn-number-item.newest-number.is-success,
[data-theme="dark"] .drawn-number-item.newest-number.is-primary {
    background: var(--accent-color);
    color: #fff;
}
[data-theme="dark"] .drawn-number-item:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Klaviatuuri vihjete kbd — tumedaks */
[data-theme="dark"] .keyboard-hints kbd {
    background: var(--bg-hover);
    color: var(--text-secondary);
}