/* =====================================================================
   GHAEMI GAMES — games.ghaemi.us
   Part of the Ghaemi network (ghaemi.us · studio · estates · tools)
   ===================================================================== */

:root {
  /* Surfaces */
  --bg:        #06060a;
  --bg-2:      #0b0b13;
  --panel:     rgba(255, 255, 255, 0.045);
  --panel-2:   rgba(255, 255, 255, 0.02);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);

  /* Type */
  --text:      #f5f5fa;
  --muted:     #9c9cb2;
  --dim:       #6b6b83;

  /* GG brand — neon arcade */
  --gg-a:      #ff2d78;   /* magenta */
  --gg-b:      #a855f7;   /* violet  */
  --gg-c:      #22d3ee;   /* cyan    */
  --gg-grad:   linear-gradient(110deg, var(--gg-c) 0%, var(--gg-b) 48%, var(--gg-a) 100%);

  /* Per-game accents */
  --orbis:     #e8c46a;
  --fathom:    #2ee6d6;
  --worldseed: #63e58c;
  --soon:      #8b93a7;

  /* Motion */
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  --nav-h:     68px;
  --radius:    22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

::selection { background: var(--gg-a); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gg-b), var(--gg-a));
  border-radius: 8px;
  border: 3px solid var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--gg-c);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =====================================================================
   BACKDROP
   ===================================================================== */

.backdrop {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #14101f 0%, var(--bg) 58%);
}

.blob { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.blob.b1 {
  width: 52vw; height: 52vw; top: -14vw; left: -10vw; opacity: .45;
  background: radial-gradient(circle, var(--gg-b), transparent 70%);
  animation: drift1 20s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 44vw; height: 44vw; top: 2vw; right: -12vw; opacity: .32;
  background: radial-gradient(circle, var(--gg-c), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 50vw; height: 50vw; bottom: -20vw; left: 24vw; opacity: .28;
  background: radial-gradient(circle, var(--gg-a), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(10vw, 12vh) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-12vw, 9vh) scale(1.12); } }
@keyframes drift3 { to { transform: translate(8vw, -10vh) scale(1.22); } }

/* particle / constellation field
   (a fixed replaced element still resolves `width:auto` to its intrinsic
   300x150, so the size has to be stated outright) */
#stars {
  position: fixed; top: 0; left: 0; z-index: -2; pointer-events: none;
  width: 100vw; height: 100vh; display: block;
}

/* fine grid, masked to the centre */
.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
}

/* synthwave horizon behind the hero */
.horizon {
  position: absolute; left: 50%; bottom: -6vh; width: 240vw; height: 62vh;
  transform: translateX(-50%) perspective(320px) rotateX(66deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(168,85,247,.30) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(34,211,238,.22) 1.5px, transparent 1.5px);
  background-size: 100% 46px, 68px 100%;
  mask-image: linear-gradient(to top, #000 4%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 4%, transparent 72%);
  animation: horizon-run 4.5s linear infinite;
  pointer-events: none;
}
@keyframes horizon-run { to { background-position: 0 46px, 0 0; } }

/* film grain */
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* cursor halo (desktop only) */
.halo {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px; z-index: 0;
  margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(168,85,247,.13), transparent 62%);
  transition: opacity .5s;
}
@media (hover: hover) and (pointer: fine) { .halo.on { opacity: 1; } }

/* =====================================================================
   LOGO MARK
   ===================================================================== */

