:root {
    --bg-main: linear-gradient(135deg, #0a0a0f 0%, #0f0a1f 45%, #050510 100%);
    --bg-secondary: radial-gradient(circle at top left, rgba(81, 106, 255, 0.2), transparent 30%), radial-gradient(circle at bottom right, rgba(255, 0, 178, 0.16), transparent 30%);
    --surface-glass: rgba(255, 255, 255, 0.06);
    --surface-glass-strong: rgba(14, 18, 38, 0.72);
    --surface-glass-soft: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.12);
    --surface-border-strong: rgba(132, 161, 255, 0.4);
    --text-main: #f4f7ff;
    --text-muted: #9ca8cb;
    --text-soft: #7983a7;
    --neon-blue: #45d0ff;
    --neon-purple: #8b5dff;
    --neon-pink: #ff4bd8;
    --neon-green: #6dffb3;
    --neon-red: #ff5577;
    --button-grad: linear-gradient(135deg, #2f56ff 0%, #8b5dff 50%, #ff4bd8 100%);
    --button-alt: linear-gradient(135deg, rgba(69, 208, 255, 0.16), rgba(139, 93, 255, 0.16));
    --card-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glow-blue: 0 0 0 1px rgba(69, 208, 255, 0.2), 0 0 25px rgba(69, 208, 255, 0.18);
    --glow-purple: 0 0 0 1px rgba(139, 93, 255, 0.24), 0 0 24px rgba(139, 93, 255, 0.22);
    --glow-pink: 0 0 0 1px rgba(255, 75, 216, 0.22), 0 0 22px rgba(255, 75, 216, 0.18);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -4;
}

body::before {
    background: var(--bg-secondary);
}

body::after {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.5px, transparent 0.5px);
    background-size: 22px 22px;
    opacity: 0.12;
    mix-blend-mode: soft-light;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.app-backdrop,
.admin-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -3;
}

.glow-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.32;
    animation: driftBlob 14s ease-in-out infinite alternate;
}

.glow-blob.blob-1 {
    width: 320px;
    height: 320px;
    top: 8%;
    left: -80px;
    background: rgba(69, 208, 255, 0.38);
}

.glow-blob.blob-2 {
    width: 360px;
    height: 360px;
    top: 18%;
    right: -80px;
    background: rgba(139, 93, 255, 0.28);
    animation-duration: 17s;
}

.glow-blob.blob-3 {
    width: 280px;
    height: 280px;
    bottom: 8%;
    left: 18%;
    background: rgba(255, 75, 216, 0.22);
    animation-duration: 19s;
}

.glow-blob.blob-4 {
    width: 260px;
    height: 260px;
    bottom: -40px;
    right: 12%;
    background: rgba(109, 255, 179, 0.16);
    animation-duration: 12s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Fg%20fill='none'%20fill-rule='evenodd'%3E%3Fg%20fill='%23ffffff'%20fill-opacity='0.45'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='70' cy='80' r='1'/%3E%3Ccircle cx='130' cy='30' r='1'/%3E%3Ccircle cx='150' cy='130' r='1'/%3E%3Ccircle cx='35' cy='145' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.font-display {
    font-family: 'Sora', sans-serif;
}

.text-muted-soft,
.text-secondary,
.text-body-secondary,
.small.text-secondary {
    color: var(--text-muted) !important;
}

.page-shell {
    position: relative;
}

.page-container {
    max-width: 1240px;
}

.page-enter {
    animation: pageEnter 0.7s ease both;
}

.glass-nav {
    background: rgba(8, 10, 22, 0.62);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.22), rgba(139, 93, 255, 0.3));
    box-shadow: var(--glow-blue);
}

.nav-link {
    color: var(--text-muted) !important;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 16px rgba(69, 208, 255, 0.55);
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.player-avatar {
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(69, 208, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.player-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.22), rgba(139, 93, 255, 0.3));
}

.glass-panel,
.glass-card,
.game-arena,
.admin-panel,
.ranking-card,
.leader-card,
.metric-card,
.form-shell,
.glass-alert,
.spotlight-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(18px);
    box-shadow: var(--card-shadow);
}

.glass-card::before,
.game-arena::before,
.admin-panel::before,
.ranking-card::before,
.metric-card::before,
.form-shell::before,
.spotlight-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.glass-hover,
.glass-card,
.ranking-card,
.leader-card,
.metric-card,
.game-card,
.admin-panel,
.game-tile,
.status-pill,
.podium-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.glass-hover:hover,
.glass-card:hover,
.ranking-card:hover,
.leader-card:hover,
.metric-card:hover,
.game-card:hover,
.admin-panel:hover,
.podium-card:hover {
    transform: translateY(-6px);
    border-color: rgba(69, 208, 255, 0.36);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42), 0 0 36px rgba(69, 208, 255, 0.12);
}

