/* FatKat Studio — 2026 redesign
   Standalone stylesheet: does not depend on bootstrap or the legacy sheets. */

:root {
  --bg: #15171f;
  --bg-deep: #101219;
  --surface: #1e2130;
  --surface-2: #20243a;
  --surface-3: #1c1f2c;
  --surface-flat: #1a1d29;
  --shot-bg: #161925;
  --line: #2d3350;
  --line-soft: #262a3d;
  --line-hard: #2f3552;

  --text: #EDEFF7;
  --text-2: #C8CEE4;
  --text-3: #B5BCD3;
  --muted: #9AA1B9;
  --muted-2: #8A91AC;
  --muted-3: #5D6486;

  --green: #6BD98F;
  --yellow: #FFC53D;
  --cyan: #7FD6F5;
  --ink: #0b0c11;

  --wip-line: #4a4326;
  --wip-fill: #2e2a17;

  --display: 'Baloo 2', 'Lexend', cursive;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1080px;
  --pad: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--yellow); }

img { max-width: 100%; }

h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ---------------------------------------------------------------- header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(21, 23, 31, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 18px; }

.topnav {
  display: flex;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.topnav a {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-hard);
  color: var(--muted);
  transition: border-color 0.15s ease;
}
.topnav a:hover { border-color: currentColor; }
.topnav a.is-games { color: var(--cyan); }
.topnav a.is-wip { color: var(--yellow); }
.topnav a.is-about { color: var(--muted); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1d2a;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 42%;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, rgba(21, 23, 31, 0.78) 48%, rgba(21, 23, 31, 0.18) 100%);
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--pad) 28px;
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 12px;
  max-width: 520px;
  text-wrap: pretty;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stat { padding: 8px 11px; border-radius: 9px; }
.stat--green { background: rgba(107, 217, 143, 0.14); color: var(--green); border: 1px solid rgba(107, 217, 143, 0.35); }
.stat--yellow { background: rgba(255, 197, 61, 0.13); color: var(--yellow); border: 1px solid rgba(255, 197, 61, 0.32); }
.stat--grey { background: rgba(154, 161, 185, 0.12); color: var(--text-3); border: 1px solid rgba(154, 161, 185, 0.3); }

/* -------------------------------------------------------------- sections */

.section { padding: 48px 0 0; scroll-margin-top: 70px; }
.section:first-of-type { padding-top: 44px; }

.section__head { display: flex; align-items: center; gap: 10px; }

.section__pip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.section__pip--green { background: var(--green); }
.section__pip--yellow { background: var(--yellow); }
.section__pip--grey { background: var(--muted); }

.section__title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
}

.section__note {
  font-size: 14.5px;
  color: var(--muted-2);
  margin: 6px 0 20px;
}

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

.grid-pub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}

/* Desktop: bigger published cards. The 1fr max keeps every row flush to the
   shell edge; the shell's own 1080px cap is what stops them ballooning. */
@media (min-width: 768px) {
  .grid-pub { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* cards are <button>s so keyboard users can open the detail sheet */
.card {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-pub {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card-pub:hover { border-color: var(--green); transform: translateY(-2px); }

.card-pub__shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--shot-bg);
}

/* The screenshot strips are contact sheets: zoom so screen #1 fills the frame. */
.shot { height: auto; max-width: none; display: block; }
.shot--tri { width: 300%; }
.shot--quad { width: 200%; }

.card-pub__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 16, 23, 0.96) 0%, rgba(14, 16, 23, 0.2) 52%, transparent 100%);
}

.badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--green);
  padding: 4px 7px;
  border-radius: 6px;
}

.card-pub__meta { position: absolute; left: 11px; right: 11px; bottom: 10px; }

.card-pub__name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.card-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.card-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-3);
  border: 1px dashed var(--wip-line);
}
.card-row:hover { border-color: var(--yellow); }

.card-row--client {
  background: var(--surface-flat);
  border: 1px solid var(--line);
}
.card-row--client:hover { border-color: var(--muted); }

.card-row__thumb {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--shot-bg);
}

.card-row__body { min-width: 0; flex: 1 1 auto; }

.card-row__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.chip-soon {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--yellow);
  background: var(--wip-fill);
  border: 1px solid var(--wip-line);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-row__caret { font-size: 22px; font-weight: 700; padding-right: 4px; color: var(--yellow); }
.card-row--client .card-row__caret { color: var(--muted); }

/* ----------------------------------------------------------------- about */

