/* ─────────────────────────────────────────
   IMMERSED PLAYER — studio site
   dark base · per-game mood accents · big type
───────────────────────────────────────── */

@font-face {
  font-family: "SBAggroB";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

:root {
  --bg: #0c0b0e;
  --bg-soft: #131217;
  --ink: #f2efe9;
  --ink-dim: #a8a29b;
  --line: rgba(242, 239, 233, 0.12);
  --brand: #4f9dff; /* studio signature blue — from the logo gradient */
  --brand-deep: #1e56e0;
  --font-display: "SBAggroB", "Archivo", "Pretendard Variable", sans-serif;
  --font-mono: "Archivo", "Pretendard Variable", sans-serif;
  --font-body: "Pretendard Variable", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* SBAggroB has one weight — no faux-bold smearing */
}

::selection { background: var(--brand-deep); color: #fff; }

em { font-style: normal; color: var(--brand); }

/* ── film grain ── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ── scroll progress ── */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  box-shadow: 0 0 12px rgba(79, 157, 255, 0.7);
  z-index: 200;
}

/* ── custom cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.3s;
  opacity: 0;
}
body:hover .cursor { opacity: 1; }
.cursor { display: flex; align-items: center; justify-content: center; }
.cursor.is-link { width: 110px; height: 110px; }
.cursor__label {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0a0f1c;
  white-space: nowrap;
}
.cursor.is-view {
  width: 92px; height: 92px;
  mix-blend-mode: normal;
  background: var(--brand);
  box-shadow: 0 0 30px rgba(79, 157, 255, 0.5);
}
.cursor.is-view .cursor__label { display: block; }
@media (hover: none) { .cursor { display: none; } }

/* ── section wipe transition ── */
.wipe {
  position: fixed;
  inset: 0;
  background: var(--brand-deep);
  transform: translateY(101%);
  z-index: 150;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wipe img { width: 84px; }
.wipe.run { animation: wipe-run 0.9s cubic-bezier(0.8, 0, 0.2, 1) forwards; }
@keyframes wipe-run {
  0% { transform: translateY(101%); }
  45%, 55% { transform: translateY(0); }
  100% { transform: translateY(-101%); }
}

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  z-index: 100;
  mix-blend-mode: difference;
  transition: background 0.35s ease, padding 0.35s ease;
}
/* once scrolling starts, trade the blend trick for a readable solid bar */
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(12, 11, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.nav__logo-mark { color: var(--brand); }
.nav__logo-img {
  height: 26px;
  vertical-align: middle;
  margin-right: 0.35rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.nav__logo:hover .nav__logo-img { transform: rotate(-12deg) scale(1.15); }
.nav__links { display: flex; gap: 1.8rem; align-items: center; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__lang {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.nav__lang:hover { background: var(--ink); color: #111; transform: rotate(-3deg); }

/* ── hero ── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.2rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
}
.hero__blob--a {
  background: #2f6bff;
  top: -25%; right: -15%;
  animation: blob-float 14s ease-in-out infinite alternate;
}
.hero__blob--b {
  background: #4fc3dd;
  bottom: -30%; left: -20%;
  animation: blob-float 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 10%) scale(1.15); }
}
.hero__3d {
  position: absolute;
  top: 0; right: 0;
  width: 54%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__3d canvas { display: block; width: 100%; height: 100%; }
.hero > *:not(.hero__3d):not(.hero__blob):not(.hero__stamp) { position: relative; z-index: 1; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(3.2rem, 12vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__title { overflow: hidden; }
.hero__title span { display: block; }
.hero__title span.reveal {
  transform: translateY(108%) rotate(3deg);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.hero__title span.reveal.is-visible { transform: none; }
.hero__title span.reveal:nth-child(2) { transition-delay: 0.14s; }
.hero__title-accent {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero__dot { display: inline !important; color: var(--brand); -webkit-text-stroke: 0; }
.hero__sub {
  margin-top: 2.2rem;
  max-width: 44rem;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  color: var(--ink-dim);
}
.hero__cta { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2rem; right: clamp(1.2rem, 5vw, 5rem);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
  animation: scroll-nudge 2.2s ease-in-out infinite;
}
.hero .hero__stamp {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  z-index: 90;
  pointer-events: none;
  transform: translate(-40vw, 70vh); /* parked offscreen-ish until the pointer moves */
  will-change: transform;
}
@media (hover: none) { .hero .hero__stamp { display: none; } }
.hero__stamp svg {
  width: 100%;
  height: 100%;
  animation: stamp-spin 16s linear infinite;
}
.hero__stamp text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  fill: var(--ink-dim);
}
.hero__stamp img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
}
@keyframes stamp-spin { to { transform: rotate(360deg); } }
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ── buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4), background 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.96); }
.btn--fill { background: var(--brand); color: #111; }
.btn--fill:hover { transform: translateY(-3px) rotate(-1deg); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px) rotate(1deg); }
.btn--sm {
  font-size: 0.85rem;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--accent, var(--brand));
  color: var(--accent, var(--brand));
}
.btn--sm:hover { background: var(--accent, var(--brand)); color: #111; }
.btn--lg { font-size: clamp(1rem, 2.4vw, 1.4rem); padding: 1.1rem 2.4rem; }

/* ── marquee ── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
  background: var(--bg-soft);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev { border-color: rgba(79, 157, 255, 0.35); }
.marquee--rev .marquee__track {
  animation-direction: reverse;
  color: var(--brand);
}
.marquee__logo {
  height: 1.15em;
  vertical-align: -0.25em;
  margin: 0 1.1rem;
  animation: logo-spin 6s linear infinite;
}
@keyframes logo-spin {
  0%, 70% { transform: rotate(0); }
  85% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── section head ── */
.section-head {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--brand);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.section-head p { color: var(--ink-dim); margin-top: 0.8rem; max-width: 36rem; }
.accent-dot { color: var(--brand); }

/* ── game rows ── */
.games { padding-bottom: clamp(3rem, 8vw, 6rem); }

.game {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  position: relative;
  transition: background 0.5s ease;
}
.game:hover { background: var(--accent-dim, var(--bg-soft)); }
.game--flip .game__art { order: 2; }
.game--flip .game__info { order: 1; }

.game__art { position: relative; }
.game__num {
  position: absolute;
  top: -1.6rem; left: -0.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--accent);
  /* stacked shadows fake an extruded 3D block; JS adds perspective rotation */
  text-shadow:
    1px 1px 0 var(--accent-dim), 2px 2px 0 var(--accent-dim),
    3px 3px 0 var(--accent-dim), 4px 4px 0 var(--accent-dim),
    5px 5px 0 var(--accent-dim), 6px 6px 0 var(--accent-dim),
    7px 7px 0 var(--accent-dim), 8px 8px 0 var(--accent-dim),
    9px 9px 0 var(--accent-dim), 10px 10px 0 var(--accent-dim),
    16px 24px 28px rgba(0, 0, 0, 0.55);
  opacity: 0.95;
  pointer-events: none;
  z-index: 3;
  transform: perspective(600px) rotateX(12deg) rotateY(-10deg);
}
.game__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #111;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  animation: badge-pulse 1.6s ease-in-out infinite;
  z-index: 3;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.game__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
}
.tag--free { border-color: var(--accent); color: var(--accent); font-weight: 700; }

