body { 
    background-color: #0a0a0a;
    color: #e0e0e0; 
    font-family: 'Courier New', Courier, monospace; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Ne jelenjen meg görgetősáv a rázkódáskor */
}

/* =========================================
   PARALLAX (3D TÉRHATÁSÚ) HÁTTÉR
========================================= */
#parallax-bg {
    position: fixed;
    top: -5vh;   /* 5%-kal túllóg minden irányban, hogy legyen hova mozognia */
    left: -5vw;
    width: 110vw; 
    height: 110vh;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Legyen legalul */
    pointer-events: none;
    /* Finom mozgás animáció a sima élményért */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

#game-container { 
    border: 2px solid #555; 
    padding: 30px; 
    max-width: 600px; 
    background-color: rgba(26, 26, 26, 0.85); 
    box-shadow: 0px 0px 30px rgba(0,0,0,1);
    border-radius: 8px;
    z-index: 10;
    position: relative;
    
    /* --- ÚJ SOROK INNENTŐL --- */
    max-height: 85vh; /* A doboz sosem lesz magasabb, mint a képernyő 85%-a */
    overflow-y: auto; /* Engedélyezi a függőleges görgetést, ha sok a gomb! */
}

/* =========================================
   ÚJ: SÖTÉT STÍLUSÚ GÖRGETŐSÁV A DOBOZHOZ
========================================= */
#game-container::-webkit-scrollbar {
    width: 8px;
}
#game-container::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 4px;
}
#game-container::-webkit-scrollbar-thumb {
    background: #555; 
    border-radius: 4px;
}
#game-container::-webkit-scrollbar-thumb:hover {
    background: #88ccff; /* Világít, ha ráviszed az egeret! */
}

#stats-panel { 
    display: flex; 
    justify-content: space-between;
    flex-wrap: wrap; /* ÚJ: Ha nem fér ki, új sorba teszi */
    gap: 15px; /* Távolság az elemek között */
    margin-top: 30px; 
    margin-bottom: 20px; 
    padding-bottom: 15px;
    border-bottom: 1px solid #555;
    font-weight: bold; 
    text-transform: uppercase;
    font-size: 0.9em;
}

/* Különböző statisztikák színei */
.hp-stat { color: #ff8888; text-shadow: 0 0 5px #ff4444; }
.heat-warning { color: #ff4444; text-shadow: 0 0 5px #ff0000; } 
.morale-stat { color: #88ccff; text-shadow: 0 0 5px #4488ff; }
.money-safe { color: #44ff44; text-shadow: 0 0 5px #00ff00; }
.swan-stat { color: #ffffff; text-shadow: 0 0 8px #cccccc; font-size: 1.1em; }

#story-text { 
    font-size: 1.25em; 
    margin-bottom: 30px; 
    line-height: 1.7; 
    min-height: 120px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

button { 
    background-color: rgba(51, 51, 51, 0.8); 
    color: white; 
    border: 1px solid #777; 
    padding: 15px 20px; 
    cursor: pointer; 
    font-size: 1.1em; 
    font-family: inherit;
    transition: 0.3s;
    text-transform: uppercase;
    
    /* --- ÚJ: MOBILOS GOMB-SPAM VÉDELEM --- */
    touch-action: manipulation; /* Szigorúan letiltja a dupla-kattintásos zoomot a gombon */
    -webkit-user-select: none;  /* Ne hagyja kijelölni a szöveget mobilon (iPhone) */
    user-select: none;          /* Ne hagyja kijelölni a szöveget mobilon (Android) */
}

button:hover { 
    background-color: rgba(85, 85, 85, 1); 
    border-color: #eee;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* =========================================
   ANIMÁCIÓK ÉS EFFEKTEK
========================================= */

/* Rendőrfény effekt */
#police-lights {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; /* A gombokat ez alatt is meg lehessen nyomni */
    opacity: 0; /* Alapból rejtve */
    z-index: 5;
}

.active-police-lights {
    animation: police-flash 0.8s infinite;
    opacity: 1 !important;
}

@keyframes police-flash {
    0%   { background-color: rgba(255, 0, 0, 0.15); } /* Piros */
    50%  { background-color: rgba(0, 0, 0, 0); }
    51%  { background-color: rgba(0, 0, 255, 0.15); } /* Kék */
    100% { background-color: rgba(0, 0, 0, 0); }
}

/* Képernyő rázkódás effekt */
.shake-effect {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 2px, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, -2px, 0); }
    40%, 60% { transform: translate3d(6px, 2px, 0); }
}
/* Add a többihez a style.css-ben */
#inventory-display {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #aaa;
    border-left: 3px solid #44ff44;
    padding-left: 10px;
}

#items-list {
    color: #44ff44;
    font-weight: bold;
}
/* --- MINIJÁTÉK STÍLUSOK --- */
#puzzle-input {
    background-color: #111;
    color: #44ff44;
    border: 2px solid #555;
    border-radius: 5px;
    padding: 10px;
    font-size: 1.5em;
    text-align: center;
    width: 150px;
    letter-spacing: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

#puzzle-input:focus { 
    border-color: #44ff44; 
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.3);
}
/* =========================================
   KEZDŐKÉPERNYŐ (FŐMENÜ)
========================================= */
#start-screen {
    position: fixed; /* Kiszabadítjuk a body centering alól */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 🌟 JAVÍTVA: Fentről indítja a rajzolást, így a cím SOHA nem lóg ki felül! */
    padding: 50px 20px; /* Adunk neki egy szép fenti és oldalsó térközt */
    box-sizing: border-box; /* Hogy a padding ne növelje meg a méretét */
    overflow-y: auto; /* 🌟 JAVÍTVA: Ha a 8 karakter nem férne el függőlegesen, finoman lehet görgetni lefelé! */
    z-index: 100; /* Biztosan a háttér felett legyen */
}

/* =========================================
   ÚJ: ÉLETSZERŰ, TEXTÚRÁZOTT JÁTÉKCÍM
   A google fonts russo one-t használja.
========================================= */

/* Új betűtípus betöltése */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

.game-title {
    /* Az ipari stílusú betűtípus */
    font-family: 'Russo One', sans-serif; 
    font-size: 7.5em; 
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.9; 
    text-align: center;
    margin-bottom: 40px;

    /* A VARÁZSLAT: Textúrázott betűk */
    color: transparent; 
    
    /* 1. JAVÍTÁS: img/ mappa hozzáadása az útvonalhoz */
    background-image: url('img/betu_textura.jpg'); 
    background-size: cover;
    background-position: center;
    background-clip: text; 
    -webkit-background-clip: text; 
    
    /* 2. JAVÍTÁS: Biztonságosabb árnyékolás, ami nem tünteti el a textúrát */
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); 
}

