/* Modernistettu CSS - Tyylikkäämpi versio (Pinkki hehku poistettu) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root {
    /* Uudet väripaletti - syvempi ja modernimpi */
    --solid-card: #1A1E23;
	--primary-dark: #0A0A0F;
    --primary-medium: #16151D;
    --primary-light: #24223A;
    --accent-main: #e5586e;
    --accent-secondary: #6C5CE7; /* Päivitetty: Tummempi violetti */
    --accent-blue: #74B9FF; /* Sinertävä violetti */
    --accent-glow-main: rgb(229 88 110 / 11%);
    --text-light: #FFFFFF;
    --text-secondary: #B8B8C8;
    --text-muted: #8B8BA7;
    
    /* Glassmorphism värit */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* Varjot */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.5);
    
    /* Modernit gradientit */
    --gradient-primary: linear-gradient(135deg, #e5586e 0%, #e8677b 50%, #e5586e 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    ---gradient-hover: linear-gradient(135deg, #ef5dff 0%, #ef5dff 50%, #ef5dff 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, var(--accent-glow-main) 0%, transparent 50%), 
        radial-gradient(circle at 80% 20%, rgba(116, 185, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--accent-glow-main) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, #0D0D15 100%);
    color: var(--text-light);
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
    padding-top: 40px; 
}

/* Animoitu taustahiukkaset */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-glow-main), transparent), 
        radial-gradient(1px 1px at 90px 40px, rgba(116, 185, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-200px) rotate(360deg); opacity: 0; }
}

/* UUSI: Pääotsikon kontaineri */
.main-header {
    text-align: center;
    margin-bottom: 40px; 
    position: relative; 
    width: 100%; 
    max-width: 520px; 
    padding: 0 20px; 
    box-sizing: border-box;
}

/* game-containerin vanhat h1-tyylit siirretty tänne */
.main-header h1 {
    /* ... vanhat tyylit säilyvät ... */
    background-image: url('images/logo.png');
    background-size: 300px auto;
    background-repeat: no-repeat;
    background-position: center;
    height: 90px;
    text-indent: -9999px;
    overflow: hidden;
}

.main-header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes underlineGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.game-container {
    /*background: var(--glass-bg);*/
	background: rgb(0 0 0 / 8%);
    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.2px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 40px;
    width: 100%;
    max-width: 70%; /* Varmista, että tämä on oikea leveys */
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: containerEntry 1s ease-out forwards;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0.8;
    z-index: -1;
}

@keyframes containerEntry {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
        filter: blur(10px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0px);
    }
}

@keyframes bgShimmer {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; }
}

/* audio-controls nyt main-headerin sisällä */
.audio-controls {
    position: absolute;
    right: 15px; 
    top: 15px;
    display: none; /* Tämä pitää audionapin piilossa, jos et halua sitä näkyviin */
}

.audio-button {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.audio-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.audio-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-main);
}

.audio-button:hover::before {
    left: 0;
    opacity: 0.2;
}

.audio-button img {
    width: 30px;
    height: 30px;
    filter: invert(100%);
    transition: all 0.3s ease;
}

.audio-button:hover img {
    filter: invert(100%) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); 
    transform: scale(1.1);
}

.screen {
    display: none;
    animation: screenSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.screen.active {
    display: block;
}

@keyframes screenSlide {
    0% { 
        opacity: 0; 
        transform: translateX(20px); 
        filter: blur(5px);
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
        filter: blur(0);
    }
}

h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

h3 {
    font-family: 'Poppins', sans-serif; /* PÄIVITETTY TÄMÄKIN: Käyttää nyt Bebas Neuea */
    color: var(--text-light); /* UUSI: Vaihdettu väri Bebas Neun luettavuuden parantamiseksi */
    margin: 30px 0 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95em;
}

textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    font-size: 1em;
    font-family: 'Poppins', sans-serif; /* PÄIVITETTY TÄMÄKIN: Käyttää nyt Bebas Neuea */
    resize: vertical;
    min-height: 120px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
    border-color: var(--accent-main);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 0 3px var(--accent-glow-main);
    outline: none;
    transform: scale(1.02);
}

textarea::placeholder {
    color: var(--text-muted);
}
.btn.small {
    font-size: 1em;
    color: var(--text-light);
    z-index: 1;
    visibility: visible;
    opacity: 1;
}
.btn {
    z-index: 1;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Poppins', sans-serif; /* PÄIVITETTY TÄMÄKIN: Käyttää nyt Bebas Neuea */
    margin: 10px 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft); 
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.4s ease;
    z-index: 0;
}

.btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 15px 35px var(--accent-glow-main); 
}

.btn:hover::before {
    left: 0;
}