.game__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1;
}
.game__more {
  display: inline-block;
  margin-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.game__more:hover { color: var(--accent, var(--brand)); border-color: var(--accent, var(--brand)); }

.game:hover .game__title { animation: title-glitch 0.5s steps(2) infinite; }
@keyframes title-glitch {
  0% { text-shadow: 3px 0 0 rgba(255, 0, 70, 0.65), -3px 0 0 rgba(0, 210, 255, 0.65); transform: translateX(0); }
  30% { text-shadow: -3px 0 0 rgba(255, 0, 70, 0.65), 3px 0 0 rgba(0, 210, 255, 0.65); transform: translateX(1px) skewX(1.5deg); }
  60% { text-shadow: 2px 0 0 rgba(0, 210, 255, 0.65), -2px 0 0 rgba(255, 0, 70, 0.65); transform: translateX(-1px); }
  100% { text-shadow: 3px 0 0 rgba(255, 0, 70, 0.65), -3px 0 0 rgba(0, 210, 255, 0.65); transform: translateX(0) skewX(-1deg); }
}
.game__pitch {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  margin: 0.9rem 0 1rem;
}
.game__desc {
  color: var(--ink-dim);
  font-size: 0.97rem;
  max-width: 34rem;
}
.game__desc strong { color: var(--ink); font-weight: 600; }
.game__meta {
  display: flex; gap: 1.4rem;
  margin: 1.3rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--ink-dim);
}

