/* ============================================================
   OFÓR — a compound in five rooms
   black · red · gold, under Ṣàngó
   ============================================================ */

:root {
  --ink: #080504;
  --ink-2: #0d0806;
  --ink-3: #160e09;
  --bone: #f0e6d2;
  --bone-dim: rgba(240, 230, 210, 0.64);
  --bone-faint: rgba(240, 230, 210, 0.36);
  --gold: #c9a227;
  --gold-hi: #e8c65a;
  --red: #b3121f;
  --red-hi: #e0442c;
  --line: rgba(201, 162, 39, 0.26);
  --line-soft: rgba(240, 230, 210, 0.1);
  --serif: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-booting { background: var(--ink); }

::selection { background: var(--gold); color: #150e06; }

button { font-family: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--gold-hi);
  outline-offset: 3px;
}

a { color: var(--gold-hi); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- atmosphere ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(125% 105% at 50% 45%, transparent 48%, rgba(4, 2, 1, 0.55) 88%, rgba(4, 2, 1, 0.8) 100%);
}

.lightning {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  opacity: 0;
}

.lightning svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lightning svg path {
  fill: none;
  stroke: rgba(246, 233, 202, 0.9);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  filter: drop-shadow(0 0 14px rgba(232, 198, 90, 0.8));
}

.lightning.is-on { animation: flashWash 0.75s ease-out; }
.lightning.is-on svg path { animation: boltDraw 0.6s ease-out forwards; }

@keyframes flashWash {
  0% { opacity: 0; }
  6% { opacity: 1; background: rgba(246, 233, 202, 0.12); }
  18% { opacity: 0.25; }
  30% { opacity: 0.8; }
  100% { opacity: 0; background: transparent; }
}

@keyframes boltDraw {
  0% { stroke-dashoffset: 1600; opacity: 0; }
  10% { opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 36px 34px;
  background: linear-gradient(180deg, rgba(6, 3, 2, 0.72), rgba(6, 3, 2, 0.28) 55%, transparent);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 1s var(--ease) 0.3s, transform 1s var(--ease) 0.3s;
}

body.is-entered .topbar { opacity: 1; transform: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
  text-decoration: none;
}

.brand svg { width: 19px; height: 19px; color: var(--gold); transition: transform 0.6s var(--ease); }
.brand:hover svg { transform: rotate(-8deg); }

.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.topbar-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--bone-faint);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-room {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-right: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(10, 6, 4, 0.32);
  color: var(--bone-dim);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}

.chip:hover { border-color: var(--line); color: var(--bone); }

.chip--solid { border-color: var(--line); color: var(--bone); }

.chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bone-faint);
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
  transition: background 0.4s, box-shadow 0.4s;
}

.chip[aria-pressed="true"] .chip-dot,
.intro-sound[aria-pressed="true"] .chip-dot {
  background: var(--gold-hi);
  box-shadow: 0 0 10px rgba(232, 198, 90, 0.9);
}

/* ---------- scene ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.stage.is-dragging { cursor: grabbing; }

.scene-pan {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.scene-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.17);
  opacity: 0;
  filter: brightness(0.92) saturate(0.98);
  transition: opacity 1.15s ease, transform 2.4s var(--ease), filter 1.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.scene-layer.is-active {
  opacity: 1;
  transform: scale(1.145);
  filter: brightness(0.95) saturate(1);
}

.scene-warmth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 55%, rgba(179, 18, 31, 0.13), transparent 70%),
    radial-gradient(40% 40% at 82% 18%, rgba(201, 162, 39, 0.08), transparent 70%);
  mix-blend-mode: screen;
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 42%, rgba(5, 3, 2, 0.42) 76%, rgba(5, 3, 2, 0.85) 100%),
    linear-gradient(180deg, rgba(6, 3, 2, 0.62) 0%, transparent 18%, transparent 62%, rgba(6, 3, 2, 0.84) 100%);
}

.embers { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }

.ember {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px 1px rgba(232, 198, 90, 0.65);
  opacity: 0;
  animation: emberRise linear infinite;
}

.ember:nth-child(3n) { background: var(--red-hi); box-shadow: 0 0 8px 1px rgba(224, 68, 44, 0.55); }

@keyframes emberRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
  12% { opacity: 0.85; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(26px, -140px, 0) scale(0.4); }
}

/* ---------- hotspots ---------- */

