@font-face {
  font-family: "Chakra Petch";
  src: url("./fonts/chakra-petch-latin-700-normal.woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: italic;
  font-weight: 700;
  src: url("./fonts/chakra-petch-latin-700-italic.woff2");
}
@font-face {
  font-family: Jakarta;
  src: url("./fonts/plus-jakarta-sans-latin-400-normal.woff2");
}
@font-face {
  font-family: Jakarta;
  font-weight: 700;
  src: url("./fonts/plus-jakarta-sans-latin-700-normal.woff2");
}
@font-face {
  font-family: Jet;
  src: url("./fonts/jetbrains-mono-latin-500-normal.woff2");
}
:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --surface: #141720;
  --border: #23293a;
  --pink: #ff2a85;
  --cyan: #00f0ff;
  --gold: #ffb800;
  --text: #cbd5e1;
  --mono: Jet, monospace;
  --display: "Chakra Petch", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 15px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 Jakarta,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--cyan);
}
button,
select,
input {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.shell {
  width: min(1240px, calc(100% - 72px));
  margin: auto;
}
header {
  border-bottom: 1px solid var(--border);
  background: #0e1015;
}
.mast {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font: italic 700 26px/1 var(--display);
  letter-spacing: -1.7px;
  white-space: nowrap;
}
.wordmark span {
  color: var(--pink);
}
.wordmark i {
  width: 32px;
  height: 23px;
  background: repeating-linear-gradient(
    110deg,
    var(--pink) 0 5px,
    transparent 6px 9px
  );
  clip-path: polygon(0 0, 100% 0, 65% 100%, 35% 100%);
  margin-right: 7px;
}
.mast nav,
footer nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}
.indie,
.meta,
.tag,
.hud,
.kicker,
.caption,
.crumb,
.rail small,
.table-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.indie {
  margin-left: auto;
  color: #b7c5cf;
}
.indie i,
.meta i {
  display: inline-block;
  background: #5ce6c3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 16px;
}
.page-intro h1 {
  font: 700 clamp(18px, 2.05vw, 30px) / 1.18 var(--display);
  letter-spacing: -0.65px;
  margin: 0;
  color: #fff;
}
.meta {
  color: #b4bdc9;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.cabinet {
  background: var(--surface);
  overflow: hidden;
  border: 1px solid #373a48;
  border-radius: 12px;
}
.screen {
  position: relative;
  background: #101724;
  isolation: isolate;
}
.screen canvas {
  display: block;
  width: 100%;
  height: min(57svh, 560px);
  object-fit: contain;
  background: #111421;
  outline-offset: -4px !important;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(25px, 4vw, 68px);
  background-image:
    linear-gradient(90deg, #10101de8 0%, #10101d9f 26%, transparent 67%),
    var(--art);
  background-size: cover;
  background-position: center;
}
.cover[hidden],
.choices:empty,
.hud:empty,
.touch:empty,
.notice:empty,
[hidden] {
  display: none !important;
}
.kicker,
.tag {
  color: #87fff0;
  font-weight: bold;
  text-transform: uppercase;
}
.kicker:before {
  content: "";
  display: inline-block;
  width: 29px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
}
.cover-title {
  white-space: pre-line;
  text-transform: uppercase;
  font: italic 700 clamp(50px, 6vw, 94px) / 0.91 var(--display);
  letter-spacing: -0.07em;
  margin: 17px 0 12px;
  color: #fff9f2;
  text-shadow: 0 2px 5px #18132255;
}
.cover-title em {
  color: #ff8cb3;
  font-style: inherit;
}
.deck {
  max-width: 365px;
  font-size: 15px;
  color: #eef0f3;
  margin: 0 0 23px;
  text-shadow: 0 2px 3px #15121a;
}
.play,
.copy-result,
.choices button,
.action-link {
  background: var(--pink);
  color: #120c14;
  border: 0;
  border-radius: 5px;
  padding: 13px 21px;
  font: bold 15px var(--display);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.play:before {
  content: "▶";
  font: 14px sans-serif;
}
.play:hover,
.action-link:hover {
  background: #ff78ab;
  color: #170d18;
}
.copy-result {
  background: #c5f5eb;
  margin-left: 8px;
}
.result .cover {
  background: #141726ec;
}
.hud {
  position: absolute;
  left: 8px;
  top: 7px;
  right: 8px;
  pointer-events: none;
  text-align: center;
  color: #bbfff0;
  background: #0e151acb;
  white-space: normal;
  padding: 5px;
  border-radius: 3px;
  letter-spacing: 0;
}
.choices,
.touch,
.rail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.choices,
.touch {
  justify-content: center;
  padding: 8px;
  background: #171d29;
}
.choices button,
.touch button {
  background: #263b43;
  color: #edfffc;
  border: 1px solid #557070;
  font: bold 13px var(--display);
  min-height: 44px;
  padding: 7px 14px;
  border-radius: 5px;
}
.touch {
  display: none;
}
.rail {
  min-height: 51px;
  padding: 4px 15px;
  border-top: 1px solid var(--border);
  background: #161922;
}
.rail .tag {
  margin-right: auto;
  letter-spacing: 0.04em;
  color: #d6dce7;
}
.rail button,
.rail select {
  padding: 7px 8px;
  color: #d6dbe5;
  background: transparent;
  border: 0;
  font: 12px var(--display);
  min-height: 40px;
}
.rail select {
  background: #20242d;
  border-radius: 4px;
}
.rail kbd {
  margin-left: 3px;
}
.notice {
  background: #22343b;
  padding: 5px 14px;
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 15px;
}
.section-head h2,
.article h2,
.trust h1,
.guide h1 {
  font: 700 clamp(25px, 3vw, 41px) / 1.12 var(--display);
  letter-spacing: -0.055em;
  color: #f9f9fc;
  margin: 0;
}
.section-head h2 {
  font-style: italic;
}
.caption {
  color: #a5afbf;
  font-size: 11px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  display: grid;
  grid-template-columns: 37% 1fr;
  align-items: stretch;
  min-height: 98px;
  border: 1px solid var(--border);
  background: #151820;
  border-radius: 8px;
  overflow: hidden;
}
.card:hover {
  border-color: #7e607c;
}
.card img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
}
.card .info {
  padding: 12px 13px;
  align-self: center;
}
.card strong {
  display: block;
  font: 700 19px/1.1 var(--display);
  letter-spacing: -0.6px;
  color: #fff;
}
.card small {
  font: 10px var(--mono);
  color: #9bdece;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.card .go {
  font: 12px var(--mono);
  color: #a7b3bf;
}
.guidelist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 27px;
}
.guidelist a,
.crumb a,
.article a,
.guide a,
.trust a {
  color: #a9f2e6;
}
.guidelist a {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.article,
.guide,
.trust {
  margin: 44px auto;
  max-width: 840px;
}
.article p,
.guide p,
.trust p {
  max-width: 74ch;
}
.article h3,
.guide h2,
.trust h2 {
  font: 700 25px var(--display);
  color: #fff;
}
.article section,
.guide section {
  margin-top: 26px;
}
.article details {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.article summary {
  cursor: pointer;
  font-weight: 700;
  color: #e7f1f0;
}
.article table,
.guide table {
  width: 100%;
  border-collapse: collapse;
  background: #141720;
}
.article th,
.article td,
.guide th,
.guide td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #363b49;
  font-size: 14px;
}
kbd {
  font: 11px var(--mono);
  padding: 2px 5px;
  border: 1px solid #424754;
  border-radius: 3px;
  color: #d5dbe3;
}
.crumb {
  margin-top: 15px;
  color: #93a0af;
}
.guide .action-link {
  color: #1a0c13;
}
.calc {
  padding: 18px;
  background: #17232b;
  border: 1px solid #34505a;
  border-radius: 8px;
}
.calc input {
  max-width: 84px;
  margin: 0 12px 0 5px;
  padding: 5px;
}
.calc output {
  display: block;
  margin-top: 8px;
  color: #87f0d9;
}
.expanded,
.cabinet:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10;
  border: 0;
  border-radius: 0;
  background: #0b0c10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.expanded canvas,
.cabinet:fullscreen canvas {
  height: min(70svh, 56.25vw);
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 34px 0;
  color: #aab5c2;
}
footer nav {
  margin: 22px 0;
  flex-wrap: wrap;
}
footer p {
  font-size: 12px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 20;
  background: white;
  color: #101010;
}
.skip:focus {
  top: 10px;
}
@media (max-width: 940px) {
  .shell {
    width: calc(100% - 32px);
  }
  .mast {
    gap: 26px;
  }
  .indie {
    display: none;
  }
  .page-intro {
    flex-wrap: wrap;
    gap: 5px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail .tag {
    display: none;
  }
}
@media (max-width: 767px) {
  .shell {
    width: calc(100% - 24px);
  }
  .mast {
    height: auto;
    min-height: 60px;
    gap: 9px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 0;
  }
  .mast nav {
    gap: 11px;
    font-size: 11px;
  }
  .mast nav a:first-child {
    display: none;
  }
  .wordmark {
    font-size: 21px;
  }
  .wordmark i {
    width: 23px;
    height: 18px;
  }
  .page-intro {
    padding: 14px 0 11px;
  }
  .page-intro h1 {
    font-size: 19px;
  }
  .meta {
    font-size: 9px;
  }
  .screen canvas {
    height: clamp(215px, 53vw, 380px);
    object-fit: fill;
  }
  .screen:has(.cover:not([hidden])) canvas {
    height: clamp(310px, 84vw, 400px);
  }
  .cover {
    padding: 24px 18px;
    background-position: 65% center;
    justify-content: flex-end;
    background-image:
      linear-gradient(0deg, #10101df2 0%, #10101d65 58%, #10101d11), var(--art);
  }
  .cover-title {
    font-size: 49px;
    margin: 10px 0;
  }
  .deck {
    font-size: 12px;
    max-width: 275px;
    margin-bottom: 14px;
  }
  .kicker {
    font-size: 9px;
  }
  .rail {
    padding: 4px 5px;
    gap: 3px;
    justify-content: space-between;
  }
  .rail select,
  .rail button {
    font-size: 11px;
    padding: 4px;
  }
  .rail kbd {
    display: none;
  }
  .touch:not(:empty) {
    display: flex;
  }
  .touch button {
    flex: 1;
    padding: 5px;
    min-width: 44px;
  }
  .grid {
    gap: 8px;
  }
  .card {
    display: block;
    min-height: 0;
  }
  .card img {
    height: 100px;
    display: block;
    max-height: none;
  }
  .card .info {
    padding: 9px;
  }
  .card strong {
    font-size: 16px;
  }
  .section-head {
    margin: 24px 0 12px;
  }
  .guidelist {
    grid-template-columns: 1fr;
  }
  .article,
  .guide,
  .trust {
    margin: 28px 0;
  }
  .hud {
    font-size: 9px;
    line-height: 1.3;
  }
  .choices {
    gap: 5px;
  }
  .choices button {
    min-height: 44px;
    padding: 6px 9px;
  }
  .indie {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.screen:has(.cover[hidden]) canvas {
  width: min(100%, 101.33svh, 996px);
  height: auto;
  aspect-ratio: 16/9;
  margin: auto;
  object-fit: fill;
}
@media (max-width: 767px) {
  .screen {
    min-height: clamp(310px, 84vw, 400px);
    display: grid;
    align-items: center;
  }
  .screen:has(.cover[hidden]) canvas {
    width: 100%;
  }
  .screen:has(.cover[hidden]) .hud {
    position: absolute;
    top: 2px;
  }
}

.card .info {
  display: block;
}
.house-slot {
  min-height: 90px;
  display: grid;
  place-items: center;
  margin: 160px 0 24px;
  background: var(--surface);
}
