:root {
  --bg: #efe5d8;
  --paper: #fffaf3;
  --paper-deep: #f5ebdf;
  --panel: rgba(255, 250, 244, 0.82);
  --panel-strong: rgba(255, 250, 244, 0.94);
  --ink: #241b15;
  --muted: #6f5e51;
  --soft: #9a8777;
  --red: #b8452b;
  --teal: #2d6679;
  --gold: #c68a3a;
  --line: rgba(75, 58, 46, 0.12);
  --line-strong: rgba(75, 58, 46, 0.24);
  --shadow-soft: 0 10px 24px rgba(80, 55, 29, 0.08);
  --shadow-card: 0 20px 42px rgba(80, 55, 29, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --shell: 1120px;
  --shell-wide: 1240px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --mono: "Courier New", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 12%, rgba(184, 69, 43, 0.09), transparent 22%),
    radial-gradient(circle at 85% 18%, rgba(45, 102, 121, 0.08), transparent 24%),
    linear-gradient(180deg, #f2e8dc 0%, #ece0d3 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 72, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 72, 48, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.site-backdrop__glow {
  position: absolute;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.18;
}

.site-backdrop__glow--left {
  left: -10vw;
  top: 2rem;
  background: #d98266;
}

.site-backdrop__glow--right {
  right: -8vw;
  top: 10rem;
  background: #95bdcb;
}

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  margin-inline: auto;
}

.shell--wide {
  width: min(var(--shell-wide), calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(75, 58, 46, 0.08);
  backdrop-filter: blur(18px);
  background: rgba(244, 235, 224, 0.78);
  box-shadow: 0 10px 24px rgba(80, 55, 29, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  position: relative;
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 3.15rem;
  display: block;
  padding: 0.08rem;
  border-radius: 1.08rem;
  background: linear-gradient(135deg, rgba(184, 69, 43, 0.18), rgba(45, 102, 121, 0.12));
  box-shadow: 0 14px 28px rgba(184, 69, 43, 0.18);
  overflow: visible;
  transform: rotate(-4deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: -9% 42% 60% -10%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(4px);
  opacity: 0.85;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.98rem;
}

.brand__copy {
  display: grid;
  gap: 0.1rem;
}

.brand__copy strong {
  font-size: 0.92rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand__copy span {
  font-size: 0.7rem;
  color: var(--soft);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: 0 18px 32px rgba(184, 69, 43, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  padding: 0.7rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.32rem 0;
  background: var(--ink);
}

.hero,
.page-head {
  padding: 4rem 0 2rem;
}

.hero--home {
  padding-top: 4.2rem;
}

.hero__grid,
.split-grid,
.detail-grid,
.prose-grid,
.game-hero,
.play-head,
.catalog-layout {
  display: grid;
  gap: 1.3rem;
}

.hero__grid,
.game-hero,
.play-head {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: start;
}

.hero__copy {
  padding: 1rem 0.2rem 0 0;
}

.hero__copy h1,
.page-head h1 {
  margin: 0;
  max-width: 32rem;
  font-family: var(--display);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero__lead,
.page-head__lead {
  max-width: 36rem;
  margin-top: 0.95rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__deck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 69, 43, 0.14);
  background: rgba(184, 69, 43, 0.06);
  color: #8f3c2d;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__actions,
.play-head__actions,
.game-card__actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--solid {
  color: #fff8f0;
  background: linear-gradient(135deg, #b7422c, #d27b52);
  box-shadow: 0 12px 22px rgba(183, 66, 44, 0.14);
}

.button--ghost {
  color: var(--ink);
  border-color: rgba(75, 58, 46, 0.14);
  background: rgba(255, 251, 246, 0.56);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(184, 69, 43, 0.18);
  background: rgba(255, 251, 246, 0.92);
}

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

.hero-stat,
.panel,
.filter-panel,
.taxonomy-card,
.frame-shell,
.game-card,
.stack-item,
.hero-scene,
.home-ribbon__item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-stat,
.panel,
.filter-panel,
.taxonomy-card,
.stack-item {
  border-radius: var(--radius-xl);
}

.hero-stat {
  padding: 1rem 1rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 228, 0.98)),
    linear-gradient(135deg, rgba(198, 138, 58, 0.06), transparent 45%);
}

.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 0.94rem;
  color: var(--red);
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.72rem;
}

.hero__panel {
  position: relative;
}

.hero-scene {
  position: relative;
  min-height: 39rem;
  overflow: hidden;
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(245, 237, 225, 0.98)),
    radial-gradient(circle at 18% 16%, rgba(184, 69, 43, 0.08), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(45, 102, 121, 0.08), transparent 24%);
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(85, 63, 44, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 63, 44, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.hero-scene__backdrop {
  position: absolute;
  inset: auto -5% 0 -5%;
  height: 13rem;
  background:
    radial-gradient(circle at 18% 40%, rgba(184, 69, 43, 0.15), transparent 18%),
    radial-gradient(circle at 75% 25%, rgba(45, 102, 121, 0.14), transparent 18%),
    linear-gradient(180deg, transparent, rgba(223, 208, 188, 0.9));
  filter: blur(20px);
}

.hero-scene__window,
.hero-console--mission {
  position: absolute;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(75, 58, 46, 0.12);
  background: rgba(255, 252, 248, 0.96);
  box-shadow: var(--shadow-card);
}

.hero-scene__window {
  padding: 0.55rem 0.55rem 0.7rem;
}

.hero-scene__window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
  filter: saturate(1.05) contrast(1.02);
}

.hero-scene__window::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  width: 3rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 69, 43, 0.35), rgba(45, 102, 121, 0.25));
  z-index: 2;
}

.hero-scene__window--top {
  top: 1.25rem;
  right: 1.4rem;
  width: 43%;
  height: 10.6rem;
  transform: rotate(4deg);
}

.hero-scene__window--main {
  top: 6.4rem;
  left: 1.35rem;
  width: 56%;
  height: 16.8rem;
  transform: rotate(-5deg);
}

.hero-scene__window--bottom {
  right: 2rem;
  bottom: 9.4rem;
  width: 38%;
  height: 10rem;
  transform: rotate(-3deg);
}

.hero-scene__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
}