.game-title span { 
    display: block;
    font-size: 0.4em;
    font-family: 'Permanent Marker', cursive; /* Kézírásos, kapkodó hatás */
    letter-spacing: 12px; /* Kicsit széthúzzuk a betűket */
    
    /* Felülírjuk az <h1> textúráját */
    color: #ff1a1a; /* Élénkebb vérvörös */
    background: none; 
    -webkit-background-clip: initial;
    background-clip: initial;
    
    /* Döntés a "rohanó" érzésért */
    transform: rotate(-3deg);
    margin-top: 15px;
    margin-left: 20px; /* Kicsit eltoljuk az aszimmetria miatt */

    /* ÚJ: Feszült, pulzáló szívverés animáció hozzárendelése */
    animation: adrenaline-pulse 1.2s infinite;
}

/* =========================================
   ADRENALIN / HAJSZA ANIMÁCIÓ
========================================= */
@keyframes adrenaline-pulse {
    0% { 
        transform: scale(1) rotate(-3deg); 
        text-shadow: 0 0 10px rgba(200,0,0,0.8); 
    }
    15% { 
        transform: scale(1.08) rotate(-4deg); /* Kicsit megnő és jobban bedől */
        text-shadow: 0 0 30px rgba(255,0,0,1), 0 0 50px rgba(255,0,0,0.8); /* Erős felvillanás */
        color: #ff4d4d; /* Kivilágosodik a vérvörös */
    }
    30% { 
        transform: scale(1) rotate(-3deg); 
        text-shadow: 0 0 10px rgba(200,0,0,0.8); 
        color: #ff1a1a; 
    }
    45% { 
        transform: scale(1.03) rotate(-2deg); /* Egy kisebb, második "dobbanás" */
        text-shadow: 0 0 20px rgba(255,0,0,0.9); 
    }
    60% { 
        transform: scale(1) rotate(-3deg); 
        text-shadow: 0 0 10px rgba(200,0,0,0.8); 
    }
    100% {
        transform: scale(1) rotate(-3deg); 
        text-shadow: 0 0 10px rgba(200,0,0,0.8); 
    }
}

#start-game-btn, #load-game-btn {
    font-size: 1.5em;
    padding: 15px 40px;
    background-color: #8b0000;
    border-color: #ff4444;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(255,0,0,0.4);
    transition: all 0.3s;
    animation: pulse-red 2s infinite;
}

#start-game-btn:hover, #load-game-btn:hover {
    background-color: #ff0000;
    box-shadow: 0 0 25px rgba(255,0,0,0.8);
    transform: scale(1.05);
}
/* =========================================
   BÖRTÖNRÁCS ÁTVEZETŐ EFFEKT (ÉLETHŰ 3D, ÁTLÁTSZÓ)
========================================= */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; 
    pointer-events: none; 
    display: flex;
    justify-content: space-between;
}

.prison-door {
    width: 50.5vw; 
    height: 100vh;
    
    /* ÉLETHŰ 3D FÉMRÁCSOK GENERÁLÁSA ÁTLÁTSZÓ HÁTTÉRREL */
    background: 
        linear-gradient(to bottom, transparent 15%, #050505 15%, #555 16%, #222 18%, #050505 20%, transparent 20%),
        linear-gradient(to bottom, transparent 48%, #050505 48%, #666 49%, #222 51%, #050505 53%, transparent 53%),
        linear-gradient(to bottom, transparent 80%, #050505 80%, #555 81%, #222 83%, #050505 85%, transparent 85%),
        repeating-linear-gradient(
            90deg,
            #050505 0px,      
            #222 5px,         
            #888 15px,        
            #222 25px,        
            #050505 30px,     
            transparent 30px, /* Átlátszó rés a rácsok között */
            transparent 90px  
        );
        
    /* Drop-shadow, hogy minden acélrúd árnyékot vessen a játékra! */
    filter: drop-shadow(0px 0px 20px rgba(0,0,0,1));
    
    /* NAGYON LASSÚ, SÚLYOS MOZGÁS (1.2 másodperc) */
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1); 
}

.prison-door.left {
    transform: translateX(-100%);
    border-right: 25px solid #111; 
}

.prison-door.right {
    transform: translateX(100%);
    border-left: 25px solid #111;
}

#transition-overlay.active .prison-door {
    transform: translateX(0);
}

/* Fehér kameravillanás a becsapódáskor */
#transition-flash {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: white;
    opacity: 0;
    transition: opacity 0.1s;
}

#transition-overlay.flash #transition-flash {
    opacity: 1;
}
/* =========================================
   ZENE KI/BE GOMB
========================================= */
#music-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Legyen minden felett! */
    background-color: rgba(0, 0, 0, 0.7);
    color: #44ff44;
    border: 1px solid #44ff44;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.3);
}

#music-toggle-btn:hover {
    background-color: #44ff44;
    color: #000;
}

/* Ez az osztály kerül rá, ha némítva van */
.muted-btn {
    color: #ff4444 !important;
    border-color: #ff4444 !important;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3) !important;
}

.muted-btn:hover {
    background-color: #ff4444 !important;
    color: #000 !important;
}

/* =========================================
   HANG BEÁLLÍTÁSOK PANEL ÉS GOMB
========================================= */
#settings-toggle-btn {
    position: fixed;
    top: 20px;
    right: 170px; /* A Zene gomb mellett kap helyet */
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    color: #88ccff;
    border: 1px solid #88ccff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(136, 204, 255, 0.3);
}

#settings-toggle-btn:hover {
    background-color: #88ccff;
    color: #000;
}

#volume-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: rgba(15, 15, 15, 0.95);
    border: 2px solid #88ccff;
    border-radius: 8px;
    padding: 15px;
    z-index: 10000;
    width: 250px;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    color: #ddd;
    font-family: 'Courier New', Courier, monospace;
}
/* =========================================
   MENTÉS GOMB ÉS FELUGRÓ (TOAST) ÉRTESÍTÉS
========================================= */

/* A letisztított Mentés gomb stílusa */
#save-game-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 0.85em;
    background-color: #1a1a1a;
    border: 1px solid #44ff44;
    color: #44ff44;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#save-game-btn:hover {
    background-color: #44ff44;
    color: #000;
    box-shadow: 0 0 15px rgba(68, 255, 68, 0.6);
}

/* A modern, becsúszó értesítés stílusa */
#save-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #111;
    color: #44ff44;
    text-align: center;
    border: 2px solid #44ff44;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    top: -50px; /* Alapból a képernyő felett van elrejtve */
    transform: translateX(-50%);
    box-shadow: 0px 0px 20px rgba(68, 255, 68, 0.3);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.4s, top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Ez az osztály húzza be a képernyőre! */
