/*
Theme Name: EVERSPACE
Theme URI: https://everspace-game.com
Author: ROCKFISH Games
Author URI: https://rockfishgames.com
Description: Official landing page theme for EVERSPACE — dark grey background with neon blue and orange accents.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: everspace
*/

/* ============================================================
   CSS VARIABLES — Edit these to restyle the entire theme
   ============================================================ */
:root {
    /* Fonts */
    --font-main: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;

    /* Color palette */
    --color-bg-deep:        #0d0e11;   /* Deepest background */
    --color-bg-section:     #111214;   /* Standard section bg */
    --color-bg-alt:         #18191d;   /* Alternating section bg */
    --color-bg-card:        #1e2026;   /* Card / panel bg */
    --color-bg-overlay:     rgba(13, 14, 17, 0.75); /* Overlay on images */

    --color-blue-primary:   #00d4ff;   /* Neon blue — main accent */
    --color-blue-bright:    #66e5ff;   /* Lighter neon blue — hover */
    --color-blue-dim:       #0099bb;   /* Darker neon blue — borders */
    --color-blue-glow:      rgba(0, 212, 255, 0.12); /* Glow / shadow */

    --color-orange:         #ff6b1a;   /* Neon orange — highlights */
    --color-orange-dim:     #cc4400;   /* Darker orange — borders */
    --color-orange-glow:    rgba(255, 107, 26, 0.12); /* Orange glow */

    --color-text-primary:   #e8eaed;   /* Main body text */
    --color-text-muted:     #888b94;   /* Secondary / muted text */
    --color-text-white:     #ffffff;
    --color-border:         rgba(0, 212, 255, 0.18);
    --color-border-bright:  rgba(0, 212, 255, 0.45);

    /* Spacing */
    --section-padding:      100px 0;
    --container-width:      1200px;
    --container-padding:    0 40px;

    /* Transitions */
    --transition-fast:      0.2s ease;
    --transition-med:       0.4s ease;

    /* Header */
    --header-height:        80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-blue-bright);
}

/* Inline text links turn orange on hover */
p a:hover,
li a:hover,
.page-content a:hover,
.footer-legal a:hover,
.footer-legal-links a:hover {
    color: var(--color-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-blue-primary);
    line-height: 1.2;
    letter-spacing: 0.03em;
}

p {
    margin-bottom: 1.2em;
}
p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.4em;
    color: var(--color-blue-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0 0.8rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim));
}

.section-divider::after {
    background: linear-gradient(90deg, var(--color-blue-dim), transparent);
}

/* The diamond is injected via a pseudo-element on a child span — 
   since we can't use ::before and ::after twice on one element,
   we output a small inline SVG diamond via the HTML */
.section-divider-diamond {
    width: 7px;
    height: 7px;
    background: var(--color-blue-primary);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74, 159, 255, 0.6);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background var(--transition-med), box-shadow var(--transition-med);
    background: transparent;
}

#site-header.scrolled {
    background: rgba(13, 14, 17, 0.97);
    box-shadow: 0 1px 0 var(--color-border), 0 4px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#site-header .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo */
#site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#site-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(74, 159, 255, 0.4));
}

#site-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    text-shadow: 0 0 20px rgba(74, 159, 255, 0.5);
}

/* Navigation */
#main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

#main-nav ul li a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0.4em 0;
    position: relative;
    transition: color var(--transition-fast);
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-blue-primary);
    transition: width var(--transition-med);
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
    color: var(--color-blue-primary);
}
#main-nav ul li a:hover::after,
#main-nav ul li a.active::after {
    width: 100%;
}

/* Header always opaque on banner pages */
body.page-template-page-banner #site-header {
    background: rgba(13, 14, 17, 0.97);
    box-shadow: 0 1px 0 var(--color-border), 0 4px 30px rgba(0,0,0,0.6);
}

/* Buy button in nav */
#main-nav ul li.nav-buy a {
    color: var(--color-orange);
    border: 1px solid var(--color-orange-dim);
    padding: 0.45em 1.2em;
    border-radius: 2px;
    background: var(--color-orange-glow);
}
#main-nav ul li.nav-buy a:hover {
    background: rgba(255, 107, 26, 0.2);
    border-color: var(--color-orange);
    box-shadow: 0 0 15px rgba(255, 107, 26, 0.2);
}
#main-nav ul li.nav-buy a::after {
    display: none;
}

