:root {
  --ink: #173f49;
  --muted: #60777c;
  --paper: #fff8ef;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(77, 150, 167, 0.2);
  --blue: #4d96a7;
  --pink: #e07c82;
  --yellow: #ebb459;
  --accent: var(--pink);
  --accent-light: var(--yellow);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(235, 180, 89, 0.27), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(224, 124, 130, 0.2), transparent 30%),
    radial-gradient(circle at 82% 5%, rgba(77, 150, 167, 0.13), transparent 25%),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.link-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.platform-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.page-shell {
  width: min(1180px, 100%);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 34px) clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.6vh, 28px);
}

.studio-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.language-switcher {
  padding: 4px;
  display: inline-flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.language-button {
  width: 38px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: 700 0.68rem "DM Sans", sans-serif;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.language-button:focus-visible {
  box-shadow: 0 0 0 2px var(--yellow);
}

.language-button.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 3px 10px rgba(77, 150, 167, 0.22);
}

.brand {
  padding: 6px 16px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: clamp(42px, 5vw, 58px);
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-type {
  width: clamp(118px, 15vw, 168px);
  aspect-ratio: 3.509 / 2.482;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.header-note,
footer {
  color: var(--muted);
  font-size: 0.78rem;
}

.content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(235px, 0.75fr);
  gap: clamp(14px, 2vw, 22px);
}

.featured-game {
  max-height: 500px;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: linear-gradient(145deg, #173f49 0%, #255b67 100%);
  color: #fffdf7;
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(37, 91, 103, 0.18);
}

.game-copy {
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dcebed;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 5px rgba(235, 180, 89, 0.18);
}

h1 {
  max-width: 650px;
  margin: 0 0 14px;
  font: 800 clamp(2rem, 4vw, 4.25rem) / 0.98 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.game-copy p {
  max-width: 510px;
  margin: 0;
  color: #c8dcdf;
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  line-height: 1.5;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-width: 118px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.button .platform-icon {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: var(--ink);
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.09);
}

.game-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #255b67;
}

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

.game-art span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.social-links {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 82px));
  align-content: center;
  gap: 10px;
}

.social-link {
  max-height: 82px;
  min-height: 0;
  padding: 0 clamp(17px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link i {
  color: var(--muted);
  font-style: normal;
}

.social-link:not(:disabled):hover,
.social-link:not(:disabled):focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(224, 124, 130, 0.7);
  box-shadow: 0 8px 24px rgba(77, 150, 167, 0.1);
  transform: translateX(-4px);
  outline: none;
}

.social-link:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.button:not(:disabled):hover,
.button:not(:disabled):focus-visible {
  transform: translateY(-2px);
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

footer {
  min-height: 16px;
}

@media (min-width: 761px) {
  .content {
    width: 100%;
    height: min(100%, 500px);
    align-self: center;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
    gap: 11px;
  }

  .header-note,
  footer span:last-child {
    display: none;
  }

  .brand-mark {
    width: 38px;
  }

  .brand-type {
    width: 108px;
  }

  .content {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.68fr) minmax(172px, 1fr);
    gap: 10px;
  }

  .featured-game {
    grid-template-columns: 1fr 0.55fr;
    border-radius: 19px;
  }

  .game-copy {
    padding: 20px;
    gap: 14px;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 7vw, 2.5rem);
  }

  .game-copy p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .button {
    min-width: 94px;
    padding: 9px 11px;
    gap: 12px;
    font-size: 0.74rem;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .social-link {
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .social-link .platform-icon {
    width: 17px;
    height: 17px;
  }

  .social-link .link-label {
    gap: 7px;
  }

  footer {
    font-size: 0.66rem;
  }
}

@media (max-width: 480px) {
  .featured-game {
    grid-template-columns: 1fr;
    background:
      linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
      url("assets/game-cover.png") center / cover no-repeat;
  }

  .game-art {
    display: none;
  }
}

@media (max-height: 650px) {
  .page-shell {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
  }

  .brand-type {
    width: 98px;
  }

  .language-button {
    height: 27px;
  }

  .game-copy {
    padding: 18px;
    gap: 10px;
  }

  .eyebrow {
    font-size: 0.62rem;
  }

  h1 {
    margin-bottom: 7px;
    font-size: clamp(1.45rem, 5vh, 2.7rem);
  }

  .game-copy p {
    font-size: 0.74rem;
  }

  .button {
    padding-block: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}