/* games-style.css - Premium Standalone Game Hub specific styles */

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

:root {
    --neon-blue: #00f0ff;
    --neon-pink: #ff007f;
    --neon-purple: #9d4edd;
    --arcade-font: 'Press Start 2P', monospace;
    --arcade-glow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
    --glass-bg: rgba(13, 9, 28, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Reset / Page Settings */
body.page-arcade-lobby {
    background: #060312 !important; /* Premium Midnight Dark theme */
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.glow-accent {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 12s ease-in-out infinite alternate;
}
.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--neon-blue);
}
.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: var(--neon-pink);
    animation-delay: -3s;
}
.glow-3 {
    top: 35%;
    left: 45%;
    width: 500px;
    height: 500px;
    background: var(--neon-purple);
    animation-delay: -6s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.15) translate(40px, -20px); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-30px, 30px); opacity: 0.14; }
}

/* Standalone Arcade Navbar */
.arcade-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3%;
    background: rgba(8, 5, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.arcade-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arcade-logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    animation: pulseIcon 2s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
    from { transform: scale(1); filter: drop-shadow(0 0 8px var(--neon-blue)); }
    to { transform: scale(1.08); filter: drop-shadow(0 0 18px var(--neon-pink)); }
}

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

.arcade-logo-text .logo-title {
    font-family: var(--arcade-font);
    font-size: 1.1rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.arcade-logo-text .logo-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 2px;
}

.arcade-navbar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Volume Slider HUD */
.volume-control-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.volume-control-badge input[type=range] {
    width: 70px;
    accent-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.15);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

/* Premium Exit Button */
.btn-arcade-exit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-arcade-exit:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-arcade-exit .exit-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-arcade-exit:hover .exit-icon {
    transform: translateX(-4px);
}

.arcade-theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.arcade-theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Layout Wrapper */
.arcade-layout-wrapper {
    display: flex;
    max-width: 1440px;
    margin: 2rem auto;
    padding: 0 4%;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

.arcade-main-content {
    flex: 1.1;
    display: flex;
    flex-direction: column;
}

.arcade-sidebar {
    flex: 0.45;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Hide scrollbar on sidebar */
.arcade-sidebar::-webkit-scrollbar {
    width: 0px;
}

/* Custom Header adjustments */
.arcade-hero-header {
    margin-bottom: 2rem;
    text-align: left;
}

.arcade-hero-header .games-title {
    font-family: var(--arcade-font);
    font-size: 1.8rem !important;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    margin-bottom: 0.5rem !important;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.25));
}

.arcade-hero-header .games-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* Games Grid Selection */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

/* Game Cards */
.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Dynamic theme borders on hover */
.game-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 15px 40px var(--theme-glow), inset 0 0 15px rgba(255,255,255,0.03);
    transform: translateY(-8px) scale(1.015);
}

.game-card .card-image-side {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.game-card:hover .card-image-side {
    filter: brightness(1.15);
}

.game-float-icon {
    font-size: 5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.game-card:hover .game-float-icon {
    transform: scale(1.18) translateY(-5px);
}

.game-float-icon-spin {
    animation: spinIcon 8s linear infinite;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-card .card-content-side {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #fff;
    transition: color 0.3s;
}

.game-card:hover h3 {
    color: var(--theme-color);
}

.game-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    z-index: 5;
    transition: all 0.3s;
}

.game-card:hover .game-badge {
    border-color: var(--theme-color);
    color: var(--theme-color);
    background: rgba(255, 255, 255, 0.02);
}

/* Featured Hero Game Card layout */
.games-grid .card-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    background: linear-gradient(135deg, rgba(16, 12, 38, 0.55), rgba(8, 5, 18, 0.55));
    border: 1px solid rgba(255, 0, 127, 0.2);
}

.games-grid .card-featured .featured-image-side {
    flex: 1.1;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
    position: relative;
    min-height: 250px;
}

.games-grid .card-featured .card-content-side {
    flex: 1;
    justify-content: center;
}

.retro-title-badge {
    position: absolute;
    bottom: 20px;
    font-family: var(--arcade-font);
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
    animation: pulseText 1.5s ease-in-out infinite alternate;
}

@keyframes pulseText {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.tech-stack-row {
    margin-bottom: 1.25rem;
}

.tech-stack-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.4rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-item {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Arcade Buttons styling */
.btn-arcade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1.5px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: fit-content;
}

.game-card:hover .btn-arcade {
    background: var(--theme-color);
    color: #000;
    border-color: var(--theme-color);
    box-shadow: 0 0 15px var(--theme-glow);
    transform: translateY(-2px);
}

/* Force featured play button to glow pink on hover */
.game-card:hover .btn-arcade-pink {
    background: var(--neon-pink);
    color: #fff;
    border-color: var(--neon-pink);
}

.play-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.game-card:hover .play-arrow {
    transform: translateX(4px);
}

/* Sidebar Dashboard Cards */
.stats-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* User Profile Stats */
.user-status-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-glow {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.1);
    animation: avatarPulse 3s ease-in-out infinite alternate;
}

@keyframes avatarPulse {
    from { box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.15), 0 0 5px rgba(0, 240, 255, 0.1); }
    to { box-shadow: inset 0 0 20px rgba(255, 0, 127, 0.25), 0 0 12px rgba(255, 0, 127, 0.2); }
}

