:root {
  color-scheme: light;
  --bg: #fffdf7;
  --panel: rgba(255, 255, 255, 0.34);
  --line: rgba(72, 56, 83, 0.16);
  --line-hot: rgba(255, 174, 75, 0.64);
  --text: #241a28;
  --muted: rgba(36, 26, 40, 0.82);
  --faint: rgba(36, 26, 40, 0.58);
  --hot: #ff9f43;
  --ember: #ffbf69;
  --cold: #ff7db8;
  --dream-pink: #ff9ccc;
  --dream-lavender: #b6a8ff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

@media (pointer: fine) {
  html,
  body,
  a,
  button,
  video {
    cursor: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 88%, rgba(255, 191, 105, 0.22), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(255, 156, 204, 0.22), transparent 24rem),
    radial-gradient(circle at 54% 8%, rgba(182, 168, 255, 0.18), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 191, 105, 0.2), transparent 19rem),
    radial-gradient(circle at 78% 24%, rgba(255, 125, 184, 0.18), transparent 18rem),
    radial-gradient(circle at 52% 82%, rgba(86, 203, 255, 0.14), transparent 21rem),
    radial-gradient(circle at 84% 78%, rgba(182, 168, 255, 0.2), transparent 20rem);
  filter: none;
  opacity: 0.72;
}

.home-page::before {
  opacity: 0.46;
}

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

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 220, 160, 0.28), transparent 18rem),
    radial-gradient(circle at 52% 48%, rgba(255, 156, 204, 0.18), transparent 20rem),
    #fffdf7;
  pointer-events: none;
  animation: introExit 0.92s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.intro-loader::before {
  content: none;
  position: absolute;
  width: min(520px, 82vw);
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 167, 0.74), transparent);
  transform: scaleX(0);
  transform: rotate(-38deg) scaleX(0);
  animation: introSlash 0.8s ease forwards;
}

.intro-mark {
  position: relative;
  width: 128px;
  height: 128px;
}

.intro-mark img {
  position: absolute;
  inset: 0;
  width: 128px;
  height: 128px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(255, 156, 204, 0.32));
}

.intro-left {
  animation: introLeft 0.78s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.intro-right {
  animation: introRight 0.78s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.custom-cursor,
.custom-cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
}

.custom-cursor {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(44, 32, 48, 0.55);
  border-radius: 50%;
  transition: border-color 120ms ease, opacity 120ms ease, background 120ms ease;
}

.custom-cursor::before,
.custom-cursor::after {
  content: none;
}

.custom-cursor-dot {
  display: none;
}

.cursor-active .custom-cursor,
.cursor-active .custom-cursor-dot {
  opacity: 1;
}

.cursor-hover .custom-cursor {
  border-color: rgba(255, 224, 159, 0.88);
  background: rgba(255, 224, 159, 0.12);
}

.intro-done .intro-loader {
  display: none;
}

@keyframes introExit {
  0%,
  62% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px);
    visibility: hidden;
  }
}

@keyframes introLeft {
  0% {
    opacity: 0;
    transform: translate(-46vw, 42vh) scale(0.86) skewX(-18deg) rotate(-18deg);
  }
  46%,
  68% {
    opacity: 1;
    transform: translate(0, 0) scale(1) skewX(0deg) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scale(1.18);
  }
}

@keyframes introRight {
  0% {
    opacity: 0;
    transform: translate(46vw, -42vh) scale(0.86) skewX(18deg) rotate(18deg);
  }
  46%,
  68% {
    opacity: 1;
    transform: translate(0, 0) scale(1) skewX(0deg) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scale(1.08);
  }
}

@keyframes introSlash {
  0% {
    opacity: 0;
    transform: rotate(-38deg) scaleX(0);
  }
  42%,
  68% {
    opacity: 1;
    transform: rotate(-38deg) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-38deg) scaleX(1.24);
  }
}

