:root {
  --ink: #14110e;
  --paper: #fff3e4;
  --cream: #fffaf2;
  --yellow: #ffd000;
  --orange: #ff6a00;
  --red: #e10600;
  --red-deep: #b91c1c;
  --muted: #5e564c;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(20, 17, 14, 0.15) 1.15px, transparent 1.2px),
    radial-gradient(circle at 0% 0%, rgba(255, 208, 0, 0.9), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(225, 6, 0, 0.32), transparent 28%);
  background-size: 22px 22px, auto, auto;
}

body.nav-open,
body.drawer-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--red-deep);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 -1rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.logo:hover .logo-mark {
  transform: translateY(2px) scaleY(0.92);
  box-shadow: 1px 1px 0 var(--ink);
}

.logo-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--yellow);
}

.lang-switch {
  display: inline-flex;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}

.lang-switch button {
  min-width: 46px;
  min-height: 40px;
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  background: var(--cream);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 99px;
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--yellow);
}

.btn-small {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.text-btn {
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.6rem 0 2.8rem;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.stamp {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

h1,
h2,
h3,
.card-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  max-width: 11ch;
}

h1 em {
  font-style: italic;
  background: var(--yellow);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead,
.section-lead {
  font-size: 1.12rem;
  max-width: 40rem;
}

.lead {
  margin: 1rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.6rem 0 0;
}

.stats div {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0.75rem 0.8rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.stats dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 0.25rem 0 0;
}

.stats strong {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.pocket {
  background: #171412;
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 36px;
  padding: 14px 14px 12px;
  box-shadow: 10px 10px 0 var(--ink);
}

.pocket-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 22px 22px 10px 10px;
  padding: 0.5rem 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.pocket-screen {
  margin-top: 10px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  border: 3px solid #3a332c;
  overflow: hidden;
}

.pocket-art {
  height: 148px;
  background: var(--card, var(--red));
}

.pocket-art svg {
  width: 100%;
  height: 100%;
}

.pocket-art.is-pop {
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes pop {
  from { transform: scale(0.94); }
  to { transform: scale(1); }
}

.pocket-meta {
  padding: 0.75rem 0.85rem 0.3rem;
}

.pocket-title {
  margin: 0.15rem 0;
  font-size: 1.7rem;
}

.pocket-meta p {
  margin: 0;
  color: var(--muted);
}

.console-list {
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem 0.55rem;
}

.menu-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 0.38rem 0.55rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-item small {
  font-weight: 700;
  color: var(--muted);
}

.menu-item.is-selected {
  background: var(--yellow);
}

.menu-item.is-selected small {
  color: var(--ink);
}

.pocket-actions {
  padding: 0 0.85rem 0.85rem;
}

.pocket-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 16px 4px;
}

.dpad {
  display: grid;
  gap: 6px;
}

.pad {
  width: 46px;
  height: 36px;
  border-radius: 10px;
  border: 3px solid var(--cream);
  background: #2a241f;
  color: var(--cream);
  cursor: pointer;
  font-weight: 800;
}

.ctrl {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.round {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
}

.round-a { background: var(--red); color: var(--cream); }
.round-b { background: var(--yellow); }

.round:active,
.pad:active {
  transform: translateY(2px);
}

.band {
  margin: 0 -1rem;
  overflow: hidden;
  background: var(--yellow);
  border-block: 3px solid var(--ink);
}

.band-hot {
  background: var(--red);
  color: var(--cream);
}

.band-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.band-track-slow {
  animation-duration: 28s;
}

.band-track p {
  margin: 0;
  padding: 0.75rem 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.band:hover .band-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  padding: 4.2rem 0 1rem;
}

.sec-num {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  letter-spacing: -0.06em;
}

h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.section-lead {
  margin: 0.7rem 0 0;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.4rem;
}

.studio-copy p {
  margin: 0 0 0.9rem;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.roles li {
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.atelier {
  margin: 0;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem 0.8rem 0.9rem;
}

.atelier figcaption {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.values,
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.values li,
.steps li {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.values h3,
.steps h3 {
  margin: 0.35rem 0;
  font-size: 1.45rem;
}

.values p,
.steps p {
  margin: 0;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lvl {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.chip {
  min-height: 42px;
  border: 3px solid var(--ink);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--yellow);
}

.games-count {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
}

.card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.card.is-selected {
  outline: 3px solid var(--red-deep);
  outline-offset: 3px;
}

.art {
  position: relative;
  height: 180px;
  background: var(--card, var(--yellow));
  border-bottom: 3px solid var(--ink);
}

.art svg,
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.art .pill {
  position: absolute;
  top: 10px;
  left: 10px;
}

.pill.is-out { background: var(--yellow); }
.pill.is-wip { background: var(--orange); }
.pill.is-proto { background: var(--red); color: var(--cream); }
.pill.is-soon { background: var(--red-deep); color: white; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
}

.card-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-size: 1.85rem;
}

.card-tagline {
  color: var(--muted);
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

.tags span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.empty,
.noscript {
  margin-top: 1rem;
  padding: 1rem;
  border: 3px dashed var(--ink);
  border-radius: 16px;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: start;
}

.mail-line {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mail-line a {
  background: var(--yellow);
  text-decoration: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.social a,
.linkish {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.form {
  display: grid;
  gap: 0.75rem;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 800;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: grid;
  gap: 0.8rem;
  padding: 1.6rem 0 2.4rem;
}

.footer-logo {
  margin: 0 0 0.2rem;
  font-size: 1.6rem;
}

.site-footer p {
  margin: 0;
}

#footer-games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

#footer-games a {
  font-weight: 800;
}

.legal {
  color: var(--muted);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 17, 14, 0.5);
}

.drawer {
  position: fixed;
  z-index: 61;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(540px, calc(100% - 24px));
  overflow: auto;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: -10px 10px 0 var(--ink);
}

.backdrop[hidden],
.drawer[hidden],
.toast[hidden] {
  display: none !important;
}

.drawer-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.drawer-art {
  height: 210px;
  margin: 0 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card, var(--yellow));
}

.drawer-art svg,
.drawer-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-body {
  padding: 1rem 1rem 1.4rem;
}

.drawer-body h2 {
  margin: 0.6rem 0 0.3rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.drawer-tagline {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0;
}

.drawer-body p {
  margin: 0 0 0.75rem;
}

.feature-list {
  margin: 0.3rem 0 1rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-bottom: 2px solid rgba(20, 17, 14, 0.12);
  font-weight: 700;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 2rem));
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .hero,
  .studio-grid,
  .contact-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 45;
    top: 76px;
    left: 12px;
    right: 12px;
    padding: 0.8rem;
    background: var(--cream);
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links a {
    padding: 0.7rem 0.4rem;
    font-size: 1.2rem;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .section {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
