* {
  box-sizing:border-box;
}

:root {
  color-scheme:dark;
  --bg:#090b14;
  --panel:#111625;
  --line:#30374b;
  --ink:#f3f5ff;
  --soft:#b6c0d5;
  --cyan:#65e8f7;
  --pink:#ff365f;
  --gold:#ffd065;
  scroll-padding-top:18px;
}

body {
  margin:0;
  background:radial-gradient(ellipse 74% 420px at 48% 8%,#42182988,transparent),linear-gradient(#222b451f 1px,transparent 1px),linear-gradient(90deg,#222b451f 1px,transparent 1px),var(--bg);
  background-size:auto,34px 34px,34px 34px,auto;
  color:var(--ink);
  font:16px/1.6 "Segoe UI",system-ui,sans-serif;
}

.wrap {
  width:min(1144px,calc(100% - 44px));
  margin-inline:auto;
}

a {
  color:var(--cyan);
  text-underline-offset:3px;
}

button,input {
  font:inherit;
}

button {
  cursor:pointer;
}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid var(--gold);
  outline-offset:3px;
}

.skip {
  position:absolute;
  left:8px;
  top:-100px;
  background:#fff;
  color:#111;
  padding:10px;
  z-index:5;
}

.skip:focus {
  top:8px;
}

.top {
  background:#090b13ed;
  border-bottom:1px solid var(--line);
}

.top nav,.top nav>div,.brand,footer .wrap,.bar,.bar>div {
  display:flex;
  align-items:center;
}

.top nav,.bar {
  justify-content:space-between;
  gap:14px;
}

.top nav {
  min-height:59px;
}

.top nav>div {
  gap:clamp(12px,3vw,32px);
}

.top nav a {
  color:var(--soft);
  text-decoration:none;
  font-weight:670;
  font-size:.91rem;
  padding-block:12px;
}

.top nav a:hover,.top nav a[aria-current=page] {
  color:white;
}

.top nav .brand {
  color:white;
  gap:4px;
  font-size:1rem;
  font-weight:900;
  letter-spacing:-.035em;
}

.brand>span:last-child {
  color:var(--cyan);
}

.sigil {
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border:1px solid #ff516d66;
  border-radius:7px;
  background:linear-gradient(140deg,#563749,#201a32);
  color:#ff6680;
  margin-right:5px;
  font-size:18px;
}

h1,h2,h3,p,figure {
  margin:0;
}

h1,h2,h3 {
  line-height:1.12;
  text-wrap:balance;
}

h1 {
  font:900 clamp(37px,5.8vw,69px)/.99 "Arial Black","Segoe UI",system-ui,sans-serif;
  letter-spacing:-.055em;
  text-transform:uppercase;
  margin:.14em 0 .17em;
}

h2 {
  font-size:clamp(26px,3.5vw,42px);
  letter-spacing:-.045em;
  margin:6px 0 22px;
}

h3 {
  font-size:1.22rem;
  margin-bottom:8px;
}

.eyebrow,.tag {
  font:750 .75rem/1.4 Consolas,ui-monospace,monospace;
  color:var(--cyan);
  letter-spacing:.13em;
  text-transform:uppercase;
}

.intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  padding:clamp(19px,3vw,39px) 0 20px;
}

.intro p:not(.eyebrow) {
  color:var(--soft);
  max-width:72ch;
}

.guide-jump,.text-link {
  color:var(--cyan);
  font-weight:700;
}

.guide-jump {
  white-space:nowrap;
}

.cabinet {
  overflow:hidden;
  border-radius:15px;
  padding:8px;
  border:1px solid var(--line);
  background:#101421;
  box-shadow:0 13px 48px #08071188;
}

.lobby {
  isolation:isolate;
  display:grid;
  place-items:center;
  position:relative;
  min-height:240px;
  height:clamp(275px,37vw,448px);
  overflow:hidden;
  border-radius:9px;
  background:#161428;
}

.lobby picture,.lobby picture img,.lobby::after {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.lobby img {
  object-fit:cover;
  object-position:center 49%;
}

.lobby::after {
  content:"";
  background:linear-gradient(0deg,#080a15cc,transparent 63%),radial-gradient(ellipse at center,#0b0e2077,transparent 55%);
  z-index:-1;
}

.lobby picture {
  z-index:-2;
}

.start-panel {
  text-align:center;
  margin-top:clamp(24px,6.5vw,110px);
  padding:15px clamp(14px,3vw,35px) 18px;
  background:#0c0d19ec;
  border:1px solid #b477a255;
  border-radius:11px;
  box-shadow:0 9px 32px #080711a8;
}

.start-panel p {
  color:var(--gold);
  font:700 .73rem/1.35 Consolas,monospace;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:0 0 9px;
}

.launch {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65em;
  min-height:48px;
  border:1px solid #ff7593;
  border-radius:7px;
  padding:10px clamp(12px,2vw,27px);
  background:linear-gradient(110deg,#ba1245,#ed325e);
  box-shadow:0 2px 20px #bd254454;
  color:white;
  font-weight:850;
  text-decoration:none;
}

.launch:hover {
  filter:brightness(1.12);
}

.bar {
  font-size:.88rem;
  padding:4px 4px 10px;
}

.bar>div {
  gap:8px;
}

.bar button,.fallback button {
  color:var(--cyan);
  background:#171e30;
  border:1px solid var(--line);
  border-radius:5px;
  padding:6px 12px;
  min-height:38px;
}

#mount iframe {
  width:100%;
  height:clamp(480px,78svh,1000px);
  display:block;
  border:0;
  background:#090c15;
}

.fallback {
  color:var(--soft);
  padding:8px 4px 0;
  font-size:.83rem;
}

.fallback button {
  border:0;
  background:none;
  text-decoration:underline;
}

#player:fullscreen {
  background:var(--bg);
  display:flex;
  flex-direction:column;
  padding:8px;
}

#player:fullscreen #mount {
  flex:1;
  min-height:0;
}

