/* ShockBrawl Arcade — synthwave theme */

:root {
    --bg: #0b0620;
    --bg-raise: #140b33;
    --card: #171040;
    --card-hover: #1f1454;
    --line: #322368;
    --line-bright: #4b35a0;
    --text: #f4f0ff;
    --muted: #a99cd8;
    --pink: #ff4d9d;
    --cyan: #35e0ff;
    --gold: #ffd166;
    --font-display: 'Orbitron', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html {
    background: var(--bg);
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(11, 6, 32, .72);
    border-bottom: 1px solid rgba(75, 53, 160, .35);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand .bolt { width: 1.5rem; height: 1.5rem; flex: none; }

.brand .shock { color: var(--pink); }

.nav-links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .04em;
    transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 6.5rem 0 7.5rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* glow orbs */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(600px 320px at 20% 10%, rgba(255, 77, 157, .22), transparent 70%),
        radial-gradient(700px 380px at 85% 25%, rgba(53, 224, 255, .16), transparent 70%),
        radial-gradient(900px 500px at 50% 110%, rgba(124, 58, 237, .28), transparent 70%);
}

/* perspective grid floor */
.hero::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -14rem;
    height: 22rem;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 77, 157, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 77, 157, .35) 1px, transparent 1px);
    background-size: 3.2rem 3.2rem;
    transform: perspective(420px) rotateX(62deg);
    transform-origin: center top;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%);
    mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(53, 224, 255, .35);
    border-radius: 999px;
    padding: .45rem 1rem;
    margin-bottom: 1.6rem;
    background: rgba(53, 224, 255, .06);
}

.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 7.5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero h1 .grad {
    background: linear-gradient(92deg, var(--pink) 10%, #b96bff 50%, var(--cyan) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 77, 157, .45));
}

.hero .tagline {
    margin: 1.4rem auto 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px;
    padding: .95rem 1.7rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
    color: #23041a;
    background: linear-gradient(120deg, var(--pink), #ff7ab8);
    box-shadow: 0 0 24px rgba(255, 77, 157, .45);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(255, 77, 157, .7);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line-bright);
    background: rgba(23, 16, 64, .5);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--card-hover);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

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

@media (prefers-reduced-motion: reduce) {
    .btn, .card, .nav-links a { transition: none; }
    .btn:hover, .btn:focus-visible { transform: none; }
}

/* ---------- Sections ---------- */

.section { padding: 3.5rem 0 4.5rem; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: .6rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.section-head .count {
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .06em;
}

/* ---------- Game cards ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card.playable:hover,
.card.playable:focus-visible {
    transform: translateY(-6px);
    border-color: var(--pink);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .5),
        0 0 28px rgba(255, 77, 157, .28);
}

.card.playable:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.art-frame { position: relative; }

.art {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background: #241046;
}

.card.playable .art { transition: transform .3s ease; }

@media (prefers-reduced-motion: no-preference) {
    .card.playable:hover .art { transform: scale(1.04); }
}

/* soft gradient over the bottom of the art so badges stay readable */
.art-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(11, 6, 32, .75), transparent);
    pointer-events: none;
}

.art.placeholder {
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.art.a { background: linear-gradient(150deg, #3b1d6e, #7a2f8f 55%, #c2418c); }
.art.b { background: linear-gradient(150deg, #10304f, #1c6b7a 55%, #38b2a0); }
.art.c { background: linear-gradient(150deg, #5c1a2e, #a63a2f 55%, #e0803a); }
.art.d { background: linear-gradient(150deg, #123a2c, #1f7a5a 55%, #59d68f); }
.art.e { background: linear-gradient(150deg, #33135e, #7136c9 55%, #35a0ff); }

.meta {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    flex: 1;
}

.title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
}

.genre {
    color: var(--muted);
    font-size: .8rem;
    letter-spacing: .03em;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .4rem;
}

.year { color: var(--muted); font-size: .85rem; }

.badge {
    font-family: var(--font-display);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.badge.play {
    background: linear-gradient(120deg, var(--pink), #ff7ab8);
    color: #23041a;
    box-shadow: 0 0 14px rgba(255, 77, 157, .45);
}

.badge.soon {
    background: rgba(169, 156, 216, .14);
    color: var(--muted);
    border: 1px solid rgba(169, 156, 216, .25);
}

.card.soon { opacity: .6; }

/* ---------- Feature strip ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.feature {
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem 1.4rem 1.5rem;
}

.feature .icon {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: rgba(53, 224, 255, .1);
    border: 1px solid rgba(53, 224, 255, .3);
    margin-bottom: .9rem;
    font-size: 1.2rem;
}

.feature h3 {
    margin: 0 0 .4rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
}

/* ---------- SEO copy / FAQ ---------- */

.seo-copy { max-width: 780px; }

.seo-copy p {
    color: var(--muted);
    line-height: 1.75;
    font-size: .96rem;
}

.seo-copy strong { color: var(--text); }

.seo-copy h3 {
    margin: 2.2rem 0 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.faq { margin: 0; }

.faq dt {
    color: var(--text);
    font-weight: 600;
    margin-top: 1.2rem;
}

.faq dd {
    margin: .4rem 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: .93rem;
}

/* ---------- Legal / text pages ---------- */

.page {
    max-width: 720px;
    padding: 3.5rem 0 4rem;
}

.page h1 {
    margin: 0 0 .5rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.page h2 {
    margin: 2.2rem 0 .6rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text);
}

.page p, .page li {
    color: var(--muted);
    line-height: 1.75;
    font-size: .95rem;
}

.page strong { color: var(--text); }
.page a { color: var(--pink); }

.page .updated {
    color: var(--muted);
    font-size: .82rem;
    letter-spacing: .04em;
    margin: 0 0 2rem;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 2.5rem 0 0;
    color: var(--cyan);
    text-decoration: none;
    font-size: .9rem;
}

.back:hover, .back:focus-visible { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(11, 6, 32, .6);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-content: space-between;
}

.footer-brand {
    max-width: 22rem;
}

.footer-brand .brand { margin-bottom: .8rem; }

.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.7;
}

.footer-col h4 {
    margin: 0 0 .8rem;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

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

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--pink);
    text-decoration: underline;
}

.footer-legal {
    border-top: 1px solid var(--line);
}

.footer-legal-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    justify-content: space-between;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.6;
}

.footer-legal-inner p { margin: 0; }

/* ---------- Ad slots ---------- */

/* Hidden unless AdSense actually fills the unit. It stamps the <ins> with
   data-ad-status="filled" / "unfilled", so :has() lets the label and its
   spacing disappear together on an unfilled slot -- otherwise every page
   would carry two "Advertisement" captions over empty boxes, which is how it
   looks before the account is approved and on every no-fill impression after. */
.ad-slot {
    display: none;
    padding: .5rem 0 3rem;
    text-align: center;
}

.ad-slot:has(ins[data-ad-status="filled"]) {
    display: block;
}

.ad-slot__label {
    display: block;
    margin-bottom: .6rem;
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ad-slot ins {
    display: block;
}
