/* =========================================================================
   TATER TOT GAMES - "INK & BONE" : page blocks
   Depends on ttg.css (tokens + primitives).
   ========================================================================= */

/* ---- Studio hero: editorial, asymmetric, art-led ---------------------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 92px); position: relative; overflow: hidden; }
.hero__split { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.2vw, 7rem); line-height: 0.9; letter-spacing: -0.05em; margin: 0 0 1.1rem; }
.hero .lede { max-width: 36ch; margin: 0 0 2.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; min-height: clamp(330px, 44vw, 540px); }
.hero__tile { position: absolute; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--paper-3); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile--a { inset: 0 20% 28% 0; z-index: 3; rotate: -3deg; }
.hero__tile--b { inset: 20% 0 2% 32%; z-index: 2; rotate: 4deg; }
.hero__tile--c { inset: 52% 50% -6% 4%; z-index: 1; rotate: -8deg; }

/* ---- Figures strip ---------------------------------------------------- */
.figures { border-block: 1px solid var(--rule); background: var(--paper-2); }
.figures__row { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(24px, 3.6vw, 42px); }
.statlet { display: flex; flex-direction: column; gap: 2px; }
.statlet + .statlet { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.6vw, 38px); }
.statlet b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.statlet span { font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.02em; }

/* ---- Ticker ----------------------------------------------------------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); padding-block: 14px; }
.ticker__row { display: flex; gap: 30px; white-space: nowrap; width: max-content; animation: tick 46s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--ink-3); }
.ticker i { color: var(--brand); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- Filters ---------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 26px; margin: 2.4rem 0 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.chip { font-family: var(--font-body); font-weight: 600; font-size: 0.84rem; color: var(--ink-2);
  padding: 0.46em 0.95em; border-radius: 3px; border: 1px solid var(--rule-2);
  background: transparent; cursor: pointer; transition: all 0.2s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:active { transform: scale(0.97); }

/* ---- The catalogue: full-bleed art tiles ------------------------------ */
.games-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 20px); grid-auto-flow: dense; margin-top: 2rem; }
.game-card { position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--paper-3);
  grid-column: span 6; min-height: clamp(320px, 36vw, 470px); cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.game-card:nth-child(1), .game-card:nth-child(6) { grid-column: span 12; min-height: clamp(340px, 32vw, 520px); }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rule-2); }
.game-card__art { position: absolute; inset: 0; overflow: hidden; }
.game-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.game-card:hover .game-card__art img { transform: scale(1.05); }
.game-card__art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,0.95) 0%, rgba(8,8,10,0.78) 24%, rgba(8,8,10,0.2) 56%, rgba(8,8,10,0) 100%); }
.game-card__body { position: relative; z-index: 4; margin-top: auto; padding: clamp(20px, 2.4vw, 38px); color: #F7F6F3; }
.game-card__kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.game-card__title { font-size: clamp(1.6rem, 2.9vw, 2.5rem); margin: 0.25em 0 0.3em; color: #fff; }
.game-card:nth-child(1) .game-card__title, .game-card:nth-child(6) .game-card__title { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
.game-card__desc { color: rgba(255,255,255,0.8); font-size: 0.98rem; max-width: 56ch; margin: 0 0 0.9rem; }
.game-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.game-card__tags .tagchip { color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.3); }
.game-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.game-card__actions .btn--primary { background: #F7F6F3; color: #0E0E11; border-color: #F7F6F3; }
.game-card__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.game-card__actions .btn::after { background: #F7F6F3; }
.game-card__actions .btn--ghost:hover { color: #0E0E11; }
.game-card__actions a { position: relative; z-index: 6; }
.game-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.game-card.is-hidden { display: none; }
.games-empty { text-align: center; color: var(--ink-3); padding: 3rem 0 1rem; }

/* ---- Labs: dense research grid ---------------------------------------- */
.labs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: 2.4rem; }
.lab { position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s; }
.lab:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rule-2); }
.lab__shot { aspect-ratio: 9 / 16; overflow: hidden; background: var(--paper-3); }
.lab__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.lab:hover .lab__shot img { transform: scale(1.05); }
.lab__body { padding: 14px 16px 16px; }
.lab__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; margin: 0 0 0.2em; }
.lab__hook { font-size: 0.85rem; color: var(--ink-3); line-height: 1.45; margin: 0; }
.lab__name a::after { content: ""; position: absolute; inset: 0; }

/* ---- Studio / about --------------------------------------------------- */
.about-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 6vw, 88px); align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillars li { padding: 18px 0; border-top: 1px solid var(--rule); }
.pillars li:last-child { border-bottom: 1px solid var(--rule); }
.pillars b { display: block; font-family: var(--font-display); font-size: 1.04rem; margin-bottom: 2px; }
.pillars span { color: var(--ink-3); font-size: 0.94rem; }