@keyframes introText {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  42%,
  76% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: none;
  opacity: 0;
  background-image:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.05) 41%, transparent 42%),
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}

.cursor-light {
  --x: 50vw;
  --y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px clamp(18px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.84), rgba(255, 253, 247, 0.38), transparent);
}

main,
.site-footer,
.page-shell,
.home-content,
.home-social {
  position: relative;
  z-index: 2;
}

.site-header {
  z-index: 20;
}

.home-page {
  height: 100svh;
  overflow: hidden;
}

.home-main {
  position: fixed;
  inset: 0;
  height: 100svh;
  overflow: hidden;
}

.site-header.compact {
  position: sticky;
  background: rgba(255, 253, 247, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 183, 216, 0.34));
}

.brand-name,
.nav-links a,
.button,
.eyebrow,
.game-code,
.kicker,
.section-label,
.site-footer,
.contact-link span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  color: rgba(44, 32, 48, 0.82);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  min-width: 92px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: rgba(44, 32, 48, 0.72);
  text-align: center;
  background: transparent;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-cta {
  min-width: 112px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  color: rgba(44, 32, 48, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-cta:hover,
.contact-cta[aria-current="page"] {
  border-color: var(--line-hot);
  color: var(--text);
  background: rgba(255, 214, 167, 0.08);
  transform: translateY(-1px);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--line-hot);
  color: var(--text);
  background: rgba(255, 214, 167, 0.08);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 120px 22px 76px;
  isolation: isolate;
  overflow: hidden;
}

.home-hero {
  min-height: 100svh;
  height: 100svh;
  padding: 96px 22px 42px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.home-hero::before {
  display: none;
}

.home-hero::after {
  display: none;
}

.hero::before {
  background:
    repeating-linear-gradient(102deg, transparent 0 42px, rgba(255, 255, 255, 0.08) 43px, transparent 45px),
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(255, 214, 167, 0.05) 13px, transparent 18px);
  opacity: 0.18;
  transform: translateY(-6%);
  animation: none;
}

.hero::after {
  background:
    radial-gradient(circle at 24% 62%, rgba(255, 183, 216, 0.22), transparent 16rem),
    radial-gradient(circle at 86% 28%, rgba(255, 214, 167, 0.16), transparent 13rem);
  opacity: 0.72;
  animation: none;
}

.home-hero::before {
  display: none;
}

.home-hero::after {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 185, 220, 0.28), transparent 19rem),
    radial-gradient(circle at 72% 38%, rgba(255, 229, 158, 0.24), transparent 21rem),
    linear-gradient(90deg, rgba(255, 253, 247, 0.18), rgba(255, 253, 247, 0.02) 48%, rgba(255, 253, 247, 0.2)),
    linear-gradient(180deg, rgba(255, 253, 247, 0.04), rgba(255, 253, 247, 0.26) 88%);
  filter: saturate(1.08) contrast(1.02) brightness(1.04);
  transform: scale(1.02);
  transition: opacity 700ms ease, filter 700ms ease;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
  transform: scale(1.02);
  transition: opacity 1500ms ease;
}

.hero-video.is-active {
  opacity: 0.9;
}

.hero-video-veil {
  position: absolute;
  inset: -18%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 185, 220, 0.34), transparent 18rem),
    radial-gradient(circle at 76% 58%, rgba(255, 229, 158, 0.32), transparent 19rem),
    linear-gradient(105deg, transparent 0 36%, rgba(255, 253, 245, 0.18) 46%, transparent 58%);
  mix-blend-mode: screen;
  filter: none;
  opacity: 0.64;
}

@keyframes rainShift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: -80px 260px, 0 180px;
  }
}

@keyframes pulseField {
  from {
    opacity: 0.46;
    filter: hue-rotate(0deg);
  }
  to {
    opacity: 0.8;
    filter: hue-rotate(-14deg);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 46%, transparent 0 13rem, rgba(0, 0, 0, 0.68) 34rem, transparent 58rem);
  opacity: 0.28;
}

