@font-face {
  font-family: Oxanium;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("oxanium.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("outfit.woff2") format("woff2");
}
:root {
  --ink: #121212;
  --gold: #FFC107;
  --blue: #2196F3;
  --card: #1a1a1a;
  --paper: #f3f4f6;
  --muted: #c8c8c8;
}
* { box-sizing: border-box; }
html { background: #121212; }
body {
  margin: 0;
  min-height: 100dvh;
  background: #121212;
  color: #f3f4f6;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
}
body.lock { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .78), rgba(18, 18, 18, .9)),
    url("inkgrain.jpg") center/cover;
}
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }
button, a {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
a[href^="tel"], a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
}
::spelling-error, ::grammar-error {
  text-decoration: none;
  background: transparent;
}
::selection {
  background: #2196F3;
  color: #ffffff;
}
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #2196F3;
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 20;
  background: #2196F3;
  color: #ffffff;
  padding: 8px 10px;
  text-decoration: none;
}
.skip:focus { top: 8px; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .2), rgba(18, 18, 18, .62)),
    #121212 url("goldstorm.jpg") center/cover;
  transition: opacity .4s ease;
}
.splash img { width: 120px; height: 120px; }
.splash-title {
  font-family: Oxanium, Outfit, sans-serif;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  color: #FFC107;
}
.splash-sub { color: #f3f4f6; }
.splash.out { opacity: 0; }
.ritual {
  position: fixed;
  inset: 0;
  z-index: 7;
  overflow: auto;
  padding: calc(64px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)) 20px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .28), rgba(18, 18, 18, .74)),
    #121212 url("goldstorm.jpg") center/cover;
}
.ritual.late {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .5), rgba(18, 18, 18, .82)),
    #121212 url("inkgrain.jpg") center/cover;
}
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #FFC107 0 1.4px, transparent 2px),
    radial-gradient(circle, #2196F3 0 1.2px, transparent 2px);
  background-size: 140px 190px, 190px 230px;
  background-position: 0 0, 40px 70px;
  opacity: .4;
  animation: drift 9s linear infinite;
}
@keyframes drift {
  to { background-position: 0 -190px, 40px -160px; }
}
.charge {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 0;
  z-index: 8;
  background: linear-gradient(#FFC107, #2196F3);
  box-shadow: 0 0 14px #FFC107;
}
.skip-ritual {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  z-index: 8;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(33, 150, 243, .65);
  background: rgba(18, 18, 18, .78);
  color: #2196F3;
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.act {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(18, 18, 18, .8);
  border: 1px solid rgba(255, 193, 7, .32);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: inset 0 0 0 1px rgba(33, 150, 243, .2), 0 16px 40px rgba(0, 0, 0, .35);
}
.kicker {
  font-family: Oxanium, Outfit, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2196F3;
  margin-bottom: 6px;
}
.act h2, #room h2 {
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  color: #FFC107;
  text-transform: uppercase;
}
.act h2 {
  font-size: clamp(28px, 8vw, 44px);
  margin-bottom: 8px;
  max-width: 12ch;
}
.lead { color: #f3f4f6; margin-bottom: 14px; }
.hint { min-height: 1.4em; margin-top: 10px; color: #FFC107; font-weight: 600; }
.bolt-row, .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.giant {
  position: relative;
  min-height: 188px;
  border-radius: 18px;
  border: 1px solid rgba(33, 150, 243, .5);
  background: rgba(18, 18, 18, .72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f3f4f6;
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
}
.giant img { width: 96px; height: 96px; object-fit: contain; }
.giant.flip img { transform: scaleX(-1); }
.giant.on {
  border-color: #FFC107;
  box-shadow: inset 0 0 0 1px #FFC107, 0 0 24px rgba(255, 193, 7, .35);
}
.giant.on::after, .rail-btn.active::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 8px;
  background: #FFC107;
  clip-path: polygon(45% 0, 82% 16%, 28% 31%, 80% 47%, 22% 63%, 74% 79%, 40% 100%, 16% 76%, 52% 58%, 8% 42%, 48% 27%, 14% 12%);
  filter: drop-shadow(0 0 6px #FFC107);
}
.door-panel { text-align: center; }
.door-panel.open { opacity: .9; transform: translateY(-6px); }
.door-panel img { width: 84px; height: 84px; margin: 0 auto 12px; object-fit: contain; }
.cabinet li {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(18, 18, 18, .72);
  border-left: 3px solid #FFC107;
  border-radius: 8px;
  animation: rise .4s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: #FFC107;
  color: #121212;
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn.blue { background: #2196F3; color: #ffffff; }
.btn:disabled { opacity: .45; cursor: default; }
.sp { margin-top: 12px; }
.shake { animation: shake .4s linear; }
@keyframes shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.hall { position: relative; z-index: 1; min-height: 100dvh; }
.shell {
  display: grid;
  grid-template-columns: 4.7rem minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: 8px;
  overflow: auto;
  padding: calc(12px + env(safe-area-inset-top)) 6px calc(12px + env(safe-area-inset-bottom));
  background: rgba(18, 18, 18, .94);
  border-right: 1px solid rgba(255, 193, 7, .32);
}
.rail-btn {
  position: relative;
  min-height: 68px;
  border-radius: 12px;
  color: #c7c7c7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.rail-btn img { width: 36px; height: 28px; object-fit: contain; }
.rail-btn span {
  font-family: Oxanium, Outfit, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rail-btn.active {
  color: #FFC107;
  background: rgba(255, 193, 7, .08);
}
.stage {
  min-width: 0;
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
}
h1 {
  font-family: Oxanium, Outfit, sans-serif;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  color: #FFC107;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.dayline { margin-top: 6px; color: #d0d0d0; font-size: 13px; }
.pips { display: flex; gap: 4px; padding-top: 4px; }
.pip {
  width: 8px;
  height: 18px;
  background: #2a2a2a;
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}
.pip.on {
  background: #FFC107;
  box-shadow: 0 0 8px rgba(255, 193, 7, .75);
}
#room h2 { font-size: 26px; margin-bottom: 6px; }
#room .lead { color: #dedede; }
.hero {
  min-height: 112px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, .3);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .12), rgba(18, 18, 18, .82)),
    url("goldstorm.jpg") center 30%/cover;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFC107;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2196F3;
  box-shadow: 0 0 8px #2196F3;
  animation: ping 1.4s ease-in-out infinite;
}
@keyframes ping {
  50% { transform: scale(.65); opacity: .55; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip, .pin, .linkish, .progress, .tag, .pill, .meter-label, .tele span {
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(33, 150, 243, .5);
  color: #e8e8e8;
  font-size: 11px;
}
.chip.on {
  background: #FFC107;
  border-color: #FFC107;
  color: #121212;
}
.stack { display: grid; gap: 12px; }
.card, .board, .hud, .endcard {
  background: #1a1a1a;
  border: 1px solid rgba(33, 150, 243, .3);
  border-radius: 14px;
}
.card, .board {
  border-left: 3px solid #2196F3;
  padding: 12px;
}
.card.pinned, .board.done {
  border-left-color: #FFC107;
  box-shadow: 0 0 16px rgba(255, 193, 7, .12);
}
.card-top, .meter-label, .hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tag, .pill {
  font-size: 10px;
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, .45);
  border-radius: 999px;
  padding: 3px 8px;
}
.pill { color: #2196F3; border-color: rgba(33, 150, 243, .65); }
.pin {
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 7, .5);
  color: #FFC107;
  font-size: 11px;
}
.card.pinned .pin { background: #FFC107; color: #121212; }
.card h3, .board-title {
  display: block;
  margin: 8px 0 6px;
  font-family: Oxanium, Outfit, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}
.card p, .board .status { display: block; color: #e4e4e4; }
.meter-label {
  margin: 10px 0 6px;
  color: #FFC107;
  font-size: 11px;
}
.track {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .85);
}
.clip { height: 100%; overflow: hidden; }
.clip img {
  width: 240px;
  max-width: none;
  height: 18px;
  object-fit: cover;
}
.board {
  width: 100%;
  text-align: left;
  color: #f3f4f6;
}
.board:disabled { opacity: .48; }
.linkish {
  min-height: 40px;
  width: auto;
  padding: 0 0 8px;
  color: #2196F3;
  text-decoration: none;
}
.slot, .opt, .tele div {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
}
.slot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.slot b, .goodline { color: #FFC107; }
.slot.miss { opacity: .55; }
.slot.got { border-left: 3px solid #FFC107; }
.opts { display: grid; gap: 8px; }
.opt {
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 10px 12px;
  color: #f3f4f6;
}
.opt.got, .opt.good { border-color: #FFC107; box-shadow: inset 3px 0 0 #FFC107; }
.opt.miss { border-color: #2196F3; box-shadow: inset 3px 0 0 #2196F3; }
.opt:disabled { cursor: default; }
.progress { color: #2196F3; font-size: 12px; margin-bottom: 8px; }
.note, .notice {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, .35);
  border-left: 3px solid #2196F3;
  background: rgba(18, 18, 18, .88);
  font-size: 14px;
}
.machine { max-width: 420px; }
.hud, .endcard {
  border-color: rgba(255, 193, 7, .38);
  padding: 16px 14px 14px;
  text-align: center;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .72), 0 0 18px rgba(33, 150, 243, .12);
  background:
    radial-gradient(circle at 50% 0%, rgba(33, 150, 243, .22), transparent 68%),
    #1a1a1a;
}
.hud-top {
  color: #bdbdbd;
  font-size: 11px;
  font-family: Oxanium, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hud-num, .final {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  line-height: .95;
  margin: 6px 0;
  color: #FFC107;
  background: linear-gradient(180deg, #ffffff 0%, #FFC107 46%, #2196F3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hud-num { font-size: 64px; }
.final { font-size: 56px; }
.hud .track { margin-top: 4px; }
.tele {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.tele div { text-align: left; padding: 6px 8px; }
.tele span {
  display: block;
  color: #a3a3a3;
  font-size: 10px;
}
.tele b {
  font-family: Oxanium, Outfit, sans-serif;
  font-size: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.cell {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.cell.gold { background: #FFC107; }
.cell.blue { background: #2196F3; }
.cell.hit {
  box-shadow: 0 0 0 2px #f3f4f6, 0 0 16px rgba(255, 193, 7, .7);
}
.well {
  width: 74%;
  height: 74%;
  border-radius: 12px;
  background: #121212;
  display: grid;
  place-items: center;
}
.well img { width: 78%; height: 78%; object-fit: contain; }
.center { text-align: center; }
.foot { margin-top: 22px; color: #c8c8c8; font-size: 13px; }
.ident {
  margin-top: 4px;
  color: #8d8d8d;
  font-size: 11px;
  letter-spacing: .04em;
}
.noscript {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
}
@media (max-width: 360px) {
  .shell { grid-template-columns: 4.15rem minmax(0, 1fr); }
  .rail-btn span { font-size: 9px; }
  .bolt-row { grid-template-columns: 1fr; }
}
@media (min-width: 880px) {
  .shell { grid-template-columns: 7.25rem minmax(0, 1fr); }
  .stage { max-width: 1080px; padding: 28px 28px 48px; }
  h1 { font-size: 32px; }
  .stack.duo { grid-template-columns: 1fr 1fr; align-items: start; }
  .rail-btn span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