#save-toast.show {
    visibility: visible;
    opacity: 1;
    top: 40px; 
}
/* =========================================
   BOLT / KERESKEDŐ RENDSZER (FEKETEPIAC)
========================================= */
.shop-container {
    background-color: rgba(30, 20, 0, 0.85);
    border: 2px solid #ffaa00;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 15px rgba(255, 170, 0, 0.15), 0 0 20px rgba(0,0,0,0.8);
}

.shop-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #664400;
}

.shop-item-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shop-item-name {
    font-weight: bold;
    color: #eee;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px #000;
}

.shop-buy-btn {
    background-color: #ffaa00;
    color: #111;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.shop-buy-btn:hover:not(:disabled) {
    background-color: #ffcc00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.7);
    transform: scale(1.05);
}

.shop-buy-btn:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}
/* =========================================
   NAPLÓ (STORY LOG) STÍLUSOK
========================================= */
#log-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ccc;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
}

#log-toggle-btn:hover { background-color: #ccc; color: #000; }

#story-log-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 650px;
    max-height: 70vh;
    background-color: rgba(15, 15, 15, 0.95);
    border: 2px solid #88ccff;
    border-radius: 10px;
    padding: 20px;
    z-index: 10001;
    overflow-y: auto;
    color: #ddd;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    font-size: 1.1em;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

#close-log-btn {
    display: block;
    margin: 0 auto 20px auto;
    background-color: #ff4444;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
}

/* =========================================
   LEBEGŐ ÉRTÉKEK (FLOATING TEXT) ANIMÁCIÓ
========================================= */
.floating-text {
    position: absolute;
    font-weight: bold;
    font-size: 1.4em;
    pointer-events: none; /* Ne lehessen rákattintani */
    animation: floatUp 1.5s ease-out forwards;
    text-shadow: 1px 1px 4px #000;
    z-index: 10000;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(1.3); }
}
/* =========================================
   FILMSZERŰ VIGNETTE ÉS ATMOSZFÉRA
========================================= */
#vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* A varázslat: egy radiális gradiens, ami a széleken sötét */
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none; /* Ne akadályozza a kattintást! */
    z-index: 1000; /* Minden felett legyen, kivéve a menüket/átvezetőket */
    opacity: 0.8;
}

/* Opcionális: Egy nagyon finom szemcsézettség (zaj) a képen */
#vignette-overlay::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    pointer-events: none;
}
/* =========================================
   RÁDIÓ CSÚSZKA (MINIJÁTÉK) DIZÁJN
========================================= */
input[type=range] {
    -webkit-appearance: none; 
    width: 100%;
    background: transparent;
    margin-top: 10px;
    margin-bottom: 10px;
}
input[type=range]:focus {
    outline: none;
}
/* A csúszka "pályája" */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #333;
    border-radius: 4px;
    border: 1px solid #555;
    box-shadow: inset 0 0 5px #000;
}
/* A mozgatható "gomb" */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 16px;
    border-radius: 3px;
    background: #44ff44;
    cursor: pointer;
    margin-top: -9px; /* Hogy középre kerüljön a sávon */
    box-shadow: 0 0 10px #44ff44, inset 0 0 5px #fff;
}
/* =========================================
   KARAKTERVÁLASZTÓ RENDSZER (FŐMENÜ)
========================================= */
.char-select-container { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 30px; 
    justify-content: center; 
    z-index: 101;
    flex-wrap: wrap; /* 🌟 EZ AZ ÚJ SOR: Engedi a kártyákat új sorba ugrani! */
    max-width: 800px; /* Hogy szép, középre zárt rácsot alkossanak */
}

.char-card { 
    width: 130px; 
    height: 180px; 
    border: 3px solid #555; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s; 
    opacity: 0.4; 
    filter: grayscale(100%); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    padding-bottom: 15px; 
    font-weight: bold; 
    font-size: 1.2em;
    text-shadow: 2px 2px 4px black, 0 0 10px black;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.char-card:hover {
    opacity: 0.8;
}

/* Ez történik, ha rákattintasz a karakterre! */
.char-card.selected { 
    border-color: #44ff44; 
    opacity: 1; 
    filter: grayscale(0%); 
    transform: scale(1.1); 
    box-shadow: 0 0 25px rgba(68, 255, 68, 0.6); 
    color: #44ff44;
}
/* Pulzáló effekt kritikus körözésnél */
.critical-heat {
    animation: heat-pulse 1s infinite alternate;
    color: #ff0000 !important;
}

@keyframes heat-pulse {
    from { transform: scale(1); text-shadow: 0 0 5px #ff0000; }
    to { transform: scale(1.1); text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000; }
}
/* =========================================
   ADRENALIN (ALACSONY ÉLET) EFFEKT
========================================= */
@keyframes heartbeat-pulse {
    0% { background: radial-gradient(circle, transparent 40%, rgba(150, 0, 0, 0.3) 100%); }
    50% { background: radial-gradient(circle, transparent 40%, rgba(255, 0, 0, 0.85) 100%); }
    100% { background: radial-gradient(circle, transparent 40%, rgba(150, 0, 0, 0.3) 100%); }
}

.low-hp-vignette {
    animation: heartbeat-pulse 1s infinite cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    z-index: 999 !important; /* Hogy az átvezetők alatt, de a játék felett legyen */
}
/* =========================================
   ALACSONY MORÁL (DEPRESSZIÓ) EFFEKTEK
========================================= */
.low-morale-world {
    filter: grayscale(90%) contrast(110%) brightness(80%) !important;
    transition: filter 3s ease-in-out;
}

/* A gombok és szövegek enyhe remegése a bizonytalanság miatt */
.unstable-text {
    animation: text-float 3s infinite ease-in-out, subtle-shiver 0.2s infinite;
}

@keyframes subtle-shiver {
    0% { transform: translate(0, 0); }
    25% { transform: translate(0.5px, 0.5px); }
    50% { transform: translate(-0.5px, 0); }
    75% { transform: translate(0, -0.5px); }
    100% { transform: translate(0, 0); }
}

@keyframes text-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
/* =========================================
   IDŐJÁRÁS ÉS RÉSZECSKÉK (PARTICLES)
========================================= */
#particle-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; /* Ne blokkolja a kattintásokat a gombokon! */
    z-index: 50; /* A háttér felett, de a játékdoboz alatt */
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
}

/* 1. ESŐ (Rain) */
.rain {
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.4));
    width: 1px;
    height: 40px;
    animation: rain-fall linear forwards;
}
@keyframes rain-fall {
    0% { transform: translateY(-100px) rotate(15deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(15deg); opacity: 0; }
}

/* 2. PERNYE / TŰZ (Ash) */
.ash {
    background-color: #ffaa00;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff4400;
    animation: ash-rise linear forwards;
}
@keyframes ash-rise {
    0% { transform: translateY(110vh) translateX(0) scale(1); opacity: 1; }
    50% { transform: translateY(50vh) translateX(20px) scale(0.8); opacity: 0.8; }
    100% { transform: translateY(-10px) translateX(-20px) scale(0.5); opacity: 0; }
}

/* 3. HOMOKVIHAR (Sand) */
.sand {
    background-color: #dcb873;
    border-radius: 50%;
    opacity: 0.6;
    animation: sand-blow linear forwards;
}
@keyframes sand-blow {
    0% { transform: translateX(110vw) translateY(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateX(-10vw) translateY(50px); opacity: 0; }
}
/* =========================================
   ZSEBLÁMPA EFFEKT (DYNAMIC SPOTLIGHT)
========================================= */
#spotlight-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    /* A varázslat: CSS változókat (var) használunk az egér pozíciójának követésére */
    background: radial-gradient(circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), transparent 80px, rgba(0, 0, 0, 0.98) 250px);
    z-index: 2; /* A háttérkép felett, de a játékdoboz (z-index: 10) alatt! */
    pointer-events: none; /* Ne blokkolja a kattintásokat */
    opacity: 0; /* Alapból ki van kapcsolva */
    transition: opacity 0.5s ease;
}

