:root {
  color-scheme: light;
  --ink: #23324d;
  --muted: #5d6f8e;
  --sky: #d9f4ff;
  --mint: #b9efd1;
  --petal: #ffd4e8;
  --sun: #ffe27a;
  --peach: #ffc6a8;
  --lavender: #d8d0ff;
  --blue: #4f82d8;
  --blue-dark: #285491;
  --white: #fffdf8;
  --line: rgba(35, 50, 77, 0.14);
  --shadow: 0 14px 34px rgba(70, 94, 129, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sky);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(217, 244, 255, 0.94), rgba(255, 253, 248, 0.92) 42%, rgba(185, 239, 209, 0.86)),
    var(--sky);
  font-family: "Segoe UI Rounded", "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  border: 2px solid rgba(40, 84, 145, 0.24);
  border-radius: 50%;
  padding: 2px;
  background: var(--white);
  object-fit: cover;
  box-shadow: 0 5px 12px rgba(79, 130, 216, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 226, 122, 0.48);
  outline: none;
}

.button {
  cursor: pointer;
  border-color: rgba(40, 84, 145, 0.16);
  background: var(--sun);
  box-shadow: 0 8px 20px rgba(255, 178, 45, 0.22);
  font-family: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #ffed9b;
  box-shadow: 0 13px 26px rgba(255, 178, 45, 0.28);
  outline: 3px solid rgba(79, 130, 216, 0.25);
}

.button.secondary {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #eef9ff;
}

.button.small {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 0.92rem;
}

.hero {
  min-height: min(76svh, 680px);
  display: grid;
  align-items: end;
  padding: clamp(42px, 8vw, 84px) clamp(18px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(35, 50, 77, 0.68), rgba(35, 50, 77, 0.26) 48%, rgba(255, 253, 248, 0.12)),
    var(--hero-image, url("/assets/starfall-seasons-gameplay.webp")) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(720px, 100%);
  color: var(--white);
  text-shadow: 0 3px 18px rgba(35, 50, 77, 0.44);
}

.eyebrow {
  margin: 0 0 12px;
  color: #fff6b3;
  font-size: clamp(0.9rem, 2.2vw, 1.08rem);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 58ch;
  margin-bottom: 24px;
  font-size: clamp(1.08rem, 2.4vw, 1.36rem);
  line-height: 1.45;
}

.play-note {
  max-width: 58ch;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 2px solid rgba(255, 226, 122, 0.72);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
  text-shadow: none;
}

.hero-actions,
.page-actions,
.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.section {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 70px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

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

.section-title h2,
.page-title h1 {
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.section-title p,
.page-title p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.soft-band {
  background:
    linear-gradient(135deg, rgba(255, 212, 232, 0.55), rgba(255, 226, 122, 0.38) 45%, rgba(185, 239, 209, 0.55));
  border-block: 1px solid var(--line);
}

.about-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.about-card h2 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.about-card p:not(.eyebrow) {
  max-width: 76ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.about-card .button {
  margin-top: 8px;
}

.about-title h1 {
  max-width: 10ch;
}

.about-title .page-actions {
  margin-top: 20px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(22px, 5vw, 42px);
  align-items: start;
}

.about-story h2 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.about-story p:not(.eyebrow) {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.about-favorites,
.about-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.about-favorites {
  padding: 22px;
}

.about-favorites h3,
.about-steps h3 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1.15;
}

.about-favorites ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
}

.about-favorites li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
}

.about-favorites span {
  font-size: 1.35rem;
  line-height: 1;
}

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

.about-steps article {
  padding: 22px;
}

.about-steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sky);
}

.game-card-body {
  padding: 18px;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.game-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(40, 84, 145, 0.12);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7bd, #ffd4e8 55%, #d8d0ff);
  font-size: 1.7rem;
  box-shadow: 0 8px 16px rgba(70, 94, 129, 0.12);
}

.game-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 239, 209, 0.8);
  color: #246245;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-kicker {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.game-card h3 {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 1.4rem;
  line-height: 1.15;
}

.game-card p {
  color: var(--muted);
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 16px;
}

.tag-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(216, 208, 255, 0.5);
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.page-title {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 66px) clamp(18px, 5vw, 70px) 24px;
}

.game-shell {
  padding: clamp(18px, 4vw, 42px);
}

.game-topbar {
  width: min(1180px, 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.game-title h1 {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}

.game-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.game-frame-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #9ed7f4;
  box-shadow: var(--shadow);
}

.game-frame {
  display: block;
  width: 100%;
  height: min(76svh, 760px);
  min-height: 560px;
  border: 0;
  background: #bfe0f5;
}

.note {
  width: min(1180px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 70px);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.78);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 70svh;
    align-items: center;
    background-position: center;
  }

  .section-title,
  .game-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-story,
  .about-steps {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .page-actions,
  .game-actions {
    width: 100%;
  }

  .game-frame {
    height: 72svh;
    min-height: 460px;
  }
}
