/* ==========================================================================
   2D CARTOON DESIGN SYSTEM & RETRO ARCADE ROOM - RECETARIO V1 STYLES
   ========================================================================== */

:root {
    /* Brand Palette - Professional Coffee, Caramel & Cream */
    --brand-brown-dark: #362215;      /* Deep roasted coffee brown */
    --brand-cream-bg: #faf7f2;        /* Premium soft warm cream backdrop */

    /* Upgraded Brand Palette */
    --brand-navy: #0B2B40;
    --brand-red: #f34549;
    --brand-pink: #ffa3a5;
    --brand-cyan: #2da6ba;
    --brand-cyan-dark: #1b899b;
    --brand-purple: #8d4b81;
    --brand-yellow: #ebc30b;
    
    --bg-page: #F6F1EA;
    --border-color: #0B2B40;
    --primary-warm: #FFFDF9;
    --shadow-flat-sm: 4px 4px 0px var(--brand-navy);
    --shadow-flat-md: 6px 6px 0px var(--brand-navy);
    --shadow-flat-lg: 10px 10px 0px var(--brand-navy);
    
    /* Typography variables */
    --font-title: 'Chewy', system-ui, sans-serif;
    --font-subtitle: 'Sour Gummy', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    
    /* Transitions */
    --transition-spring: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.15s ease-out;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

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

body {
    font-family: var(--font-body);
    color: var(--brand-navy);
    overflow-x: hidden;
    line-height: 1.4;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #ECE5DC;
    border-left: 3px solid var(--brand-navy);
}
::-webkit-scrollbar-thumb {
    background-color: var(--brand-red);
    border-radius: 20px;
    border: 3px solid #ECE5DC;
}

/* Whimsical Text Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-subtitle);
    font-weight: 700;
}

h1, .logo-text, .section-title, .marquee-badge, .cabinet-marquee {
    font-family: var(--font-title);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font-subtitle);
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-spring);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   COMMON COMPONENT SHAPES (CARTOON / FLASH STYLE)
   ========================================================================== */

.cartoon-block {
    background-color: var(--primary-warm);
    border: 4px solid var(--brand-navy);
    border-radius: 20px;
    box-shadow: var(--shadow-flat-md);
    padding: 24px;
    transition: var(--transition-spring);
}

/* Playful Cartoon Buttons */
.cartoon-btn-primary {
    background-color: var(--brand-red);
    color: #FFF;
    border: 4px solid var(--brand-navy);
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: var(--shadow-flat-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.cartoon-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--brand-navy);
    background-color: var(--brand-pink);
}

.cartoon-btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0px var(--brand-navy);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.main-header {
    height: 100px;
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--brand-brown-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-spring);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    height: 76px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: #a04c38;
    transition: var(--transition-fast);
}

.logo:hover .logo-text {
    color: #D94151;
}

.logo-studio-text {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-brown-dark);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 12px;
    transition: var(--transition-fast);
    box-shadow: none;
}

.nav-item:hover {
    color: #D94151;
    border-color: var(--brand-brown-dark);
    background-color: var(--brand-cream-bg);
}

.nav-item:active {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   RETRO GAME ROOM LAYOUT
   ========================================================================== */

.arcade-room-section {
    padding: 140px 24px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0F202C; /* Dark cyber-arcade navy */
    background-image: 
        radial-gradient(rgba(0, 212, 240, 0.05) 15%, transparent 16%),
        linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    background-size: 32px 32px, 100% 100%;
    position: relative;
    overflow: hidden;
}

/* Ambient floating bakery particles */
.floating-bg-icon {
    position: absolute;
    color: rgba(0, 212, 240, 0.03);
    font-size: 4rem;
    pointer-events: none;
    user-select: none;
    animation: floatSlowly 12s infinite linear;
}
.icon-1 { top: 15%; left: 10%; animation-delay: 0s; color: rgba(255, 75, 104, 0.03); }
.icon-2 { top: 60%; left: 80%; animation-delay: -3s; color: rgba(0, 212, 240, 0.03); }
.icon-3 { top: 75%; left: 15%; animation-delay: -6s; color: rgba(0, 212, 240, 0.03); }
.icon-4 { top: 20%; right: 12%; animation-delay: -9s; color: rgba(255, 75, 104, 0.03); }

@keyframes floatSlowly {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-25px) rotate(180deg) scale(1.1); }
    100% { transform: translateY(0) rotate(360deg) scale(1); }
}

