/* GENEL AYARLAR: Ferah, Yumuşak ve 3D Destekli */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Press+Start+2P&family=Quicksand:wght@500;700&family=Montserrat:wght@900&display=swap');

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

html {
    background-color: #000000;
}

html,
body {
    /* Safe area and 100dvh adjustments for mobile notches */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    width: 100%;
    /* overflow-x removed */
}

/* --- 1. ANA GÖVDE VE DÖNEN ARKA PLAN SİSTEMİ --- */
body {
    color: #444;
    font-family: 'Press Start 2P', system-ui;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-color: transparent;
    padding-top: env(safe-area-inset-top) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    overscroll-behavior: none;
}

body:not(.in-room) {
    overflow: hidden;
}

/* Body arka planı #bg-portal-container tarafından yönetilir */

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* =====================================================
   BACKGROUND VIDEO SYSTEM (Gece / Akn)
   Masaüstü: images/gece_tema_dekstop.mp4
   Mobil: images/gece_tema_mobil.mp4
   ===================================================== */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    -webkit-media-controls: none;
}

.bg-video--mobile {
    visibility: hidden;
    opacity: 0;
}

.bg-video--desktop {
    display: block;
}

@media (max-width: 768px) {
    .bg-video--desktop {
        display: none;
    }
}

#bg-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

#bg-mobile-fallback {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: url('images/background_akn_mobil.png') no-repeat center center;
    background-size: cover;
    z-index: -2;
    pointer-events: none;
}

/* Oda içindeyken videoları ve overlay'i gizle */
body.in-room .bg-video,
body.in-room #bg-video-overlay,
body.in-room #bg-mobile-fallback {
    display: none !important;
}

/* =====================================================
   RESPONSIVE ARKA PLAN SİSTEMİ (Desktop & Mobil)
   Masaüstü: images/background_akn.png
   Mobil: images/background_akn_mobil.png
   ===================================================== */
#bg-portal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: url('images/background_akn.png') no-repeat center center;
    background-size: cover;
    z-index: -3;
    pointer-events: none;
}

@media (max-width: 768px) {
    #bg-portal-container {
        background-image: url('images/background_akn_mobil.png');
    }
}

/* Oda içindeyken veya oyun açıkken arka plan */
body.in-room #bg-portal-container {
    display: block !important;
    z-index: -2;
}



#header-wrapper {
    position: absolute;
    /* FIXED YERİNE ABSOLUTE KULLANIYORUZ! (Sayfa kaydırıldığında takip etmez, en yukarıda sabit kalır) */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 55px;
    pointer-events: none;
    background: transparent;
    transition: padding-top 0.3s ease, transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Yumuşak geçiş */
}

#header-wrapper.hide-up {
    transform: translateY(-150vh);
}

/* ODA İÇİNDEYKEN SABİT ÜST BAŞLIK */
body.in-room #header-wrapper {
    padding-top: 50px !important;
}

body.in-room #sign-container,
body.in-room #welcome-message {
    animation: none !important;
    transform: translateY(0) rotate(0deg) !important;
}

#sign-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center -120px;
    animation: dropAndSwing 3.5s forwards;
}

#welcome-message {
}

@keyframes dropAndSwing {
    0% {
        transform: translateY(-100vh) rotate(5deg);
        animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);
    }

    15% {
        transform: translateY(0) rotate(5deg);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    30% {
        transform: translateY(0) rotate(-16deg);
        animation-timing-function: ease-in-out;
    }

    45% {
        transform: translateY(0) rotate(10deg);
        animation-timing-function: ease-in-out;
    }

    60% {
        transform: translateY(0) rotate(-6deg);
        animation-timing-function: ease-in-out;
    }

    75% {
        transform: translateY(0) rotate(3deg);
        animation-timing-function: ease-in-out;
    }

    85% {
        transform: translateY(0) rotate(-1.5deg);
        animation-timing-function: ease-in-out;
    }

    95% {
        transform: translateY(0) rotate(0.5deg);
        animation-timing-function: ease-in-out;
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* --- 2. HAREKETLİ VE 3D NEON TABELA (GAMEHUB) --- */
#welcome-message {
    pointer-events: auto;
    /* Tabelaya tıklanabilmesi için */
    background: linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)), url('images/lobi_bg.jpg') center center / cover no-repeat;
    padding: 16px 105px 18px 105px;
    border-radius: 55px;
    border: 3.5px solid #ffffff;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.25),
        0 8px 0px #111116,
        0 14px 22px rgba(0, 0, 0, 0.5);
    margin-bottom: 0px;
    /* Attach to menu */
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Ropes for Header - Beyaz İpler */
.top-rope {
    position: absolute;
    bottom: 100%;
    width: 5px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    z-index: -1;
    border-radius: 3px;
}

.top-rope.left-rope {
    left: calc(50% - 230px);
}

.top-rope.right-rope {
    right: calc(50% - 230px);
}

/* Oda Lideri Taç İkonu — Sadece oda içindeyken (body.in-room) liderde görünür, tabelanın solunda yer alır */
body:not(.in-room) #leader-text {
    display: none !important;
}

#leader-text {
    position: absolute;
    top: 50%;
    left: 42px;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 1.55rem;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-shadow:
        1px 1px 0px #ffffff,
        2px 2px 0px #d946ef,
        3px 3px 0px #c026d3,
        4px 4px 0px #9333ea,
        5px 5px 0px #7928ca,
        6px 6px 0px #3b0764,
        8px 8px 12px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    z-index: 10;
}

#welcome-message h1,
#welcome-message .kanzi-logo-main {
    font-family: 'Press Start 2P', system-ui;
    font-size: 3.2rem;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-align: center;
    text-shadow:
        1px 1px 0px #ffffff,
        2px 2px 0px #d946ef,
        3px 3px 0px #c026d3,
        4px 4px 0px #9333ea,
        5px 5px 0px #7928ca,
        6px 6px 0px #581c87,
        7px 7px 0px #3b0764,
        8px 8px 0px #180326,
        10px 10px 15px rgba(0, 0, 0, 0.95);
}

@keyframes floatTitle {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(-1deg);
    }
}

/* --- 3. ANA UYGULAMA BÖLMELERİ --- */
#app-container {
    width: 95%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 310px auto 0 auto;
    transition: margin-top 0.3s ease;
}

body.in-room #app-container {
    margin-top: 170px !important;
    /* Oda içinde oyun afişleri tabelanın altına tam oturur */
}

#left-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- YENİLENMİŞ VE BÜYÜTÜLMÜŞ OYUN LOBİSİ --- */
#game-lobby {
    display: grid;
    /* Kartların minimum boyutunu 280'den 320'ye çıkardık */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    /* Aralarındaki boşluk da arttı */
    padding: 20px;
    justify-items: center;
    align-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.game-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16 / 9;
    border-radius: 25px;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    cursor: pointer;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.game-box:hover:not(.is-flipped) {
    transform: translateY(-5.6px) scale(1.02);
}

.game-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
}

.game-box.is-flipped .game-box-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.game-box-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    box-sizing: border-box;
}

/* ÖN YÜZ */
.game-box-front {
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    border: 3.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(255, 255, 255, 0.12), 0 0 10px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: flex-end;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-box:hover:not(.is-flipped) .game-box-front {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 22px rgba(255, 255, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    filter: none !important;
    -webkit-filter: none !important;
}

/* ARKA YÜZ (SEO & DETAY) */
.game-box-back {
    background: radial-gradient(circle at 50% 15%, #1e1b4b 0%, #0f172a 65%, #020617 100%);
    border: 2px solid #818cf8;
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.6), inset 0 0 18px rgba(99, 102, 241, 0.25), 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    box-sizing: border-box;
    cursor: default;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-box:hover .game-box-back {
    border-color: #a5b4fc;
    box-shadow: 0 0 24px rgba(165, 180, 252, 0.8), inset 0 0 22px rgba(129, 140, 248, 0.35), 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* SOL ÜST PLAKET (ÖZELLİK BELİRTECİ) */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.badge-local {
    background: linear-gradient(135deg, #9333ea, #6b21a8) !important;
    color: #ffffff !important;
    border: 1.5px solid #e9d5ff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 9.1px rgba(147, 51, 234, 0.42), 0 3px 8px rgba(0, 0, 0, 0.4);
}

.badge-local i {
    color: #ffffff !important;
}

.badge-bot {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 6.5px rgba(59, 130, 246, 0.39), 0 3px 8px rgba(0, 0, 0, 0.4);
}

.badge-combo {
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #ddd6fe !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 9.1px rgba(147, 51, 234, 0.42), 0 3px 8px rgba(0, 0, 0, 0.4);
}

.badge-combo i {
    color: #ffffff !important;
}

/* SAĞ ÜST INFO BUTONU */
.card-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 6px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    padding: 0;
}

.card-info-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

/* KART ARKASI ELEMANLARI */
.card-back-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border-bottom: 1px solid rgba(129, 140, 248, 0.25);
    padding-bottom: 6px;
}

.card-back-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 900;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.card-back-title i {
    color: #ffde00;
    font-size: 0.9rem;
}

.card-back-close-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
    flex-shrink: 0;
}

.card-back-close-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

.card-back-desc {
    margin: 4px 0 6px 0;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.80rem;
    font-weight: 700;
    line-height: 1.34;
    color: #f8fafc;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.15px;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.card-back-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding-top: 5px;
    border-top: 1px solid rgba(129, 140, 248, 0.2);
}

.card-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.feature-card {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.feature-card.feature-accent,
.feature-card.feature-local {
    background: linear-gradient(135deg, #7c3aed 0%, #581c87 100%) !important;
    border: 1px solid #d8b4fe !important;
    color: #ffffff !important;
    box-shadow: 0 0 6.5px rgba(124, 58, 237, 0.29);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.feature-card.feature-accent i,
.feature-card.feature-local i {
    color: #ffffff !important;
}

.feature-card.feature-bot {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(147, 197, 253, 0.8);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-play-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ffde00, #f59e0b);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.card-play-action:hover {
    background: linear-gradient(135deg, #ffffff, #ffde00);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 9.1px rgba(255, 222, 0, 0.39);
}

/* YAKINDA SASH ANIMATION SUPPORT */
.game-wrapper {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-wrapper:hover {
    transform: translateY(-5.6px) scale(1.02);
}

.game-wrapper .game-box {
    transition: none;
}

.game-wrapper:hover .game-box:not(.is-flipped) .game-box-front {
    box-shadow: 0 0 12.5px rgba(255, 222, 0, 0.5), inset 0 0 7.5px rgba(255, 222, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: #ffffff;
    filter: none !important;
    -webkit-filter: none !important;
}

.game-wrapper:hover .yakinda-sash {
    /* Need to combine wrapper scale with internal rotation */
    transform: rotate(15deg) scale(1.1) !important;
}

@media (max-width: 600px) {
    .game-box-back {
        padding: 10px 12px;
    }

    .card-back-title {
        font-size: 0.84rem;
    }

    .card-back-desc {
        font-size: 0.72rem;
        line-height: 1.30;
        margin: 2px 0 4px 0;
    }

    .feature-card {
        font-size: 0.60rem;
        padding: 2px 6px;
    }

    .card-play-action {
        font-size: 0.60rem;
        padding: 4px 8px;
    }

    .card-badge {
        font-size: 0.60rem;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }

    .card-info-btn {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
        top: 8px;
        right: 8px;
    }
}

.title-overlay {
    width: 100%;
    padding: 50px 15px 20px 15px;
    /* Gradyan daha yumuşak */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    font-family: 'Press Start 2P', system-ui;
    font-size: 1.0rem;
    /* Yazılar da kartla beraber büyüdü */
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.player-count-info {
    font-size: 0.55rem;
    color: #e2e8f0;
    font-weight: 700;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 3px 10px;
    border-radius: 12px;
    text-shadow: none;
    letter-spacing: normal;
}

.player-count-info i {
    color: #94a3b8;
}

.player-count-info.has-bot-tag,
.player-count-info.has-local-tag {
    flex-direction: column;
    gap: 2px;
}

.bot-tag {
    display: block;
    color: #ffde00;
    font-weight: 700;
}

.desktop-only-tag {
    display: block;
    color: #ffde00;
    font-weight: 700;
}

.mobile-local-tag {
    display: none;
    color: #ffde00;
    font-weight: 700;
}


@media (max-width: 950px) {
    .player-count-info.has-local-tag {
        flex-direction: column;
        gap: 2px;
    }

    .mobile-local-tag {
        display: block;
    }

    .desktop-only-tag {
        display: none !important;
    }
}






.img-zihinajanlari {
    background-image: url('images/zihinajanlari.png');
    /* Bu dosya yoksa arka plan rengi eklendi (fallback) */
    background-color: #1c1c1e;
}

.img-kostebek {
    background-image: url('images/kostebek.jpg');
}

.img-vampir {
    background-image: url('images/vampir.png');
}

.img-isimsehir {
    background-image: url('images/isimsehir.png');
}

.img-tabu {
    background-image: url('images/tabu.png');
}

.img-galeri {
    background-image: url('images/galeri.png');
}

.img-papaz {
    background-image: url('images/papaz.png');
}

.img-blackjack {
    background-image: url('images/blackjack.png');
}

.img-keyboard {
    background-image: url('images/keyboard.png');
}

.img-tavla {
    background-image: url('images/tavla.png');
}

.img-amiral {
    background-image: url('images/amiral.png');
}

.img-airhockey {
    background-image: url('images/airhockey.png');
}

.img-benkimim {
    background-image: url('images/benkimim.png');
}

.img-kaktus {
    background-image: url('images/kaktus.png');
}

.img-okey101 {
    background-image: url('images/okey101.jpeg');
}

.img-blof {
    background-image: url('/images/blof_gamehub.png');
}

.img-disci {
    background-image: url('images/disci.png');
}

.img-drawtogether {
    background-image: url('/images/drawtogether.jpeg?v=2');
}

.img-kino {
    background-image: url('images/kino.png');
    background-size: cover;
    background-position: center;
}

.img-xox {
    background-image: url('images/xox.jpg');
    background-size: cover;
    background-position: center;
}

.img-kelimezinciri {
    background-image: url('images/kelimezinciri.jpg');
    background-size: cover;
    background-position: center;
}

.img-wordle {
    background-image: url('images/wordle.jpg');
    background-size: cover;
    background-position: center;
}

.img-cizbil {
    background-image: url('images/cizbil.png');
    background-size: cover;
    background-position: center;
}

.img-kulaktankulaga {
    background-image: url('images/kulaktankulaga.png');
    background-size: cover;
    background-position: center;
}

.img-koridor {
    background-image: url('images/koridor.png?v=2');
    background-size: cover;
    background-position: center;
}

.img-bilardo {
    background-image: url('images/8-ball.png');
}

.empty-box {
    background: rgba(255, 255, 255, 0.4);
    border: 2px dashed #ddd;
    border-radius: 25px;
    cursor: not-allowed;
    height: 240px;
}

/* ====================================================
   LOBİ & SOHBET ÇEKMECESİ (ARTIK PC'DE DE ÇEKMECE)
   ==================================================== */

/* ANA LOBİ BUTONU (HER ZAMAN GÖRÜNÜR) */
#mobile-lobby-btn {
    display: flex !important;
    /* Artık ana menüde de açık! */
    position: fixed;
    bottom: calc(36px + env(safe-area-inset-bottom));
    right: 25px;
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #6b21a8 100%);
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 20000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

#mobile-lobby-btn:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
}

#mobile-lobby-btn:active {
    transform: scale(0.95);
}

/* AÇIK ODALAR BUTONU (sol altta, cyan) */
#open-rooms-btn {
    position: fixed;
    bottom: calc(25px + env(safe-area-inset-bottom));
    left: 25px;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    border: 3px solid #4cc9f0;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 20000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 13px rgba(0, 180, 216, 0.325);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
    gap: 8px;
}

#open-rooms-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 19.5px rgba(76, 201, 240, 0.52);
}

#open-rooms-btn:active {
    transform: scale(0.95);
}

/* ÇEKMECENİN KENDİSİ (HER EKRANDA SABİT VE GİZLİ BAŞLAR - NEON SİBER LOBİ TEMASI) */
/* ÇEKMECENİN KENDİSİ (HER EKRANDA SABİT VE GİZLİ BAŞLAR - NEON SİBER LOBİ TEMASI) */
#right-panel {
    position: fixed;
    top: 0;
    right: -100%;
    /* Başlangıçta gizli */
    width: 85%;
    max-width: 400px;
    /* PC'de fazla yayılmasın */
    height: 100vh;
    /* DVH desteklemeyen tarayıcılar için fallback */
    height: 100dvh;
    /* iOS Safari / modern tarayıcılar */
    min-height: -webkit-fill-available;
    /* iOS iframe uyumu */
    background: linear-gradient(rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.80)), #0e1124 url('images/lobi_bg.jpg') center center / cover no-repeat;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
    z-index: 25000;
    padding: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible !important;
    font-family: 'Quicksand', sans-serif;
}

#right-panel.open {
    right: 0;
    /* Butona basınca sağdan kayarak girer */
}

/* İÇ İÇERİK KAYDIRMA ALANI */
.right-panel-scroll-area {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 20px 90px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overscroll-behavior: contain;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

/* RIGHT PANELE YAPIŞIK '>' KAPATMA KULAKÇIĞI */
#collapse-lobby-btn {
    position: absolute;
    top: 50%;
    left: -32px;
    transform: translateY(-50%);
    width: 32px;
    height: 58px;
    background: rgba(14, 17, 36, 0.96);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-right: none;
    border-radius: 14px 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 26000;
    box-shadow: -6px 0 16px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 1.15rem;
    outline: none;
    padding: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#collapse-lobby-btn i {
    transition: transform 0.2s ease;
}

#collapse-lobby-btn:hover {
    background: #ff3b53;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: -6px 0 24px rgba(255, 59, 83, 0.5);
}

