/* ==========================================================================
   19450902.best — RETRO ARCADE & NUCLEAR MISSILE HUD THEME
   Stage-by-Stage Campaign Mode, Nuclear Missile Sidebar Navigation,
   Full Responsive Mobile Engine & Multilingual Game Engine (EN / ZH / JA)
   ========================================================================== */

:root {
    --bg-primary: #fbfbf9;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f4f4f0;
    --bg-game-dark: #0f172a;
    --bg-game-panel: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-game-gold: #fbbf24;
    
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;

    --crimson-500: #ef4444;
    --crimson-600: #dc2626;
    --crimson-700: #b91c1c;

    --emerald-500: #10b981;
    --emerald-600: #059669;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-mono: 'DM Mono', monospace;

    --brutalist-border: 3.5px solid #0f172a;
    --brutalist-shadow: 6px 6px 0px #0f172a;
    --brutalist-shadow-hover: 2px 2px 0px #0f172a;
    --brutalist-shadow-red: 6px 6px 0px #991b1b;
    --brutalist-shadow-gold: 6px 6px 0px #b45309;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #fffdf5 0%, #f7f7f2 100%);
    width: 100%;
}

/* Ambient Canvas */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #10b981, #f59e0b);
    z-index: 1100;
    width: 0%;
    transition: width 0.1s linear;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.85rem;
    }
}

/* Main Content with Left Sidebar Offset on Desktop */
#main-content {
    transition: margin-left 0.3s ease;
    width: 100%;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    #main-content {
        margin-left: 280px;
    }
}

/* Screen Shake Animation */
.shake-screen {
    animation: screenShake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes screenShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ==========================================================================
   MOBILE NUCLEAR TOP BAR (STICKY ON MOBILE / TABLET < 1024px)
   ========================================================================== */
.mobile-nuke-bar {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 3px solid #000000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 900;
}

@media (max-width: 1023px) {
    .mobile-nuke-bar {
        display: block;
    }
}

.mobile-nuke-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
}

.mobile-hud-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-lang-select {
    background: #1e293b;
    color: #fcd34d;
    border: 1.5px solid #475569;
    padding: 0.3rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 6px;
    outline: none;
}

.btn-mobile-nav-toggle {
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #fde047;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-mobile-sparkle {
    background: #f59e0b;
    color: #0f172a;
    border: 1.5px solid #000000;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-hp-strip {
    width: 100%;
    height: 4px;
    background: #334155;
}

/* ==========================================================================
   NUCLEAR MISSILE SIDEBAR & DRAWER (DESKTOP + MOBILE DRAWER)
   ========================================================================== */
.nuke-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nuke-backdrop.is-active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.nuke-missile-nav {
    position: fixed;
    left: 16px;
    top: 20px;
    bottom: 20px;
    width: 250px;
    background: #0f172a;
    color: #ffffff;
    border: 3.5px solid #000000;
    box-shadow: 6px 6px 0px #000000, 0 0 25px rgba(245, 158, 11, 0.25);
    border-radius: 40px 40px 18px 18px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 1023px) {
    .nuke-missile-nav {
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        border-radius: 0 24px 24px 0;
        z-index: 1500;
        transform: translateX(-110%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.6);
    }
    .nuke-missile-nav.mobile-open {
        transform: translateX(0);
    }
}

/* Close button on mobile drawer */
.missile-drawer-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
}

@media (max-width: 1023px) {
    .missile-drawer-close {
        display: flex;
    }
}

/* Missile Nose Cone */
.missile-warhead-cap {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    padding: 1.2rem 1rem 0.8rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #000000;
}

.missile-nose-tip {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.2rem;
    animation: warheadGlow 2s infinite alternate;
}