/* ── game art tiles ── */
.art {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.game__artlink { display: block; perspective: 900px; }
.game .art { transform: scale(0.93); }
.game.is-visible .art { transform: none; }

/* staggered entrance for the info column */
.game :is(.game__tags, .game__title, .game__pitch, .game__desc, .game__meta, .game__info .btn) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.game.is-visible :is(.game__tags, .game__title, .game__pitch, .game__desc, .game__meta, .game__info .btn) {
  opacity: 1;
  transform: none;
}
.game .game__title { transition-delay: 0.08s; }
.game .game__pitch { transition-delay: 0.16s; }
.game .game__desc { transition-delay: 0.24s; }
.game .game__meta { transition-delay: 0.31s; }
.game .game__info .btn { transition-delay: 0.38s; }

/* photo tile: cover art at rest, in-game screenshot on hover */
.art--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.art--photo .art__hover { opacity: 0; }
.game:hover .art--photo .art__hover { opacity: 1; transform: scale(1.05); }
.art--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, 0.55));
  pointer-events: none;
}

/* mystery tile for unannounced projects */
.art--soon {
  background: radial-gradient(ellipse at 50% 40%, var(--accent-dim) 0%, #0a0a0d 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: var(--accent);
}
.art--soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.art__q {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 10vw, 9rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  animation: q-breathe 3.2s ease-in-out infinite;
}
@keyframes q-breathe {
  0%, 100% { transform: scale(1) rotate(-4deg); opacity: 0.75; }
  50% { transform: scale(1.1) rotate(4deg); opacity: 1; }
}
.art__q--emoji {
  color: initial;
  -webkit-text-stroke: 0;
  font-size: clamp(4rem, 8vw, 7rem);
}
.art__soon-label {
  position: absolute;
  bottom: 9%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  color: var(--accent);
  opacity: 0.85;
  animation: coin-blink 1.8s steps(1) infinite;
}

/* ── archive: shipped worlds we no longer update ── */
.archive {
  margin: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.8rem, 4vw, 2.6rem);
}
.archive__head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.archive__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}
.archive__note {
  color: var(--ink-dim);
  font-size: 0.88rem;
}
.archive__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.archive__item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.archive__item img {
  width: 118px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.45s ease, opacity 0.45s ease;
}
.archive__item:hover { border-color: var(--brand); background: rgba(79, 157, 255, 0.04); }
.archive__item:hover img { filter: none; opacity: 1; }
.archive__info h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.archive__info span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.archive__arrow {
  margin-left: auto;
  color: var(--ink-dim);
  transition: color 0.3s, transform 0.3s;
}
.archive__item:hover .archive__arrow { color: var(--brand); transform: translate(3px, -3px); }
@media (max-width: 860px) {
  .archive__items { grid-template-columns: 1fr; }
}

/* ── studio: one editorial flow — intro, index list, giant mailto finale ── */
.studio { background: var(--bg-soft); border-top: 1px solid var(--line); }
.studio__grid { padding: 0 clamp(1.2rem, 5vw, 5rem) clamp(4rem, 9vw, 7rem); }

