:root {
    --bg: #0a0a0c;
    --surface: #111115;
    --line: #222228;
    --line-strong: #33333c;
    --text: #ececf1;
    --text-soft: #9a9aa6;
    --text-faint: #7c7c88;
    --accent: #ff3d9a;
    --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --wrap: 70rem;
    --label: 12rem;
    --radius: 1rem;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background:
        radial-gradient(60rem 32rem at 12% -12rem, rgba(255, 61, 154, .09), transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: .75rem; background: var(--text); color: var(--bg); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: .75rem; color: var(--bg); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(10, 10, 12, .72);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.1rem; }
.mark { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.mark::before { content: ""; width: .65rem; height: .65rem; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(255, 61, 154, .55); }
.site-nav { display: flex; gap: 2rem; font-size: .975rem; }
.site-nav a { color: var(--text-soft); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 10vw, 7rem); }
.eyebrow {
    margin: 0 0 1.5rem;
    font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-faint);
}
.hero h1 {
    margin: 0 0 1.75rem;
    font-size: clamp(2.75rem, 11vw, 7.5rem);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.05em;
}
.hero h1 span { color: var(--accent); }
.hero p.lead { margin: 0; max-width: 32ch; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.45; color: var(--text-soft); }
/* Smaller hero for inner pages */
.hero--page { padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem); }
.hero--page h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 5rem); }

/* Sections: label column + content column */
.section { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.section .wrap { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 1.5rem 2rem; }
.section h2 {
    margin: 0;
    font-size: .8rem; font-weight: 500; line-height: 2.1; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-faint);
}

/* Game card */
.game {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
}
.game-head {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: center;
}
.game-icon {
    width: 5rem; aspect-ratio: 1;
    border-radius: 22%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game h3 { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.game-meta { margin: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.game-meta li {
    font-size: .8rem; color: var(--text-soft);
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: .1rem .6rem;
}
.game-desc { margin: 1.5rem 0 0; max-width: 62ch; color: var(--text-soft); }

.store-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    background: var(--text); color: var(--bg);
    font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.store-btn:hover { background: var(--accent); color: var(--bg); box-shadow: 0 0 24px rgba(255, 61, 154, .35); }
.store-btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.shots {
    list-style: none; margin: 1.75rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
.shots img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: .6rem;
    border: 1px solid var(--line);
    background: var(--bg);
}

/* Studio */
.prose p { margin: 0 0 1rem; max-width: 58ch; }
.prose p:last-child { margin-bottom: 0; }
.prose p + p { color: var(--text-soft); }

/* Contact */
.contact p { margin: 0 0 1.25rem; max-width: 50ch; color: var(--text-soft); }
.email {
    font-size: clamp(1.5rem, 4.2vw, 2.5rem); font-weight: 500; letter-spacing: -.03em;
    text-decoration: none;
    overflow-wrap: anywhere;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    padding-bottom: .1em;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--text-faint); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem 2.25rem; }
.site-footer a { color: var(--text-faint); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
    .section .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-nav { gap: 1.25rem; }
    .game-head { grid-template-columns: 4rem minmax(0, 1fr); }
    .game-icon { width: 4rem; }
    .game h3 { font-size: 1.3rem; }
    .store-btn { grid-column: 1 / -1; width: 100%; }
    /* Screenshots become a swipeable row */
    .shots {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * clamp(1.25rem, 3vw, 2rem));
        padding-inline: clamp(1.25rem, 3vw, 2rem);
        scroll-padding-inline: clamp(1.25rem, 3vw, 2rem);
        scrollbar-width: none;
    }
    .shots::-webkit-scrollbar { display: none; }
    .shots li { flex: 0 0 85%; scroll-snap-align: start; }
}
@media (max-width: 400px) {
    /* Keep the header on one line on small phones */
    .wrap { width: min(100% - 2.5rem, var(--wrap)); }
    .site-header .wrap { column-gap: 1rem; }
    .mark { font-size: 1rem; }
    .site-nav { gap: .75rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