/* Responsive Cabinet Scale Wrapper (Widened to fit widescreen screen!) */
.arcade-scale-wrapper {
    width: 100%;
    max-width: 1602px; /* Widened to fit exact 1529.6px screen width + cabinet frame */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-spring);
    position: relative; /* Anchor for absolute positioned stickers above the cabinet */
}

/* The Branded Arcade Cabinet */
.arcade-cabinet {
    width: 100%;
    background-color: #FFFDF9; /* Cream base */
    border: 6px solid var(--brand-navy);
    border-radius: 30px;
    box-shadow: 12px 12px 0px rgba(11, 43, 64, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: rotate(-0.5deg);
    z-index: 5;
}

/* Top Cabinet Marquee (Header) */
.cabinet-marquee {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-pink) 50%, var(--brand-cyan) 100%);
    border-bottom: 6px solid var(--brand-navy);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100px;
}

.cabinet-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 253, 245, 0.45) 0%, rgba(255, 253, 245, 0.15) 35%, transparent 36%, transparent 100%),
                linear-gradient(to bottom, rgba(255, 253, 245, 0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.marquee-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.marquee-forbidden-text {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: #FFF;
    text-shadow: 4px 4px 0px var(--brand-navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-1.5deg);
    animation: flashRed 0.8s infinite alternate ease-in-out;
    z-index: 5;
}

@keyframes flashRed {
    0% {
        color: #FFF;
        text-shadow: 4px 4px 0px var(--brand-navy);
        transform: rotate(-1.5deg) scale(0.98);
    }
    100% {
        color: var(--brand-red);
        text-shadow: 4px 4px 0px #FFF, 5px 5px 0px var(--brand-navy);
        transform: rotate(1.5deg) scale(1.04);
    }
}

.marquee-badge {
    position: absolute;
    top: 5px;
    right: 20px;
    background-color: var(--brand-purple);
    color: #FFF;
    border: 3.5px solid var(--brand-navy);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 0px var(--brand-navy);
    transform: rotate(4deg);
}

/* Speaker grill details */
.marquee-speakers {
    position: absolute;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.speaker-row {
    display: flex;
    gap: 4px;
}
.speaker-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-navy);
    border-radius: 50%;
    opacity: 0.7;
}

/* Screen Bezel (Outer monitor frame) */
.arcade-bezel {
    background-color: #0b141b; /* Branded dark bezel matching outlines */
    padding: 24px;
    border-bottom: 6px solid var(--brand-navy);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CRT Telly glare shine overlay */
.arcade-bezel::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 30%;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.06) 40%, transparent 40%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
    z-index: 4;
}

/* WIDESCREEN Screen Container (Locked exactly to 2:1 original emulator ratio!) */
.arcade-screen-container {
    width: 100%;
    aspect-ratio: 2 / 1; /* Locked exactly at 2:1 ratio matching 1400x700px V1 original game dimensions! */
    background-color: #000;
    border: 6px solid var(--brand-navy);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 3;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Embedded Iframe styled like an Emulator Canvas */
.arcade-iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 2 / 1;
    border: none;
    background-color: #FFF;
    display: block;
}

/* Bezel bottom bar */
.bezel-footer {
    width: 100%;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #557A95;
    font-size: 0.8rem;
    font-weight: 700;
}

.screen-switch-btn {
    background-color: #172D3C;
    color: #00E5FF;
    border: 3px solid var(--brand-navy);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 2px 2px 0 var(--brand-navy);
    font-weight: 800;
}
.screen-switch-btn:hover {
    background-color: #203C50;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--brand-navy);
}
.screen-switch-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--brand-navy);
}