#collapse-lobby-btn:hover i {
    transform: translateX(3px);
}

#collapse-lobby-btn:active {
    transform: translateY(-50%) scale(0.92);
}

/* SOL ÇEKMECE: AÇIK ODALAR */
#left-panel-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 10, 25, 0.98);
    backdrop-filter: blur(15px);
    z-index: 25000;
    padding: 25px 20px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
    /* overflow-x removed */
    padding-bottom: 90px;
    overscroll-behavior: contain;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    border-right: 1px solid rgba(76, 201, 240, 0.2);
    font-family: 'Quicksand', sans-serif;
}

#left-panel-drawer.open {
    left: 0;
}

/* Sol Çekmece Kapat Butonu */
#close-open-rooms-btn {
    display: block !important;
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
    color: white;
    border: 2px solid #4cc9f0;
    padding: 14px;
    border-radius: 16px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 6px 9.75px rgba(0, 119, 182, 0.26), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#close-open-rooms-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 16.25px rgba(0, 180, 216, 0.39);
    background: linear-gradient(135deg, #00b4d8, #0077b6);
}

/* Açık Odalar Başlık Alanı */
.open-rooms-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
}

.open-rooms-header span:first-child {
    font-family: 'Press Start 2P', system-ui;
    font-size: 1.4rem;
    color: #4cc9f0;
}

/* ODA KARTI */
.open-room-card {
    background: rgba(0, 180, 216, 0.07);
    border: 1.5px solid rgba(76, 201, 240, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    animation: popIn 0.3s ease;
}

.open-room-card:hover {
    background: rgba(0, 180, 216, 0.14);
    border-color: #4cc9f0;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.2);
}

.open-room-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-room-game-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.open-room-info {
    flex: 1;
}

.open-room-game-name {
    font-family: 'Press Start 2P', system-ui;
    font-size: 1rem;
    color: #e2e8f0;
    display: block;
}

.open-room-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4cc9f0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.open-room-count-bar {
    flex: 1;
    max-width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.open-room-count-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #0077b6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.open-room-join-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.open-room-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 180, 216, 0.5);
    background: linear-gradient(135deg, #4cc9f0, #00b4d8);
}

.open-room-join-btn:active {
    transform: translateY(1px);
}

.open-rooms-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(76, 201, 240, 0.5);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
}

/* ÇEKMECEYİ KAPAT BUTONU — Kırpılmış Köşeli Tasarım */
.lobby-box-wrapper,
.lobby-box.lobby-box-wrapper,
.lobby-box-wrapper.lobby-box {
    position: relative;
    width: 100%;
    margin-top: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#close-mobile-lobby-btn {
    position: absolute;
    top: 0px;
    right: 4px;
    width: 38px;
    height: 38px;
    background: #ff3b53;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 900;
    transition: all 0.15s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 3px 0 #b91c1c, 0 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    margin: 0;
}

#close-mobile-lobby-btn:hover {
    background: #ff5267;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #b91c1c, 0 4px 8px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
}

#close-mobile-lobby-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b91c1c, 0 1px 3px rgba(0, 0, 0, 0.2);
}

.players-box-container {
    position: relative;
    width: 100%;
    margin-top: 0;
}

/* --- ÇEKMECE İÇİ LOBİ KUTULARI — SOFT LİLA & KOZMİK ARKA PLAN --- */
.lobby-box {
    background: rgba(229, 222, 240, 0.15);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35),
                inset 0 1px 0 rgba(255,255,255,0.4);
    border: 1.5px solid rgba(229, 222, 240, 0.5);
}

.lobby-box p {
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lobby-box #lobby-id {
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* ACTION ROW: KOPYALA, PAYLAŞ, ÇIK butonları */
.lobby-action-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

/* LOBİ KOD BÖLÜMÜ */
.lobby-code-section {
    padding: 10px 12px 12px;
}

/* KOPYALA / PAYLAŞ / ÇIK — Canlı Dolgulu & Beyaz Yazılı */
.link-btn,
.lobby-box .link-btn,
.lobby-box-wrapper .link-btn,
.lobby-action-row .link-btn {
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    transition: all 0.15s ease !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 4px !important;
    outline: none !important;
    border: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.link-btn i,
.lobby-box .link-btn i,
.lobby-box-wrapper .link-btn i,
.lobby-action-row .link-btn i {
    font-size: 1rem !important;
    color: #ffffff !important;
}

/* KOPYALA - Canlı Mavi */
.link-btn.btn-blue,
.lobby-box .link-btn.btn-blue,
.lobby-box-wrapper .link-btn.btn-blue,
.lobby-action-row .btn-blue {
    background: #35c3f8 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 3px 0 #0284c7, 0 3px 6px rgba(0, 0, 0, 0.18) !important;
}

.link-btn.btn-blue:hover,
.lobby-box .link-btn.btn-blue:hover,
.lobby-box-wrapper .link-btn.btn-blue:hover,
.lobby-action-row .btn-blue:hover {
    background: #4cd0fb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #0284c7, 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.link-btn.btn-blue:active,
.lobby-box .link-btn.btn-blue:active,
.lobby-box-wrapper .link-btn.btn-blue:active,
.lobby-action-row .btn-blue:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #0284c7, 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* PAYLAŞ - Canlı Yeşil */
.link-btn.btn-green,
.lobby-box .link-btn.btn-green,
.lobby-box-wrapper .link-btn.btn-green,
.lobby-action-row .btn-green {
    background: #22c55e !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 3px 0 #15803d, 0 3px 6px rgba(0, 0, 0, 0.18) !important;
}

.link-btn.btn-green:hover,
.lobby-box .link-btn.btn-green:hover,
.lobby-box-wrapper .link-btn.btn-green:hover,
.lobby-action-row .btn-green:hover {
    background: #2dd86b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #15803d, 0 4px 8px rgba(0, 0, 0, 0.25) !important;
}

.link-btn.btn-green:active,
.lobby-box .link-btn.btn-green:active,
.lobby-box-wrapper .link-btn.btn-green:active,
.lobby-action-row .btn-green:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #15803d, 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* ÇIK - Canlı Kırmızı */
.link-btn.btn-red,
.lobby-box .link-btn.btn-red,
.lobby-box-wrapper .link-btn.btn-red,
.lobby-action-row .btn-red {
    background: #ff3b53 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 3px 0 #b91c1c, 0 3px 6px rgba(0, 0, 0, 0.18) !important;
}

.link-btn.btn-red:hover,
.lobby-box .link-btn.btn-red:hover,
.lobby-box-wrapper .link-btn.btn-red:hover,
.lobby-action-row .btn-red:hover {
    background: #ff5267 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #b91c1c, 0 4px 8px rgba(0, 0, 0, 0.25) !important;
}

.link-btn.btn-red:active,
.lobby-box .link-btn.btn-red:active,
.lobby-box-wrapper .link-btn.btn-red:active,
.lobby-action-row .btn-red:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b91c1c, 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* --- OYUNCU KUTUSU — Soft Lila & Kozmik Arka Plan --- */
.players-box {
    background: rgba(229, 222, 240, 0.15);
    padding: 14px 16px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35),
                inset 0 1px 0 rgba(255,255,255,0.4);
    border: 1.5px solid rgba(229, 222, 240, 0.5);
    position: relative;
}

.players-box h3 {
    color: #ffffff;
    font-family: 'Fredoka One', cursive;
}

#player-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 195px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#player-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#player-list li {
    background: rgba(10, 14, 32, 0.45);
    padding: 9px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3.5px solid #c9a444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

#player-list li span {
    color: #e2ded8;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    letter-spacing: 0.3px;
    font-weight: 800;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ses ayarları butonu — Kırık beyaz & gri ikonlu 3D buton */
#lobbyVoiceSettingsBtn {
    background: #e8e4df !important;
    border: none !important;
    color: #4b4e57 !important;
    border-radius: 10px;
    width: 36px;
    height: 35px;
    padding: 0;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 3px 0 #b8b3ab, 0 3px 6px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    text-shadow: none;
}

#lobbyVoiceSettingsBtn i {
    color: #4b4e57 !important;
    transition: transform 0.3s ease;
}

#lobbyVoiceSettingsBtn:hover {
    background: #f4f0e8 !important;
    box-shadow: 0 4px 0 #b8b3ab, 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
    color: #33363d !important;
}

#lobbyVoiceSettingsBtn:hover i {
    color: #33363d !important;
    transform: rotate(45deg);
}

