/* ========================================================
   WASM ARCADE // Poki & CrazyGames Cyberpunk Design System
   ======================================================== */
:root {
    --bg-dark: #070913;
    --bg-surface: #0e1224;
    --bg-card: #151a35;
    --bg-card-hover: #1c2246;
    --border-subtle: #20274c;
    --border-glow: #00f3ff;
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff007f;
    --neon-yellow: #fffc00;
    --neon-green: #00ff88;
    --neon-orange: #ff7700;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Orbitron', monospace, sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 127, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #070913 0%, #0a0d1d 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ================= TOP NAVBAR ================= */
.navbar {
    background: rgba(14, 18, 36, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.brand-bolt {
    font-size: 1.85rem;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.8));
    animation: boltPulse 2s infinite ease-in-out;
}

@keyframes boltPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(0, 243, 255, 1)); }
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-text .highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.7);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Player Profile & Nickname Input */
.player-profile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 0.3rem 0.85rem 0.3rem 0.5rem;
    transition: border-color 0.2s;
}

.player-profile:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

.player-avatar {
    font-size: 1.25rem;
    cursor: pointer;
}

.player-profile input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    width: 100px;
    outline: none;
}

.edit-icon {
    font-size: 0.75rem;
    opacity: 0.5;
}

.btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.btn-circle:hover {
    transform: scale(1.08);
    border-color: var(--neon-cyan);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-green);
}

.glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

/* ================= PORTAL MAIN ================= */
.portal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 1.75rem;
}

/* ================= HERO BANNER ================= */
.hero-banner {
    background: linear-gradient(135deg, rgba(21, 26, 53, 0.9) 0%, rgba(14, 18, 36, 0.95) 100%);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin-bottom: 2.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    z-index: 1;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    background: rgba(255, 252, 0, 0.1);
    border: 1px solid rgba(255, 252, 0, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-graphic {
    font-size: 8rem;
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.5));
    animation: floatHero 3s infinite ease-in-out;
}

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

/* Hero Buttons */
.btn-hero {
    background: linear-gradient(135deg, var(--neon-cyan), #0088ff);
    color: #040814;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 0.95rem 1.85rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 243, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.18s, box-shadow 0.18s;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 243, 255, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s, border-color 0.15s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-hero-ghost {
    background: transparent;
    border: 1px dashed var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.95rem 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s, border-color 0.15s;
}

.btn-hero-ghost:hover {
    color: #fff;
    border-color: #fff;
}

/* ================= CATALOG SECTION ================= */
.catalog-heading {
    margin-bottom: 1.5rem;
}

.catalog-heading h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.catalog-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.arcade-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.arcade-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.2);
}

.arcade-card.active {
    border-color: rgba(0, 243, 255, 0.6);
}

.card-art {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pong-bg {
    background: linear-gradient(135deg, #0c1a3a, #11295b);
}

.tron-bg {
    background: linear-gradient(135deg, #1c0e2c, #3a1555);
}

.tanks-bg {
    background: linear-gradient(135deg, #0e241b, #194635);
}

.card-art-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s;
}

.arcade-card:hover .card-art-icon {
    transform: scale(1.15) rotate(4deg);
}

.card-online-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--neon-green);
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.card-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-title-row h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 1px;
}

.card-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.card-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-btn-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.6rem;
}

.btn-card-quick {
    background: linear-gradient(135deg, var(--neon-cyan), #0099ff);
    color: #040814;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
    transition: transform 0.15s;
}

.btn-card-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 243, 255, 0.5);
}

.btn-card-more {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.btn-card-more:hover {
    border-color: #fff;
}

/* ================= MODALS & RADAR OVERLAY ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 14, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.radar-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Radar Sonar Animation */
.radar-animation {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(0, 243, 255, 0.4);
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.circle-1 { width: 45px; height: 45px; }
.circle-2 { width: 95px; height: 95px; }
.circle-3 { width: 140px; height: 140px; }

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform-origin: top left;
    background: conic-gradient(from 0deg, rgba(0, 243, 255, 0.6) 0deg, transparent 60deg);
    animation: sweep 2s linear infinite;
}

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

.radar-center-blip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 1));
}

