:root {
  color-scheme: dark;
  --bg: #080706;
  --bg-soft: #12100d;
  --surface: #17130e;
  --surface-2: #20180f;
  --text: #f8f3e8;
  --muted: #c9bda8;
  --gold: #f6c453;
  --gold-strong: #ffdc7b;
  --gold-dark: #9c6818;
  --line: rgba(246, 196, 83, 0.22);
  --success: #7ee2a8;
  --danger: #ff8c7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(246, 196, 83, 0.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff1bc;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #fff1bc;
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(246, 196, 83, 0.12);
  background: rgba(8, 7, 6, 0.88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 42px;
  object-fit: contain;
}

.brand span span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.main-nav a {
  padding: 0.58rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(246, 196, 83, 0.09);
  color: var(--text);
}

.main-nav .nav-cta {
  margin-left: 0.4rem;
  padding-inline: 1rem;
  border: 1px solid var(--gold-dark);
  background: linear-gradient(135deg, var(--gold-strong), #d99b2b);
  color: #201302;
}

.main-nav .nav-cta:hover {
  background: linear-gradient(135deg, #fff0aa, var(--gold));
  color: #120a00;
}

.age-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f0d0a;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.age-bar p {
  margin: 0;
  padding: 0.32rem 1rem;
}

.age-bar strong {
  color: var(--danger);
}

.quick-launch {
  position: relative;
  z-index: 4;
  padding-top: 0.9rem;
}

.quick-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 16, 13, 0.9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.quick-action {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(246, 196, 83, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 196, 83, 0.62);
  background: rgba(246, 196, 83, 0.09);
  color: var(--text);
}

.quick-action-primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-strong), #d99b2b);
  color: #1a0f00;
}

.quick-action-primary:hover {
  background: linear-gradient(135deg, #fff1ad, var(--gold));
  color: #120900;
}

.quick-action-store {
  background: linear-gradient(145deg, rgba(246, 196, 83, 0.1), rgba(255, 255, 255, 0.025));
}

.quick-action-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.6rem, 8vw, 7rem) 0 clamp(3.4rem, 7vw, 6rem);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  top: -13rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  background: rgba(246, 196, 83, 0.13);
}

.hero::after {
  bottom: -14rem;
  left: -12rem;
  width: 30rem;
  height: 30rem;
  background: rgba(169, 94, 22, 0.09);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 2px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-weight: 850;
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 840px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  letter-spacing: -0.045em;
}

h1 span,
h2 span {
  color: var(--gold);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.14rem, 2.2vw, 1.35rem);
}

p,
ul,
ol {
  margin-top: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: #ded3c1;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 196, 83, 0.6);
  background: rgba(246, 196, 83, 0.08);
  color: var(--text);
}

.button-primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-strong), #d99b2b);
  color: #1a0f00;
  box-shadow: 0 12px 32px rgba(219, 157, 42, 0.22);
}

.button-primary:hover {
  background: linear-gradient(135deg, #fff1ad, var(--gold));
  color: #120900;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 1.35rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  list-style: none;
}

.hero-meta li::before {
  margin-right: 0.45rem;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.hero-visual {
  position: relative;
  justify-self: center;
}

.hero-visual::before {
  position: absolute;
  inset: 12% 4%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(246, 196, 83, 0.2);
  content: "";
  filter: blur(40px);
}

.hero-logo {
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.44));
}

.quick-answer {
  position: relative;
  z-index: 2;
  margin-top: -1.6rem;
}

.answer-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(32, 24, 15, 0.96), rgba(17, 14, 10, 0.98));
  box-shadow: var(--shadow);
}

.answer-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  background: rgba(246, 196, 83, 0.09);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
}

.answer-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.answer-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-soft {
  border-block: 1px solid rgba(246, 196, 83, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(246, 196, 83, 0.025));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.prose p,
.prose li {
  color: #d8ccba;
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.55rem;
}

.toc,
.fact-card,
.notice,
.step,
.game-card,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc,
.fact-card {
  padding: 1.3rem;
}

.toc {
  position: sticky;
  top: 96px;
}

.toc h2 {
  margin-bottom: 0.8rem;
  font-size: 1.08rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc li + li {
  margin-top: 0.4rem;
}

.toc a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold-strong);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.fact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold-strong);
  overflow-wrap: anywhere;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: auto;
}

.media-frame figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.step {
  padding: 1.3rem;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-strong), #c78720);
  color: #1b1000;
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  padding: 1.15rem 1.3rem;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.08), var(--surface));
}

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

.notice-warning {
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(255, 140, 122, 0.08), var(--surface));
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.game-card {
  padding: 1.35rem;
}

.game-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 14px;
  background: rgba(246, 196, 83, 0.1);
  color: var(--gold);
  font-size: 1.45rem;
}

.game-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.security-list li::before {
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  color: var(--success);
  content: "✓";
  font-size: 1.1rem;
  font-weight: 900;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding: 0 1.2rem;
}

.faq summary {
  position: relative;
  padding: 1.1rem 2rem 1.1rem 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  list-style: none;
}

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

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--gold);
  content: "+";
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.editorial {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #070605;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding: 2.7rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  width: 76px;
  height: 68px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #9f9585;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 88px;
}

@media (max-width: 900px) {
  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-wrap {
    text-align: center;
  }

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

  .hero-meta {
    justify-content: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    width: min(48vw, 220px);
  }

  .toc {
    position: static;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  body {
    font-size: 0.97rem;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .nav-wrap {
    min-height: 64px;
  }

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

  .brand span {
    font-size: 0.92rem;
  }

  .main-nav .nav-cta {
    margin: 0;
    padding: 0.58rem 0.82rem;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .quick-launch {
    padding-top: 0.55rem;
  }

  .quick-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    padding: 0.5rem;
    border-radius: 16px;
  }

  .quick-action {
    min-height: 48px;
    gap: 0.42rem;
    padding: 0.55rem 0.4rem;
    border-radius: 12px;
    font-size: 0.79rem;
  }

  .quick-action-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    border-radius: 7px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.15rem);
  }

  .answer-card {
    grid-template-columns: 1fr;
  }

  .facts,
  .screenshots,
  .security-list {
    grid-template-columns: 1fr;
  }

  .download-actions .button,
  .quick-launch .button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #ede4d2;
    --line: rgba(255, 220, 123, 0.6);
  }
}

@media print {
  .site-header,
  .age-bar,
  .quick-launch,
  .download-actions,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  * {
    color: #111 !important;
    box-shadow: none !important;
  }
}