#lobbyVoiceSettingsBtn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b8b3ab, 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.lobby-mic-btn {
    background: #ff3b53;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.15s ease;
    box-shadow: 0 3px 0 #c72c41, 0 3px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
    text-shadow: none;
}

.lobby-mic-btn i {
    color: #ffffff !important;
    font-size: 0.88rem;
}

.lobby-mic-btn:hover {
    transform: translateY(-1px);
    background: #ff5267;
    box-shadow: 0 4px 0 #c72c41, 0 4px 8px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
}

.lobby-mic-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #c72c41, 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lobby-mic-btn.active {
    background: #1dd1a1;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 3px 0 #0fa17a, 0 3px 6px rgba(0, 0, 0, 0.2);
}

.lobby-mic-btn.active i {
    color: #ffffff !important;
}

.lobby-mic-btn.active:hover {
    transform: translateY(-1px);
    background: #2fe0b2;
    box-shadow: 0 4px 0 #0fa17a, 0 4px 8px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
}

.lobby-mic-btn.active:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #0fa17a, 0 1px 3px rgba(0, 0, 0, 0.2);
}

#room-invite-btn-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 12px auto 2px auto !important;
    width: 100% !important;
    text-align: center !important;
}

.lobby-invite-btn {
    background: #eab308;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 7px 22px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.15s ease;
    box-shadow: 0 3px 0 #b45309, 0 3px 6px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    outline: none;
    white-space: nowrap;
    text-shadow: none;
    margin: 0 auto !important;
}

.lobby-invite-btn i {
    color: #ffffff !important;
    font-size: 0.85rem;
}

.lobby-invite-btn:hover {
    background: #f59e0b;
    box-shadow: 0 4px 0 #b45309, 0 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.lobby-invite-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b45309, 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* iOS Safari ses kilidi hint animasyonu */
@keyframes pulse-mic {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.6);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(255, 0, 127, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0);
    }
}

#player-list input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 65px;
    background: #252834;
    height: 6px;
    border-radius: 4px;
    border: 1px solid #3b3f52;
    outline: none;
    margin-left: 10px;
    cursor: pointer;
    touch-action: manipulation;
    flex-shrink: 0;
}

#player-list input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    background: #7d92ab;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1.5px solid #252834;
    transition: transform 0.1s ease, background 0.15s ease;
}

#player-list input[type="range"]::-webkit-slider-thumb:hover {
    background: #9ab0cb;
}

#player-list input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    background: #7d92ab;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid #252834;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ====================================================
   LOBİ SOHBETİ — Soft Lila & Kozmik Arka Plan
   ==================================================== */
.lobby-chat-box {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: rgba(229, 222, 240, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35),
                inset 0 1px 0 rgba(255,255,255,0.4);
    border: 1.5px solid rgba(229, 222, 240, 0.5);
}

.lobby-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lobby-chat-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: none;
}

#lobby-chat-messages {
    flex-grow: 1;
    min-height: 140px;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(10, 14, 32, 0.45);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#lobby-chat-messages::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.lobby-chat-input-row {
    display: flex;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

#lobby-chat-input {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(10, 14, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px;
    outline: none;
    font-size: 0.85rem;
    font-weight: 600;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#lobby-chat-input:focus {
    border-color: rgba(229, 222, 240, 0.6);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

#lobby-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

#lobby-chat-send {
    flex: 0 0 auto;
    background: #22c55e;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 3px 0 #15803d, 0 3px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    outline: none;
    text-shadow: none;
}

#lobby-chat-send:hover {
    background: #2dd86b;
    box-shadow: 0 4px 0 #15803d, 0 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
    color: #ffffff !important;
}

#lobby-chat-send:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #15803d, 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- GİŞE / MODAL VE TOAST BİLDİRİM EKRANI --- */
#entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 6, 18, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.menu-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    pointer-events: auto;
    z-index: 1;
}

/* --- BUTTONS FOR MAIN MENU --- */
.neon-btn {
    width: 100%;
    padding: 22px 30px;
    font-size: 1.15rem;
    border-radius: 16px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    outline: none;
    letter-spacing: 1px;
    transform-origin: center center;
    /* iOS Safari GPU layer fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

.neon-btn i {
    font-size: 1.3rem;
}

.neon-btn:hover {
    transform: translateY(-4px) scale(1.03) !important;
    filter: brightness(1.12);
}

.neon-btn:active {
    transform: translateY(2px) scale(0.98) !important;
}

/* 1. ODA OLUŞTUR - MOR */
.neon-purple {
    background: #8b24d6;
    color: #ffffff;
    border: 3.5px solid #b747ff;
    box-shadow: 0 5px 0 #58148f, 0 10px 22px rgba(0, 0, 0, 0.45);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.neon-purple:hover {
    background: #9933e8;
    box-shadow: 0 6px 0 #58148f, 0 12px 26px rgba(0, 0, 0, 0.5);
}

.neon-purple:active {
    box-shadow: 0 2px 0 #58148f, 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* 2. KOD İLE KATIL - SARI */
.neon-yellow {
    background: #f1b307;
    color: #ffffff;
    border: 3.5px solid #ffe155;
    box-shadow: 0 5px 0 #9f6f00, 0 10px 22px rgba(0, 0, 0, 0.45);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.neon-yellow:hover {
    background: #fec719;
    box-shadow: 0 6px 0 #9f6f00, 0 12px 26px rgba(0, 0, 0, 0.5);
}

.neon-yellow:active {
    box-shadow: 0 2px 0 #9f6f00, 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* 3. AÇIK ODALAR - MAVİ */
.neon-blue {
    background: #0ea5e9;
    color: #ffffff;
    border: 3.5px solid #38bdf8;
    box-shadow: 0 5px 0 #0369a1, 0 10px 22px rgba(0, 0, 0, 0.45);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.neon-blue:hover {
    background: #25b8fc;
    box-shadow: 0 6px 0 #0369a1, 0 12px 26px rgba(0, 0, 0, 0.5);
}

.neon-blue:active {
    box-shadow: 0 2px 0 #0369a1, 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.in-room .neon-btn,
body.in-room .menu-buttons-container,
body.in-game .menu-buttons-container,
#header-wrapper.hide-up .menu-buttons-container {
    display: none !important;
}

/* --- CHAINS --- */
.chains-wrapper {
    width: 280px;
    display: flex;
    justify-content: space-between;
    margin: -10px auto;
    position: relative;
    z-index: 1;
}

.chain-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16px;
    margin: 0 -8px;
}

.chain-link {
    width: 16px;
    height: 24px;
    border: 4px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.5);
    margin: -4px 0;
    background: transparent;
    z-index: 1;
    position: relative;
}

.modal-box {
    background: rgba(20, 16, 42, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 36px 30px 28px 30px;
    border-radius: 28px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    border: 3.5px solid #a855f7;
    box-shadow: 0 8px 0 #58148f, 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Quicksand', sans-serif;
    position: relative;
}

@keyframes popUp {
    0% {
        transform: scale(0.85) translateY(40px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-box h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.55rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow:
        1px 1px 0px #ffffff,
        2px 2px 0px #c026d3,
        3px 3px 0px #7928ca,
        4px 4px 8px rgba(0, 0, 0, 0.9);
}

.modal-box h2 i {
    color: #facc15;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.modal-box p {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-box input[type="text"] {
    width: 100%;
    padding: 15px 18px;
    margin: 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    background: rgba(10, 8, 24, 0.9);
    color: #ffffff;
    border: 2.5px solid rgba(168, 85, 247, 0.45);
    border-radius: 16px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    outline: none;
    transition: all 0.25s ease;
}

.modal-box input[type="text"]:focus {
    border-color: #c084fc;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(192, 132, 252, 0.3);
    background: rgba(15, 12, 34, 0.95);
}

.modal-box input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.modal-box input[type="radio"] {
    accent-color: #a855f7;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* YENİ GİZLİLİK RADIO BUTONLARI (KUTU GÖRÜNÜMÜ) */
.privacy-options {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 16px 0;
}

.privacy-option {
    position: relative;
    cursor: pointer;
    flex: 1;
}

.privacy-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.privacy-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(10, 8, 24, 0.8);
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.0rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.privacy-option input[type="radio"]:hover+.privacy-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.privacy-option input[type="radio"]:checked+.privacy-box {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 0 #0369a1, 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.privacy-option input[value="private"]:checked+.privacy-box {
    background: #ef4444;
    color: #ffffff;
    border-color: #f87171;
    box-shadow: 0 4px 0 #991b1b, 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.modal-box button:not(.back-btn):not(.close-modal-btn):not(.invite-eye-btn):not(.invite-close-btn):not(.outline-btn) {
    width: 100%;
    padding: 16px 20px;
    margin-top: 14px;
    font-size: 1.05rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f1b307;
    color: #ffffff;
    border: 3px solid #ffe155;
    box-shadow: 0 4px 0 #9f6f00, 0 8px 18px rgba(0, 0, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.modal-box button:not(.back-btn):not(.close-modal-btn):not(.invite-eye-btn):not(.invite-close-btn):not(.outline-btn):hover {
    background: #fec719;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #9f6f00, 0 12px 24px rgba(0, 0, 0, 0.45);
}

.modal-box button:not(.back-btn):not(.close-modal-btn):not(.invite-eye-btn):not(.invite-close-btn):not(.outline-btn):active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #9f6f00, 0 4px 10px rgba(0, 0, 0, 0.35);
}

.modal-box .alt-btn {
    background: #0ea5e9 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 0 #0369a1, 0 8px 18px rgba(0, 0, 0, 0.4) !important;
}

.modal-box .alt-btn:hover {
    background: #25b8fc !important;
    box-shadow: 0 6px 0 #0369a1, 0 12px 24px rgba(0, 0, 0, 0.45) !important;
}

.modal-box .back-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #94a3b8;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    padding: 10px;
    margin-top: 10px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease;
}

.modal-box .back-btn:hover {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    transform: none;
    text-decoration: underline;
}

.modal-box .outline-btn {
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    box-shadow: none;
    margin-top: 10px;
}

.modal-box .outline-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    transform: translateY(-1px);
}

.modal-box .close-modal-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2.5px solid #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 0 #991b1b, 0 6px 16px rgba(0, 0, 0, 0.5);
    text-shadow: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-box .close-modal-btn:hover {
    background: #f87171;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 0 #991b1b, 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* --- YENİ TEMAYA UYGUN TOAST BİLDİRİM SİSTEMİ --- */
#toast-container {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-120px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: rgba(18, 14, 38, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #a855f7;
    border-radius: 40px;
    padding: 12px 24px;
    box-shadow: 0 5px 0 #58148f, 0 12px 30px rgba(0, 0, 0, 0.7);
    max-width: 90vw;
    width: fit-content;
    cursor: pointer;
    user-select: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#toast-container.show {
    transform: translateX(-50%) translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#toast-container:hover {
    filter: brightness(1.1);
}

/* Toast İkonu */
#toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #c084fc;
    flex-shrink: 0;
}

/* Toast Metni */
#toast-message {
    color: #ffffff;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
    white-space: normal;
}

/* Başarı (Success) Durumu */
#toast-container.toast-success {
    border-color: #22c55e;
    box-shadow: 0 5px 0 #15803d, 0 12px 30px rgba(0, 0, 0, 0.7);
}

#toast-container.toast-success #toast-icon {
    color: #4ade80;
}

/* Hata / Uyarı (Error) Durumu */
#toast-container.toast-error {
    border-color: #ef4444;
    box-shadow: 0 5px 0 #991b1b, 0 12px 30px rgba(0, 0, 0, 0.7);
}

#toast-container.toast-error #toast-icon {
    color: #f87171;
}

/* Mobilde Toast Uyumu */
@media (max-width: 600px) {
    #toast-container {
        top: 16px !important;
        padding: 10px 18px;
        border-radius: 35px;
        max-width: 94vw;
        gap: 10px;
    }

    #toast-icon {
        font-size: 1.0rem;
    }

    #toast-message {
        font-size: 0.68rem;
        letter-spacing: 0.2px;
    }
}

/* --- 6. OYUN EKRANI (OVERLAY) --- */
#game-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: -webkit-fill-available;
    background-color: #0d0d14 !important;
    z-index: 9990 !important;
    display: none;
}

#game-frame {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background-color: #0d0d14 !important;
    display: block !important;
}

#exit-game-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 25px;
    background: #ff758c;
    color: white;
    border: 3px solid #2b1111;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    z-index: 20001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#exit-game-btn:hover {
    transform: scale(1.1);
    background: #ff5270;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffde00;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 222, 0, 0.8);
    border: 2px solid #2b1111;
    animation: pulseBadge 1.5s infinite alternate;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 222, 0, 0.5);
    }

    100% {
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(255, 222, 0, 1);
    }
}

/* GİZLENECEK ESKİ BUTONLARI VE PANELLERİ YOK ET */
#in-game-fab,
.panel-closed {
    display: none !important;
}

/* ====================================================
    MOBİL & TABLET UYUMU (RESPONSIVE)
   ==================================================== */

