:root {
  color-scheme: light;
  --page: #f7fffc;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #17324a;
  --soft-ink: #546d7c;
  --line: rgba(43, 130, 148, 0.2);
  --aqua: #28b8d0;
  --green: #52cc86;
  --pink: #ef69b0;
  --gold: #ffc766;
  --shadow: 0 18px 54px rgba(30, 93, 106, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 255, 255, 0.92), transparent 18rem),
    radial-gradient(circle at 86% 15%, rgba(239, 105, 176, 0.2), transparent 20rem),
    radial-gradient(circle at 74% 82%, rgba(255, 199, 102, 0.26), transparent 18rem),
    linear-gradient(145deg, #d9faff 0%, #e0ffd8 54%, #fff1d1 100%);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-frame {
  display: grid;
  grid-template-columns: 224px minmax(0, 900px);
  gap: 32px;
  align-items: start;
  width: min(calc(100% - 32px), 1180px);
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
}

.page-shell {
  width: 100%;
  min-width: 0;
}

.inline-link {
  color: #176b76;
  font-weight: 900;
  text-decoration-color: rgba(23, 107, 118, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: #114c55;
  text-decoration-color: currentColor;
}

.side-menu {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(145deg, var(--paper-strong), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.menu-brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.84rem;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--aqua), var(--green), var(--pink));
  box-shadow: 0 12px 24px rgba(40, 184, 208, 0.22);
}

.brand-line {
  display: block;
}

.menu-links {
  display: grid;
  gap: 8px;
}

.menu-links a {
  position: relative;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px 0 11px;
  color: #1c6c78;
  font-weight: 900;
  text-decoration: none;
}

.menu-links a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(28, 108, 120, 0.24);
}

.menu-links a:hover,
.menu-links a:focus-visible,
.menu-links a.is-active {
  border-color: rgba(40, 184, 208, 0.25);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.menu-links a.is-active::before {
  background: linear-gradient(135deg, var(--aqua), var(--green), var(--pink));
}

section {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 42px);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 88% 20%, rgba(82, 204, 134, 0.18), transparent 16rem),
    radial-gradient(circle at 7% 92%, rgba(239, 105, 176, 0.16), transparent 14rem);
}

.hero.compact h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 7vw, 4.2rem);
  line-height: 1;
}

h1,
h2,
p,
li,
figure {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 14px;
  max-width: 780px;
  font-size: clamp(3.1rem, 9vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.12;
}

p {
  color: var(--soft-ink);
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: #18717d;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.headline {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  font-weight: 950;
  line-height: 1.18;
}

.headline.small {
  font-size: clamp(1.16rem, 2.4vw, 1.45rem);
}

.lede {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.app-status,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
  line-height: 1.1;
}

.app-status {
  border: 1px solid rgba(40, 184, 208, 0.28);
  color: #176b76;
  background: rgba(255, 255, 255, 0.74);
}

.button-link {
  border: 1px solid transparent;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--aqua), var(--green), var(--pink));
  box-shadow: 0 14px 30px rgba(40, 184, 208, 0.24);
}

.button-link.secondary {
  border-color: rgba(40, 184, 208, 0.28);
  color: #176b76;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.featured-game {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.game-copy {
  min-width: 0;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  min-height: 30px;
  padding-left: 36px;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.08rem);
  font-weight: 850;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua), var(--green), var(--pink));
  box-shadow: 0 6px 14px rgba(40, 184, 208, 0.2);
}

.screenshot-card {
  margin: 0;
  text-align: center;
}

.game-card {
  display: block;
  width: min(100%, 350px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
  background:
    linear-gradient(145deg, #ffffff, rgba(255, 255, 255, 0.64)),
    linear-gradient(135deg, rgba(40, 184, 208, 0.18), rgba(239, 105, 176, 0.14));
  box-shadow: 0 22px 56px rgba(52, 100, 130, 0.22);
}

.game-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

figcaption {
  max-width: 340px;
  margin: 14px auto 0;
  color: var(--soft-ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #176b76;
  font-weight: 900;
  text-align: center;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(43, 130, 148, 0.26);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

textarea {
  resize: vertical;
}

form button {
  justify-self: start;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 950;
  background: linear-gradient(135deg, var(--aqua), var(--green), var(--pink));
  box-shadow: 0 14px 30px rgba(40, 184, 208, 0.24);
}

form button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.legal-list {
  margin: 0;
  padding-left: 22px;
  color: var(--soft-ink);
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  line-height: 1.62;
}

.legal-list li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #176b76;
  font-weight: 900;
  text-decoration-color: rgba(23, 107, 118, 0.32);
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.menu-brand:focus-visible,
.menu-links a:focus-visible,
.button-link:focus-visible,
.game-card:focus-visible,
form button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 105, 176, 0.46);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .button-link,
  .game-card,
  form button,
  .menu-links a {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }

  .button-link:hover,
  .game-card:hover,
  form button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  .site-frame {
    display: block;
    width: min(calc(100% - 28px), 860px);
    max-width: calc(100% - 28px);
  }

  .side-menu {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .menu-brand {
    margin-bottom: 0;
  }

  .menu-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .featured-game {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-frame {
    width: min(368px, calc(100% - 22px));
    max-width: calc(100% - 22px);
    margin-right: auto;
    margin-left: 11px;
    padding-block: 22px;
  }

  .side-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .menu-links a {
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 7px;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .menu-links a::before {
    width: 7px;
    height: 7px;
  }

  section {
    padding: 20px;
  }

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

  .hero.compact h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-status,
  .button-link,
  form button {
    width: 100%;
  }
}