.home-page .hero-grid,
.home-page .liminal-lines,
.home-page .door-frame {
  display: none;
}

.living-fog,
.light-sweep,
.depth-shift {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.living-fog {
  z-index: -3;
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(251, 255, 245, 0.12) 34%, transparent 52%),
    linear-gradient(72deg, transparent 0 35%, rgba(244, 191, 213, 0.16) 48%, transparent 66%);
  display: none;
}

.light-sweep {
  z-index: -2;
  background:
    linear-gradient(104deg, transparent 0 42%, rgba(255, 183, 216, 0.18) 48%, transparent 56%),
    linear-gradient(86deg, transparent 0 54%, rgba(255, 214, 167, 0.12) 58%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0.68;
  transform: none;
  animation: none;
}

.depth-shift {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(33, 20, 38, 0.24), transparent 18%, transparent 82%, rgba(33, 20, 38, 0.28)),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 253, 245, 0.045) 121px, transparent 123px);
  opacity: 0.5;
  transform: none;
  animation: none;
}

.liminal-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 183, 216, 0.1) 18.2%, transparent 18.5%),
    linear-gradient(90deg, transparent 0 76%, rgba(255, 214, 167, 0.1) 76.2%, transparent 76.5%),
    repeating-linear-gradient(0deg, transparent 0 88px, rgba(237, 243, 232, 0.035) 89px, transparent 90px);
  opacity: 0.62;
  animation: wallScan 11s linear infinite;
}

.hero-shell {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}

.hero-content {
  width: min(780px, 100%);
  text-align: left;
}

.home-content {
  width: min(980px, 100%);
  text-align: center;
}

.home-content .kicker,
.home-content .hero-actions {
  justify-content: center;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 0 0 30px;
  color: var(--muted);
}

.kicker span {
  display: block;
  width: min(72px, 16vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hot), transparent);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.4rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.55), 0 0 54px rgba(255, 156, 204, 0.24);
}

.home-page {
  --text: #fffdf7;
  --muted: rgba(255, 253, 247, 0.82);
  --faint: rgba(255, 253, 247, 0.62);
  --line: rgba(255, 253, 247, 0.28);
  --line-hot: rgba(255, 232, 174, 0.82);
}

.home-page .site-header {
  background: linear-gradient(180deg, rgba(44, 32, 48, 0.34), rgba(44, 32, 48, 0.08), transparent);
}

.home-page .brand-name,
.home-page .nav-links a,
.home-page .contact-cta {
  color: rgba(255, 253, 247, 0.86);
}

.home-page .button {
  color: rgba(255, 253, 247, 0.92);
  background: rgba(255, 253, 247, 0.1);
}

.home-title {
  position: relative;
  font-size: 7.4rem;
  transform: none;
  animation: none;
}

.door-frame {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: min(56vw, 680px);
  height: min(48vh, 420px);
  border: 1px solid rgba(255, 214, 167, 0.16);
  border-bottom-color: rgba(255, 183, 216, 0.08);
  transform: translate(-50%, -50%) perspective(900px) rotateX(58deg);
  box-shadow: 0 0 80px rgba(255, 183, 216, 0.1), inset 0 0 60px rgba(16, 9, 20, 0.45);
  animation: roomFrame 7s ease-in-out infinite alternate;
}

.home-title::after {
  content: none;
  position: absolute;
  inset: 0;
  color: rgba(207, 200, 255, 0.28);
  transform: translate(2px, 1px);
  clip-path: inset(55% 0 28% 0);
  pointer-events: none;
  animation: titleSlip 3.8s steps(2, end) infinite;
}

.hero-copy {
  max-width: 660px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
  text-shadow: 0 2px 24px rgba(36, 26, 40, 0.5);
}