/* Arcade Control Panel (Strawberry Split Dynamic Theme) */
.arcade-control-panel {
    background: linear-gradient(to right, #FFAAB8 0%, #FFDFE5 40%, #D4F9FD 60%, #A6EBF2 100%);
    border-bottom: 6px solid var(--brand-navy);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 20px;
}

/* Cabinet Split Middle Line Shading */
.arcade-control-panel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background-color: rgba(11, 43, 64, 0.15);
    transform: translateX(-50%);
    pointer-events: none;
}

.arcade-control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(0,0,0,0.1);
}

/* Control Panel Group: Joystick Zone (Duelo Pink Accent) */
.joystick-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 110px;
}

.joystick-base {
    width: 74px;
    height: 74px;
    background-color: #172D3C;
    border: 4px solid var(--brand-navy);
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.joystick-stick {
    width: 14px;
    height: 42px;
    background: linear-gradient(to right, #9bb0be, #e2ebf0, #698393);
    border: 3px solid var(--brand-navy);
    border-radius: 6px;
    position: absolute;
    bottom: 26px;
    transform-origin: bottom center;
    transition: transform 0.15s ease-out;
    cursor: pointer;
    z-index: 10;
}

.joystick-knob {
    width: 34px;
    height: 34px;
    background-color: var(--brand-red); /* Strawberry Red */
    background-image: radial-gradient(circle at 10px 10px, #FF8D9E 10%, transparent 60%);
    border: 3.5px solid var(--brand-navy);
    border-radius: 50%;
    position: absolute;
    top: -26px;
    left: -10px;
    box-shadow: 0 4px 0px rgba(0,0,0,0.3);
    transition: transform 0.15s ease-out;
}

/* Active Tilt Animations */
.joystick-base:hover .joystick-stick {
    transform: rotate(8deg);
}
.joystick-base:active .joystick-stick {
    transform: rotate(-15deg) scaleY(0.95);
}

.control-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-navy);
    background-color: #FFF;
    padding: 3px 10px;
    border-radius: 8px;
    border: 3px solid var(--brand-navy);
    box-shadow: 2px 2px 0px var(--brand-navy);
}

/* Control Panel Group: Coin Slot / Counter Zone (Midnight cyber console style) */
.coin-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--brand-navy);
    border: 4px solid var(--brand-navy);
    border-radius: 18px;
    padding: 10px 20px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.25);
    z-index: 10;
}

/* Ledger Counter Font from VT323 */
.coin-ledger {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ledger-title {
    color: #557A95;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.ledger-digits {
    font-family: 'VT323', monospace;
    font-size: 2.4rem;
    color: var(--brand-cyan); /* Neon Cyan LED matched from Logo */
    text-shadow: 0 0 10px rgba(0, 212, 240, 0.7);
    letter-spacing: 2px;
    line-height: 1;
}

/* Glowing Coin Slot */
.coin-slot {
    width: 44px;
    height: 52px;
    background-color: var(--brand-red);
    border: 3.5px solid var(--brand-navy);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.5), 0 3px 0 var(--brand-navy);
    transition: var(--transition-fast);
}

.coin-slot::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 24px;
    background-color: var(--brand-navy);
    border-radius: 2px;
}

.coin-slot::after {
    content: '25¢';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    font-weight: 900;
    color: #FFF;
}

/* Flash light-up animation on click */
.coin-slot.inserted {
    background-color: var(--brand-cyan);
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.5), 0 1px 0 var(--brand-navy);
}

/* Control Panel Group: Buttons Zone (Abuelitas Cyan & Pink split) */
.buttons-zone {
    display: flex;
    gap: 20px;
}

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

.retro-arcade-btn {
    width: 58px;
    height: 58px;
    border: 4.5px solid var(--brand-navy);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 0 var(--brand-navy);
    transition: var(--transition-fast);
}