@media (max-width: 600px) {
    body::before {
        background-image: url('images/background_akn_mobil.png');
    }

    #header-wrapper {
        padding-top: 100px;
        /* Tabelayı 50px yukarı taşıdık */
    }

    #sign-container {
        transform-origin: center -150px;
    }

    .top-rope {
        width: 4px;
        background: #ffffff;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    }

    .top-rope.left-rope,
    .menu-rope-container.left-rope {
        left: calc(50% - 65px);
        /* Tabela küçüldüğü için ipleri daha da daralttık */
    }

    .top-rope.right-rope,
    .menu-rope-container.right-rope {
        right: calc(50% - 65px);
    }

    #welcome-message {
        padding: 8px 20px;
        /* En ve boydan küçültüldü */
        border: 3px solid #ffffff;
        border-radius: 30px;
        margin-bottom: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: fit-content;
    }

    #welcome-message h1,
    #welcome-message .kanzi-logo-main {
        font-family: 'Press Start 2P', system-ui;
        font-size: 1.45rem;
        letter-spacing: 3px;
        color: #ffffff;
        text-shadow:
            1px 1px 0px #ffffff,
            2px 2px 0px #c026d3,
            3px 3px 0px #7928ca,
            4px 4px 0px #3b0764,
            5px 5px 8px rgba(0, 0, 0, 0.95);
    }

    /* Oda Lideri Taç İkonu (Tabelanın solu) */
    #leader-text {
        position: absolute;
        top: 50%;
        left: 8px;
        bottom: auto;
        font-size: 0.85rem;
        transform: translateY(-50%) rotate(-12deg);
        text-shadow:
            1px 1px 0px #ffffff,
            2px 2px 0px #c026d3,
            3px 3px 0px #7928ca,
            4px 4px 6px rgba(0, 0, 0, 0.95);
    }

    .main-menu-box {
        padding: 15px 15px;
        /* Menü alanı küçültüldü */
        gap: 10px;
        border-radius: 20px 20px 10px 10px;
        border-width: 3px;
        max-width: 300px;
        /* Boyut sınırlandı */
    }

    .main-menu-box button {
        padding: 12px !important;
        /* Butonlar küçültüldü */
        font-size: 0.75rem !important;
    }

    #app-container {
        margin-top: 190px;
        /* Logo yukarı çıktığı için kartları da orantılı şekilde yukarı çektik */
    }

    body.in-room #app-container {
        margin-top: 100px !important;
    }

    #game-lobby {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    .game-box,
    .empty-box {
        aspect-ratio: auto;
        height: 200px;
    }

    .modal-box h2 {
        font-size: 1.35rem;
    }

    .modal-box {
        padding: 28px 20px 22px 20px;
        border-radius: 24px;
    }

    /* Mobilde butonların her zaman render edilmesini garantile */
    .menu-buttons-container {
        width: 90% !important;
        max-width: 380px !important;
        gap: 0 !important;
    }

    .chains-wrapper {
        width: 240px;
    }

    .neon-btn {
        opacity: 1 !important;
        visibility: visible !important;
        padding: 16px 20px !important;
        font-size: 0.9rem !important;
        contain: layout style;
    }

    .neon-purple {
        box-shadow: 0 4px 0 #58148f, 0 6px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .neon-yellow {
        box-shadow: 0 4px 0 #9f6f00, 0 6px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .neon-blue {
        box-shadow: 0 4px 0 #0369a1, 0 6px 15px rgba(0, 0, 0, 0.4) !important;
    }
}

/* CLOSE max-width: 600px */

/* ÇİZBİL & KULAKTAN KULAĞA OYUN İÇİ (TÜM CİHAZLAR VE EKRANLAR: PC, TABLET, MOBİL):
   Butonlar doğrudan oyun içi başlığına taşındığı için GameHub yüzen butonları her ekranda gizlenir */
body.game-cizbil.cizbil-in-game #exit-game-btn,
body.game-cizbil.cizbil-in-game #mobile-lobby-btn,
body.cizbil-in-game #exit-game-btn,
body.cizbil-in-game #mobile-lobby-btn,
body.game-kulaktan.kulaktan-in-game #exit-game-btn,
body.game-kulaktan.kulaktan-in-game #mobile-lobby-btn,
body.game-kulaktankulaga.kulaktan-in-game #exit-game-btn,
body.game-kulaktankulaga.kulaktan-in-game #mobile-lobby-btn,
body.game-kulaktankulaga.kulaktankulaga-in-game #exit-game-btn,
body.game-kulaktankulaga.kulaktankulaga-in-game #mobile-lobby-btn,
body.kulaktankulaga-in-game #exit-game-btn,
body.kulaktankulaga-in-game #mobile-lobby-btn,
body.kulaktan-in-game #exit-game-btn,
body.kulaktan-in-game #mobile-lobby-btn {
    display: none !important;
}

/* MOBİL VE YATAY EKRANLAR İÇİN LOBİ BUTONLARINI KÜÇÜLT VE KÖŞEYE AL */
@media (max-width: 950px),
(max-height: 600px) {

    /* WORDLE, ÇİZBİL & KULAKTAN KULAĞA MOBİL OYUN İÇİ: GameHub butonları oyun içi paneline taşındığı için varsayılan yüzen butonları gizle */
    body.game-wordle.wordle-in-game #exit-game-btn,
    body.game-wordle.wordle-in-game #mobile-lobby-btn,
    body.wordle-in-game #exit-game-btn,
    body.wordle-in-game #mobile-lobby-btn,
    body.wordle-opponents-open #exit-game-btn,
    body.wordle-opponents-open #mobile-lobby-btn,
    body.game-cizbil.cizbil-in-game #exit-game-btn,
    body.game-cizbil.cizbil-in-game #mobile-lobby-btn,
    body.cizbil-in-game #exit-game-btn,
    body.cizbil-in-game #mobile-lobby-btn,
    body.game-kulaktan.kulaktan-in-game #exit-game-btn,
    body.game-kulaktan.kulaktan-in-game #mobile-lobby-btn,
    body.game-kulaktankulaga.kulaktan-in-game #exit-game-btn,
    body.game-kulaktankulaga.kulaktan-in-game #mobile-lobby-btn,
    body.game-kulaktankulaga.kulaktankulaga-in-game #exit-game-btn,
    body.game-kulaktankulaga.kulaktankulaga-in-game #mobile-lobby-btn,
    body.kulaktankulaga-in-game #exit-game-btn,
    body.kulaktankulaga-in-game #mobile-lobby-btn,
    body.kulaktan-in-game #exit-game-btn,
    body.kulaktan-in-game #mobile-lobby-btn {
        display: none !important;
    }

    #exit-game-btn span:not(.notification-badge) {
        display: none !important;
    }

    #exit-game-btn {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        font-size: 1.2rem !important;
        border-width: 2px !important;
        border-radius: 50% !important;
    }

    #mobile-lobby-btn {
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        bottom: calc(36px + env(safe-area-inset-bottom)) !important;
        right: 20px !important;
        left: auto !important;
        transform: none !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6) !important;
        font-size: 0 !important;
    }

    #mobile-lobby-btn::after {
        content: "\f0c0";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        font-size: 1.2rem;
        color: white !important;
    }

    #open-rooms-btn {
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        bottom: 15px !important;
        left: 15px !important;
        transform: none !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 5px rgba(0, 180, 216, 0.4) !important;
        font-size: 0 !important;
    }

    #open-rooms-btn::after {
        content: "\f46d";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        font-size: 1.2rem;
        color: white !important;
    }
}

/* --- YENİ MODERN BUTON TASARIMLARI --- */

.how-to-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.play-confirm-btn {
    background: linear-gradient(135deg, #ff007f 0%, #7209b7 100%);
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(114, 9, 183, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
}

.play-confirm-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 0, 127, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.play-confirm-btn:active:not(:disabled) {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 4px 10px rgba(114, 9, 183, 0.4);
}

.play-confirm-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    cursor: not-allowed;
}

.play-cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #b2bec3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-cancel-btn:hover {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
    transform: translateY(-2px);
}


/* --- NASIL OYNANIR MODAL KUTUSU (MÜKEMMEL MERKEZLEME) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30000;
}

.how-to-box {
    background: #130a1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ff007f;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(114, 9, 183, 0.3);
    border-radius: 24px;
    padding: 40px 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 30001;
    box-sizing: border-box;
    margin: auto;
}

#how-to-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

#how-to-title {
    font-family: 'Press Start 2P', system-ui;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

#how-to-text {
    font-family: 'Press Start 2P', system-ui;
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 0 15px;
}

/* Sadece yatay (alt) kaydırma çubuğunu tamamen görünmez yap! */
#player-list::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
}

/* İNCE SCROLLBAR (Sohbet ve Menüler İçin) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ====================================================
    HIZLI EŞLEŞMESİSTEMİ STİLLERİ
   ==================================================== */

/* Hızlı Eşleş modal-box için genişletilmiş boyut */
#step-quickmatch {
    max-width: 480px !important;
    padding: 30px 24px !important;
}

/* Hızlı Eşleş butonu (giriş ekranında 3. buton) */
.quickmatch-btn {
    color: #f7971e !important;
    border-color: #f7971e !important;
    box-shadow: 0 0 15px rgba(247, 151, 30, 0.5), inset 0 0 15px rgba(247, 151, 30, 0.3) !important;
}

.quickmatch-btn:hover {
    background: linear-gradient(135deg, #f7971e, #ffd200) !important;
    color: #1a0808 !important;
    box-shadow: 0 0 30px #ffd200 !important;
}

/* Oyun seçimi başlığı */
.qm-section-title {
    color: rgba(255, 222, 0, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 14px 0 8px 0;
    text-align: left;
}

/* Oyun kartları grid */
.qm-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.qm-game-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 6px 8px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.4rem;
    color: #e2e8f0;
}

.qm-game-card span {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #aaa;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qm-game-card:hover {
    background: rgba(247, 151, 30, 0.15);
    border-color: #f7971e;
    transform: translateY(-2px);
}

.qm-game-card.selected {
    background: rgba(247, 151, 30, 0.25);
    border-color: #ffd200;
    box-shadow: 0 0 12px rgba(255, 210, 0, 0.4);
}

.qm-game-card.selected span {
    color: #ffd200;
}

/* Eşleş butonu (disabled durumu) */
#qm-match-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Public oda listesi */
.qm-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.qm-room-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-room-card:hover {
    background: rgba(76, 201, 240, 0.15);
    border-color: #4cc9f0;
    transform: translateX(3px);
}

.qm-room-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
}

.qm-room-count {
    font-size: 0.8rem;
    color: #74b9ff;
    font-weight: 700;
    white-space: nowrap;
}

/* Gizlilik toggle satırı (quick match ve lobi içi) */
.qm-privacy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 700;
}

/* Privacy Switch Toggle */
.privacy-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.privacy-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    /* Modal input reset'ini ezmemek için */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

.privacy-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2b2e3a;
    border: 1.5px solid #454a5c;
    border-radius: 24px;
    transition: 0.25s;
    box-sizing: border-box;
    box-shadow: none;
}

.privacy-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #8c93a4;
    border: none;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.privacy-switch input:checked+.privacy-slider {
    background-color: #27486b;
    border-color: #3f6d9c;
    box-shadow: none;
}

.privacy-switch input:checked+.privacy-slider::before {
    transform: translateX(20px);
    background-color: #e2ded8;
}

/* ====================================================
   QM BANNER — Hızlı Eşleşme Modu Şeridi
   ==================================================== */
#qm-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto 16px auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(247, 151, 30, 0.18), rgba(255, 210, 0, 0.10));
    border: 1.5px solid rgba(247, 151, 30, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    animation: popIn 0.4s ease;
}

#qm-banner span {
    font-family: 'Press Start 2P', system-ui;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffd200;
    letter-spacing: 0.5px;
}

#qm-banner button {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
    color: #ff4757;
    border-radius: 10px;
    padding: 6px 14px;
    font-family: 'Press Start 2P', system-ui;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

#qm-banner button:hover {
    background: #ff4757;
    color: white;
}

/* QM modunda oyun kartlarının hover efekti daha belirgin */
.qm-mode-active .game-box:hover .game-box-front,
.qm-mode-active .game-box:hover {
    border: 3px solid #ffd200 !important;
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.5) !important;
}

/* SEO için erişilebilir ve Googlebot dostu gizleme (Screen-reader only) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================
   GİZLİ ODA — KATILIM ONAY SİSTEMİ
   ========================================== */

#join-pending-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-pending-box {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(20, 10, 40, 0.98));
    border: 2px solid rgba(255, 165, 0, 0.5);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    position: relative;
    animation: pendingPulse 2.5s ease-in-out infinite;
}

.join-pending-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
}

.join-pending-close:hover {
    color: #ff3333;
    transform: scale(1.1);
}

@keyframes pendingPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 140, 0, 0.25);
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 140, 0, 0.5);
    }
}

.join-pending-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 165, 0, 0.2);
    border-top-color: #ffa500;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: joinSpin 1s linear infinite;
}

@keyframes joinSpin {
    to {
        transform: rotate(360deg);
    }
}

.join-pending-title {
    font-family: 'Press Start 2P', system-ui;
    font-size: 0.9rem;
    color: #ffa500;
    margin: 0 0 14px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

.join-pending-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.6;
}

#requests-box {
    background: linear-gradient(145deg, rgba(16, 12, 38, 0.85) 0%, rgba(9, 13, 32, 0.9) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 15px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(255, 215, 0, 0.1);
}

.requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.requests-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

#requests-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 208px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / Edge */
}

#requests-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.request-item {
    background: rgba(14, 18, 42, 0.75);
    padding: 8px 12px;
    margin-bottom: 0;
    border-radius: 6px;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-left: 3.5px solid #FFD700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    animation: popIn 0.3s ease;
}

.request-item-name {
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.request-approve-btn,
.request-reject-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.request-approve-btn {
    background: rgba(34, 197, 94, 0.2);
    border: 1.5px solid #22c55e;
    color: #22c55e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.request-approve-btn:hover {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.request-approve-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.request-reject-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1.5px solid #ef4444;
    color: #ef4444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.request-reject-btn:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.request-reject-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.request-action-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.97), rgba(15, 10, 30, 0.99));
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 16px;
    padding: 14px 16px;
    z-index: 99998;
    min-width: 260px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 53, 0.2);
    animation: requestToastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes requestToastIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.request-action-toast.removing {
    animation: requestToastOut 0.3s ease forwards;
}

@keyframes requestToastOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.request-toast-header {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff8c42;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.request-toast-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.request-toast-actions {
    display: flex;
    gap: 8px;
}

.request-toast-approve,
.request-toast-reject {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.request-toast-approve {
    background: linear-gradient(135deg, #2ed573, #1db954);
    color: #fff;
}

.request-toast-reject {
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: #fff;
}

.request-toast-approve:hover,
.request-toast-reject:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .request-action-toast {
        bottom: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH TOP BAR — Sağ üst köşe
   ═══════════════════════════════════════════════════════════════════ */
#auth-top-bar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9000;
}

#auth-top-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 8px 16px 8px 10px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

#auth-top-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 220, 80, 0.5);
    box-shadow: 0 0 16px rgba(255, 220, 80, 0.2);
}

#auth-top-btn.logged-in {
    background: rgba(255, 220, 80, 0.12);
    border-color: rgba(255, 220, 80, 0.35);
}

.auth-btn-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    flex-shrink: 0;
}

/* AVATAR STYLES */
.avatar-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.avatar-e1 {
    background-image: url('/images/avatars/pp_assets/e1.png');
}

.avatar-e2 {
    background-image: url('/images/avatars/pp_assets/e2.png');
}

.avatar-e3 {
    background-image: url('/images/avatars/pp_assets/e3.png');
}

.avatar-e4 {
    background-image: url('/images/avatars/pp_assets/e4.png');
}

.avatar-e5 {
    background-image: url('/images/avatars/pp_assets/e5.png');
}

.avatar-k1 {
    background-image: url('/images/avatars/pp_assets/k1.png');
}

.avatar-k2 {
    background-image: url('/images/avatars/pp_assets/k2.png');
}

.avatar-k3 {
    background-image: url('/images/avatars/pp_assets/k3.png');
}

.avatar-k4 {
    background-image: url('/images/avatars/pp_assets/k4.png');
}

.avatar-k5 {
    background-image: url('/images/avatars/pp_assets/k5.png');
}

.avatar-h1 {
    background-image: url('/images/avatars/pp_assets/h1.png');
}

.avatar-h2 {
    background-image: url('/images/avatars/pp_assets/h2.png');
}

.avatar-h3 {
    background-image: url('/images/avatars/pp_assets/h3.png');
}

.avatar-h4 {
    background-image: url('/images/avatars/pp_assets/h4.png');
}

.avatar-h5 {
    background-image: url('/images/avatars/pp_assets/h5.png');
}

.avatar-h6 {
    background-image: url('/images/avatars/pp_assets/h6.png');
}

.avatar-placeholder {
    background-image: url('/images/avatars/google_logo.svg');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

/* Auth Modal (Giriş & Profil & Arkadaşlar & Davet) */
#auth-modal,
#profile-panel,
#friends-panel,
#invites-panel,
#room-invite-panel {
    position: fixed;
    inset: 0;
    z-index: 30010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.auth-modal-box {
    position: relative;
    z-index: 1;
    background: rgba(18, 18, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 36px 32px;
    width: min(420px, 92vw);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: authModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authModalIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(20px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.auth-step {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.auth-logo-area {
    text-align: center;
}

.auth-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #ffde00;
    letter-spacing: 2px;
    margin: 0;
}

.auth-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin: 6px 0 0;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.auth-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.auth-disclaimer {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    color: #555;
    text-align: center;
}

.auth-disclaimer span {
    color: #ffde00;
    cursor: pointer;
}

.auth-input-group {
    width: 100%;
}

.auth-input-group label {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.auth-input-wrapper:focus-within {
    border-color: rgba(255, 220, 80, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 220, 80, 0.1);
}

.auth-input-prefix {
    padding: 12px 8px 12px 14px;
    color: #ffde00;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.auth-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px 12px 4px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
}

.auth-feedback {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    margin: 6px 0 0;
    min-height: 18px;
}

.auth-feedback.ok {
    color: #2ed573;
}

.auth-feedback.err {
    color: #ff4757;
}

.auth-avatar-section {
    width: 100%;
}

.auth-avatar-section label {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.avatar-grid-item {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.avatar-grid-item:hover {
    border-color: rgba(255, 220, 80, 0.5);
    transform: scale(1.05);
}

.avatar-grid-item.selected {
    border-color: #ffde00;
    box-shadow: 0 0 12px rgba(255, 220, 80, 0.4);
}

.auth-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffde00, #ff6b35);
    color: #000;
    border: none;
    border-radius: 50px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s;
    opacity: 0.4;
}

.auth-confirm-btn:not(:disabled) {
    opacity: 1;
}

.auth-confirm-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 220, 80, 0.3);
}

/* SOL ALT PROFiL BUTONU (Orb + İsim) */
#profile-orb {
    position: fixed;
    bottom: 36px;
    left: 20px;
    z-index: 90000 !important;
    height: 54px;
    border-radius: 50px;
    padding: 0 20px 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
    background: rgba(18, 18, 30, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.25s;
    overflow: visible;
    transform: translate3d(0, 0, 100px) !important;
    -webkit-transform: translate3d(0, 0, 100px) !important;
    contain: layout style;
}

#profile-orb:hover:not(:has(#theme-orb-btn:hover)) {
    transform: scale(1.04) translate3d(0, 0, 100px) !important;
    -webkit-transform: scale(1.04) translate3d(0, 0, 100px) !important;
    border-color: #ffffff;
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.45), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.profile-orb-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-orb-text {
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.profile-orb-badge {
    position: absolute;
    top: -4px;
    left: 36px;
    background: #ff4757;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a14;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.15)
    }
}

/* PROFİL MENÜSÜ */
.profile-menu {
    position: fixed;
    bottom: 130px;
    left: 14px;
    z-index: 89999 !important;
    width: 240px;
    background: rgba(14, 14, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px 0 8px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    animation: menuSlideUp 0.22s ease-out;
    transform: translate3d(0, 0, 100px) !important;
    -webkit-transform: translate3d(0, 0, 100px) !important;
    contain: layout style;
}

@keyframes menuSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px) translate3d(0, 0, 100px);
        -webkit-transform: translateY(14px) translate3d(0, 0, 100px)
    }

    to {
        opacity: 1;
        transform: translateY(0) translate3d(0, 0, 100px);
        -webkit-transform: translateY(0) translate3d(0, 0, 100px)
    }
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 14px;
}

.profile-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 220, 80, 0.4);
}

.profile-menu-username {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffde00;
    margin: 0;
}

.profile-menu-email {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    color: #555;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.profile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #ccc;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s;
    text-align: left;
}

.profile-menu-item i {
    width: 16px;
    color: #888;
}

.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.profile-menu-item:hover i {
    color: #ffde00;
}

.profile-menu-badge {
    margin-left: auto;
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.profile-menu-logout {
    color: #ff4757 !important;
}

.profile-menu-logout i {
    color: #ff4757 !important;
}

.profile-menu-logout:hover {
    background: rgba(255, 71, 87, 0.1) !important;
}

/* OYUN AKSİYON MODALI */
#game-action-modal {
    position: fixed;
    inset: 0;
    z-index: 20005;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-action-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.game-action-box {
    position: relative;
    z-index: 1;
    background: rgba(14, 14, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 24px 24px;
    width: min(380px, 90vw);
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: authModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-action-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto 12px;
    background-size: cover;
    background-position: center;
}

.game-action-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #ffde00;
    margin: 0 0 20px;
    letter-spacing: 1px;
}

.game-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.game-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.22s;
    font-family: 'Quicksand', sans-serif;
}

.game-action-btn i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.game-action-btn span {
    font-weight: 700;
    font-size: 0.85rem;
}

.game-action-btn small {
    font-size: 0.7rem;
    color: #888;
}

.game-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-tayfa {
    border-color: rgba(255, 220, 80, 0.3) !important;
}

.btn-tayfa i {
    color: #ffde00;
}

.btn-tayfa:hover {
    background: rgba(255, 220, 80, 0.1) !important;
    border-color: rgba(255, 220, 80, 0.6) !important;
}

.btn-create i {
    color: #a29bfe;
}

.btn-create:hover {
    background: rgba(162, 155, 254, 0.1) !important;
}

.btn-join i {
    color: #ffeaa7;
}

.btn-join:hover {
    background: rgba(255, 234, 167, 0.1) !important;
}

.btn-rooms i {
    color: #55efc4;
}

.btn-rooms:hover {
    background: rgba(85, 239, 196, 0.1) !important;
}

.game-action-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #666;
    padding: 8px 20px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.game-action-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* PERDE ANİMASYONU */
.curtain-left,
.curtain-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #0a0a14;
    z-index: 29999;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-left {
    left: 0;
}

.curtain-right {
    right: 0;
}

.curtain-left.open {
    transform: translateX(-100%);
}

.curtain-right.open {
    transform: translateX(100%);
}

@media (max-width:768px) {
    #auth-top-bar {
        display: none !important;
    }

    #profile-orb {
        bottom: 36px !important;
        left: 15px !important;
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }

    .profile-orb-text {
        display: none;
    }

    .profile-orb-badge {
        left: 30px;
    }

    .profile-orb-avatar {
        width: 40px;
        height: 40px;
    }

    .profile-menu {
        bottom: 125px;
        left: 15px;
        width: 220px;
    }

    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}


/* ────────────────────────────────────────────────────────────
   OYUN SEÇİM EKRANIMDA (body.in-room) PROFİL ORB KONUMU
   ──────────────────────────────────────────────────────────── */
body.in-room #profile-orb {
    bottom: calc(36px + env(safe-area-inset-bottom));
    left: 25px;
}

@media (max-width: 768px) {
    body.in-room #profile-orb {
        bottom: calc(36px + env(safe-area-inset-bottom)) !important;
        left: 20px !important;
    }
}

/* Oyun listesi (in-room) ekranında footer scroll içindedir,
   butonlar viewport'a göre sabit kalabilir */
body.in-room #mobile-lobby-btn {
    bottom: calc(36px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 768px) {
    body.in-room #mobile-lobby-btn {
        bottom: calc(36px + env(safe-area-inset-bottom)) !important;
    }
}

/* ── ULTRA-PREMIUM FLOATING (i) BUTTON & PLATFORM HAKKINDA MODALI ── */
.global-how-to-btn {
    position: fixed;
    bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a124d 0%, #15092b 65%, #0c041d 100%);
    border: 2px solid #ffde00;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.75),
        inset 0 1px 2px rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.8),
        0 0 18px rgba(255, 222, 0, 0.35),
        0 0 25px rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90000 !important;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
    user-select: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.how-to-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffde00;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    transition: color 0.25s ease, transform 0.25s ease;
}

.how-to-icon {
    stroke: #ffde00;
    transition: stroke 0.25s ease, transform 0.25s ease;
}

.global-how-to-btn:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: #ffffff;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.85),
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        0 0 28px rgba(255, 222, 0, 0.65),
        0 0 35px rgba(139, 92, 246, 0.5);
}

.global-how-to-btn:hover .how-to-icon {
    stroke: #ffffff;
    transform: scale(1.1);
}

.global-how-to-btn:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Ambient Pulsing Aura Effect */
.btn-glow-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 222, 0, 0.45);
    animation: auraPulse 2.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
    pointer-events: none;
}

@keyframes auraPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
        border-color: rgba(255, 222, 0, 0.5);
    }

    50% {
        transform: scale(1.22);
        opacity: 0.2;
        border-color: rgba(139, 92, 246, 0.8);
    }

    100% {
        transform: scale(0.92);
        opacity: 0.85;
        border-color: rgba(255, 222, 0, 0.5);
    }
}