#spotlight-overlay.active {
    opacity: 1; /* Bekapcsoláskor megjelenik */
}

/* =========================================
   GLITCH (KIBER/KAMERA) EFFEKT
========================================= */
.glitch-active::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    animation: glitch-anim 0.2s infinite;
}

@keyframes glitch-anim {
    0% { transform: translateY(0); opacity: 0.9; }
    50% { transform: translateY(-2px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 0.9; }
}
/* =========================================
   VÉRFRÖCCSENÉS (BLOOD SPLATTER) EFFEKT
========================================= */
#blood-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; /* Ne blokkolja a kattintásokat! */
    z-index: 105; /* A játékdoboz (z-index:10) felett van, hogy ráfolyjon! */
    overflow: hidden;
}

.blood-splatter {
    position: absolute;
    width: 250px; /* Átlagos méret, JS-ből felülírjuk */
    opacity: 0.8;
    pointer-events: none;
    /* 3 másodperc alatt lassan lefolyik és elhalványul */
    animation: blood-drip 3s forwards ease-in; 
}

@keyframes blood-drip {
    0% { transform: translateY(0) scale(0.9); opacity: 0.8; }
    20% { transform: translateY(5px) scale(1); opacity: 0.8; }
    100% { transform: translateY(120px) scale(1); opacity: 0; }
}
/* =========================================
   VILLANÓFÉNY (FLASHBANG/GUNSHOT) EFFEKT
========================================= */
.flash-effect {
    animation: flash-anim 0.15s ease-out;
}

@keyframes flash-anim {
    0% { background-color: rgba(26, 26, 26, 0.85); }
    50% { background-color: #ffffff; box-shadow: 0 0 50px #ffffff; }
    100% { background-color: rgba(26, 26, 26, 0.85); }
}
/* =========================================
   INTRÓ VIDEÓ (TRAILER)
========================================= */
#intro-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000;
    z-index: 20000; /* Minden felett legyen! */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out; /* Lassú, mozis eltűnés */
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kitölti a képernyőt torzítás nélkül */
    display: none; /* Alapból rejtve, amíg rá nem kattintanak */
}

#intro-start-overlay {
    position: absolute;
    color: #ff4444;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    cursor: pointer;
    z-index: 20001;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.9);
    transition: opacity 0.5s;
}

#intro-start-overlay h1 {
    animation: text-float 2s infinite ease-in-out;
    text-shadow: 0 0 15px #ff0000;
    letter-spacing: 5px;
}

#skip-intro-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20002;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ccc;
    border: 1px solid #777;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    display: none; /* Csak akkor jelenik meg, ha megy a videó */
    transition: 0.3s;
    border-radius: 5px;
    text-transform: uppercase;
}

#skip-intro-btn:hover {
    background-color: #ff4444;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px #ff0000;
}
/* =========================================
   DINAMIKUS SZÖVEGKIEMELÉS (KULCSSZAVAK)
========================================= */
.hl-char {
    color: #ff5555; /* Pirosas-narancs a karaktereknek */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 85, 85, 0.4);
}

.hl-loc {
    color: #55aaff; /* Kékes-zöld a helyszíneknek */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(85, 170, 255, 0.4);
}

.hl-item {
    color: #ffd700; /* Arany/Sárga a tárgyaknak és pénznek */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
/* =========================================
   TÉRKÉP (MAP SYSTEM) STÍLUSOK
========================================= */
#map-toggle-btn {
    background-color: #1a3a5a;
    color: #4da6ff;
    border: 1px solid #4da6ff;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#map-toggle-btn:hover {
    background-color: #4da6ff;
    color: #000;
    box-shadow: 0 0 10px #4da6ff;
}

#map-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 10, 20, 0.9);
    z-index: 10000; /* Magas z-index, hogy minden felett legyen */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#map-ui {
    width: 80vw;
    max-width: 900px;
    height: 70vh;
    background-color: #050a0f;
    border: 2px solid #2962ff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(41, 98, 255, 0.4);
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.map-title {
    color: #2962ff;
    text-align: center;
    letter-spacing: 4px;
    margin-top: 0;
    text-shadow: 0 0 10px #2962ff;
}

#close-map-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 5px 10px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}

#close-map-btn:hover {
    background: #ff4444;
    color: white;
}

/* Maga a térkép területe */
#tactical-map {
    flex-grow: 1;
    position: relative;
    /* Rácsos, radar stílusú háttér. Ezt cserélheted le egy kép-url-re (pl: url('map.png')) */
    background-image: 
        linear-gradient(rgba(41, 98, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 98, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-color: #02060a;
    border: 1px solid #1a3a5a;
    overflow: hidden;
    border-radius: 5px;
}

/* Lokáció gombostűk */
.map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    opacity: 0.4; /* Alapból halványak az inaktív helyek */
    transition: all 0.5s;
}

/* AZ AKTUÁLIS LOKÁCIÓ (PULZÁL) */
.map-pin.active-location {
    opacity: 1;
    z-index: 5;
}

.pin-dot {
    width: 15px; height: 15px;
    background-color: #555;
    border-radius: 50%;
    border: 2px solid #aaa;
    margin-bottom: 5px;
    transition: 0.3s;
}

.active-location .pin-dot {
    background-color: #ff0000;
    border-color: #ff4444;
    box-shadow: 0 0 15px #ff0000;
    animation: radar-pulse 1.5s infinite;
}

.pin-label {
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border: 1px solid #555;
    font-size: 0.8em;
    border-radius: 3px;
    white-space: nowrap;
}

.active-location .pin-label {
    border-color: #ff4444;
    color: #ffdddd;
    text-shadow: 0 0 5px #ff0000;
}

