@font-face {
  font-family: 'Lilita One';
  src: url('/assets/fonts/lilita-one.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --cream: #fff4e4;
  --peach: #ffe1cc;
  --ink: #3a2e3f;
  --ink-soft: #6f6075;
  --accent: #ff8a4c;
  --accent-dark: #e2672a;
  --card: #fffdf9;
  --line: rgba(74, 59, 82, 0.12);
  --shadow: 0 10px 30px rgba(120, 70, 40, 0.12), 0 2px 6px rgba(120, 70, 40, 0.08);
  --round: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--peach);
}

body {
  margin: 0;
  font: 400 17px/1.6 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 100%);
  min-height: 100vh;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: 'Lilita One', 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(40px, 7vw, 68px);
}

h2 {
  font-size: clamp(28px, 4.4vw, 40px);
}

h3 {
  font-size: 22px;
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
}

/* ---------- header and footer ---------- */

.site-head {
  padding: 18px 0;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 400 26px 'Lilita One', sans-serif;
}

.brand img {
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 99px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: rgba(255, 138, 76, 0.16);
  color: var(--accent-dark);
}

.site-foot {
  margin-top: 80px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-foot nav {
  display: flex;
  gap: 18px;
}

.site-foot a {
  color: var(--ink-soft);
}

/* ---------- buttons and badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font: 900 17px 'Nunito', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-dark), 0 8px 18px rgba(226, 103, 42, 0.3);
  transition: transform 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.soon small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

.soon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

/* ---------- home ---------- */

.hero {
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.lead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(290px, 100%);
}

.hero-art .phone {
  border-radius: 34px;
  box-shadow: 0 30px 60px rgba(90, 50, 30, 0.25);
  transform: rotate(3deg);
}

.hero-art .bloom {
  position: absolute;
  width: 110px;
  left: -40px;
  bottom: 40px;
  animation: spin 24s linear infinite;
  filter: drop-shadow(0 8px 14px rgba(226, 103, 42, 0.3));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.section {
  padding: 56px 0 0;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--round);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s;
}

a.game-card:hover {
  transform: translateY(-3px);
}

.game-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex: none;
  box-shadow: 0 6px 14px rgba(90, 50, 30, 0.2);
}

.game-card p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.game-card .more {
  font-weight: 900;
  color: var(--accent-dark);
  font-size: 15px;
}

.game-card.upcoming {
  background: rgba(255, 253, 249, 0.55);
  box-shadow: none;
  border: 2px dashed rgba(226, 103, 42, 0.35);
}

.seed {
  width: 96px;
  height: 96px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 138, 76, 0.12);
}

.seed img {
  width: 56px;
  height: 56px;
  box-shadow: none;
  border-radius: 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.value {
  padding: 22px;
  border-radius: var(--round);
  background: var(--card);
  box-shadow: var(--shadow);
}

.value b {
  display: block;
  font: 400 21px 'Lilita One', sans-serif;
  margin-bottom: 4px;
}

.value p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.value .ico {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- game page ---------- */

.game-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 40px 0 8px;
}

.game-hero .icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 14px 30px rgba(90, 50, 30, 0.25);
}

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 24px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shots img {
  width: 230px;
  border-radius: 24px;
  flex: none;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.trailer {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(90, 50, 30, 0.22);
  background: var(--ink);
}

.rules {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.rules li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.rules .num {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.features {
  columns: 2 260px;
  column-gap: 32px;
  padding-left: 1.1em;
}

.features li {
  margin-bottom: 8px;
  break-inside: avoid;
}

/* ---------- text pages ---------- */

.doc {
  max-width: 760px;
  margin: 32px auto 0;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.doc h1 {
  font-size: clamp(34px, 6vw, 48px);
}

.doc h2 {
  font-size: 26px;
  margin-top: 1.6em;
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: -6px;
}

.doc .summary {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff1e4;
  border-left: 5px solid var(--accent);
}

.doc .summary ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.doc th {
  font-weight: 900;
  background: #fff7ef;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 20px;
  background: #fff1e4;
  margin: 18px 0 8px;
}

.contact-card .btn {
  font-size: 16px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: '–';
}

details p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

/* ---------- phones ---------- */

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 16px;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero .actions,
  .hero .badges {
    justify-content: center;
  }

  .hero-art {
    width: min(220px, 64%);
  }

  .hero-art .bloom {
    width: 80px;
    left: -24px;
  }

  .game-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .game-hero .actions,
  .game-hero .badges {
    justify-content: center;
  }

  .game-hero .icon {
    width: 120px;
    height: 120px;
  }

  .site-nav a {
    padding: 6px 9px;
    font-size: 14px;
  }

  .brand {
    font-size: 22px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .trailer {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .bloom {
    animation: none;
  }
}