.home-content .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.home-stats {
  display: grid;
  width: min(820px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 34px auto 0;
}

.home-stats div {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-stats div:hover {
  border-color: transparent;
  background: transparent;
  transform: translateY(-2px);
}

.home-stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.page-shell {
  text-align: center;
}

.section {
  text-align: center;
}

.section-label {
  justify-self: center;
}

.game-grid,
.game-list,
.team-grid,
.process-grid,
.stat-grid {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.game-card p,
.team-card p,
.process-grid p,
.page-title p {
  margin-left: auto;
  margin-right: auto;
}

.home-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  gap: 18px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 218, 0.12);
  color: rgba(44, 32, 48, 0.8);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
  color: var(--text);
  background: rgba(255, 224, 159, 0.18);
}

.button-primary {
  border-color: rgba(255, 214, 167, 0.78);
  background: linear-gradient(135deg, rgba(255, 183, 216, 0.18), rgba(255, 214, 167, 0.12));
}

.status-strip {
  position: absolute;
  right: clamp(18px, 4vw, 46px);
  bottom: 34px;
  display: flex;
  gap: 18px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-card {
  position: relative;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.signal-card::before {
  content: none;
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 214, 167, 0.22);
  transform: translate(10px, -10px);
  pointer-events: none;
}

.signal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.signal-card div {
  padding: 18px;
}

.signal-card h2 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 500;
}

.signal-card a {
  color: var(--muted);
  font-size: 0.88rem;
}

.status-strip a:hover,
.site-footer a:hover {
  color: var(--text);
}

.section,
.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 78px);
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.team-section,
.process-section {
  grid-template-columns: 1fr;
  gap: 22px;
  justify-items: center;
}

.section-label {
  color: var(--hot);
}

.intro-copy h2,
.featured-game h2,
.small-note h2,
.legal-copy h2 {
  margin: 0 0 18px;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.02;
}

.intro-copy p,
.featured-game p,
.page-title p,
.game-card p,
.small-note p,
.legal-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(36, 26, 40, 0.84);
  font-size: 1rem;
  line-height: 1.7;
}

.featured-game {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line);
  background: transparent;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-title,
