/* ════════════════════════════════════════════════════════════════
   BentCat Games — studio site (low-poly cyberpunk redesign)
   Ported from the design handoff (design_handoff_bentcat_site/index.html).

   This file is the source. Edit it directly — there is no build step.
   It is served as-is and compressed on the wire (see Program.cs).
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg:        #08070d;
    --bg-2:      #0d0c16;
    --bg-3:      #15131f;
    --line:      #1f1c2e;
    --line-2:    #2a2640;
    --ink:       #f3eefb;
    --ink-dim:   #9890b3;
    --ink-mute:  #5d5773;
    --magenta:   #ff2e88;
    --magenta-2: #ff67ad;
    --cyan:      #00e5ff;
    --cyan-2:    #66f0ff;
    --lime:      #d4ff3a;
    --violet:    #a86bff;

    --display: "Chakra Petch", system-ui, sans-serif;
    --body:    "Inter", system-ui, sans-serif;
    --mono:    "JetBrains Mono", ui-monospace, monospace;

    --grid: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--magenta); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Global noise + scanlines ─────────────────────────────── */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay;
    z-index: 200;
}
body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 3px 3px;
    z-index: 199;
    opacity: .35;
}

/* ─── Layout ──────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--grid); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.uc { text-transform: uppercase; letter-spacing: .14em; }
.small { font-size: 11px; }

/* ─── Nav ─────────────────────────────────────────────────── */
nav.top {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(8,7,13,0.72);
    border-bottom: 1px solid var(--line);
}
nav.top .row {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--display); font-weight: 700;
    font-size: 18px; letter-spacing: .18em;
    text-transform: uppercase;
}
.brand .mark {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: var(--magenta);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}
.brand .mark svg { width: 18px; height: 18px; }
.brand .sep { color: var(--magenta); margin: 0 2px; }
.brand .sub { color: var(--ink-dim); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .25em; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line-2); }

nav.top ul {
    display: flex; gap: 4px;
    list-style: none; margin: 0; padding: 0;
    font-family: var(--mono);
    font-size: 12px;
}
nav.top ul a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: .14em;
    transition: color .18s ease;
    position: relative;
}
nav.top ul a::before {
    content: ""; width: 6px; height: 6px;
    background: currentColor;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    opacity: .5;
}
nav.top ul a:hover { color: var(--cyan); }
nav.top ul a.active { color: var(--ink); }
nav.top ul a.active::before { background: var(--magenta); opacity: 1; }

.nav-cta {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--bg);
    background: var(--lime);
    padding: 9px 14px 9px 12px;
    clip-path: polygon(8% 0, 100% 0, 100% 70%, 92% 100%, 0 100%, 0 30%);
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700;
    transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta::after { content: "→"; }

.nav-links { display: flex; align-items: center; gap: 20px; }

