/* ========================================
   BASE CSS - ULTRA COMPATTO FINALE
   ======================================== */

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

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

/* ⭐ VARIABILI FINALI */
:root {
    /* Colori principali */
    --color-primary: #00d4ff;
    --color-secondary: #ffcc00;
    --color-accent: #ff6b9d;
    
    /* Colori classi */
    --color-naturalistiche: #44ff44;
    --color-mediche: #ff4444;
    --color-digitali: #4444ff;
    --color-umanistiche: #ffcc00;
    --color-cognitive: #ff00ff;
    
    /* ⭐ CARTE PICCOLE FINALI */
    --card-width: 66px;
    --card-height: 92px;
    --card-border-radius: 6px;
    
    /* Zoom */
    --zoom-scale: 3.5;
    --zoom-offset-y: -120px;
    
    /* ⭐ SPACING MINI */
    --gap-small: 2px;
    --gap-medium: 4px;
    --gap-large: 6px;
    
    /* Z-index layers */
    --z-background: 0;
    --z-field: 1;
    --z-cards: 10;
    --z-hand: 20;
    --z-dragging: 100;
    --z-ui: 500;
    --z-overlay: 1000;
    --z-modal: 1500;
    --z-exit: 2000;
    
    /* Font */
    --font-main: 'Edo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* BODY */
body {
    font-family: var(--font-main);
    overflow: hidden;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* BACKGROUND FISSO */
#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    background: url('../assets/images/MOOD__2_.png') center/cover no-repeat;
}

#background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
}

/* PULSANTE X ESCI */
#exit-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-exit);
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #fff;
}

#exit-btn:hover {
    background: rgba(255, 50, 50, 1);
    transform: scale(1.1);
}

/* GAME CONTAINER */
#game-container {
    position: relative;
    z-index: var(--z-field);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0px;              /* ⭐ ZERO padding */
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

#game-container.visible {
    opacity: 1;
}

/* ⭐ HEADER COMPATTISSIMO */
#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;         /* ⭐ MINI */
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin-bottom: 3px;        /* ⭐ QUASI ZERO */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    height: 45px;              /* ⭐ FISSO MINI */
}

#turn-info {
    font-size: 13px;           /* ⭐ PICCOLO */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#phase-indicator {
    font-size: 15px;           /* ⭐ PICCOLO */
    color: var(--color-primary);
    font-weight: bold;
    letter-spacing: 0.5px;
}

#cfu-info {
    margin-right: 80px;
    font-size: 13px;           /* ⭐ PICCOLO */
    font-weight: bold;
}

/* Container bottoni a destra */
#phase-buttons-container {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}