.hero-scene__caption strong {
  font-family: var(--display);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-scene__caption span {
  color: #fff9f2;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.hero-console--mission {
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.3rem;
  padding: 1rem 1.05rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(246, 237, 227, 0.98)),
    linear-gradient(135deg, rgba(198, 138, 58, 0.06), transparent 45%);
}

.hero-console__label {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-console__feed {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.hero-console__feed p {
  margin: 0;
  color: #4f4137;
  font-size: 0.76rem;
}

.hero-console__tags,
.detail-pills,
.card-pills,
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 69, 43, 0.14);
  background: rgba(184, 69, 43, 0.05);
  color: #824132;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pill--signal {
  border-color: rgba(45, 102, 121, 0.14);
  background: rgba(45, 102, 121, 0.06);
  color: #245f74;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-1px);
}

.section {
  padding: 1.5rem 0 3.4rem;
}

.section--split {
  padding-top: 0;
}

.section--flush {
  padding-top: 1rem;
}

.section--centered {
  min-height: 64vh;
  display: grid;
  align-items: center;
}

.home-ribbon {
  padding: 0 0 2rem;
}

.home-ribbon__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.home-ribbon__item {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: 1.8rem;
  background: var(--paper);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.home-ribbon__item::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px dashed rgba(75, 58, 46, 0.15);
  border-radius: 1.2rem;
  z-index: 2;
  pointer-events: none;
}

.home-ribbon__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.02), rgba(28, 21, 16, 0.72));
}

.home-ribbon__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.home-ribbon__item:hover,
.home-ribbon__item:focus-visible {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-card);
}

.home-ribbon__item:hover img,
.home-ribbon__item:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.home-ribbon__item span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  font-family: var(--display);
  font-size: 0.84rem;
  line-height: 1.35;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.panel h2,
.prose h2,
.prose h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 700;
}

.section-link {
  color: var(--red);
  font-size: 0.76rem;
}

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

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(246, 238, 228, 0.96)),
    linear-gradient(135deg, rgba(45, 102, 121, 0.04), transparent 35%);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 4.4rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 224, 155, 0.52);
  transform: rotate(10deg);
  opacity: 0.7;
  z-index: 2;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px dashed rgba(75, 58, 46, 0.12);
  border-radius: 1.2rem;
  pointer-events: none;
  z-index: 0;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-7px) rotate(-0.4deg);
  box-shadow: var(--shadow-card);
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 10.1;
  margin: 0.8rem 0.8rem 0;
  overflow: hidden;
  border-radius: 1.25rem;
  z-index: 1;
}

.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.02) 0%, rgba(37, 28, 21, 0.22) 55%, rgba(37, 28, 21, 0.72) 100%);
}

.game-card__media img,
.game-hero__media img,
.play-preview__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__media img {
  transition: transform 320ms ease, filter 320ms ease;
}

.game-card:hover .game-card__media img,
.game-card:focus-within .game-card__media img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.game-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.32rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(75, 58, 46, 0.1);
  background: rgba(255, 252, 248, 0.8);
  color: #6c5646;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.game-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.1rem;
}

.game-card__meta,
.breadcrumbs,
.catalog-summary,
.detail-list span,
.frame-fallback p {
  color: var(--muted);
}

.game-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.45;
}

.game-card h3 a:hover,
.game-card h3 a:focus-visible {
  color: var(--red);
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.game-card__actions {
  margin-top: auto;
}

.game-card--compact .game-card__media {
  aspect-ratio: 16 / 8.4;
}

.game-card--compact .button--ghost {
  display: none;
}

.split-grid,
.detail-grid,
.prose-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.filter-panel {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 228, 0.96)),
    linear-gradient(135deg, rgba(198, 138, 58, 0.05), transparent 40%);
}

