@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Literata:ital,opsz,wght@0,7..72,500;0,7..72,600;0,7..72,700;1,7..72,400&display=swap');

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

:root {
    /* Brand — ink, paper, brass (distinct from generic neon templates) */
    --page: #050608;
    --page-elevated: #0a0c10;
    --surface: #11141a;
    --surface-hover: #161a22;
    --border: rgba(255, 255, 255, 0.065);
    --border-strong: rgba(255, 255, 255, 0.11);
    --text: #f2f3f5;
    --text-secondary: #b8bcc8;
    --text-muted: #7d8494;
    --accent: #c9a962;
    --accent-soft: rgba(201, 169, 98, 0.14);
    --accent-hover: #d4b872;
    --link: #8ab4f8;
    --link-hover: #aecbfa;
    --success-muted: #6b9b8a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Literata', Georgia, 'Times New Roman', serif;
    --space-section: clamp(4rem, 10vw, 6.5rem);
    --content-max: 72rem;

    /* Legacy aliases — embedded game inline styles */
    --primary-color: #c9a962;
    --primary-dark: #a88b4a;
    --primary-light: #d4b872;
    --accent-color: #8ab4f8;
    --text-dark: #f2f3f5;
    --text-light: #7d8494;
    --bg-light: #11141a;
    --bg-white: #161a22;
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.2s var(--ease);
    --bg: var(--page);
    --surface-2: var(--surface-hover);
    --electric: var(--accent);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--text-secondary);
    background: var(--page);
    overflow-x: hidden;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 15% -10%, rgba(201, 169, 98, 0.07), transparent 55%),
        radial-gradient(ellipse 80% 50% at 85% 0%, rgba(138, 180, 248, 0.05), transparent 50%),
        linear-gradient(180deg, var(--page) 0%, var(--page-elevated) 45%, var(--page) 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 5vw, 2.5rem);
    padding-right: clamp(1.25rem, 5vw, 2.5rem);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); }

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

/* Inline links in prose */
.hero-subtitle a,
.content-wrapper a,
.modal-content a,
.age-modal a,
.cookie-content a,
.footer-disclaimer a:not(.help-links a) {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.hero-subtitle a:hover,
.content-wrapper a:hover,
.modal-content a:hover,
.cookie-content a:hover {
    color: var(--link-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
    color: #0a0a0c;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #dfc78a 0%, #c9a962 100%);
    box-shadow: 0 2px 12px rgba(201, 169, 98, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.88);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.modal.active { display: flex; }

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    max-width: 28rem;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.age-modal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    background: var(--accent-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    color: var(--accent);
}

.age-modal h2 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.age-modal p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.age-checkbox {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.age-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.age-checkbox label {
    font-size: 0.9375rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Cookie */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
    padding: 1rem 0;
    z-index: 9999;
    animation: slideUp 0.3s var(--ease);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner.active { display: block; }

.cookie-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 2.5rem);
    padding-right: clamp(1.25rem, 5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
    min-width: min(100%, 280px);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 6, 8, 0.82);
    backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3.75rem;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    color: var(--text);
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, var(--accent) 0%, #8a7340 100%);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px solid rgba(10, 10, 12, 0.35);
    border-radius: 4px;
    transform: rotate(9deg);
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-xs);
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-xs);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(4rem, 8vw, 5.5rem);
    min-height: 0;
}

.hero-visual {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mesh {
    position: absolute;
    inset: -15% -10%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.09), transparent 65%);
    pointer-events: none;
}

.hero-card-stack {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.125rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-md);
}

.hero-card:nth-child(1) { transform: rotate(-1deg); }
.hero-card:nth-child(2) { transform: rotate(1deg) translateX(0.5rem); }
.hero-card:nth-child(3) { transform: rotate(-0.5deg) translateX(-0.25rem); }

.hero-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.hero-card strong {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero-content {
    min-width: 0;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.03);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.875rem);
    margin-bottom: 1.125rem;
    line-height: 1.12;
    color: var(--text);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.0625rem;
    max-width: 36rem;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 2rem;
    margin: 0.5rem auto 0;
    background: linear-gradient(180deg, var(--accent), transparent);
}

/* Games — fixed 6-col grid: 3 + 2 centered */
.games-section {
    padding: var(--space-section) 0;
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 48rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.section-header {
    margin-bottom: 2.75rem;
    max-width: 40rem;
}

.section-header--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header--center p {
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.625rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.game-card {
    grid-column: span 2;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.game-card--featured {
    border-color: rgba(201, 169, 98, 0.35);
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.12);
}

.game-card--featured .game-card-body {
    border-top: 1px solid rgba(201, 169, 98, 0.15);
}

/* Row 2: center two cards */
.game-card:nth-child(4) { grid-column: 2 / span 2; }
.game-card:nth-child(5) { grid-column: 4 / span 2; }

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 8, 0.88));
}

