/* AI Gamify Studios: full website styles (loaded after site.css, full mode only).
   Display type: Chakra Petch (OFL). Text: Rubik (OFL). Colors from the official emblem. */

@font-face { font-family: "Chakra Petch"; src: url("/fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

.mode-full {
  --display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --body: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --line-2: #2f372f;
  --raised: #0f130f;
  --nav-h: 72px;
  --container: 1280px;
  --accent: var(--lime);
  font-family: var(--body);
}
/* Each game's own accent, taken from its artwork. Used for hover outlines and glows; the brand lime stays on buttons and status. */
[data-game="mech-mob"], .page-game--mech-mob { --accent: #ff4fa3; }
[data-game="truck-jam"], .page-game--truck-jam { --accent: #ffb21e; }
[data-game="slap-king"], .page-game--slap-king { --accent: #ff4a3d; }
[data-game="steel-fist"], .page-game--steel-fist { --accent: #ff9a2e; }
[data-game="block-rush"], .page-game--block-rush { --accent: #2fd3ff; }
[data-game="grubble-trouble"], .page-game--grubble-trouble { --accent: #fdc714; }
.mode-full h1, .mode-full h2, .mode-full h3 { text-wrap: balance; }
html:has(.mode-full) { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html:has(.mode-full) { scroll-behavior: auto; } }
html.nav-open { overflow: hidden; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; }

/* ---------- Buttons and chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.82em 1.45em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
  min-height: 44px;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.btn--lg { font-size: 1rem; padding: 1em 1.7em; }
.btn--lime { background: var(--lime); color: #000; }
.btn--lime:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px rgba(95, 252, 6, 0.18); text-decoration: none; }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.btn--ghost:hover { color: var(--lime); border-color: var(--lime); text-decoration: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
  color: var(--white); white-space: nowrap;
}
.chip--lime { color: var(--lime); border-color: rgba(95, 252, 6, 0.5); background: rgba(95, 252, 6, 0.08); }
.chip--lime::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chip--muted { color: var(--muted); border-style: dashed; }

/* ---------- Navigation ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(0, 0, 0, 0.86); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.nav__bar { height: var(--nav-h); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 6px 0;
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle-lines, .nav__toggle-lines::before, .nav__toggle-lines::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__toggle-lines { position: relative; }
.nav__toggle-lines::before, .nav__toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav__toggle-lines::before { top: -6px; }
.nav__toggle-lines::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }
.nav__menu { position: fixed; inset: var(--nav-h) 0 0; background: #000; padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.nav__menu[hidden] { display: none; }
.nav__menu nav { display: flex; flex-direction: column; }
.nav__menu nav a { font-family: var(--display); font-weight: 700; font-size: 2rem; text-transform: uppercase; color: var(--white); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav__menu nav a:hover { color: var(--lime); }
.nav__menu .btn { align-self: flex-start; }
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__logo img { height: 30px; }
}

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

.section { padding: clamp(64px, 8.5vw, 124px) var(--gutter); }
.games { padding-top: clamp(24px, 4vw, 64px); }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 72px); max-width: 780px; }
.section__title {
  margin: 0; color: var(--white);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.75rem); line-height: 0.92; letter-spacing: -0.005em;
}
.section__lede { margin: 0; max-width: 54ch; color: var(--text); font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem); line-height: 1.55; }
.h-sub { margin: 0 0 18px; color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1; }

/* ---------- Phone frame (real screenshots) ---------- */

.phone { display: block; margin: 0; overflow: hidden; background: #000; border-radius: 13% / 7.3%; box-shadow: 0 0 0 4px #141814, 0 0 0 5px #2c342c, 0 28px 70px rgba(0, 0, 0, 0.65); }
.phone img { display: block; width: 100%; height: auto; }

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 1020px);
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) var(--gutter) clamp(56px, 8vh, 96px);
}
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow img { position: absolute; width: min(64vw, 860px); height: auto; right: 2%; top: 50%; transform: translateY(-50%); filter: blur(100px) saturate(1.6); opacity: 0.42; }
.hero__glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 68% 50%, rgba(95, 252, 6, 0.07), transparent 70%), linear-gradient(to bottom, transparent 70%, #000); }
.hero__inner { width: 100%; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero__title {
  margin: 0; color: var(--white);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.6rem, 1.2rem + 7.6vw, 9rem); line-height: 0.86; letter-spacing: -0.012em;
}
.hero__title span { display: block; }
.hero__lede { margin: clamp(22px, 3vw, 34px) 0 0; max-width: 36ch; color: var(--text); font-size: clamp(1.06rem, 1rem + 0.4vw, 1.32rem); line-height: 1.55; }
.hero__actions { margin-top: clamp(28px, 3.5vw, 42px); display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; width: min(100%, 700px); aspect-ratio: 1; justify-self: center; }
.hero__stage::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 252, 6, 0.1), transparent 72%); }
.hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.hero__ring circle { fill: none; stroke: var(--lime); stroke-width: 0.55; transform: rotate(-90deg); transform-origin: 50% 50%; }
.hero__phones { position: absolute; inset: 0; will-change: transform; }
.hero__phones .phone { position: absolute; }
.hero .phone--center { width: 33%; left: 33.5%; top: 18%; z-index: 3; box-shadow: 0 0 0 5px #141814, 0 0 0 6px #343d34, 0 40px 90px rgba(0, 0, 0, 0.75); }
.hero .phone--left { width: 27%; left: 11%; top: 27%; z-index: 2; rotate: -9deg; }
.hero .phone--right { width: 27%; right: 11%; top: 27%; z-index: 2; rotate: 9deg; }
.hero__feature {
  position: absolute; left: -1%; bottom: 3%; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  max-width: 360px; padding: 12px 20px 12px 12px;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(6, 8, 6, 0.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hero__feature:hover { border-color: rgba(95, 252, 6, 0.7); transform: translateY(-2px); text-decoration: none; }
.hero__feature-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.hero__feature-text { display: grid; gap: 1px; font-size: 0.9rem; line-height: 1.35; }
.hero__feature-kicker { color: var(--muted); font-size: 0.78rem; }
.hero__feature strong { color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; letter-spacing: 0.01em; }
.hero__feature-status { margin-top: 3px; color: var(--lime); font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* The page's one entrance: the emblem's ring draws, the screens rise into it, the copy settles. */
@media (prefers-reduced-motion: no-preference) {
  .hero__ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards; }
  .hero__phones .phone { opacity: 0; animation: phone-in 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
  .hero .phone--center { animation-delay: 0.55s; }
  .hero .phone--left { animation-delay: 0.78s; }
  .hero .phone--right { animation-delay: 0.9s; }
  .hero__feature { opacity: 0; animation: settle 0.7s ease-out 1.3s forwards; }
  .hero__copy > * { opacity: 0; animation: settle 0.8s ease-out forwards; }
  .hero__copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.24s; }
}
@keyframes phone-in { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 28px); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__title { font-size: clamp(3.4rem, 14.5vw, 6rem); }
  .hero__stage { width: min(100%, 540px); margin-bottom: 40px; }
  .hero__feature { left: 0; right: auto; bottom: -34px; max-width: calc(100% - 8px); }
  .hero__glow img { width: 120vw; right: -30%; top: 64%; }
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__feature-icon { width: 52px; height: 52px; border-radius: 13px; }
  .hero__feature strong { font-size: 1.15rem; }
}

/* ---------- Featured game cards ---------- */

.games__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.game-card {
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 12; display: block; min-height: 500px;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--raised); color: inherit; text-decoration: none;
  transition: border-color 0.3s ease;
}
@media (min-width: 900px) {
  .game-card { min-height: 620px; }
  .games__grid > .game-card:nth-child(4n + 1), .games__grid > .game-card:nth-child(4n) { grid-column: span 7; }
  .games__grid > .game-card:nth-child(4n + 2), .games__grid > .game-card:nth-child(4n + 3) { grid-column: span 5; }
  .games__grid > .game-card:nth-child(4n + 2) .game-card__phones, .games__grid > .game-card:nth-child(4n + 3) .game-card__phones { height: 58%; top: 7%; }
}
.game-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.game-card:hover::after, .game-card:focus-visible::after { opacity: 1; }
.game-card:hover, .game-card:focus-visible { border-color: var(--accent); text-decoration: none; }
.game-card:focus-visible { outline-offset: 4px; }
.game-card__stage { position: absolute; inset: 0; z-index: -1; }
.game-card__ambient { position: absolute; inset: -12%; }
.game-card__ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(42px) saturate(1.45) brightness(0.5); }
.game-card__phones { position: absolute; inset: 6% 0 auto; height: 66%; display: flex; justify-content: center; align-items: flex-start; }
.game-card__phones .phone { position: relative; height: 100%; flex: none; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.game-card__phones .phone img { height: 100%; width: auto; }
.game-card__phones .phone + .phone { margin-left: -7%; }
.game-card__phones .phone:nth-child(1) { transform: translateY(7%) rotate(-7deg); }
.game-card__phones .phone:nth-child(2) { z-index: 2; transform: scale(1.06); }
.game-card__phones .phone:nth-child(3) { transform: translateY(7%) rotate(7deg); }
.game-card:hover .game-card__phones .phone:nth-child(1) { transform: translate(-12px, 5%) rotate(-9deg); }
.game-card:hover .game-card__phones .phone:nth-child(2) { transform: translateY(-10px) scale(1.08); }
.game-card:hover .game-card__phones .phone:nth-child(3) { transform: translate(12px, 5%) rotate(9deg); }
.game-card__shot { position: absolute; inset: 0; }
.game-card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.game-card:hover .game-card__shot img { transform: scale(1.035); }
.game-card__go {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.45);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.game-card__go svg { width: 20px; height: 20px; }
.game-card:hover .game-card__go, .game-card:focus-visible .game-card__go { background: var(--lime); border-color: var(--lime); color: #000; }
.game-card__info { position: absolute; inset: auto 0 0; padding: clamp(22px, 2.4vw, 34px); padding-top: 72px; background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 42%, rgba(0, 0, 0, 0.72) 72%, transparent); }
.game-card__title { margin: 0 0 8px; color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 1.3rem + 1.7vw, 3rem); line-height: 0.92; }
.game-card__summary { margin: 0 0 14px; max-width: 46ch; color: var(--text); font-size: 0.98rem; line-height: 1.5; }
.game-card__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 0.875rem; }
.game-card--small { min-height: 380px; }
.game-card--small .game-card__phones { height: 58%; }
.game-card--small .game-card__title { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }

/* ---------- Coming up ---------- */

/* Playfield crops (near-square gameplay without the game's interface), framed like the phones. */
.tile { display: block; margin: 0; overflow: hidden; background: #000; border-radius: 16px; box-shadow: 0 0 0 4px #141814, 0 0 0 5px #2c342c, 0 26px 64px rgba(0, 0, 0, 0.62); }
.tile img { display: block; width: 100%; height: auto; }

.upcoming__lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .upcoming__lead { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); } }

.spotlight {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 40px); align-items: center;
  padding: clamp(24px, 3.2vw, 48px);
  border-radius: 24px; border: 1px solid var(--line); background: var(--raised);
  transition: border-color 0.3s ease;
}
@media (min-width: 860px) { .spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); } }
.spotlight:hover, .spotlight:focus-within { border-color: var(--accent); }
.spotlight__ambient { position: absolute; inset: -25%; z-index: -1; pointer-events: none; }
.spotlight__ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.3) brightness(0.36); }
.spotlight__ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 0, 0, 0.72) 30%, transparent 75%); }
.spotlight__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 22px; }
.spotlight__icon { width: clamp(84px, 8vw, 112px); height: auto; border-radius: 20%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.spotlight__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 0.875rem; }
.spotlight__title { margin: 0; color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.4rem); line-height: 0.9; }
.spotlight__tagline { margin: 12px 0 0; color: var(--accent); font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); letter-spacing: 0.04em; text-transform: uppercase; }
.spotlight__summary { margin: 16px 0 0; max-width: 46ch; color: var(--text); font-size: 1.02rem; line-height: 1.55; }
.spotlight__facts { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 9px; color: var(--white); font-size: 0.97rem; }
.spotlight__facts li { display: flex; gap: 12px; align-items: baseline; }
.spotlight__facts li::before { content: ""; flex: none; width: 10px; height: 9px; background: var(--lime); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.spotlight__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 24px; }
.spotlight__link:hover { transform: none; }
.spotlight__art { position: relative; z-index: 0; display: flex; justify-content: center; align-items: center; padding: 10px 0 18px; }
.spotlight__art .tile { position: relative; flex: none; width: 44%; max-width: 260px; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.spotlight__art .tile + .tile { margin-left: -11%; }
@media (max-width: 599px) { .spotlight__art .tile { width: 41%; } }
.spotlight__art .tile:nth-child(1) { transform: translateY(8%) rotate(-7deg); }
.spotlight__art .tile:nth-child(2) { z-index: 2; transform: scale(1.1); }
.spotlight__art .tile:nth-child(3) { transform: translateY(8%) rotate(7deg); }
.spotlight:hover .spotlight__art .tile:nth-child(1) { transform: translate(-12px, 6%) rotate(-9deg); }
.spotlight:hover .spotlight__art .tile:nth-child(2) { transform: translateY(-8px) scale(1.12); }
.spotlight:hover .spotlight__art .tile:nth-child(3) { transform: translate(12px, 6%) rotate(9deg); }

/* Announced, not shown yet: the dashed outline matches the "In the works" chip, and the name is the picture. */
.teaser {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 320px; padding: clamp(24px, 3vw, 40px);
  border-radius: 24px; border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.022) 14px 28px);
}
.teaser__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 0.875rem; }
.teaser__title { margin: 0; color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 3rem; font-size: min(19cqi, 5.6rem); line-height: 0.88; letter-spacing: 0.01em; }
.teaser__title span { display: block; }
@supports (-webkit-text-stroke: 1px white) {
  .teaser__title { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.86); }
}
.teaser__text { margin: 0; max-width: 32ch; color: var(--text); font-size: 1.02rem; line-height: 1.5; }


