:root {
  color-scheme: light;
  --paper: #f2eee4;
  --paper-deep: #e5ded0;
  --ink: #102231;
  --muted: #5e6b70;
  --line: rgba(16, 34, 49, 0.18);
  --acid: #d8ed72;
  --cyan: #4ecbd1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 34, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 49, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1320px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.masthead,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.masthead {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.studio-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.studio-mark strong {
  font-weight: 900;
}

.mark-grid {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  padding: 5px;
  background: var(--ink);
}

.mark-grid i {
  background: var(--paper);
}

.mark-grid i:nth-child(2),
.mark-grid i:nth-child(3) {
  background: var(--acid);
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.catalog-status i {
  width: 7px;
  height: 7px;
  background: #55b97a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(85, 185, 122, 0.13);
}

.catalog-status b {
  color: #43855c;
}

.hero {
  display: grid;
  gap: 20px;
  padding: clamp(42px, 9vw, 94px) 0 clamp(34px, 7vw, 68px);
}

.eyebrow,
.card-kicker,
.site-footer,
.poster-index {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 13px;
  color: #68756f;
}

h1,
h2,
.game-poster strong {
  margin: 0;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 12.5vw, 104px);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
}

h1 em {
  color: #e46b4f;
  font-style: normal;
}

.hero-copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
}

.game-grid {
  display: grid;
  gap: 18px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(32, 42, 45, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:focus-visible {
  outline: 3px solid #e46b4f;
  outline-offset: 4px;
}

.game-poster {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  isolation: isolate;
}

.poster-index {
  position: absolute;
  z-index: 10;
  top: 20px;
  left: 20px;
  padding: 7px 9px;
  border: 1px solid currentColor;
}

.game-poster strong {
  position: absolute;
  z-index: 8;
  left: 20px;
  bottom: 18px;
  font-size: clamp(38px, 11vw, 70px);
  font-weight: 900;
  line-height: 0.82;
}

.heat-poster {
  color: #102a37;
  background:
    linear-gradient(rgba(16, 42, 55, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 55, 0.09) 1px, transparent 1px),
    #cce4dc;
  background-size: 34px 34px;
}

.heat-poster::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: -8%;
  bottom: -22%;
  width: 56%;
  aspect-ratio: 1;
  border: 25px solid rgba(78, 203, 209, 0.72);
  border-radius: 50%;
}

.heat-sun {
  position: absolute;
  top: 40px;
  right: 36px;
  width: 116px;
  height: 116px;
  background: #f07a55;
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(240, 122, 85, 0.12);
}

.heat-cloud {
  position: absolute;
  z-index: 2;
  height: 18px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
}

.heat-cloud::before,
.heat-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
}

.heat-cloud::before {
  left: 14px;
  width: 30px;
  height: 30px;
}

.heat-cloud::after {
  right: 13px;
  width: 22px;
  height: 22px;
}

.heat-cloud-one {
  top: 100px;
  left: 31%;
  width: 84px;
}

.heat-cloud-two {
  top: 58px;
  left: 11%;
  width: 64px;
  transform: scale(0.72);
}

.city-block {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 13%;
  background: #16384a;
  border-top: 7px solid var(--acid);
}

.city-block::after {
  content: "";
  position: absolute;
  inset: 18px 22% 10px;
  background: repeating-linear-gradient(180deg, rgba(216, 237, 114, 0.9) 0 5px, transparent 5px 17px);
}

.block-one { right: 3%; height: 43%; }
.block-two { right: 17%; height: 27%; }
.block-three { right: 31%; height: 36%; }
.block-four { right: 45%; height: 20%; }

.cool-route {
  position: absolute;
  z-index: 5;
  right: 12%;
  bottom: 43%;
  width: 42%;
  height: 3px;
  background: var(--acid);
  transform: rotate(-14deg);
  transform-origin: right;
  box-shadow: 0 0 14px rgba(216, 237, 114, 0.8);
}

.cooler-mark {
  position: absolute;
  z-index: 6;
  right: 7%;
  bottom: 44%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--acid);
  border-radius: 50%;
  font-size: 27px;
}

.hero-runner {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 30%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: #e46b4f;
  border-radius: 50%;
  font-weight: 900;
}

.orbit-poster {
  color: #f2fff9;
  background:
    radial-gradient(circle at 58% 48%, rgba(62, 255, 214, 0.13), transparent 25%),
    linear-gradient(140deg, #091525 0%, #02060e 76%);
}

.orbit-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 20, 0.8), transparent 54%);
}

.orbit-ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 70%;
  width: var(--size);
  height: calc(var(--size) * 0.54);
  border: 1px solid rgba(113, 255, 226, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  box-shadow: 0 0 24px rgba(113, 255, 226, 0.06);
}

.ring-one { --size: 130px; }
.ring-two { --size: 218px; }
.ring-three { --size: 310px; }

.orbit-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 70%;
  width: 38px;
  height: 38px;
  background: #fff2c6;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px #fff2c6, 0 0 70px rgba(113, 255, 226, 0.5);
}

.orbit-petal {
  position: absolute;
  z-index: 4;
  width: 13px;
  height: 22px;
  background: #71ffe2;
  border-radius: 100% 0 100% 0;
  box-shadow: 0 0 15px #71ffe2;
}

.petal-one { top: 21%; right: 12%; transform: rotate(22deg); }
.petal-two { top: 67%; right: 20%; transform: rotate(108deg); }
.petal-three { top: 34%; right: 44%; transform: rotate(-28deg); }

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
}

.star-one { top: 18%; left: 42%; }
.star-two { top: 30%; right: 8%; }
.star-three { bottom: 19%; left: 56%; }

.card-copy {
  padding: 22px 20px 20px;
}

.card-kicker,
.card-footer,
.control-tags {
  display: flex;
  align-items: center;
}

.card-kicker {
  justify-content: space-between;
  color: #6a7779;
}

.card-kicker b {
  color: var(--ink);
}

.card-copy h2 {
  margin-top: 13px;
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 850;
}

.card-copy > p {
  min-height: 3.1em;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-footer {
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.control-tags {
  gap: 6px;
}

.control-tags i {
  padding: 5px 7px;
  color: #59676b;
  background: var(--paper-deep);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.play-link b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.orbit-card .play-link b {
  color: #061019;
  background: #71ffe2;
}

.site-footer {
  margin-top: clamp(44px, 8vw, 90px);
  padding-top: 18px;
  color: #627071;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer i {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

@media (min-width: 760px) {
  .page-shell {
    padding-inline: clamp(32px, 5vw, 72px);
  }

  .hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
    align-items: end;
  }

  .hero-copy {
    padding-bottom: 5px;
  }

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

  .game-poster {
    min-height: clamp(340px, 38vw, 500px);
  }

  .card-copy {
    padding: 27px 28px 26px;
  }
}

@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 70px rgba(32, 42, 45, 0.16);
  }

  .game-card:hover .play-link b {
    transform: translateX(3px);
  }

  .orbit-card:hover .orbit-ring {
    border-color: rgba(113, 255, 226, 0.86);
  }
}

@media (max-width: 520px) {
  .catalog-status span,
  .site-footer > p:first-child {
    display: none;
  }

  .game-poster {
    min-height: 280px;
  }

  .site-footer {
    justify-content: center;
  }

  .site-footer p:last-child {
    gap: 6px;
    font-size: 7px;
  }
}

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