/* ==========================================================================
   Viihdetta.fi – Yhdistetty Päätyylitiedosto (main.css)
   ========================================================================== */

:root {
    --accent-primary: #FFB300;     
    --accent-warm: #E59800;        
    --accent-glow: rgba(255, 179, 0, 0.25);
    --accent-soft: #ffe066;

    --bgr-dark: #121316;           
    --bgr-card: #1C1E22;           
    --bgr-card-elev: #25282E;      

    --text-primary: #FFFFFF;       
    --text-secondary: #A0A5B1;     
    --text-dark: #121316;          

    --border-subtle: #2D3139;      
    --status-error: #FF3B30;       
    --status-success: #28a745;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bgr-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

input[type="radio"] { 
    display: none; 
}

/* --- SCROLL REVEAL ANIMAATIO TYYLIT --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- HEADER / TOPMENU --- */
#topmenu {
    width: 100%;
    height: 64px;
    background: rgba(28, 30, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--accent-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-nav {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    background: var(--accent-primary);
    color: var(--text-dark);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-overlay {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bgr-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 8px 0;
}

.mobile-btn {
    text-align: center;
    margin-top: 10px;
}

/* --- POPUP / MODAL PELIKOODILLE --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--accent-primary); }

/* --- HERO KARUSELLI (#WRAP) - KULUTTAJAPELIT --- */
#wrap {
    position: relative;
    width: 100%;
    min-height: 85vh;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bgr-dark);
}

#carousel_container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wrap .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.6s;
    padding: 80px 20px 40px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.55) 0%, var(--bgr-dark) 100%), 
                url("https://cnt.viihdetta.fi/kuvat/bgr-all.jpg") center/cover no-repeat;
}

#wrap .slide.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.hero-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 auto;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* GLASS CARD MODALEILLE */
.glass-card {
    background: var(--bgr-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px 35px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card.wide-card { max-width: 900px; }
.glass-card:hover { border-color: var(--accent-primary); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-glow); }

.hero-badge, .badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 18px 0;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-title span { color: var(--accent-primary); text-shadow: 0 0 20px var(--accent-glow); }

.hero-text {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 32px 0;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 38px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 9999px;
    color: #000000;
    background: var(--accent-primary);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-hero:hover { background: var(--accent-soft); transform: translateY(-3px) scale(1.03); box-shadow: 0 15px 35px var(--accent-glow); }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.4rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.carousel-nav:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(255, 204, 0, 0.1); transform: translateY(-50%) scale(1.08); }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.carousel-indicators { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-subtle); cursor: pointer; transition: all 0.3s ease; }
.dot.active { width: 32px; border-radius: 10px; background: var(--accent-primary); box-shadow: 0 0 12px var(--accent-glow); }

/* --- HERO OSIO RAVINTOLOILLE-SIVULLA (TAUSTAKUVALLA) --- */
.hero-section {
    position: relative;
    padding: 100px 24px 80px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(18, 19, 22, 0.75) 0%, var(--bgr-dark) 100%), 
                url("https://cnt.viihdetta.fi/kuvat/bgr-all.jpg") center/cover no-repeat;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-usp-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.usp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-primary);
}

.usp-icon {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
}

.btnwrap {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-warm);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bgr-card-elev);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

/* UI MOCKUP */
.hero-mockup-wrapper {
    position: relative;
}