.upcoming__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.upcoming__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.1fr); gap: 10px 36px; align-items: center; padding: clamp(22px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line); }
.upcoming__title { margin: 0; color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); line-height: 0.95; }
.upcoming__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat; transition: background-size 0.25s ease, color 0.2s ease; }
.upcoming__title a:hover { color: var(--lime); background-size: 100% 2px; text-decoration: none; }
.upcoming__summary { margin: 0; color: var(--text); line-height: 1.5; }
.upcoming__summary strong { color: var(--white); font-weight: 500; }
.upcoming__meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 899px) {
  .upcoming__item { grid-template-columns: minmax(0, 1fr); }
  .upcoming__meta { justify-content: flex-start; }
}

/* ---------- Labs ---------- */

.labs__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.lab { margin: 0; grid-column: span 12; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--raised); }
.lab figcaption { padding: 20px 24px 24px; color: var(--text); font-size: 0.97rem; line-height: 1.55; }
.lab figcaption strong { display: block; margin-bottom: 4px; color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.lab figcaption a { white-space: nowrap; display: inline-block; padding-block: 3px; }
.lab__fighters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #c9c9c9; }
.lab__fighters img { display: block; width: 100%; height: auto; }
.lab--road > img { display: block; width: 100%; height: auto; }
.lab__pair { flex: 1; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 30px 24px 6px; background: radial-gradient(closest-side, rgba(146, 84, 255, 0.22), transparent); }
.lab__pair .phone { width: min(38%, 150px); }
@media (min-width: 900px) {
  .lab--fighters { flex-direction: row; align-items: stretch; }
  .lab--fighters .lab__fighters { flex: 0 0 64%; }
  .lab--fighters figcaption { align-self: center; padding: 32px clamp(24px, 3vw, 44px); font-size: 1.05rem; }
  .lab--fighters figcaption strong { font-size: 1.6rem; margin-bottom: 10px; }
  .lab--road, .lab--blocks { grid-column: span 6; }
}

/* ---------- Studio ---------- */

.studio { border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 22% 50%, rgba(95, 252, 6, 0.06), transparent 70%); }
.studio__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.studio__emblem img { width: min(100%, 440px); height: auto; margin: 0 auto; }
.studio__lede { margin: 22px 0 0; max-width: 44ch; color: var(--white); font-size: clamp(1.12rem, 1rem + 0.45vw, 1.4rem); line-height: 1.5; }
.studio__points { margin: 40px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.studio__points div { padding-top: 16px; border-top: 2px solid var(--lime); }
.studio__points dt { color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.studio__points dd { margin: 8px 0 0; color: var(--text); font-size: 0.97rem; line-height: 1.5; }
@media (max-width: 899px) {
  .studio__inner { grid-template-columns: minmax(0, 1fr); }
  .studio__emblem img { width: min(70%, 320px); }
  .studio__points { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand img { height: 36px; width: auto; }
.footer__brand p { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }
.footer__brand p a { display: inline-block; padding-block: 4px; }
.footer__col h2 { margin: 0 0 12px; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__col a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-size: 0.95rem; }
@media (pointer: coarse) { .footer__col a, .footer__brand a { display: flex; align-items: center; min-height: 44px; padding: 0; } }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { max-width: var(--container); margin: 44px auto 0; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 899px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Game pages ---------- */

.game-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(36px, 6vw, 88px)) var(--gutter) clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.game-hero__ambient { position: absolute; inset: -18%; z-index: -1; }
.game-hero__ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.5) brightness(0.42); }
.game-hero__ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #000 92%); }
.game-hero__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: -10px 0 16px; color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.crumb::before { content: "‹"; font-size: 1.2em; line-height: 1; }
.crumb:hover { color: var(--lime); }
.game-hero__icon { display: block; width: 92px; height: 92px; margin-bottom: 22px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.game-hero__title { margin: 0; color: var(--white); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 1.6rem + 5.2vw, 6.4rem); line-height: 0.88; letter-spacing: -0.01em; }
.game-hero__tagline { margin: 16px 0 0; color: var(--white); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.55rem); line-height: 1.35; }
.game-hero__meta { margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--text); font-size: 0.95rem; }
.game-hero__note { margin: 14px 0 0; max-width: 46ch; color: var(--muted); }
.game-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.frame { margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.frame img { display: block; width: 100%; height: auto; }
.trio { display: flex; justify-content: center; align-items: center; }
.trio .phone, .trio .tile { position: relative; width: min(31%, 220px); }
.trio--field .tile { width: min(34%, 250px); }
.trio > * + * { margin-left: -6%; }
.trio > :nth-child(1) { transform: translateY(6%) rotate(-7deg); }
.trio > :nth-child(2) { z-index: 2; transform: scale(1.06); }
.trio > :nth-child(3) { transform: translateY(6%) rotate(7deg); }
.game-hero__title::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 20px; border-radius: 2px; background: var(--accent); }
@media (max-width: 899px) {
  .game-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .game-hero__art { order: -1; }
}