.studio__lead {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.55;
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

/* say hi: dissolved into the flow, ends on a giant mailto */
.studio__say {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.say__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--brand);
}
.say__line {
  color: var(--ink-dim);
  line-height: 1.75;
  margin: 0.9rem 0 1.8rem;
}
.say__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
  background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 0% 3px;
  transition: background-size 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), color 0.3s;
}
.say__mail:hover {
  color: var(--brand);
  background-size: 100% 3px;
}
.say__socials {
  display: flex;
  gap: 1.8rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.say__socials a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.say__socials a:hover { color: var(--brand); border-color: var(--brand); }

@media (max-width: 1024px) {
}

/* ── minigame: page-wide anomaly hunt ── */
.minigame {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  background: radial-gradient(ellipse 70% 55% at 50% 12%, rgba(79, 157, 255, 0.1), transparent 70%);
}
.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center p { max-width: 42rem; }
.minigame__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--brand);
  color: #0a0f1c;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  animation: badge-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 26px rgba(79, 157, 255, 0.55);
  margin-bottom: 1.3rem;
}
.minigame__panel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 880px;
  width: calc(100% - 2 * clamp(1.2rem, 5vw, 5rem));
  border: 1.5px solid var(--brand);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--bg-soft);
  text-align: center;
  animation: panel-glow 3s ease-in-out infinite;
}
@keyframes panel-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(79, 157, 255, 0.12) inset, 0 0 30px rgba(79, 157, 255, 0.15); }
  50% { box-shadow: 0 0 60px rgba(79, 157, 255, 0.22) inset, 0 0 55px rgba(79, 157, 255, 0.35); }
}
.minigame__panel::after {
  /* arcade scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
  border-radius: inherit;
}
.minigame__demo {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  max-width: 38rem;
  margin: 0 auto 1.3rem;
  line-height: 1.9;
}
.minigame__demo-word {
  display: inline-block;
  color: var(--brand);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.minigame__coin {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  margin-bottom: 1.3rem;
  animation: coin-blink 1.4s steps(1) infinite;
}
@keyframes coin-blink {
  0%, 60%, 100% { opacity: 1; }
  61%, 80% { opacity: 0.25; }
}
.minigame__panel.is-visible #mgStart { animation: start-nudge 1s ease 0.6s 2; }
@keyframes start-nudge {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.08) rotate(-2deg); }
  60% { transform: scale(1.04) rotate(1.5deg); }
}
#mgStart {
  position: relative;
  box-shadow: 0 0 28px rgba(79, 157, 255, 0.45);
}
#mgStart:not(:disabled)::after {
  /* radiating ring: "this is a button you press, now" */
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  animation: start-ring 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes start-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}
.minigame__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.minigame__stat {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.minigame__stat b { color: var(--brand); font-size: 1.05rem; margin-left: 0.3rem; }
.minigame__msg {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  min-height: 1.4em;
  margin-bottom: 1.2rem;
}
#mgStart:disabled { opacity: 0.55; cursor: default; }

/* hunt mode: the page itself becomes the play space */
body.hunt-mode::before {
  content: "";
  position: fixed;
  inset: 10px;
  border: 1.5px solid var(--brand);
  border-radius: 16px;
  pointer-events: none;
  z-index: 140;
  animation: hunt-pulse 2s ease-in-out infinite;
}
@keyframes hunt-pulse { 50% { opacity: 0.3; } }

/* the anomaly effects applied to real page elements — loud on purpose */
.hunt-flip, .hunt-upside { display: inline-block; }
.footer__big.hunt-flip, .studio__lead.hunt-flip { display: block; }
.hunt-flip { transform: scaleX(-1) !important; }
.hunt-upside { transform: rotate(180deg) !important; }
.hunt-invert { filter: invert(0.85) hue-rotate(180deg) !important; }

.hunt-hud {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: rgba(10, 12, 18, 0.94);
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hunt-hud[hidden] { display: none; }
.hunt-hud b { color: var(--brand); }
.hunt-hud__hint { color: var(--ink-dim); }
.hunt-hud__hint:empty { display: none; }
.hunt-hud button {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.1rem;
}
.hunt-hud button:hover { color: var(--brand); }
.hunt-hud--shake { animation: hud-shake 0.3s ease; }

/* ── hunt result modal ── */
.hunt-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
}
.hunt-modal[hidden] { display: none; }
.hunt-modal__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hunt-modal__card {
  position: relative;
  text-align: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--brand);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.8rem, 5vw, 3.4rem);
  max-width: min(90vw, 480px);
  box-shadow: 0 0 90px rgba(79, 157, 255, 0.3);
  animation: modal-pop 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.35);
}
@keyframes modal-pop {
  from { transform: scale(0.7) rotate(-3deg); opacity: 0; }
}
.hunt-modal__card > img {
  width: 64px;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 0 22px rgba(79, 157, 255, 0.6));
}
.hunt-modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  color: var(--brand);
}
.hunt-modal__score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.1;
  margin: 0.7rem 0;
}
.hunt-modal__score b {
  display: block;
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  color: var(--brand);
}
.hunt-modal__note {
  color: var(--ink-dim);
  line-height: 1.7;
  margin: 0.8rem 0 1rem;
}
.hunt-modal__best {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 1.6rem;
  min-height: 1.2em;
}
@keyframes hud-shake {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translateX(calc(-50% - 6px)); }
  75% { transform: translateX(calc(-50% + 6px)); }
}

/* ── footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.2rem, 5vw, 5rem) 2.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* equal side tracks keep the middle truly centered */
  align-items: center;
  gap: 1rem;
}
.footer__big {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 900;
  text-align: center;
  font-size: clamp(2.2rem, 8.6vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 239, 233, 0.22);
  user-select: none;
  margin-bottom: 1.2rem;
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
}
.footer__big:hover {
  color: var(--brand);
  -webkit-text-stroke-color: var(--brand);
}
.footer__meta { justify-content: flex-end; }
.footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.footer__by {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.footer__social {
  display: flex; gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.footer__social a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.footer__social a:hover { color: var(--brand); border-color: var(--brand); }
.footer__meta {
  display: flex; gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
}

/* ── subpages: game detail + docs ── */
.gpage__hero {
  position: relative;
  min-height: 56svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem clamp(1.2rem, 5vw, 5rem) clamp(2.2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.gpage__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.gpage__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.gpage__hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 14, 0.55) 0%, rgba(12, 11, 14, 0.25) 40%, var(--bg) 96%);
}
.gpage__kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent, var(--brand));
  margin-bottom: 0.7rem;
}
.gpage__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.gpage__pitch {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-top: 0.9rem;
  max-width: 40rem;
}
.gpage__body {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 5vw, 2rem) clamp(4rem, 8vw, 6rem);
}
.gpage__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.gpage__desc { color: var(--ink-dim); line-height: 1.85; margin-bottom: 2rem; }
.gpage__desc strong { color: var(--ink); }
.gpage__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.gfact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.gfact span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 0.3rem;
}
.gfact b { font-size: 0.98rem; font-weight: 700; }
.gpage__features { list-style: none; margin-bottom: 2.4rem; }
.gpage__features li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
.gpage__features li::before {
  content: "✦";
  position: absolute;
  left: 0.2rem;
  color: var(--accent, var(--brand));
}
.gpage__shot {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 2.4rem;
}
.gpage__shot img { width: 100%; display: block; }
.gpage__h {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent, var(--brand));
  margin: 2.2rem 0 0.6rem;
}
.gpage__h:first-of-type { margin-top: 0; }
.gpage__body > .gpage__h + p { color: var(--ink-dim); line-height: 1.85; margin-bottom: 1rem; }
.gpage__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 2.2rem 0 2.4rem;
}
.gpage__gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.35s ease;
}
.gpage__gallery img:hover { transform: scale(1.025); }
@media (max-width: 560px) {
  .gpage__gallery { grid-template-columns: 1fr; }
}
.gpage__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3rem; }
.gpage__nav {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.gpage__nav a { color: var(--ink-dim); text-decoration: none; transition: color 0.25s; }
.gpage__nav a:hover { color: var(--brand); }

/* docs (privacy) */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem clamp(1.2rem, 5vw, 2rem) clamp(4rem, 8vw, 6rem);
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.5rem;
}
.doc__updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 2.4rem;
}
.doc h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--brand);
}
.doc h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-dim); line-height: 1.85; margin-bottom: 0.8rem; }
.doc ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc a { color: var(--brand); }

