@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&family=Share+Tech+Mono&family=Orbitron:wght@500&display=swap');

:root {
    --Sfondotv: #121212;
    --Sfondonero: #000000;
    --JuniperPink: #e2a1de;
    --JuniperPurple: #1f204a;

    /* COLORI TWO PAW'S */
    --Neko: #00bf63;
    --Kobo: #ffde59;
}

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

}

body {
    background-color: var(--Sfondonero);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

h2 {
    margin: 0px;
    padding: 0px;
}

div {
    margin: 0px;
    padding: 0px;
}

/* ===== CONTAINER TV UNIVERSALE ===== */


.tv-container {
    position: relative;
    width: min(140vw, 1100px);
    height: min(250vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-frame {
    position: absolute;
    width: 200vh;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    object-fit: contain;
}

.tv-screen {
    position: absolute;
    width: 94%;
    height: 100%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -52%);
    background-color: var(--Sfondotv);
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
}

/* ===== MENU PRINCIPALE ===== */
.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.main-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

.main-menu .decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--Sfondotv);
    z-index: 1;
}

.main-menu .textContainer {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.game-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(90px, 5vw, 56px);
    font-weight: bold;
    color: var(--JuniperPink);
    text-align: center;
    margin-bottom: 12px;
}

.game-subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(20px, 2.2vw, 26px);
    /* più bilanciato col titolo */
    color: white;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    margin-top: 8px;
    margin-bottom: 20px;
}

.menu-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .menu-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

.menu-btn {
    color: var(--JuniperPink);
    background-color: var(--JuniperPurple);
    border: var(--JuniperPink) solid 2px;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: bold;
    min-width: 90px;
    text-align: center;
    box-sizing: border-box;
}

.menu-btn:hover {
    background-color: var(--JuniperPink);
    color: var(--JuniperPurple);
    transform: translateY(-2px);
}

/* ===== LAYOUT PRINCIPALE ===== */
.main-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 50;
}

.main-layout.show {
    opacity: 1;
    pointer-events: all;
}

/* ===== SEZIONE VISUAL NOVEL ===== */
.visual-novel-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: #090909;
    padding: 30px;
    box-sizing: border-box;
}

.game-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090909;
    transition: filter 0.3s ease;
}

.game-background.glitching {
    filter: brightness(1.5) contrast(1.2) saturate(1.5);
}

/* ===== PERSONAGGIO ===== */
.character {
    position: absolute;
    bottom: 31%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.character-image {
    width: 410px;

}

/* ===== IMMAGINE DI SFONDO (per i finali) ===== */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0; /* Sotto tutto */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bg-image.show {
    opacity: 1;
}

/* ===== CONTAINER GIOCO ===== */
.game-container {
    position: absolute;
    left: 3%;
    top: 64%;
    width: 95%;
    height: 35%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 15px 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(31, 32, 74, 0.85) 100%);
    border-radius: 10px;
    border: 2px solid var(--JuniperPink);
    box-shadow: 0 0 15px rgba(226, 161, 222, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.sectionTitle {
    font-family: 'Orbitron', sans-serif;
    color: var(--JuniperPink);
    font-size: clamp(18px, 1.6vw, 24px);
    /* più piccolo del sottotitolo */
    font-weight: bold;
    padding-top: 8px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.main-text {
    font-family: 'Share Tech Mono', monospace;
    color: white;
    font-size: clamp(16px, 1.4vw, 18px);
    /* leggermente più contenuto per lunghe letture */
    line-height: 1.4;
    overflow-y: auto;
    word-wrap: break-word;
    flex-grow: 1;
    flex-shrink: 4;
    padding-right: 10px;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--JuniperPink) rgba(31, 32, 74, 0.5);
    text-align: justify;
    padding-right: 20px; /* Spazio a destra per la scrollbar */
    padding-left: 10px; 
}

.main-text::-webkit-scrollbar {
    width: 10px;
}

.main-text::-webkit-scrollbar-track {
    background: rgba(31, 32, 74, 0.5);
    border-radius: 3px;
}

.main-text::-webkit-scrollbar-thumb {
    background: var(--JuniperPink);
    border-radius: 3px;
}

.main-text::-webkit-scrollbar-thumb:hover {
    background: rgba(226, 161, 222, 0.8);
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding-top: 10px;
    flex-shrink: 0;
    min-height: fit-content;
    max-height: 200px;
    overflow-y: auto; 
}

/* ===== BOTTONI ===== */
.btn {
    color: var(--JuniperPink);
    background-color: var(--JuniperPurple);
    border: var(--JuniperPink) solid 2px;
    border-radius: 6px;
    padding: 8px 12px; 
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(10px, 1.2vw, 14px); 
    font-weight: bold;
    min-width: 10px;
    text-align: center;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    z-index: 10;
    flex-shrink: 0;
    text-align: center;
}

.btn:hover {
    background-color: var(--JuniperPink);
    color: var(--JuniperPurple);
    transform: translateY(-1px); /* Effetto hover */
    box-shadow: 0 2px 6px rgba(226, 161, 222, 0.4); /* Ombra leggera sui bottoni */
}

/* ===== EFFETTO GLITCH TV ===== */
.tv-glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: black;
}

.tv-glitch-overlay.active {
    opacity: 1;
}

.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.6"/></svg>');
    animation: glitch-no-shake 0.5s infinite;
}