.hotspots { position: absolute; inset: 0; z-index: 5; }

.hotspot {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bone);
  cursor: pointer;
  opacity: 0;
  animation: spotIn 0.9s var(--ease) forwards;
  animation-delay: calc(360ms + var(--i, 0) * 70ms);
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
}

@keyframes spotIn {
  to { opacity: 1; }
}

.hotspot-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 12px rgba(232, 198, 90, 0.8), 0 0 0 3px rgba(8, 5, 4, 0.35);
  transition: transform 0.4s var(--ease), background 0.4s;
}

.hotspot-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(232, 198, 90, 0.35);
  animation: spotPulse 3.6s ease-out infinite;
}

@keyframes spotPulse {
  0% { transform: scale(0.3); opacity: 0; }
  18% { opacity: 0.9; }
  60%, 100% { transform: scale(1.15); opacity: 0; }
}

.hotspot-label {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 13px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(9, 5, 4, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  backdrop-filter: blur(9px) saturate(1.1);
  transition: border-color 0.45s, background 0.45s, color 0.45s, transform 0.45s var(--ease);
}

.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label {
  border-color: var(--line);
  background: rgba(14, 8, 5, 0.82);
}

.hotspot:hover .hotspot-dot { transform: translate(-50%, -50%) scale(1.35); }

.hotspot-arrow { display: inline-block; color: var(--gold-hi); transition: transform 0.45s var(--ease); }
.hotspot:hover .hotspot-arrow { transform: translateX(3px); }

.hotspot--room .hotspot-dot {
  width: 9px; height: 9px;
  background: transparent;
  border: 1px solid var(--gold-hi);
  box-shadow: 0 0 14px rgba(232, 198, 90, 0.45);
}

.hotspot--room .hotspot-dot::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--gold-hi);
}

.hotspot--cta .hotspot-label {
  padding: 12px 18px;
  transform: translateX(-50%);
  background: var(--gold);
  border-color: var(--gold);
  color: #150e06;
  font-weight: 500;
  letter-spacing: 0.15em;
  box-shadow: 0 10px 40px rgba(201, 162, 39, 0.25), 0 0 0 1px rgba(232, 198, 90, 0.4);
  animation: ctaGlow 4s ease-in-out infinite;
}

.hotspot--cta .hotspot-dot { width: 10px; height: 10px; background: var(--gold-hi); }

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 10px 40px rgba(201, 162, 39, 0.2), 0 0 0 1px rgba(232, 198, 90, 0.35); }
  50% { box-shadow: 0 10px 54px rgba(201, 162, 39, 0.38), 0 0 0 1px rgba(232, 198, 90, 0.6); }
}

.hotspot[data-align="left"] .hotspot-label { left: auto; right: 16px; }

.hotspot[data-align="bottom"] .hotspot-label {
  left: 0;
  right: auto;
  top: auto;
  bottom: 18px;
  transform: translateX(-50%);
}

/* ---------- caption / nav ---------- */

.caption {
  position: fixed;
  left: 36px;
  bottom: 96px;
  z-index: 26;
  max-width: 300px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s var(--ease) 0.7s, transform 1.2s var(--ease) 0.7s;
}

body.is-entered .caption { opacity: 1; transform: none; }

.caption-kicker {
  margin: 0 0 7px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.caption-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(240, 230, 210, 0.74);
}

.caption.is-swapping .caption-kicker,
.caption.is-swapping .caption-line { opacity: 0; transition: opacity 0.25s; }

.rooms {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(8px);
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px;
  background: rgba(8, 5, 4, 0.55);
  border: 1px solid rgba(240, 230, 210, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.5s, transform 1.2s var(--ease) 0.5s;
  max-width: calc(100vw - 24px);
}

body.is-entered .rooms { opacity: 1; transform: translateX(-50%); }

.room-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--bone-faint);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.4s, background 0.4s;
}

.room-link i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.55;
}

.room-link:hover { color: var(--bone); }

.room-link.is-active {
  color: var(--bone);
  background: rgba(201, 162, 39, 0.13);
}

.room-link.is-active i { opacity: 1; }

.look-hint {
  position: fixed;
  right: 36px;
  bottom: 30px;
  z-index: 26;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 230, 210, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 1.2s;
}

.look-hint span { color: var(--gold); }