.app-mockup {
    background: var(--bgr-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.mockup-header {
    background: var(--bgr-card-elev);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 10px;
}

.mockup-body { padding: 28px; }

.mockup-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status-badge {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
}

.time-code { font-size: 0.85rem; color: var(--text-secondary); }

.mockup-card-active {
    background: var(--bgr-card-elev);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    border-radius: 12px;
}

.game-tag {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.mockup-card-active h3 { font-size: 1.2rem; margin-bottom: 10px; }
.q-text { font-style: italic; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 18px; }

.player-count {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   ILMAVA ZIG-ZAG LAYOUT – SULAUTETUT ELEMENTIT & LISÄTIEDOT
   ========================================================================== */
.games-fullwidth-section {
    width: 100%;
    padding: 120px 0 140px;
}

.games-rows-container {
    display: flex;
    flex-direction: column;
    gap: 160px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.game-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
}

.game-row.reverse {
    direction: rtl;
}

.game-row.reverse .game-row-media,
.game-row.reverse .game-row-text {
    direction: ltr;
}

.game-row-media {
    width: 100%;
    height: 380px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 179, 0, 0.08) 0%, rgba(28, 30, 34, 0.4) 70%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s ease, 
                box-shadow 0.5s ease;
}

.game-row-media::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-row-media .visual-symbol {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.game-row-media .visual-symbol svg {
    width: 54px;
    height: 54px;
}

.game-row-media img, 
.game-row-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    mix-blend-mode: luminosity;
    transition: opacity 0.5s ease, transform 0.6s ease, mix-blend-mode 0.5s ease;
}

.game-row:hover .game-row-media {
    border-color: rgba(255, 179, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 179, 0, 0.12);
}

.game-row:hover .game-row-media::before {
    opacity: 0.35;
    transform: scale(1.2);
}

.game-row:hover .game-row-media .visual-symbol {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 0 45px var(--accent-glow);
}

.game-row:hover .game-row-media img,
.game-row:hover .game-row-media video {
    opacity: 0.9;
    mix-blend-mode: normal;
    transform: scale(1.04);
}

.game-row-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.game-row-text .icon-wrapper {
    margin-bottom: 24px;
    background: rgba(255, 179, 0, 0.08);
    border-color: rgba(255, 179, 0, 0.2);
}

.game-row-text h3 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.game-row-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
}

/* OMINAISUUSBADGET (LISÄTIEDOT KELTAISEN PAINIKKEEN TILALLE) */
.game-details-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-badge::before {
    content: "✓";
    color: var(--accent-primary);
    font-weight: 800;
}

/* ==========================================================================
   KOKO LEVEYDEN KULTA / KELTAINEN MAINOSBANNERI (MYYVÄ CTA)
   ========================================================================== */
.cta-banner-fullwidth {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #FFB300 0%, #E59800 100%);
    position: relative;
    padding: 70px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 80px 0;
    box-shadow: 0 15px 40px rgba(255, 179, 0, 0.2);
}

.cta-banner-fullwidth::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(50px);
}

.cta-banner-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #121316;
    color: #FFB300;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cta-banner-container h2 {
    color: #121316;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-banner-container p {
    color: rgba(18, 19, 22, 0.85);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 32px;
    font-weight: 500;
    line-height: 1.6;
}

.cta-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-cta-gold {
    display: inline-block;
    padding: 18px 42px;
    background: #121316;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-gold:hover {
    background: #25282E;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.cta-subnote {
    font-size: 0.85rem;
    color: rgba(18, 19, 22, 0.75);
    font-weight: 700;
}

