@font-face {
  font-family: "Russo One";
  src: url("/assets/russo-one.woff2?v=1") format("woff2"), url("/assets/russo-one.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2c1024;
  --muted: #665360;
  --accent: #8b276b;
  --accent-hover: #6f1e55;
  --line: #eadbe5;
  --tint: #fbf0f7;
  --paper: #fff;
  --button-ink: #fff;
  --hero-surface: var(--tint);
  font: 16px/1.55 "Russo One", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5eff7;
  --muted: #d1c3d4;
  --accent: #ffa6e8;
  --accent-hover: #ffc0ef;
  --line: #48354a;
  --tint: #1c1321;
  --paper: #0e0a11;
  --button-ink: #271020;
  --hero-surface: linear-gradient(122deg, #361521, #24172e 82%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; gap: 24px; }
.header-row { min-height: 72px; justify-content: space-between; }
.header-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-row nav a, .brand { color: var(--ink); text-decoration: none; }
.header-row nav a:hover, .contents a:hover { text-decoration: underline; }
.brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 750; white-space: nowrap; }
.brand .mark-dark { display: none; filter: hue-rotate(77deg) saturate(1.24); }
[data-theme="dark"] .brand .mark-light { display: none; }
[data-theme="dark"] .brand .mark-dark { display: block; }
.theme-toggle {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: 1.2rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--tint); }
.button {
  display: inline-block;
  padding: .65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--button-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); color: var(--button-ink); }
.button.outline { background: var(--paper); color: var(--accent); }
.button.outline:hover { background: var(--tint); }

.hero {
  margin: 24px clamp(12px, 2.3vw, 36px) 0;
  border-radius: clamp(20px, 4vw, 52px);
  background: var(--hero-surface);
}
.hero-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  padding-block: clamp(40px, 5vw, 72px);
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; margin: 0; }
h1 { max-width: 12ch; font-size: clamp(2.55rem, 5.3vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.17rem; }
.hero p { max-width: 44ch; margin: 20px 0 26px; font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-world { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.hero-globe-stage { display: grid; width: 100%; max-width: 410px; aspect-ratio: 1; }
.hero-globe-stage > * { grid-area: 1 / 1; }
.hero-globe-poster { width: 100%; height: auto; }
.hero-globe-poster:not([src]) { display: none; }
.hero-globe-stage > noscript:has(> img) { display: contents; }
.hero-globe-stage:has(.hero-globe.is-ready) .hero-globe-poster { visibility: hidden; }
.hero-globe {
  display: block;
  width: 100%;
  max-width: 410px;
  height: auto;
  aspect-ratio: 1;
  justify-self: end;
}
.hero-world .hero-globe { justify-self: center; }
.hero-globe[hidden] { display: none; }
.hero-game { font-size: .92rem; font-weight: 650; }

.guide { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: 56px 72px; }
.contents { position: sticky; top: 28px; display: grid; gap: 9px; border-left: 2px solid var(--line); padding-left: 17px; }
.contents a { color: var(--muted); text-decoration: none; }
.sections > section { scroll-margin-top: 28px; }
.sections > section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
p { color: var(--muted); }
.sections p { max-width: 72ch; }

#connect .connection-setup { --surface: var(--paper); --hover: var(--tint); max-width: 630px; }
#connect .setup-client { min-height: 52px; }
#connect .setup-card { padding: 14px; }
#connect .setup-step > h3 { letter-spacing: 0; }

.device-slider { max-width: 320px; margin-block: 20px; }
.slider-label, .slider-ticks { display: flex; justify-content: space-between; gap: 10px; }
.slider-value, .slider-ticks .active { color: var(--accent); font-weight: 700; }
.device-range { display: block; width: 100%; margin: 9px 0; accent-color: var(--accent); cursor: pointer; }
.slider-ticks { font-size: .88rem; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.plan p { margin: 7px 0 0; font-size: .88rem; }
.plan .price { font-weight: 750; font-size: 1.42rem; color: var(--ink); }
.plan .plan-discount { font-weight: 650; color: var(--accent); }
.plan .button { margin-top: 14px; }
.notice:not(:empty) { padding: 12px 15px; background: var(--tint); border-left: 3px solid var(--accent); }

.steps { padding-left: 24px; }
.steps li { padding: 5px 0 5px 6px; }
.steps li::marker { color: var(--accent); font-weight: 750; }
.steps p { margin: 2px 0 8px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 15px; }
summary { padding-block: 14px; cursor: pointer; font-weight: 650; }
details p { margin-top: 0; }
footer { border-top: 1px solid var(--line); background: var(--tint); }
.footer-row { flex-wrap: wrap; min-height: 84px; padding-block: 20px; font-size: .88rem; }
.footer-row span:first-child { font-weight: 750; }

@media (max-width: 880px) {
  .guide { grid-template-columns: 175px minmax(0, 1fr); gap: 30px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .frame { width: calc(100% - 32px); }
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-block: 10px; }
  .header-row nav { grid-column: 1 / -1; grid-row: 2; gap: 16px; }
  .header-row .button { padding: .45rem .55rem; font-size: .84rem; white-space: nowrap; }
  .hero-row, .guide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { margin-top: 12px; }
  .hero-globe-stage { max-width: 320px; }
  .guide { padding-block: 34px 50px; }
  .contents { position: static; }
}

@media (max-width: 350px) {
  .brand { gap: 4px; font-size: .85rem; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 6px; }
  .theme-toggle { min-width: 36px; }
  .plan-grid { grid-template-columns: 1fr; }
}