.region-heat {
    font-size: 0.7em;
    color: #ff4444;
    margin-top: 3px;
    background: rgba(20, 0, 0, 0.8);
    padding: 2px 5px;
    border: 1px solid #ff0000;
    display: none; /* Csak az aktívnál mutatjuk */
}

.active-location .region-heat {
    display: block;
}

@keyframes radar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
/* =========================================
   🎒 VIZUÁLIS LELTÁR (TÁSKA) STÍLUSAI
========================================= */

/* A gomb, amivel megnyitod */
#open-inventory-btn {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border: 2px solid #7f8c8d;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin-left: 10px;
}
#open-inventory-btn:hover { background: #34495e; transform: scale(1.05); }

/* A sötét, elmosott háttér, ha nyitva van a táska */
.modal-overlay {
    display: none; /* Alapból rejtve van */
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 30000; /* Nagyon elöl legyen */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Maga a táska ablaka */
.modal-content {
    background: #1a1a1a;
    border: 2px solid #555;
    padding: 20px 30px 40px 30px;
    width: 80%;
    max-width: 450px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    margin-top: 0; text-align: center; color: #ddd;
    border-bottom: 1px solid #444; padding-bottom: 10px;
}

/* X gomb a bezáráshoz */
#close-inventory-btn {
    position: absolute; top: 10px; right: 20px;
    font-size: 28px; cursor: pointer; color: #aaa; transition: 0.2s;
}
#close-inventory-btn:hover { color: #ff4444; }

/* A Rács, ahol az ikonok lesznek */
#visual-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
    justify-items: center;
}

/* Egy darab tárgy ikon doboza */
.inv-item {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    width: 70px; height: 70px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    font-size: 35px; /* Ikon (emoji) mérete */
    cursor: help;
    position: relative;
    transition: 0.2s;
}
.inv-item:hover {
    border-color: #888;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: #333;
}

/* Hover Tooltip (Kiírja a tárgy nevét, ha ráviszed az egeret) */
.inv-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: -30px;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #555;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 10;
}
.inv-item:hover::after { opacity: 1; bottom: -35px; }
/* =========================================
   🗺️ TÉRKÉP SZKENNELŐ VONAL EFFEKTUS
========================================= */
#tactical-map {
    position: relative; /* Fontos, hogy a vonal ezen belül maradjon */
    overflow: hidden;   /* Levágja a vonalat, ha kimozdulna */
}

#tactical-map::after {
    content: '';
    position: absolute;
    top: -5%; left: 0;
    width: 100%;
    height: 10%; /* A vonal vastagsága és a csóva */
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0) 0%, rgba(255, 68, 68, 0.4) 80%, rgba(255, 0, 0, 0.8) 100%);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
    animation: radar-scan 3s linear infinite;
    pointer-events: none; /* Ne zavarjon be a kattintásokba */
    z-index: 10;
}

@keyframes radar-scan {
    0%   { top: -10%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
/* =========================================
   🖥️ HACKER / FESZÜLT GOMB HOVER EFFEKT
========================================= */
#buttons-container button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#buttons-container button:hover {
    letter-spacing: 2px; /* Kicsit széthúzza a betűket */
    color: #fff;
    background-color: #1a1a1a;
    border-color: #88ccff;
}

/* A zárójelek ( [ ] ) hozzáadása animálva */
#buttons-container button::before,
#buttons-container button::after {
    position: absolute;
    opacity: 0;
    font-weight: bold;
    color: #88ccff;
    transition: 0.3s;
}

#buttons-container button::before {
    content: '[';
    left: 10px;
    transform: translateX(10px);
}

#buttons-container button::after {
    content: ']';
    right: 10px;
    transform: translateX(-10px);
}

#buttons-container button:hover::before {
    opacity: 1;
    transform: translateX(0);
}

#buttons-container button:hover::after {
    opacity: 1;
    transform: translateX(0);
}
/* =========================================
   💻 TERMINÁL VILLOGÓ KURZOR
========================================= */
#story-text {
    position: relative;
    display: inline-block; /* Hogy a kurzor pontosan a végéhez tapadjon */
}

/* A villogó blokk hozzáadása a szöveg után */
#story-text::after {
    content: ' █';
    color: #44ff44;
    font-size: 1em;
    animation: terminal-blink 1s step-start infinite;
    text-shadow: 0 0 8px #44ff44;
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* =========================================
   🚀 GOMB HOVER: DEKÓDOLÁS / TÖLTŐSÁV EFFEKT
========================================= */
#buttons-container button {
    overflow: hidden; /* Hogy a háttér ne lógjon ki a gombból */
    /* Létrehozunk egy kétszer olyan széles színátmenetes hátteret */
    background-image: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 50%, rgba(68, 255, 68, 0.2) 50%);
    background-size: 200% 100%;
    background-position: 0% 0%; /* Alapból eltoljuk balra */
    transition: background-position 0.4s ease-out, border-color 0.3s, transform 0.2s;
}

#buttons-container button:hover {
    /* Amikor ráviszed az egeret, a zöld rész becsúszik jobbról! */
    background-position: -100% 0%; 
    border-color: #44ff44 !important; 
    color: #fff;
    box-shadow: inset 0 0 10px rgba(68, 255, 68, 0.2);
}
/* =========================================
   📸 JAVÍTOTT: FBI AKTÁK / POLAROID KARAKTER KÁRTYÁK
========================================= */
.char-card {
    background-color: #f4f4f4 !important; 
    border: 8px solid #f4f4f4 !important; /* Fehér fotókeret */
    
    /* A VARÁZSLAT: Az 'inset' árnyék egy 40 pixel magas tömör fehér sávot húz a kép aljára, amire a szöveg kerülhet! */
    box-shadow: inset 0 -40px 0 #f4f4f4, 2px 5px 15px rgba(0,0,0,0.7) !important;
    
    transform: rotate(-3deg); 
    position: relative;
    
    color: #111 !important; /* Fekete "filctoll" szöveg */
    text-shadow: none !important;
    padding-bottom: 10px !important; /* A szöveg tökéletesen a fehér sávra ül */
    font-weight: 900 !important;
    letter-spacing: 1px;
}

/* Minden második kártya a másik irányba dől */
.char-card:nth-child(even) {
    transform: rotate(4deg); 
}

/* Ha fölé viszed, kiemelkedik */
.char-card:hover, .char-card.selected {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 10;
    /* Fontos: Itt is megtartjuk a belső fehér sávot az árnyékban! */
    box-shadow: inset 0 -40px 0 #f4f4f4, 0 10px 25px rgba(0,0,0,0.9) !important;
}

/* A cellux ragasztószalag a tetejükön! */
.char-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 60px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 5;
}
/* =========================================
   🗃️ FBI AKTA VÍZJEL (TOP SECRET PECSÉT)
========================================= */
#game-container::before {
    content: 'CONFIDENTIAL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4.5em;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    color: rgba(200, 0, 0, 0.05); /* Nagyon halvány, hogy ne zavarja az olvasást */
    border: 8px solid rgba(200, 0, 0, 0.05);
    padding: 10px 30px;
    pointer-events: none; /* Nem lehet rákattintani */
    z-index: 0; /* A szöveg mögött legyen */
    letter-spacing: 15px;
    border-radius: 10px;
}