.btn:active {
    transform: translateY(0) scale(1.02);
    transition: transform 0.1s ease;
}

.btn.secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 0px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.btn.secondary:hover {
    background: #24223a00;
    border-color: var(--accent-main);
    box-shadow: var(--shadow-medium);
}
.start-screen-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
    min-height: 60px; /* Varmista riittävä korkeus info-painikkeelle */
}

/* KORJATTU: Info-painike oikeaan yläkulmaan */
#info-button {
    position: absolute !important;
    top: -50px !important;
    right: 0 !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    z-index: 10 !important;
}

#info-button:hover {
    transform: scale(1.1) !important;
    border-color: var(--accent-main) !important;
    box-shadow: var(--shadow-medium) !important;
    background: var(--glass-bg) !important;
}

#info-button::before {
    display: none !important;
}

#info-button img {
    width: 22px !important;
    height: 22px !important;
    filter: invert(70%) !important;
    transition: filter 0.3s ease !important;
}

#info-button:hover img {
    filter: invert(100%) !important;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0;
    max-height: 600px;
    overflow-y: auto;
    padding: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-main) transparent;
}

.tools-grid::-webkit-scrollbar {
    width: 6px;
}

.tools-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tools-grid::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.tool-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tool-item:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--accent-main);
    box-shadow: var(--shadow-medium);
}

.tool-item:hover::before {
    opacity: 0.1;
}

.tool-item.selected {
    background: var(--gradient-primary);
    border-color: var(--text-light);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.tool-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3)); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item:hover img,
.tool-item.selected img {
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.5));
    transform: scale(1.05) rotate(3deg);
}

.tool-item p {
    font-size: 0.8em;
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.tool-item:hover p,
.tool-item.selected p {
    color: var(--text-light);
}

.card-display {
    min-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: cardReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--solid-card);
    opacity: 0.8;
    z-index: -1;
}

@keyframes cardReveal {
    0% { 
        opacity: 0; 
        transform: rotateY(90deg) scale(0.8);
        filter: blur(10px);
    }
    100% { 
        opacity: 1; 
        transform: rotateY(0deg) scale(1);
        filter: blur(0);
    }
}

.card-type {
    font-family: 'Poppins', sans-serif; 
    font-size: 2em;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    /* animation: typeGlow 3s ease-in-out infinite alternate;
}

@keyframes typeGlow {
    /* Muutettu hehku valkoiseksi */
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); } 
    100% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); }
}

.card-text {
    font-size: 1.4em;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.timer-display {
    margin-top: 25px;
    font-size: 2em;
    font-weight: 700;
    background: var(--gradient-primary); /* HUOM: Tämä rivi pitää poistaa */
    background-clip: text; /* HUOM: Tämä rivi pitää poistaa */
    -webkit-background-clip: text; /* HUOM: Tämä rivi pitää poistaa */
    -webkit-text-fill-color: transparent; /* HUOM: Tämä rivi pitää poistaa */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /*animation: timerPulse 1s ease-in-out infinite alternate;
    font-family: 'Poppins', sans-serif; /* LISÄTTY: Käyttää nyt Bebas Neuea */
}

/* LISÄTTY: UUSI MÄÄRITYS PAINIKKEELLE AJASTIMEN SISÄLLÄ */
.timer-display button#start-timer-button {
    background: var(--gradient-primary); /* Varmista taustagradientti */
    color: var(--text-light); /* Varmista tekstin väri */
    font-size: 0.6em; /* Säädä fonttikokoa, Bebas Neue voi olla iso */
    font-family: 'Poppins', sans-serif; /* Varmista oikea fontti */
    text-transform: uppercase; /* Tai lowercase/none, riippuen mitä haluat */
    letter-spacing: 1px; /* Antaa tilaa kirjaimille Bebas Neun kanssa */
    padding: 10px 20px; /* Varmista padding */
    width: auto; /* Antaa painikkeen leventyä tekstin mukaan */
    min-width: 150px; /* Jos haluat vähimmäisleveyden */
    text-align: center; /* Keskitä teksti */
    display: block; /* Varmista, että on lohkoelementti */
    margin-top: 10px; /* Antaa tilaa ajastinluvusta */

    text-indent: 0; /* Varmista, ettei tekstiä siirretä pois */
    overflow: visible; /* Varmista, ettei tekstiä rajata */
    white-space: nowrap; /* Estä tekstin rivittyminen */
    
    /* TÄRKEÄÄ: Nämä nollaavat gradienttitekstityylit painikkeesta */
    -webkit-background-clip: initial !important; 
    background-clip: initial !important;         
    -webkit-text-fill-color: initial !important; 
}


