/* South Pixel Studio: the one stylesheet for every page. Dark "space" design, CSS-only motion, no JavaScript. */

@font-face {
  font-family: "Russo One";
  src: url("../fonts/russo-one-latin.woff2") format("woff2");
  font-display: swap;
}

/* Lets the border angle animate smoothly (conic-gradient spin). */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  color-scheme: dark;
  --bg: #07060d;
  --bg-2: #0e0b1a;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1);
  --text: #f3f1fa;
  --muted: #a49fb8;
  --lime: #d4ff3a;
  --violet: #9b6bff;
  --cyan: #3be4ff;
  --amber: #ffb547;
  --radius: 22px;
  --wrap: 74rem;
  --display: "Russo One", "Arial Black", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--body);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--lime); color: #000; padding: .5rem 1rem; }

h1, .h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.01em; margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--violet), var(--cyan) 35%, var(--lime) 55%, var(--violet) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

.eyebrow, .kicker {
  font: 600 .75rem/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.kicker { color: var(--muted); letter-spacing: .14em; font-size: .7rem; }
.sep { opacity: .4; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(212, 255, 58, .6);
  animation: ping 2s var(--ease) infinite;
}
.caret { width: .55em; height: 1.1em; background: var(--lime); animation: blink 1s steps(1) infinite; }

/* ---------- Background ---------- */

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.b1 { width: 46vw; height: 46vw; background: #5b2bd6; top: -12vw; right: -8vw; }
.b2 { width: 34vw; height: 34vw; background: #0f8fa8; bottom: -10vw; left: -10vw; animation-duration: 28s; opacity: .35; }
.b3 { width: 22vw; height: 22vw; background: #8fb800; top: 40vh; left: 40vw; animation-duration: 18s; opacity: .18; }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}

.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 260px 160px, #fff, transparent),
    radial-gradient(1px 1px at 80px 220px, #fff, transparent),
    radial-gradient(1px 1px at 330px 260px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 200px 320px, #cfc2ff, transparent);
  background-size: 360px 360px;
  opacity: .5;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars.far { background-size: 520px 520px; background-position: 130px 90px; opacity: .3; animation-duration: 7s; }

/* Film grain, inline SVG noise. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.nav {
  position: sticky; top: 14px; z-index: 40;
  width: min(var(--wrap), calc(100% - 32px));
  margin: 14px auto 0;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem .55rem .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 11, 26, .55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.nav nav { display: flex; gap: .25rem; margin-left: auto; }
.nav nav a { padding: .45rem .85rem; border-radius: 999px; color: var(--muted); font-size: .92rem; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: var(--glass-2); }
.nav-cta {
  padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--lime); color: #0b0a12; font-weight: 700; font-size: .92rem;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212, 255, 58, .35); }

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

.hero {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  min-height: min(92vh, 900px);
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem;
  padding: 4rem 0 3rem;
}

/* .h1: the home page's big hero tagline looks like an H1, but the page's real H1 is the studio name further down. */
h1, .h1 { font-size: clamp(3.2rem, 8.5vw, 7.4rem); text-transform: uppercase; }
h1 .line, .h1 .line { display: block; animation: rise 1s var(--ease) both; }
h1 .line + .line, .h1 .line + .line { animation-delay: .12s; }

.lead { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin: 1.5rem 0 2rem; animation: rise 1s .24s var(--ease) both; }

.ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .ctas { animation: rise 1s .36s var(--ease) both; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--lime); color: #0b0a12; box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); }
.btn.primary:hover { box-shadow: 0 10px 40px rgba(212, 255, 58, .35); }
/* Light sweep on hover. */
.btn.primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn.primary:hover::after { transition: transform .7s var(--ease); transform: translateX(120%); }
.btn.ghost { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .3); background: var(--glass-2); }
/* Support the game: warm amber so it stands apart from the lime download buttons, with a slow glow. */
.btn.coffee {
  background: linear-gradient(135deg, #ffd66b, var(--amber) 55%, #ff8f40); color: #1d1206;
  box-shadow: 0 8px 28px -8px rgba(255, 170, 60, .6);
  animation: coffee-glow 3.2s ease-in-out infinite;
}
.btn.coffee:hover { box-shadow: 0 12px 44px -4px rgba(255, 170, 60, .85); }
.btn.coffee::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn.coffee:hover::after { transition: transform .7s var(--ease); transform: translateX(120%); }
@keyframes coffee-glow { 50% { box-shadow: 0 8px 38px -2px rgba(255, 170, 60, .85); } }
.btn.sm { padding: .75rem 1.25rem; font-size: .92rem; }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.stats { display: flex; gap: 2.5rem; margin: 3rem 0 0; animation: rise 1s .48s var(--ease) both; }
.stats div { border-left: 1px solid var(--line); padding-left: 1rem; }
.stats dt { font: .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: .2rem 0 0; font: 2.2rem/1 var(--display); }

.hero-art { position: relative; display: grid; place-items: center; animation: fade 1.4s .2s var(--ease) both; }

.art-card {
  position: relative; margin: 0;
  width: min(100%, 360px); aspect-ratio: 9 / 14;
  border-radius: 28px; overflow: visible;
  animation: float 7s ease-in-out infinite;
}
.art-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 120px -20px rgba(155, 107, 255, .55), 0 0 0 8px rgba(255, 255, 255, .03);
}
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 14px;
  font: 600 .78rem var(--mono); letter-spacing: .06em;
  background: rgba(14, 11, 26, .65); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.c1 { left: -2.2rem; bottom: 18%; animation: float 6s 1s ease-in-out infinite; }
.c2 { right: -1.6rem; top: 12%; color: var(--cyan); animation: float 8s .5s ease-in-out infinite reverse; }

.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); }
.o1 { width: 130%; aspect-ratio: 1; animation: spin 80s linear infinite; }
.o2 { width: 105%; aspect-ratio: 1; border-style: solid; border-color: rgba(155, 107, 255, .2); animation: spin 26s linear infinite reverse; }
.sat { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(14, 11, 26, .6);
  transform: rotate(-1.2deg) scale(1.02);
  margin: 2rem 0 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.track span {
  font: 600 .85rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  padding: 1.1rem 1.6rem; color: var(--muted); white-space: nowrap;
}
.track span::before { content: "\25C6"; color: var(--lime); margin-right: 1.6rem; font-size: .6rem; vertical-align: middle; }
.track span:nth-child(3n)::before { color: var(--violet); }
.ticker:hover .track { animation-play-state: paused; }

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

.section { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; padding: 6rem 0 0; }
.head { margin-bottom: 2.5rem; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* Bento grid */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
}
.tile {
  position: relative; overflow: hidden;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(212, 255, 58, .35); box-shadow: 0 20px 60px -20px rgba(155, 107, 255, .5); }
/* Soft corner glow that brightens on hover. */
.tile::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px;
  background: radial-gradient(circle, rgba(155, 107, 255, .35), transparent 70%);
  opacity: .5; transition: opacity .4s; pointer-events: none;
}
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.tile p { color: var(--muted); margin: 0; }

.t-main { grid-column: span 4; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; padding: 2.2rem; }
.t-main h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.t-up { grid-column: span 2; }
.t-fight { grid-column: span 2; grid-row: span 2; display: flex; align-items: flex-end; padding: 0; }
.t-regions { grid-column: span 2; }
.t-ore { grid-column: span 2; }
.t-fair { grid-column: span 4; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(120deg, rgba(212, 255, 58, .12), rgba(155, 107, 255, .08)); }
.t-fair h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tile-more { display: inline-block; color: var(--lime); font-weight: 700; margin-left: .3rem; transition: transform .3s var(--ease); }
.t-fair:hover .tile-more { transform: translateX(4px); }
/* "More on the game page" link at the bottom of a tile. */
.tile-link { position: relative; display: inline-flex; gap: .4rem; margin-top: 1rem; color: var(--lime); font-weight: 700; font-size: .92rem; }
.tile-link span { transition: transform .3s var(--ease); }
.tile-link:hover span { transform: translateX(4px); }
.tile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-main .tile-link { margin-top: 1.4rem; }
.more-link { display: flex; justify-content: center; margin: 2rem 0 0; }
/* Links in running text and in the hero label. */
.eyebrow a { color: inherit; text-decoration: underline; text-decoration-color: rgba(212, 255, 58, .4); text-underline-offset: 3px; }
.eyebrow a:hover { text-decoration-color: var(--lime); }
.about p a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(212, 255, 58, .35); text-underline-offset: 3px; }
.about p a:hover { text-decoration-color: var(--lime); }
.art-link { display: block; width: 100%; height: 100%; border-radius: 28px; }

.phone {
  justify-self: center; width: min(100%, 230px);
  border-radius: 30px; padding: 8px;
  background: linear-gradient(145deg, #2a2440, #0d0b16);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .7), 0 0 60px -10px rgba(59, 228, 255, .35);
  transform: perspective(1200px) rotateY(-16deg) rotateX(8deg) rotateZ(2deg);
  transition: transform .8s var(--ease);
}
.phone img { border-radius: 23px; }
.t-main:hover .phone { transform: perspective(1200px) rotateY(0) rotateX(0) rotateZ(0) scale(1.03); }

.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 1.2s var(--ease); }
.t-fight:hover .tile-bg { transform: scale(1.08); }
.t-fight .tile-text { position: relative; padding: 5rem 1.6rem 1.6rem; background: linear-gradient(transparent, rgba(7, 6, 13, .92) 45%); width: 100%; }

.bars { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.bars li { height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.bars li::before {
  content: ""; position: absolute; inset: 0; width: var(--w);
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 8px; transform-origin: left; animation: fill 2.4s var(--ease) both;
}
.bars span { position: relative; font: 600 .7rem/26px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding-left: .7rem; }

.regions { list-style: none; counter-reset: r; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; }
.regions li { counter-increment: r; display: flex; align-items: center; gap: .7rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.regions li::before { content: "0" counter(r); font: .7rem var(--mono); color: var(--lime); }
.regions li:last-child { border: 0; }

.ores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ore { display: flex; flex-direction: column; padding: .6rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 700; }
.ore small { font: .65rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 400; }
.ore.cu { box-shadow: inset 0 -3px 0 var(--amber); }
.ore.tr { box-shadow: inset 0 -3px 0 var(--cyan); }
.ore.ri { box-shadow: inset 0 -3px 0 var(--violet); }

/* Gradient-border cards with a spinning sheen. */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.glow-card {
  --angle: 0deg;
  position: relative; display: block;
  padding: 2rem; border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--angle), rgba(255, 255, 255, .08), var(--violet), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .08) 60%, var(--lime), rgba(255, 255, 255, .08) 90%) border-box;
  animation: spin-angle 6s linear infinite;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.glow-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px -20px rgba(212, 255, 58, .3); }
.glow-card h3 { font-size: 2rem; margin: .2rem 0 .7rem; }
.glow-card h3 span { display: inline-block; color: var(--lime); transition: transform .3s var(--ease); }
.glow-card:hover h3 span { transform: translate(4px, -4px); }
.glow-card p { color: var(--muted); margin: 0; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 3rem; border-radius: 32px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 255, 58, .22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(155, 107, 255, .35), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.cta-band p { color: var(--muted); margin: .8rem 0 0; }

.foot {
  width: min(var(--wrap), calc(100% - 32px)); margin: 6rem auto 0;
  padding: 2rem 0 3rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: .9rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot a:hover { color: var(--lime); }
/* "Cookie settings" in the footer: a button that looks like the links next to it (shown by consent.js). */
.foot .cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.foot .cookie-btn:hover { color: var(--lime); }

/* Cookie consent card (built by assets/js/consent.js). */
.consent {
  /* Bottom right, over the hero art rather than the store buttons on the left. */
  position: fixed; z-index: 60; right: 16px; bottom: 16px;
  width: min(380px, calc(100% - 32px));
  padding: 1.2rem 1.3rem; border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(14, 11, 26, .92);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .8);
  font-size: .9rem; color: var(--muted);
  animation: rise .6s var(--ease) both;
}
.consent p { margin: 0 0 .9rem; }
.consent .consent-title { color: var(--text); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.consent a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.consent-btns .btn { justify-content: center; border-color: rgba(255, 255, 255, .22); font-family: inherit; cursor: pointer; color: var(--text); }
.consent-btns .btn:hover { border-color: var(--lime); }

/* ---------- Scroll-driven motion (Chrome, Edge, Safari 26). Others just show everything. ---------- */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  .phone.tilt {
    animation: untilt linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 50%;
  }
  .hero-art .art-card img {
    animation: parallax linear both;
    animation-timeline: scroll();
    animation-range: 0 100vh;
  }
}

/* ---------- Keyframes ---------- */

@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { to { transform: translate(-6vw, 8vh) scale(1.15); } }
@keyframes twinkle { to { opacity: .15; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes fade { from { opacity: 0; transform: scale(.94); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(60px) scale(.97); } }
@keyframes untilt { from { transform: perspective(1200px) rotateY(-28deg) rotateX(18deg) rotateZ(4deg) translateY(40px); } to { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) rotateZ(1deg); } }
@keyframes parallax { to { transform: translateY(60px) scale(1.04); } }

/* Home: about the studio */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 3rem; align-items: start; padding-top: 2rem; border-top: 1px solid var(--line); }
.about h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: none; }
.about .big { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; margin: 0 0 1rem; }
.about p:not(.eyebrow):not(.big) { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Real game art: upgrade icons, Vega, banners */
.icon-row { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.icon-row img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.icon-row li:hover img { transform: translateY(-3px) scale(1.06); }
.vega { float: right; width: 84px; height: 84px; border-radius: 50%; margin: 0 0 .6rem 1rem; border: 1px solid rgba(89, 217, 255, .4); box-shadow: 0 0 30px -4px rgba(89, 217, 255, .55); animation: float 6s ease-in-out infinite; }
.banner { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.banner img { width: 100%; height: auto; aspect-ratio: 1600 / 679; object-fit: cover; transition: transform 1.2s var(--ease); }
.banner:hover img { transform: scale(1.03); }
.glow-card { overflow: hidden; padding-right: 9.5rem; min-height: 11rem; }
.card-art {
  position: absolute; right: -.5rem; top: 50%; translate: 0 -50%; width: 9.5rem; height: 9.5rem;
  mask-image: radial-gradient(circle, #000 45%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 70%);
  transition: transform .5s var(--ease);
}
.glow-card:hover .card-art { transform: scale(1.08) rotate(-3deg); }
.lost-art { width: 100%; height: auto; border-radius: 18px; margin-bottom: 1.6rem; border: 1px solid var(--line); }
@media (max-width: 640px) { .glow-card { padding-right: 2rem; padding-top: 8rem; } .card-art { top: .6rem; right: auto; left: 1.2rem; translate: none; width: 7.5rem; height: 7.5rem; } }

/* ---------- Planet 214 game page ---------- */

.nav nav a[aria-current="page"] { color: var(--text); background: var(--glass-2); }

.hero-id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; animation: rise 1s var(--ease) both; }
.app-icon { border-radius: 22px; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 12px 40px -8px rgba(155, 107, 255, .6); }
.hero-id .eyebrow { margin: 0; }
.h1-sub { display: block; font-size: .42em; letter-spacing: .02em; margin-top: .35em; }
.badge-link { display: inline-block; border-radius: 12px; transition: transform .25s var(--ease), box-shadow .25s; }
.badge-link:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(212, 255, 58, .3); }
.badge-link img { height: 56px; width: auto; }
/* The menu bar is sticky: keep the badges clear of it when "Play free" scrolls here. */
#download { scroll-margin-top: 7rem; }
.phone video { display: block; width: 100%; height: auto; border-radius: 23px; background: #0d0b16; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 2rem 0 0; color: var(--muted); font-size: .92rem; animation: rise 1s .48s var(--ease) both; }
.status { display: inline-flex; align-items: center; gap: .5rem; font: 600 .78rem var(--mono); letter-spacing: .06em; color: var(--text); padding: .45rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }
.hero-note a { color: var(--lime); }
.hero-note a:hover { text-decoration: underline; }

/* Story */
.story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.story .big { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; margin: 0 0 1.2rem; }
.story p { color: var(--muted); margin: 0 0 1rem; }
.log { margin: 0; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(14, 11, 26, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: .85rem/1.5 var(--mono); }
.log div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.log div:last-child { border: 0; }
.log dt { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.log dd { margin: 0; text-align: right; }
.log .warn { color: var(--amber); }
.log .ok { color: var(--lime); }

/* Screenshot rail: scroll sideways, phones grow as they reach the middle (where supported). */
.gallery {
  list-style: none; margin: 0 -16px; padding: 1rem 16px 2rem;
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--violet) transparent;
}
.gallery li { flex: 0 0 min(62vw, 250px); scroll-snap-align: center; }
.gallery .phone { width: 100%; transform: none; }
.gallery li:hover .phone { transform: translateY(-6px); }
@supports (animation-timeline: view()) {
  .gallery li { animation: rail linear both; animation-timeline: view(inline); }
}
@keyframes rail { 0%, 100% { transform: scale(.88); opacity: .6; } 50% { transform: none; opacity: 1; } }

/* Feature grid spans */
.f-4 { grid-column: span 4; }
.f-2 { grid-column: span 2; }
.f-6 { grid-column: span 6; }
.f-fight { display: flex; align-items: flex-end; padding: 0; }
.f-fight .tile-text { position: relative; padding: 4rem 1.6rem 1.6rem; width: 100%; background: linear-gradient(transparent, rgba(7, 6, 13, .92) 45%); }
.f-fight:hover .tile-bg { transform: scale(1.08); }
.f-big { display: flex; flex-direction: column; justify-content: center; }
.f-big h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.f-big p { max-width: 34rem; }
.f-fair { background: linear-gradient(120deg, rgba(212, 255, 58, .12), rgba(155, 107, 255, .08)); }
.tile .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tile .chips span { font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }

/* Watch + follow */
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.socials svg .dot { fill: currentColor; }
.cta-band .lead-sm { color: var(--muted); max-width: 36rem; }
.cta-band a.inline { color: var(--lime); }
.cta-band a.inline:hover { text-decoration: underline; }

/* Feedback form */
.form-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: start; }
.form-wrap > div p { color: var(--muted); }
.path { font: .9em var(--mono); color: var(--text); padding: .1rem .4rem; border-radius: 6px; background: var(--glass-2); }
.feedback-form { display: grid; gap: .5rem; padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.feedback-form label { font: 600 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.feedback-form .meta { display: block; margin-top: .2rem; text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; }
.feedback-form textarea, .feedback-form input[type="text"] {
  width: 100%; font: inherit; color: var(--text);
  padding: .85rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(7, 6, 13, .6);
  transition: border-color .2s, box-shadow .2s;
}
.feedback-form textarea { resize: vertical; min-height: 8rem; }
.feedback-form textarea:focus, .feedback-form input[type="text"]:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 58, .15); }
.feedback-form .btn { justify-self: start; margin-top: 1rem; border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot .social svg { display: none; }

@media (max-width: 960px) {
  .story, .form-wrap { grid-template-columns: 1fr; }
  .f-4, .f-6 { grid-column: span 2; }
  .f-2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .f-4, .f-2, .f-6 { grid-column: auto; }
  .f-fight { min-height: 380px; }
  .hero-id { gap: .8rem; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
}

/* ---------- Document pages (support, privacy, thanks, wait, 404) ---------- */

.doc {
  width: min(52rem, calc(100% - 32px));
  margin: 4rem auto 0;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: rise .9s var(--ease) both;
}
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.2rem; }
.doc h1::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: 1rem; border-radius: 4px;
  background: linear-gradient(90deg, var(--lime), var(--violet), var(--cyan));
  background-size: 200% 100%; animation: shimmer 6s linear infinite;
}
.doc h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.6rem 0 .9rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #d3cfe2; }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc li { margin: .4rem 0; }
.doc li::marker { color: var(--lime); }
.doc strong { color: var(--text); }
.doc a:not(.button):not(.btn) { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(212, 255, 58, .35); text-underline-offset: 3px; }
.doc a:not(.button):not(.btn):hover { text-decoration-color: var(--lime); }
.doc .meta { color: var(--muted); font-size: .92rem; }
.doc .lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }

.callout {
  margin: 1.6rem 0; padding: 1.3rem 1.5rem; border-radius: 18px;
  border: 1px solid rgba(212, 255, 58, .25);
  background: linear-gradient(120deg, rgba(212, 255, 58, .1), rgba(155, 107, 255, .08));
}
.callout p:last-child { margin: 0; }

.panel { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(7, 6, 13, .45); margin: 0 0 1.4rem; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.contact-box p { margin: 0; }

/* Old-style .button on these pages looks like the lime pill. */
.button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: #0b0a12; font: 700 1rem var(--body); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(212, 255, 58, .35); }
.doc .feedback-form { margin-bottom: 1rem; }
.doc .feedback-form .button { justify-self: start; margin-top: 1rem; }

.faq { display: grid; gap: .6rem; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: rgba(7, 6, 13, .45); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(155, 107, 255, .45); background: rgba(155, 107, 255, .07); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%;
  font: 1.4rem/1 var(--mono); color: var(--lime); transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 1.2rem .4rem; animation: rise .4s var(--ease) both; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; align-content: start; padding-top: 3rem; gap: 3rem; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-main, .t-fair { grid-column: span 2; }
  .t-up, .t-regions, .t-ore { grid-column: span 1; }
  .t-fight { grid-column: span 1; grid-row: span 2; }
}

@media (max-width: 640px) {
  /* Phones keep only the game link in the menu bar, plus Support on the game's pages (players looking for help). */
  .nav nav a:not(:first-child) { display: none; }
  .nav nav[aria-label="Planet 214"] a:nth-child(2) { display: block; }
  /* Footer links get finger-sized tap areas. */
  .foot nav { gap: 0 1.2rem; }
  .foot nav a, .foot .cookie-btn { display: inline-block; padding: .7rem 0; }
  .nav nav a { padding: .45rem .6rem; font-size: .85rem; color: var(--text); }
  .nav-cta { padding: .55rem .9rem; font-size: .85rem; }
  .more-link .btn { width: 100%; justify-content: center; }
  .nav { gap: .5rem; }
  /* Game page */
  .hero .ctas .badge-link { align-self: center; }
  .hero-note { flex-direction: column; align-items: flex-start; }
  .hero-note .btn { width: 100%; justify-content: center; }
  .icon-row { justify-content: center; }
  .socials { flex-wrap: nowrap; justify-content: center; gap: 1rem; }
  .socials .btn { width: 58px; height: 58px; padding: 0; gap: 0; justify-content: center; }
  .socials svg { width: 22px; height: 22px; }
  .socials .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .feedback-form .btn { justify-self: stretch; justify-content: center; }
  .nav nav a, .nav-cta { white-space: nowrap; }
  /* Pitch and store buttons first, so they're on the first screen; the art follows. */
  .hero { padding-top: 2rem; gap: 2.5rem; }
  .hero-art { order: 0; max-width: 200px; }
  .c1 { left: -1rem; } .c2 { right: -.8rem; }
  /* A slimmer cookie card that leaves the hero's buttons visible. */
  .consent { left: 8px; bottom: 8px; width: calc(100% - 16px); padding: .85rem 1rem; border-radius: 18px; font-size: .8rem; line-height: 1.45; }
  .consent p { margin-bottom: .6rem; }
  .consent .consent-title { font-size: .92rem; margin-bottom: .25rem; }
  .consent-btns .btn { padding: .6rem 1rem; }
  .ctas { flex-direction: column; }
  .ctas .btn { width: 100%; justify-content: center; }
  /* Equal columns; the number sits at the bottom so all three line up even when a label wraps. */
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stats div { display: flex; flex-direction: column; padding-left: .8rem; }
  .stats dd { font-size: 1.8rem; margin-top: auto; padding-top: .4rem; }
  .ores { flex-direction: column; }
  .bento { grid-template-columns: 1fr; }
  .t-main, .t-up, .t-fight, .t-regions, .t-ore, .t-fair { grid-column: auto; grid-row: auto; }
  .t-main { grid-template-columns: 1fr; padding: 1.6rem; }
  .t-fight { min-height: 420px; }
  .projects { grid-template-columns: 1fr; }
  .cta-band { padding: 2rem 1.5rem; flex-direction: column; align-items: stretch; }
  .section { padding-top: 4.5rem; }
}

/* Small phones: the menu bar has room for the logo, the game link and Play free, not the studio name
   (font-size 0 hides the text but screen readers still announce it). */
@media (max-width: 440px) {
  .brand { font-size: 0; gap: 0; }
  .brand, .brand img { flex: none; }
}
/* Narrowest phones (320px): tighter menu links so Support and Play free both fit. */
@media (max-width: 360px) {
  .nav { gap: .3rem; }
  .nav nav a { padding: .45rem .45rem; }
  .nav-cta { padding: .55rem .75rem; }
}

/* Calm everything down for people who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .grad { background-position: 30% 0; }
}

/* Quick answers on the game page: plain question-and-answer cards. */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.fact h3 { font-size: 1.25rem; line-height: 1.2; }