/* ─── Section base ────────────────────────────────────────── */
section { position: relative; }
.sec-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .25em;
    color: var(--ink-dim);
}
.sec-label::before {
    content: ""; width: 10px; height: 10px; background: var(--magenta);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.sec-label .id { color: var(--magenta); }

.h-display {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: .94;
    text-transform: uppercase;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding: 96px 0 64px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero .poly-bg {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero .poly-bg svg { width: 100%; height: 100%; display: block; }

.hero-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(56px, 9vw, 132px);
    font-weight: 700;
    line-height: .88;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin: 24px 0 24px;
}
.hero h1 .row1, .hero h1 .row2 { display: block; }
.hero h1 .glow {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--magenta);
    text-stroke: 1.5px var(--magenta);
    text-shadow: 0 0 24px rgba(255,46,136,.35);
}
.hero h1 .slash { color: var(--cyan); margin: 0 .05em; }

.hero .lede {
    max-width: 480px;
    color: var(--ink-dim);
    font-size: 17px;
    line-height: 1.6;
}
.hero .lede strong { color: var(--ink); font-weight: 500; }

.hero-cta {
    display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}
.btn {
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .2em;
    padding: 14px 22px;
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; border: 0; transition: all .15s ease;
}
.btn-primary {
    background: var(--magenta); color: var(--bg);
    clip-path: polygon(6% 0, 100% 0, 100% 70%, 94% 100%, 0 100%, 0 30%);
}
.btn-primary:hover { background: var(--cyan); }
.btn-ghost {
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-2);
    padding: 13px 21px;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* HUD readouts */
.hud-row {
    display: flex; gap: 32px; margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.hud {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--ink-dim);
    display: flex; flex-direction: column; gap: 6px;
}
.hud .v { color: var(--ink); font-size: 18px; font-family: var(--display); letter-spacing: .04em; font-weight: 600; }
.hud .v .accent { color: var(--magenta); }

/* Hero cat */
.cat-stage {
    position: relative;
    aspect-ratio: 1 / 1.05;
    max-width: 520px;
    margin-left: auto;
    width: 100%;
}
.cat-stage .frame {
    position: absolute; inset: 0;
    background:
      linear-gradient(135deg, rgba(255,46,136,.08), rgba(0,229,255,.06)),
      var(--bg-2);
    clip-path: polygon(0 6%, 8% 0, 92% 0, 100% 6%, 100% 94%, 92% 100%, 8% 100%, 0 94%);
    border: 1px solid transparent;
}
.cat-stage .frame::before {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, transparent 50%, rgba(255,46,136,.08)),
      repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
    clip-path: inherit;
}
.cat-stage .mesh {
    position: absolute; inset: 0;
    z-index: 1;
    opacity: .55;
}
.cat-stage .cat {
    position: absolute;
    width: 78%; height: 78%;
    left: 11%; top: 14%;
    z-index: 2;
    object-fit: contain;
    filter:
      drop-shadow(0 0 30px rgba(255,46,136,.25))
      drop-shadow(0 0 60px rgba(0,229,255,.12));
    animation: float 8s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%     { transform: translateY(-12px) rotate(.3deg); }
}
.cat-stage .tag {
    position: absolute;
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--ink-dim);
    z-index: 3;
    display: flex; align-items: center; gap: 6px;
}
.cat-stage .tag.tl { top: 18px; left: 20px; color: var(--cyan); }
.cat-stage .tag.tr { top: 18px; right: 20px; }
.cat-stage .tag.bl { bottom: 18px; left: 20px; }
.cat-stage .tag.br { bottom: 18px; right: 20px; color: var(--magenta); }
.cat-stage .tag .dot { width: 6px; height: 6px; background: currentColor;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Hero bottom ticker */
.ticker {
    position: absolute;
    bottom: 24px; left: 0; right: 0;
    z-index: 5;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(8,7,13,.6);
    overflow: hidden;
    height: 38px;
}
.ticker-track {
    display: flex; gap: 48px;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .25em;
    color: var(--ink-dim);
    animation: tick 38s linear infinite;
    padding-left: 48px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track span::before { content: "◆"; color: var(--magenta); font-size: 8px; }
@keyframes tick {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── STUDIO ──────────────────────────────────────────────── */
.studio { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.studio-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 64px; margin-top: 48px;
}
@media (max-width: 900px) {
    .studio-grid { grid-template-columns: 1fr; gap: 32px; }
}
.studio h2 { font-size: clamp(40px, 5vw, 64px); margin: 16px 0 0; max-width: 14ch; }
.studio .copy { color: var(--ink-dim); font-size: 18px; line-height: 1.65; max-width: 56ch; }
.studio .copy p + p { margin-top: 16px; }
.studio .copy strong { color: var(--ink); font-weight: 500; }

.stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-top: 56px;
}
@media (max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
    padding: 24px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    position: relative;
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.stat .n {
    font-family: var(--display);
    font-size: 56px; line-height: 1; font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}
.stat .n .u { color: var(--magenta); font-size: 28px; vertical-align: top; margin-left: 4px; }
.stat .l {
    margin-top: 14px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--ink-dim);
}

/* ─── GAMES ───────────────────────────────────────────────── */
.games { padding: 140px 0 120px; border-top: 1px solid var(--line); position: relative; }
.games-head {
    display: flex; align-items: end; justify-content: space-between; gap: 32px;
    margin-bottom: 56px;
}
.games-head h2 { font-size: clamp(48px, 7vw, 96px); margin: 16px 0 0; }
.games-head .right { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .2em; text-align: right; min-width: 160px;}
.games-head .right b { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

.games-list { display: flex; flex-direction: column; gap: 16px; }
.game {
    display: grid;
    grid-template-columns: 110px 1.6fr 1fr auto;
    gap: 32px; align-items: center;
    padding: 28px 28px 28px 24px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    position: relative;
    transition: border-color .2s ease, transform .2s ease;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.game:hover { border-color: var(--magenta); }
.game .idx {
    font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
    text-transform: uppercase; letter-spacing: .25em;
}
.game .idx b { display:block; color: var(--magenta); font-size: 36px; font-family: var(--display); font-weight: 700; letter-spacing: 0; margin-top: 4px; }
.game .title {
    font-family: var(--display); font-weight: 600;
    font-size: 32px; line-height: 1.05; letter-spacing: -.005em;
    text-transform: uppercase;
}
.studio .copy a { color: var(--cyan); border-bottom: 1px solid rgba(0,229,255,.35); transition: color .18s ease, border-color .18s ease; }
.studio .copy a:hover { color: var(--magenta); border-bottom-color: var(--magenta); }

.game .title a { transition: color .18s ease; }
.game .title a:hover { color: var(--magenta); }
.game .title .go { color: var(--magenta); display: inline-block; transition: transform .18s ease; }
.game .title a:hover .go { transform: translateX(4px); }
.game .title .desc {
    display: block;
    font-family: var(--body);
    font-weight: 400;
    font-size: 14px;
    color: var(--ink-dim);
    margin-top: 8px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    max-width: 48ch;
}
.game .meta {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--ink-dim);
    display: flex; flex-direction: column; gap: 6px;
}
.game .meta div { display: flex; justify-content: space-between; gap: 12px; }
.game .meta b { color: var(--ink); font-weight: 500; }
.game .status {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .18em;
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    color: var(--ink-dim);
    white-space: nowrap;
}
.game .status.dev { color: var(--lime); border-color: rgba(212,255,58,.35); }
.game .status.dev::before { content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.game .status.released { color: var(--cyan); border-color: rgba(0,229,255,.4); }
.game .status.released::before { content: "▶"; color: currentColor; }
.game .status.alpha { color: var(--magenta); border-color: rgba(255,46,136,.4); }
.game .status.alpha::before { content: "◆"; color: currentColor; font-size: 9px; }

@keyframes pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,255,58,.6); }
    50%     { opacity: .55; box-shadow: 0 0 0 6px rgba(212,255,58,0); }
}
@media (max-width: 900px) {
    .game { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
    .game .title { font-size: 26px; }
}

/* ─── TEAM ────────────────────────────────────────────────── */
.team { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.team h2 { font-size: clamp(48px, 7vw, 96px); margin: 16px 0 48px; }
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

.crew {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    transition: border-color .2s;
}
.crew:hover { border-color: var(--magenta); }
.crew .portrait {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
      linear-gradient(135deg, rgba(168,107,255,.18), rgba(0,229,255,.08)),
      var(--bg-3);
    overflow: hidden;
}
.crew .portrait .mesh { position: absolute; inset: 0; opacity: .5; }
.crew .portrait img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    image-rendering: pixelated;
    z-index: 2;
}
.crew .corner {
    position: absolute; z-index: 3;
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--ink-dim);
}
.crew .corner.tl { top: 14px; left: 16px; color: var(--magenta); }
.crew .corner.tr { top: 14px; right: 16px; }
.crew .body { padding: 22px 24px 26px; }
.crew .role {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .22em;
    color: var(--cyan);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.crew .role::before { content: ""; width: 8px; height: 8px; background: currentColor;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.crew .name {
    font-family: var(--display); font-weight: 700;
    font-size: 32px; line-height: 1; letter-spacing: -.005em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.crew .bio { color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.crew .links {
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
    display: flex; gap: 18px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--ink-mute);
}
.crew .links a:hover { color: var(--cyan); }

/* ─── CTA / CONTACT ───────────────────────────────────────── */
.cta { padding: 140px 0 140px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(60% 80% at 80% 50%, rgba(255,46,136,.10), transparent 60%),
      radial-gradient(40% 60% at 10% 80%, rgba(0,229,255,.08), transparent 60%);
    z-index: 0;
}
.cta-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta h2 {
    font-size: clamp(48px, 8vw, 112px);
    margin: 16px 0 24px;
}
.cta h2 .accent {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cyan);
    text-stroke: 1.5px var(--cyan);
}
.cta .copy { color: var(--ink-dim); font-size: 17px; max-width: 48ch; }

.contact-card {
    border: 1px solid var(--line-2);
    background: rgba(13,12,22,.7);
    backdrop-filter: blur(8px);
    padding: 32px;
    position: relative;
    clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.contact-card .lbl {
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: .25em;
    color: var(--ink-mute);
    margin-bottom: 8px;
}
.contact-card .channel {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-card .channel:last-of-type { border-bottom: 0; }
.contact-card .channel .k {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--ink-dim);
    display: flex; align-items: center; gap: 10px;
}
.contact-card .channel .k::before {
    content: ""; width: 8px; height: 8px; background: var(--magenta);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.contact-card .channel .v {
    font-family: var(--mono); font-size: 13px; color: var(--ink);
}
.contact-card .channel .v:hover { color: var(--cyan); }

/* ─── Footer ──────────────────────────────────────────────── */
footer.site {
    border-top: 1px solid var(--line);
    padding: 48px 0 36px;
    background: #050409;
    position: static;
}
footer.site .row {
    display: flex; justify-content: space-between; align-items: end;
    gap: 32px; flex-wrap: wrap;
}
footer.site .left {
    font-family: var(--display); font-weight: 700;
    font-size: 64px; line-height: .85;
    text-transform: uppercase; letter-spacing: -.01em;
}
footer.site .left .accent { color: var(--magenta); }
footer.site .meta {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--ink-mute);
    display: flex; flex-direction: column; gap: 6px; text-align: right;
}
footer.site .meta b { color: var(--ink-dim); font-weight: 500; }
footer.site .bot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: .18em;
    flex-wrap: wrap; gap: 12px;
}
footer.site .bot .sig { display: flex; align-items: center; gap: 10px; }
footer.site .bot .sig::before { content: ""; width: 8px; height: 8px; background: var(--magenta);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ════════════════════════════════════════════════════════════════
   CATTLEGRID game page — "Neon Arcade" (design_handoff_cattlegrid_site).
   Deliberately its own visual language: the game wears cyan + Michroma,
   the studio wears magenta + Chakra Petch. Everything is scoped under
   .cg-page so the two never bleed into each other.
   ════════════════════════════════════════════════════════════════ */
.cg-page {
    --cg-bg:      #0a0d13;
    --cg-surface: #0e1420;
    --cg-strip:   #070a0f;
    --cg-head:    #f4f8fb;
    --cg-text:    #e8eef4;
    --cg-cyan:    #38f0e5;
    --cg-on-cyan: #06090d;
    --cg-magenta: #ff4fd8;
    --cg-amber:   #ffc24b;
    --cg-lime:    #8cff5e;
    --cg-bull:    #ff6a4a;

    --cg-display: "Michroma", "Chakra Petch", system-ui, sans-serif;
    --cg-body:    "Space Grotesk", "Inter", system-ui, sans-serif;
    --cg-mono:    ui-monospace, "JetBrains Mono", Menlo, monospace;

    --cg-gutter: 60px;

    display: block;
    background: var(--cg-bg);
    color: var(--cg-text);
    font-family: var(--cg-body);
    min-height: 100vh;
}
.cg-page ::selection { background: var(--cg-cyan); color: var(--cg-on-cyan); }

/* ─── Buttons ─────────────────────────────────────────────── */
.cg-btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid transparent;
    transition: filter .18s ease, box-shadow .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.cg-btn-sm { padding: 10px 20px; font-size: 13px; }
.cg-btn-primary {
    background: var(--cg-cyan);
    color: var(--cg-on-cyan);
    box-shadow: 0 0 30px rgba(56,240,229,.4);
}
.cg-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 44px rgba(56,240,229,.55); }
.cg-btn-ghost {
    border-color: rgba(232,238,244,.35);
    color: var(--cg-text);
    font-weight: 600;
}
.cg-btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.cg-btn-outline {
    border-color: var(--cg-cyan);
    color: var(--cg-cyan);
    padding: 13px 26px;
    font-size: 14px;
}
.cg-btn-outline:hover { background: rgba(56,240,229,.08); }

/* ─── Shared type ─────────────────────────────────────────── */
.cg-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--cg-cyan);
}
.cg-eyebrow-magenta { color: var(--cg-magenta); }
.cg-h2 {
    font-family: var(--cg-display);
    font-size: 34px;
    line-height: 1.25;
    color: var(--cg-head);
    margin: 14px 0 0;
    font-weight: 400;
}
.cg-body {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(232,238,244,.7);
    margin: 16px 0 0;
}
.cg-center { text-align: center; max-width: 560px; margin-inline: auto; }

/* ─── Nav ─────────────────────────────────────────────────── */
.cg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(56,240,229,.14);
}
.cg-wordmark {
    font-family: var(--cg-display);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--cg-text);
}
.cg-wordmark span { color: var(--cg-cyan); }
.cg-wordmark-sm { font-size: 11px; }
.cg-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 500;
}
.cg-nav-links > a { color: rgba(232,238,244,.7); }
.cg-nav-links > a:hover { color: var(--cg-text); }
.cg-nav-links > a.cg-btn-primary { color: var(--cg-on-cyan); }