.radar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.radar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Versus Card (Displayed when Match is Found) */
.versus-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    animation: scaleUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.player-vs-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vs-avatar {
    font-size: 3rem;
}

.player-vs-box strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
}

.vs-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--neon-magenta);
}

.vs-countdown {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-yellow);
    animation: pulseNum 1s infinite;
}

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

/* Modal Card */
.modal-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .modal-split { grid-template-columns: 1fr; }
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-box h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.modal-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

.join-row {
    display: flex;
    gap: 0.5rem;
}

.join-row input {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    width: 130px;
    text-align: center;
    outline: none;
}

.join-row input:focus {
    border-color: var(--neon-magenta);
}

/* ================= ACTIVE GAME THEATER VIEW ================= */
.game-viewport-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.arena-hud {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.hud-group-left, .hud-group-center, .hud-group-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hud {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.btn-hud:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.room-pill {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--neon-yellow);
}

.ping-pill {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.emoji-tray {
    display: flex;
    gap: 0.2rem;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.1rem 0.25rem;
    transition: transform 0.15s;
}

.emoji-btn:hover {
    transform: scale(1.3);
}

/* Canvas Viewport */
.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4 / 3;
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    background: #000;
    touch-action: none;
}

#game-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    touch-action: none;
}

.floating-emojis-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    bottom: 20px;
    font-size: 2.75rem;
    animation: floatUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    15% { opacity: 1; transform: translateY(-40px) scale(1.2); }
    85% { opacity: 0.9; transform: translateY(-240px) scale(1); }
    100% { opacity: 0; transform: translateY(-300px) scale(0.8); }
}

/* ================= MOBILE CONTROLS ================= */
.mobile-controls-bar {
    width: 100%;
    max-width: 800px;
    margin-top: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(14, 18, 36, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    touch-action: none;
}

.virtual-gamepad {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.dpad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dpad-horizontal {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dpad-center {
    width: 48px;
    height: 48px;
    background: #090c1a;
    border-radius: 8px;
}

.dpad-btn {
    width: 60px;
    height: 54px;
    background: linear-gradient(180deg, #1f274c, #141933);
    border: 2px solid var(--border-subtle);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    touch-action: none;
}

.dpad-btn:active, .dpad-btn.pressed {
    transform: scale(0.92);
    background: var(--neon-cyan);
    color: #040814;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.8);
}

.action-btn {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1px;
    border: 3px solid #fff;
    cursor: pointer;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-boost {
    background: linear-gradient(135deg, var(--neon-yellow), #ff8800);
    color: #040814;
    box-shadow: 0 0 20px rgba(255, 252, 0, 0.5);
}

.action-fire {
    background: linear-gradient(135deg, var(--neon-magenta), #ff0033);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6);
}

.action-btn:active, .action-btn.pressed {
    transform: scale(0.88);
    box-shadow: 0 0 30px #fff;
}

.pong-buttons-col {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.pong-touch-btn {
    flex: 1;
    padding: 1.25rem;
    background: linear-gradient(180deg, #1f274c, #141933);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    touch-action: none;
}

.pong-touch-btn:active, .pong-touch-btn.pressed {
    background: var(--neon-cyan);
    color: #040814;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
    transform: scale(0.96);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.65rem 1rem;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .status-pill {
        display: none;
    }

    .portal-container {
        padding: 1rem 0.75rem;
    }

    .hero-banner {
        padding: 1.75rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-graphic {
        display: none;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero, .btn-hero-secondary, .btn-hero-ghost {
        width: 100%;
        justify-content: center;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .dpad-btn {
        width: 52px;
        height: 48px;
        font-size: 1.1rem;
    }

    .dpad-center {
        width: 40px;
        height: 40px;
    }

    .action-btn {
        width: 76px;
        height: 76px;
        font-size: 0.85rem;
    }
}
