/* Free social games — UK English site, dark theme */
:root {
    --bg-deep: #070b14;
    --bg: #0a0e1a;
    --surface: #121a2b;
    --surface2: #1a2540;
    --border: rgba(148, 163, 184, 0.15);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent2: #2563eb;
    --yellow: #fbbf24;
    --radius: 14px;
    --radius-sm: 10px;
    --header-h: 72px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    padding-top: var(--header-h);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: min(1120px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
    opacity: 0.92;
}

.brand img {
    width: 40px;
    height: 40px;
}

.nav-toggle {
    display: none;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: var(--text);
}

.nav a[aria-current='page'] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-cta {
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(56, 189, 248, 0.4);
}

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

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        background: rgba(7, 11, 20, 0.97);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 0.5rem 0;
    }

    .header-cta {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse 80% 50% at 50% -20%,
            rgba(56, 189, 248, 0.12),
            transparent
        ),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath fill='%23334155' fill-opacity='0.15' d='M0 0h30v30H0zm30 30h30v30H30z'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-kicker {
    color: var(--yellow);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.hero .hl {
    background: linear-gradient(90deg, var(--accent), #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    color: var(--muted);
    font-size: 1.0625rem;
    margin: 0 0 1.75rem;
}

.hero-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.hero-disclaimer span {
    margin: 0 0.35rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

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

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

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

.feature-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Game preview / card */
.game-section {
    background: linear-gradient(
        180deg,
        var(--bg) 0%,
        var(--bg-deep) 50%,
        var(--bg) 100%
    );
}

.game-card-large {
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.game-card-large .thumb {
    aspect-ratio: 16 / 9;
    background: var(--surface2);
}

.game-card-large .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-card-large .body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.game-card-large h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

/* Notice 18+ */
.notice-block {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
}

.notice-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--yellow), #d97706);
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-block h2 {
    color: var(--yellow);
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.notice-block p {
    color: var(--muted);
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
}

/* Page hero inner pages */
.page-hero {
    padding: 2.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.page-hero .lead {
    margin: 0;
}

.prose {
    max-width: 720px;
}

.prose h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose ul {
    padding-left: 1.25rem;
}

.prose a {
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.footer-col h3 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-col a {
    color: var(--text);
    font-size: 0.9375rem;
}

.support-strip {
    border-top: 1px solid var(--border);
    padding-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.support-strip p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.875rem;
    max-width: 640px;
}

.support-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
}

.support-logos a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.support-logos a:hover {
    border-color: rgba(56, 189, 248, 0.35);
    text-decoration: none;
}

.support-logos img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

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

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem;
    background: rgba(18, 26, 43, 0.97);
    border-top: 1px solid var(--border);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 560px;
}

.cookie-banner .actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