.game-about__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.game-about__text p { margin: 0 0 16px; max-width: 62ch; color: var(--text); font-size: 1.0625rem; line-height: 1.7; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--white); }
.facts li::before { content: ""; flex: none; width: 11px; height: 10px; background: var(--lime); clip-path: polygon(50% 0, 100% 100%, 0 100%); translate: 0 -1px; }
.details { margin: 30px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 0.9rem; }
.details dd { margin: 0; color: var(--white); font-size: 0.95rem; line-height: 1.45; }
.details dd a { display: inline-block; padding: 4px 0; }
@media (pointer: coarse) {
  .details dd a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .mode-full .policy__toc a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 899px) { .game-about__inner { grid-template-columns: minmax(0, 1fr); } }

.game-shots { padding-top: 0; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.shots a { display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.shots a:hover { border-color: rgba(95, 252, 6, 0.7); transform: translateY(-3px); }
.shots img { display: block; width: 100%; height: auto; }
.shots--phone { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shots--pc { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.shots--field { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 699px) {
  .shots--phone { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); }
  .shots--phone li { flex: 0 0 58%; scroll-snap-align: start; }
  .shots--field { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); }
  .shots--field li { flex: 0 0 66%; scroll-snap-align: start; }
  .shots--pc { grid-template-columns: minmax(0, 1fr); }
}

.more-games { border-top: 1px solid var(--line); }
.more-games__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.more-games__grid > .game-card { grid-column: auto; }
@media (max-width: 899px) { .more-games__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lightbox ---------- */

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 14px; }
.lightbox__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #000; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Shared pages in full mode ---------- */

.mode-full .policy { padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px)); }
.mode-full .policy__title { font-family: var(--display); text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.95; }
.mode-full .policy__body h2, .mode-full .policy__summary h2 { font-family: var(--display); }
.mode-full .not-found { padding-top: calc(var(--nav-h) + clamp(56px, 12vh, 140px)); margin: 0 auto; }
.mode-full .not-found h1 { font-family: var(--display); text-transform: uppercase; }
@media (min-width: 960px) { .mode-full .policy__toc { top: calc(var(--nav-h) + 24px); } }
.mode-full .policy__body h2 { scroll-margin-top: calc(var(--nav-h) + 24px); }

@media print {
  .nav, .footer { display: none; }
}