/* ─── Hero ────────────────────────────────────────────────── */
.cg-hero { position: relative; height: 640px; overflow: hidden; }
.cg-scene-bg, .cg-hero cg-scene { position: absolute; inset: 0; display: block; }
.cg-hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,13,19,.55) 0%, rgba(10,13,19,.1) 40%, rgba(10,13,19,.92) 100%);
}
.cg-hero-body {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 var(--cg-gutter) 54px;
    text-align: center;
}
.cg-title {
    font-family: var(--cg-display);
    font-size: 88px;
    line-height: 1;
    letter-spacing: 6px;
    color: var(--cg-head);
    text-shadow: 0 0 40px rgba(56,240,229,.35);
    margin: 14px 0 0;
    font-weight: 400;
}
.cg-tagline {
    font-family: var(--cg-display);
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--cg-cyan);
    margin: 18px 0 0;
}
.cg-sub {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(232,238,244,.78);
    max-width: 620px;
    margin: 16px 0 0;
}
.cg-cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.cg-center-row { justify-content: center; }
.cg-chips {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    font-size: 11.5px;
    letter-spacing: 1.5px;
    color: rgba(232,238,244,.55);
    flex-wrap: wrap;
    justify-content: center;
}
.cg-chips span {
    border: 1px solid rgba(232,238,244,.2);
    padding: 6px 12px;
    border-radius: 99px;
}
.cg-chips .cg-chip-dev { border-color: rgba(56,240,229,.4); color: var(--cg-cyan); }