/* Mobile menu toggle */
#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}
#menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-blue-primary);
    transition: all var(--transition-fast);
}
#menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   IMAGE PLACEHOLDER HELPER
   ============================================================ */
.img-placeholder {
    background: var(--color-bg-card);
    border: 1px dashed var(--color-border-bright);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: relative;
}
.img-placeholder .placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.4;
}
.img-placeholder .placeholder-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-blue-dim);
    margin-bottom: 0.3rem;
}
.img-placeholder .placeholder-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* ============================================================
   SECTION: HERO / HOME
   ============================================================ */
#section-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Video background */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 0;
}

/* Fallback image hidden when video plays, shown on mobile */
.hero-bg-image--fallback {
    display: none;
}

@media (max-width: 768px) {
    .hero-bg-video {
        display: none;
    }
    .hero-bg-image--fallback {
        display: block;
    }
}

/* Placeholder when no hero image is set */
.hero-bg-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(0, 100, 140, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 107, 26, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #0d0e11 0%, #111214 50%, #0a0b0e 100%);
}

/* Star field effect (CSS only) */
.hero-bg-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 300px 300px, 200px 200px, 150px 150px;
    background-position: 0 0, 50px 100px, 150px 50px;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3,7,15,0.2) 0%,
        rgba(3,7,15,0.1) 40%,
        rgba(3,7,15,0.7) 80%,
        var(--color-bg-deep) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
    animation: heroFadeIn 1.2s ease both;
}

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

.hero-game-logo {
    margin: 0 auto 2rem;
    max-width: 700px;
}

.hero-game-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(74, 159, 255, 0.5));
}

/* Logo text fallback when no image is set */
.hero-logo-text {
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-white);
    margin-bottom: 0;
    line-height: 1;
}

.hero-title-small  { font-size: clamp(1.5rem, 4vw, 3rem); }
.hero-title-medium { font-size: clamp(2rem, 6vw, 4.5rem); }
.hero-title-large  { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.hero-title-xlarge { font-size: clamp(3rem, 8vw, 6rem); }

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-blue-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--color-text-primary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll-hint svg {
    opacity: 0.5;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.85em 2.2em;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border-radius: 2px;
}

.btn-primary {
    background: var(--color-orange);
    color: var(--color-bg-deep);
    box-shadow: 0 0 10px rgba(255, 107, 26, 0.2);
    animation: btnGlow 3.5s ease-in-out infinite;
}
.btn-primary:hover {
    background: #ff8c45;
    color: var(--color-bg-deep);
    box-shadow: 0 0 22px rgba(255, 107, 26, 0.5);
    transform: translateY(-1px);
    animation: none;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 26, 0.15); }
    50%       { box-shadow: 0 0 18px rgba(255, 107, 26, 0.35); }
}

.btn-outline {
    background: transparent;
    color: var(--color-blue-primary);
    border: 1px solid var(--color-blue-dim);
}
.btn-outline:hover {
    border-color: var(--color-blue-primary);
    color: var(--color-blue-bright);
    background: var(--color-blue-glow);
    transform: translateY(-1px);
}

/* ============================================================
   SECTION: FEATURES
   ============================================================ */
#section-features {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
    position: relative;
}

#section-features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

.features-intro {
    max-width: 860px;
    margin: 2rem auto 4rem;
    text-align: center;
    padding: 2rem 2.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    position: relative;
}

.features-intro::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

.features-intro p {
    font-size: 0.97rem;
    color: var(--color-text-primary);
    line-height: 1.9;
    margin: 0;
    font-style: italic;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    flex: 0 0 calc((100% - 5rem) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.feature-image {
    width: 100%;
    aspect-ratio: 616 / 140;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.feature-image--dlc {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image .img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: none;
    font-size: 0.65rem;
    padding: 0.5rem;
}

.feature-image .img-placeholder .placeholder-icon {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.feature-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    margin: 0;
}

.feature-text {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1024px) {
    .feature-card {
        flex: 0 0 calc((100% - 2.5rem) / 2);
    }
}

@media (max-width: 600px) {
    .feature-card {
        flex: 0 0 100%;
    }
}

/* ============================================================
   SECTION: DLC
   ============================================================ */
#section-dlc {
    padding: var(--section-padding);
    background: var(--color-bg-section);
    position: relative;
}

#section-dlc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

/* Row labels — Add-ons / Complete Editions */
.dlc-row-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    margin-bottom: 1.2rem;
}

/* Editions divider — used for both Add-ons and Complete Editions labels */
.dlc-editions-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2rem 0 1.8rem;
}

