/* ==========================================================================
   LOCAL FONTS
   ========================================================================== */
@font-face {
    font-family: 'Luckiest Guy';
    src: url('assets/luckiest-guy-v25-latin-regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('assets/nunito-v32-latin-regular.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('assets/nunito-v32-latin-800.woff2') format('woff2');
    font-weight: 800; font-display: swap;
}

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #0a0510;
    --bg-card: #1c112b;
    --accent-purple: #b026ff;
    --accent-gold: #FFD700;
    --text-main: #ffffff;
    --text-muted: #b0a8ba;
    
    --font-heading: 'Luckiest Guy', cursive;
    --font-body: 'Nunito', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body, html {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow: hidden; /* Desktop split-screen lock */
}

a { text-decoration: none; }
.hidden { display: none !important; }

/* Accessibility Focus States */
*:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 2px; }

h1, h2, h3, .hero-title, .pass-title, .section-title, .game-title, .logo-text, .faq-question {
    font-family: var(--font-heading); font-weight: normal; letter-spacing: 2px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem); color: var(--text-main); text-align: center;
    margin-bottom: 40px; text-transform: uppercase;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 12px 20px; font-family: var(--font-heading); font-size: 1rem;
    letter-spacing: 1px; border-radius: 8px; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-transform: uppercase; text-align: center;
}
.btn:active { transform: scale(0.95); }

.btn-gold { background-color: var(--accent-gold); color: #000; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2); }
.btn-gold:hover { background-color: #fff; transform: translateY(-2px); }
.btn-massive { width: 100%; font-size: clamp(1.2rem, 2vw, 1.5rem); padding: 18px; }

.btn-buy { background-color: var(--accent-purple); color: #fff; flex: 1; }
.btn-buy:hover { background-color: #c95cff; transform: translateY(-2px); }

.btn-host { background-color: transparent; border: 2px solid #555; color: #fff; flex: 1; }
.btn-host:hover { border-color: var(--text-main); background-color: rgba(255,255,255,0.1); }

/* ==========================================================================
   SPLIT SCREEN LAYOUT (DESKTOP)
   ========================================================================== */
.app-container { display: flex; width: 100%; height: 100%; }

.left-panel {
    flex: 0 0 450px; background: linear-gradient(180deg, #1c0930 0%, var(--bg-dark) 100%);
    border-right: 1px solid #333; display: flex; flex-direction: column;
    padding: 40px; overflow-y: auto;
}

.right-panel {
    flex: 1; padding: 40px 60px; background-color: var(--bg-dark); overflow-y: auto;
}

/* ==========================================================================
   LEFT PANEL CONTENT
   ========================================================================== */
.brand-header { margin-bottom: 30px; }
.logo-text { font-size: 1.5rem; color: var(--accent-purple); letter-spacing: 3px; }

.hero-title { font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--text-main); line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); font-weight: 800; margin-bottom: 40px; }

.all-access-card {
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.15) 0%, rgba(0,0,0,0.5) 100%);
    border: 2px solid var(--accent-purple); border-radius: 16px; padding: 25px; margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(176, 38, 255, 0.1); position: relative;
}
.best-value-badge {
    position: absolute; top: -12px; right: 20px; background: var(--accent-gold); color: #000;
    font-family: var(--font-heading); padding: 4px 12px; border-radius: 20px; font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255,215,0,0.4);
}
.pass-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;}
.pass-title { font-size: 1.8rem; color: var(--accent-gold); margin:0;}
.price-tag { font-family: var(--font-heading); font-size: 2rem; color: white; }
.pass-desc { font-size: 1rem; color: var(--text-muted); font-weight: 800; margin-bottom: 20px; }

.how-to-play-mini { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 20px; border: 1px solid #222; }
.how-to-play-mini h3 { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; margin-bottom: 15px; letter-spacing: 1px;}
.how-to-play-mini ol { padding-left: 20px; color: var(--text-muted); font-weight: 400; font-size: 0.95rem; display: flex; flex-direction: column; gap: 10px;}
.how-to-play-mini strong { color: #fff; font-weight: 800; }

/* ==========================================================================
   RIGHT PANEL: COMPACT GAMES GRID
   ========================================================================== */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 60px;}

.game-card {
    background-color: var(--bg-card); border: 1px solid #333; border-radius: 12px;
    padding: 15px; display: flex; gap: 15px; transition: all 0.2s ease; align-items: center;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--accent-gold); box-shadow: 0 5px 20px rgba(0,0,0,0.4); }

.game-icon {
    width: 90px; height: 90px; border-radius: 10px; flex-shrink: 0;
    background-color: #111; background-size: cover; background-position: center; border: 1px solid #444;
}

.game-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.game-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px;}
.game-title { font-size: 1.4rem; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom:0;}