.user-level-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 4px 0;
}

.stats-card .stats-number {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    margin: 0;
}

.highlight-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}
.highlight-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.25);
}

.stats-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.25rem 0;
}

.quick-stats-row {
    display: flex;
    justify-content: space-between;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.quick-stat-val {
    font-family: var(--arcade-font);
    font-size: 1rem;
    color: #fff;
}

/* Scoreboard Card list styling */
.scoreboard-card h3, .recent-plays-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.score-item:hover {
    background: rgba(255,255,255,0.04);
    transform: translateX(4px);
}

.score-name {
    font-weight: 500;
    color: #cbd5e1;
}

.score-val {
    font-family: var(--arcade-font);
    font-size: 0.72rem;
    color: var(--neon-blue);
}

/* Place highlights in high scores list */
.score-list .score-item:nth-child(1) .score-val {
    color: gold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
.score-list .score-item:nth-child(2) .score-val {
    color: silver;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}
.score-list .score-item:nth-child(3) .score-val {
    color: #cd7f32; /* Bronze */
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
}

/* Empty states */
.recent-empty-state {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 0;
}

/* Footer structure */
.arcade-footer {
    padding: 2rem 4% 3rem 4%;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 4rem;
}

.footer-divider {
    height: 1px;
    background: var(--glass-border);
    max-width: 1440px;
    margin: 0 auto 1.5rem auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.arcade-footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.arcade-footer-logo:hover {
    opacity: 1;
}

.footer-content p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
}

/* --- LIGHT THEME STYLE OVERRIDES --- */
html.light-theme {
    --glass-bg: rgba(248, 250, 252, 0.85);
    --glass-border: rgba(15, 23, 42, 0.08);
}

html.light-theme body.page-arcade-lobby {
    background: #f1f5f9 !important;
    color: #0f172a;
}

html.light-theme .glow-accent {
    opacity: 0.08;
    filter: blur(160px);
}

html.light-theme .arcade-navbar {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--glass-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

html.light-theme .arcade-logo-text .logo-title {
    background: linear-gradient(135deg, #1e3a8a, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

html.light-theme .arcade-logo-text .logo-subtitle {
    color: #64748b;
}

html.light-theme .volume-control-badge {
    background: rgba(0, 0, 0, 0.03);
}

html.light-theme .btn-arcade-exit {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

html.light-theme .btn-arcade-exit:hover {
    background: #1e293b;
    border-color: #1e293b;
}

html.light-theme .arcade-theme-toggle {
    background: rgba(0, 0, 0, 0.03);
    color: #000;
}

html.light-theme .arcade-hero-header .games-title {
    background: linear-gradient(135deg, #1e3a8a, #7e22ce) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: none;
}

html.light-theme .arcade-hero-header .games-subtitle {
    color: #64748b;
}

html.light-theme .game-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

html.light-theme .game-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html.light-theme .game-card h3 {
    color: #0f172a;
}

html.light-theme .game-card p {
    color: #475569;
}

html.light-theme .game-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--glass-border);
    color: #475569;
}

html.light-theme .tech-stack-item {
    background: rgba(0, 0, 0, 0.02);
    color: #64748b;
}

html.light-theme .btn-arcade {
    background: rgba(0, 0, 0, 0.02);
    color: #0f172a;
    border-color: var(--glass-border);
}

html.light-theme .game-card:hover .btn-arcade {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
    box-shadow: none;
}

html.light-theme .stats-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

html.light-theme .quick-stat-val {
    color: #0f172a;
}

html.light-theme .scoreboard-card h3, html.light-theme .recent-plays-card h3 {
    color: #0f172a;
}

html.light-theme .score-item {
    background: rgba(0, 0, 0, 0.01);
}

html.light-theme .score-name {
    color: #334155;
}

html.light-theme .score-val {
    color: #2563eb;
}

/* --- SKETCH CRAFT THEME STYLE OVERRIDES --- */
html.theme-sketch-craft {
    --glass-bg: #fefce8;
    --glass-border: #333333;
}

html.theme-sketch-craft body.page-arcade-lobby {
    background: #fefce8 !important;
    color: #333333;
}

html.theme-sketch-craft .glow-accent {
    display: none;
}

html.theme-sketch-craft .arcade-navbar {
    background: #fefce8;
    border-bottom: 3px solid #333;
    box-shadow: 4px 4px 0px #333;
}

html.theme-sketch-craft .arcade-logo-text .logo-title {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #333;
    text-shadow: none;
}

html.theme-sketch-craft .arcade-logo-text .logo-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    letter-spacing: 1px;
}

html.theme-sketch-craft .volume-control-badge {
    border: 2px solid #333;
    border-radius: 0;
    box-shadow: 2px 2px 0 #333;
}

html.theme-sketch-craft .btn-arcade-exit {
    border: 2px solid #333;
    border-radius: 0;
    box-shadow: 3px 3px 0 #333;
    color: #333;
    font-family: 'Caveat', cursive;
    font-weight: bold;
    font-size: 1.05rem;
    background: transparent;
}

html.theme-sketch-craft .btn-arcade-exit:hover {
    background: #fef08a;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #333;
}

html.theme-sketch-craft .arcade-theme-toggle {
    border: 2px solid #333;
    border-radius: 0;
    box-shadow: 2px 2px 0 #333;
    color: #333;
}

html.theme-sketch-craft .arcade-hero-header .games-title {
    font-family: 'Caveat', cursive;
    font-size: 3.2rem !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #333 !important;
    border-bottom: 2px dashed #333;
    padding-bottom: 10px;
    filter: none;
}

html.theme-sketch-craft .arcade-hero-header .games-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #555;
}

html.theme-sketch-craft .game-card {
    border: 3px solid #333 !important;
    border-radius: 0px !important;
    box-shadow: 6px 6px 0px #333 !important;
    background: #fefce8 !important;
}

html.theme-sketch-craft .game-card:hover {
    transform: translate(-3px, -3px) !important;
    box-shadow: 9px 9px 0px #333 !important;
}

html.theme-sketch-craft .game-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.9rem;
    color: #333;
}

html.theme-sketch-craft .game-card p {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #444;
}

html.theme-sketch-craft .game-badge {
    border: 2px solid #333;
    border-radius: 0;
    background: #fef08a;
    color: #333;
    font-family: 'Caveat', cursive;
    font-weight: bold;
    font-size: 0.9rem;
}

html.theme-sketch-craft .tech-stack-item {
    border: 1px dashed #333;
    border-radius: 0;
    background: transparent;
    color: #555;
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
}

html.theme-sketch-craft .btn-arcade {
    border: 2px solid #333;
    color: #333;
    background: transparent;
    border-radius: 0px;
    box-shadow: 3px 3px 0px #333;
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
}

html.theme-sketch-craft .game-card:hover .btn-arcade {
    background: #eab308;
    color: #000;
    box-shadow: 1px 1px 0px #333;
    transform: translate(2px, 2px);
}

html.theme-sketch-craft .stats-card {
    border: 3px solid #333;
    border-radius: 0px;
    box-shadow: 6px 6px 0px #333;
    background: #fefce8;
    color: #333;
}

html.theme-sketch-craft .stats-card .stats-number {
    font-family: 'Caveat', cursive;
    font-size: 1.9rem;
    color: #333;
}

html.theme-sketch-craft .quick-stat-val {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #1d4ed8;
}

html.theme-sketch-craft .scoreboard-card h3, html.theme-sketch-craft .recent-plays-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.7rem;
    color: #333;
}

html.theme-sketch-craft .score-item {
    border: 1px dashed #333;
    border-radius: 0;
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
}

html.theme-sketch-craft .score-name {
    color: #333;
}

html.theme-sketch-craft .score-val {
    font-family: inherit;
    font-weight: bold;
    color: #2563eb;
}

/* RESPONSIVE LAYOUT STYLING */
@media (max-width: 1100px) {
    .arcade-layout-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    .arcade-sidebar {
        position: relative;
        top: auto;
        height: auto;
        overflow-y: visible;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .arcade-navbar {
        padding: 1rem 4%;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
    .arcade-logo-container {
        justify-content: center;
    }
    .arcade-navbar-controls {
        justify-content: space-between;
    }
    .games-grid .card-featured {
        flex-direction: column;
    }
    .games-grid .card-featured .featured-image-side {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .games-title {
        font-size: 1.5rem !important;
    }
}

/* Sidebar Switcher (Vertical Viewport-Fixed Left Sidebar for Game Subpages) */
body.page-games {
    background: #060312 !important;
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden; /* Prevent global scrollbar */
    position: relative;
}

body.page-games main {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.game-workspace-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Expand main container to full screen when sidebar is present */
main:has(.games-sidebar) {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.games-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: rgba(13, 13, 13, 0.92); /* Premium opaque dark glass background */
    border-right: 1px solid var(--glass-border);
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    padding: 2rem 1.5rem 1.5rem 1.5rem; /* Clears top nicely without top navbar */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 8px 0 30px rgba(0,0,0,0.5), 0 0 15px rgba(0, 240, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    white-space: nowrap;
    opacity: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.65rem 0.65rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-item.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.sidebar-item-icon {
    font-size: 1.35rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
}

.sidebar-item-text {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
}

.game-container-layout {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding-left: 250px; /* Offset for docked 250px left sidebar */
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 !important;
}

.game-screen-wrapper {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000;
}

.game-screen-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

/* Sidebar divider line separating games from lobby link */
.sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0.5rem;
    opacity: 0.6;
}

html.theme-sketch-craft .sidebar-divider {
    background: #333333 !important;
    opacity: 0.3;
}

/* Lobby link at the bottom of sidebar */
.sidebar-item-lobby {
    margin-top: auto;
    color: var(--text-muted) !important;
    border-color: transparent !important;
    opacity: 0.7;
}

.sidebar-item-lobby:hover {
    opacity: 1;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Sketch Craft Theme Support */
html.theme-sketch-craft .games-sidebar {
    background: #fefce8 !important;
    border: none !important;
    border-right: 3px solid #333333 !important;
    border-radius: 0 !important;
    box-shadow: 4px 0 0px #333333 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.theme-sketch-craft .sidebar-title {
    font-family: 'Caveat', cursive !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: #333333 !important;
}

html.theme-sketch-craft .sidebar-item {
    font-family: 'Caveat', cursive !important;
    font-weight: bold !important;
    font-size: 1.15rem !important;
    color: #333333 !important;
}

html.theme-sketch-craft .sidebar-item:hover {
    background: #fef08a !important;
    border-color: #333333 !important;
}

html.theme-sketch-craft .sidebar-item.active {
    background: #eab308 !important;
    border-color: #333333 !important;
    box-shadow: 2px 2px 0px #333333 !important;
}

/* Mobile responsive switcher layout */
@media (max-width: 900px) {
    main:has(.games-sidebar) {
        padding-right: 0 !important;
    }

    .games-sidebar {
        position: fixed;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 64px;
        background: var(--glass-bg);
        border: none;
        border-top: 1px solid var(--glass-border);
        border-radius: 0;
        padding: 0.5rem 1rem;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        gap: 0.8rem;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
        z-index: 9999;
    }
    
    .sidebar-title {
        display: none !important;
    }
    
    .sidebar-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .sidebar-item-text {
        display: inline !important;
        opacity: 1 !important;
    }
    
    .game-container-layout {
        padding-left: 0 !important;
        padding-bottom: 80px; /* Leave room for bottom bar */
    }

    html.theme-sketch-craft .games-sidebar {
        background: #fefce8 !important;
        border-right: none !important;
        border-top: 3px solid #333333 !important;
        box-shadow: 0 -4px 0px #333333 !important;
        border-radius: 0 !important;
    }
}