/* Biztosítjuk, hogy a szöveg és a gombok a pecsét felett maradjanak */
#story-text, #stats-panel, #buttons-container, #inventory-display {
    position: relative;
    z-index: 2;
}
/* =========================================
   🟩 HACKER SZÖVEGKIJELÖLÉS (MATRIX STÍLUS)
========================================= */
::selection {
    background: #44ff44; /* Neon zöld háttér */
    color: #000; /* Fekete szöveg */
    text-shadow: none; /* Kijelölésnél levesszük az árnyékot a tiszta olvashatóságért */
}

::-moz-selection { /* Firefox böngészőkhöz */
    background: #44ff44;
    color: #000;
    text-shadow: none;
}
/* =========================================
   ✅ KIVÁLASZTOTT POLAROID KÁRTYA STÍLUSA
========================================= */
.char-card.selected {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 10;
    /* Durva zöld neon árnyék a fehér keret körül */
    box-shadow: inset 0 -40px 0 #f4f4f4, 0 0 30px rgba(68, 255, 68, 0.8) !important;
    border-color: #44ff44 !important; /* A papír széle is bezöldül */
    color: #008800 !important; /* A filctoll is zöldre vált a név feliratnál */
}

/* A cellux ragasztó is zölden kezd el világítani a kiválasztott kártyán! */
.char-card.selected::before {
    background-color: rgba(68, 255, 68, 0.5);
    box-shadow: 0 1px 10px rgba(68, 255, 68, 0.8);
}

/* 4. HAVAZÁS (Snow) */
.snow {
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(1px);
    animation: snow-fall linear forwards;
}
@keyframes snow-fall {
    0% { transform: translateY(-10px) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(110vh) translateX(20px); opacity: 0; }
}

/* =========================================
   🗂️ FBI ZÁRÓJELENTÉS STATISZTIKA
========================================= */
.fbi-report {
    background-color: #e6dfcc; /* Igazi FBI akta papír színe */
    color: #111;
    padding: 20px;
    margin-top: 30px;
    border: 2px solid #333;
    border-radius: 2px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    overflow: hidden;
    animation: popIn 0.5s ease-out;
}

.fbi-header {
    font-weight: 900;
    text-align: center;
    font-size: 1.2em;
    border-bottom: 2px solid #111;
    padding-bottom: 10px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.fbi-body p {
    margin: 8px 0;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: none !important; /* Levesszük az árnyékot, hogy olvasható maradjon */
}

.status-deceased { color: #cc0000; font-weight: 900; }
.status-escaped { color: #00aa00; font-weight: 900; }

/* A hatalmas piros pecsét */
.fbi-stamp {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(204, 0, 0, 0.7);
    border: 4px solid rgba(204, 0, 0, 0.7);
    font-size: 2.5em;
    font-weight: 900;
    transform: rotate(-15deg);
    padding: 5px 15px;
    border-radius: 8px;
    letter-spacing: 4px;
    pointer-events: none;
}
/* =========================================
   🎨 DINAMIKUS KARAKTER TÉMÁK (CSS OVERRIDES)
========================================= */

/* -----------------------------------------
   👑 JOHN ABRUZZI TÉMÁJA: MAFFIA ARANY
   ----------------------------------------- */
.theme-abruzzi #game-container {
    border-color: #d4af37; /* Arany keret */
    box-shadow: 0px 0px 35px rgba(212, 175, 55, 0.2);
}
.theme-abruzzi #items-list, .theme-abruzzi #puzzle-input {
    color: #d4af37;
}
.theme-abruzzi #story-text::after {
    color: #d4af37; /* Arany terminál kurzor */
    text-shadow: 0 0 8px #d4af37;
}
.theme-abruzzi #save-game-btn {
    border-color: #d4af37;
    color: #d4af37;
}
.theme-abruzzi #save-game-btn:hover {
    background-color: #d4af37;
    color: #000;
}
/* Arany színátmenetes gomb becsúszó effekt */
.theme-abruzzi #buttons-container button {
    background-image: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 50%, rgba(212, 175, 55, 0.2) 50%);
}
.theme-abruzzi #buttons-container button:hover {
    border-color: #d4af37 !important;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2);
}
.theme-abruzzi ::selection { background: #d4af37; color: #000; }
.theme-abruzzi input[type=range]::-webkit-slider-thumb {
    background: #d4af37;
    box-shadow: 0 0 10px #d4af37, inset 0 0 5px #fff;
}

/* -----------------------------------------
   🦊 ZSEBES (T-BAG) TÉMÁJA: PSZICHO VÉRVÖRÖS
   ----------------------------------------- */
.theme-tbag #game-container {
    border-color: #ff3333;
    box-shadow: 0px 0px 35px rgba(255, 51, 51, 0.2);
}
.theme-tbag #items-list, .theme-tbag #puzzle-input {
    color: #ff3333;
}
.theme-tbag #story-text::after {
    color: #ff3333;
    text-shadow: 0 0 8px #ff3333;
}
.theme-tbag #save-game-btn {
    border-color: #ff3333;
    color: #ff3333;
}
.theme-tbag #save-game-btn:hover {
    background-color: #ff3333;
    color: #000;
}
.theme-tbag #buttons-container button {
    background-image: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 50%, rgba(255, 51, 51, 0.2) 50%);
}
.theme-tbag #buttons-container button:hover {
    border-color: #ff3333 !important;
    box-shadow: inset 0 0 10px rgba(255, 51, 51, 0.2);
}
.theme-tbag ::selection { background: #ff3333; color: #000; }
.theme-tbag input[type=range]::-webkit-slider-thumb {
    background: #ff3333;
    box-shadow: 0 0 10px #ff3333, inset 0 0 5px #fff;
}

/* -----------------------------------------
   🦅 ALEX MAHONE TÉMÁJA: FBI TAKTIKAI CINKÉK
   ----------------------------------------- */
.theme-mahone #game-container {
    border-color: #00d2ff;
    box-shadow: 0px 0px 35px rgba(0, 210, 255, 0.2);
}
.theme-mahone #items-list, .theme-mahone #puzzle-input {
    color: #00d2ff;
}
.theme-mahone #story-text::after {
    color: #00d2ff;
    text-shadow: 0 0 8px #00d2ff;
}
.theme-mahone #save-game-btn {
    border-color: #00d2ff;
    color: #00d2ff;
}
.theme-mahone #save-game-btn:hover {
    background-color: #00d2ff;
    color: #000;
}
.theme-mahone #buttons-container button {
    background-image: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 50%, rgba(0, 210, 255, 0.2) 50%);
}
.theme-mahone #buttons-container button:hover {
    border-color: #00d2ff !important;
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.2);
}
.theme-mahone ::selection { background: #00d2ff; color: #000; }
.theme-mahone input[type=range]::-webkit-slider-thumb {
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff, inset 0 0 5px #fff;
}

/* -----------------------------------------
   SABLONOK A TÖBBI KARAKTERHEZ (Kedvedre átszínezheted őket!)
   ----------------------------------------- */
/* Lincoln (Narancs) */
.theme-lincoln #game-container { border-color: #ffaa00; }
.theme-lincoln #items-list, .theme-lincoln #story-text::after { color: #ffaa00; }
.theme-lincoln #buttons-container button { background-image: linear-gradient(90deg, rgba(26,26,26,0.8) 50%, rgba(255,170,0,0.2) 50%); }

/* Sucre (Rózsaszín/Lila vagy Világoskék) */
.theme-sucre #game-container { border-color: #e066ff; }
.theme-sucre #items-list, .theme-sucre #story-text::after { color: #e066ff; }
.theme-sucre #buttons-container button { background-image: linear-gradient(90deg, rgba(26,26,26,0.8) 50%, rgba(224,102,255,0.2) 50%); }

/* Bellick (Sötétkék / Rendőrségi) */
.theme-bellick #game-container { border-color: #3b5998; }
.theme-bellick #items-list, .theme-bellick #story-text::after { color: #3b5998; }
.theme-bellick #buttons-container button { background-image: linear-gradient(90deg, rgba(26,26,26,0.8) 50%, rgba(59,89,152,0.2) 50%); }

/* Kellerman (Titkosszolgálati Acélszürke) */
.theme-kellerman #game-container { border-color: #95a5a6; }
.theme-kellerman #items-list, .theme-kellerman #story-text::after { color: #95a5a6; }
.theme-kellerman #buttons-container button { background-image: linear-gradient(90deg, rgba(26,26,26,0.8) 50%, rgba(149,165,166,0.2) 50%); }

/* =========================================
   FŐMENÜ DINAMIKUS TÉMÁI (Kártyák és Gomb)
========================================= */

/* 👑 ABRUZZI (Arany) Főmenü */
.theme-abruzzi .char-card.selected { 
    border-color: #d4af37 !important; 
    box-shadow: inset 0 -40px 0 #f4f4f4, 0 0 30px rgba(212, 175, 55, 0.8) !important; 
    color: #b8860b !important; 
}
.theme-abruzzi .char-card.selected::before { 
    background-color: rgba(212, 175, 55, 0.5); 
    box-shadow: 0 1px 10px rgba(212, 175, 55, 0.8); 
}
.theme-abruzzi #start-game-btn, .theme-abruzzi #load-game-btn { 
    background-color: #554400; 
    border-color: #d4af37; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); 
    animation: none; 
    color: white;
}
.theme-abruzzi #start-game-btn:hover, .theme-abruzzi #load-game-btn:hover { 
    background-color: #d4af37; 
    color: #000; 
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8); 
}