/* ─── Marquee ─────────────────────────────────────────────── */
.cg-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--cg-strip);
    border-top: 1px solid rgba(56,240,229,.25);
    border-bottom: 1px solid rgba(56,240,229,.25);
    padding: 12px 0;
}
.cg-marquee-track {
    display: inline-flex;
    animation: cg-marq 22s linear infinite;
}
.cg-marquee-track span {
    font-family: var(--cg-display);
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(56,240,229,.75);
}
@keyframes cg-marq { to { transform: translateX(-50%); } }

/* ─── Sections ────────────────────────────────────────────── */
.cg-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px var(--cg-gutter) 10px;
}

/* Pillars */
.cg-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cg-pillar {
    background: var(--cg-surface);
    border: 1px solid rgba(232,238,244,.08);
    border-radius: 8px;
    padding: 32px 28px;
}
.cg-pillar h2 { font-size: 20px; font-weight: 700; color: var(--cg-head); margin: 16px 0 0; }
.cg-pillar p { font-size: 14.5px; line-height: 1.65; color: rgba(232,238,244,.65); margin: 10px 0 0; }
.cg-pillar-n { font-family: var(--cg-display); font-size: 30px; }
.cg-a-cyan    { border-color: rgba(56,240,229,.12); }
.cg-a-cyan    .cg-pillar-n { color: rgba(56,240,229,.5); }
.cg-a-magenta { border-color: rgba(255,79,216,.16); }
.cg-a-magenta .cg-pillar-n { color: rgba(255,79,216,.55); }
.cg-a-amber   { border-color: rgba(255,194,75,.16); }
.cg-a-amber   .cg-pillar-n { color: rgba(255,194,75,.55); }