body.is-entered .look-hint { opacity: 1; }

/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: #050302;
  opacity: 0;
  transition: opacity 1.2s var(--ease), visibility 0s 1.2s;
}

body.is-ready .intro { opacity: 1; }

.intro.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: brightness(0.62) saturate(0.95);
  animation: introDrift 24s ease-out both;
}

@keyframes introDrift {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}

.intro-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 80% at 50% 42%, rgba(5, 3, 2, 0.05) 30%, rgba(5, 3, 2, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 3, 2, 0.6), transparent 28%, transparent 60%, rgba(5, 3, 2, 0.85));
}

.intro-frame {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 44px 28px;
}

.intro-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(240, 230, 210, 0.42);
}

.intro-center {
  align-self: center;
  text-align: center;
  padding-bottom: 4vh;
}

.intro-kicker {
  margin: 0 0 26px;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
}

.intro-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(88px, 17vw, 224px);
  line-height: 0.82;
  letter-spacing: -0.015em;
  color: var(--bone);
  text-shadow: 0 0 90px rgba(201, 162, 39, 0.18);
  opacity: 0;
}

.intro-question {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 32px);
  color: rgba(240, 230, 210, 0.86);
  opacity: 0;
}

.intro-line {
  margin: 12px 0 38px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-faint);
  opacity: 0;
}

.intro-enter {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 17px 26px 17px 30px;
  border: 1px solid var(--line);
  background: rgba(8, 5, 4, 0.32);
  color: var(--bone);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s, gap 0.6s var(--ease);
  opacity: 0;
}

.intro-enter svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.6s var(--ease);
}

.intro-enter:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #150e06;
  gap: 22px;
}

.intro-enter:hover svg { transform: translateX(2px); }

body.is-ready .intro-kicker { animation: introUp 1.1s var(--ease) 0.15s forwards; }
body.is-ready .intro-name { animation: introName 1.4s var(--ease) 0.25s forwards; }
body.is-ready .intro-question { animation: introUp 1.1s var(--ease) 0.55s forwards; }
body.is-ready .intro-line { animation: introUp 1.1s var(--ease) 0.7s forwards; }
body.is-ready .intro-enter { animation: introUp 1.1s var(--ease) 0.85s forwards; }

@keyframes introName {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); letter-spacing: 0.03em; }
  to { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.015em; }
}

@keyframes introUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.intro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 230, 210, 0.36);
}

.intro-sound {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  color: rgba(240, 230, 210, 0.62);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.4s;
}

.intro-sound:hover { color: var(--bone); }
.intro-sound .chip-dot { width: 6px; height: 6px; }

/* ---------- panel ---------- */

.panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.9s;
}

.panel.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: none;
}

.panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 1, 0.52);
  backdrop-filter: blur(12px) saturate(0.8);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.panel.is-open .panel-scrim { opacity: 1; }

.panel-sheet {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(548px, 94vw);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(24, 15, 10, 0.98), rgba(10, 6, 5, 0.99) 55%, rgba(7, 4, 3, 1));
  border-left: 1px solid var(--line);
  box-shadow: -50px 0 100px rgba(0, 0, 0, 0.6);
  transform: translateX(5%);
  opacity: 0;
  transition: transform 0.85s var(--ease), opacity 0.6s ease;
}

.panel.is-open .panel-sheet { transform: none; opacity: 1; }

.panel--wide .panel-sheet { width: min(1020px, 97vw); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 34px 16px;
  flex: none;
}

.panel-kicker {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--bone-faint);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 7px 4px 7px 10px;
  transition: color 0.4s, border-color 0.4s;
}

.panel-close svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.panel-close:hover { color: var(--bone); }

.panel-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 34px 60px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.35) transparent;
}

.panel-body::-webkit-scrollbar { width: 5px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, 0.32); }
.panel-body::-webkit-scrollbar-track { background: transparent; }

.panel-title {
  margin: 4px 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 22ch;
}

.panel--wide .panel-title { max-width: none; font-size: clamp(36px, 4vw, 56px); }

.prose {
  font-size: 15px;
  line-height: 1.78;
  color: var(--bone-dim);
  font-weight: 300;
}

.prose p { margin: 0 0 1.15em; }
.prose strong { color: var(--bone); font-weight: 400; }
.prose a { color: var(--gold-hi); text-underline-offset: 3px; }