@keyframes warheadGlow {
    0% { filter: drop-shadow(0 0 4px #fbbf24); }
    100% { filter: drop-shadow(0 0 14px #ef4444); }
}

.missile-logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0px #000000;
}

/* Missile HUD & Language Controls */
.missile-hud-controls {
    padding: 0.8rem 1rem;
    background: #1e293b;
    border-bottom: 2px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.missile-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.missile-lang-select {
    width: 100%;
    background: #0f172a;
    color: #fcd34d;
    border: 2px solid #475569;
    padding: 0.35rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
}

/* HP Status Bar */
.missile-hp-card {
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.missile-hp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: #f8fafc;
}

.hud-hp-bar {
    width: 100%;
    height: 10px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #475569;
}

.hud-hp-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #22c55e);
    transition: width 0.4s ease, background 0.4s ease;
}

.btn-missile-sparkle {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    border: 1.5px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* Missile Shaft: 6 Stage Navigation Buttons */
.missile-stages-shaft {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.missile-stage-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 6px;
    text-decoration: none;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.15s ease;
    min-height: 40px;
}

.missile-stage-link:hover {
    background: #334155;
    border-color: #f59e0b;
    color: #ffffff;
    transform: translateX(3px);
}

.missile-stage-link.active {
    background: #7f1d1d;
    border-color: #ef4444;
    color: #fde047;
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.4);
}

.missile-stage-link.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
    background: #0b0f19;
    border-style: dashed;
}

.stage-num-badge {
    width: 22px;
    height: 22px;
    background: #0f172a;
    border: 1.5px solid #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #f59e0b;
    flex-shrink: 0;
}

.missile-stage-link.active .stage-num-badge {
    background: #ef4444;
    border-color: #fde047;
    color: #ffffff;
}

.stage-link-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Missile Tail Fins */
.missile-tail-fins {
    background: repeating-linear-gradient(
        -45deg,
        #f59e0b,
        #f59e0b 10px,
        #000000 10px,
        #000000 20px
    );
    height: 24px;
    border-top: 3px solid #000000;
    position: relative;
    flex-shrink: 0;
}

.missile-exhaust-flame {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: exhaustPulse 0.4s infinite alternate;
}

@keyframes exhaustPulse {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.2); opacity: 1; filter: drop-shadow(0 0 8px #f59e0b); }
}

/* ==========================================================================
   CAMPAIGN STAGE PROGRESSION & RESPONSIVE LAYOUTS
   ========================================================================== */
.game-section {
    padding: 3rem 0;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (max-width: 640px) {
    .game-section {
        padding: 2rem 0;
    }
}

.game-section.stage-locked {
    display: none;
}

.game-section.stage-unlocked {
    display: block;
    animation: stageSlideDown 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stageSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Next Stage Unlock Banner */
.stage-clear-banner {
    margin-top: 2rem;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border: 3.5px solid #10b981;
    box-shadow: 6px 6px 0px #047857;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.2rem;
    text-align: center;
    display: none;
    animation: clearBannerPulse 1.5s infinite alternate;
}

@media (max-width: 640px) {
    .stage-clear-banner {
        padding: 1.2rem 0.8rem;
    }
}

@keyframes clearBannerPulse {
    0% { box-shadow: 4px 4px 0px #047857, 0 0 10px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 4px 4px 0px #047857, 0 0 20px rgba(16, 185, 129, 0.7); }
}

.stage-clear-banner.is-visible {
    display: block;
}

.stage-clear-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 900;
    color: #34d399;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.btn-proceed-next-stage {
    background: #f59e0b;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    font-weight: 900;
    padding: 0.85rem 1.6rem;
    border: 3px solid #ffffff;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000;
    transition: all 0.15s ease;
    margin-top: 0.8rem;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.btn-proceed-next-stage:hover {
    background: #fbbf24;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================================
   STAGE COMMON HEADERS & TITLES
   ========================================================================== */
.game-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-stage-tag {
    display: inline-block;
    background: #0f172a;
    color: #fcd34d;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.game-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5.5vw, 2.4rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.game-lead {
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ==========================================================================
   STAGE 1: POTSDAM DECISION SIMULATOR
   ========================================================================== */
.simulator-console {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

@media (max-width: 640px) {
    .simulator-console {
        padding: 1.5rem 1rem;
        border-width: 2.5px;
        box-shadow: 4px 4px 0px #0f172a;
    }
}

.sim-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.8rem 0;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .sim-buttons-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
}

.btn-choice-yes, .btn-choice-no {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-weight: 800;
    padding: 0.9rem 1.8rem;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.1s ease;
    min-height: 48px;
}

@media (max-width: 640px) {
    .btn-choice-yes, .btn-choice-no {
        width: 100%;
        padding: 0.8rem 1rem;
        border-width: 2.5px;
        box-shadow: 3px 3px 0px #0f172a;
    }
}

.btn-choice-yes {
    background: #10b981;
    color: #ffffff;
}

.btn-choice-yes:hover {
    background: #059669;
    transform: translate(2px, 2px);
    box-shadow: var(--brutalist-shadow-hover);
}

.btn-choice-no {
    background: #ef4444;
    color: #ffffff;
}

.btn-choice-no:hover {
    background: #dc2626;
    transform: translate(2px, 2px);
    box-shadow: var(--brutalist-shadow-hover);
}

.sim-result-box {
    display: none;
    margin-top: 1.8rem;
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
    border: var(--brutalist-border);
    background: #fffdf5;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 640px) {
    .sim-result-box {
        padding: 1.2rem 0.8rem;
        border-width: 2.5px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.king-meme-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.king-title-float {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    color: #b45309;
    text-shadow: 2px 2px 0px #fcd34d, 4px 4px 0px #0f172a;
    letter-spacing: 2px;
}

.king-photo-wrapper {
    max-width: 550px;
    margin: 0 auto 1.2rem auto;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    cursor: pointer;
}

@media (max-width: 640px) {
    .king-photo-wrapper {
        border-width: 2.5px;
        box-shadow: 3px 3px 0px #0f172a;
    }
}

.king-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.king-meme-caption {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 700;
    color: #1e293b;
    max-width: 700px;
    margin: 0 auto 1rem auto;
    line-height: 1.5;
}

.king-badge-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-tag-item {
    background: #fef3c7;
    color: #92400e;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border: 1.5px solid #d97706;
    border-radius: 4px;
}

/* Result No: Consequences */
.consequence-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 0.4rem;
}

.consequence-lead {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.consequence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .consequence-grid {
        grid-template-columns: 1fr;
    }
}

.consequence-card {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 640px) {
    .consequence-card {
        padding: 1rem;
        border-width: 2.5px;
    }
}

.consequence-card.flipped {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 4px 4px 0px #b91c1c;
}

.consequence-img-frame {
    width: 100%;
    height: 180px;
    border: 2px solid #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.8rem;
    background: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consequence-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.consequence-tag {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #dc2626;
    margin-bottom: 0.4rem;
}

.consequence-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.consequence-desc {
    font-size: 0.88rem;
    color: #475569;
}

.btn-emergency-surrender {
    background: #f59e0b;
    color: #0f172a;
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    font-weight: 900;
    padding: 0.85rem 1.6rem;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    cursor: pointer;
    animation: bounceBtn 1.5s infinite;
    display: none;
    max-width: 100%;
}

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

/* ==========================================================================
   STAGE 2: TOKYO WAR CRIMES TRIBUNAL & GAVEL ARCADE
   ========================================================================== */
.tribunal-section-box {
    background: #0f172a;
    color: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-red);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .tribunal-section-box {
        padding: 1.5rem 0.85rem;
        border-width: 2.5px;
    }
}

.tribunal-master-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0 1.8rem 0;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .tribunal-master-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.btn-master-gavel {
    background: #dc2626;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    font-weight: 900;
    padding: 0.8rem 1.8rem;
    border: 2.5px solid #ffffff;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 3px 3px 0px #000000;
    min-height: 48px;
}

.tribunal-progress-pill {
    background: #1e293b;
    color: #fbbf24;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.5rem 1.2rem;
    border: 2px solid #eab308;
    border-radius: 30px;
    display: inline-block;
}

.tribunal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .tribunal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.tribunal-card {
    background: #1e293b;
    border: 2.5px solid #475569;
    border-radius: var(--radius-md);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
}

@media (max-width: 640px) {
    .tribunal-card {
        padding: 0.75rem 0.5rem;
    }
}

.tribunal-card.sentenced {
    border-color: #dc2626;
    background: #200d0d;
}

.tribunal-status-badge {
    display: inline-block;
    background: #334155;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    border: 1px solid #64748b;
}

.tribunal-card.sentenced .tribunal-status-badge {
    background: #dc2626;
    color: #ffffff;
    border-color: #ef4444;
}

.tribunal-photo {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: #000000;
    position: relative;
    border: 2px solid #334155;
}

@media (max-width: 640px) {
    .tribunal-photo {
        height: 110px;
    }
}

.tribunal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tribunal-card.sentenced .tribunal-photo img {
    filter: grayscale(100%) brightness(0.6) contrast(130%);
}

.tribunal-photo-jail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(200, 200, 200, 0.45) 15px, rgba(200, 200, 200, 0.45) 19px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tribunal-card.sentenced .tribunal-photo-jail {
    opacity: 1;
}

.verdict-stamp {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0);
    background: #dc2626;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 900;
    padding: 0.3rem 0.6rem;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 3px 3px 0px #000000;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 10;
}

.tribunal-card.sentenced .verdict-stamp {
    transform: translate(-50%, -50%) rotate(-15deg) scale(1);
}

.tribunal-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.tribunal-card-role {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    min-height: 2.2rem;
    line-height: 1.35;
}

.btn-gavel-action {
    background: #b91c1c;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.45rem 0.6rem;
    border: 1.5px solid #ffffff;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    min-height: 38px;
}

.tribunal-card.sentenced .btn-gavel-action {
    background: #334155;
    border-color: #64748b;
    color: #94a3b8;
    cursor: default;
}

/* ==========================================================================
   DYNAMIC LOCKED & UNLOCKED HISTORICAL CARDS
   ========================================================================== */
.arcade-unlock-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arcade-unlock-card.is-locked {
    opacity: 0.75;
    filter: grayscale(80%);
    border: 3.5px dashed #64748b !important;
}

.arcade-unlock-card.is-locked .card-img-wrapper,
.arcade-unlock-card.is-locked .gallery-img-box,
.arcade-unlock-card.is-locked .siberia-card-img,
.arcade-unlock-card.is-locked .bbq-photo-img {
    position: relative;
    background: #0b0f19 !important;
}

.arcade-unlock-card.is-locked img {
    filter: blur(14px) brightness(0.3);
    pointer-events: none;
}

.card-lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.92);
    border: 2px solid #f59e0b;
    color: #fde047;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
    white-space: nowrap;
    max-width: 90%;
}

.arcade-unlock-card.is-unlocked {
    opacity: 1;
    filter: none;
    animation: cardPopIn 0.5s ease-out forwards;
}

@keyframes cardPopIn {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.arcade-unlock-card.is-unlocked .card-lock-badge {
    display: none;
}

/* ==========================================================================
   STAGE 3: SIBERIAN POTATO EXPEDITION & CLICKER MINI-GAME
   ========================================================================== */
.siberia-board {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
}

@media (max-width: 640px) {
    .siberia-board {
        padding: 1.5rem 0.85rem;
        border-width: 2.5px;
    }
}

.siberia-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .siberia-hero-grid {
        grid-template-columns: 1fr;
    }
}

.siberia-text-box h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.siberia-text-box p {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.8rem;
    line-height: 1.55;
}

.siberia-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1.2rem;
}

@media (max-width: 640px) {
    .siberia-stats-row {
        grid-template-columns: 1fr;
    }
}

.siberia-stat-card {
    background: #f1f5f9;
    border: 2px solid #0f172a;
    border-radius: var(--radius-sm);
    padding: 0.7rem;
    text-align: center;
}

.siberia-stat-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: #b91c1c;
}

.siberia-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

/* Siberian Clicker Game Box */
.siberian-clicker-box {
    margin: 2rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: 3.5px solid #0284c7;
    border-radius: var(--radius-md);
    padding: 1.8rem 1.2rem;
    text-align: center;
    box-shadow: 4px 4px 0px #0369a1;
}

@media (max-width: 640px) {
    .siberian-clicker-box {
        padding: 1.2rem 0.8rem;
        border-width: 2.5px;
    }
}

.clicker-btn-wrapper {
    display: block;
    margin: 1rem 0;
}

.btn-potato-dig {
    background: #eab308;
    color: #0f172a;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3.8vw, 1.3rem);
    font-weight: 900;
    padding: 1rem 2rem;
    border: 3px solid #ffffff;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000;
    transition: transform 0.08s ease, background 0.15s ease;
    user-select: none;
    max-width: 100%;
    min-height: 52px;
}

@media (max-width: 640px) {
    .btn-potato-dig {
        width: 100%;
        padding: 0.9rem 1rem;
    }
}

.btn-potato-dig:active {
    transform: scale(0.96);
}

.clicker-float-text {
    position: fixed;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 900;
    color: #fde047;
    text-shadow: 2px 2px 0px #000000;
    z-index: 9999;
    animation: floatUpFade 0.8s ease-out forwards;
}

@keyframes floatUpFade {
    0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50px) scale(1.3); }
}

.potato-scores-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .potato-scores-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
}