/* ── typography refinements ── */
body {
  word-break: keep-all; /* Korean wraps at word boundaries, not mid-word */
  overflow-wrap: break-word;
}
.hero__sub,
.section-head p,
.game__desc,
.say__line,
.archive__note,
.minigame__demo,
.gpage__desc,
.gpage__body > .gpage__h + p,
.gpage__features li {
  letter-spacing: -0.01em;
  line-height: 1.6;
}
.hero__sub, .section-head p, .game__desc { line-height: 1.55; }
.btn { font-weight: 700; }

@media (max-width: 560px) {
  .game__desc br { display: none; } /* forced desktop breaks read ragged on narrow lines */
}

/* ── scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ── */
@media (max-width: 860px) {
  .hero__3d { width: 100%; opacity: 0.4; }
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 0.9rem; }
  .footer__meta { justify-content: center; flex-wrap: wrap; }
  .hero__stamp { display: none; }
  .game { grid-template-columns: 1fr; gap: 1.8rem; }
  .game--flip .game__art { order: 0; }
  .game--flip .game__info { order: 1; }
  .game__num { top: -1.2rem; }
  .studio__cards { grid-template-columns: 1fr; }
  .nav__links { gap: 1.1rem; }
  .hero__scroll { display: none; }
}

/* ── phone polish ── */
@media (max-width: 560px) {
  .nav { padding: 0.85rem 1rem; }
  .nav__logo-text { display: none; } /* butterfly mark alone — links get the room */
  .nav__logo-img { height: 30px; margin-right: 0; }
  .nav__links { gap: 0.8rem; }
  .nav__links a { font-size: 0.78rem; letter-spacing: 0.03em; }
  .nav__lang { font-size: 0.7rem; padding: 0.24rem 0.65rem; }

  .hero { padding-top: 4.5rem; }
  .hero__3d { display: none; } /* too noisy behind text at this size */
  .hero__title { font-size: clamp(2.1rem, 10.4vw, 4rem); }
  .hero__sub br { display: none; }
  .hero__cta .btn { padding: 0.75rem 1.3rem; font-size: 0.88rem; }

  .marquee__track { font-size: 0.8rem; }

  .game__title { font-size: clamp(1.7rem, 8.4vw, 2.4rem); }
  .game__num {
    font-size: 2.6rem;
    top: -0.9rem;
    text-shadow:
      1px 1px 0 var(--accent-dim), 2px 2px 0 var(--accent-dim),
      3px 3px 0 var(--accent-dim), 4px 4px 0 var(--accent-dim),
      8px 12px 16px rgba(0, 0, 0, 0.5);
  }

  .say__mail { font-size: clamp(0.95rem, 4.9vw, 1.5rem); }

  .archive__item img { width: 88px; }

  .minigame__badge { font-size: 0.68rem; padding: 0.4rem 0.9rem; }

  .hunt-hud {
    max-width: calc(100vw - 1.2rem);
    gap: 0.7rem;
    padding: 0.55rem 1rem;
    font-size: 0.7rem;
  }
  .hunt-hud > span:first-child { display: none; } /* drop the wordy label, keep score/time */

  .footer { padding-top: 1.4rem; }
  .footer__big { font-size: 7.4vw; -webkit-text-stroke-width: 1px; margin-bottom: 0.7rem; }
}