/* Button A (Branded Glazed Pink) */
.btn-a {
    background-color: var(--brand-pink);
    background-image: radial-gradient(circle at 12px 12px, #FFAAB8 15%, transparent 65%);
}
/* Button B (Branded Dynamic Cyan) */
.btn-b {
    background-color: var(--brand-cyan);
    background-image: radial-gradient(circle at 12px 12px, #A6EBF2 15%, transparent 65%);
}

.retro-arcade-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.retro-arcade-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--brand-navy);
}

.retro-arcade-btn::after {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--brand-navy);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.btn-a::after { content: 'A'; }
.btn-b::after { content: 'B'; }

/* Cabinet Lower Decal (Retro stickers and brand labels) */
.cabinet-footer-decal {
    background-color: #ECE5DC;
    border-top: 6px solid var(--brand-navy);
    border-radius: 0 0 24px 24px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Interactive cartoon stickers slapped on the bezel / cabinet footer */
.arcade-sticker {
    position: absolute;
    background-color: #FFF;
    border: 3px solid var(--brand-navy);
    box-shadow: 3px 3px 0 var(--brand-navy);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 900;
    border-radius: 8px;
    z-index: 10;
    transition: var(--transition-spring);
    cursor: grab;
    user-select: none;
}

.sticker-sweet {
    top: -16px;
    left: 60px;
    transform: rotate(-10deg);
    background-color: #FFF5F7;
    color: var(--brand-red);
}
.sticker-sweet:hover {
    transform: rotate(5deg) scale(1.1);
}

.sticker-whisk {
    bottom: 12px;
    right: 45px;
    transform: rotate(15deg);
    background-color: #E6FAFD;
    color: var(--brand-cyan-dark);
}
.sticker-whisk:hover {
    transform: rotate(-5deg) scale(1.1);
}

.sticker-pc {
    position: absolute;
    top: -30px; /* Float above the top of the cabinet border */
    left: 50%;
    transform: translateX(-50%) rotate(-2.5deg);
    background-color: var(--brand-yellow);
    color: var(--brand-navy);
    border: 3px solid var(--brand-navy);
    box-shadow: 4px 4px 0 var(--brand-navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 20; /* Keep above the cabinet marquee and other elements */
}

.sticker-pc:hover {
    transform: translateX(-50%) rotate(1.5deg) scale(1.08);
    background-color: var(--brand-pink);
    color: var(--brand-navy);
}

.decal-credit {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-navy);
}

.decal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #557A95;
}

/* Sound Control Switch */
.sound-switch-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-navy);
}
.sound-slider {
    width: 44px;
    height: 24px;
    background-color: #DDD;
    border: 3px solid var(--brand-navy);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}
.sound-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-color: var(--brand-red);
    border: 2px solid var(--brand-navy);
    border-radius: 50%;
    transition: var(--transition-fast);
}
.sound-slider.muted {
    background-color: #8C7B76;
}
.sound-slider.muted::before {
    left: 22px;
    background-color: #FFF;
}

/* Fullscreen Cabinet Mode overrides */
.arcade-cabinet.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    z-index: 1000;
    transform: none !important;
    box-shadow: none;
}

.arcade-cabinet.fullscreen-active .cabinet-marquee,
.arcade-cabinet.fullscreen-active .cabinet-footer-decal,
.arcade-cabinet.fullscreen-active .arcade-control-panel,
.arcade-cabinet.fullscreen-active .bezel-footer,
.arcade-cabinet.fullscreen-active .arcade-sticker {
    display: none !important;
}

.arcade-cabinet.fullscreen-active .arcade-bezel {
    height: 100vh;
    padding: 0;
    justify-content: center;
    border: none;
    background-color: #000;
}

/* Remove screen glare shine in fullscreen mode */
.arcade-cabinet.fullscreen-active .arcade-bezel::after {
    display: none !important;
}

