@font-face {
  font-family: "Slackey";
  src: url("/assets/slackey.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06171b;
  --bg-deep: #030b0d;
  --panel: rgba(5, 29, 34, 0.92);
  --panel-soft: rgba(13, 54, 60, 0.72);
  --cream: #fff4ce;
  --text: #e9f4ef;
  --muted: #a9c2bd;
  --cyan: #19b8c5;
  --cyan-soft: #7fe3ea;
  --red: #f13a23;
  --orange: #f4a51f;
  --line: rgba(255, 244, 206, 0.35);
  --shadow: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 82% 18%, rgba(18, 166, 177, 0.17), transparent 34rem),
    radial-gradient(circle at 15% 65%, rgba(100, 38, 116, 0.15), transparent 30rem),
    linear-gradient(rgba(2, 15, 18, 0.84), rgba(2, 12, 14, 0.94)),
    url("/assets/menu-background.png") center / cover fixed,
    var(--bg-deep);
}

a { color: var(--cyan-soft); text-underline-offset: 0.2em; }
a:hover { color: var(--cream); }

.site-header,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { min-height: 106px; padding: 22px 0; }
.site-header.compact { min-height: 86px; }

.brand { display: block; line-height: 0; }
.brand img { width: min(345px, 52vw); height: auto; }

nav { display: flex; gap: 10px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
}
nav a:hover,
nav a.active {
  color: var(--cream);
  background: rgba(25, 184, 197, 0.1);
  border-color: rgba(25, 184, 197, 0.4);
}

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(32px, 4vw, 60px) 0 70px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-soft);
  font-family: Slackey, system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Slackey, system-ui, sans-serif;
  color: var(--cream);
  line-height: 1.2;
  text-wrap: balance;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  letter-spacing: -0.035em;
  text-shadow: 0 8px 26px var(--shadow);
}

.lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d2e3df;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 198px;
  padding: 11px 18px;
  color: var(--cream);
  background: #070a0b;
  border: 2px solid var(--cream);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.05;
}

.store-badge small { display: block; margin-bottom: 4px; color: #d4ddd9; font-size: 0.68rem; font-weight: 600; }
.store-icon { color: var(--cyan-soft); font-size: 1.45rem; transform: rotate(-30deg); }
.no-ads { color: var(--muted); font-size: 0.92rem; font-weight: 700; }

.game-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: clamp(30px, 5vw, 58px) clamp(26px, 4vw, 46px) 30px;
  border: 2px solid rgba(255, 244, 206, 0.63);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(7, 56, 65, 0.92), rgba(4, 23, 28, 0.95));
  box-shadow: 0 28px 60px var(--shadow), inset 0 0 44px rgba(25, 184, 197, 0.08);
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--orange), var(--red));
}

.app-icon {
  width: min(285px, 66vw);
  border-radius: 25%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.42);
}

.feature-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-row span {
  padding: 7px 10px;
  color: var(--cream);
  border: 1px solid rgba(127, 227, 234, 0.3);
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.document-wrap {
  width: min(920px, calc(100% - 40px));
  margin: 30px auto 70px;
}

.document {
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid rgba(127, 227, 234, 0.26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(5, 39, 46, 0.96), rgba(4, 22, 27, 0.97));
  box-shadow: 0 26px 60px var(--shadow);
}

.document h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.7rem); }
.document h2 { margin: 2.25em 0 0.65em; font-size: clamp(1.15rem, 3vw, 1.6rem); }
.document p,
.document li { color: #d5e5e1; }
.document li + li { margin-top: 0.45em; }
.document strong { color: var(--cream); }
.effective { margin: 12px 0 34px; color: var(--muted) !important; font-weight: 700; }

.support-wrap { max-width: 780px; }
.support-card { text-align: center; }
.support-lede { max-width: 620px; margin: 24px auto 32px; font-size: 1.08rem; }
.email-button {
  display: inline-block;
  padding: 14px 28px;
  color: var(--cream);
  text-decoration: none;
  font-family: Slackey, system-ui, sans-serif;
  background: linear-gradient(180deg, #ff4c2d, #df2b19);
  border: 2px solid var(--cream);
  border-radius: 12px;
  box-shadow: 0 8px 18px var(--shadow);
}
.email-button:hover { color: white; transform: translateY(-1px); }
.email-address { color: var(--muted) !important; }
.support-note { margin-top: 48px; padding: 28px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,0.16); }
.support-note h2 { margin-top: 0; }

footer {
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.86rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .game-card { max-width: 500px; width: 100%; justify-self: center; }
}

@media (max-width: 560px) {
  .site-header,
  footer,
  .hero { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 86px; gap: 12px; }
  .brand img { width: min(225px, 57vw); }
  nav { gap: 2px; }
  nav a { padding: 7px 8px; font-size: 0.82rem; }
  .hero h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .document-wrap { width: min(100% - 24px, 920px); margin-top: 14px; }
  .document { padding: 28px 22px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .game-card { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
