:root {
  color-scheme: dark;
  --bg: #161220;
  --panel: #21192e;
  --line: #3a2d48;
  --ink: #fbf6ff;
  --muted: #c2b5ce;
  --accent: #d3afff;
  --dark: #1c112b;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
figure,
p,
h1,
h2 {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #f1ceff;
  outline-offset: 4px;
}
.wrap {
  width: min(1240px, calc(100% - 100px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  padding: 12px;
  background: var(--dark);
  z-index: 3;
}
.skip:focus {
  top: 12px;
}
.top {
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.brand img {
  border-radius: 8px;
}
.nav nav {
  display: flex;
  gap: 36px;
  color: var(--muted);
  font-size: 14px;
}
.nav nav a:hover,
.footer a:hover {
  color: var(--accent);
}
.outline {
  border: 1px solid #594468;
  border-radius: 9px;
  background: transparent;
}
.nav > .outline {
  font-size: 14px;
  padding: 10px 15px;
}
.nav span,
.button span {
  margin-left: 6px;
}
.hero {
  min-height: 555px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
  padding-block: 62px;
}
.kicker {
  font:
    700 11px/1.3 ui-monospace,
    monospace;
  color: #dfbfff;
  letter-spacing: 0.16em;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
}
.kicker span,
.hero-art figcaption span {
  width: 7px;
  height: 7px;
  background: #ca91ff;
  box-shadow: 0 0 16px #bd79f7;
  transform: rotate(45deg);
  flex: none;
}
.hero h1 {
  font-size: clamp(53px, 6.9vw, 105px);
  font-weight: 760;
  letter-spacing: -0.085em;
  line-height: 0.94;
}
.hero em {
  font-style: normal;
  color: var(--accent);
}
.intro,
.section-head > p,
.play p:not(.kicker),
.finish p:not(.kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}
.intro {
  max-width: 440px;
  margin-top: 24px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.primary {
  color: #1d112c;
  background: #d8b5ff;
  border: 1px solid #d8b5ff;
}
.primary:hover {
  background: #e8d2ff;
}
.quiet {
  border: 1px solid transparent;
  color: #e9d7f4;
}
.quiet:hover,
.outline:hover {
  border-color: #b783e8;
  background: #38274a;
}
.platforms {
  font-size: 12px;
  color: #b9a8c8;
  margin-top: 20px;
}
.platforms b {
  padding: 0 6px;
  color: #ac78d8;
}
.hero-art {
  height: 410px;
  border: 1px solid #5c4068;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #24172b;
  box-shadow: 0 24px 65px #0a061080;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% center;
}
.hero-art figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #1b1326e8;
  border: 1px solid #6d4d80;
  border-radius: 6px;
  padding: 10px 12px;
  font:
    650 10px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  display: flex;
  gap: 8px;
  align-items: center;
}
.section {
  padding-block: 78px;
  scroll-margin-top: 18px;
}
.editor {
  border-top: 1px solid var(--line);
  padding-top: 52px;
}
.section-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: end;
  margin-bottom: 25px;
}
.section-head p:not(.kicker) {
  max-width: 425px;
}
.section h2,
.finish h2 {
  font-size: clamp(35px, 5vw, 65px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.viewer {
  background: #0f0e16;
  border: 1px solid #554267;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px #0b071180;
}
.view-bar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  background: #282032;
  border-bottom: 1px solid #4c3a5a;
}
.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 7px;
  height: 7px;
  background: #9276a3;
  border-radius: 50%;
}
.lights i:first-child {
  background: #db8dba;
}
.shots {
  display: flex;
  gap: 3px;
  overflow: auto;
}
.shots button,
.expand,
.close {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
  padding: 7px 11px;
  font-size: 13px;
}
.shots button[aria-pressed="true"],
.shots button:hover,
.expand:hover {
  background: #463451;
  color: #fff;
}
.expand {
  font-size: 18px;
}
.viewer > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #0f0e16;
}
.caption {
  margin-top: 13px;
  font-size: 13px;
  color: var(--muted);
}
dialog {
  max-width: min(95vw, 1500px);
  max-height: 95vh;
  padding: 0;
  border: 1px solid #6d4d80;
  border-radius: 12px;
  background: #130e1a;
}
dialog img {
  width: auto;
  max-height: 88vh;
  object-fit: contain;
}
dialog::backdrop {
  background: #0c0815df;
}
.close {
  position: absolute;
  right: 9px;
  top: 8px;
  background: #201428;
  font-size: 22px;
  color: white;
}
.play {
  background: #22182e;
  border-block: 1px solid #3d2c4c;
}
.play-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: center;
}
.play p:not(.kicker) {
  margin-top: 17px;
}
.play .play-status {
  font-size: 13px !important;
}
.board {
  background: #181022;
  border: 1px solid #634675;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 45px #140e1e;
}
.board canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #20182a;
}
.art {
  height: clamp(180px, 24vw, 300px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.art img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 16px 15px #130d20a0);
}
.purple {
  background: radial-gradient(ellipse at 50% 53%, #644382, #30213e 70%);
}
.green {
  background: radial-gradient(ellipse at 50% 52%, #4c644d, #253631 75%);
}
.peach {
  background: radial-gradient(ellipse at 50% 55%, #78516a, #352339 77%);
}
.gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 15px;
  font-weight: 700;
}
.gallery figcaption span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  align-self: center;
}
.finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 37px;
  border: 1px solid #654879;
  border-radius: 18px;
  background: linear-gradient(120deg, #30203e, #21182d);
}
.finish p:not(.kicker) {
  margin-top: 13px;
}
.finish .actions {
  margin-top: 0;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-block: 36px;
  color: var(--muted);
  font-size: 13px;
}
.footer .brand {
  color: var(--ink);
}
@media (max-width: 940px) {
  .wrap {
    width: calc(100% - 60px);
  }
  .hero {
    gap: 25px;
  }
  .hero-art {
    height: 340px;
  }
  .hero h1 {
    font-size: clamp(52px, 7.6vw, 78px);
  }
  .play-grid {
    gap: 28px;
  }
  .finish {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 660px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .nav {
    min-height: 62px;
  }
  .nav nav {
    gap: 13px;
    font-size: 12px;
  }
  .nav > .outline {
    padding: 7px 8px;
    font-size: 12px;
  }
  .nav .brand {
    font-size: 21px;
    gap: 5px;
  }
  .nav .brand img {
    width: 26px;
    height: 26px;
  }
  .hero,
  .section-head,
  .play-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-block: 45px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(56px, 13.5vw, 84px);
  }
  .hero-art {
    height: 250px;
  }
  .section {
    padding-block: 48px;
  }
  .section-head {
    gap: 15px;
  }
  .section-head .kicker {
    margin-bottom: 13px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .art {
    height: 235px;
  }
  .lights {
    display: none;
  }
  .view-bar {
    padding: 0 5px;
    gap: 3px;
    height: 46px;
  }
  .shots button {
    padding: 6px 7px;
    font-size: 11px;
  }
  .finish {
    padding: 24px;
  }
  .footer {
    padding-block: 27px;
  }
  .intro,
  .section-head > p,
  .play p:not(.kicker),
  .finish p:not(.kicker) {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
