/* ==========================================================================
   Dimension's Edge — Main Stylesheet (Mobile-First)
   ========================================================================== */

/* --- Design Tokens --- */
:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-primary: #f59e0b;
    --color-primary-hover: #d97706;
    --color-primary-light: #fbbf24;
    --color-primary-glow: rgba(245, 158, 11, 0.25);
    --color-link: #b45309;
    --color-text: #142b1a;
    --color-text-muted: #64748b;
    --color-dark: #0a1a0f;
    --color-dark-mid: #142b1a;
    --color-dark-text: #f1f5f1;
    --color-border: #e2e8f0;
    --color-shadow: rgba(0, 0, 0, 0.1);

    --font-heading: "Lilita One", cursive;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 20px var(--color-primary-glow);

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }

p {
    max-width: 75ch;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f2415 50%, var(--color-dark) 100%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--color-dark-text);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--color-primary);
}

.site-brand span {
    color: var(--color-primary);
}

/* Logo in nav */
.site-brand img {
    height: 44px;
    width: auto;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Hamburger open state — uses aria-expanded set by JS */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav links */
.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--color-dark) 0%, #08140b 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.1);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* JS adds nav-open directly to the <nav> element */
.site-nav.nav-open {
    display: block;
}

.site-nav ul {
    list-style: none;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 12px 24px;
    color: var(--color-dark-text);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    border-left: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background-color: rgba(245, 158, 11, 0.08);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.site-nav a[aria-current="page"] {
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    background-color: rgba(245, 158, 11, 0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 56px 0 40px;
    text-align: center;
    background: linear-gradient(160deg, var(--color-dark) 0%, #0f2415 40%, #162e1c 70%, var(--color-dark-mid) 100%);
    overflow: hidden;
}

/* Subtle geometric accent behind hero content */
.hero::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

/* Canvas for particle animation (JS creates this) */
.hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 16px;
    color: var(--color-dark-text);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero h1 .text-accent {
    color: var(--color-primary);
}

.hero p {
    margin: 0 auto 32px;
    color: rgba(241, 245, 249, 0.8);
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    max-width: 60ch;
}

/* Logo in hero */
.hero-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 32px rgba(51, 255, 51, 0.6)) drop-shadow(0 0 64px rgba(51, 255, 51, 0.3));
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-hover) 100%);
    color: var(--color-dark);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background-color: var(--color-dark);
    color: var(--color-dark-text);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.btn-secondary:hover {
    background-color: var(--color-dark-mid);
    color: var(--color-primary);
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Game Cards Grid
   ========================================================================== */
.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin-bottom: 8px;
}

.section-heading p {
    margin: 0 auto;
    color: var(--color-text-muted);
}

.games-grid-intro {
    margin-bottom: 32px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 0;
}

.game-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-bottom: 3px solid transparent;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(245, 158, 11, 0.1);
    border-bottom-color: var(--color-primary);
}

.game-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.game-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.game-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-body h2,
.game-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.game-card-body p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    flex: 1;
}

/* ==========================================================================
   Content Sections (About, FAQ, Privacy, Terms, etc.)
   ========================================================================== */
.content-section {
    padding: 32px 0 48px;
}

.content-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
}

.content-card h1 {
    margin-bottom: 24px;
}

.content-card h2 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.content-card h3 {
    margin-top: 24px;
    margin-bottom: 8px;
}

.content-card p {
    margin-bottom: 16px;
}

.content-card ul,
.content-card ol {
    margin-bottom: 16px;
}

.content-card li {
    margin-bottom: 8px;
}

.content-card a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-card a:hover {
    text-decoration-thickness: 2px;
}

/* Updated date */
.date-updated {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   FAQ Styles
   ========================================================================== */
.faq-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.faq-list li {
    margin-bottom: 0;
}

.faq-list a {
    display: block;
    padding: 12px 0 12px 12px;
    text-decoration: none;
    color: var(--color-link);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    transition: color var(--transition-fast), padding-left var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.faq-list a:hover {
    color: var(--color-primary);
    padding-left: 20px;
    border-left-color: var(--color-primary);
    background-color: rgba(245, 158, 11, 0.04);
}

.faq-item {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    transition: background-color var(--transition-fast);
}

.faq-item h2,
.faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--color-text);
    padding-left: 16px;
    border-left: 3px solid var(--color-primary);
}

.faq-item p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Game Detail Page
   ========================================================================== */
.game-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.game-detail__content {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
}

.game-detail__content h1 {
    margin-bottom: 24px;
    text-align: center;
}

