/* Fuzzy Robotics — cyberpunk 80s synth + 90s grunge */
:root {
    --bg: #0d0f14;
    --bg-deep: #08090d;
    --surface: #14191f;
    --surface-alt: #0e1116;
    --border: #2a3142;
    --border-subtle: #1a1f2a;
    --text: #e2e5ec;
    --text-muted: #7d8599;
    /* Synth neon */
    --accent: #00d4aa;
    --accent-dim: #00a884;
    --accent-glow: rgba(0, 212, 170, 0.18);
    --accent-glow-strong: rgba(0, 212, 170, 0.28);
    --neon-pink: #ff2a6d;
    --neon-pink-glow: rgba(255, 42, 109, 0.22);
    --neon-blue: #05d9e8;
    --neon-blue-glow: rgba(5, 217, 232, 0.18);
    --neon-purple: #9d4edd;
    --neon-orange: #ff6b35;
    /* Grunge */
    --grunge-rust: #8b4513;
    --grunge-olive: #4a5d23;
    --grunge-mustard: #c4a035;
    --grunge-dirt: rgba(60, 45, 35, 0.4);
    --grunge-warm: rgba(80, 50, 30, 0.12);
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--grunge-warm);
    mix-blend-mode: multiply;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
}

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

.container.narrow {
    max-width: 640px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 11, 0.94);
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: 0 2px 0 var(--grunge-warm);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    transition: padding 0.2s ease;
}

.site-header.scrolled .header-inner {
    padding: 0.5rem 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.brand:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 12px var(--neon-blue-glow);
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

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

.nav a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink-glow);
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 5rem;
    text-align: center;
    background:
        linear-gradient(180deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 42, 109, 0.06) 70%,
            rgba(255, 42, 109, 0.14) 85%,
            rgba(255, 42, 109, 0.22) 100%),
        linear-gradient(180deg,
            #0c0810 0%,
            #0a0a0e 15%,
            var(--bg-deep) 25%,
            var(--bg) 50%,
            #0e0c12 80%,
            var(--surface-alt) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent 0px, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(115deg, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(245deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 100% 4px, 72px 72px, 72px 72px;
    opacity: 0.35;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 80% at 30% 20%, var(--neon-pink-glow) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 70% 80%, var(--neon-blue-glow) 0%, transparent 50%),
        radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 10;
}

.hero-mountains {
    position: absolute;
    left: 0;
    right: 0;
    top: 52%;
    transform: translateY(-50%);
    height: 38px;
    z-index: 1;
    pointer-events: none;
}

.hero-mountains svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-mountains-line {
    stroke-width: 1;
    opacity: 0.5;
    filter: drop-shadow(0 0 4px rgba(5, 217, 232, 0.15)) drop-shadow(0 0 4px rgba(255, 42, 109, 0.15));
}

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

.hero-title {
    margin: 0 0 0.75rem;
    font-family: 'Rubik Distressed', var(--font-mono);
    font-size: clamp(1.5rem, 6.5vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--accent) 35%, var(--neon-pink) 70%, var(--neon-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.7)) drop-shadow(-1px -1px 0 rgba(0, 0, 0, 0.3)) drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 20px var(--neon-pink-glow));
}

.hero-tagline {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


.hero-subtitle {
    position: relative;
    z-index: 1;
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    color: var(--text);
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--accent) 45%, var(--neon-pink) 85%, var(--neon-orange) 100%);
    color: var(--bg);
    box-shadow: 0 0 24px var(--accent-glow), 0 0 16px var(--neon-pink-glow), 2px 2px 0 var(--grunge-dirt);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 32px var(--accent-glow-strong), 0 0 24px var(--neon-pink-glow);
}

/* Sections */
.section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
}

.section-about {
    background: var(--surface-alt);
    border-top-color: var(--border-subtle);
}

.section-products,
.section-experiments {
    background: var(--bg);
    border-top-color: var(--border-subtle);
}

.game-card {
    padding: 1.75rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--neon-pink);
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), -2px 0 20px var(--neon-pink-glow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.game-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.game-card-meta {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.game-card p {
    margin: 0 0 1rem;
}

.game-card-links {
    margin: 1.25rem 0 0 !important;
}

.section-title {
    margin: 0 0 0.5rem;
    font-family: 'Teko', var(--font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 0 20px var(--neon-blue-glow), 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.section-desc {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.struck {
    text-decoration: line-through;
    opacity: 0.85;
}

.product-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bg);
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border-radius: 4px;
    vertical-align: middle;
    box-shadow: 0 0 12px var(--neon-pink-glow);
}

.lead {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.lead .neon-tint {
    font-weight: 500;
}

.lead .neon-tint-blue {
    color: rgba(5, 217, 232, 0.85);
    text-shadow: 0 0 20px rgba(5, 217, 232, 0.25);
}

.lead .neon-tint-pink {
    color: rgba(255, 42, 109, 0.85);
    text-shadow: 0 0 20px rgba(255, 42, 109, 0.25);
}

.game-features {
    margin: 1rem 0 1.5rem;
    padding-left: 1.25rem;
}

.game-features li {
    margin-bottom: 0.5rem;
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Card samples */
.section-samples {
    background: var(--surface);
}

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

.card-sample h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-placeholder {
    display: flex;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-placeholder span {
    flex: 1;
    text-align: center;
}

/* Notify form */
.notify-form .hidden {
    position: absolute;
    left: -9999px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 420px;
}

.notify-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.notify-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.notify-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.bgg-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-location {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.85;
}

/* Rules page */
.rules-page {
    padding: 2rem 0 4rem;
}

.rules-inner {
    --rules-hr: var(--border);
}

.rules-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.rules-intro {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.rules-inner hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--rules-hr);
}

.rules-inner h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
}

.rules-inner h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.rules-inner p {
    margin: 0 0 1rem;
}

.rules-inner ul,
.rules-inner ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.rules-inner li {
    margin-bottom: 0.4rem;
}

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

.rules-inner a:hover {
    text-decoration: underline;
}

.rules-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rules-table th,
.rules-table td {
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.rules-table th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text);
}

.rules-table tr:last-child td {
    border-bottom: 0;
}

.rules-table td:first-child {
    white-space: nowrap;
    color: var(--accent);
}

.rules-footer-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .nav {
        gap: 1rem;
    }
    .hero {
        padding: 3rem 0 4rem;
    }
    .hero-title {
        letter-spacing: 0.04em;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
        letter-spacing: 0.02em;
    }
}
