:root {
  --bg-cream: #fff7d6;
  --sun-yellow: #ffd84d;
  --ducky-orange: #ff9f1c;
  --pond-blue: #39bdeb;
  --sky-blue: #87e5ff;
  --deep-pond-blue: #087ca7;
  --grass-green: #63c96b;
  --crocky-green: #2fa84f;
  --danger-red: #ef3e36;
  --text-brown: #3a2416;
  --panel-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(58, 36, 22, 0.14);
  --shadow-tight: 0 8px 22px rgba(58, 36, 22, 0.12);
  --radius: 8px;
  --content: min(1120px, calc(100vw - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-brown);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 216, 77, 0.26), transparent 22rem),
    linear-gradient(180deg, var(--bg-cream), #fff9df 42rem, var(--bg-cream));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content);
  min-height: 72px;
  margin: 12px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 247, 214, 0.78);
  box-shadow: 0 8px 32px rgba(8, 124, 167, 0.15);
  backdrop-filter: blur(18px);
  transition:
    min-height 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  min-height: 62px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-tight);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-brown);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #0d2032;
  box-shadow: 0 3px 10px rgba(58, 36, 22, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(58, 36, 22, 0.84);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 216, 77, 0.45);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--sun-yellow);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text-brown);
}

.hero {
  position: relative;
  padding: 104px 0 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(57, 189, 235, 0.96), rgba(135, 229, 255, 0.72) 66%, var(--bg-cream));
}

.hero-art {
  width: var(--content);
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--pond-blue);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  height: auto;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  width: var(--content);
  margin: 24px auto 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--deep-pond-blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(58, 36, 22, 0.78);
}

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

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

h1 {
  max-width: min(12ch, 100%);
  font-size: clamp(2.7rem, 6.8vw, 5.6rem);
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(255, 216, 77, 0.42);
}

.hero-copy {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(58, 36, 22, 0.92);
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  padding-bottom: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(58, 36, 22, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(58, 36, 22, 0.13);
  font-weight: 950;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
  outline: none;
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(58, 36, 22, 0.14);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button-primary {
  color: var(--text-brown);
  background: var(--sun-yellow);
}

.button-secondary {
  color: var(--panel-white);
  background: var(--deep-pond-blue);
}

.game-platform,
.updated {
  color: var(--deep-pond-blue);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  width: var(--content);
  margin: 74px auto 0;
}

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

.section-heading h2,
.policy h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
}

.gallery-filter {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(58, 36, 22, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.chip {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--text-brown);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.chip.is-active {
  background: var(--sun-yellow);
}

.chip:focus-visible {
  outline: 3px solid rgba(57, 189, 235, 0.6);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  overflow: hidden;
  border: 1px solid rgba(58, 36, 22, 0.09);
  border-radius: var(--radius);
  background: var(--panel-white);
  box-shadow: var(--shadow-soft);
}

.game-card[hidden] {
  display: none;
}

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

.game-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
}

.game-card h3 {
  margin-top: 4px;
  font-size: 1.8rem;
}

.game-card p:not(.game-platform) {
  margin: 10px 0 0;
  color: rgba(58, 36, 22, 0.74);
}

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

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid rgba(58, 36, 22, 0.12);
  border-radius: var(--radius);
  color: var(--text-brown);
  background: #fff7d6;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--sun-yellow);
  outline: none;
}

.soon-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.85), rgba(255, 159, 28, 0.86)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 18px, transparent 18px 36px);
}

.soon-art span {
  position: absolute;
  inset: 44px auto auto 50%;
  width: 146px;
  height: 146px;
  border-radius: 38% 62% 52% 48%;
  background: var(--pond-blue);
  box-shadow:
    -86px 28px 0 var(--grass-green),
    80px 50px 0 var(--crocky-green),
    10px 108px 0 var(--danger-red);
  transform: translateX(-50%) rotate(-10deg);
}

.game-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 28px;
  border: 0;
  border-radius: var(--radius);
  color: var(--text-brown);
  background: var(--panel-white);
  box-shadow: 0 24px 70px rgba(58, 36, 22, 0.3);
}

.game-dialog::backdrop {
  background: rgba(8, 124, 167, 0.36);
  backdrop-filter: blur(4px);
}

.game-dialog h2 {
  font-size: 2.4rem;
}

.game-dialog p:last-child {
  margin-bottom: 0;
  color: rgba(58, 36, 22, 0.78);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--sun-yellow);
  cursor: pointer;
}

.dialog-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--text-brown);
  stroke-linecap: round;
  stroke-width: 2.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--content);
  min-height: 92px;
  margin: 0 auto;
  border-top: 1px solid rgba(58, 36, 22, 0.15);
}

.site-footer p {
  margin: 0;
  color: rgba(58, 36, 22, 0.72);
}

.site-footer div {
  display: flex;
  gap: 14px;
  font-weight: 850;
}

.policy-page {
  background: var(--bg-cream);
}

.policy-page main {
  padding: 126px 0 70px;
}

.policy {
  color: #000000;
  width: min(840px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--panel-white);
  box-shadow: none;
}

.policy h1,
.policy h2 {
  text-shadow: none;
}

.policy-header {
  padding-bottom: 26px;
}

.policy .updated {
  margin: 14px 0 34px;
}

.policy section {
  padding: 26px 0;
  border-top: 1px solid rgba(58, 36, 22, 0.11);
}

.policy h2 {
  font-size: 1.55rem;
}

.policy p,
.policy li,
.policy dd {
  color: #000000;
}

.policy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  padding-left: 22px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 26px 0 0;
}

.policy-meta div {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(58, 36, 22, 0.12);
}

.policy-meta dt {
  color: #000000;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 2px 0 0;
  font-weight: 850;
}

.policy a {
  color: #000000;
  font-weight: 850;
}

@media (max-width: 820px) {
  :root {
    --content: min(1120px, calc(100vw - 24px));
  }

  .site-header {
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    width: auto;
    min-height: 64px;
    margin-top: 8px;
  }

  .nav-toggle {
    position: fixed;
    top: 18px;
    right: auto;
    left: min(calc(100vw - 64px), 326px);
    z-index: 25;
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, 100%);
    padding: 8px;
    border-radius: var(--radius);
    background: var(--panel-white);
    box-shadow: var(--shadow-tight);
  }

  .site-nav.is-open,
  .site-nav.is-inline {
    display: grid;
  }

  .site-nav.is-inline {
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
  }

  .hero {
    padding-top: 92px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.8rem);
  }

  .hero-copy {
    max-width: min(330px, 100%);
    font-size: 1.04rem;
  }

  .hero-content {
    display: block;
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-filter {
    width: 100%;
    overflow-x: auto;
  }

  .chip {
    white-space: nowrap;
  }

  .game-card {
    grid-template-rows: 205px 1fr;
  }

}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero-copy {
    max-width: min(310px, 100%);
  }

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

  .policy {
    padding: 24px 18px;
  }

  .policy ul,
  .policy-meta {
    grid-template-columns: 1fr;
  }
}