/* KANZIGAMES NEDIR MODALI CSS */
.kanzi-about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(10, 6, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanzi-about-modal:not(.hidden) {
    display: flex;
    opacity: 1;
    animation: kanziModalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kanzi-about-modal.hidden {
    display: none !important;
}

@keyframes kanziModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kanzi-about-box {
    background: linear-gradient(160deg, #231248 0%, #15092e 50%, #0d041c 100%);
    border: 2px solid rgba(255, 222, 0, 0.45);
    padding: 32px 30px;
    border-radius: 24px;
    width: 100%;
    max-width: 660px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.85),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 35px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(255, 222, 0, 0.15);
    font-family: 'Quicksand', sans-serif;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.kanzi-about-box::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.kanzi-about-box::-webkit-scrollbar-thumb {
    display: none !important;
}

.kanzi-about-close,
.global-how-to-close {
    position: absolute;
    top: 18px;
    z-index: 10;
    right: 20px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 222, 0, 0.3) !important;
    color: #ffde00 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1 !important;
    padding: 0 !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.kanzi-about-close:hover,
.global-how-to-close:hover {
    background: rgba(255, 222, 0, 0.2) !important;
    border-color: #ffde00 !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.12);
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.4);
}

.kanzi-about-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    color: #ffde00;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 20px;
    padding: 0 35px;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 222, 0, 0.25);
}

.kanzi-about-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 25px;
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid #ffde00;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kanzi-about-desc strong {
    color: #ffde00;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 222, 0, 0.3);
}

.kanzi-about-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.35);
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.kanzi-about-subtitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffde00;
    box-shadow: 0 0 8px #ffde00;
}

.kanzi-game-list-seo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 600px) {
    .kanzi-game-list-seo {
        grid-template-columns: 1fr 1fr;
    }
}

.kanzi-game-seo-item {
    background: rgba(255, 255, 255, 0.035);
    padding: 14px 16px;
    border-radius: 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kanzi-game-seo-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(255, 222, 0, 0.08) 100%);
    border-color: rgba(255, 222, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 92, 246, 0.2);
}

.kanzi-game-seo-item strong a {
    color: #ffde00;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.kanzi-game-seo-item strong a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.6);
    text-decoration: none;
}

@media (max-width: 600px) {
    .global-how-to-btn {
        bottom: calc(36px + env(safe-area-inset-bottom, 0px));
        right: calc(15px + env(safe-area-inset-right, 0px));
        width: 46px;
        height: 46px;
    }

    .kanzi-about-box {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .kanzi-about-title {
        font-size: 1.4rem;
    }
}

/* Odaya girince (i) butonunu gizle */
body.in-room #globalHowToBtn,
body.in-game #globalHowToBtn {
    display: none !important;
}

/* Nasıl oynanır modalı açıkken sağ üst lobiye dön ve sağ alt lobi butonlarını gizle */
body.how-to-open #exit-game-btn,
body.how-to-open #mobile-lobby-btn {
    display: none !important;
}

/* ========================================================
   ADSENSE AD PLACEMENT STYLES (OPTION B - FULLSCREEN & H5)
   ======================================================== */


.ad-slot {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 10;
}

.ad-mobile-anchor {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 9999;
    background: #000;
}

@media (max-width: 992px) {
    .ad-mobile-anchor {
        display: none !important;
        /* AdSense onayı için geçici olarak gizlendi - normalde: display: flex !important; */
    }
}

/* Loading Screen Interstitial (H5 AdBreak Area) */
#game-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1b1625 0%, #0d0d14 100%);
    z-index: 9991;
    /* iframe'in üstünde, exit butonunun altında */
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid #ffde00;
    border-bottom: 4px solid #d900ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 222, 0, 0.3), inset 0 0 15px rgba(217, 0, 255, 0.3);
    margin-bottom: 10px;
}

#game-loading-screen p {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.4);
    padding: 0 20px;
    animation: pulse-text 2s ease-in-out infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* Lobi İçi SEO Kutusu */
.lobby-seo-box {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 222, 0, 0.2);
    text-align: left;
    color: #eee;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
}

.lobby-seo-box h2,
.lobby-seo-box h3 {
    font-family: 'Fredoka One', cursive;
    color: #ffde00;
    margin-top: 15px;
    margin-bottom: 10px;
}

.lobby-seo-box p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* ========================================================
   SITE FOOTER (TRUST PAGES)
   ======================================================== */
#site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.in-game #site-footer {
    display: none !important;
}

body.in-room #site-footer {
    position: relative;
    display: block !important;
    margin-top: 16px;
    width: 100%;
}

body.in-room {
    overscroll-behavior-y: none;
    /* Bounce efektini (overscroll) tamamen kapatır */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

@media (max-width: 480px) {
    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 0.75rem;
    }
}

.footer-links a:hover {
    color: #ffde00;
}

.footer-copy {
    color: #666;
    font-size: 0.8rem;
    font-family: 'Quicksand', sans-serif;
}

/* Invite Modal Overrides */
.modal-box .invite-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-box .invite-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
    transform: none;
}

.modal-box .invite-eye-btn {
    width: auto;
    height: auto;
    padding: 5px 8px;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-box .invite-eye-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: scale(1.1);
    color: #fff;
}

.modal-box .invite-eye-btn i {
    font-size: 1.3rem;
    /* Same as the font-size of the room code (1.3rem) */
    color: #ffde00;
}

/* İSTEK VE ŞİKAYET / BİZE ULAŞIN KUTUSU CSS (KANZI TRUST MODAL DESİGN DİLİ) */
.contact-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    font-family: 'Quicksand', sans-serif;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.contact-drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 6, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.contact-drawer-content {
    width: 92%;
    max-width: 480px;
    background: linear-gradient(160deg, #231248 0%, #15092e 50%, #0d041c 100%);
    border: 2px solid rgba(255, 222, 0, 0.45);
    border-radius: 24px;
    padding: 32px 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.85),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 35px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(255, 222, 0, 0.15);
    position: relative;
    transform: scale(0.93) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.contact-drawer.open .contact-drawer-content {
    transform: scale(1) translateY(0);
}

.contact-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.35);
    text-align: center;
}

.contact-header h3 {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    color: #ffde00;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 222, 0, 0.25);
}

.contact-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 222, 0, 0.3) !important;
    color: #ffde00 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1 !important;
    padding: 0 !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-close:hover {
    background: rgba(255, 222, 0, 0.2) !important;
    border-color: #ffde00 !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.12);
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.4);
}

.contact-drawer-content .form-group {
    margin-bottom: 16px;
}

.contact-drawer-content input,
.contact-drawer-content textarea {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1.5px solid rgba(255, 222, 0, 0.25);
    color: #ffffff;
    border-radius: 14px;
    padding: 13px 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-drawer-content input::placeholder,
.contact-drawer-content textarea::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.contact-drawer-content input:focus,
.contact-drawer-content textarea:focus {
    border-color: #ffde00;
    background: rgba(21, 9, 46, 0.9);
    box-shadow: 0 0 18px rgba(255, 222, 0, 0.35), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-drawer-content textarea {
    resize: none;
}

.contact-status {
    margin-top: 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 700;
    min-height: 24px;
    transition: all 0.3s ease;
}

.contact-status.success {
    color: #2ed573;
    background: rgba(46, 213, 115, 0.12);
    border: 1px solid rgba(46, 213, 115, 0.3);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.2);
    text-shadow: 0 0 8px rgba(46, 213, 115, 0.4);
}

.contact-status.error {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
    animation: contactShake 0.35s ease;
}

@keyframes contactShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

#contact-submit {
    background: linear-gradient(135deg, #ffde00 0%, #ffa500 100%);
    color: #120624;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 222, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 8px;
}

#contact-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 222, 0, 0.55);
    filter: brightness(1.08);
}

#contact-submit:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(255, 222, 0, 0.3);
}

#contact-submit:disabled {
    background: #4a4a5a;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}

/* ==========================================================================
   OYUN MODU SEÇİM MODALI & 3D DOKUNSAL BUTONLAR (KANZI GAMES KÜLTÜRÜ)
   ========================================================================== */

#portalLocalModeModal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
    animation: fadeInModalBg 0.2s ease-out;
}

@keyframes fadeInModalBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mode-select-card {
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(62, 22, 98, 0.96) 0%, rgba(28, 15, 48, 0.97) 55%, rgba(14, 14, 26, 0.98) 100%);
    border: 2.5px solid rgba(255, 222, 0, 0.75);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8),
        0 0 45px rgba(139, 92, 246, 0.45),
        0 0 15px rgba(255, 222, 0, 0.25);
    border-radius: 24px;
    padding: 32px 24px 28px;
    width: min(380px, 92vw);
    text-align: center;
    box-sizing: border-box;
    animation: authModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Quicksand', sans-serif;
}

.mode-modal-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mode-modal-close-x:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: scale(1.08);
}

.mode-modal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: #ffde00;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(255, 222, 0, 0.3);
}

.mode-modal-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    color: #888;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.mode-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 3D Dokunsal Buton Temel Stilleri (Pixel Font, Emojisiz, Açıklamasız, Net ve Tok Basma Hissi) */
.mode-select-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    min-height: 54px;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    font-family: 'Press Start 2P', monospace, sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.mode-select-btn .mode-btn-label {
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

/* 1. Çevrimiçi Mod (Canlı Zümrüt Yeşili) */
.mode-btn-online {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-shadow: 0 6px 0 #047857, 0 10px 22px rgba(5, 150, 105, 0.35);
}

.mode-btn-online:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #047857, 0 14px 26px rgba(5, 150, 105, 0.45);
    filter: brightness(1.05);
}

.mode-btn-online:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #047857, 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.25);
    filter: brightness(0.96);
}

/* 2. Yanyana Mod (Sıcak Yakut / Mercan) */
.mode-btn-local {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-shadow: 0 6px 0 #be123c, 0 10px 22px rgba(225, 29, 72, 0.35);
}

.mode-btn-local:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #be123c, 0 14px 26px rgba(225, 29, 72, 0.45);
    filter: brightness(1.05);
}

.mode-btn-local:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #be123c, 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.25);
    filter: brightness(0.96);
}

/* 3. Bot ile Oyna (Asil Elektrik İndigo) */
.mode-btn-bot {
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-shadow: 0 6px 0 #3730a3, 0 10px 22px rgba(79, 70, 229, 0.35);
}

.mode-btn-bot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #3730a3, 0 14px 26px rgba(79, 70, 229, 0.45);
    filter: brightness(1.05);
}

.mode-btn-bot:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #3730a3, 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.25);
    filter: brightness(0.96);
}

/* Modallar açıkken profil ve nasıl oynanır butonunu gizle */
body.entry-modal-open #profile-orb,
body.entry-modal-open #globalHowToBtn {
    display: none !important;
}

/* ==========================================================================
   MAINTENANCE MODAL
   ========================================================================== */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.maintenance-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.maintenance-modal {
    background: radial-gradient(ellipse at center, rgba(35, 10, 45, 0.98) 0%, rgba(15, 5, 20, 0.99) 100%);
    border: 2px solid #1e3a8a;
    /* Dark Blue */
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(30, 58, 138, 0.5), inset 0 0 20px rgba(30, 58, 138, 0.3);
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-width: 400px;
    width: 100%;
}

.maintenance-overlay.show .maintenance-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.maintenance-visual-container {
    position: relative;
    height: 140px;
    width: 140px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 222, 0, 0.4);
    border-radius: 50%;
    animation: spinOrbit 12s linear infinite;
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.1);
}

.m-orbit-ring-reverse {
    width: 120%;
    height: 120%;
    border: 1px dotted rgba(230, 57, 70, 0.5);
    animation: spinOrbitReverse 18s linear infinite;
}

@keyframes spinOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

    100% {
        transform: rotate(0deg);
    }
}

.m-capybara-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    animation: mBounce 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 222, 0, 0.5));
}

.m-orbit-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: trueOrbit 12s linear infinite;
    z-index: 3;
}

@keyframes trueOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.m-item-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.m-item-wrapper.w1 {
    transform: rotate(0deg) translate(75px);
}

.m-item-wrapper.w2 {
    transform: rotate(60deg) translate(75px);
}

.m-item-wrapper.w3 {
    transform: rotate(120deg) translate(75px);
}

.m-item-wrapper.w4 {
    transform: rotate(180deg) translate(75px);
}

.m-item-wrapper.w5 {
    transform: rotate(240deg) translate(75px);
}

.m-item-wrapper.w6 {
    transform: rotate(300deg) translate(75px);
}

.m-item-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-left: -18px;
    margin-top: -18px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.m-item-wrapper.w1 .m-item-img {
    animation: counterOrbit1 12s linear infinite;
}

.m-item-wrapper.w2 .m-item-img {
    animation: counterOrbit2 12s linear infinite;
}

.m-item-wrapper.w3 .m-item-img {
    animation: counterOrbit3 12s linear infinite;
}

.m-item-wrapper.w4 .m-item-img {
    animation: counterOrbit4 12s linear infinite;
}

.m-item-wrapper.w5 .m-item-img {
    animation: counterOrbit5 12s linear infinite;
}

.m-item-wrapper.w6 .m-item-img {
    animation: counterOrbit6 12s linear infinite;
}

@keyframes counterOrbit1 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes counterOrbit2 {
    from {
        transform: rotate(-60deg);
    }

    to {
        transform: rotate(-420deg);
    }
}

@keyframes counterOrbit3 {
    from {
        transform: rotate(-120deg);
    }

    to {
        transform: rotate(-480deg);
    }
}

@keyframes counterOrbit4 {
    from {
        transform: rotate(-180deg);
    }

    to {
        transform: rotate(-540deg);
    }
}

@keyframes counterOrbit5 {
    from {
        transform: rotate(-240deg);
    }

    to {
        transform: rotate(-600deg);
    }
}