.prose h3 {
  margin: 34px 0 12px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: rgba(240, 230, 210, 0.9);
}

.prose em { font-style: italic; }

.text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-hi);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(232, 198, 90, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.text-link:hover { text-decoration-color: var(--gold-hi); }

.seal {
  width: 78px; height: 78px;
  margin: 4px 0 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 70%);
}

.seal svg { width: 34px; height: 34px; }

.artifact {
  width: 100%;
  height: 170px;
  margin: 2px 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(179, 18, 31, 0.25), transparent 70%),
    radial-gradient(50% 60% at 50% 20%, rgba(201, 162, 39, 0.12), transparent 70%),
    #0b0705;
}

.artifact svg { width: 74px; height: 74px; color: var(--gold); filter: drop-shadow(0 0 24px rgba(201, 162, 39, 0.25)); }

.house-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 20px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.house-rule svg { width: 40px; height: 40px; color: var(--gold); flex: none; }
.house-rule span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.house-rule p { margin: 0; font-size: 13px; color: var(--bone-dim); }

.work-art {
  aspect-ratio: 4 / 3;
  margin: 6px 0 24px;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.work-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.art-copper {
  background:
    radial-gradient(42% 36% at 32% 34%, rgba(240, 200, 110, 0.9), rgba(160, 84, 28, 0.55) 42%, transparent 72%),
    repeating-linear-gradient(108deg, rgba(232, 198, 90, 0.22) 0 1px, transparent 1px 7px),
    radial-gradient(120% 120% at 70% 80%, #3a1206, #0e0705 70%);
}

.art-rain {
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(240, 230, 210, 0.5) 22px 23.5px, transparent 23.5px 40px),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(240, 230, 210, 0.14) 46px 47px),
    radial-gradient(100% 100% at 30% 20%, #2b3a5c, #0b0d16 65%);
}

.art-adire {
  background:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 26px, rgba(214, 168, 74, 0.32) 26px 28px, transparent 28px 54px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(240, 230, 210, 0.16) 34px 35px),
    radial-gradient(90% 80% at 70% 30%, #1e3350, #0a0e16 70%);
}

.art-axe {
  background:
    radial-gradient(58% 70% at 24% 66%, rgba(201, 162, 39, 0.75), rgba(120, 20, 24, 0.55) 38%, transparent 68%),
    radial-gradient(50% 62% at 76% 40%, rgba(232, 198, 90, 0.55), rgba(90, 12, 18, 0.6) 42%, transparent 70%),
    conic-gradient(from 200deg at 50% 60%, #160a06, #5a0f14, #c9a227, #1a0b07, #160a06);
}

.work-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.work-meta dt {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.work-meta dd { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--bone-dim); }

.lined-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.lined-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bone-dim);
}

.lined-list li > span {
  flex: none;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.tracklist {
  margin: 26px 0 20px;
  border-top: 1px solid var(--line-soft);
}

.tracklist > div {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.tracklist span { font-size: 9px; letter-spacing: 0.12em; color: var(--gold); }
.tracklist p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--bone); }
.tracklist em { font-style: normal; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); white-space: nowrap; }

.note { font-size: 12px !important; color: var(--bone-faint) !important; font-style: italic; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s, border-color 0.45s, transform 0.45s var(--ease);
}

.btn:hover { border-color: var(--gold); transform: translateY(-1px); }

.btn--solid { background: var(--gold); border-color: var(--gold); color: #150e06; font-weight: 500; }
.btn--solid:hover { background: var(--gold-hi); }

.rules-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
}

.rules-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  background: var(--ink-2);
  font-size: 13px;
  color: var(--bone-dim);
}

.rules-list b {
  padding-left: 14px;
  font-weight: 400;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold);
}

/* index panel */

.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  padding-top: 8px;
}

.index-col h3 {
  margin: 0 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-col h3:not(:first-child) { margin-top: 34px; }

.index-rooms {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-rooms button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s, padding-left 0.45s var(--ease);
}

.index-rooms button span { font-family: var(--sans); font-size: 9px; letter-spacing: 0.16em; color: var(--gold); }
.index-rooms button:hover { color: var(--gold-hi); padding-left: 6px; }

.index-col .lined-list li .text-link { font-size: 13.5px; text-align: left; }

.small { font-size: 13px; line-height: 1.7; color: var(--bone-dim); }
.small a { color: var(--gold-hi); }

.colophon {
  margin: 44px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(240, 230, 210, 0.3);
}

/* ---------- run (banza) ---------- */

.run {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #070403;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s var(--ease), visibility 0s 0.8s;
}

.run.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s var(--ease);
}