.dlc-editions-divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.dlc-editions-divider-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    white-space: nowrap;
}

/* Extra space before Complete Editions divider */
.dlc-grid + .dlc-editions-divider {
    margin-top: 4rem;
}

/* Platform badge — inline with title */
.dlc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.dlc-platform-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    background: var(--color-orange-glow);
    border: 1px solid var(--color-orange-dim);
    padding: 0.2em 0.7em;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dlc-platform-badge--exclusive {
    color: var(--color-orange);
    border-color: var(--color-orange-dim);
    background: var(--color-orange-glow);
}

/* DLC grid */
.dlc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 0;
}

.dlc-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dlc-card:hover {
    border-color: var(--color-blue-dim);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08);
}

/* Image hero with gradient overlay and title */
.dlc-image {
    width: 100%;
    height: 130px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-deep);
}

.dlc-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.dlc-card:hover .dlc-image img {
    transform: scale(1.03);
}

.dlc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 14, 17, 0.05) 0%,
        rgba(13, 14, 17, 0.15) 40%,
        rgba(13, 14, 17, 0.88) 100%
    );
    z-index: 1;
}

.dlc-image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 8px 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-white);
}

.dlc-image .img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    font-size: 0.65rem;
}

/* Text content below image */
.dlc-content {
    padding: 0.8rem 1.2rem;
    flex: 1;
}

.dlc-title {
    display: none;
}

.dlc-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

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

/* ============================================================
   SECTION: MEDIA
   ============================================================ */
#section-media {
    padding: var(--section-padding);
    background: var(--color-bg-section);
    position: relative;
}

#section-media::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1500 / 630;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-slide .img-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    border: none;
    border-radius: 0;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 2px;
    flex-shrink: 0;
}
.carousel-btn:hover {
    border-color: var(--color-blue-primary);
    color: var(--color-blue-primary);
    background: var(--color-blue-glow);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border-bright);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}
.carousel-dot.active {
    background: var(--color-blue-primary);
    width: 22px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(74, 159, 255, 0.5);
}

/* Video embeds — two column */
.video-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.video-embed-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.video-embed-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    text-align: center;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.video-embed-container iframe,
.video-embed-container .img-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SECTION: COMMUNITY
   ============================================================ */
#section-community {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
    position: relative;
}

#section-community::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

/* Community row divider */
.community-row-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2.5rem 0 1.5rem;
}

.community-row-divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.community-row-divider-text {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0;
}

.community-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.8rem;
    aspect-ratio: 3 / 2;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 3px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Glow effect on hover */
.community-link-card:hover {
    border-color: var(--color-blue-primary);
    color: var(--color-blue-bright);
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(74, 159, 255, 0.3),
        0 6px 30px rgba(74, 159, 255, 0.2),
        0 0 60px rgba(74, 159, 255, 0.08);
}

/* Dark overlay for cards with background image */
.community-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 15, 0.72);
    transition: background var(--transition-fast);
    z-index: 0;
}

.community-link-card.has-bg:hover .community-card-overlay {
    background: rgba(3, 7, 15, 0.55);
}

/* Inner wrapper sits above overlay */
.community-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.community-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.community-card-logo img {
    max-height: 32px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.85);
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.community-link-card:hover .community-card-logo img {
    filter: brightness(1);
    transform: scale(1.05);
}

.community-card-logo-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
}

.community-card-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    transition: color var(--transition-fast);
}

.community-link-card:hover .community-card-name {
    color: var(--color-blue-bright);
}

.link-desc {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.community-link-card:hover .link-desc {
    color: var(--color-text-primary);
}

@media (max-width: 1024px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   SECTION: BUY THE GAME
   ============================================================ */
#section-buy {
    padding: var(--section-padding);
    background: var(--color-bg-section);
    position: relative;
}

#section-buy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

/* Tab toggles */
.buy-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 2.5rem;
}

.buy-tab {
    padding: 0.6em 2em;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}

.buy-tab:hover {
    border-color: var(--color-blue-dim);
    color: var(--color-blue-primary);
}

.buy-tab.active {
    background: var(--color-blue-glow);
    border-color: var(--color-blue-dim);
    color: var(--color-blue-primary);
}