@keyframes timerPulse {
    /* Muutettu hehku valkoiseksi */
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); }
}

.timer-display.hidden {
    display: none;
}

.game-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* MUOKATTU: Kahvikuppi-linkin tyylit */
a.text {
    color: #fff;
    font-size: 0.85em;
    text-decoration: none;
}
.tarjoa-kahvit{
    padding-top: 25px;
}
.coffee-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-left: 5px;
    vertical-align: middle;
    width: 30px
 
}

.coffee-link img {
    width: 30px; /* UUSI: Suurempi kahvikuppikuvake */
    height: 30px;
    filter: invert(100%) brightness(0.8) drop-shadow(0 0 3px rgba(0,0,0,0.5)); /* UUSI: Musta varjo kuvakkeelle */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.coffee-link:hover img {
    filter: invert(100%) brightness(1) drop-shadow(0 0 8px var(--accent-main)); /* Kirkkaampi hehku hoverilla */
    transform: scale(1.2); /* Selkeämpi suurennus hoverilla */
}


.small-text {
    font-size: 0.85em;
    margin-top: 30px;
    color: var(--text-muted);
    line-height: 1.5;
}

.small-text a {
    color: var(--accent-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.small-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.small-text a:hover {
    color: var(--text-light);
}

.small-text a:hover::after {
    width: 100%;
}

p.error {
    /* Vaihdettu väri ja taustan läpinäkyvyys vastaamaan uusia värejä */
    color: #FF6B6B; /* Edelleen punainen virheille */
    font-weight: 600;
    margin-top: 20px;
    background: rgba(255, 107, 107, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- Uusi "Lopeta peli" -painike tyyli --- */
.end-game-button {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    padding: 12px 25px; 
    font-size: 1em; 
    border-radius: 12px; 
    background: var(--primary-light); 
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; 
    z-index: 1000; 
}

.end-game-button:hover {
    background: var(--primary-medium); 
    transform: scale(1.05); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.4); 
}

/* --- Juomapeli on/off -kytkimen tyylit --- */
.drink-game-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px; 
    margin-bottom: 25px; 
}

/* Switch-koodi */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-medium); /* Käytä primary-medium pohjana */
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-light); /* Käytä vaaleaa väriä nuppina */
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-main); /* Käytä accent-main -väriä päällä */
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-main);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

#drink-game-status-text {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1em;
}

/* ... (muut CSS-tyylit) ... */

/* --- Yleinen Overlay (Modaalin tausta) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Nämä ovat nyt aktiiviset näkyvyyssäännöt, kun overlay on näkyvissä */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active { /* Aktiivinen luokka JS:n avulla */
    opacity: 1;
    visibility: visible;
}

.overlay.hidden { /* JS:n käyttämä piilotusluokka - TÄRKEÄ KORJAUS TÄSSÄ */
    opacity: 0 !important;       /* Pakota piilotus! */
    visibility: hidden !important; /* Pakota piilotus! */
    pointer-events: none !important; /* Pakota, ettei se reagoi hiireen */
}
#info-button {
  background: none !important;
  box-shadow: none !important;
  bottom: -15px !important;
}
/* ... (muut CSS-tyylit) ... */
/* Responsiveness - paremmat breakpointit */
@media (max-width: 768px) {
    .game-container {
        padding: 30px;
        border-radius: 20px;
        max-width: 95%;
    }

    /* UUSI: Päivitä main-header responsiivisuus */
    .main-header h1 {
        font-size: 2.8em;
    }
    .audio-controls {
        right: 10px; /* Hieman sisemmälle responsiivisuutta varten */
        top: 10px;
    }

    .audio-button {
        width: 45px;
        height: 45px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95em;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tool-item img {
        width: 40px;
        height: 40px;
    }

    .end-game-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 25px;
        border-radius: 18px;
    }

    /* UUSI: Päivitä main-header responsiivisuus */
    .main-header h1 {
        font-size: 2.4em;
        letter-spacing: 0;
    }
    .audio-controls {
        right: 5px; 
        top: 5px;
        width: 40px; 
        height: 40px;
    }
    .audio-button img {
        width: 22px; 
        height: 22px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9em;
        margin: 8px 4px;
    }

    .game-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .card {
        padding: 30px;
        min-height: 200px;
    }

    .card-type {
        font-size: 2.2em;
    }

    .card-text {
        font-size: 1.2em;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
        padding: 15px; 
    }

    .tool-item img {
        width: 35px;
        height: 35px;
    }

    .end-game-button {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8em;
    }
}

/* Lisätyt modernit efektit */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
    
    .tool-item,
    .btn,
    .audio-button {
        will-change: transform;
    }
}