.gg-mark { display: block; overflow: visible; }
.gg-mark .stroke {
  fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 9;
}
.gg-mark .g-a { stroke: url(#ggGradA); }
.gg-mark .g-b { stroke: url(#ggGradB); }

/* draw-on animation */
.gg-mark.draw .stroke {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 1.6s var(--ease-out) forwards;
}
.gg-mark.draw .g-b .stroke { animation-delay: .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =====================================================================
   NAV
   ===================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.stuck {
  background: rgba(6, 6, 10, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-in {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand .gg-mark { width: 44px; height: 33px; transition: transform .5s var(--ease); }
.brand:hover .gg-mark { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.brand-txt {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .96rem;
  letter-spacing: -.01em; white-space: nowrap;
}
.brand-txt em { font-style: normal; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 100px; font-size: .9rem; font-weight: 500;
  color: var(--muted); transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 100px; font-size: .88rem; font-weight: 650;
  color: #0a0a0f; background: var(--gg-grad); background-size: 180% 100%;
  box-shadow: 0 6px 22px rgba(168,85,247,.32);
  transition: background-position .6s var(--ease), transform .25s, box-shadow .35s;
}
.nav-cta:hover {
  background-position: 100% 0; transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255,45,120,.42);
}

/* =====================================================================
   LAYOUT PRIMITIVES
   ===================================================================== */

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim);
}

.sec-head { margin-bottom: 40px; max-width: 660px; }
.sec-head h2 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.08;
  letter-spacing: -.03em; margin: 14px 0 12px;
}
.sec-head p { color: var(--muted); font-size: 1.03rem; }

.grad {
  background: var(--gg-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* =====================================================================
   HERO
   ===================================================================== */

.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 70px; overflow: hidden;
}
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 900px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 12px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.03); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 500; color: var(--muted);
  margin-bottom: 30px;
  animation: fade-up .9s var(--ease-out) both;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #43d17a;
  box-shadow: 0 0 0 3px rgba(67,209,122,.18); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(67,209,122,0); } }

.hero-mark {
  width: clamp(126px, 22vw, 186px); height: auto; margin: 0 auto 28px;
  filter: drop-shadow(0 12px 40px rgba(168,85,247,.45));
}

h1.hero-title {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2.5rem, 8.4vw, 5.2rem); line-height: .98;
  letter-spacing: -.045em; margin-bottom: 22px;
}
h1.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
/* inline-block so `background-clip: text` sizes the gradient to the words
   themselves — as a full-width block it would only ever show the middle of
   the ramp and lose the cyan and magenta ends */
h1.hero-title .line > span { display: inline-block; animation: rise-in 1.05s var(--ease-out) both; }
h1.hero-title .line:nth-child(2) > span { animation-delay: .12s; }

@keyframes rise-in { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hero-sub {
  color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 590px; margin: 0 auto 36px; line-height: 1.62;
  animation: fade-up 1s var(--ease-out) .35s both;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  animation: fade-up 1s var(--ease-out) .5s both;
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; font-size: .98rem; font-weight: 650;
  letter-spacing: -.01em; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .35s, border-color .3s, background .3s;
  will-change: transform;
}
.btn svg { flex: none; }

.btn-primary {
  color: #08080d; background: var(--gg-grad); background-size: 200% 100%;
  box-shadow: 0 10px 34px rgba(168,85,247,.36);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 44px rgba(255,45,120,.44); }

/* shine sweep */
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { animation: sweep .85s var(--ease); }
@keyframes sweep { to { transform: translateX(120%); } }

.btn-ghost {
  color: var(--text); border: 1px solid var(--line-2);
  background: rgba(255,255,255,.035); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--gg-c); background: rgba(34,211,238,.08); }

.btn:active { transform: scale(.97); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--dim); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  animation: fade-up 1s var(--ease-out) 1.1s both;
}
.scroll-cue .rail {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--gg-b), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .rail::after {
  content: ''; position: absolute; left: -1px; width: 3px; height: 12px; border-radius: 2px;
  background: var(--gg-c); box-shadow: 0 0 10px var(--gg-c);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -12px; opacity: 0; } 25% { opacity: 1; } 100% { top: 42px; opacity: 0; } }

/* =====================================================================
   TICKER
   ===================================================================== */

.ticker {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,45,120,.05), rgba(34,211,238,.05));
  overflow: hidden; padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap;
}
.ticker-track span b { color: var(--text); font-weight: 600; }
.ticker-track span i { font-style: normal; color: var(--gg-a); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =====================================================================
   STATS
   ===================================================================== */

.stats { padding: 68px 0 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 26px 22px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  transition: border-color .35s, transform .35s var(--ease);
}
.stat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.stat .num {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.035em; line-height: 1;
  margin-bottom: 8px;
}
.stat .lbl { color: var(--muted); font-size: .86rem; }

/* =====================================================================
   GAME CARDS
   ===================================================================== */

.games { padding: 88px 0 40px; }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.games-grid .card.wide { grid-column: 1 / -1; }

.card {
  --accent: var(--gg-b);
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden; isolation: isolate;
  transition: border-color .4s, box-shadow .45s, transform .5s var(--ease);
  will-change: transform;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 26px 70px -20px color-mix(in srgb, var(--accent) 45%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* cursor spotlight */
.card .glow {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%);
}
.card:hover .glow { opacity: 1; }

/* top accent hairline */
.card .hairline {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .45s;
}
.card:hover .hairline { opacity: .9; }

.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a12; }
.card.wide .card-art { aspect-ratio: 21 / 8; }
.card-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease), filter .6s;
  filter: saturate(1.02);
}
.card:hover .card-art img { transform: scale(1.12); filter: saturate(1.18); }
.card-art .scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top, rgba(6,6,10,.96) 2%, rgba(6,6,10,.35) 46%, transparent 80%),
    radial-gradient(120% 80% at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
}

