:root {
  color-scheme: dark;
  --paper: #111214;
  --surface: #1b1c20;
  --ink: #f8f8fa;
  --muted: #bcbec6;
  --line: #35363d;
  --accent: #bdaaff;
  --accent-wash: #2b2637;
  --action: #6948d5;
  --action-hover: #7655e2;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 380 1rem/1.55 var(--font); }
img { display: block; max-width: 100%; }
figure, dl, dd { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
h1 { max-width: 17ch; font-size: clamp(2.05rem, 3.85vw, 3.75rem); line-height: 1.03; letter-spacing: -.045em; text-wrap: wrap; }
h1 span { display: block; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.12rem; }

.wrap { width: min(1240px, calc(100% - 28px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .5rem .8rem;
  transform: translateY(-180%);
  border-radius: .35rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { background: var(--paper); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; }
.header-inner nav, .footer-inner nav { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: .875rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.header-inner nav {
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.header-inner nav a { padding: 6px clamp(8px, 1.3vw, 12px); border-radius: 999px; font-weight: 600; }
.header-inner nav a:hover { background: var(--accent-wash); color: var(--ink); text-decoration: none; }
.brand { flex: none; display: block; border-radius: 8px; }
.brand img { display: block; width: 34px; height: auto; }
.footer-brand img { width: 86px; mix-blend-mode: screen; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #ffffff36;
  border-radius: 999px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}
.button-primary { background: #46346b; border-color: #a693df; }
.button-primary:hover { background: var(--action); color: var(--ink); }
.button-subtle { background: var(--surface); border-color: var(--line); }
.button-subtle:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4.2vw, 4.4rem);
  padding-block: clamp(1.25rem, 4vw, 2.5rem);
}
.hero-copy p { max-width: 52ch; margin-top: .9rem; color: #e4e0ea; }
.hero-copy strong { color: var(--ink); font-weight: 600; }
.hero-copy .actions { margin-top: 1.1rem; }
.hero-art {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(18rem, 31vw, 24rem);
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 11px;
  background: #3f6660;
}
.hero-art img, .hero-art::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { z-index: -2; object-fit: cover; object-position: center 22%; }
.hero-art::after { z-index: -1; content: ''; background: linear-gradient(0deg, #09090bf5 0%, #09090bd9 23%, #09090b6b 47%, transparent 76%); }
.hero-art figcaption { padding: .85rem 1rem; line-height: 1.4; text-shadow: 0 1px 3px #09090b; }
.hero-art figcaption a { display: block; width: fit-content; color: white; font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.hero-art figcaption a::after { position: absolute; inset: 0; content: ''; }
.hero-art figcaption a:hover { text-decoration: underline; }
.hero-art figcaption a:focus-visible { outline: none; }
.hero-art figcaption a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 11px; }
.hero-art figcaption span { display: block; max-width: 46ch; margin-top: .18rem; color: #f8f5fa; font-size: .875rem; }
.genre-label {
  position: absolute;
  inset: 9px auto auto 9px;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 5px;
  background: #19191de3;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(1.4rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.quick-facts div { padding: .95rem clamp(.68rem, 2.8vw, 1.65rem); }
.quick-facts div + div { border-inline-start: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: .875rem; }
.quick-facts dd { margin-top: .2rem; font-size: clamp(.94rem, 2.1vw, 1.24rem); font-weight: 650; line-height: 1.3; }

.section { border-top: 1px solid var(--line); padding-block: clamp(2.15rem, 5.8vw, 4.35rem); }
.section-heading { max-width: 50rem; margin-bottom: clamp(1.3rem, 3vw, 2rem); }
.section-heading p, .memory-copy p, .import-section p { max-width: 62ch; margin-top: .9rem; }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 600; }

.story-grid, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.story {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-width: 0;
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.story::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #09090bf5 0%, #09090bd9 23%, #09090b6b 47%, transparent 76%);
  content: '';
}
.story img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.story:focus-visible { outline-offset: -3px; }
.story:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.story-copy { min-width: 0; padding: 11px; text-shadow: 0 1px 3px #09090b; }
.story-copy h3 { font-size: 1rem; }
.story-copy p { margin-top: 3px; color: #f3eff7; font-size: .9rem; line-height: 1.4; }

.memory-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.memory-example { display: grid; gap: .75rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--surface); }
.memory-example figcaption { color: var(--muted); font-size: .875rem; }
.message { width: fit-content; max-width: 94%; padding: .65rem .85rem; border-radius: .75rem; background: var(--surface); border: 1px solid var(--line); }
.message.from-player { justify-self: end; background: var(--accent-wash); }
.message span { color: var(--accent); font-size: .875rem; font-weight: 650; }
.message p { color: var(--ink); line-height: 1.43; }

.comparison {
  width: 100%;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-radius: .85rem;
  background: var(--surface);
  text-align: left;
}
.comparison th, .comparison td { padding: .74rem clamp(.72rem, 2.15vw, 1.25rem); vertical-align: top; text-align: left; }
.comparison thead { color: var(--muted); font-size: .875rem; }
.comparison tbody td, .comparison tbody th { border-top: 1px solid var(--line); }
.comparison tbody th { width: 20%; font-weight: 675; }
.comparison td { width: 40%; color: var(--muted); line-height: 1.45; }
.comparison .onlir-row { background: var(--accent-wash); }
.compare-note { margin-top: .95rem; font-size: .875rem; }

.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: .65rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.plan-plus { border-color: var(--accent); background: var(--accent-wash); }
.plan .price { color: var(--ink); font: 600 clamp(1.9rem, 3.8vw, 2.55rem)/1 var(--font); letter-spacing: -.04em; }
.price span { color: var(--muted); font: 1rem/1.3 var(--font); letter-spacing: 0; }
.plan .text-link { margin-top: .2rem; }

.import-section { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.import-section > a { flex: none; }

.faq details { padding-block: .95rem; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 1.035rem; font-weight: 650; }
.faq summary::marker { color: var(--accent); }
.faq details p { max-width: 72ch; margin-top: .58rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { padding-block: 1.25rem; }

@media (min-width: 1024px) {
  .wrap { width: min(1240px, calc(100% - 2 * clamp(26px, 3vw, 48px))); }
  .header-inner { min-height: 64px; }
  .header-inner .brand img { width: 118px; mix-blend-mode: screen; }
  .hero {
    margin: 16px 0 20px;
    padding: clamp(30px, 4vw, 62px);
    border-radius: 18px;
    background: linear-gradient(90deg, #100d18e6, #100d18ad 58%, #100d1880), #181222 url('/discover-worlds.jpg') center / cover;
  }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .hero, .memory-section { grid-template-columns: 1fr; }
  .hero-art img { object-position: center 22%; }
  .hero-art { min-height: clamp(15rem, 62vw, 22rem); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .story { aspect-ratio: 3 / 4; }
  .plans { grid-template-columns: 1fr; }
  .import-section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 505px) {
  .header-inner { gap: .5rem; }
  .header-inner nav { gap: 2px; }
  .comparison thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .comparison tbody, .comparison td, .comparison th, .comparison tr { display: block; width: auto; }
  .comparison tbody th { width: auto; padding-bottom: .4rem; }
  .comparison tbody td { border-top: 0; padding-top: 0; }
  .comparison tbody td + td { margin-top: -.2rem; }
  .comparison tbody td + td::before { content: attr(data-move-label); display: block; margin-bottom: .15rem; color: var(--accent); font-size: .875rem; }
  .comparison tr:first-child { border-radius: .85rem .85rem 0 0; }
  .comparison tr:first-child th { border-top: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .6rem; }
}

@media (max-width: 360px) { h1 { font-size: 1.85rem; } }
