:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: #ffffff;
  --ink: #151716;
  --muted: #5c6460;
  --line: #ded8cb;
  --green: #2f6f5e;
  --coral: #dd6f4f;
  --yellow: #f2c14e;
  --teal: #2e8c8c;
  --shadow: 0 20px 60px rgba(30, 26, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 234, 0.88);
  border-bottom: 1px solid rgba(222, 216, 203, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.language-option {
  min-width: 46px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.language-option.active {
  background: var(--ink);
  color: #fff;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 67px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(20, 18, 13, 0.78) 0%, rgba(20, 18, 13, 0.58) 42%, rgba(20, 18, 13, 0.1) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 96px);
  padding: 76px 0 104px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 10ch;
  font-size: clamp(56px, 10vw, 118px);
}

h2 {
  font-size: clamp(32px, 5vw, 64px);
}

h3 {
  font-size: 24px;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.filter:hover,
.language-option:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--yellow);
  color: #241d0a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro,
.studio-band,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
}

.intro p:last-child,
.studio-points,
.contact .button {
  align-self: center;
}

.intro p:last-child,
.studio-points p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.game-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(222, 216, 203, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7ded0;
}

.game-body {
  padding: 22px;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.pill.status-testing {
  background: #fff5dd;
  color: #9b6810;
}

.pill.status-coming-soon {
  background: #f6e8e2;
  color: #9a462c;
}

.game-description {
  min-height: 72px;
  margin: 12px 0 0;
  color: var(--muted);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.platform {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-actions {
  margin-top: 20px;
}

.card-actions .button {
  min-height: 40px;
  padding: 9px 12px;
  border-color: var(--line);
  color: var(--ink);
  font-size: 13px;
}

.card-actions .button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.empty-state {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.studio-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-points {
  display: grid;
  gap: 14px;
}

.contact {
  align-items: center;
}

.contact .button {
  width: fit-content;
  justify-self: end;
  background: var(--green);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
  }

  .language-option {
    flex: 1;
  }

  .hero {
    min-height: 660px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(20, 18, 13, 0.82) 0%, rgba(20, 18, 13, 0.56) 58%, rgba(20, 18, 13, 0.18) 100%);
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 54px;
  }

  .section {
    padding: 58px 0;
  }

  .intro,
  .studio-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .contact .button {
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
  }
}