@keyframes glitch-no-shake {
    0% {
        filter: hue-rotate(0deg);
    }

    25% {
        filter: hue-rotate(90deg);
    }

    50% {
        filter: hue-rotate(180deg);
    }

    75% {
        filter: hue-rotate(270deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(226, 161, 222, 0.1) 2px,
            rgba(226, 161, 222, 0.1) 4px);
    animation: scan 0.1s infinite;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--JuniperPink);
    font-size: clamp(30px, 1.8vw, 22px);
    /* proporzionato ma meno invadente */

    text-shadow: 0 0 8px var(--JuniperPink);
    animation: pulse 1s infinite;
    text-align: center;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* === LOG CRONOLOGIA CHAT === */
#logOverlay {
    display: none;
    position: fixed !important;
    top: 10% !important;              
    left: 50%;             
    transform: translateX(-50%); 
    width: 60%;            
    height: 30%;
    max-width: 900px; /* Ho aggiunto una larghezza massima, non si sa mai! */         
    background-color: rgba(20, 20, 20, 0.85);
    color: var(--JuniperPink);
    padding: 1em;
    border: 2px solid var(--JuniperPink);
    overflow-y: auto;      
    z-index: 9999 !important;         
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    margin-left: 4px;
    border-radius: 10px 10px 10px 10px;
    font-family: 'Share Tech Mono', monospace;
    text-align: justify; /* Giustifica il testo */
}

#logOverlay.hidden {
    display: none;
}

.close-log-btn {
    position: sticky;
    top: 0;
    right: 0;
    align-self: flex-end;
    background-color: rgba(20, 20, 20, 0.85);
    border: 2px solid var(--JuniperPink);
    color: var(--JuniperPink);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1001;
}

.close-log-btn:hover {
    background-color: var(--JuniperPink);
    color: var(--JuniperPurple);
}

.log-content {
    flex-grow: 1;
    overflow-y: auto;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.3em;
    padding-right: 8px;
}

.log-entry {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--JuniperPink);
    padding-bottom: 8px;
}

.log-button-container {
    position: absolute;
    top: 10px;
    right: 50px;
    z-index: 1001;
}