.hero-panel {
    padding: 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(22, 31, 72, 0.68), rgba(12, 14, 27, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: var(--card-shadow);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #dce4ff;
    box-shadow: var(--glow-purple);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.04;
    font-size: clamp(2.6rem, 5vw, 4.9rem);
}

.hero-subtitle,
.section-copy {
    color: var(--text-muted);
    max-width: 60ch;
}

.btn-neon,
.btn-ghost-neon,
.btn-admin,
.btn-chip,
.clay-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-neon,
.clay-button.is-accent {
    color: #fff;
    background: var(--button-grad);
    box-shadow: 0 12px 28px rgba(59, 78, 255, 0.32), 0 0 26px rgba(139, 93, 255, 0.22);
}

.btn-ghost-neon,
.clay-button {
    color: var(--text-main);
    background: var(--button-alt);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 24px rgba(69, 208, 255, 0.08);
}

.btn-neon:hover,
.btn-ghost-neon:hover,
.btn-admin:hover,
.btn-chip:hover,
.clay-button:hover {
    transform: scale(1.05);
}

.btn-neon::after,
.btn-ghost-neon::after,
.clay-button::after {
    content: '';
    position: absolute;
    inset: auto;
    width: 180px;
    height: 180px;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0;
    pointer-events: none;
}

.btn-neon.is-rippling::after,
.btn-ghost-neon.is-rippling::after,
.clay-button.is-rippling::after {
    animation: ripplePulse 0.6s ease;
}

.form-label {
    color: #dfe8ff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.glass-input,
.clay-input,
.form-control,
.form-select,
textarea.form-control {
    background: rgba(7, 10, 24, 0.7) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.34) !important;
    padding: 0.95rem 1rem;
}

.glass-input:focus,
.clay-input:focus,
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(69, 208, 255, 0.45) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 208, 255, 0.14), 0 0 18px rgba(69, 208, 255, 0.12) !important;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.form-check-input:checked {
    background-color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 14px rgba(69, 208, 255, 0.28);
}

.status-pill,
.badge {
    border-radius: 999px !important;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main) !important;
}

.status-pill.status-win,
.badge.text-bg-success {
    background: rgba(109, 255, 179, 0.14) !important;
    color: #baffd7 !important;
    box-shadow: 0 0 18px rgba(109, 255, 179, 0.12);
}

.status-pill.status-loss,
.badge.text-bg-danger {
    background: rgba(255, 85, 119, 0.14) !important;
    color: #ffc2cf !important;
    box-shadow: 0 0 18px rgba(255, 85, 119, 0.1);
}

.status-pill.status-draw,
.badge.text-bg-warning,
.badge.text-bg-dark {
    background: rgba(139, 93, 255, 0.14) !important;
    color: #dfd0ff !important;
    box-shadow: 0 0 18px rgba(139, 93, 255, 0.1);
}

.hero-badge {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #edf3ff;
    box-shadow: var(--glow-blue);
}

.launcher-grid,
.stats-grid,
.admin-grid,
.rank-grid {
    display: grid;
    gap: 1.25rem;
}

.launcher-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.game-card {
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(19, 28, 64, 0.72), rgba(8, 10, 21, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--card-shadow);
}

.game-card .game-icon,
.avatar-orb {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.16), rgba(255, 75, 216, 0.14));
    box-shadow: var(--glow-blue);
}

.game-card .game-hover-meta {
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}

.game-card:hover .game-hover-meta {
    opacity: 1;
    transform: translateY(0);
}

.spotlight-panel {
    padding: 1.5rem;
    background: linear-gradient(160deg, rgba(18, 24, 50, 0.78), rgba(14, 18, 38, 0.55));
}

.game-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
}

.game-arena {
    padding: 2rem;
    background: linear-gradient(160deg, rgba(16, 18, 39, 0.82), rgba(7, 11, 26, 0.64));
}

.game-arena.is-win {
    box-shadow: 0 0 0 1px rgba(109, 255, 179, 0.22), 0 0 40px rgba(109, 255, 179, 0.18), var(--card-shadow);
}

.game-arena.is-loss {
    box-shadow: 0 0 0 1px rgba(255, 85, 119, 0.22), 0 0 40px rgba(255, 85, 119, 0.16), var(--card-shadow);
}

.game-arena.is-draw {
    box-shadow: 0 0 0 1px rgba(139, 93, 255, 0.22), 0 0 40px rgba(139, 93, 255, 0.14), var(--card-shadow);
}

.game-grid {
    display: grid;
    gap: 1rem;
}

.game-grid.ttt,
.game-grid.sos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-tile {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 24px rgba(69, 208, 255, 0.08);
}