/* icon tile floating over the art */
.card-icon {
  position: absolute; left: 24px; bottom: -30px; z-index: 5;
  width: 76px; height: 76px; border-radius: 19px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 38px rgba(0,0,0,.66);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.card:hover .card-icon {
  transform: translateY(-5px) scale(1.05) rotate(-3deg);
  box-shadow: 0 20px 46px color-mix(in srgb, var(--accent) 40%, rgba(0,0,0,.6));
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 44px 26px 26px; display: flex; flex-direction: column; flex: 1; }

.card-kicker {
  display: flex; align-items: center; gap: 9px; margin-bottom: 11px;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.card-kicker .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); flex: none; }
.card-kicker .plain { color: var(--dim); }

.card h3 {
  font-family: 'Sora', sans-serif; font-weight: 750; letter-spacing: -.03em;
  font-size: clamp(1.35rem, 2.6vw, 1.72rem); line-height: 1.12; margin-bottom: 10px;
}
.card.wide h3 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.card .tag-line { color: var(--text); font-weight: 550; margin-bottom: 8px; font-size: 1.02rem; }
.card .desc { color: var(--muted); font-size: .94rem; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.card.wide .desc { max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.chip {
  padding: 5px 11px; border-radius: 100px; font-size: .74rem; font-weight: 500;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025);
  transition: border-color .3s, color .3s;
}
.card:hover .chip { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip.hot {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.play {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 100px; font-size: .91rem; font-weight: 650;
  color: #08080d; background: var(--accent);
  transition: transform .3s var(--ease), box-shadow .35s, filter .3s;
}
.play:hover {
  transform: translateY(-2px); filter: brightness(1.08);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 46%, transparent);
}
.play:active { transform: scale(.97); }

.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 16px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  font-size: .9rem; font-weight: 600;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.appstore:hover { border-color: var(--text); background: rgba(255,255,255,.09); transform: translateY(-2px); }
.appstore svg { flex: none; }
.appstore .two { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore .two small { font-size: .63rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }

/* "next game" placeholder card */
.card.soon {
  --accent: var(--soon);
  border-style: dashed; border-color: var(--line-2);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.016) 0 12px, transparent 12px 24px);
  align-items: center; justify-content: center; text-align: center;
  min-height: 280px; padding: 44px 30px;
}
.card.soon:hover { box-shadow: none; border-color: var(--line-2); transform: none; }
.card.soon .slot {
  width: 62px; height: 62px; border-radius: 17px; display: grid; place-items: center;
  border: 1px dashed var(--line-2); margin: 0 auto 18px; color: var(--dim);
  animation: slot-breathe 3.4s ease-in-out infinite;
}
@keyframes slot-breathe { 50% { border-color: var(--gg-b); color: var(--gg-b); transform: scale(1.06); } }
.card.soon h3 { margin-bottom: 8px; }
.card.soon p { color: var(--muted); font-size: .92rem; max-width: 44ch; margin: 0 auto; }
.card.soon code {
  font-family: 'JetBrains Mono', monospace; font-size: .84rem;
  color: var(--gg-c); background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.2); border-radius: 7px; padding: 2px 8px;
  white-space: nowrap;
}

/* per-game accent hooks */
.card.g-orbis     { --accent: var(--orbis); }
.card.g-fathom    { --accent: var(--fathom); }
.card.g-worldseed { --accent: var(--worldseed); }

/* App Store screenshots are tall portraits; a centred 16:9 crop lands on
   dead space, so aim each one at the part that actually shows the game */
.card.g-fathom    .card-art img { object-position: center 80%; }
.card.g-worldseed .card-art img { object-position: center 38%; }

/* =====================================================================
   VALUES / MANIFESTO
   ===================================================================== */