@keyframes counterOrbit6 {
    from {
        transform: rotate(-300deg);
    }

    to {
        transform: rotate(-660deg);
    }
}

@keyframes mBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.08);
    }
}

.maintenance-loader {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 222, 0, 0.1);
}

.m-loader-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #e63946, #ffde00);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.6);
    animation: loadingBar 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loadingBar {
    0% {
        margin-left: -30%;
        width: 30%;
    }

    50% {
        width: 50%;
    }

    100% {
        margin-left: 100%;
        width: 30%;
    }
}

.maintenance-title {
    color: #ffde00;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(255, 222, 0, 0.5);
}

.maintenance-text {
    color: #f1f1f1;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.6;
}

.maintenance-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maintenance-close:hover {
    color: #fff;
    background: rgba(230, 57, 70, 0.8);
    border-color: rgba(230, 57, 70, 1);
    transform: scale(1.1) rotate(90deg);
}

.maintenance-btn {
    background: linear-gradient(135deg, #ffde00 0%, #ffa500 100%);
    border: none;
    color: #120624 !important;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 222, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.maintenance-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 222, 0, 0.6);
    filter: brightness(1.1);
}

.maintenance-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(255, 222, 0, 0.4);
}

/* ==========================================
   PWA WIZARD MODAL CSS
   ========================================== */
.pwa-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 6, 22, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overscroll-behavior: none;
    touch-action: none;
    /* Sağa sola oynatılmasını/scroll'u engeller */
}

.pwa-wizard-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.pwa-wizard-modal {
    background: radial-gradient(ellipse at center, rgba(35, 10, 45, 0.98) 0%, rgba(15, 5, 20, 0.99) 100%);
    border: 2px solid #8b5cf6;
    /* Purple */
    border-radius: 24px;
    padding: 32px 20px 24px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5), inset 0 0 20px rgba(139, 92, 246, 0.3);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
}

.pwa-wizard-modal::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.pwa-wizard-overlay.show .pwa-wizard-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.pwa-wizard-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 5, 20, 0.9);
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.pwa-wizard-close:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.8);
    border-color: #8b5cf6;
    transform: scale(1.1) rotate(90deg);
}

.pwa-wizard-visual-container {
    position: relative;
    height: 120px;
    width: 120px;
    margin: 0 auto 12px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pwa-orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 222, 0, 0.4);
    border-radius: 50%;
    animation: spinOrbit 12s linear infinite;
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.1);
}

.pwa-orbit-ring-reverse {
    width: 120%;
    height: 120%;
    border: 1px dotted rgba(139, 92, 246, 0.5);
    animation: spinOrbitReverse 18s linear infinite;
}

.pwa-app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    animation: mBounce 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 2;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.pwa-wizard-title {
    color: #ffde00;
    font-size: 1.5rem;
    font-family: 'Press Start 2P', system-ui;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.3);
    line-height: 1.3;
}

.pwa-wizard-text {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

.pwa-steps-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.pwa-steps-container.hidden {
    display: none !important;
}

.pwa-step {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px;
}

.pwa-step-num {
    background: #8b5cf6;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.pwa-step-desc {
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-step-desc b {
    color: #ffde00;
}

.pwa-step-desc i {
    color: #ffde00;
    margin: 0 4px;
}

.pwa-wizard-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    color: #fff !important;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.pwa-wizard-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.pwa-wizard-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

/* Platform Tab Switcher */
.pwa-platform-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.pwa-platform-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.pwa-platform-tab.active {
    background: #8b5cf6;
    color: #fff;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.5);
}

.pwa-platform-tab:not(.active):hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(139, 92, 246, 0.15);
}

/* ==========================================
   PWA STANDALONE — tarayıcı görünümüyle eşleştir
   ========================================== */
@media (display-mode: standalone) {

    /* iPhone notch / Dynamic Island / status bar padding */
    body {
        padding-top: env(safe-area-inset-top, 0px) !important;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    html,
    body {
        height: 100dvh;
    }

    /* Tarayıcıda görünen ince scrollbar PWA'da da tutarlı kalsın */
    ::-webkit-scrollbar {
        width: 4px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 222, 0, 0.3);
        border-radius: 4px;
    }
}

/* iOS navigator.standalone için JS'in eklediği class */
body.is-pwa {
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* --- VOICE SETTINGS UI --- */
.voice-settings-box {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.voice-setting-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.voice-setting-item label {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 5px;
}

.voice-setting-item select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 8px;
    outline: none;
    font-family: 'Quicksand', sans-serif;
}

.voice-setting-item select option {
    background: #1a1a2e;
    color: white;
}

.voice-setting-item.switch-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.voice-setting-item.switch-item label {
    margin-bottom: 0;
}

/* --- MIKROFON HASSASIYETI SLIDER --- */
.sensitivity-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    margin: 0;
}

.sensitivity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 30px;
    background: #ffde00;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.sensitivity-slider::-moz-range-thumb {
    width: 6px;
    height: 30px;
    background: #ffde00;
    cursor: pointer;
    border-radius: 3px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   YASAL SAYFALAR (GİZLİLİK, ŞARTLAR, HAKKIMIZDA, İLETİŞİM)
   ========================================== */
.legal-page-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 45000;
    overflow-y: auto;
    background: rgba(10, 10, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px 15px 60px 15px;
    box-sizing: border-box;
}

.legal-page-wrapper {
    max-width: 920px;
    margin: 0 auto;
    background: rgba(22, 22, 34, 0.94);
    border: 1px solid rgba(255, 222, 0, 0.25);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    font-family: 'Quicksand', sans-serif;
}

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

.legal-back-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffde00;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-back-btn:hover {
    background: #ffde00;
    color: #000;
    border-color: #ffde00;
    transform: translateX(-3px);
}

.legal-page-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.3rem;
}

.legal-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.legal-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.legal-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #bbb;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 222, 0, 0.4);
}

.legal-tab-btn.active {
    background: #ffde00;
    color: #111;
    border-color: #ffde00;
    box-shadow: 0 4px 15px rgba(255, 222, 0, 0.3);
}

.legal-page-body {
    line-height: 1.75;
    font-size: 1rem;
    color: #d1d5db;
}

.legal-doc-title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.legal-last-updated {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 22px 24px;
}

.legal-section h2 {
    color: #ffde00;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-section p {
    margin: 0 0 12px 0;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.legal-list li {
    margin-bottom: 10px;
}

.legal-link {
    color: #ffde00;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s;
}

.legal-link:hover {
    color: #fff;
}

.legal-alert-box {
    background: rgba(255, 222, 0, 0.08);
    border-left: 4px solid #ffde00;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 16px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #eee;
}

.legal-alert-box i {
    font-size: 1.5rem;
    color: #ffde00;
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-alert-box strong {
    color: #ffde00;
    display: block;
    margin-bottom: 4px;
}

.legal-alert-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.legal-contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    transition: all 0.2s ease;
}

.legal-contact-card:hover {
    border-color: #ffde00;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

.legal-contact-card i {
    font-size: 2rem;
    color: #ffde00;
    margin-bottom: 12px;
}

.legal-contact-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #fff;
}

.legal-contact-card p {
    margin: 0 0 6px 0;
    font-weight: 700;
}

.legal-contact-card span {
    font-size: 0.85rem;
    color: #888;
}

.legal-page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.legal-back-btn-bottom {
    background: #ffde00;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legal-back-btn-bottom:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 222, 0, 0.4);
}

.legal-contact-btn-bottom {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-contact-btn-bottom:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffde00;
}

/* Lobi modalı altındaki yasal linkler */
.entry-modal-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #777;
}

.entry-modal-legal-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.entry-modal-legal-links a:hover {
    color: #ffde00;
    text-decoration: underline;
}

.entry-modal-legal-links span {
    color: #555;
}

/* ============================================================
   COOKIE CONSENT BANNER (Kurumsal ve Nötr Tema)
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 880px;
    z-index: 999990;
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

.cookie-banner.hidden {
    display: none !important;
}

.cookie-banner:not(.hidden) {
    animation: cookieBannerFadeIn 0.35s ease forwards;
}

.cookie-banner-hiding {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(16px) !important;
    pointer-events: none !important;
}

@keyframes cookieBannerFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-banner-content {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.cookie-banner-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.cookie-badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
}

.cookie-banner-desc {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #94a3b8;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    border-radius: 8px;
    padding: 9px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    outline: none;
    white-space: nowrap;
}

.cookie-btn-inspect {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-btn-inspect:hover {
    color: #f1f5f9;
}

.cookie-btn-reject {
    background: #1e293b;
    border: 1px solid #475569;
    color: #cbd5e1;
}

.cookie-btn-reject:hover {
    background: #334155;
    border-color: #64748b;
    color: #f8fafc;
}

.cookie-btn-accept {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #0f172a;
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #020617;
}

.cookie-btn:active {
    transform: scale(0.98);
}

/* Subtle attention animation (no neon flare) */
.cookie-banner.shake-attention {
    animation: cookieBannerCleanAttention 0.5s ease-in-out both;
}

@keyframes cookieBannerCleanAttention {
    0%, 100% {
        transform: translateX(-50%);
    }
    20%, 60% {
        transform: translateX(-52%);
    }
    40%, 80% {
        transform: translateX(-48%);
    }
}

.cookie-banner.shake-attention .cookie-banner-content {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35), 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 20px);
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 12px;
    }
    .cookie-banner-header {
        justify-content: space-between;
    }
    .cookie-banner-desc {
        font-size: 0.8rem;
    }
    .cookie-banner-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .cookie-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 80px;
        padding: 9px 12px;
        font-size: 0.82rem;
    }
    .cookie-btn-accept {
        flex: 1 1 100%;
    }
}


/* ========================================================
   TEMA SİSTEMİ (varsayılan görünüm değişmez; yalnızca yeni öğeler)
   Pastel tema: style-pastel.css (yalnızca tema seçilince yüklenir)
   ======================================================== */


/* Profil orb'unun yanındaki tema seçici butonu */
#theme-orb-btn {
    position: absolute;
    left: 4px; /* avatar ile aynı hizada, sola dayalı */
    top: auto;
    bottom: calc(100% + 10px);
    transform: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(18, 18, 30, 0.9);
    border: 2px solid rgba(217, 0, 255, 0.7);
    color: #d900ff;
    box-shadow: 0 0 12px rgba(217, 0, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    font-size: 0.95rem;
}

#theme-orb-btn:hover {
    transform: scale(1.08);
    border-color: #ffde00;
    color: #ffde00;
    box-shadow: 0 0 18px rgba(255, 222, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    #theme-orb-btn {
        width: 40px;
        height: 40px;
        left: 50%;
        transform: translateX(-50%);
    }
    #theme-orb-btn:hover {
        transform: translateX(-50%) scale(1.08);
    }
}

/* Profil menüsündeki tema rozeti */
.profile-menu-theme-label {
    margin-left: auto;
    background: rgba(217, 0, 255, 0.18);
    color: #ffde00;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(217, 0, 255, 0.5);
}

.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    box-sizing: border-box;
}

.theme-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 8, 20, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}

.theme-modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    border-radius: 28px;
    padding: 28px 24px;
    box-sizing: border-box;
    transform: scale(0.92) translateY(10px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
    background: #180922;
    border: 3px solid #d900ff;
    box-shadow: 0 0 35px rgba(217, 0, 255, 0.5), 0 20px 60px rgba(0, 0, 0, 0.85);
    color: #ffffff;
}

.theme-modal.is-open .theme-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.theme-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(217, 0, 255, 0.3);
}

.theme-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: #2b0b3d;
    color: #ffde00;
    border: 2px solid #d900ff;
    box-shadow: 0 0 10px rgba(217, 0, 255, 0.5);
}

.theme-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: 'Press Start 2P', system-ui, monospace;
    color: #ffde00;
    text-shadow: 0 0 8px #ff5e00;
}

.theme-modal-subtitle {
    margin: 5px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    font-family: 'Quicksand', sans-serif;
}

.theme-modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    transition: transform 0.15s ease, color 0.15s ease;
    color: #ffde00;
}

.theme-modal-close:hover {
    color: #fff;
    transform: scale(1.15);
}

.theme-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