.arcade-cabinet.fullscreen-active .arcade-screen-container {
    width: 100vw;
    height: 100vh;
    aspect-ratio: 2 / 1;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

/* Exit Fullscreen Button (Hidden in normal mode, shown in bottom-right corner during fullscreen) */
.exit-fullscreen-btn {
    display: none;
}

.arcade-cabinet.fullscreen-active .exit-fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--brand-red);
    color: #FFF;
    border: 3px solid var(--brand-navy);
    border-radius: 50%; /* circular icon button initially */
    width: 46px;
    height: 46px;
    padding: 0;
    font-size: 1.1rem;
    box-shadow: 4px 4px 0 var(--brand-navy);
    cursor: pointer;
    z-index: 9999;
    transition: width 0.2s ease, border-radius 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
    overflow: hidden;
}

.arcade-cabinet.fullscreen-active .exit-fullscreen-btn .exit-btn-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-subtitle);
    font-weight: 800;
    font-size: 0.9rem;
    transition: opacity 0.15s ease, margin-left 0.15s ease;
}

.arcade-cabinet.fullscreen-active .exit-fullscreen-btn:hover {
    width: 250px; /* Fixed numeric width - no glitches! */
    padding: 0 16px;
    border-radius: 12px; /* morphs into static rectangle/pill */
    background-color: var(--brand-pink);
    color: var(--brand-navy);
    /* Removed transform: translate to prevent hover boundaries jumping and flickering */
}

.arcade-cabinet.fullscreen-active .exit-fullscreen-btn:hover .exit-btn-text {
    max-width: 180px;
    opacity: 1;
    margin-left: 4px;
}

.arcade-cabinet.fullscreen-active .exit-fullscreen-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--brand-navy);
}

/* ==========================================================================
   2D FOOTER SECTION
   ========================================================================== */

.main-footer {
    background-color: #f7f3eb;
    border-top: 4px solid #362215;
    padding: 50px 24px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Chewy', system-ui, sans-serif;
    font-size: 1.4rem;
    color: #362215;
    text-decoration: none;
}

.footer-logo:hover {
    transform: rotate(0.5deg) scale(1.02);
}

.footer-logo-icon {
    height: 76px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 400px;
    color: #5c3d2e;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.footer-social-btn {
    background-color: #FFF;
    color: #362215;
    border: 2px solid #362215;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 3px 3px 0px #362215;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.footer-social-btn:hover {
    transform: translateY(-2px) rotate(6deg);
    box-shadow: 4px 4px 0px #362215;
    background-color: #a04c38;
    color: #FFF;
}

.footer-social-btn:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 0 #362215;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #362215;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 4px;
    text-align: left;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: #a04c38;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    padding-left: 0;
}

.footer-link {
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    color: #5c3d2e;
    text-decoration: none;
}

.footer-link:hover {
    color: #a04c38;
    transform: translateX(2px);
}

.contact-text {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #5c3d2e;
    text-align: left;
}

.contact-icon {
    color: #a04c38;
}

.contact-text-special {
    font-size: 0.9rem;
    font-weight: 800;
    color: #a04c38;
    text-shadow: 1px 1px 0 #FFF;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: rotate(-0.5deg);
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 2px dashed #362215;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #362215;
}

/* ==========================================================================
   MEDIA QUERIES (2D RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1200px) {
    .arcade-scale-wrapper {
        transform: scale(0.9);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-column {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    .arcade-scale-wrapper {
        transform: scale(0.78);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide default top links */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-brand-column {
        grid-column: span 1;
    }
    
    .arcade-scale-wrapper {
        transform: scale(0.64);
    }
    .arcade-room-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .arcade-scale-wrapper {
        transform: scale(0.42);
    }
    .coin-zone {
        display: none;
    }
}

/* Language Switcher Styling */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    border: 2px solid var(--border-color, #362215);
    background-color: #FFF;
    border-radius: 12px;
    padding: 3px 5px;
    box-shadow: 2px 2px 0px var(--border-color, #362215);
}

.lang-btn {
    font-size: 1.1rem;
    padding: 2px 4px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-btn:hover {
    transform: scale(1.15);
}

.lang-btn.active {
    background-color: #fbead5;
    border: 1px solid var(--border-color, #362215);
}
