/* Menu Screen - Pixel Perfect Match to fastloto365.com */
#menu-screen {
    background: #000000;
    flex-direction: column;
    position: relative;
}

/* Casino panorama side backgrounds like original */
#menu-screen::before,
#menu-screen::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 0;
}

#menu-screen::before {
    left: 0;
    background: linear-gradient(90deg,
        rgba(60, 80, 120, 0.15) 0%,
        rgba(40, 60, 100, 0.1) 30%,
        transparent 100%);
}

#menu-screen::after {
    right: 0;
    background: linear-gradient(270deg,
        rgba(60, 100, 140, 0.15) 0%,
        rgba(40, 80, 120, 0.1) 30%,
        transparent 100%);
}

/* Games Container - exact positioning from original 1280x720 */
.games-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 145px;
}

/* Games Grid - exact 2 rows layout matching original (5 slots: 2 top, 3 bottom) */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 800px;
}

.games-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Game Card - Oval shape with metallic frame like fastloto365 */
.game-card {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.game-card:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 12px rgba(100, 150, 200, 0.4));
}

.game-card-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Game card uses actual extracted image from original - exact sizes */
.game-card-image {
    display: block;
}

.game-card-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2a3545 0%, #1a2535 50%, #0a1525 100%);
    border-radius: 50px;
    border: 4px solid #6a7a8a;
}

.game-card-fallback span {
    color: #e0c060;
    font-family: 'MyriadPro-BoldCond', sans-serif;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}

/* NEW badge - red corner badge */
.game-badge {
    position: absolute;
    top: 8px;
    left: 12px;
    background: linear-gradient(180deg, #ff3030 0%, #cc0000 100%);
    color: #fff;
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 5;
}

/* PLAY button - green button on right side of card */
.game-play-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #40c040 0%, #208020 50%, #106010 100%);
    border: 2px solid #60e060;
    border-radius: 4px;
    color: #fff;
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.15s ease;
    z-index: 5;
}