.run-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/yard.jpg") center 40% / cover no-repeat;
  filter: brightness(0.34) saturate(0.9) contrast(1.05);
  transform: scale(1.03);
}

.run-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(7, 4, 3, 0.15) 20%, rgba(7, 4, 3, 0.8) 78%),
    linear-gradient(180deg, rgba(7, 4, 3, 0.9), rgba(7, 4, 3, 0.25) 34%, rgba(7, 4, 3, 0.92));
}

.run-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 50%, transparent 45%, rgba(3, 1, 1, 0.7) 100%);
  pointer-events: none;
}

.run-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 60%, rgba(232, 198, 90, 0.55), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
}

.run-flash.is-hit { opacity: 0.35; transition: none; }
.run-flash.is-fault { background: radial-gradient(60% 60% at 50% 60%, rgba(224, 44, 44, 0.6), transparent 70%); opacity: 0.4; transition: none; }

.run-shell {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px clamp(20px, 4vw, 56px) 16px;
  padding-top: max(20px, env(safe-area-inset-top));
}

.run-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}

.run-exit {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--bone-faint);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}

.run-exit:hover { color: var(--bone); }

.run-wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-transform: uppercase;
}

.run-wordmark span { color: var(--gold); letter-spacing: 0.02em; }

.run-best {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.run-best b { color: var(--gold); font-weight: 400; margin-left: 6px; }

.run-body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 14px 0 10px;
}

.run-screen { display: none; width: 100%; }

.run-screen.is-on { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.run-kicker {
  margin: 0 0 18px;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.run-heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 0.96;
  text-align: center;
  letter-spacing: -0.01em;
}

.run-heading em { font-style: italic; color: var(--gold-hi); }

.run-sub {
  max-width: 46ch;
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone-dim);
}

.run-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  margin-top: 34px;
  padding: 20px;
  width: min(700px, 100%);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(240, 230, 210, 0.05), rgba(8, 5, 4, 0.5) 62%);
  backdrop-filter: blur(6px);
}

.run-single {
  position: relative;
  flex: none;
  width: 168px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(232, 198, 90, 0.36);
  background:
    radial-gradient(90% 70% at 50% 22%, rgba(224, 68, 44, 0.22), transparent 62%),
    repeating-radial-gradient(circle at 50% 55%, rgba(240, 230, 210, 0.05) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #140b07, #070403);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.65), 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.run-single::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(232, 198, 90, 0.18);
  pointer-events: none;
}

.run-single-sigil { width: 30px; height: 30px; color: var(--gold); opacity: 0.85; margin-bottom: 2px; }

.run-single-kicker {
  font-size: 7.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.run-single-title {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold-hi);
}

.run-single-meta {
  font-size: 7.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.run-launch-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.run-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #171004;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.run-start i { font-style: normal; transition: transform 0.35s var(--ease); }

.run-start:hover {
  background: transparent;
  color: var(--gold-hi);
  transform: translateY(-2px);
}

.run-start:hover i { transform: translateX(4px); }

.run-controls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.run-controls li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}

.run-controls b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.run-hint {
  margin: 26px 0 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 230, 210, 0.32);
  text-align: center;
}

/* play screen */

.run-screen[data-screen="play"].is-on {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.hud {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: end;
  gap: clamp(16px, 4vw, 44px);
  padding: 0 6px 10px;
  flex: none;
}

.hud-cell { display: flex; flex-direction: column; gap: 3px; }
.hud-cell--right { align-items: flex-end; justify-self: end; }
.hud-cell--lives { align-items: center; justify-self: center; }

.run-lives { display: flex; align-items: center; gap: 8px; min-height: 38px; }

.run-lives i {
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 14px rgba(232, 198, 90, 0.35);
  transition: opacity 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.run-lives i.is-lost {
  opacity: 0.5;
  border-color: rgba(240, 230, 210, 0.18);
  background: transparent;
  box-shadow: none;
}

.hud-label {
  font-size: 8.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.hud-cell b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}

.hud-cell i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--bone-faint);
}