/* ---- Trust row -------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin-top: 3rem;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.trust > div { background: var(--paper); padding: clamp(22px, 3vw, 34px); }
.trust b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.trust span { color: var(--ink-3); font-size: 0.93rem; }

/* ---- Game page hero + features ---------------------------------------- */
.ghero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.ghero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 4.5vw, 68px); align-items: center; }
.ghero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.92; }
.ghero h1 .accent { color: var(--game); }
.ghero__logline { font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--ink-2); max-width: 30ch; }
.ghero__meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 1.6rem 0; }
.ghero__art img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.ghero__bg { display: none; }
.art-ph { aspect-ratio: 16/10; display: grid; place-items: center; border-radius: var(--r-lg);
  border: 1px dashed var(--rule-2); color: var(--ink-3); font-size: 0.9rem; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; flex-direction: column; padding: 0.62em 1.2em;
  border: 1.5px solid var(--rule-2); border-radius: var(--r); font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; transition: border-color 0.25s, color 0.25s; }
.store-badge small { font-family: var(--font-body); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.store-badge:hover { border-color: var(--game); color: var(--game); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 108px); }
.feature-row:nth-of-type(even) .feature-row__art { order: -1; }
.feature-row h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.feature-row__art img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--rule); }
.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.feature-list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.96rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 1px; background: var(--game); }

/* ---- Screenshot strip -------------------------------------------------- */
.shots__row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin-top: 1.8rem; }
.shot { scroll-snap-align: center; flex: 0 0 auto; text-align: center; margin: 0; }
.shot img { height: min(560px, 68vh); width: auto; border-radius: var(--r-lg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ---- Hidden legacy decoration ------------------------------------------ */
.hero__orbs, .hero__grain, .hero__bg, .now-on { display: none !important; }

/* ---- Mobile ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__split, .ghero .wrap, .about-cols, .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-of-type(even) .feature-row__art { order: 0; }
  .hero__art { min-height: 320px; }
  .game-card, .game-card:nth-child(1), .game-card:nth-child(6) { grid-column: span 12; min-height: 300px; }
  .figures__row { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .statlet:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .figures__row { grid-template-columns: 1fr; }
  .statlet + .statlet { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 16px; margin-top: 16px; }
  .labs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__row { animation: none; }
  .game-card, .game-card__art img, .lab, .lab__shot img { transition: none; }
}

/* ---- Community + socials ---------------------------------------------- */
/* These carried over from site.css with no v2 rules, so the inline SVGs had
   no intrinsic size and stretched to the container. The explicit svg size is
   the actual fix; the rest matches the architectural button language. */
.community { margin-top: clamp(40px, 6vw, 56px); }
.community h3 { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -0.01em;
  margin: 0.2rem 0 0.6rem; }
.community p { color: var(--ink-2); max-width: 54ch; margin-inline: auto; }

.socials { display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 1.5rem; }
.social { display: inline-flex; align-items: center; gap: 0.6ch;
  padding: 0.7em 1.15em; border: 1px solid var(--rule-2); border-radius: var(--r);
  color: var(--ink); font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s; }
.social svg { width: 17px; height: 17px; flex: none; }
.social:hover { border-color: var(--ink); background: var(--paper-2); }
.social--discord { background: var(--action); color: var(--action-ink);
  border-color: var(--action); }
.social em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.25em 0.5em; border-radius: 4px;
  background: rgba(0, 0, 0, 0.16); }

.social[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.social[aria-disabled="true"]:hover { background: transparent;
  border-color: var(--rule-2); }
.social--discord[aria-disabled="true"]:hover { background: var(--action);
  border-color: var(--action); }

@media (max-width: 520px) {
  .socials { flex-direction: column; align-items: stretch; }
  .social { justify-content: center; }
}