@media (max-width: 640px) {
    .theme-options-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.theme-card-option {
    position: relative;
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(14, 14, 26, 0.85);
    border: 2px solid rgba(217, 0, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.theme-card-option:hover {
    transform: translateY(-3px);
    border-color: #d900ff;
    box-shadow: 0 0 20px rgba(217, 0, 255, 0.45);
}

.theme-card-option.is-active {
    border-color: #ffde00 !important;
    box-shadow: 0 0 25px rgba(255, 222, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.8) !important;
}

.theme-card-badge-status {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 3;
    background: #201030;
    color: #888;
    border: 1px solid #444;
    font-family: 'Press Start 2P', system-ui, monospace;
}

.theme-card-badge-status.badge-active {
    background: #ffde00;
    color: #000;
    border-color: #ffde00;
    box-shadow: 0 0 10px #ffde00;
}

.theme-preview-box {
    border-radius: 14px;
    padding: 14px 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 110px;
}

.preview-current {
    background: linear-gradient(135deg, #f6f1fb 0%, #ede6f8 100%);
    border: 1.5px solid #d9cdee;
}

.preview-current .pastel-sign {
    background: linear-gradient(135deg, #fde9de 0%, #f6dcec 45%, #e3d9f7 100%);
    border: 2px solid #fff;
    border-radius: 14px;
    padding: 6px 18px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: #7a62b3;
    font-size: 0.85rem;
    box-shadow: 0 3px 0 #8f78c4;
}

.preview-current .preview-mini-buttons {
    display: flex;
    gap: 6px;
}

.preview-current .preview-pill {
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.62rem;
    border: 1.5px solid #000;
    box-shadow: 0 2px 0 #000;
}

.pastel-p1 { background: #b9a4ee; color: #fff; }
.pastel-p2 { background: #f4efff; color: #3b2d4f; }
.pastel-p3 { background: #cfd6fb; color: #3b2d4f; }

.preview-development {
    background: #08040f;
    border: 1.5px solid #d900ff;
    box-shadow: inset 0 0 16px rgba(217, 0, 255, 0.3);
}

.preview-development .retro-sign {
    background: #2b1111;
    border: 2px solid #d900ff;
    border-radius: 14px;
    padding: 6px 18px;
    font-family: 'Press Start 2P', monospace;
    font-weight: 900;
    color: #ffde00;
    font-size: 0.72rem;
    box-shadow: 0 0 10px #d900ff, 0 4px 0 #1a0808;
    text-shadow: 0 0 8px #ff5e00;
}

.preview-development .preview-mini-buttons {
    display: flex;
    gap: 6px;
}

.preview-development .preview-pill {
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    box-shadow: 0 0 6px rgba(217, 0, 255, 0.5);
}

.neon-p1 { background: #1a0524; color: #fff; border: 1.5px solid #d900ff; }
.neon-p2 { background: #241c05; color: #ffde00; border: 1.5px solid #ffde00; }
.neon-p3 { background: #051824; color: #fff; border: 1.5px solid #00b4d8; }

.theme-card-info {
    margin-bottom: 12px;
}

.theme-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.theme-card-name {
    font-weight: 900;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.78rem;
    color: #ffde00;
}

.theme-card-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
}

.tag-current {
    background: #ede6f8;
    color: #7a62b3;
    border: 1px solid #d9cdee;
}

.tag-dev {
    background: #2b0b3d;
    color: #ffde00;
    border: 1px solid #d900ff;
}

.theme-card-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    color: #aaa;
    font-family: 'Quicksand', sans-serif;
}

.theme-select-action-btn {
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.62rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
    transition: all 0.15s ease;
    font-family: 'Press Start 2P', monospace;
    background: #1a0524;
    border: 1.5px solid #d900ff;
    color: #fff;
}

.theme-card-option.is-active .theme-select-action-btn {
    background: #ffde00;
    color: #000;
    border-color: #ffde00;
    box-shadow: 0 0 10px #ffde00;
}

.theme-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 2px solid rgba(217, 0, 255, 0.3);
    gap: 12px;
}

@media (max-width: 600px) {
    .theme-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

.theme-footer-hint {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-family: 'Quicksand', sans-serif;
}

.theme-done-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.72rem;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    background: linear-gradient(135deg, #d900ff 0%, #7209b7 100%);
    color: #fff;
    border: 2px solid #fff;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 0 0 15px #d900ff;
}

.theme-done-btn:hover {
    box-shadow: 0 0 25px #d900ff;
    transform: translateY(-1px);
}




/* ========================================================
   TEMA SEÇİM KARTLARI (Arcade / Lavanta / Gece)
   Her kart kendi vurgu rengini taşır; kartlar aktif temadan bağımsız okunur.
   ======================================================== */
.theme-modal .theme-modal-card { max-width: 860px; }

.theme-modal .theme-options-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 760px) {
    .theme-modal .theme-options-grid { grid-template-columns: 1fr; gap: 12px; }
}

.theme-modal .theme-card-option {
    --tm-accent: #d900ff;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(20, 16, 30, 0.9);
    border: 2px solid color-mix(in srgb, var(--tm-accent) 40%, transparent);
    color: #f1ecf8;
}
.theme-modal .theme-card-option.tm-default { --tm-accent: #d900ff; }
.theme-modal .theme-card-option.tm-pastel  { --tm-accent: #a48ad8; }
.theme-modal .theme-card-option.tm-akn     { --tm-accent: #7d9cb8; }

.theme-modal .theme-card-option:hover {
    border-color: var(--tm-accent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--tm-accent) 45%, transparent);
}
.theme-modal .theme-card-option.is-active {
    border-color: #ffde00 !important;
    box-shadow: 0 0 22px rgba(255, 222, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.6) !important;
}

.theme-modal .theme-card-badge-status {
    top: 8px; right: 8px;
    padding: 3px 8px;
    font-size: 0.58rem;
}

/* Mini sahne: tabela + butonlar + sağda lobi çekmecesi */
.tm-scene {
    position: relative;
    height: 128px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 0 0 0 14px;
    box-sizing: border-box;
}
.tm-sign {
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.tm-pills { display: flex; gap: 5px; }
.tm-pills i {
    font-style: normal;
    padding: 4px 7px;
    font-size: 0.55rem;
    font-weight: 800;
    border-radius: 6px;
}
.tm-drawer {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px;
    box-sizing: border-box;
}
.tm-drawer b { display: block; height: 14px; border-radius: 4px; }
.tm-drawer b:first-child { height: 24px; }

/* Arcade */
.tm-scene-default {
    background: radial-gradient(circle at 30% 20%, #2a0a3a 0%, #08040f 70%);
    border: 1.5px solid #d900ff;
    box-shadow: inset 0 0 18px rgba(217, 0, 255, 0.35);
}
.tm-scene-default .tm-sign {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    background: #2b1111; color: #ffde00;
    border: 2px solid #d900ff; border-radius: 10px;
    text-shadow: 0 0 8px #ff5e00;
    box-shadow: 0 0 10px #d900ff;
}
.tm-scene-default .tm-pills i { font-family: 'Press Start 2P', monospace; font-size: 0.42rem; }
.tm-scene-default .tm-pills i:nth-child(1) { background: #1a0524; color: #fff; border: 1.5px solid #d900ff; }
.tm-scene-default .tm-pills i:nth-child(2) { background: #241c05; color: #ffde00; border: 1.5px solid #ffde00; }
.tm-scene-default .tm-pills i:nth-child(3) { background: #051824; color: #fff; border: 1.5px solid #00b4d8; }
.tm-scene-default .tm-drawer { background: rgba(19, 10, 31, 0.95); border-left: 2px solid #d900ff; }
.tm-scene-default .tm-drawer b { background: #3a1a52; }

/* Lavanta */
.tm-scene-pastel {
    background: linear-gradient(135deg, #f6f1fb 0%, #e3d9f7 100%);
    border: 1.5px solid #d9cdee;
}
.tm-scene-pastel .tm-sign {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fde9de, #e3d9f7);
    color: #7a62b3; border: 2px solid #fff; border-radius: 12px;
    box-shadow: 0 3px 0 #8f78c4;
}
.tm-scene-pastel .tm-pills i { font-family: 'Outfit', sans-serif; border: 1.5px solid #3b2d4f; box-shadow: 0 2px 0 #3b2d4f; color: #3b2d4f; }
.tm-scene-pastel .tm-pills i:nth-child(1) { background: #b9a4ee; color: #fff; }
.tm-scene-pastel .tm-pills i:nth-child(2) { background: #fffdfa; }
.tm-scene-pastel .tm-pills i:nth-child(3) { background: #cfd6fb; }
.tm-scene-pastel .tm-drawer { background: #fffdfa; border-left: 2px solid #3b2d4f; }
.tm-scene-pastel .tm-drawer b { background: #ede6f8; }

/* Gece */
.tm-scene-akn {
    background: linear-gradient(160deg, #1d2231 0%, #0d0f16 100%);
    border: 1.5px solid #3c4052;
}
.tm-scene-akn .tm-sign {
    font-family: 'Quicksand', sans-serif;
    background: #252834; color: #c9a444;
    border: 1.5px solid #3c4052; border-radius: 8px;
}
.tm-scene-akn .tm-pills i { font-family: 'Quicksand', sans-serif; color: #fff; }
.tm-scene-akn .tm-pills i:nth-child(1) { background: #35c3f8; box-shadow: 0 2px 0 #0284c7; }
.tm-scene-akn .tm-pills i:nth-child(2) { background: #22c55e; box-shadow: 0 2px 0 #15803d; }
.tm-scene-akn .tm-pills i:nth-child(3) { background: #ff3b53; box-shadow: 0 2px 0 #b91c1c; }
.tm-scene-akn .tm-drawer { background: rgba(229, 222, 240, 0.08); border-left: 1px solid rgba(229, 222, 240, 0.35); }
.tm-scene-akn .tm-drawer b { background: rgba(229, 222, 240, 0.16); }

.theme-modal .theme-card-info { margin: 0; }
.tm-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.78rem;
    color: var(--tm-accent);
    filter: brightness(1.35);
    margin-bottom: 4px;
}
.tm-tag {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9c93ac;
    margin-bottom: 6px;
}
.theme-modal .theme-card-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #c8c0d6;
}
.theme-modal .theme-select-action-btn {
    background: transparent;
    border: 1.5px solid var(--tm-accent);
    color: #f1ecf8;
}
.theme-modal .theme-card-option.is-active .theme-select-action-btn {
    background: #ffde00; border-color: #ffde00; color: #000;
}

/* ========================================================
   MOBİL: tema seçim modalı + footer (kompakt, kaydırılabilir)
   ======================================================== */
@media (max-width: 768px) {
    .theme-modal { padding: 10px; align-items: flex-end; }
    .theme-modal .theme-modal-card {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 14px calc(14px + env(safe-area-inset-bottom));
        border-radius: 22px;
    }
    .theme-modal .theme-modal-header { margin-bottom: 12px; }
    .theme-modal .theme-modal-subtitle { display: none; }
    .theme-modal .theme-options-grid { gap: 10px; margin-bottom: 12px; }
    .theme-modal .theme-card-option {
        display: grid;
        grid-template-columns: 112px 1fr;
        grid-template-areas: "scene info" "scene btn";
        column-gap: 12px;
        row-gap: 8px;
        padding: 10px;
        align-items: center;
    }
    .theme-modal .theme-card-option .tm-scene { grid-area: scene; height: 100px; align-self: stretch; padding-left: 8px; gap: 6px; }
    .theme-modal .theme-card-option .tm-sign { font-size: 0.5rem; padding: 3px 6px; }
    .theme-modal .theme-card-option .tm-pills { gap: 3px; }
    .theme-modal .theme-card-option .tm-pills i { font-size: 0.4rem; padding: 2px 4px; }
    .theme-modal .theme-card-option .theme-card-info { grid-area: info; align-self: end; }
    .theme-modal .theme-card-option .theme-select-action-btn { grid-area: btn; align-self: start; padding: 8px 10px; font-size: 0.8rem; }
    .theme-modal .theme-card-option .theme-card-desc { font-size: 0.74rem; line-height: 1.3; margin-top: 2px; }
    .theme-modal .theme-card-option .theme-card-badge-status { top: 6px; right: 6px; font-size: 0.5rem; padding: 2px 6px; }
    .theme-modal .theme-modal-footer { margin-top: 0; }

    #site-footer { padding: 10px 0; }
    #site-footer .footer-links {
        flex-wrap: nowrap; justify-content: space-between; gap: 6px;
        overflow: hidden; padding: 0 12px;
    }
    #site-footer .footer-links a { font-size: clamp(0.6rem, 2.9vw, 0.78rem); white-space: nowrap; flex: 0 1 auto; }
    #site-footer .fl-full { display: none; }
    body #profile-orb,
    body #mobile-lobby-btn,
    body.in-room #profile-orb,
    body.in-room #mobile-lobby-btn { bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
    body.in-room #site-footer { padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 16px; }
}

.fl-short { display: none; }
@media (max-width: 768px) { #site-footer .fl-short { display: inline; } }

/* ========================================================
   MOBİL DÜZELTME: Lobi kodu satırı dar ekranda taşmasın
   (gizlilik toggle'ı alt satıra insin)
   ======================================================== */
@media (max-width: 768px) {
    /* Kod + gizlilik anahtarı tek satırda kalsın (alta taşmasın) */
    div:has(> #privacy-toggle-row) {
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    div:has(> #privacy-toggle-row) > div:first-child {
        gap: 4px !important;
        flex: 0 1 auto;
        min-width: 0;
    }

    div:has(> #privacy-toggle-row) > div:first-child > span:first-child {
        font-size: 0.62rem !important;
        letter-spacing: 0 !important;
    }

    div:has(> #privacy-toggle-row) > #privacy-toggle-row {
        margin: 0 0 0 auto !important;
        gap: 4px !important;
        flex-shrink: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    div:has(> #privacy-toggle-row) #lobby-privacy-label {
        font-size: 0.66rem !important;
    }

    div:has(> #privacy-toggle-row) .privacy-switch {
        transform: scale(0.8);
        transform-origin: right center;
        margin-left: -6px;
    }
}
