* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--page-bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

body::before {
  width: 30rem;
  height: 30rem;
  top: -7rem;
  right: -8rem;
  background: var(--glow-a);
}

body::after {
  width: 24rem;
  height: 24rem;
  bottom: -7rem;
  left: -6rem;
  background: var(--glow-b);
}

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

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

main {
  display: grid;
  gap: 1.5rem;
}

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

.site-header,
.hero,
.featured-game,
.featured-visual,
.info-panel,
.media-card,
.faq-item,
.team-panel,
.team-block,
.not-found {
  border: 1px solid var(--line);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(16px);
}

.site-header,
.hero,
.featured-game,
.team-panel,
.not-found {
  border-radius: var(--radius-xl);
}

.featured-visual,
.info-panel,
.media-card,
.faq-item,
.team-block {
  border-radius: var(--radius-lg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.3rem;
  margin-bottom: 1.5rem;
  background: var(--header-surface);
}

.hero {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  background: var(--hero-surface);
  overflow: hidden;
}

.featured-game {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  gap: 1.4rem;
  padding: 1.55rem;
  background: var(--featured-surface);
}

.featured-visual {
  display: grid;
  place-items: center;
  min-height: 25rem;
  padding: 1.6rem;
  background: var(--visual-surface);
  overflow: hidden;
}

.info-panel,
.media-card,
.faq-item,
.team-block,
.not-found {
  background: var(--panel-surface);
}

.team-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.55rem;
  background: var(--team-surface);
}

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

.brand-logo {
  width: clamp(12.25rem, 20vw, 17rem);
  height: auto;
}

.brand-lockup-compact .brand-logo {
  width: clamp(10.75rem, 16vw, 13.75rem);
}

.hero-copy,
.featured-copy,
.showcase-copy,
.team-panel-main,
.info-panel,
.media-card,
.faq-item,
.team-block,
.not-found {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.hero-copy {
  width: 100%;
}

.hero-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.hero-game-logo {
  justify-self: end;
  align-self: start;
  padding-top: 0.65rem;
}

.game-title-block {
  display: grid;
  gap: 0.75rem;
}

.game-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-content: start;
  width: min(100%, 30rem);
}

.showcase-copy {
  gap: 0.45rem;
}

.game-logo-frame {
  display: block;
  overflow: visible;
  aspect-ratio: auto;
}

.game-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  transform: none;
}

.game-logo-feature-frame {
  width: min(15rem, 78%);
  justify-self: center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.game-logo-inline-frame {
  width: clamp(12rem, 19vw, 15rem);
  min-width: 11rem;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24));
}

.section-heading,
.media-section,
.faq-section,
.team-section {
  display: grid;
  gap: 1.15rem;
}

.section-heading {
  gap: 0.35rem;
}

.section-heading-panel {
  margin-bottom: 0.35rem;
}

.info-grid,
.media-grid,
.faq-grid,
.team-grid {
  display: grid;
  gap: 1rem;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.media-grid,
.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.info-panel,
.media-card,
.faq-item,
.team-block {
  padding: 1.5rem;
}

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 14.75rem;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.28rem;
  background: linear-gradient(90deg, var(--card-accent), transparent 68%);
}

.theme-game .media-card-tone-1 {
  --card-accent: #79d8ff;
  --media-card-radial: rgba(121, 216, 255, 0.18);
}

.theme-game .media-card-tone-2 {
  --card-accent: #ffd56a;
  --media-card-radial: rgba(255, 213, 106, 0.18);
}

.theme-game .media-card-tone-3 {
  --card-accent: #80e0c7;
  --media-card-radial: rgba(128, 224, 199, 0.16);
}

.theme-game .media-card[class*="media-card-tone"] {
  background:
    radial-gradient(circle at top right, var(--media-card-radial), transparent 12rem),
    var(--panel-surface);
}

.team-panel-main {
  max-width: 76ch;
}

.team-block:nth-child(1),
.team-block:nth-child(2) {
  background: var(--team-card-2);
}

.team-block:nth-child(3) {
  background: var(--team-card-3);
}

.team-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.not-found {
  min-height: 50vh;
  padding: 2rem;
}

.hero-copy h1,
.featured-copy h2,
.section-heading h2,
.info-panel h2,
.media-card h3,
.faq-item h3,
.team-block h3,
.showcase-copy h3,
.game-title,
.not-found h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.eyebrow,
.card-label,
.game-subtitle {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  margin-left: auto;
}

.top-nav a {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  opacity: 0.86;
  transition: opacity var(--transition-fast);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 1;
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 7vw, 5.3rem);
  max-width: 22ch;
}

.hero-studio .hero-copy h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
}

.featured-copy h2,
.section-heading h2,
.info-panel h2,
.not-found h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-wrap: balance;
}

.media-card h3,
.faq-item h3,
.team-block h3,
.showcase-copy h3 {
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  text-wrap: balance;
}

.team-block h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
}

.lead,
.body-copy,
.section-intro,
.showcase-copy p,
.info-panel p,
.faq-item p,
.team-panel p,
.team-block p,
.info-note {
  color: var(--muted);
}

.lead,
.body-copy,
.section-intro {
  max-width: 70ch;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.hero-studio .lead,
.hero-studio .body-copy {
  max-width: 96ch;
}

.eyebrow,
.card-label {
  display: inline-block;
  margin: 0;
  font-size: 0.82rem;
  color: var(--eyebrow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.button-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.button-secondary {
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
  color: var(--button-secondary-ink);
}

.team-contact .button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 0.2rem;
}

.requirements-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--divider);
}

.requirements-list li span {
  color: var(--muted);
}

.requirements-list li strong {
  font-family: var(--font-display);
  line-height: 1.35;
}

.game-title {
  font-size: clamp(3rem, 7vw, 5.1rem);
  max-width: 10ch;
}

.game-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0.72;
}

.info-note {
  max-width: 34rem;
}

.brand-lockup:focus-visible,
.top-nav a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}