.game-thumb-dice {
    background-image:
        linear-gradient(145deg, #1a2332 0%, #0d1219 100%),
        radial-gradient(circle at 30% 25%, rgba(201, 169, 98, 0.2), transparent 50%);
}

.game-thumb-poker {
    background-image:
        linear-gradient(145deg, #14261c 0%, #0a1510 100%),
        radial-gradient(circle at 70% 20%, rgba(201, 169, 98, 0.15), transparent 45%);
}

.game-thumb-slots {
    background-image:
        linear-gradient(145deg, #2a1828 0%, #120c14 100%),
        radial-gradient(circle at 50% 75%, rgba(138, 180, 248, 0.08), transparent 50%);
}

.game-thumb-wheel {
    background-image: conic-gradient(from 0deg, #3d3420, #c9a962, #5c4a2a, #c9a962);
}

.game-thumb-pairs {
    background-image:
        linear-gradient(145deg, #152028 0%, #0a1218 100%),
        repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.02) 18px, rgba(255, 255, 255, 0.02) 19px);
}

.game-icon-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.875rem;
    z-index: 1;
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.game-card-body {
    padding: 1.25rem 1.25rem 1.375rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.game-card h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: var(--text);
}

.game-card p {
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.game-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.game-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Benefits — uniform grid */
.benefits-section {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.benefits-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.375rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.benefit-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.benefit-num {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.625rem;
}

.benefit-card h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.benefit-card p {
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
}

/* CTA */
.cta-section {
    margin: 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    text-align: center;
    background: var(--surface);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.cta-section h2 {
    position: relative;
    margin-bottom: 0.625rem;
}

.cta-section p {
    position: relative;
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    margin-top: var(--space-section);
    padding: 3.5rem 0 1.75rem;
    border-top: 1px solid var(--border);
    background: var(--page);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: 5rem;
}

.footer-badge svg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.625rem;
}

.footer-badge span {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.35;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: 0.5rem; }

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.footer-disclaimer {
    background: var(--page-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.375rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.footer-disclaimer p {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.help-links {
    list-style: none;
    display: flex;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding: 0;
}

.help-links a {
    color: var(--link);
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.help-links a:hover {
    color: var(--link-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-contact { margin-top: 0.25rem; }

/* Content pages */
.page-hero {
    padding: clamp(2.75rem, 8vw, 4rem) 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--page) 100%);
}

.page-hero h1 {
    margin-bottom: 0.625rem;
}

.page-hero p {
    font-size: 1.0625rem;
    max-width: 38rem;
    line-height: 1.6;
}

.page-content {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.content-wrapper {
    max-width: 42rem;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-family: var(--font-display);
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text);
}

.content-wrapper p { margin-bottom: 1rem; }

.content-wrapper ul, .content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Game pages */
.game-container {
    min-height: 100vh;
    padding: 2rem 0 3rem;
}

.game-header {
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.game-header h1 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.game-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.game-board {
    max-width: 50rem;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
}

.game-stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--page);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-item { text-align: center; min-width: 5rem; }

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.game-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--link);
    font-weight: 500;
    font-size: 0.875rem;
}

.back-link:hover {
    text-decoration: underline;
}

.result-message {
    text-align: center;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-weight: 500;
    font-size: 0.9375rem;
}

.result-message.win {
    background: rgba(107, 155, 138, 0.12);
    color: var(--success-muted);
    border: 1px solid rgba(107, 155, 138, 0.25);
}

.result-message.lose {
    background: rgba(201, 169, 98, 0.1);
    color: var(--accent);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.result-message.neutral {
    background: var(--page);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-card,
    .game-card:nth-child(4),
    .game-card:nth-child(5) {
        grid-column: auto;
    }

    /* Center the fifth card on its own row */
    .game-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 24rem;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    .hero-visual {
        order: -1;
        min-height: 240px;
    }

    .hero-card-stack {
        max-width: 20rem;
    }

    .benefits-wrap {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding: 0;
    }
}

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

    .game-card,
    .game-card:nth-child(4),
    .game-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 3.75rem;
        left: 0.75rem;
        right: 0.75rem;
        background: var(--surface);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        gap: 0.125rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-0.5rem);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.625rem 0.875rem;
    }

    .nav-toggle { display: flex; }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content .btn {
        width: 100%;
        max-width: 12rem;
    }

    .modal-content {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .btn-large {
        width: 100%;
    }
}

/* —— Accessibility & UX —— */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10001;
    padding: 0.65rem 1rem;
    background: var(--accent);
    color: #0a0a0c;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

#main-content:focus {
    outline: none;
}

.nav__end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.lang-switcher__sep {
    color: var(--text-muted);
    user-select: none;
}

.lang-switcher__link {
    color: var(--text-muted);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-xs);
    transition: color 0.15s ease, background 0.15s ease;
}

.lang-switcher__link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switcher__link--current {
    color: var(--accent);
    cursor: default;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9990;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

@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;
    }
}

:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}
