/* ========================================================
   ÇOCUK OYUN (cocukoyun.net) - Resmi Stil Dosyası
   KralOyun & Poki Kalitesinde Yoğun Çocuk Oyun Portalı
   ======================================================== */

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

:root {
    --brand-red: #e60012;
    --brand-red-dark: #c0000e;
    --brand-orange: #ff5500;
    --brand-yellow: #ffcc00;
    --brand-green: #10b981;
    --brand-blue: #3b82f6;

    --bg-page: #f2f4f7;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-sidebar: #ffffff;

    --border-color: #e2e8f0;
    --border-hover: #e60012;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================================
   1. ÜST BAR (NAVBAR - ÇOCUK OYUN cocukoyun.net)
   ======================================================== */
.navbar {
    background: linear-gradient(135deg, #e60012 0%, #ff3b30 50%, #ff5500 100%);
    box-shadow: 0 4px 14px rgba(230, 0, 18, 0.25);
    position: sticky;
    top: 0;
    z-index: 500;
    padding: 10px 24px;
}

.navbar-container {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-area:hover {
    transform: scale(1.03);
}

.logo-mascot-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: mascotWiggle 3s infinite ease-in-out;
}

@keyframes mascotWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg) scale(1.05); }
    75% { transform: rotate(6deg) scale(1.05); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.logo-main span {
    color: var(--brand-yellow);
}

.logo-sub {
    font-size: 11px;
    font-weight: 800;
    color: #fff4cc;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Arama Kutusu */
.search-wrapper {
    flex: 1;
    max-width: 460px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 18px 10px 44px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.search-input:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.4);
}

.search-btn-icon {
    position: absolute;
    left: 15px;
    font-size: 17px;
    color: #64748b;
    pointer-events: none;
}

/* Üst Kısayollar ve Kullanıcı Paneli */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 7px 13px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.nav-item-btn.btn-leaderboard {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-color: #fde047;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
    font-weight: 800;
}

.nav-item-btn.btn-leaderboard:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.6);
}

.nav-item-btn.btn-random {
    background: var(--brand-yellow);
    color: #991b1b;
    border-color: #f59e0b;
}

.nav-item-btn.btn-random:hover {
    background: #fde047;
}

.nav-item-btn.active {
    background: #ffffff;
    color: var(--brand-red);
    border-color: #ffffff;
}

/* Jeton Sayacı */
.coin-counter-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(253, 224, 71, 0.4);
    padding: 6px 14px;
    border-radius: 9999px;
    color: #fef08a;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coin-counter-badge.bump {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(253, 224, 71, 0.8);
}

.coin-unit-label {
    font-size: 11px;
    font-weight: 700;
    color: #fef9c3;
    opacity: 0.9;
}