.stack-list {
  display: grid;
  gap: 0.8rem;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 251, 246, 0.7);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stack-item:hover,
.stack-item:focus-visible {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.stack-item strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--display);
  font-size: 0.82rem;
}

.stack-item small,
.stack-item em {
  font-size: 0.68rem;
  color: var(--muted);
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.taxonomy-card {
  padding: 1.1rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 228, 0.96)),
    linear-gradient(135deg, rgba(45, 102, 121, 0.04), transparent 45%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.taxonomy-card:hover,
.taxonomy-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.taxonomy-card strong {
  display: block;
  font-family: var(--display);
  font-size: 0.88rem;
}

.taxonomy-card span {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.taxonomy-card--large {
  min-height: 9.6rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.catalog-layout {
  grid-template-columns: 18.5rem 1fr;
}

.catalog-sidebar {
  position: sticky;
  top: 5.2rem;
  align-self: start;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field + .field {
  margin-top: 1rem;
}

.field span {
  font-size: 0.72rem;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid rgba(75, 58, 46, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0.78rem 0.9rem;
  font-size: 0.78rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(184, 69, 43, 0.18);
  box-shadow: 0 0 0 4px rgba(198, 138, 58, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.filter-tags {
  margin-top: 1rem;
}

.tag-toggle {
  border: 1px solid rgba(75, 58, 46, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.72rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tag-toggle:hover,
.tag-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(184, 69, 43, 0.18);
  color: var(--ink);
}

.tag-toggle.is-active {
  border-color: rgba(184, 69, 43, 0.22);
  background: rgba(184, 69, 43, 0.08);
  color: var(--ink);
}

.catalog-main {
  display: grid;
  gap: 1rem;
}

.catalog-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.catalog-summary p {
  margin: 0;
  font-size: 0.78rem;
}

.catalog-summary strong {
  color: var(--ink);
}

.empty-state {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(75, 58, 46, 0.16);
  color: var(--muted);
  font-size: 0.76rem;
}

.game-hero__media {
  min-height: 22rem;
  overflow: hidden;
  border-radius: 1.9rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.play-preview__frame {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border-radius: 1.4rem;
}

.play-preview__overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 0.95rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(75, 58, 46, 0.1);
  backdrop-filter: blur(10px);
  background: rgba(255, 251, 246, 0.78);
}

.play-preview__overlay p {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
}

.detail-list {
  display: grid;
  gap: 0.95rem;
}

.detail-list div {
  display: grid;
  gap: 0.18rem;
}

.detail-list span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list strong {
  font-size: 0.82rem;
}

.prose p,
.prose h2,
.prose h3 {
  margin-bottom: 0.8rem;
}

.prose p {
  font-size: 0.8rem;
  color: var(--muted);
}

.related-grid {
  display: grid;
  gap: 1rem;
}

.page-head--play {
  padding-bottom: 1rem;
}

.frame-shell {
  padding: 1rem;
  border-radius: 1.85rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 228, 0.96)),
    linear-gradient(135deg, rgba(45, 102, 121, 0.04), transparent 45%);
}

.frame-shell--portrait {
  max-width: 34rem;
  margin-inline: auto;
}

.game-frame {
  width: 100%;
  min-height: 78vh;
  border: 0;
  border-radius: 1.2rem;
  background: #000;
}

.frame-shell--portrait .game-frame {
  aspect-ratio: 9 / 16;
  min-height: auto;
}

.frame-fallback {
  margin-top: 1rem;
}

.site-footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid rgba(75, 58, 46, 0.08);
  background: rgba(242, 233, 221, 0.82);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer h2 {
  margin: 0.15rem 0 0.65rem;
  font-family: var(--display);
  font-size: 0.94rem;
}

.site-footer p,
.site-footer a {
  font-size: 0.74rem;
}

.site-footer a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.panel--centered {
  text-align: center;
}

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
  will-change: opacity, transform;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .game-grid,
  .taxonomy-grid--wide,
  .home-ribbon__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .hero__grid,
  .split-grid,
  .detail-grid,
  .prose-grid,
  .game-hero,
  .play-head {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(75, 58, 46, 0.08);
    background: rgba(255, 250, 244, 0.96);
    box-shadow: var(--shadow-card);
  }

  .nav.is-open {
    display: flex;
  }

  .hero__stats,
  .game-grid,
  .taxonomy-grid,
  .taxonomy-grid--wide,
  .home-ribbon__track {
    grid-template-columns: 1fr;
  }

  .catalog-summary,
  .site-footer__inner,
  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .hero,
  .page-head {
    padding-top: 3rem;
  }

  .hero--home .hero__copy h1,
  .hero__copy h1,
  .page-head h1 {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .hero-scene {
    min-height: auto;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
  }

  .hero-scene__window,
  .hero-console--mission {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
  }

  .hero-scene__window {
    aspect-ratio: 16 / 10;
  }

  .hero-console--mission {
    left: auto;
    right: auto;
    bottom: auto;
  }

  .game-frame {
    min-height: 62vh;
  }
}