.values { padding: 96px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.value:hover { transform: translateY(-4px); border-color: var(--line-2); }
.value .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gg-b) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gg-b) 26%, transparent);
  color: var(--gg-c); margin-bottom: 18px;
}
.value:nth-child(2) .ico {
  background: color-mix(in srgb, var(--gg-a) 14%, transparent);
  border-color: color-mix(in srgb, var(--gg-a) 26%, transparent); color: var(--gg-a);
}
.value:nth-child(3) .ico {
  background: color-mix(in srgb, var(--orbis) 14%, transparent);
  border-color: color-mix(in srgb, var(--orbis) 26%, transparent); color: var(--orbis);
}
.value h3 {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem;
  letter-spacing: -.02em; margin-bottom: 9px;
}
.value p { color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* =====================================================================
   CTA BAND
   ===================================================================== */

.band { padding: 30px 0 100px; }
.band-in {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: 28px;
  padding: 64px 32px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(168,85,247,.20), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}
.band-in .swirl {
  position: absolute; inset: -60% -20% auto; height: 380px; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(255,45,120,.16), transparent 40%);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.band-in h2 {
  position: relative; font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4.6vw, 2.9rem); letter-spacing: -.035em;
  line-height: 1.08; margin-bottom: 14px;
}
.band-in p { position: relative; color: var(--muted); max-width: 540px; margin: 0 auto 30px; }
.band-in .hero-cta { position: relative; animation: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */

footer { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.foot-top {
  display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.foot-brand { max-width: 310px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: .89rem; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 {
  font-family: 'JetBrains Mono', monospace; font-size: .67rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px;
}
.foot-col a {
  display: block; color: var(--muted); font-size: .9rem; padding: 5px 0;
  transition: color .25s, transform .25s var(--ease);
}
.foot-col a:hover { color: var(--text); transform: translateX(3px); }
.foot-bottom {
  padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  color: var(--dim); font-size: .84rem;
}
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--text); }
.foot-hint { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--dim); }
.foot-hint kbd {
  font-family: inherit; border: 1px solid var(--line-2); border-radius: 5px;
  padding: 1px 6px; color: var(--muted); background: rgba(255,255,255,.03);
}

/* =====================================================================
   ACHIEVEMENT TOASTS
   ===================================================================== */

.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 13px; min-width: 264px;
  padding: 13px 18px 13px 14px; border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--orbis) 34%, transparent);
  background: rgba(12, 12, 18, .93);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  animation: toast-in .55s var(--ease-out) both;
}
.toast.out { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(120%) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(120%) scale(.9); } }
.toast .trophy {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--orbis), #b8860b); color: #1a1408;
}
.toast .t-txt { line-height: 1.3; }
.toast .t-txt small {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: .61rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orbis); margin-bottom: 2px;
}
.toast .t-txt b { font-size: .92rem; font-weight: 650; }

/* =====================================================================
   REVEAL ON SCROLL
   ===================================================================== */

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =====================================================================
   ARCADE MODE (konami)
   ===================================================================== */

body.arcade .backdrop, body.arcade .noise { animation: hue 8s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
body.arcade .scanlines {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: repeating-linear-gradient(rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.shake { animation: shake .5s var(--ease); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  30%, 70% { transform: translate(3px, -2px); }
  50%      { transform: translate(-3px, 2px); }
}
.pixel { position: fixed; width: 9px; height: 9px; z-index: 85; pointer-events: none; border-radius: 2px; }

/* =====================================================================
   404
   ===================================================================== */

.oops { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 24px 60px; }
.oops .code {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -.05em;
  font-size: clamp(4.5rem, 20vw, 12rem); line-height: .9; margin-bottom: 6px;
}
.oops h1 {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 14px;
}
.oops p { color: var(--muted); max-width: 460px; margin: 0 auto 32px; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .games-grid { grid-template-columns: 1fr; }
  .card.wide .card-art { aspect-ratio: 16 / 10; }
  .wrap { padding: 0 18px; }
  .games { padding: 64px 0 30px; }
  .values { padding: 68px 0; }
  .foot-cols { gap: 34px; }
  .hero { padding-bottom: 90px; }
  .card-body { padding: 42px 20px 22px; }
  .card-icon { width: 64px; height: 64px; left: 20px; bottom: -26px; border-radius: 16px; }
  .toasts { right: 12px; bottom: 12px; left: 12px; }
  .toast { min-width: 0; }
  .band-in { padding: 46px 22px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .btn { padding: 14px 22px; font-size: .92rem; }
  .card-actions { width: 100%; }
  .play, .appstore { flex: 1; justify-content: center; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .gg-mark.draw .stroke { stroke-dashoffset: 0; }
  #stars, .horizon { display: none; }
}