.log-btn {
    background: rgba(31, 32, 74, 0.85);
    color: var(--JuniperPink);
    border: 2px solid var(--JuniperPink);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: clamp(12px, 1vw, 14px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.log-btn:hover {
    background: var(--JuniperPink);
    color: var(--JuniperPurple);
}

/* ===== SCHERMATA CREDITI ===== */

.credits-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.credits-screen.hidden {
    display: none;
}

/* Container TV per i crediti - stesso stile del menu principale */
.credits-tv-container {
    position: relative;

    width: min(140vw, 1100px);
    height: min(250vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Frame TV per i crediti - identico a .tv-frame */
.computer {
    position: absolute;
    width: 200vh;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    object-fit: contain;
}

/* Schermo TV per i crediti - simile a .tv-screen */
.credits-tv-screen {
    position: absolute;
    width: 70%;
    height: 75%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -52%);
    background-color: var(--Sfondonero);

    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
}

.credits-container {
    width: 100%;
    height: 100%;
    margin-left: 10px;
    margin-bottom: 3px;
    overflow-y: auto;
    color: white;
    border: 2px solid var(--Kobo);
    border-radius: 12px;
    background: black;
    display: flex;
    flex-direction: column;
}

/* ===== Due colonne ===== */
.credit-organaiser {
    display: flex;

    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 30px;
    flex: 1;
}

/* Colonna logo + testi logo */
.credits-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 200px;
}

/* Colonna testi crediti */
.text-credits {
    text-align: left;
    flex: 1;
}

.text-credits p {
    font-size: clamp(21px, 1.2vw, 16px);
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 3px;
    text-align: left;
}

/* ===== Logo e titoli ===== */
.logo-dim {
    width: 100%;
}

.company-name {
    color: var(--Neko);
    font-size: 37px;
    margin-top: 10px;
    font-family: 'Share Tech Mono', monospace;
}

.company-subtitle {
    color: var(--Kobo);
    font-size: clamp(30px, 1.2vw, 18px);
    margin-top: 5px;
    font-family: 'Share Tech Mono', monospace;
}

/* ===== Bottone ===== */
.btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 17px;
    position: relative;
    z-index: 2000;
}

.btn-credit {
    font-size: 17px;
    padding: 5px 10px;
    background-color: var(--Neko);
    color: var(--Kobo);
    border: var(--Kobo) 2px solid;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-credit:hover {
    color: var(--Neko);
    background-color: var(--Kobo);
}
/* ===== MEDIA QUERY PER SCHERMI MEDI (MacBook Air M1, etc.) ===== */
@media (max-width: 1440px) and (max-height: 900px) {
    .game-container {
        top: 55% !important;
        left: 10%;
        height: 38% !important;
            width: 83%;

    }
    
    .character {
        bottom: 32% !important;
    }
    
    .character-image {
        width: 335px !important;
    }

    .bg-image {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 100%;
  
}
}

@media (max-width: 1280px) and (max-height: 800px) {
    .game-container {
        top: 58% !important;
        height: 40% !important;
        padding: 10px 30px !important;
    }
    
    .character {
        bottom: 37% !important;
    }
    
    .character-image {
        width: 320px !important;
    }
}

/* ===== MEDIA QUERY PER SCHERMI PICCOLI ===== */
@media (max-width: 1024px) {
    .game-container {
        top: 55% !important;
        height: 42% !important;
        padding: 8px 20px !important;
    }
    
    .character {
        bottom: 40% !important;
    }
    
    .character-image {
        width: 280px !important;
    }
    
    .main-text {
        font-size: clamp(14px, 1.2vw, 16px) !important;
        line-height: 1.3 !important;
    }
    
    .btn-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-height: 150px !important;
    }
}

/* ===== MEDIA QUERY PER MOBILE ===== */
@media (max-width: 768px) {
    .game-container {
        top: 50% !important;
        height: 48% !important;
        padding: 6px 15px !important;
        left: 2% !important;
        width: 96% !important;
    }
    
    .character {
        bottom: 45% !important;
    }
    
    .character-image {
        width: 220px !important;
    }
    
    .sectionTitle {
        font-size: clamp(16px, 1.4vw, 18px) !important;
        margin-bottom: 5px !important;
    }
    
    .main-text {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
    
    .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ===== MEDIA QUERY PER SCHERMI MEDI (MacBook Air M1, etc.) ===== */
@media (max-width: 1440px) and (max-height: 900px) {
    .game-container {
        top: 55% !important;
        left: 10% !important;
        height: 38% !important;
        width: 83% !important;
    }
    
    .character {
        bottom: 32% !important;
    }
    
    .character-image {
        width: 335px !important;
    }

    .bg-image {
        position: absolute;
        top: 10% !important;
        left: 5% !important;
        width: 90% !important;
        height: 100% !important;
    }
}

/* ===== MEDIA QUERY PER SCHERMI MEDIO-PICCOLI ===== */
@media (max-width: 1280px) and (max-height: 800px) {
    .game-container {
        top: 53% !important;
        left: 8% !important;
        height: 40% !important;
        width: 86% !important;
        padding: 12px 40px !important;
    }
    
    .character {
        bottom: 34% !important;
    }
    
    .character-image {
        width: 300px !important;
    }

    .bg-image {
        top: 8% !important;
        left: 4% !important;
        width: 92% !important;
        height: 100% !important;
    }
}

/* ===== MEDIA QUERY PER SCHERMI PICCOLI ===== */
@media (max-width: 1024px) {
    .game-container {
        top: 50% !important;
        left: 6% !important;
        height: 42% !important;
        width: 88% !important;
        padding: 10px 30px !important;
    }
    
    .character {
        bottom: 36% !important;
    }
    
    .character-image {
        width: 260px !important;
    }

    .bg-image {
        top: 6% !important;
        left: 3% !important;
        width: 94% !important;
        height: 100% !important;
    }
    
    .main-text {
        font-size: clamp(14px, 1.2vw, 16px) !important;
        line-height: 1.3 !important;
    }
    
    .btn-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-height: 150px !important;
    }
}

/* ===== MEDIA QUERY PER TABLET ===== */
@media (max-width: 768px) {
    .game-container {
        top: 48% !important;
        left: 4% !important;
        height: 45% !important;
        width: 92% !important;
        padding: 8px 20px !important;
    }
    
    .character {
        bottom: 38% !important;
    }
    
    .character-image {
        width: 220px !important;
    }

    .bg-image {
        top: 4% !important;
        left: 2% !important;
        width: 96% !important;
        height: 100% !important;
    }
    
    .sectionTitle {
        font-size: clamp(16px, 1.4vw, 18px) !important;
        margin-bottom: 5px !important;
    }
    
    .main-text {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
    
    .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ===== MEDIA QUERY PER MOBILE ===== */
@media (max-width: 480px) {
    .game-container {
        top: 45% !important;
        left: 2% !important;
        height: 48% !important;
        width: 96% !important;
        padding: 6px 15px !important;
    }
    
    .character {
        bottom: 40% !important;
    }
    
    .character-image {
        width: 180px !important;
    }

    .bg-image {
        top: 2% !important;
        left: 1% !important;
        width: 98% !important;
        height: 100% !important;
    }
    
    .sectionTitle {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }
    
    .main-text {
        font-size: 12px !important;
        line-height: 1.1 !important;
    }
    
    .btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

/* ===== MEDIA QUERY PER ALTEZZE SPECIFICHE ===== */
@media (max-height: 700px) {
    .game-container {
        height: 42% !important;
        top: 52% !important;
    }
    
    .character {
        bottom: 35% !important;
    }
    
    .character-image {
        width: 240px !important;
    }
}

@media (max-height: 600px) {
    .game-container {
        height: 46% !important;
        top: 48% !important;
    }
    
    .character {
        bottom: 38% !important;
    }
    
    .character-image {
        width: 200px !important;
    }
}

@media (max-height: 500px) {
    .game-container {
        height: 50% !important;
        top: 45% !important;
    }
    
    .character {
        display: none !important;
    }
}
/* ===== MEDIA QUERY PER SCHERMI LARGE (2K, 1440p) ===== */
@media (min-width: 1921px) and (min-height: 1081px) {
    .tv-container {
        width: min(160vw, 1400px) !important;
        height: min(280vh, 900px) !important;
    }
    
    .game-container {
        top: 58% !important;
        left: 8% !important;
        height: 36% !important;
        width: 86% !important;
        padding: 20px 70px !important;
    }
    
    .character {
        bottom: 30% !important;
    }
    
    .character-image {
        width: 450px !important;
    }

    .bg-image {
        top: 8% !important;
        left: 3% !important;
        width: 94% !important;
        height: 100% !important;
    }
    
    .sectionTitle {
        font-size: clamp(22px, 1.8vw, 28px) !important;
        margin-bottom: 15px !important;
    }
    
    .main-text {
        font-size: clamp(18px, 1.6vw, 22px) !important;
        line-height: 1.5 !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: clamp(14px, 1.4vw, 18px) !important;
    }
    
    .game-title {
        font-size: clamp(110px, 6vw, 80px) !important;
    }
    
    .game-subtitle {
        font-size: clamp(24px, 2.5vw, 32px) !important;
    }
}

/* ===== MEDIA QUERY PER SCHERMI EXTRA LARGE (4K, 2160p) ===== */
@media (min-width: 2561px) and (min-height: 1441px) {
    .tv-container {
        width: min(180vw, 1800px) !important;
        height: min(320vh, 1200px) !important;
    }
    
    .game-container {
        top: 60% !important;
        left: 6% !important;
        height: 34% !important;
        width: 90% !important;
        padding: 25px 80px !important;
    }
    
    .character {
        bottom: 28% !important;
    }
    
    .character-image {
        width: 150px !important;
    }

    .bg-image {
        top: 6% !important;
        left: 2% !important;
        width: 96% !important;
        height: 100% !important;
    }
    
    .sectionTitle {
        font-size: clamp(26px, 2vw, 32px) !important;
        margin-bottom: 20px !important;
    }
    
    .main-text {
        font-size: clamp(20px, 1.8vw, 26px) !important;
        line-height: 1.6 !important;
    }
    
    .btn {
        padding: 15px 25px !important;
        font-size: clamp(16px, 1.6vw, 20px) !important;
    }
    
    .game-title {
        font-size: clamp(130px, 7vw, 100px) !important;
    }
    
    .game-subtitle {
        font-size: clamp(28px, 3vw, 36px) !important;
    }
    
    .menu-btn {
        padding: 15px 30px !important;
        font-size: clamp(20px, 2vw, 24px) !important;
    }
}

/* ===== MEDIA QUERY PER SCHERMI ULTRA WIDE ===== */
@media (min-width: 3440px) and (min-height: 1440px) {
    .tv-container {
        width: min(200vw, 2200px) !important;
        height: min(350vh, 1400px) !important;
    }
    
    .game-container {
        top: 62% !important;
        left: 5% !important;
        height: 32% !important;
        width: 92% !important;
        padding: 30px 100px !important;
    }
    
    .character {
        bottom: 26% !important;
    }
    
    .character-image {
        width: 650px !important;
    }

    .bg-image {
        top: 5% !important;
        left: 1% !important;
        width: 98% !important;
        height: 100% !important;
    }
    
    .sectionTitle {
        font-size: clamp(30px, 2.2vw, 36px) !important;
        margin-bottom: 25px !important;
    }
    
    .main-text {
        font-size: clamp(24px, 2vw, 30px) !important;
        line-height: 1.7 !important;
    }
    
    .btn {
        padding: 18px 30px !important;
        font-size: clamp(18px, 1.8vw, 24px) !important;
    }
    
    .game-title {
        font-size: clamp(150px, 8vw, 120px) !important;
    }
    
    .game-subtitle {
        font-size: clamp(32px, 3.5vw, 40px) !important;
    }
    
    .menu-btn {
        padding: 18px 35px !important;
        font-size: clamp(22px, 2.2vw, 28px) !important;
    }
}

/* ===== MEDIA QUERY PER ALTEZZE GRANDI ===== */
@media (min-height: 1200px) {
    .game-container {
        height: 30% !important;
        top: 62% !important;
    }
    
    .character {
        bottom: 37% !important;
    }
    
    .character-image {
        width: 500px !important;
    }
}

@media (min-height: 1600px) {
    .game-container {
        height: 28% !important;
        top: 64% !important;
    }
    
    .character {
        bottom: 30% !important;
    }
    
    .character-image {
        width: 600px !important;
    }
}