.hud-meter {
  height: 2px;
  background: rgba(240, 230, 210, 0.12);
  flex: none;
  margin-bottom: 10px;
}

.hud-meter i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red-hi));
  transition: width 0.12s linear;
}

.run-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 220px;
  border: 1px solid rgba(232, 198, 90, 0.22);
  border-radius: 4px;
  background: #291b1c;
  overflow: hidden;
  isolation: isolate;
}

.run-scene-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(rgba(17, 10, 14, 0.65), transparent);
  pointer-events: none;
}

.run-scene-top p { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.run-scene-top span { color: #f2d5a0; font-size: 9px; letter-spacing: 0.23em; }
.run-scene-top small { color: #d0b6a5; font-size: 10px; }

.run-pause-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 213, 160, 0.4);
  border-radius: 50%;
  background: rgba(24, 15, 17, 0.65);
  color: #f2d5a0;
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
}

.run-pause-toggle:hover { background: #632b25; }
.run-pause-toggle:focus-visible, .run-canvas-wrap canvas:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -3px; }
.run-resume { margin-top: 16px; border: 1px solid var(--gold); background: var(--gold); color: #17100a; padding: 13px 30px; font-size: 11px; cursor: pointer; }

.run-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(90px, 16vw, 170px);
  color: var(--bone);
  text-shadow: 0 0 80px rgba(232, 198, 90, 0.55);
  pointer-events: none;
  opacity: 0;
}

.countdown.is-on { animation: countPop 0.9s var(--ease); }

@keyframes countPop {
  0% { opacity: 0; transform: scale(0.7); filter: blur(8px); }
  22% { opacity: 1; transform: scale(1); filter: blur(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.06); }
}

.pause {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 3, 2, 0.68);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.pause.is-on { display: flex; }

.pause p { margin: 0; font-family: var(--serif); font-size: clamp(36px, 6vw, 54px); color: var(--bone); }
.pause small { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-faint); }

.run-pad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 10px;
}

.run-pad button {
  border: 1px solid rgba(240, 230, 210, 0.12);
  background: rgba(240, 230, 210, 0.04);
  color: var(--bone-dim);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  padding: 9px 0;
  min-height: 44px;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  touch-action: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.run-pad button:hover,
.run-pad button:active {
  background: rgba(232, 198, 90, 0.14);
  border-color: var(--line);
  color: var(--gold-hi);
}

/* results */

.over-rank {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  text-align: center;
  color: var(--gold-hi);
}

.over-line {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--bone-dim);
  text-align: center;
  max-width: 34ch;
}

.over-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 26px 0 22px;
}

.over-score span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.over-score b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 74px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.over-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.over-stats div {
  background: rgba(8, 5, 4, 0.72);
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  text-align: center;
}

.over-stats span {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.over-stats b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--bone); }

.over-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }

.run-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 230, 210, 0.28);
  flex: none;
}

/* ---------- misc ---------- */

.noscript {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  background: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bone);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .topbar { padding: 20px 22px 26px; }
  .topbar-line { display: none; }
  .topbar-room { display: none; }
  .caption { left: 22px; bottom: 90px; max-width: 240px; }
  .caption-line { font-size: 16px; }
  .look-hint { display: none; }
  .panel-head { padding: 22px 26px 14px; }
  .panel-body { padding: 4px 26px 52px; }
  .index-grid { grid-template-columns: 1fr; gap: 8px; }
  .index-col h3:not(:first-child) { margin-top: 26px; }
}