.about {
  margin: 52px 0 0;
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.about__title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.about__text {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 680px;
  text-wrap: pretty;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.team__photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #222639;
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.team__name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 9px;
  line-height: 1.2;
}

.team__role {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.07em;
  margin-top: 3px;
}

.contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

.contact__label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

.contact__text {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 10px;
  max-width: 620px;
}

.contact__mail {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
  word-break: break-word;
}

/* Desktop: the panel's children span the full width, and each portrait sits
   centred in its third. The 195px cap is what keeps them at ~60% of the size
   a plain 1fr track would give. Must stay after the base .about/.contact rules
   so these max-width resets win on equal specificity. */
@media (min-width: 768px) {
  .about__text,
  .contact__text { max-width: none; }

  .team {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .team__photo { max-width: 195px; margin-inline: auto; }
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: 52px;
  padding: 32px var(--pad) 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}

.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand { display: flex; align-items: center; gap: 9px; }
.footer__brand img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.footer__brand span { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--muted); }

.footer__links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13.5px; }

.footer__copy {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-3);
  letter-spacing: 0.07em;
}

/* ---------------------------------------------------------- detail sheet */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 9, 13, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay[hidden] { display: none; }

.sheet {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow: auto;
  background: #191c27;
  border: 1px solid #333a5a;
  border-radius: 28px;
  padding: 18px 18px 24px;
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.sheet__title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.sheet__status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.07em;
  margin-top: 5px;
}

.sheet__close {
  appearance: none;
  cursor: pointer;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.sheet__close:hover { background: var(--line-hard); }

.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 18px 14px;
  margin: 0 -18px 16px;
}
.rail img {
  height: 340px;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 14px;
  border: 1px solid #333a5a;
}
.rail::-webkit-scrollbar { height: 7px; }
.rail::-webkit-scrollbar-thumb { background: #3a4060; border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: transparent; }

.sheet__blurb {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-line;
  text-wrap: pretty;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 20px 0;
}

.fact { background: var(--surface-2); border-radius: 13px; padding: 11px; }

.fact__label {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 0.09em;
}

.fact__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 5px;
  line-height: 1.3;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}

.btn--play { flex: 1 1 190px; background: var(--green); color: var(--ink); }
.btn--demo { flex: 1 1 140px; background: var(--cyan); color: var(--ink); }
.btn--video { flex: 0 1 auto; padding: 14px 18px; background: var(--line-soft); color: var(--text); font-weight: 700; }
.btn--play:hover, .btn--demo:hover { color: var(--ink); filter: brightness(1.08); }
.btn--video:hover { color: var(--text); background: var(--line-hard); }

.notice {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-hard);
}

.notice__label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.notice__text { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }

.banner {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}
.banner--soon { background: var(--wip-fill); border: 1px dashed var(--wip-line); color: var(--yellow); }
.banner--pending { background: var(--surface-2); border: 1px solid var(--line-hard); color: var(--text-3); font-weight: 700; }

/* ------------------------------------------------------- web demo pages */

.demo { padding: 32px 0 0; }

.demo__title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 18px;
}

.demo__stage {
  position: relative;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--shot-bg);
  box-shadow: rgba(6, 24, 44, 0.4) 0 0 0 2px, rgba(6, 24, 44, 0.65) 0 4px 6px -1px, rgba(255, 255, 255, 0.08) 0 1px 0 inset;
}

/* Portrait games are tall: bound by viewport height, not container width. */
.demo__stage--portrait { aspect-ratio: 9 / 16; max-height: calc(100vh - 220px); max-width: 100%; }
.demo__stage--landscape { aspect-ratio: 16 / 9; max-width: 100%; }

.demo__stage iframe { width: 100%; height: 100%; border: 0; display: block; }

#demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1e2130, #101219);
}

.demo__play {
  appearance: none;
  cursor: pointer;
  border: 0;
  padding: 16px 46px;
  border-radius: 16px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.demo__play:hover { filter: brightness(1.08); }

.demo__note {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.07em;
  margin-top: 14px;
}

/* ---------------------------------------------------------- error page */

.errpage { padding: 56px 0 24px; max-width: 620px; }

.errpage__code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.errpage__title {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.errpage__note { font-size: 15px; color: var(--text-3); line-height: 1.6; margin: 10px 0 22px; }

.errpage .btn { display: inline-block; flex: 0 0 auto; padding: 14px 22px; }

.errpage__stack {
  margin-top: 28px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* --------------------------------------------------- policy / prose page */

.prose {
  margin: 32px 0 0;
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
  line-height: 1.7;
  font-size: 15px;
}
.prose h1 { font-family: var(--display); font-size: clamp(28px, 5vw, 38px); font-weight: 800; color: var(--text); margin-bottom: 6px; }
.prose h2 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--text); margin: 28px 0 8px; }
.prose h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); margin: 20px 0 6px; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--yellow); }
.prose a:hover { color: var(--cyan); }

/* ------------------------------------------------------------ small taps */

@media (max-width: 520px) {
  .brand span { font-size: 16px; }
  .topnav a { padding: 7px 8px; }
  .sheet { border-radius: 22px; padding: 16px 14px 20px; }
  .rail img { height: 260px; }
  .footer__inner { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .topnav a { transition: none; }
  .card-pub:hover { transform: none; }
}