/* Giriş / Profil Butonu */
.btn-auth {
    background: #ffffff;
    color: var(--brand-red);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 7px 16px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-auth:hover {
    background: #fef2f2;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 5px 12px 5px 6px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 170px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 600;
}

.user-dropdown-menu.show {
    display: flex;
}

.dropdown-item-btn {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item-btn:hover {
    background: #fef2f2;
    color: var(--brand-red);
}

/* ========================================================
   2. REKLAM BANNERLARI
   ======================================================== */
.ad-leaderboard-wrapper {
    max-width: 1480px;
    margin: 12px auto 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.ad-banner-728 {
    width: 728px;
    max-width: 100%;
    height: 90px;
    background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 50%, #fef3c7 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ad-label-tag {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ad-banner-icon {
    font-size: 38px;
}

.ad-banner-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.ad-banner-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.ad-banner-cta {
    background: #10b981;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s ease;
}

.ad-banner-cta:hover {
    transform: scale(1.05);
}

/* ========================================================
   3. ANA DÜZEN (SOL SIDEBAR + SAĞ İÇERİK)
   ======================================================== */
.portal-container {
    max-width: 1480px;
    width: 100%;
    margin: 14px auto 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex: 1;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--bg-sidebar);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.sidebar-header {
    background: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-list {
    list-style: none;
    padding: 6px;
}

.category-item {
    margin-bottom: 2px;
}

.category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #334155;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.category-btn .cat-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn .cat-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.15s ease;
}

.category-btn:hover {
    background: #fef2f2;
    color: var(--brand-red);
}

.category-btn.active {
    background: var(--brand-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

.category-btn.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.sidebar-ad-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-ad-img {
    font-size: 40px;
    margin: 8px 0;
}

.sidebar-ad-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.sidebar-ad-sub {
    font-size: 11px;
    color: #64748b;
}

/* ========================================================
   4. SAĞ İÇERİK ALANI
   ======================================================== */
.content-area {
    flex: 1;
    min-width: 0;
}

.catalog-header {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.catalog-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.catalog-badge {
    background: #fef2f2;
    color: var(--brand-red);
    border: 1px solid #fee2e2;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
}

.sort-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    outline: none;
    cursor: pointer;
}

/* ========================================================
   5. YOĞUN OYUN IZGARASI
   ======================================================== */
.dense-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 12px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
    content-visibility: auto;
    contain-intrinsic-size: 140px 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-red);
    box-shadow: 0 8px 18px rgba(230, 0, 18, 0.18);
}

.game-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.game-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-thumb {
    transform: scale(1.08);
}

.card-mini-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.badge-pop {
    background: #e60012;
}

.card-play-hover {
    position: absolute;
    inset: 0;
    background: rgba(230, 0, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.card-play-hover span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .card-play-hover {
    opacity: 1;
}

.game-card:hover .card-play-hover span {
    transform: scale(1);
}

.game-card-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    background: #ffffff;
}

.game-card-title {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.game-card-rating {
    color: #eab308;
    font-weight: 800;
}

.game-card-plays {
    color: #94a3b8;
    font-weight: 600;
}

/* Akıllı Etiket Filtreleme Barı (Filter Chips) */
.filter-chips-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.filter-chips-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-chip:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
    box-shadow: 0 3px 10px rgba(230, 0, 18, 0.35);
}

/* Kart Üstü Favori Butonu */
.card-fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.card-fav-btn:hover {
    transform: scale(1.2);
    background: #ffffff;
}

.card-fav-btn.active {
    background: #ffffff;
    transform: scale(1.1);
}

/* Kart Akıllı Etiketleri */
.card-tags-wrap {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 2;
    pointer-events: none;
}

.card-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card-tag.tag-3d { background: #8b5cf6; }
.card-tag.tag-multi { background: #06b6d4; }
.card-tag.tag-pop { background: #ef4444; }
.card-tag.tag-new { background: #10b981; }
.card-tag.tag-pro { background: #f59e0b; }

/* Boş Favori Durumu */
.empty-fav-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 2px dashed #fca5a5;
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    color: #475569;
}

.empty-fav-icon {
    font-size: 54px;
    margin-bottom: 12px;
    animation: heartBeat 1.5s infinite ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Kullanıcı Profil Hapı Rütbe Başlığı */
.user-pill-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.user-rank-title-badge {
    font-size: 10px;
    font-weight: 800;
    color: #f59e0b;
    margin-top: 2px;
}

.dropdown-user-header {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    background: #fefce8;
    border-radius: 6px;
    margin-bottom: 6px;
    text-align: center;
}

/* ========================================================
   6. OYUN OYNAMA SAHNESİ & 6 SANİYE AKILLI HATA YAKALAMA
   ======================================================== */
.game-player-section {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.game-player-section.active {
    display: flex;
}

.game-catalog-section {
    display: block;
}

.game-catalog-section.hidden {
    display: none;
}

.player-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    padding: 4px 0;
}

.player-breadcrumb a {
    color: var(--brand-red);
    text-decoration: none;
    cursor: pointer;
}

.player-breadcrumb a:hover {
    text-decoration: underline;
}

.stage-layout {
    display: flex;
    gap: 18px;
    width: 100%;
}

.stage-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.iframe-container {
    width: 100%;
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
    max-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.iframe-loader {
    position: absolute;
    inset: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.iframe-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--brand-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 6 SANİYE AKILLI HATA YAKALAMA & UYKUDA MODALI */
.iframe-fallback {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 14px;
    color: #ffffff;
    z-index: 25;
    animation: fadeIn 0.3s ease;
}

.iframe-fallback.hidden {
    display: none;
}

.fallback-sleep-icon {
    font-size: 52px;
    animation: sleepBounce 2s infinite ease-in-out;
}

@keyframes sleepBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.08); }
}

.fallback-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #fde047;
}

.fallback-desc {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 460px;
    line-height: 1.5;
}

.fallback-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-fallback {
    padding: 10px 20px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.btn-fallback.btn-switch-fast {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
    animation: pulseBtn 2s infinite ease-in-out;
    font-size: 15px;
    padding: 12px 24px;
    border: 2px solid #6ee7b7;
}

@keyframes pulseBtn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.btn-fallback.btn-switch-fast:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

.btn-fallback.btn-newtab {
    background: #3b82f6;
    color: #ffffff;
}

.btn-fallback.btn-newtab:hover {
    background: #2563eb;
}

.btn-fallback.btn-retry {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-fallback.btn-retry:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Pre-Roll Reklam Katmanı */
.preroll-overlay {
    position: absolute;
    inset: 0;
    background: #0b0f19;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
    padding: 18px 24px;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.preroll-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.preroll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preroll-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #fde047;
}

.preroll-timer {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.preroll-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin: auto 0;
}

.preroll-ad-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 24px 36px;
    max-width: 540px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.preroll-ad-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
}

.preroll-ad-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.preroll-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-skip-ad {
    background: #374151;
    color: #9ca3af;
    border: 1px solid #4b5563;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 9999px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.btn-skip-ad.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Oyun Alt Araç Çubuğu */
.stage-toolbar {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.stage-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stage-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.stage-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: #334155;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-action.btn-like.liked {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-action.btn-fav.active {
    background: #fef2f2;
    color: var(--brand-red);
    border-color: #fee2e2;
}

.btn-action.btn-back {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
}

.btn-action.btn-back:hover {
    background: var(--brand-red-dark);
}

/* Gelişmiş Oyun Açıklaması ve Kontrol Rehberi */
.game-info-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    gap: 1px;
}

.game-tab-col {
    padding: 16px 20px;
    background: #ffffff;
}

.game-tab-col:first-child {
    border-right: 1px solid var(--border-color);
}

.tab-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-content {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

kbd {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #94a3b8;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    color: #0f172a;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    margin: 0 2px;
}

/* Sağ Taraf: Benzer Oyunlar Kolonu */
.stage-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-similar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 12px;
}

.similar-header {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

.similar-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.similar-game-tile {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
}

.similar-game-tile:hover {
    border-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.15);
}

.similar-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.similar-title {
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-similar-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 18px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bottom-similar-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================================
   7. MODALLAR (AUTH, LİDERLER, MOLA, POST-ROLL)
   ======================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 213, 225, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: var(--brand-red);
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 14px rgba(230, 0, 18, 0.25);
}

.modal-close-btn:active {
    transform: scale(0.92);
}

/* Üyelik Modal Stilleri */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.auth-tab-btn {
    padding: 8px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-tab-btn.active {
    background: #fef2f2;
    color: var(--brand-red);
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    text-align: left;
}

.auth-label {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.auth-input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.15);
}

.avatar-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.avatar-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

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

.avatar-option.selected {
    border-color: var(--brand-red);
    background: #fef2f2;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
}

/* Liderlik Tablosu Stilleri */
.leaderboard-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fef3c7, #fee2e2);
    border: 2px solid #fcd34d;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: left;
}

.leaderboard-summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-user-name {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.lb-user-status {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
}

.leaderboard-summary-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-rank-badge {
    background: #e60012;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(230, 0, 18, 0.3);
}

.lb-coins-badge {
    background: #f59e0b;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.leaderboard-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #f8fafc;
}

.leader-row:hover {
    background: #f8fafc;
}

.leader-rank {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #64748b;
    width: 50px;
}

.leader-rank.rank-1 { color: #f59e0b; font-size: 18px; }
.leader-rank.rank-2 { color: #94a3b8; font-size: 17px; }
.leader-rank.rank-3 { color: #d97706; font-size: 16px; }

.leader-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-avatar {
    font-size: 18px;
}

.leader-score {
    color: #f59e0b;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.user-leader-pinned {
    background: #fef2f2 !important;
    border: 2px solid #fca5a5 !important;
    border-radius: 8px;
}

/* Puan Bilgilendirme Kutusu */
.leaderboard-guide-box {
    margin-top: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: #475569;
    text-align: left;
    line-height: 1.6;
}

/* Uçuşan Jeton Animasyonu */
.flying-coin-pill {
    position: fixed;
    z-index: 3000;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #fde047;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    animation: floatCoins 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatCoins {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    30% { opacity: 1; transform: translateY(-20px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-60px) scale(0.8); }
}

/* ========================================================
   8. BİLDİRİM VE FOOTER
   ======================================================== */
.toast-msg {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1e293b;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 28px 20px;
    margin-top: auto;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.site-footer a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 700;
    margin: 0 8px;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Bilgilendirme Modalı (Footer Bilgi Modal) Stilleri */
.info-modal-card {
    max-width: 640px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 28px 24px 20px 24px;
}

.info-modal-icon {
    font-size: 42px;
    text-align: center;
    margin-bottom: 6px;
}

.info-modal-card .modal-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 16px;
    color: #0f172a;
}

.info-modal-body {
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    padding-right: 8px;
    margin-bottom: 18px;
}

.info-modal-body::-webkit-scrollbar {
    width: 6px;
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.info-modal-body h4 {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    margin-top: 14px;
    margin-bottom: 6px;
}

.info-modal-body p {
    margin-bottom: 10px;
}

.info-modal-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.info-modal-body li {
    margin-bottom: 6px;
}

.info-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.info-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.info-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    margin-top: 10px;
}

/* ========================================================
   MODERN MODAL BUTONLARI & "ANLADIM, KAPAT" TASARIMI
   ======================================================== */
.btn-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    outline: none;
    user-select: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-modal.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modal.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55), 0 0 16px rgba(16, 185, 129, 0.35);
}

.btn-modal.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Bilgilendirme Modalı "Anladım, Kapat" Özel Tasarımı */
#btnConfirmCloseInfoModal {
    background: linear-gradient(135deg, #ff5500 0%, #e60012 100%);
    color: #ffffff;
    padding: 13px 38px;
    font-size: 15px;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 18px rgba(230, 0, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

#btnConfirmCloseInfoModal:hover {
    background: linear-gradient(135deg, #ff661a 0%, #ff0015 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(230, 0, 18, 0.5), 0 0 20px rgba(255, 85, 0, 0.4);
}

#btnConfirmCloseInfoModal:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(230, 0, 18, 0.3);
}

.btn-modal.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-modal.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ========================================================
   MOBİL VE TABLET UYUMLULUĞU (RESPONSIVE ENGINE)
   ======================================================== */
@media (max-width: 1024px) {
    .portal-container {
        flex-direction: column;
        padding: 12px;
    }
    .sidebar {
        width: 100%;
    }
    .sidebar-ad-card {
        display: none;
    }
    .category-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-list::-webkit-scrollbar {
        display: none;
    }
    .category-item {
        flex-shrink: 0;
    }
    .category-btn {
        border-radius: 9999px;
        padding: 8px 14px;
        white-space: nowrap;
    }
    .stage-layout {
        flex-direction: column;
    }
    .stage-sidebar {
        width: 100%;
    }
    .similar-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .game-info-tabs {
        grid-template-columns: 1fr;
    }
    .game-tab-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 12px;
    }
    .navbar-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo-area {
        flex: 1;
        min-width: 0;
    }
    .logo-mascot-wrap {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    .logo-main {
        font-size: 20px;
    }
    .logo-sub {
        display: none;
    }
    .search-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }
    .search-input {
        padding: 8px 14px 8px 38px;
        font-size: 13px;
        height: 38px;
    }
    .search-btn-icon {
        left: 12px;
        font-size: 15px;
    }
    .nav-links {
        order: 2;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .nav-item-btn {
        padding: 5px 9px;
        font-size: 11px;
    }
    .coin-counter-badge {
        padding: 4px 8px;
        font-size: 12px;
    }
    .coin-unit-label {
        display: none;
    }
    .btn-auth {
        padding: 5px 10px;
        font-size: 12px;
    }
    .user-profile-pill {
        padding: 3px 8px;
    }
    .user-pill-info {
        display: none;
    }
    .catalog-header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .catalog-title {
        font-size: 16px;
    }
    .dense-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
    .ad-leaderboard-wrapper {
        margin: 6px 0;
    }
    .ad-banner-728 {
        min-height: 60px;
        padding: 6px;
    }
    .modal-card {
        width: 95vw;
        max-width: 95vw;
        padding: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .player-actions-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .player-act-btn {
        padding: 7px 10px;
        font-size: 12px;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 6px 10px;
    }
    .logo-mascot-wrap {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .logo-main {
        font-size: 18px;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-item-btn {
        padding: 4px 7px;
        font-size: 11px;
    }
    .btn-random, #btnFavoritesFilter {
        font-size: 11px;
    }
    /* Telefonlarda altın standardı: 3 sütunlu kompakt ve pürüzsüz ızgara */
    .dense-games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .game-card {
        border-radius: 8px;
    }
    .game-card-title {
        font-size: 11px;
        padding: 4px 6px;
        height: 30px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .game-card-footer {
        padding: 0 6px 5px 6px;
        font-size: 10px;
    }
    .game-card-plays {
        display: none;
    }
    .card-mini-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    .card-fav-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
        top: 4px;
        right: 4px;
    }
    .shop-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .shop-tab-btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 10px;
    }
    .shop-items-grid {
        grid-template-columns: 1fr;
    }
    .avatar-selector-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .avatar-picker-option {
        font-size: 22px;
        border-radius: 8px;
    }
}


/* ========================================================
   MAĞAZA (SHOP), REKLAM VE VIP KİŞİSELLEŞTİRME STİLLERİ
   ======================================================== */

/* Mağaza Butonu ve Nabız İkonu */
.nav-item-btn.btn-shop {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: #6ee7b7;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45);
    font-weight: 800;
}

.nav-item-btn.btn-shop:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6);
}

.shop-badge-pulse {
    display: inline-block;
    animation: shopCartBounce 2s infinite ease-in-out;
}

@keyframes shopCartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25) rotate(-5deg); }
}

/* Sağ Dikey Kule Reklam Alanı (160x600 Skyscraper) */
.ad-skyscraper-right {
    width: 170px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 1400px) {
    .ad-skyscraper-right {
        display: block;
    }
}

.skyscraper-box {
    position: sticky;
    top: 76px;
    width: 160px;
    min-height: 600px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skyscraper-content {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skyscraper-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.skyscraper-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.skyscraper-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Pre-roll Reklam Alanı İyileştirmeleri */
.preroll-sdk-slot {
    width: 100%;
    display: flex;
    justify-content: center;
}

.preroll-ad-tag-sub {
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Mağaza Modalı */
.shop-modal-card {
    max-width: 680px !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.shop-modal-header {
    text-align: center;
    margin-bottom: 14px;
}

.shop-modal-icon {
    font-size: 42px;
    margin-bottom: 4px;
}

.shop-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 800;
    margin-top: 10px;
}

.shop-balance-pill strong {
    font-size: 17px;
    color: #047857;
}

/* Mağaza Sekmeleri */
.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    overflow-x: auto;
}

.shop-tab-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.shop-tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.shop-tab-btn.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Mağaza Ürün Izgarası */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.shop-item-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.shop-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.shop-item-card.equipped {
    border-color: #10b981;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.shop-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.shop-preview-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.shop-item-info {
    flex: 1;
}

.shop-item-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.shop-item-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.shop-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
}

.shop-item-price {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-shop-action {
    padding: 7px 14px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-shop-action.btn-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-shop-action.btn-buy:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(1.03);
}

.btn-shop-action.btn-equip {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-shop-action.btn-equip:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-shop-action.btn-equipped {
    background: #10b981;
    color: #ffffff;
    cursor: pointer;
}

.shop-modal-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.shop-footer-tip {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

/* ========================================================
   ÖZEL PROFİL ÇERÇEVELERİ (EQUIPPED AVATAR FRAMES)
   ======================================================== */
.frame-gold {
    border: 3px solid #facc15 !important;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.85), inset 0 0 8px rgba(254, 240, 138, 0.6) !important;
    animation: goldShimmer 2.5s infinite alternate ease-in-out;
}

@keyframes goldShimmer {
    0% { box-shadow: 0 0 8px rgba(250, 204, 21, 0.6), inset 0 0 4px rgba(254, 240, 138, 0.4); }
    100% { box-shadow: 0 0 18px rgba(250, 204, 21, 1), inset 0 0 10px rgba(254, 240, 138, 0.8); }
}

.frame-neon-purple {
    border: 3px solid #c084fc !important;
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.85), inset 0 0 8px rgba(233, 213, 255, 0.6) !important;
    animation: neonPurplePulse 2s infinite alternate ease-in-out;
}

@keyframes neonPurplePulse {
    0% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.6); }
    100% { box-shadow: 0 0 20px rgba(168, 85, 247, 1); }
}

.frame-fire {
    border: 3px solid #f97316 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.9), 0 0 8px rgba(249, 115, 22, 0.9) !important;
    animation: fireFlame 1.5s infinite alternate ease-in-out;
}

@keyframes fireFlame {
    0% { box-shadow: 0 0 8px rgba(249, 115, 22, 0.7); }
    100% { box-shadow: 0 0 22px rgba(239, 68, 68, 1), 0 0 12px rgba(234, 179, 8, 0.8); }
}

.frame-rainbow {
    border: 3px solid #06b6d4 !important;
    animation: rainbowGlow 3s infinite linear;
}

@keyframes rainbowGlow {
    0% { border-color: #ef4444 !important; box-shadow: 0 0 14px rgba(239, 68, 68, 0.8) !important; }
    25% { border-color: #f59e0b !important; box-shadow: 0 0 14px rgba(245, 158, 11, 0.8) !important; }
    50% { border-color: #10b981 !important; box-shadow: 0 0 14px rgba(16, 185, 129, 0.8) !important; }
    75% { border-color: #06b6d4 !important; box-shadow: 0 0 14px rgba(6, 182, 212, 0.8) !important; }
    100% { border-color: #8b5cf6 !important; box-shadow: 0 0 14px rgba(139, 92, 246, 0.8) !important; }
}

/* ========================================================
   ÖZEL RENKLİ KULLANICI ADLARI (EQUIPPED NAME COLORS)
   ======================================================== */
.name-gold {
    background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.name-neon-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e, #fb7185) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.5));
}

.name-cyber-blue {
    background: linear-gradient(135deg, #0284c7, #06b6d4, #38bdf8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.5));
}

.name-fire {
    background: linear-gradient(135deg, #dc2626, #ea580c, #f59e0b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.5));
}

/* ========================================================
   ÖZEL VIP ROZETLER (EQUIPPED VIP BADGES)
   ======================================================== */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 9999px;
    vertical-align: middle;
    margin-left: 5px;
    line-height: 1.2;
}

.vip-badge-kral {
    background: linear-gradient(135deg, #fef08a, #fde047);
    color: #854d0e;
    border: 1px solid #facc15;
    box-shadow: 0 1px 4px rgba(234, 179, 8, 0.4);
}

.vip-badge-hiz {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    border: 1px solid #38bdf8;
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.4);
}

.vip-badge-yenilmez {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
    border: 1px solid #a78bfa;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.4);
}

.vip-badge-yildiz {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}

.frame-ice {
    border: 3px solid #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.9), inset 0 0 10px rgba(186, 230, 253, 0.7) !important;
    animation: iceFrost 2s infinite alternate ease-in-out;
}

@keyframes iceFrost {
    0% { box-shadow: 0 0 8px rgba(56, 189, 248, 0.6), inset 0 0 4px rgba(186, 230, 253, 0.4); }
    100% { box-shadow: 0 0 22px rgba(14, 165, 233, 1), inset 0 0 12px rgba(224, 242, 254, 0.9); }
}

.frame-lightning {
    border: 3px solid #facc15 !important;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.9), 0 0 8px rgba(56, 189, 248, 0.8) !important;
    animation: lightningFlicker 1.2s infinite alternate ease-in-out;
}

@keyframes lightningFlicker {
    0% { box-shadow: 0 0 6px rgba(250, 204, 21, 0.5); }
    50% { box-shadow: 0 0 20px rgba(250, 204, 21, 1), 0 0 10px rgba(56, 189, 248, 0.9); }
    100% { box-shadow: 0 0 8px rgba(250, 204, 21, 0.7); }
}

.name-rainbow-anim {
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #06b6d4, #8b5cf6, #ef4444) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    animation: rainbowScroll 3s linear infinite !important;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.4));
}

@keyframes rainbowScroll {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.name-neon-green {
    background: linear-gradient(135deg, #10b981, #22c55e, #86efac) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.6));
}

.vip-badge-pro {
    background: linear-gradient(135deg, #312e81, #4338ca);
    color: #e0e7ff;
    border: 1px solid #818cf8;
    box-shadow: 0 1px 6px rgba(67, 56, 202, 0.5);
}

.vip-badge-ejderha {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    color: #fef08a;
    border: 1px solid #f87171;
    box-shadow: 0 1px 6px rgba(185, 28, 28, 0.5);
}

/* ========================================================
   AVATAR DEĞİŞTİRME MODALI STİLLERİ
   ======================================================== */
.avatar-modal-card {
    max-width: 440px;
}

.avatar-current-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0 16px 0;
}

.avatar-current-badge {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
}

.avatar-preview-large {
    font-size: 44px;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-picker-section {
    margin-bottom: 12px;
}

.avatar-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

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

.avatar-picker-option {
    aspect-ratio: 1;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.avatar-picker-option:hover {
    border-color: var(--brand-red);
    background: #fff5f5;
    transform: scale(1.12);
}

.avatar-picker-option.selected {
    border-color: #e60012;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.35);
    transform: scale(1.14);
}

.avatar-picker-option.vip-opt {
    border-color: #f59e0b;
    background: #fefce8;
}

.avatar-picker-option.vip-opt.selected {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.45);
}

/* ========================================================
   HAREKET ERİŞİLEBİLİRLİK: @media (prefers-reduced-motion)
   Görsel hassasiyeti olan kullanıcılar için animasyonları sakinleştir
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .flying-coin-pill,
    .shop-badge-pulse,
    .card-play-hover,
    .empty-fav-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================================
   KULLANICI AVATAR DAİRESİ: Frame efektleri için ideal görünüm
   ======================================================== */
.user-avatar-circle {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb tıklanabilir bağlantı stilleri */
.player-breadcrumb a[role="button"] {
    cursor: pointer;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: color 0.15s ease;
}

.player-breadcrumb a[role="button"]:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

.player-breadcrumb a[role="button"]:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================================
   LAZY LOAD TETİKLEYİCİSİ (YÜKSEK PERFORMANS)
   ======================================================== */
.lazy-load-sentinel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0 32px 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.lazy-load-sentinel span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 22px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--brand-red);
    animation: sentinelPulse 1.5s ease-in-out infinite alternate;
}

@keyframes sentinelPulse {
    0% { transform: scale(0.98); opacity: 0.85; }
    100% { transform: scale(1.02); opacity: 1; }
}