.games-title {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-title.about-title .kicker,
.page-title.games-title .kicker {
  justify-content: center;
  gap: 0;
  color: rgba(36, 26, 40, 0.82);
}

.page-title .kicker span {
  display: none;
}

.about-title::after,
.games-title::after {
  content: none;
}

.stat-item {
  min-height: 150px;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.stat-item strong {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.9;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trailer-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.trailer-copy {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.trailer-copy h2 {
  margin: 0 0 18px;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.trailer-video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  background: #020303;
  object-fit: cover;
}

.game-trailer {
  width: 100%;
  height: 100%;
  min-height: 390px;
  margin-top: 0;
  border: 0;
  background: #fffdf7;
  object-fit: cover;
}

.trailer-frame {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(44, 32, 48, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 28px 80px rgba(255, 156, 204, 0.16);
}

.trailer-frame .game-trailer {
  border: 0;
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 920px);
}

.team-card {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-rows: auto 1fr;
  gap: 22px;
  justify-items: center;
  align-items: start;
  overflow: visible;
  padding: 22px 24px 34px;
  border: 0;
  background: transparent;
  text-align: center;
}

.team-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 78px;
  width: min(260px, 68vw);
  height: 260px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(255, 156, 204, 0.18), transparent 62%),
    radial-gradient(circle at 65% 35%, rgba(255, 191, 105, 0.16), transparent 58%);
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(18px);
}

.team-card img {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 142px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  filter: saturate(0.86) contrast(1.04);
}

.team-card h2 {
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

.team-card div {
  position: relative;
  z-index: 1;
}

.team-card p:last-child,
.trailer-copy p:last-child {
  margin: 0;
  color: rgba(36, 26, 40, 0.84);
  line-height: 1.7;
}

.about-title,
.team-section,
.process-section {
  text-align: center;
}

.about-title .kicker,
.team-section .section-label,
.process-section .section-label {
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.team-card,
.process-grid > div {
  justify-items: center;
  text-align: center;
}

.team-card div,
.process-grid {
  width: 100%;
}

.home-game-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-game {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.mini-game img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.76);
  transition: transform 260ms ease, filter 260ms ease;
}

.mini-game span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.mini-game:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.12) brightness(0.92);
}

.eyebrow {
  margin: 0 0 14px;
  color: #a85600;
}

.page-shell {
  padding: 92px 0 70px;
}

.page-title {
  max-width: 860px;
  padding: 54px 0 50px;
  margin-left: auto;
  margin-right: auto;
}

.page-title h1 {
  font-size: 7rem;
}

.page-title .kicker {
  justify-content: flex-start;
}

.game-grid,
.game-list {
  display: grid;
  gap: 18px;
  width: min(100%, 1080px);
}

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

.game-list {
  grid-template-columns: 1fr;
  justify-items: center;
}

.game-card,
.contact-link,
.small-note,
.legal-copy {
  position: relative;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.game-card {
  width: min(100%, 980px);
  min-height: 0;
  padding: 34px 0;
  overflow: visible;
  border-top: 1px solid var(--line);
  text-align: center;
}

.game-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 86vw);
  height: 180px;
  background:
    radial-gradient(circle at 38% 42%, rgba(255, 156, 204, 0.18), transparent 64%),
    radial-gradient(circle at 62% 48%, rgba(255, 191, 105, 0.16), transparent 66%);
  opacity: 0.72;
  filter: blur(20px);
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.game-card:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(340px, 1.26fr);
  gap: 28px;
  align-items: center;
  min-height: 0;
  width: min(100%, 1080px);
  border-top: 0;
}

.game-list .game-card:not(.featured-card) {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  text-align: left;
  padding: 22px 0;
}

.game-list .game-card:not(.featured-card) p,
.game-list .game-card:not(.featured-card) h2 {
  margin-left: 0;
  margin-right: 0;
}

.game-list .game-card:not(.featured-card) .button,
.game-list .game-card:not(.featured-card) .game-code {
  margin-left: 0;
}

.game-list .game-card:not(.featured-card) h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.game-list .game-card:not(.featured-card) p {
  max-width: 560px;
}

.game-list .game-card:not(.featured-card) .game-code {
  margin-top: 18px;
  margin-bottom: 0;
}

.game-list .game-card:not(.featured-card) .button {
  min-height: 42px;
  margin-left: 10px;
  padding: 0 18px;
}

.featured-card::after {
  content: none;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  object-fit: cover;
  border: 1px solid rgba(44, 32, 48, 0.12);
  border-radius: 22px;
  filter: saturate(0.72) contrast(1.02) brightness(0.88);
  box-shadow: 0 22px 60px rgba(255, 156, 204, 0.12);
}

.featured-card .game-thumb {
  width: calc(100% + 28px);
  height: 100%;
  min-height: 460px;
  margin: -28px 0 -28px -28px;
}

.game-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255, 156, 204, 0.28);
  font-size: 3.8rem;
  font-family: Georgia, "Times New Roman", serif;
}

.game-card h2 {
  max-width: 520px;
  margin: 18px auto;
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1.02;
}

.featured-card h2 {
  font-size: 4.2rem;
}