/* --- TAPAHTUMALISTA & YLEISSECTIONT --- */
.main-section {
    padding: 90px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 90px auto 45px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 { font-size: 2.2rem; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-header h3 { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 800; margin: 12px 0 8px 0; color: var(--text-primary); letter-spacing: -1px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; margin: 0; }

#tapahtumalista_wrapper { width: 100%; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.no-events-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 55px 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.no-events-card .icon { font-size: 2.8rem; margin-bottom: 12px; display: block; opacity: 0.7; }

.tapahtuma-kortti {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tapahtuma-kortti:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 204, 0, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.tapahtuma-info h4 { color: var(--text-primary); font-size: 1.25rem; font-weight: 700; margin: 4px 0; }
.tapahtuma-info p { font-size: 0.95rem; margin: 0; color: var(--text-secondary); }

.btn-liity {
    background: var(--accent-primary);
    color: #000000;
    padding: 12px 26px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-liity:hover { background: var(--accent-soft); transform: scale(1.05); }

.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

.infocase {
    background: var(--bgr-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.25s, transform 0.25s, opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.infocase:hover { 
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 52px;
    height: 52px;
    background: var(--bgr-card-elev);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.icon-wrapper svg { width: 26px; height: 26px; }

.split_info h4 { 
    font-size: 1.25rem; 
    margin-bottom: 12px;
    font-weight: 700;
}

.split_info p { 
    color: var(--text-secondary); 
    font-size: 0.95rem; 
    line-height: 1.6;
}

/* VERTAILUKORTIT */
.comparison-section {
    max-width: 960px;
    margin: 90px auto;
    padding: 0 24px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comp-box {
    background: var(--bgr-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-box.featured {
    border-color: var(--accent-primary);
    background: var(--bgr-card-elev);
}

.best-value-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--accent-primary);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 12px;
}

.price-tag { font-size: 1.8rem; font-weight: 800; margin: 20px 0; }
.price-tag span { font-size: 0.9rem; color: var(--text-secondary); font-weight: 400; }

.comp-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.comp-box li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.icon-bad { color: var(--status-error); width: 20px; }
.icon-good { color: var(--status-success); width: 20px; }
.btn-full { width: 100%; text-align: center; }

/* UKK */
.faq-section { max-width: 760px; margin: 90px auto; padding: 0 24px; }

.faq-item {
    background: var(--bgr-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 24px 20px;
    display: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CHECKOUT */
.checkout-section { padding: 80px 24px; border-top: 1px solid var(--border-subtle); }

.checkout-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bgr-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--status-success);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.checkout-header h2 { font-size: 2rem; margin-bottom: 8px; }
.subtext { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 30px; }

fieldset { border: none; margin-bottom: 28px; }
legend {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    width: 100%;
    margin-bottom: 18px;
}

.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-row { display: flex; gap: 16px; }
.half { flex: 1; }

label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--bgr-card-elev);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.stripe-card-container {
    padding: 14px;
    background: var(--bgr-card-elev);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-height: 44px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-primary);
    color: var(--text-dark);
    border: none;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
}

.security-text { text-align: center; font-size: 0.8rem; color: var(--text-secondary); margin-top: 14px; }

/* --- FOOTER --- */
#site_footer {
    width: 100%;
    background: #08080a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 70px 20px 35px;
    box-sizing: border-box;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand { max-width: 320px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }

.footer-nav h4, .footer-info h4 { color: var(--accent-primary); margin: 0 0 18px 0; font-size: 1.1rem; letter-spacing: 0.5px; }

.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-info p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }

.footer-bottom { 
    max-width: 1100px;
    margin: 50px auto 0; 
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4); 
    font-size: 0.85rem; 
    text-align: center; 
}

.link-hover { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.link-hover:hover { color: var(--accent-primary); text-decoration: underline; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* RESPONSIIVISUUS (MOBIILI) */
@media (max-width: 900px) {
    .desktop-nav, .btn-link, .btn-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-container, .comparison-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .info-grid { grid-template-columns: 1fr; }
    .carousel-nav { display: none; }
    .hero-title { font-size: 2.1rem; }
    .glass-card { padding: 30px 20px; }
    .tapahtuma-kortti { flex-direction: column; align-items: flex-start; gap: 15px; }
    .footer-container { flex-direction: column; gap: 35px; text-align: center; align-items: center; }
    
    .games-fullwidth-section {
        padding: 60px 0 90px;
    }
    .games-rows-container {
        gap: 90px;
    }
    .game-row, .game-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }
    .game-row-media {
        height: 260px;
    }
    .game-row-text h3 {
        font-size: 1.8rem;
    }
    .cta-banner-fullwidth {
        padding: 50px 20px;
    }
}

/* --- OIKEUDELLISET EHDOT & CHECKBOXIT --- */
.terms-group {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: block !important; /* Varmistetaan että checkbox näkyy */
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-primary); /* Kulta/keltainen korostusväri */
    cursor: pointer;
    flex-shrink: 0;
}

.link-gold {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
}

.link-gold:hover {
    color: var(--accent-soft);
}

/* KIELENVALITSIMEN TYYLIT */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bgr-card-elev);
    border: 1px solid var(--border-subtle);
    padding: 3px;
    border-radius: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: var(--text-dark);
}