:root {
  --bg: #fff8f0;
  --bg-card: #ffffff;
  --text: #2a2118;
  --muted: #5c534a;
  --orange: #e86f2a;
  --orange-dark: #c45218;
  --cream: #ffe8c8;
  --border: #ecd9c4;
  --shadow: 0 12px 40px rgba(42, 33, 24, 0.08);
  --radius: 14px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

body.demo-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-dark);
}

a:hover {
  color: var(--orange);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-play {
  background: linear-gradient(180deg, #f0883a, var(--orange));
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 111, 42, 0.35);
}

.btn-play:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-demo {
  background: var(--bg-card);
  color: var(--orange-dark);
  border-color: var(--orange);
}

.btn-demo:hover {
  background: var(--cream);
  color: var(--orange-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.hero {
  padding: 2rem 0 2.5rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 767px) {
  .hero {
    padding-top: 0.75rem;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hero__visual {
    order: -1;
    min-height: auto;
    margin-bottom: 0.25rem;
  }

  .hero__visual img.hero-logo {
    max-width: min(72vw, 240px);
    margin-inline: auto;
  }

  .hero__chars img {
    width: 72px;
  }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.game-video-block {
  display: block;
  width: min(100%, 380px);
  margin: 2.5rem auto 3.5rem;
  padding: 1rem 1rem 1.15rem;
  box-sizing: border-box;
  background: linear-gradient(145deg, #fff 0%, var(--cream) 100%);
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 0 0 6px rgba(232, 111, 42, 0.06);
  clear: both;
}

.game-video-block__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
  margin: 0 0 0.65rem;
  text-align: center;
}

.game-video {
  margin: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2a2118;
  background: #0a0a0a;
  line-height: 0;
}

.game-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  background: #0a0a0a;
  vertical-align: middle;
}

.game-video-block__sound {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

#how-to-play {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.hero__trust {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.hero__visual img.hero-logo {
  max-width: 280px;
  filter: drop-shadow(var(--shadow));
}

.hero__chars {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.hero__chars img {
  width: 88px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow);
}

.toc-sticky {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.toc-sticky.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.toc-sticky a {
  margin-right: 0.35rem;
  white-space: nowrap;
}

main section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 88px;
}

main h2 {
  font-size: 1.55rem;
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--cream);
}

main h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

th {
  background: var(--cream);
}

.bonus-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bonus-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #1a1a1a;
}

.bonus-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.bonus-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pros-cons {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: #2a2118;
  color: #e8dfd4;
  font-size: 0.9rem;
}

.site-footer a {
  color: #ffb87a;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  background: #111;
  aspect-ratio: 16/10;
  max-height: min(70vh, 640px);
}

.demo-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.75);
}

.demo-modal__panel {
  position: relative;
  width: min(100%, 1100px);
  height: min(92vh, 720px);
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.demo-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.demo-modal__panel iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

.play-redirect {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.cta-block {
  text-align: center;
  padding: 2rem 1.5rem;
}

ol.steps {
  padding-left: 1.25rem;
}

ol.steps li {
  margin-bottom: 0.5rem;
}