.game-copy {
  display: grid;
  justify-items: center;
  align-content: center;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.game-code {
  display: inline-flex;
  margin: 28px 0 20px;
  padding: 9px 12px;
  border: 1px solid rgba(44, 32, 48, 0.12);
  color: rgba(44, 32, 48, 0.64);
}

.contact-shell {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

.contact-shell .page-title,
.legal-page .page-title {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding-bottom: 34px;
  text-align: center;
  align-items: center;
}

.contact-shell .page-title h1,
.legal-page .page-title h1 {
  display: block;
  width: min(100%, 980px);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.9;
  text-align: center;
  text-wrap: balance;
}

.legal-page .page-title h1 {
  width: min(100%, 900px);
}

.contact-shell .page-title .kicker,
.legal-page .page-title .kicker {
  display: inline-flex;
  justify-content: center;
  gap: 0;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.contact-shell .page-title .kicker span,
.legal-page .page-title .kicker span {
  display: none;
}

.contact-shell .page-title p,
.legal-page .page-title p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.legal-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-copy {
  width: min(100%, 920px);
  text-align: center;
}

.legal-copy p {
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.contact-link {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-top: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.86;
  filter: drop-shadow(0 0 12px rgba(255, 183, 216, 0.24));
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
  background: rgba(255, 191, 105, 0.08);
}

.contact-link span {
  color: var(--hot);
}

.contact-link strong {
  font-size: 2rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.small-note,
.legal-copy {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.contact-shell .small-note {
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-shell .small-note p {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.small-note h2,
.legal-copy h2 {
  font-size: 2.3rem;
}

.legal-copy h2:not(:first-child) {
  margin-top: 34px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 46px);
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 840px) {
  .site-header,
  .site-header.compact {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    background: transparent;
  }

  .home-page .site-header {
    background: transparent;
  }

  .home-page .brand-name,
  .home-page .nav-links a,
  .home-page .contact-cta {
    color: rgba(36, 26, 40, 0.82);
  }

  .home-header {
    position: fixed;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .home-page .brand {
    justify-content: center;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 240px);
    justify-self: center;
  }

  .nav-center {
    position: static;
    transform: none;
  }

  .contact-cta {
    width: 100%;
    justify-self: center;
  }

  .nav-links a {
    min-width: 0;
    padding: 12px 8px;
    font-size: 0.62rem;
  }

  .nav-links a span {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 124px);
    padding-top: 80px;
  }

  .home-hero {
    min-height: 100svh;
    height: 100svh;
    padding-top: 150px;
    padding-bottom: 30px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-content {
    text-align: center;
  }

  .kicker,
  .hero-actions {
    justify-content: center;
  }

  .signal-card {
    display: none;
  }

  .status-strip {
    position: static;
    margin-top: 52px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-social {
    left: 0;
    right: 0;
    bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 32px);
    margin: 0 auto;
    gap: 12px;
    font-size: 0.66rem;
    transform: none;
  }

  .door-frame {
    width: 82vw;
    height: 32vh;
  }

  .section {
    grid-template-columns: 1fr;
    padding: 62px 0;
  }

  .featured-game {
    align-items: stretch;
    flex-direction: column;
  }

  .game-grid,
  .game-list,
  .contact-grid,
  .home-game-strip,
  .stat-grid,
  .team-grid,
  .trailer-panel {
    grid-template-columns: 1fr;
  }

  .trailer-copy {
    min-height: auto;
    padding: 8px;
  }

  .trailer-video {
    min-height: 220px;
  }

  .featured-card {
    grid-row: auto;
    min-height: 430px;
  }

  h1 {
    font-size: 4.6rem;
  }

  .home-title {
    font-size: 4.4rem;
  }

  .page-title h1 {
    font-size: 4.8rem;
  }

  .intro-copy h2,
  .featured-game h2 {
    font-size: 2.8rem;
  }

  .game-card h2 {
    font-size: 2.25rem;
  }

  .contact-link strong {
    font-size: 1.55rem;
  }

  .team-card {
    min-height: auto;
  }

  .team-card img {
    width: 104px;
    height: 104px;
  }

  .featured-card,
  .game-card {
    grid-column: span 1;
    width: 100%;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .game-list .game-card:not(.featured-card) {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .game-list .game-card:not(.featured-card) p,
  .game-list .game-card:not(.featured-card) h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .game-list .game-card:not(.featured-card) .button,
  .game-list .game-card:not(.featured-card) .game-code {
    margin-left: auto;
    margin-right: auto;
  }

  .game-list .game-card:not(.featured-card) .button {
    width: min(100%, 220px);
  }

  .trailer-frame,
  .game-trailer {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .game-list .game-card:not(.featured-card) .button {
    width: min(100%, 220px);
  }

  .page-shell,
  .section {
    width: min(100% - 28px, var(--max));
  }

  h1,
  .page-title h1 {
    font-size: 3.6rem;
  }

  .home-title {
    font-size: 3.25rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .home-content .hero-copy {
    max-width: 330px;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .home-stats div {
    padding: 6px 8px;
  }

  .home-stats strong {
    font-size: 1.7rem;
  }

  .home-stats span {
    font-size: 0.62rem;
  }

  .intro-copy h2,
  .featured-game h2,
  .small-note h2,
  .legal-copy h2 {
    font-size: 2.15rem;
  }

  .game-card h2 {
    font-size: 2rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-item strong {
    font-size: 2.5rem;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .about-title,
  .games-title {
    min-height: 300px;
  }
}

@keyframes roomFrame {
  from {
    opacity: 0.38;
    transform: translate(-50%, -50%) perspective(900px) rotateX(58deg) scale(0.96);
  }
  to {
    opacity: 0.72;
    transform: translate(-50%, -50%) perspective(900px) rotateX(56deg) scale(1.03);
  }
}

@keyframes liminalSkew {
  from {
    transform: translateY(-6%) skewX(-1deg);
  }
  to {
    transform: translateY(-2%) skewX(1deg);
  }
}

@keyframes colorDrift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(18deg) saturate(1.14);
  }
}

@keyframes accentMood {
  0% {
    opacity: 0.72;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    filter: blur(18px) hue-rotate(0deg) saturate(1.02);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(1%, 1.5%, 0) scale(1.04);
    filter: blur(20px) hue-rotate(18deg) saturate(1.16);
  }
  100% {
    opacity: 0.78;
    transform: translate3d(1.5%, -0.5%, 0) scale(1.02);
    filter: blur(18px) hue-rotate(-16deg) saturate(1.1);
  }
}

@keyframes wallScan {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 24px 0, -18px 0, 0 240px;
  }
}

@keyframes fogBreath {
  from {
    opacity: 0.46;
    filter: blur(26px);
  }
  to {
    opacity: 0.92;
    filter: blur(18px);
  }
}

@keyframes lightTravel {
  from {
    background-position: -22vw 0, 18vw 0;
    opacity: 0.38;
  }
  to {
    background-position: 24vw 0, -12vw 0;
    opacity: 0.82;
  }
}

@keyframes depthDrift {
  from {
    background-position: 0 0, -40px 0;
    opacity: 0.38;
  }
  to {
    background-position: 0 0, 74px 0;
    opacity: 0.62;
  }
}

@keyframes titleBreathe {
  from {
    text-shadow: 0 0 18px rgba(255, 249, 237, 0.18), 0 0 34px rgba(255, 183, 216, 0.16);
  }
  to {
    text-shadow: 0 0 26px rgba(255, 249, 237, 0.32), 0 0 64px rgba(255, 214, 167, 0.22);
  }
}

@keyframes heroVideoVeil {
  from {
    opacity: 0.66;
    transform: translate3d(-4%, -2%, 0) rotate(-2deg) scale(1);
  }
  to {
    opacity: 0.92;
    transform: translate3d(4%, 3%, 0) rotate(2deg) scale(1.08);
  }
}

@keyframes titleSlip {
  0%,
  86%,
  100% {
    opacity: 0;
    transform: translate(2px, 1px);
  }
  88%,
  92% {
    opacity: 1;
    transform: translate(-3px, 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .intro-loader {
    display: none;
  }
}