/* Play Button Area */
.game-detail__play {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.btn--play {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 32px;
    background: linear-gradient(160deg, var(--color-dark) 0%, #162e1c 50%, var(--color-dark-mid) 100%);
    color: var(--color-dark-text);
    border-radius: var(--radius-xl);
    text-decoration: none;
    text-align: center;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(245, 158, 11, 0.15);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    max-width: 320px;
    width: 100%;
    overflow: hidden;
}

.btn--play:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(245, 158, 11, 0.3);
    border-color: var(--color-primary);
    color: var(--color-dark-text);
}

.btn--play:active {
    transform: translateY(0) scale(0.99);
}

.btn--play:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.btn__label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(241, 245, 249, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn__action {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    line-height: 1;
}

.btn--play:hover .btn__action {
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}

.btn__image {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Game Detail Sections */
.game-detail__section {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.game-detail__section:first-of-type {
    margin-top: 8px;
}

.game-detail__section h2 {
    margin-bottom: 12px;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    padding-left: 12px;
    border-left: 3px solid var(--color-primary);
}

.game-detail__section p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Screenshots Gallery */
.game-detail__screenshots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.game-detail__screenshot {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.game-detail__screenshot:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Tokens Display
   ========================================================================== */
#play-tokens {
    text-align: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--color-link);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #0f2415 0%, var(--color-dark) 100%);
    color: var(--color-dark-text);
    padding: 48px 0 24px;
    margin-top: 0;
}

/* Gradient transition from content to footer */
.site-footer::before {
    content: "";
    position: absolute;
    top: -48px;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(180deg, var(--color-bg) 0%, #0f2415 100%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(241, 245, 249, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Footer logo */
.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(241, 245, 249, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-primary);
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.social-links a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.social-links svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    color: rgba(241, 245, 249, 0.6);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(241, 245, 249, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Section Divider
   ========================================================================== */
.content-section + .content-section {
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */
#de-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-surface);
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    padding: 20px 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity var(--transition-slow), transform var(--transition-slow), visibility var(--transition-slow);
}

#de-consent.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

#de-consent .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

#de-consent h2 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

#de-consent p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0;
}

#de-consent a {
    color: var(--color-link);
    text-decoration: underline;
}

#de-consent .cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

#de-consent button {
    min-height: 44px;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition-base), transform var(--transition-fast);
}

#de-consent button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

#de-consent #de-consent-accept {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-hover) 100%);
    color: var(--color-dark);
}

#de-consent #de-consent-accept:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 64px 0;
}

.error-page h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 12px var(--color-primary-glow);
}

.error-page h2 {
    margin-bottom: 16px;
}

.error-page p {
    margin: 0 auto 32px;
    color: var(--color-text-muted);
    max-width: 50ch;
}

/* ==========================================================================
   Ad Styles
   ========================================================================== */
.ad {
    display: none;
}

.ad.ad-on {
    display: block;
    text-align: center;
    margin: 24px 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Focus-visible global styles
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   Responsive Breakpoints (min-width, mobile-first)
   ========================================================================== */

/* --- 480px: Larger phones --- */
@media (min-width: 480px) {
    .container {
        padding: 0 24px;
    }

    .content-card {
        padding: 32px;
    }

    .hero {
        padding: 64px 0 48px;
    }

    .hero-logo {
        width: 220px;
    }

    .game-detail {
        padding: 32px 24px 48px;
    }

    .game-detail__content {
        padding: 32px;
    }

    .game-detail__screenshots {
        grid-template-columns: repeat(2, 1fr);
    }

    #de-consent .cookie-inner {
        flex-direction: row;
        text-align: left;
    }

    #de-consent .cookie-inner > div:first-child {
        flex: 1;
    }

    #de-consent .cookie-actions {
        flex-shrink: 0;
    }
}

/* --- 768px: Tablets --- */
@media (min-width: 768px) {
    .hero {
        padding: 80px 0 64px;
    }

    .hero-logo {
        width: 260px;
        margin-bottom: 28px;
    }

    .hero::before {
        width: 900px;
        height: 900px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 32px;
    }

    .content-card {
        padding: 40px;
    }

    .game-detail {
        padding: 48px 24px 64px;
    }

    .game-detail__content {
        padding: 40px;
    }

    .btn--play {
        padding: 24px 40px;
        max-width: 360px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 48px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .content-section {
        padding: 48px 0 64px;
    }
}

/* --- 1024px: Desktop --- */
@media (min-width: 1024px) {
    /* Desktop nav: show links inline, hide hamburger */
    .hamburger {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .site-nav ul {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .site-nav a {
        padding: 8px 16px;
        border-radius: var(--radius-md);
        font-size: 1rem;
        border-left: none;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        border-left: none;
        background-color: rgba(245, 158, 11, 0.1);
    }

    .site-nav a[aria-current="page"] {
        border-left: none;
        background-color: rgba(245, 158, 11, 0.15);
        color: var(--color-primary);
    }

    .hero {
        padding: 96px 0 72px;
    }

    .hero-logo {
        width: 300px;
        margin-bottom: 32px;
    }

    .content-card {
        padding: 48px;
    }

    .game-detail__content {
        padding: 48px;
    }
}

/* --- 1280px: Large desktop --- */
@media (min-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    #de-consent,
    .btn,
    .hamburger {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .content-card {
        box-shadow: none;
        padding: 0;
        border: none;
    }

    .game-detail__content {
        box-shadow: none;
        padding: 0;
        border: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