#player:fullscreen iframe {
  height:100%;
}

[hidden] {
  display:none!important;
}

.section {
  padding:clamp(28px,4vw,58px) 0;
  border-bottom:1px solid var(--line);
}

.section p:not(.eyebrow),.return {
  color:var(--soft);
}

.steps {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,3vw,38px);
}

.steps article {
  padding-top:13px;
  border-top:2px solid #48506c;
}

.steps article:first-child {
  border-color:var(--cyan);
}

.steps article:nth-child(2) {
  border-color:var(--pink);
}

.steps article:nth-child(3) {
  border-color:var(--gold);
}

strong {
  color:var(--ink);
}

.feature {
  display:grid;
  grid-template-columns:1fr 1.05fr;
  align-items:center;
  gap:clamp(18px,4vw,60px);
}

figure {
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:var(--panel);
}

figure img {
  display:block;
  width:100%;
  height:auto;
}

figcaption {
  padding:8px 12px;
  color:var(--soft);
  font-size:.84rem;
}

.text-link {
  display:inline-block;
  padding:12px 0;
}

.faq summary {
  cursor:pointer;
  padding:14px 1px;
  font-weight:700;
}

.faq details {
  border-top:1px solid var(--line);
}

.faq details p {
  margin-bottom:17px;
  max-width:75ch;
}

footer {
  background:#080a11;
  color:var(--soft);
  font-size:.85rem;
}

footer .wrap {
  gap:12px 22px;
  min-height:78px;
  flex-wrap:wrap;
  padding-block:18px;
}

footer a {
  margin-left:auto;
}

footer b {
  color:var(--ink);
}

.return {
  padding:20px 0;
}

.classic-cover {
  height:210px;
  min-height:210px;
}

.classic-cover .start-panel {
  margin:0;
}

.manual {
  max-width:980px;
}

.manual .intro {
  padding-bottom:10px;
}

.manual h1 {
  font-size:clamp(34px,5.7vw,64px);
}

.manual p {
  max-width:75ch;
}

.manual .section p+p {
  margin-top:12px;
}

.manual .subnav {
  display:flex;
  gap:12px 24px;
  flex-wrap:wrap;
  margin:14px 0;
}

.manual .subnav a {
  font-weight:650;
}

.rule-table {
  border-collapse:collapse;
  width:100%;
  margin:16px 0;
  font-size:.94rem;
}

.rule-table th,.rule-table td {
  border-bottom:1px solid var(--line);
  text-align:left;
  padding:11px 7px;
}

.rule-table thead {
  background:#171c2c;
  color:var(--cyan);
}

.plan {
  max-width:610px;
  background:var(--panel);
  padding:18px;
  border:1px solid var(--line);
  border-radius:9px;
  margin:12px 0;
}

.plan label {
  font-weight:700;
}

.plan input {
  display:block;
  width:6rem;
  margin:7px 0 13px;
  padding:8px 10px;
  background:var(--bg);
  color:white;
  border:1px solid #838ca3;
  border-radius:4px;
}

.plan output {
  display:block;
  color:var(--gold);
  font-weight:700;
  min-height:2em;
}

.manual figure {
  max-width:700px;
  margin:18px 0;
}

@media(max-width:700px) {
  .wrap {
    width:calc(100% - 28px);
  }
  .top nav {
    min-height:52px;
  }
  .top nav>div {
    gap:12px;
  }
  .top nav a {
    font-size:.8rem;
  }
  .top nav .brand {
    font-size:.82rem;
  }
  .intro {
    display:block;
    padding:20px 0 15px;
  }
  .intro p:not(.eyebrow) {
    line-height:1.45;
  }
  .guide-jump {
    display:none;
  }
  .lobby {
    min-height:234px;
    height:clamp(234px,62vw,335px);
  }
  .cabinet {
    padding:5px;
  }
  .start-panel {
    padding:11px 14px 13px;
    margin-top:38px;
  }
  .start-panel p {
    font-size:.62rem;
  }
  .launch {
    min-height:45px;
  }
  .feature,.steps {
    grid-template-columns:1fr;
  }
  .feature figure {
    order:2;
  }
  .rule-table {
    font-size:.84rem;
  }
  .rule-table th,.rule-table td {
    padding:9px 4px;
  }
  footer a {
    margin-left:0;
  }
}

@media(max-width:370px) {
  .top nav>div {
    gap:8px;
  }
  .sigil {
    display:none;
  }
  .top nav,.top nav .brand {
    gap:2px;
  }
  .top nav a {
    font-size:.75rem;
  }
}

.chapter {
  max-width:76ch;
  margin-bottom:20px;
}

.case figure {
  max-width:660px;
  margin:14px 0;
}

.case figure img {
  max-width:100%;
}

.reading article {
  margin-top:20px;
  max-width:76ch;
}

.reading article p+p {
  margin-top:10px;
}