.potato-score-pill {
    background: #0f172a;
    padding: 0.5rem 1rem;
    border: 2px solid #0284c7;
    border-radius: 8px;
    color: #7dd3fc;
}

.clicker-achievement-banner {
    margin-top: 1rem;
    background: #1e3a8a;
    color: #fde047;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1.5px solid #60a5fa;
    display: inline-block;
    max-width: 100%;
}

.siberia-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .siberia-cards-grid {
        grid-template-columns: 1fr;
    }
}

.siberia-card {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (max-width: 640px) {
    .siberia-card {
        border-width: 2.5px;
        box-shadow: 4px 4px 0px #0f172a;
    }
}

.siberia-card-img {
    width: 100%;
    height: 200px;
    background: #0f172a;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.siberia-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.siberia-card-body {
    padding: 1.2rem;
    background: #ffffff;
}

.siberia-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.siberia-card-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

/* ==========================================================================
   STAGE 4: SURRENDER CEREMONY & INTERACTIVE SIGNATURE/AIRSHOW
   ========================================================================== */
.ceremony-interactive-box {
    margin-bottom: 2rem;
    background: #0f172a;
    color: #ffffff;
    border: 3.5px solid #f59e0b;
    box-shadow: 5px 5px 0px #b45309;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.2rem;
    text-align: center;
}

@media (max-width: 640px) {
    .ceremony-interactive-box {
        padding: 1.2rem 0.8rem;
        border-width: 2.5px;
    }
}

.signature-buttons-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.2rem 0;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .signature-buttons-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

.btn-sign-macarthur, .btn-sign-canada, .btn-launch-flyover {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    font-weight: 800;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 3px 3px 0px #000000;
    min-height: 48px;
}

@media (max-width: 640px) {
    .btn-sign-macarthur, .btn-sign-canada, .btn-launch-flyover {
        width: 100%;
        padding: 0.75rem 0.8rem;
    }
}

.btn-sign-macarthur {
    background: #10b981;
    color: #ffffff;
    border: 2.5px solid #ffffff;
}

.btn-sign-canada {
    background: #dc2626;
    color: #ffffff;
    border: 2.5px solid #ffffff;
}

.btn-launch-flyover {
    background: #38bdf8;
    color: #0f172a;
    border: 2.5px solid #000000;
}

.signature-status-display {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 2px solid #475569;
    border-radius: var(--radius-sm);
    color: #fcd34d;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Flying Airshow Sprite Animation */
.flying-plane-sprite {
    position: fixed;
    font-size: 2.4rem;
    pointer-events: none;
    z-index: 9999;
    animation: flyAcross 2.2s linear forwards;
}

@keyframes flyAcross {
    0% { transform: translate(-100px, 0) rotate(15deg); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate(calc(100vw + 100px), -120px) rotate(15deg); opacity: 0; }
}

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

@media (max-width: 640px) {
    .ceremony-grid {
        grid-template-columns: 1fr;
    }
}

.ceremony-card {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (max-width: 640px) {
    .ceremony-card {
        border-width: 2.5px;
        box-shadow: 4px 4px 0px #0f172a;
    }
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    background: #0f172a;
    cursor: pointer;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.2rem;
}

.card-tag {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #d97706;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.card-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.incident-card {
    background: #fffbeb;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-gold);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .incident-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 1rem;
        border-width: 2.5px;
    }
}

.incident-badge {
    font-size: 2.5rem;
}

.incident-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #b45309;
    margin-bottom: 0.3rem;
}

.incident-text p {
    font-size: 0.9rem;
    color: #451a03;
    line-height: 1.5;
}

/* ==========================================================================
   STAGE 5: GENERAL CURTIS LEMAY'S TOKYO BBQ SMOKEHOUSE
   ========================================================================== */
.bbq-smokehouse-box {
    background: linear-gradient(135deg, #1e1b18 0%, #2b110a 100%);
    color: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-red);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .bbq-smokehouse-box {
        padding: 1.5rem 0.85rem;
        border-width: 2.5px;
    }
}

.bbq-kicker-tag {
    display: inline-block;
    background: #ef4444;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 2px solid #000000;
    margin-bottom: 0.8rem;
}

.bbq-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 900;
    color: #f59e0b;
    text-shadow: 2px 2px 0px #dc2626;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.bbq-lead {
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
    color: #fed7aa;
    max-width: 780px;
    margin: 0 auto 1.8rem auto;
    line-height: 1.55;
}