/* 🦊 ZSEBES (Vérvörös) Főmenü */
.theme-tbag .char-card.selected { 
    border-color: #ff3333 !important; 
    box-shadow: inset 0 -40px 0 #f4f4f4, 0 0 30px rgba(255, 51, 51, 0.8) !important; 
    color: #cc0000 !important; 
}
.theme-tbag .char-card.selected::before { 
    background-color: rgba(255, 51, 51, 0.5); 
    box-shadow: 0 1px 10px rgba(255, 51, 51, 0.8); 
}
.theme-tbag #start-game-btn, .theme-tbag #load-game-btn { 
    background-color: #660000; 
    border-color: #ff3333; 
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4); 
    animation: none; 
    color: white;
}
.theme-tbag #start-game-btn:hover, .theme-tbag #load-game-btn:hover { 
    background-color: #ff3333; 
    color: #000; 
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.8); 
}

/* 🦅 MAHONE (Hideg Kék) Főmenü */
.theme-mahone .char-card.selected { 
    border-color: #00d2ff !important; 
    box-shadow: inset 0 -40px 0 #f4f4f4, 0 0 30px rgba(0, 210, 255, 0.8) !important; 
    color: #0088cc !important; 
}
.theme-mahone .char-card.selected::before { 
    background-color: rgba(0, 210, 255, 0.5); 
    box-shadow: 0 1px 10px rgba(0, 210, 255, 0.8); 
}
.theme-mahone #start-game-btn, .theme-mahone #load-game-btn { 
    background-color: #00334d; 
    border-color: #00d2ff; 
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); 
    animation: none; 
    color: white;
}
.theme-mahone #start-game-btn:hover, .theme-mahone #load-game-btn:hover { 
    background-color: #00d2ff; 
    color: #000; 
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.8); 
}
/* =========================================
   📱 SMS ÉS ELDOBÓS TELEFON DIZÁJN
========================================= */

/* A sarokban rezgő ikon */
#sms-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #111;
    border: 2px solid #44ff44;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 15000; /* Minden felett! */
    box-shadow: 0 0 15px rgba(68, 255, 68, 0.4);
    animation: phone-ring 0.4s infinite alternate;
    transition: 0.3s;
}

#sms-notification:hover { transform: scale(1.1); }

.sms-icon { font-size: 32px; }

/* A piros pötty rajta (olvasatlan üzenet) */
.sms-badge {
    position: absolute;
    top: -5px; right: -5px;
    background-color: #ff4444;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 25px; height: 25px;
    display: flex; justify-content: center; align-items: center;
    font-size: 14px;
    border: 2px solid #111;
    box-shadow: 0 0 10px #ff0000;
}

@keyframes phone-ring {
    0% { transform: rotate(-12deg); box-shadow: 0 0 10px rgba(68, 255, 68, 0.4); }
    100% { transform: rotate(12deg); box-shadow: 0 0 25px rgba(68, 255, 68, 0.9); }
}

/* --- MAGA A TELEFON KÉSZÜLÉK --- */
.phone-content {
    background: #111; /* Sötét műanyag tok */
    border: 4px solid #333;
    border-radius: 25px; /* Telefonos lekerekítés */
    width: 320px;
    max-width: 90vw;      /* ÚJ: Kisebb kijelzőkön ne lógjon ki oldalra */
    height: 550px;        /* Alap magasság */
    max-height: 85vh;     /* ÚJ: SOHA ne legyen magasabb, mint a képernyő 85%-a! */
    position: relative;
    box-shadow: inset 0 0 15px #000, 0 20px 50px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slidePhoneUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 15px 10px;   /* ÚJ: Picit vékonyabb belső tér */
    box-sizing: border-box; /* ÚJ: A padding ne növelje meg a magasságot */
}