.game-tile:hover:not(:disabled),
.game-tile.is-ai-move {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(69, 208, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(69, 208, 255, 0.2), 0 0 26px rgba(69, 208, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.game-tile.is-win-flash {
    animation: winFlash 0.8s ease;
}

.game-side-stack {
    display: grid;
    gap: 1rem;
}

.mini-panel {
    padding: 1.25rem;
}

.score-tile {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-strip,
.history-list,
.request-list,
.admin-list {
    display: grid;
    gap: 0.9rem;
}

.leader-card,
.list-card,
.request-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-shell {
    display: grid;
    gap: 1.5rem;
}

.podium-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.podium-card {
    padding: 1.3rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    text-align: center;
}

.podium-card.rank-1 {
    box-shadow: 0 0 28px rgba(255, 214, 67, 0.2);
    border-color: rgba(255, 214, 67, 0.28);
}

.podium-card.rank-2 {
    box-shadow: 0 0 24px rgba(69, 208, 255, 0.16);
}

.podium-card.rank-3 {
    box-shadow: 0 0 24px rgba(255, 75, 216, 0.16);
}

.rank-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.rank-badge,
.avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.16), rgba(139, 93, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--glow-purple);
    font-weight: 800;
}

.admin-shell {
    background: linear-gradient(135deg, #090a12 0%, #10162b 50%, #06060d 100%);
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    width: 290px;
    padding: 1.4rem;
    background: rgba(7, 10, 24, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-link {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: transparent;
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.16), rgba(139, 93, 255, 0.16));
    box-shadow: var(--glow-blue);
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: rgba(6, 9, 22, 0.62);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-section {
    padding: 1.5rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1.2rem;
    min-height: 150px;
}

.admin-list-card,
.management-card {
    padding: 1.3rem;
}

.admin-surface {
    background: rgba(7, 10, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--card-shadow);
}

.admin-table-grid,
.management-stack {
    display: grid;
    gap: 1rem;
}

.management-row {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(69, 208, 255, 0.08);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-color: var(--text-main);
    --bs-table-striped-color: var(--text-main);
    --bs-table-hover-color: var(--text-main);
    margin-bottom: 0;
}

.admin-table th {
    color: #dce4ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 700;
    border-bottom-width: 1px;
}

.admin-table th,
.admin-table td {
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.game-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 1.25rem;
}

.game-launch-card {
    display: flex;
    align-items: baseline;
    justify-content: start;
    aspect-ratio: 1;
    padding: 1rem;
    border-radius: 26px;
}

.game-launch-icon {
    width: min(88px, 100%);
    height: min(88px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.game-launch-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.game-launch-icon i {
    font-size: 2.5rem;
    color: var(--text-main);
}

.game-frame-shell {
    position: relative;
}

.game-frame-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

/* .game-frame {
    min-height: min(80vh, 900px);
} */

.game-frame iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.game-frame-shell.is-fullscreen {
    padding: 0;
    border-radius: 0;
    background: #000;
}

.game-frame-shell.is-fullscreen .game-frame {
    min-height: 100vh;
    border-radius: 0;
}

.game-frame-shell.is-fullscreen .game-frame-actions {
    top: 1.25rem;
    right: 1.25rem;
}

@media (max-width: 767.98px) {
    .game-launch-grid {
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
        gap: 1rem;
    }

    .game-frame {
        min-height: 70vh;
    }
}

.glass-alert.alert,
.alert {
    background: rgba(15, 23, 45, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px !important;
}

.page-item.active .page-link,
.page-link:hover {
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.18), rgba(139, 93, 255, 0.2));
    border-color: rgba(69, 208, 255, 0.25);
    color: #fff;
}

.modal-content {
    background: rgba(7, 10, 24, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46), 0 0 28px rgba(139, 93, 255, 0.16);
}

.modal {
    z-index: 1080;
}

.modal-backdrop {
    z-index: 1070;
}

.ads-placeholder {
    padding: 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(69, 208, 255, 0.08), rgba(255, 75, 216, 0.08));
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.game-banner-space {
    margin-top: 1.5rem;
}

.page-banner-shell {
    margin-bottom: 1.5rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ripplePulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes driftBlob {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(40px, -30px, 0) scale(1.08);
    }
}

@keyframes winFlash {
    0% {
        box-shadow: 0 0 0 rgba(109, 255, 179, 0);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(109, 255, 179, 0.3), 0 0 32px rgba(109, 255, 179, 0.34);
    }

    100% {
        box-shadow: 0 0 0 rgba(109, 255, 179, 0);
    }
}

@media (max-width: 1199px) {

    .game-page-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .admin-layout {
        display: block !important;
    }

    .admin-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 767px) {

    .hero-panel,
    .game-arena,
    .glass-card,
    .admin-panel,
    .metric-card,
    .spotlight-panel {
        padding: 1.25rem;
    }

    .podium-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: auto 1fr;
    }
}