/* Fonts from original site */
@font-face {
    font-family: 'MyriadPro-BoldCond';
    src: url('../assets/fonts/MyriadPro-BoldCond.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MyriadPro-Cond';
    src: url('../assets/fonts/MyriadPro-Cond.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyriadPro-Regular';
    src: url('../assets/fonts/MyriadPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SFUIDisplay-Semibold';
    src: url('../assets/fonts/SFUIDisplay-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Reset - exact match to original */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'MyriadPro-Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 100%;
    background: #000000;
    color: rgba(255, 255, 255, 1);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000000;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #000000;
}

.screen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* ========================================
   LOADING SCREEN - Pixel Perfect Match
   ======================================== */
#loading-screen {
    background: #000000;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loading-content {
    position: relative;
    width: 400px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Casino background image (cards, chips, roulette) */
.loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 240px;
    background: url('../assets/loading-casino-bg.png') center/contain no-repeat;
    z-index: 1;
}

/* Segmented circular progress indicator - like original */
.loading-progress {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    z-index: 10;
}

.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #0a1520;
    stroke-width: 8;
    stroke-dasharray: 8 4;
}

.progress-bar {
    fill: none;
    stroke: #2090d0;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    filter: drop-shadow(0 0 6px rgba(32, 144, 208, 0.8));
    transition: stroke-dashoffset 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.progress-percent {
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(32, 144, 208, 0.6);
}

.progress-symbol {
    font-family: 'MyriadPro-BoldCond', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin-left: 2px;
    text-shadow: 0 0 10px rgba(32, 144, 208, 0.6);
}

/* Hide old loading elements */
.loading-logo,
.loading-title,
.loading-bar-container,
.loading-bar,
.loading-text,
.loading-spinner,
.spinner-ring {
    display: none !important;
}

/* ========================================
   FULLSCREEN BUTTON - Exact Match
   ======================================== */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(40, 50, 65, 0.85);
    border: 2px solid rgba(80, 100, 130, 0.7);
    border-radius: 4px;
    color: rgba(180, 200, 220, 1);
    font-size: 18px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.fullscreen-btn:hover {
    background: rgba(55, 70, 90, 0.95);
    border-color: rgba(100, 125, 160, 0.85);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

/* Fullscreen icon - using text content only, no pseudo-elements */
.fullscreen-btn::before,
.fullscreen-btn::after {
    display: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, #3e4e6e 0%, #2a3a5a 50%, #1a2a4a 100%);
    border-radius: 10px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    border: 2px solid rgba(100, 130, 170, 0.5);
    box-shadow: 0 0 30px rgba(36, 137, 193, 0.4);
}

/* Scrollbar - minimal */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 130, 170, 0.5);
    border-radius: 3px;
}