/* Steal callout */
.cg-steal { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: center; }

/* Screenshots */
.cg-shot {
    margin: 0;
    border: 1px solid rgba(232,238,244,.1);
    border-radius: 8px;
    overflow: hidden;
}
.cg-shot-lit { border-color: rgba(56,240,229,.2); }
.cg-shot cg-scene { display: block; width: 100%; height: 300px; }
.cg-shot-lit cg-scene { height: 380px; }
.cg-shot figcaption {
    padding: 10px 16px;
    background: var(--cg-strip);
    font-family: var(--cg-mono);
    font-size: 11.5px;
    letter-spacing: 1px;
    color: rgba(232,238,244,.5);
}
.cg-shot-lit figcaption { color: rgba(56,240,229,.7); }
.cg-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cg-disclaimer {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    font-family: var(--cg-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(232,238,244,.35);
}

/* Meet the cattle */
.cg-cattle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.cg-cow {
    background: var(--cg-surface);
    border-radius: 8px;
    padding: 28px;
    border-top: 2px solid;
}
.cg-cow h3 { font-size: 18px; font-weight: 700; color: var(--cg-head); margin: 0; }
.cg-cow p { font-size: 14px; line-height: 1.6; color: rgba(232,238,244,.65); margin: 8px 0 0; }
.cg-diamond { width: 34px; height: 34px; transform: rotate(45deg); margin: 6px 0 22px 6px; }
.cg-cow-gold { border-top-color: var(--cg-amber); }
.cg-cow-gold .cg-diamond { background: linear-gradient(135deg, #ffe3a1, #c98d1b); }
.cg-cow-bull { border-top-color: var(--cg-bull); }
.cg-cow-bull .cg-diamond { background: linear-gradient(135deg, #ffa284, #c23b1c); }
.cg-cow-lime { border-top-color: var(--cg-lime); }
.cg-cow-lime .cg-diamond { background: linear-gradient(135deg, #cfffb6, #3e9e1b); }

/* Press kit band */
.cg-press {
    background: var(--cg-surface);
    border: 1px solid rgba(232,238,244,.1);
    border-radius: 8px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.cg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 40px; margin: 0; }
.cg-facts dt {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(232,238,244,.45);
}
.cg-facts dd {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--cg-head);
}

/* Final CTA */
.cg-final { text-align: center; padding-bottom: 70px; }
.cg-final .cg-h2 { font-size: 28px; }

/* Footer */
.cg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 40px;
    border-top: 1px solid rgba(232,238,244,.08);
    font-size: 12px;
    color: rgba(232,238,244,.45);
}
.cg-footer-links { display: flex; gap: 20px; }
.cg-footer-links a:hover { color: var(--cg-text); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .cg-page { --cg-gutter: 24px; }
    .cg-nav { padding: 14px 24px; }
    .cg-nav-links { gap: 16px; font-size: 12px; }
    .cg-hero { height: auto; min-height: 560px; }
    .cg-hero-body { position: relative; padding-top: 220px; }
    .cg-title { font-size: 44px; letter-spacing: 3px; }
    .cg-pillars, .cg-cattle-grid, .cg-gallery { grid-template-columns: 1fr; }
    .cg-steal { grid-template-columns: 1fr; gap: 28px; }
    .cg-press { grid-template-columns: 1fr; }
    .cg-facts { grid-template-columns: 1fr 1fr; }
    .cg-footer { justify-content: center; text-align: center; }
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cat-stage .cat, .ticker-track, .game .status.dev::before,
    .cg-marquee-track { animation: none !important; }
}

/* ─── Blazor error UI (hidden until the framework raises an error) ─ */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #08070d;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