.phone-header {
    color: #555;
    font-size: 0.8em;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    flex-shrink: 0;       /* ÚJ: Sose nyomódjon össze */
}

/* A telefon képernyője (Régi LCD zöldes/kék stílus) */
.phone-screen {
    width: 95%;
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* ÚJ: Belső elrendezés a görgetéshez */
    background-color: #0f1a0f;
    border: 2px solid #44ff44;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(0,255,0,0.2);
    overflow: hidden; /* ÚJ: A fejléc fix marad, nem görgetődik ki! */
}

.phone-sender {
    background-color: #1a2a1a;
    color: #88ccff;
    padding: 10px;
    font-weight: bold;
    font-size: 1em;
    border-bottom: 1px solid #44ff44;
    flex-shrink: 0;       /* ÚJ: Fixen a zöld doboz tetején marad */
}

.phone-body {
    padding: 15px;
    color: #44ff44;
    font-size: 1.1em;
    line-height: 1.5;
    font-family: 'Courier New', Courier, monospace;
    overflow-y: auto;     /* ÚJ: Csak az üzenet szövege görgethető! */
    flex-grow: 1;
}

/* A gomb a telefon alján */
#close-phone-btn {
    width: 45px; height: 45px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid #444;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: inset 0 0 5px #000;
    transition: 0.2s;
    flex-shrink: 0;       /* ÚJ: Ne lapuljon ki a gomb, ha kicsi a hely */
}
#close-phone-btn:hover { background: #333; border-color: #666; }

@keyframes slidePhoneUp {
    from { transform: translateY(100vh) rotate(5deg); }
    to { transform: translateY(0) rotate(0deg); }
}
/* ⚖️ ÚJ: Hírnév statisztika dizájn */
.karma-stat { color: #b8860b; font-weight: bold; text-shadow: 0 0 5px rgba(184, 134, 11, 0.5); }
/* 1. AZ ÖSSZES FŐMENÜ GOMB EGYSÉGES KINÉZETE ÉS PULZÁLÁSA (FINOMÍTOTT MÉRET) */
#start-game-btn, #load-game-btn, #rules-toggle-btn, #log-toggle-btn {
    font-size: 1.1em;                 /* Kisebb, ízlésesebb betűméret (1.5em-ről) */
    padding: 10px 25px;               /* Karcsúbb gombok (15px 40px-ről) */
    background-color: #8b0000;        /* Sötétvörös alap */
    border: 2px solid #ff4444;         /* Világosvörös keret */
    border-radius: 6px;               /* Kicsit finomabb lekerekítés */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 0 12px rgba(255,0,0,0.35);
    transition: all 0.3s;
    animation: pulse-red 2s infinite;  /* Mindegyik gomb pulzál */
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    cursor: pointer;
    
    /* EGYSÉGES TÁVOLSÁG ÉS MÉRET */
    display: block;
    width: 100%;
    max-width: 280px;                 /* Keskenyebb gombok (380px-ről) */
    margin: 12px auto;                /* Kisebb rés a gombok között (18px-ről) */
}

/* 2. RÁMUTATÁSI (HOVER) EFFEKTUS MINDEN GOMBRA */
#start-game-btn:hover, #load-game-btn:hover, #rules-toggle-btn:hover, #log-toggle-btn:hover {
    background-color: #ff0000;         /* Neonvörösre vált */
    box-shadow: 0 0 20px rgba(255,0,0,0.7);
    transform: scale(1.03);            /* Csak egy nagyon picit mozdul meg (1.05-ről) */
    color: #fff;
}
/* =========================================================
   CSAK A SZABÁLYZAT GOMB LEGYEN NAGY ÉS KÖZÉPRE ZÁRT A MENÜBEN
   (A Napló gombot innen kivettük, hogy játék közben ne nyúljon el!)
   ========================================================= */
#rules-toggle-btn {
    background-color: rgba(20, 20, 20, 0.75); /* Sötét, áttetsző noir háttér */
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    
    margin: 12px auto; 
    display: block;
    width: 80%; 
    max-width: 300px;
}

#rules-toggle-btn:hover {
    background-color: #8b0000; /* Sötétvörös */
    color: #fff;
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
    transform: translateY(-2px); /* Kicsit megemelkedik */
}

/* Ha a start-screen-en belül van, biztosítjuk a függőleges helyet */
#start-screen button {
    margin-bottom: 15px; /* Biztonsági távolság minden gomb között a főmenüben */
}


/* =========================================================
   VÍZSZINTES MOBIL NÉZET (LANDSCAPE) MEGOLDÁS
   Akkor lép életbe, ha a telefon vízszintesen van (magasság < 500px)
   ========================================================= */
@media (orientation: landscape) and (max-height: 500px) {
    
    /* Engedjük a finom görgetést, ha szükséges */
    body {
        align-items: flex-start;
        overflow-y: auto;
        height: auto;
        padding: 10px 0;
    }

    /* A fő játékteret lejjebb toljuk a felső fix sáv alá */
    #game-container {
        margin-top: 60px !important; 
        max-height: none !important;
        padding: 15px 20px !important;
    }

    /* AZ ÖSSZES FUNKCIÓGOMBOT COMPAKT SÁVBA RENDEZZÜK A KÉPERNYŐ TETEJÉN */
    #log-toggle-btn, #settings-toggle-btn, #music-toggle-btn, #save-game-btn {
        position: fixed !important;
        top: 5px !important;
        bottom: auto !important;
        font-size: 0.8em !important;      /* Kisebb, olvasható betűk */
        padding: 6px 12px !important;     /* Vékonyabb gombok */
        width: auto !important;           /* Visszaállítjuk az eredeti szélességet! */
        max-width: none !important;
        margin: 0 !important;
        z-index: 20000 !important;
        display: inline-block !important;
    }

    /* A 4 gomb precíz kiosztása balról jobbra, hogy SOHA ne ütközzenek: */
    #log-toggle-btn { 
        left: 5px !important; 
        right: auto !important;
    }
    #settings-toggle-btn { 
        left: 110px !important; /* Szépen a Napló gomb mellett */
        right: auto !important;
    }
    #music-toggle-btn { 
        right: 105px !important; /* Szépen a Mentés gomb mellett */
        left: auto !important;
    }
    #save-game-btn { 
        right: 5px !important;  /* A jobb szélen, stabilan látható! */
        left: auto !important;
    }

    /* A statisztikák (HP, Körözés) betűit is lekicsinyítjük, hogy elférjenek */
    #stats-panel {
        font-size: 0.75em !important;
        gap: 8px !important;
    }
    
    /* A felugró hangerő panelt is vízszintesre igazítjuk, hogy ne lógjon ki */
    #volume-panel {
        position: fixed !important;
        top: 45px !important;
        left: 110px !important;
        width: 220px !important;
        padding: 10px !important;
    }
}