.bbq-interactive-grill {
    background: #0f172a;
    border: 3px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1.8rem 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

@media (max-width: 640px) {
    .bbq-interactive-grill {
        padding: 1.2rem 0.8rem;
        border-width: 2.5px;
    }
}

.bbq-grill-btn {
    background: #ea580c;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3.8vw, 1.35rem);
    font-weight: 900;
    padding: 1rem 2rem;
    border: 3px solid #ffffff;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000;
    transition: all 0.1s ease;
    max-width: 100%;
    min-height: 52px;
}

@media (max-width: 640px) {
    .bbq-grill-btn {
        width: 100%;
        padding: 0.85rem 1rem;
    }
}

.bbq-temp-display {
    margin-top: 1.2rem;
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    color: #fdba74;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.bbq-photos-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .bbq-photos-row {
        grid-template-columns: 1fr;
    }
}

.bbq-photo-card {
    background: #0f172a;
    border: 2px solid #ea580c;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
}

.bbq-photo-img {
    width: 100%;
    height: 190px;
    cursor: pointer;
    overflow: hidden;
    background: #000000;
    position: relative;
}

.bbq-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbq-photo-body {
    padding: 1rem;
}

.bbq-photo-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fcd34d;
    margin-bottom: 0.3rem;
}

.bbq-photo-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.45;
}