.game-play-btn:hover {
    background: linear-gradient(180deg, #50d050 0%, #30a030 50%, #208020 100%);
    border-color: #80ff80;
    box-shadow:
        0 0 10px rgba(64, 192, 64, 0.5),
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

/* First row cards (2 cards) - larger size */
.games-row:first-child .game-card-image {
    width: 280px;
    height: auto;
}

/* Second row cards (3 cards) - smaller size */
.games-row:last-child .game-card-image {
    width: 220px;
    height: auto;
}

.games-row:last-child .game-play-btn {
    font-size: 11px;
    padding: 5px 10px;
}

/* Bottom Panel Container - Fixed at bottom */
.bottom-panel-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

/* Header Bar - "PLAY THE GAME" - dark blue-gray like original */
.menu-header-bar {
    height: 24px;
    background: linear-gradient(180deg,
        #384858 0%,
        #283848 50%,
        #1a2838 100%);
    border-top: 2px solid #0088cc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 12px;
    color: #7888a0;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Main Bottom Panel - silver metallic gray like original fastloto365 */
.menu-bottom-panel {
    height: 52px;
    background: linear-gradient(180deg,
        #9098a0 0%,
        #8890a0 8%,
        #788098 18%,
        #687090 32%,
        #586080 48%,
        #485068 68%,
        #384058 88%,
        #283048 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-top: 2px solid #a0a8b0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Left Section - Credit Display */
.panel-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Credit Value Box - "0.01 AZN" - exact match to original fastloto365 */
.denomination {
    background: linear-gradient(180deg, #1a1a20 0%, #08080c 100%);
    border: 2px solid #c0a040;
    border-radius: 3px;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

.denom-label {
    font-family: 'MyriadPro-Cond', Arial, sans-serif;
    font-size: 7px;
    color: rgba(120, 130, 140, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.denom-value {
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #e8c858;
    line-height: 1.1;
}

.denom-currency {
    font-family: 'MyriadPro-Cond', Arial, sans-serif;
    font-size: 8px;
    color: #e8c858;
    text-transform: uppercase;
    line-height: 1;
}

/* Credit Info Box - exact match to original fastloto365 */
.credit-display {
    background: linear-gradient(180deg, #0a0c10 0%, #040608 100%);
    border: 1px solid #252830;
    border-radius: 2px;
    padding: 3px 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

.credit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 15px;
}

.credit-row .label {
    font-family: 'MyriadPro-Cond', Arial, sans-serif;
    font-size: 10px;
    color: rgba(180, 190, 200, 0.85);
    text-transform: uppercase;
    min-width: 65px;
}

.credit-row .value {
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #40e040;
    cursor: pointer;
    min-width: 30px;
    text-align: right;
}

.credit-row .currency {
    font-family: 'MyriadPro-Cond', Arial, sans-serif;
    font-size: 8px;
    color: rgba(140, 150, 160, 0.75);
    margin-left: 4px;
}

/* Center Section */
.panel-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language Button - dark box on panel - fastloto365 style */
.language-selector {
    width: 40px;
    height: 38px;
    background: linear-gradient(180deg, #0c1018 0%, #060810 100%);
    border: 1px solid #202830;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.15s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.7);
}

.language-selector:hover {
    background: linear-gradient(180deg, #141820 0%, #0c1018 100%);
    border-color: #303840;
}

.flag-icon {
    width: 22px;
    height: 14px;
    object-fit: cover;
    border-radius: 1px;
}

#lang-text {
    font-family: 'MyriadPro-Cond', Arial, sans-serif;
    font-size: 7px;
    color: rgba(160, 170, 180, 0.75);
}

/* Icon Buttons - dark box on panel - fastloto365 style */
.icon-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, #0c1018 0%, #060810 100%);
    border: 1px solid #202830;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(140, 160, 180, 0.85);
    font-size: 15px;
    transition: all 0.15s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.7);
}

.icon-btn:hover {
    background: linear-gradient(180deg, #141820 0%, #0c1018 100%);
    border-color: #303840;
}

/* Sound Toggle - circular button - fastloto365 style */
.sound-btn {
    width: 30px;
    height: 30px;
    background: linear-gradient(180deg, #606870 0%, #505860 100%);
    border: 2px solid #606a78;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.2),
        inset 0 -1px 2px rgba(0,0,0,0.3);
}

.sound-btn .sound-icon {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #90a0b0 0%, #708090 100%);
    border-radius: 50%;
}

.sound-btn:hover {
    background: linear-gradient(180deg, #707880 0%, #606870 100%);
    border-color: #707a88;
}

.sound-btn.muted {
    background: linear-gradient(180deg, #703030 0%, #502020 100%);
    border-color: #804040;
}

.sound-btn.muted .sound-icon {
    background: radial-gradient(circle, #ff6060 0%, #cc4040 100%);
}

/* Settings Button - green gear - fastloto365 style */
.settings-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, #204830 0%, #143020 100%);
    border: 1px solid #2a5838;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40c060;
    font-size: 18px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.settings-btn:hover {
    background: linear-gradient(180deg, #285838 0%, #1c4028 100%);
}

/* Right Section - Navigation */
.panel-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Nav Buttons - BACK/NEXT - matching original fastloto365 */
.nav-btn {
    height: 30px;
    padding: 0 14px;
    background: linear-gradient(180deg,
        #a8b0b8 0%,
        #98a0a8 15%,
        #889098 35%,
        #788088 55%,
        #687078 75%,
        #586068 100%);
    border: 1px solid #788090;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #1a1a20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 1px 2px rgba(0,0,0,0.25);
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(180deg,
        #b8c0c8 0%,
        #a8b0b8 15%,
        #98a0a8 35%,
        #889098 55%,
        #788088 75%,
        #687078 100%);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-arrow {
    font-size: 14px;
    color: #00dd44;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,221,68,0.4);
}

/* Ticker Container - exact match */
.ticker-bar {
    height: 25px;
    background: #000000;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 25s linear infinite;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    font-family: 'MyriadPro-BoldCond', sans-serif;
    font-size: 15px;
}

/* Ticker colors - exact match to original */
.ticker-red {
    color: #ff3333;
}

.ticker-yellow {
    color: #ffcc00;
}

.ticker-green {
    color: #00cc66;
}

.ticker-white {
    color: #ffffff;
}

@keyframes tickerScroll {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-50%); }
}

/* Fullscreen Button - exact match */
.fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(60, 80, 100, 0.7);
    border: 2px solid rgba(100, 130, 160, 0.5);
    border-radius: 4px;
    color: rgba(180, 200, 220, 0.9);
    font-size: 18px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.fullscreen-btn:hover {
    background: rgba(80, 100, 120, 0.8);
    border-color: rgba(120, 150, 180, 0.7);
}

/* Credits Modal */
.credits-content {
    min-width: 300px;
}

.credits-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.credit-add-btn {
    background: linear-gradient(180deg, #3a5a3a 0%, #2a4a2a 100%);
    border: 2px solid #4a6a4a;
    border-radius: 8px;
    padding: 12px;
    color: #80ff80;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.credit-add-btn:hover {
    background: linear-gradient(180deg, #4a6a4a 0%, #3a5a3a 100%);
    transform: scale(1.02);
}

/* Language Modal */
.language-content {
    min-width: 280px;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 100%);
    border: 2px solid #4a5a6a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: linear-gradient(180deg, #4a5a6a 0%, #3a4a5a 100%);
    border-color: #5a6a7a;
}

.language-option.active {
    background: linear-gradient(180deg, #3a5a4a 0%, #2a4a3a 100%);
    border-color: #4a8a5a;
}

.lang-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-name {
    font-family: 'MyriadPro-BoldCond', sans-serif;
    font-size: 16px;
    color: #c0d0e0;
}

/* Responsive - Match original breakpoints */
@media (max-width: 1100px) {
    .games-row {
        gap: 30px;
    }

    .games-row:first-child .game-card-image {
        width: 320px;
    }

    .games-row:last-child .game-card-image {
        width: 300px;
    }
}

@media (max-width: 900px) {
    .games-grid {
        gap: 10px;
    }

    .games-row {
        gap: 10px;
    }

    .games-row:first-child .game-card-image {
        width: 240px;
    }

    .games-row:last-child .game-card-image {
        width: 180px;
    }

    .credit-display {
        display: none;
    }
}

@media (max-width: 600px) {
    .games-container {
        padding-bottom: 140px;
    }

    .games-row:first-child .game-card-image,
    .games-row:last-child .game-card-image {
        width: 280px;
    }

    .menu-bottom-panel {
        padding: 0 10px;
    }

    .panel-left {
        gap: 6px;
    }

    .denomination {
        padding: 4px 8px;
        min-width: 55px;
    }

    .denom-value {
        font-size: 16px;
    }

    .nav-btn {
        padding: 0 12px;
        font-size: 13px;
        height: 34px;
    }

    .icon-btn,
    .language-selector {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .games-row:first-child .game-card-image,
    .games-row:last-child .game-card-image {
        width: 260px;
    }

    .bottom-panel-container {
        height: auto;
    }

    .menu-header-bar {
        height: 24px;
    }

    .header-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .menu-bottom-panel {
        height: auto;
        padding: 8px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .panel-left,
    .panel-center,
    .panel-right {
        justify-content: center;
    }

    .ticker-bar {
        height: 22px;
    }

    .ticker-item {
        font-size: 13px;
    }
}