/* Tab content */
.buy-tab-content {
    display: none !important;
}

.buy-tab-content.active {
    display: block !important;
}

/* Cards grid */
.buy-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.buy-cards-grid--addons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.buy-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.buy-card:hover {
    border-color: var(--color-blue-dim);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.08);
}

.buy-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.buy-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.buy-card:hover .buy-card-cover img {
    transform: scale(1.03);
}

.buy-card-cover .img-placeholder {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.buy-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.buy-card-desc {
    flex: 1;
}

.buy-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.buy-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-blue-primary);
    margin: 0;
}

.buy-card-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888b94;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.15em 0.6em;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.buy-card-desc {
    font-size: 0.83rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.buy-card-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    justify-content: center;
}

.buy-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 26, 0.08);
    border: 1px solid rgba(255, 107, 26, 0.4);
    border-radius: 2px;
    color: #ffffff;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.buy-store-btn:hover {
    border-color: var(--color-orange);
    background: rgba(255, 107, 26, 0.15);
}

.buy-store-btn img,
.buy-store-btn svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1024px) {
    .buy-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .buy-cards-grid--addons {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .buy-cards-grid,
    .buy-cards-grid--addons {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ============================================================
   SECTION: EVERSPACE 2
   ============================================================ */
#section-es2 {
    padding: var(--section-padding);
    background: #131118;
    position: relative;
    overflow: hidden;
}

#section-es2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

/* Subtle accent tint — ES2 has a slightly warmer blue */
#section-es2::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse at bottom right, rgba(0, 150, 200, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.es2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.es2-image {
    aspect-ratio: unset;
    align-self: stretch;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid var(--color-blue-dim);
    animation: es2Glow 3s ease-in-out infinite;
}

@keyframes es2Glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.08); }
    50%       { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 50px rgba(0, 212, 255, 0.2); }
}

.es2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.es2-image:hover img {
    transform: scale(1.03);
}

.es2-image .img-placeholder {
    width: 100%;
    height: 100%;
    border: none;
}

.es2-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    border: 1px solid var(--color-blue-dim);
    padding: 0.3em 0.9em;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    background: var(--color-blue-glow);
}

.es2-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.es2-content .es2-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.es2-content p {
    font-size: 0.97rem;
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0 2.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.footer-studio {
    text-align: left;
}

.footer-studio-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    margin-bottom: 0.3rem;
}

.footer-studio-name a {
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-studio-name a:hover {
    color: var(--color-blue-bright);
}

.footer-studio-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.footer-logo-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo-area img {
    height: 100px;
    width: auto;
    display: block;
}

.footer-logo-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.footer-contact {
    text-align: right;
}

.footer-contact-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a.footer-contact-label:hover {
    color: var(--color-blue-bright);
}

.footer-contact a {
    font-size: 0.88rem;
    color: var(--color-blue-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-legal {
    font-size: 0.73rem;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
    line-height: 1.6;
    text-align: center;
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all var(--transition-fast);
}
.footer-legal a:hover {
    color: var(--color-blue-primary);
    text-decoration-color: var(--color-blue-dim);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.73rem;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

.footer-legal-links a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all var(--transition-fast);
}
.footer-legal-links a:hover {
    color: var(--color-blue-primary);
    text-decoration-color: var(--color-blue-dim);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

/* Click ripple */
.cursor-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.7);
    transform: translate(-50%, -50%) scale(0);
    animation: cursorRipple 0.5s ease-out forwards;
}

@keyframes cursorRipple {
    0%   { width: 0;    height: 0;    opacity: 0.8; }
    100% { width: 50px; height: 50px; opacity: 0; }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-bright);
    color: var(--color-blue-primary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

#back-to-top.visible {
    display: flex;
}

#back-to-top:hover {
    background: var(--color-blue-glow);
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 15px rgba(74, 159, 255, 0.2);
}

/* ============================================================
   PAGE BANNER TEMPLATE
   ============================================================ */
.page-banner-hero {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    overflow: hidden;
}

.page-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center !important;
    background-repeat: no-repeat;
}

/* Ken Burns subtle zoom */
.page-banner-kenburns {
    animation: kenBurns 10s ease-out forwards;
    transform-origin: center center;
}

@keyframes kenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.page-banner-image--placeholder {
    background: var(--color-bg-card);
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 14, 17, 0.3) 0%,
        rgba(13, 14, 17, 0.75) 60%,
        rgba(13, 14, 17, 0.97) 100%
    );
    z-index: 1;
}

