@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Base Colors */
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --white: #ffffff;
    --black: #0b0c10;
    --glass: rgba(15, 15, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-speed: 0.5s;

    /* Theme Variable Defaults (Sunset Mirage - Default) */
    --bg-primary: #120904;
    --bg-secondary: #1f1107;
    --theme-accent: #ff6d00;
    --theme-accent-glow: rgba(255, 109, 0, 0.6);
    --theme-btn-bg: #ff6d00;
    --theme-btn-text: #ffffff;
    --table-felt: radial-gradient(circle, #e65100 0%, #d84315 70%, #3e2723 100%);
    --table-border: #bf360c;
    --font-heading: 'Outfit', sans-serif;
    --neon-shadow: 0 0 30px rgba(255, 109, 0, 0.4);
}

/* ==========================================================================
   THEMES INHERITANCE (10 ELITE LOBBY CONCEPTS)
   ========================================================================== */

/* Theme 1: Diamond Emperor (💎) */
body.theme-t1 {
    --bg-primary: #0d161b;
    --bg-secondary: #14242e;
    --theme-accent: #00e5ff;
    --theme-accent-glow: rgba(0, 229, 255, 0.5);
    --theme-btn-bg: #00e5ff;
    --theme-btn-text: #050b0f;
    --table-felt: radial-gradient(circle, #e0f7fa 0%, #b2ebf2 50%, #4dd0e1 100%);
    --table-border: #37474f; /* Slate grey border */
    --neon-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}
body.theme-t1 .player-card, body.theme-t1 .leaderboard-card, body.theme-t1 .navbar {
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    border: 1px solid rgba(0, 229, 255, 0.2);
}
body.theme-t1 .nav-links a, body.theme-t1 .sec-title, body.theme-t1 .feature-card h3, body.theme-t1 .stat-val {
    color: #111;
}

/* Theme 2: Midnight Velvet (Mor & Altın) */
body.theme-t2 {
    --bg-primary: #0d0614;
    --bg-secondary: #180d26;
    --theme-accent: #e040fb;
    --theme-accent-glow: rgba(224, 64, 251, 0.6);
    --theme-btn-bg: #ffd700;
    --theme-btn-text: #0a0510;
    --table-felt: radial-gradient(circle, #4a148c 0%, #310662 70%, #1a003a 100%);
    --table-border: #795548;
    --neon-shadow: 0 0 30px rgba(224, 64, 251, 0.4);
}

/* Theme 3: Ancient Marble (Klasik Beyaz Mermer) */
body.theme-t3 {
    --bg-primary: #f2f2f2;
    --bg-secondary: #e6e6e6;
    --theme-accent: #8e8e93;
    --theme-accent-glow: rgba(142, 142, 147, 0.4);
    --theme-btn-bg: #000000;
    --theme-btn-text: #ffffff;
    --table-felt: radial-gradient(circle, #ffffff 0%, #e0e0e0 70%, #bdbdbd 100%);
    --table-border: #3e2723;
    --neon-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
body.theme-t3 .player-card, body.theme-t3 .leaderboard-card, body.theme-t3 .navbar {
    background: rgba(255, 255, 255, 0.9);
    color: #1c1c1e;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
body.theme-t3 .nav-links a, body.theme-t3 .sec-title, body.theme-t3 .feature-card h3, body.theme-t3 .stat-val {
    color: #1c1c1e;
}

/* Theme 4: Cyber Genesis (⚡) */
body.theme-t4 {
    --bg-primary: #030307;
    --bg-secondary: #080c18;
    --theme-accent: #00ffff;
    --theme-accent-glow: rgba(0, 255, 255, 0.7);
    --theme-btn-bg: #00ffff;
    --theme-btn-text: #000000;
    --table-felt: radial-gradient(circle, #000d1a 0%, #001a33 60%, #000000 100%);
    --table-border: #00ffff;
    --neon-shadow: 0 0 35px rgba(0, 255, 255, 0.6);
}

/* Theme 5: Forest Zen (Yeşil - Default) */
body.theme-t5 {
    --bg-primary: #0a0e0a;
    --bg-secondary: #121b12;
    --theme-accent: #4caf50;
    --theme-accent-glow: rgba(76, 175, 80, 0.5);
    --theme-btn-bg: #4caf50;
    --theme-btn-text: #ffffff;
    --table-felt: radial-gradient(circle, #2e7d32 0%, #1b5e20 80%, #0c3810 100%);
    --table-border: #3e2723;
    --neon-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

/* Theme 6: Oceanic Abyss (Mavi) */
body.theme-t6 {
    --bg-primary: #030b14;
    --bg-secondary: #071526;
    --theme-accent: #0288d1;
    --theme-accent-glow: rgba(2, 136, 209, 0.5);
    --theme-btn-bg: #0288d1;
    --theme-btn-text: #ffffff;
    --table-felt: radial-gradient(circle, #01579b 0%, #002f6c 70%, #00113a 100%);
    --table-border: #5d4037;
    --neon-shadow: 0 0 25px rgba(2, 136, 209, 0.4);
}

/* Theme 7: Sunset Mirage (Sıcak Altın/Turuncu) */
body.theme-t7 {
    --bg-primary: #120904;
    --bg-secondary: #1f1107;
    --theme-accent: #ff6d00;
    --theme-accent-glow: rgba(255, 109, 0, 0.6);
    --theme-btn-bg: #ff6d00;
    --theme-btn-text: #ffffff;
    --table-felt: radial-gradient(circle, #e65100 0%, #d84315 70%, #3e2723 100%);
    --table-border: #bf360c;
    --neon-shadow: 0 0 30px rgba(255, 109, 0, 0.4);
}

/* Theme 8: Industrial Copper (Bakır/Deri) */
body.theme-t8 {
    --bg-primary: #110e0c;
    --bg-secondary: #1a1613;
    --theme-accent: #d84315;
    --theme-accent-glow: rgba(216, 67, 21, 0.5);
    --theme-btn-bg: #ff8f00;
    --theme-btn-text: #110e0c;
    --table-felt: radial-gradient(circle, #5d4037 0%, #4e342e 70%, #3e2723 100%);
    --table-border: #272727;
    --neon-shadow: 0 0 20px rgba(216, 67, 21, 0.3);
}

/* Theme 9: Royal Ivory (Saf Fildişi) */
body.theme-t9 {
    --bg-primary: #1e1e1e;
    --bg-secondary: #2c2c2c;
    --theme-accent: #e5e5ea;
    --theme-accent-glow: rgba(229, 229, 234, 0.4);
    --theme-btn-bg: #ffffff;
    --theme-btn-text: #000000;
    --table-felt: radial-gradient(circle, #fcfcfc 0%, #eaeaea 60%, #cccccc 100%);
    --table-border: #8e8e93;
    --neon-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
body.theme-t9 .table-felt {
    color: #111;
}

/* Theme 10: Legendary Coffee (Kahve Kıraathanesi) */
body.theme-t10 {
    --bg-primary: #0f0a07;
    --bg-secondary: #1a120c;
    --theme-accent: #8d6e63;
    --theme-accent-glow: rgba(141, 110, 99, 0.5);
    --theme-btn-bg: #8d6e63;
    --theme-btn-text: #ffffff;
    --table-felt: radial-gradient(circle, #2e5c1e 0%, #1e3d14 80%, #0d1c07 100%);
    --table-border: #5d4037; /* Klasik ahşap çıta */
    --neon-shadow: 0 0 15px rgba(141, 110, 99, 0.3);
}

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--white);
    font-family: var(--font-heading);
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--theme-accent);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Glassmorphism Panel Helper */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.logo img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--theme-accent);
    box-shadow: 0 0 10px var(--theme-accent-glow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link-item {
    position: relative;
    display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link-item:hover, .nav-link-item.active {
    color: var(--theme-accent) !important;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 10px var(--theme-accent-glow);
}

.nav-link-item.active {
    border-color: rgba(255, 255, 255, 0.16);
}

.nav-link-item.store-link {
    color: #fbbf24 !important;
}

.nav-link-item.store-link:hover, .nav-link-item.store-link.active {
    color: #fbbf24 !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}


.nav-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold) 0%, #e5a900 100%);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* ==========================================================================
   HERO / LIVE GAME TABLE
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.07), transparent 40%),
                      radial-gradient(circle at 10% 80%, var(--theme-accent-glow), transparent 30%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

/* Floating Light Blobs for Premium Aesthetic */
.hero-glow-1, .hero-glow-2 {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
    opacity: 0.18;
    z-index: -1;
    transition: background 0.8s ease;
}

.hero-glow-1 {
    background: var(--theme-accent);
    top: 10%;
    right: 15%;
    animation: floatGlow1 20s infinite alternate ease-in-out;
}

.hero-glow-2 {
    background: var(--gold);
    bottom: 10%;
    left: 15%;
    animation: floatGlow2 25s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, 60px) scale(1.2); }
    100% { transform: translate(40px, -50px) scale(0.9); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(70px, -80px) scale(0.85); }
    100% { transform: translate(-50px, 40px) scale(1.15); }
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    gap: 60px;
    z-index: 10;
}

.hero-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.elite-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-left h1 {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.15;
    background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.hero-left h1 span {
    background: linear-gradient(135deg, var(--gold) 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 10px;
    max-width: 580px;
}

.hero-left .cta-container {
    margin-top: 15px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    width: 100%;
    max-width: 500px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--theme-accent);
    text-shadow: 0 0 10px var(--theme-accent-glow);
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-card {
    width: 100%;
    max-width: 360px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(170%);
    -webkit-backdrop-filter: blur(25px) saturate(170%);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--theme-accent);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 30px var(--theme-accent-glow);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.premium-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
}

.badge-vip {
    background: linear-gradient(135deg, #ffd700, #cca100);
    color: #0b0c10;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.card-title-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
}

.card-avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #1e293b;
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 15px;
}

.card-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-lvl-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #06b6d4;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.card-username {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
    margin-bottom: 4px;
}

.card-status-text {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.card-balances {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.bal-lbl {
    color: #94a3b8;
    font-weight: 500;
}

.bal-val {
    font-weight: 800;
}

.text-gold { color: #fbbf24; }
.text-cyan { color: #06b6d4; }
.text-purple { color: #e040fb; }

.card-action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--theme-btn-bg) 0%, rgba(0,0,0,0.4) 100%);
    color: var(--theme-btn-text);
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--theme-accent-glow);
    z-index: 1;
    position: relative;
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--theme-accent-glow);
    filter: brightness(1.15);
}

/* CTAs below Table */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 15px 36px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    box-shadow: 0 5px 20px var(--theme-accent-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--theme-accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    padding: 15px 36px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   LOBBY THEMES SECTOR
   ========================================================================== */
.section {
    padding: 90px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sec-title {
    text-align: center;
    margin-bottom: 50px;
}

.sec-title h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sec-title h2 span {
    color: var(--theme-accent);
}

.sec-title p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-size: 16px;
}

/* Grid layout for lobby themes */
.lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.lobby-card {
    height: 180px;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.lobby-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lobby-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 35px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.lobby-card.active-card {
    border-color: var(--theme-accent);
    box-shadow: 0 0 25px var(--theme-accent-glow), 0 8px 24px rgba(0,0,0,0.4);
}

/* Themes background styles inside lobby selector cards */
.lobby-card.t1 { background: linear-gradient(135deg, #101e26 0%, #1c3647 100%); }
.lobby-card.t2 { background: linear-gradient(135deg, #1b0a2e 0%, #31145a 100%); }
.lobby-card.t3 { background: linear-gradient(135deg, #dfdfdf 0%, #b8b8b8 100%); color: #000; }
.lobby-card.t4 { background: linear-gradient(135deg, #050d1a 0%, #0c1c3a 100%); }
.lobby-card.t5 { background: linear-gradient(135deg, #0e2410 0%, #1b471f 100%); }
.lobby-card.t6 { background: linear-gradient(135deg, #021a2c 0%, #05355a 100%); }
.lobby-card.t7 { background: linear-gradient(135deg, #2c0f02 0%, #561d04 100%); }
.lobby-card.t8 { background: linear-gradient(135deg, #201712 0%, #3a2a21 100%); }
.lobby-card.t9 { background: linear-gradient(135deg, #eaeaea 0%, #c4c4c4 100%); color: #000; }
.lobby-card.t10 { background: linear-gradient(135deg, #1a1b20 0%, #30353c 100%); }

.lobby-card-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 20px;
    right: 20px;
    opacity: 0.8;
}
.t1 .lobby-card-glow { background: #00e5ff; box-shadow: 0 0 20px #00e5ff; }
.t2 .lobby-card-glow { background: #e040fb; box-shadow: 0 0 20px #e040fb; }
.t3 .lobby-card-glow { background: #ffd700; box-shadow: 0 0 10px rgba(0,0,0,0.3); }
.t4 .lobby-card-glow { background: #00ffff; box-shadow: 0 0 25px #00ffff; }
.t5 .lobby-card-glow { background: #4caf50; box-shadow: 0 0 20px #4caf50; }
.t6 .lobby-card-glow { background: #0288d1; box-shadow: 0 0 20px #0288d1; }
.t7 .lobby-card-glow { background: #ff6d00; box-shadow: 0 0 20px #ff6d00; }
.t8 .lobby-card-glow { background: #ff8f00; box-shadow: 0 0 20px #ff8f00; }
.t9 .lobby-card-glow { background: #8e8e93; box-shadow: 0 0 20px #8e8e93; }
.t10 .lobby-card-glow { background: #8d6e63; box-shadow: 0 0 15px #8d6e63; }

.lobby-card h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    z-index: 10;
}

.lobby-card p {
    font-size: 12px;
    opacity: 0.7;
    z-index: 10;
}

/* ==========================================================================
   LEADERBOARD
   ========================================================================== */
.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.leaderboard-card {
    padding: 30px;
    width: 100%;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.leaderboard-header h3 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-header h3 span {
    color: var(--theme-accent);
}

.leaderboard-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Podium top 3 */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 30px;
}

.podium-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 150px;
}

.podium-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 10px;
    border: 2px solid #000;
}

.podium-1st .podium-rank { background: var(--gold); color: #000; box-shadow: 0 0 15px var(--gold-glow); }
.podium-2nd .podium-rank { background: #dcdad5; color: #000; }
.podium-3rd .podium-rank { background: #cd7f32; color: #000; }

.podium-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.podium-seat:hover .podium-avatar {
    transform: scale(1.1);
}

.podium-1st .podium-avatar { border-color: var(--gold); box-shadow: 0 0 15px var(--gold-glow); }
.podium-2nd .podium-avatar { border-color: #dcdad5; }
.podium-3rd .podium-avatar { border-color: #cd7f32; }

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-name {
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.podium-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.podium-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    margin-top: 15px;
    transition: height 0.5s ease;
}

.podium-1st .podium-bar { height: 100px; background: rgba(255, 215, 0, 0.1); border-top-color: var(--gold); }
.podium-2nd .podium-bar { height: 70px; background: rgba(255, 255, 255, 0.07); }
.podium-3rd .podium-bar { height: 50px; background: rgba(205, 127, 50, 0.08); border-top-color: #cd7f32; }

/* Leaderboard list table */
.leaderboard-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    background: rgba(0, 0, 0, 0.25);
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr {
    transition: background-color 0.2s ease;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rank-col {
    width: 80px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
}

.rank-top {
    color: var(--theme-accent);
}

.name-col {
    font-weight: 700;
}

.level-col {
    color: #aaa;
}

.chips-col {
    font-weight: 800;
    color: var(--gold);
    text-align: right;
}

/* ==========================================================================
   FEATURES / SECURITY
   ========================================================================== */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent-glow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--theme-accent);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.05);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

.footer-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    border: 1.5px solid var(--theme-accent);
    box-shadow: 0 0 8px var(--theme-accent-glow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1) rotate(-8deg);
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--theme-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 15px;
}

/* ==========================================================================
   GAME MODAL & AUDIO CONTROL
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-header {
    height: 50px;
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-weight: 800;
    color: var(--gold);
    font-size: 15px;
    letter-spacing: 1px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-body {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   EMBEDDED GAME CANVAS AND LOADING SCREEN
   ========================================================================== */
#game-canvas-container {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    background: #0b0c10 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0px !important;
    border: none !important;
    touch-action: none;
}

#canvas:focus {
    outline: none;
}

#status {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    visibility: hidden;
    border: none;
}

#status-splash {
    max-width: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

#status-splash.show-image--false {
    display: none;
}

#status-splash.fullsize--true {
    max-height: 180px;
    object-fit: contain;
}

#status-splash.use-filter--false {
    image-rendering: pixelated;
}

#status-progress {
    width: 70%;
    max-width: 280px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    background: #333;
    color: #d4af37;
}

#status-notice {
    color: #ff4d4d;
    margin-top: 15px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
}

.game-close-btn-embedded {
    position: absolute;
    right: 25px;
    top: 25px;
    z-index: 100100;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 2px solid #d4af37;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 30px;
    line-height: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-close-btn-embedded:hover {
    transform: scale(1.1) rotate(90deg);
    border-color: #ffffff;
    color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Floating Game Close Button */
.game-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.game-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    box-shadow: 0 0 15px var(--theme-accent-glow);
}

/* Audio Player Floating Button */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.audio-control:hover {
    transform: scale(1.1);
    background: var(--theme-accent);
    box-shadow: 0 0 15px var(--theme-accent-glow);
}

.audio-control.muted::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ff3b30;
    transform: rotate(-45deg);
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Hero Campaign Slider Style */
.hero-campaign-slider {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin-top: 30px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slides-container {
    position: relative;
    width: 100%;
    height: 145px;
}

.campaign-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.campaign-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.campaign-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.campaign-slide:hover::before {
    left: 100%;
    transition: 0.6s ease-in-out;
}

.campaign-slide:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.campaign-icon {
    font-size: 36px;
    background: rgba(255, 109, 0, 0.12);
    border: 1px solid rgba(255, 109, 0, 0.2);
    border-radius: 16px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.15);
    animation: pulseIcon 2s infinite alternate ease-in-out;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); box-shadow: 0 0 20px rgba(255, 109, 0, 0.4); }
}

@keyframes pulseIconCyan {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); }
}

@keyframes pulseIconGold {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
}

.campaign-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.campaign-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0b0c10;
    font-size: 10px;
    font-weight: 850;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.campaign-time {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.campaign-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
}

.campaign-text {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.campaign-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}

.campaign-slide:hover .campaign-arrow {
    transform: translateX(6px);
    color: #fff;
}

/* Dots Indicators */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
    background: transparent;
    z-index: 10;
    position: relative;
    margin-top: -5px;
}

.slider-dots .dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots .dot.active {
    background: var(--theme-accent);
    width: 32px;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    .hero-container {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }
    .hero-left {
        align-items: center;
        text-align: center;
    }
    .hero-left h1 {
        font-size: 38px;
        text-align: center;
    }
    .hero-desc {
        text-align: center;
        margin: 0 auto;
    }
    .hero-left .cta-container {
        justify-content: center;
        width: 100%;
    }
    .hero-stats {
        justify-content: center;
        margin: 20px auto 0 auto;
        max-width: 100%;
        gap: 20px;
    }
    .premium-card {
        max-width: 100%;
        width: 340px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
        top: 10px;
        height: 60px;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 95px 25px 40px 25px;
        gap: 12px;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links.open {
        right: 0;
    }
    .nav-link-item {
        width: 100%;
        height: 46px;
        line-height: 46px;
        font-size: 13px;
        padding: 0 20px;
        border-radius: 12px;
        text-align: left;
        display: block;
    }
    .logo span {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .logo img {
        height: 36px;
        width: 36px;
    }
    .nav-btn {
        padding: 6px 14px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    .login-trigger-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .verified-banner {
        display: none !important;
    }
    .hero-title h1 {
        font-size: 32px;
    }
    .hero-title p {
        font-size: 14px;
    }
    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .podium {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .podium-seat {
        width: 100%;
    }
    .podium-bar {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   MOBILE ORIENTATION SYSTEM — Cihaz döndürme overlay (CSS rotasyon YOK)
   ========================================================================== */

body.game-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Oyun aktifken canvas normal landscape olarak dolar — CSS rotasyon kullanılmaz */
body.game-active #game-canvas-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100dvw !important;
    height: 100dvh !important;
    transform: none !important;
}

/* ---- PORTRAIT OVERLAY ---- */
/* Portrait moddayken tam ekran "cihazı döndür" mesajı göster */
#rotate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(ellipse at center, #0f1c35 0%, #060d1a 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #fff;
    font-family: 'Outfit', 'Inter', sans-serif;
    text-align: center;
    padding: 32px;
}

#rotate-overlay .rotate-icon {
    font-size: 80px;
    animation: rotatePhone 2s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.6));
}

#rotate-overlay h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fbbf24;
    margin: 0;
    line-height: 1.3;
}

#rotate-overlay p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    max-width: 280px;
    line-height: 1.6;
}

@keyframes rotatePhone {
    0%   { transform: rotate(0deg) scale(1); }
    30%  { transform: rotate(-90deg) scale(1.1); }
    60%  { transform: rotate(-90deg) scale(1.1); }
    90%  { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Oyun aktif + portrait → overlay'i göster, canvas'ı gizle */
@media (orientation: portrait) and (max-width: 1024px) {
    body.game-active #rotate-overlay {
        display: flex !important;
    }
    body.game-active #game-canvas-container {
        visibility: hidden !important;
    }
}

/* Landscape → overlay gizle, canvas göster */
@media (orientation: landscape) {
    body.game-active #rotate-overlay {
        display: none !important;
    }
    body.game-active #game-canvas-container {
        visibility: visible !important;
    }
}

/* ==========================================================================
   PWA STANDALONE (Ana Ekrana Ekle) — Safe Area & Viewport Düzeltmesi
   viewport-fit=cover ile içerik tüm ekrana uzanır.
   Canvas her zaman (0,0)'dan başlar → Dokunmatik kalibrasyon hizalı.
   ========================================================================== */

/* display-mode: standalone veya fullscreen (Android PWA + iOS bazı sürümler) */
@media (display-mode: standalone), (display-mode: fullscreen) {
    body.game-active #game-canvas-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100dvw !important;
        height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        /* Safe area inset'leri yoksay — canvas notch/Dynamic Island arkasına uzansın */
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }

    body.game-active #game-canvas-container canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
        display: block !important;
    }
}

/* iOS navigator.standalone = true için JS tarafından eklenen sınıf */
body.pwa-ios.game-active #game-canvas-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.pwa-ios.game-active #game-canvas-container canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    display: block !important;
}

/* Tüm modlarda body padding/margin sıfırla */
body.game-active {
    padding: 0 !important;
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
}