.icon-btn {
    background: transparent; border: none; cursor: pointer; padding: 5px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.svg-icon { width: 24px; height: 24px; fill: var(--text-muted); transition: fill 0.2s; }
.icon-btn:hover .svg-icon { fill: var(--accent-gold); }

.game-desc { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; margin-bottom: 15px; line-height: 1.3;}
.action-row { display: flex; gap: 10px; width: 100%; }
.action-row .btn { padding: 10px; font-size: 0.9rem; }

/* ==========================================================================
   GAME INFO MODAL (PREMIUM SIDE-BY-SIDE)
   ========================================================================== */
.game-modal {
    margin: auto; padding: 0; border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 20px;
    background: var(--bg-card); color: var(--text-main); width: 95%; max-width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); overflow: hidden; 
}
.game-modal::backdrop { background: rgba(10, 5, 16, 0.85); backdrop-filter: blur(5px); }

.modal-inner { position: relative; width: 100%; }
.modal-close-btn {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); border: none; color: white;
    width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s;
}
.modal-close-btn:hover { background: #ff4444; transform: scale(1.1); }

.modal-layout { display: grid; grid-template-columns: 1fr 1.2fr; max-height: 85vh; }

.modal-image-col { display: flex; flex-direction: column; background: #000; border-right: 1px solid #333;}
.modal-preview { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; margin: 0;}
.modal-preview img { width: 100%; height: 100%; object-fit: cover; }
.modal-price-box { padding: 20px; display: flex; flex-direction: column; gap: 15px; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); flex: 1;}
.modal-price { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-muted); }
.modal-btn-buy { width: 100%; font-size: 1.2rem; padding: 15px; }

.modal-content-col { padding: 30px; overflow-y: auto; display: flex; flex-direction: column; }
.modal-title { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 10px; }
.modal-desc { font-size: 1.1rem; color: var(--text-muted); font-weight: 700; margin-bottom: 25px; line-height: 1.5; font-style: italic;}
.modal-subheading { font-size: 1.5rem; color: var(--text-main); margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 5px;}
.modal-rules { color: var(--text-main); font-size: 1rem; line-height: 1.6; }
.modal-rules ul { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-rules strong { color: var(--accent-purple); font-weight: 800; }
.lead-text { margin-bottom: 15px; font-weight: bold; color: white;}

/* ==========================================================================
   FAQ SECTION (SEO & SMART SEARCH)
   ========================================================================== */
.faq-section { padding: 40px 0; border-top: 2px solid #333; width: 100%; }
.faq-search-wrapper { max-width: 600px; margin: 0 auto 40px auto; position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 20px; font-size: 1.5rem; pointer-events: none; }
.faq-search-input {
    width: 100%; padding: 18px 20px 18px 60px; font-size: 1.2rem; font-family: var(--font-body); font-weight: bold; background-color: var(--bg-card);
    border: 2px solid #333; border-radius: 50px; color: var(--text-main); transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.faq-search-input:focus { outline: none; border-color: var(--accent-purple); box-shadow: 0 5px 20px rgba(176, 38, 255, 0.3); }

.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background-color: var(--bg-card); border: 2px solid #333; border-radius: 12px; overflow: hidden; transition: border-color 0.3s ease; }
.faq-item.active { border-color: var(--accent-gold); }

.faq-question {
    width: 100%; text-align: left; padding: 20px 25px; background: none; border: none; color: var(--text-main); font-family: var(--font-heading); font-size: 1.3rem;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s ease;
}
.faq-question:hover { background-color: rgba(255, 255, 255, 0.05); }
.faq-question::after { content: '+'; font-size: 1.8rem; color: var(--accent-gold); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--accent-purple); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); background-color: rgba(0, 0, 0, 0.2); }
.faq-answer p { padding: 0 25px 25px 25px; color: var(--text-muted); font-size: 1.1rem; font-weight: 700; line-height: 1.6; }
.faq-no-results { text-align: center; color: var(--text-muted); font-size: 1.2rem; padding: 20px; }

.site-footer { 
    text-align: center; 
    padding: 40px 0 20px 0; 
    color: #8b8b8b;
    font-weight: 700; 
    font-size: 0.95rem; 
    margin-top: 40px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    body, html { overflow: auto; height: auto; }
    .app-container { flex-direction: column; height: auto; }
    
    .left-panel { flex: none; width: 100%; max-width: none; border-right: none; border-bottom: 1px solid #333; padding: 40px 20px; }
    .right-panel { flex: none; width: 100%; padding: 40px 20px; overflow: visible;}
    
    .game-grid { grid-template-columns: 1fr; }
    .game-card { flex-direction: column; align-items: flex-start; }
    .game-icon { width: 100%; height: 180px; }
    
    .action-row { flex-direction: column; }
    .action-row .btn { padding: 15px; font-size: 1.1rem;}
    
    .modal-layout { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto;}
    .modal-image-col { border-right: none; border-bottom: 1px solid #333; }
    .modal-price-box { flex-direction: column; gap: 10px; }
}