@media (max-width: 860px) {
  .intro-frame { padding: 24px 24px 22px; }
  .intro-meta { font-size: 8.5px; letter-spacing: 0.18em; }
  .intro-foot { font-size: 8px; letter-spacing: 0.14em; }
  .intro-keys { display: none; }
  .run-shell { padding: 16px 18px 14px; }
  .run-wordmark { font-size: 13px; }
  .run-heading { font-size: clamp(36px, 7vw, 60px); }
  .run-launch { margin-top: 24px; padding: 16px; gap: 20px; }
  .run-single { width: 132px; }
  .run-single-title { font-size: 34px; }
  .house-rule { font-size: 12px; }
  .over-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar { padding: 16px 16px 22px; gap: 10px; }
  .brand-name { font-size: 20px; }
  .chip { padding: 7px 10px; font-size: 8.5px; }
  .caption { display: none; }

  .hotspot-label {
    font-size: 8.5px;
    letter-spacing: 0.11em;
    padding: 6px 8px;
    white-space: nowrap;
    line-height: 1.3;
  }

  .hotspot--cta .hotspot-label { padding: 10px 13px; }

  .hotspot--minor .hotspot-label { display: none; }
  .hotspot--minor .hotspot-dot { width: 5px; height: 5px; opacity: 0.7; }
  .hotspot--minor .hotspot-dot::after { display: none; }

  .rooms { bottom: 12px; padding: 5px; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .rooms::-webkit-scrollbar { display: none; }
  .room-link { padding: 8px 10px; font-size: 8.5px; letter-spacing: 0.1em; gap: 5px; }
  .room-link i { font-size: 7.5px; }

  .intro-frame { padding: 20px 18px 18px; }
  .intro-kicker { margin-bottom: 18px; font-size: 8.5px; letter-spacing: 0.26em; }
  .intro-question { margin-top: 22px; }
  .intro-line { margin: 10px 0 28px; font-size: 9px; letter-spacing: 0.2em; }
  .intro-enter { padding: 15px 20px; font-size: 9px; letter-spacing: 0.18em; }
  .intro-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

  .panel-sheet, .panel--wide .panel-sheet { width: 100vw; border-left: 0; }
  .panel-head { padding: 18px 18px 12px; }
  .panel-body { padding: 2px 18px 44px; }
  .panel-title { font-size: 30px; margin-bottom: 20px; }
  .work-meta { grid-template-columns: 1fr 1fr; }
  .tracklist > div { grid-template-columns: 18px 1fr auto; gap: 10px; }
  .tracklist p { font-size: 16px; }
  .index-rooms button { font-size: 19px; }

  .run-top { gap: 8px; }
  .run-exit { font-size: 8px; letter-spacing: 0.1em; }
  .run-best { display: none; }
  .run-body { padding: 10px 0 8px; }
  .run-heading { font-size: clamp(34px, 10vw, 54px); }
  .run-sub { font-size: 12px; margin-top: 14px; }
  .run-kicker { font-size: 8.5px; margin-bottom: 12px; }
  .run-hint { font-size: 7.5px; letter-spacing: 0.1em; margin-top: 14px; }
  .run-foot { display: none; }

  .run-launch { flex-direction: column; gap: 14px; margin-top: 20px; padding: 16px; }
  .run-single { width: 112px; }
  .run-single-title { font-size: 30px; }
  .run-single-sigil { width: 22px; height: 22px; }
  .run-single-kicker, .run-single-meta { font-size: 6.5px; letter-spacing: 0.2em; }
  .run-launch-side { align-items: center; width: 100%; gap: 12px; }
  .run-start { width: 100%; padding: 14px 18px; }
  .run-controls { justify-content: center; gap: 6px 14px; }
  .run-controls li { font-size: 9px; }
  .run-controls b { font-size: 13px; }

  .hud { gap: 10px; padding-bottom: 8px; grid-template-columns: auto auto auto 1fr; }
  .hud-cell b { font-size: 22px; }
  .hud-cell--right { justify-self: end; }
  .run-lives { min-height: 24px; gap: 6px; }
  .run-lives i { width: 9px; height: 9px; }
  .run-pad button { padding: 8px 0; font-size: 15px; }

  .run-canvas-wrap { min-height: 240px; }
  .over-stats { grid-template-columns: repeat(2, 1fr); }
  .over-score b { font-size: 46px; }
  .over-rank { font-size: 34px; }
}

@media (max-height: 620px) {
  .intro-name { font-size: clamp(64px, 12vw, 120px); }
  .intro-question { margin-top: 18px; }
  .intro-line { margin-bottom: 24px; }
  .house-rule { display: none; }
  .run-heading { font-size: 38px; }
  .run-sub { display: none; }
  .run-launch { margin-top: 12px; padding: 12px; gap: 12px; }
  .run-single { width: 88px; }
  .run-single-title { font-size: 26px; }
  .run-controls { display: none; }
  .run-hint { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .intro-bg, .ember, .hotspot-dot::after { animation: none !important; }
  .hotspot { opacity: 1; }
  .hotspot--cta .hotspot-label { animation: none; }
}