/* Title wrap — bottom position (default) */
.page-banner-hero--bottom .page-banner-title-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding-bottom: 2rem;
}

/* Title wrap — centered position */
.page-banner-hero--center .page-banner-title-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.page-banner-title-wrap .container {
    width: 100%;
}

.page-banner-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-white);
    margin: 0;
    text-align: left;
}

.page-banner-title-wrap .section-divider {
    display: none;
}

.legal-page-inner {
    max-width: 860px;
    margin: 0 auto;
}

.legal-page--banner {
    padding-top: 3rem;
}

@media (max-width: 768px) {
    .page-banner-hero {
        height: 180px !important;
    }
}

/* ============================================================
   LEGAL PAGES (Privacy Policy, Imprint, Terms)
   ============================================================ */
.page-main {
    padding-top: var(--header-height);
    min-height: 80vh;
    background: var(--color-bg-deep);
}

.page-main--banner {
    padding-top: 0 !important;
}

.legal-page {
    padding: 5rem 0 6rem;
    max-width: 860px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    margin: 0;
}

/* Page content — style all common HTML elements */
.page-content {
    color: var(--color-text-primary);
    font-size: 0.97rem;
    line-height: 1.85;
}

.page-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    margin: 2.5rem 0 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.page-content h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-blue-primary);
    margin: 1.8rem 0 0.6rem;
}

.page-content p {
    margin-bottom: 1.2rem;
    color: var(--color-text-primary);
}

.page-content a {
    color: var(--color-blue-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-blue-dim);
}

.page-content a:hover {
    color: var(--color-blue-bright);
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.2rem 1.5rem;
    color: var(--color-text-primary);
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 0.4rem;
}

.page-content strong {
    color: var(--color-text-white);
    font-weight: 700;
}

.page-content em {
    color: var(--color-text-muted);
    font-style: italic;
}

.page-content blockquote {
    border-left: 3px solid var(--color-blue-dim);
    padding: 0.8rem 1.2rem;
    margin: 1.5rem 0;
    background: var(--color-bg-card);
    color: var(--color-text-muted);
    font-style: italic;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.page-content th {
    text-align: left;
    padding: 0.6rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-blue-primary);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.page-content td {
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.page-content tr:nth-child(even) td {
    background: var(--color-bg-card);
}

.page-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

/* Back button */
.page-back {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ES2 platform buttons */
.es2-platforms {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.es2-platforms-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.es2-platform-btns {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.es2-platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: nowrap;
}

.es2-platform-btn svg {
    display: block;
    flex-shrink: 0;
}

.es2-platform-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter var(--transition-fast);
}

.es2-platform-btn:hover {
    border-color: var(--color-blue-primary);
    background: var(--color-blue-glow);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
    color: var(--color-blue-primary);
}

.es2-platform-btn:hover img,
.es2-platform-btn:hover svg {
    filter: brightness(1);
    color: var(--color-blue-primary);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 0 28px;
    }

    .community-layout,
    .es2-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .es2-image {
        order: -1;
    }

    .buy-game-box {
        flex-direction: column;
        text-align: center;
    }

    .buy-game-cover {
        flex: 0 0 auto;
        width: 180px;
        margin: 0 auto;
    }

    .store-buttons {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-logo-area {
        grid-column: 1 / -1;
        order: -1;
    }
    .footer-contact {
        text-align: left;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
        --container-padding: 0 20px;
        --header-height: 66px;
    }

    /* Mobile — hide header/nav entirely */
    #site-header {
        display: none !important;
    }

    /* Remove header offset since header is hidden */
    #section-home,
    .page-main,
    .page-banner-hero,
    .page-404 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Community links */
    .community-links {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Buy */
    .buy-game-box {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-studio {
        order: 1;
        text-align: center;
    }
    .footer-logo-area {
        order: 2;
    }
    .footer-contact {
        order: 3;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-legal-links {
        justify-content: center;
    }

    /* Carousel */
    .carousel-slide {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .hero-game-logo {
        max-width: 280px;
    }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
}

.error-404-code {
    font-size: clamp(8rem, 25vw, 14rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--color-blue-primary);
    line-height: 1;
    margin: 0;
}

.error-404-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-white);
    margin: 0;
}

.error-404-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

.error-404-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}