/* ==========================================================================
   STAGE 6: CELEBRATIONS ARCADE & GLOBAL PARTY CONTROLS
   ========================================================================== */
.global-party-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    color: #ffffff;
    border: 3.5px solid #a855f7;
    box-shadow: 5px 5px 0px #7e22ce;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .global-party-box {
        padding: 1.5rem 0.85rem;
        border-width: 2.5px;
    }
}

.global-party-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.2rem 0;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .global-party-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

.btn-party-ny, .btn-party-cq, .btn-party-syd {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    font-weight: 800;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 3px 3px 0px #000000;
    min-height: 48px;
}

@media (max-width: 640px) {
    .btn-party-ny, .btn-party-cq, .btn-party-syd {
        width: 100%;
        padding: 0.75rem 0.8rem;
    }
}

.btn-party-ny {
    background: #0284c7;
    color: #ffffff;
    border: 2.5px solid #ffffff;
}

.btn-party-cq {
    background: #dc2626;
    color: #ffffff;
    border: 2.5px solid #ffffff;
}

.btn-party-syd {
    background: #eab308;
    color: #0f172a;
    border: 2.5px solid #000000;
    font-weight: 900;
}

.party-joy-meter-box {
    max-width: 500px;
    margin: 1.2rem auto 0 auto;
    background: #0f172a;
    border: 2px solid #c084fc;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 3vw, 1.05rem);
    font-weight: 800;
    color: #e9d5ff;
}

.party-joy-bar {
    width: 120px;
    height: 12px;
    background: #334155;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #64748b;
    flex-shrink: 0;
}

.party-joy-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899, #f59e0b);
    transition: width 0.3s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (max-width: 640px) {
    .gallery-card {
        border-width: 2.5px;
        box-shadow: 4px 4px 0px #0f172a;
    }
}

.gallery-img-box {
    width: 100%;
    height: 210px;
    background: #0f172a;
    position: relative;
    cursor: pointer;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-location-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.gallery-body {
    padding: 1.2rem;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.gallery-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER (TRANSPARENT & CLEAN) & LIGHTBOX MODAL
   ========================================================================== */
.game-footer {
    background: transparent;
    color: #475569;
    border-top: 2px solid #e2e8f0;
    padding: 2.5rem 0 3.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-text {
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-modal.is-open {
    display: flex;
}

.lightbox-content {
    background: #ffffff;
    border: var(--brutalist-border);
    box-shadow: 8px 8px 0px #000000;
    border-radius: var(--radius-md);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 1.2rem;
}

@media (max-width: 640px) {
    .lightbox-content {
        padding: 1rem 0.8rem;
        border-width: 2.5px;
    }
}

.lightbox-close-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #000000;
    font-size: 1.2rem;
    font-weight: 800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-img-container {
    width: 100%;
    max-height: 480px;
    background: #000000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .lightbox-img-container {
        max-height: 260px;
    }
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .lightbox-img-container img {
        max-height: 260px;
    }
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.lightbox-caption {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}
