/* Svetozar Skalper Corporation — the club. Brand tokens match the org profile and the central README. */

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/Orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --void: #0d0810;
  --ink: #0b0f1a;
  --panel: #1b2139;
  --chrome: #1b1530;
  --cyan: #3df2ff;
  --violet: #8040ff;
  --magenta: #ff4fc0;
  --amber: #ffb347;
  --gold: #fae21b;
  --steel: #9aa3b5;
  --text: #e1e4eb;
  --soft: #c8cbe1;
  --line: rgba(154, 163, 181, 0.18);
  --holo: linear-gradient(115deg, var(--cyan) 0%, var(--violet) 38%, var(--magenta) 72%, var(--amber) 100%);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --display: "Orbitron", var(--mono);
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --rail: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 1rem/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* The brand wash: two quiet glows that stay put while the floors scroll past. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 8% 0%, rgba(61, 242, 255, 0.07), transparent 70%),
    radial-gradient(50vw 50vh at 100% 100%, rgba(255, 79, 192, 0.07), transparent 70%),
    radial-gradient(40vw 40vh at 85% 15%, rgba(128, 64, 255, 0.08), transparent 70%);
}

/* The haze canvas (site.js) floats between the brand wash and the floors. */
.haze {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet); color: var(--text); }
code { font-family: var(--mono); font-size: 0.92em; color: var(--soft); }
strong { color: var(--text); }
.dim { color: var(--steel); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 0.6em 1em;
  background: var(--cyan);
  color: var(--void);
  border-radius: 8px;
}
.skip:focus { top: 12px; }

main { padding-inline: var(--gutter); padding-right: calc(var(--gutter) + var(--rail)); }
main > * { max-width: 1120px; margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.35em;
  border: 1px solid rgba(154, 163, 181, 0.45);
  border-radius: 999px;
  background: rgba(27, 33, 57, 0.6);
  color: var(--text);
  font: 600 0.95rem/1 var(--mono);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--cyan); color: var(--text); }
.btn--holo { border: 0; background: var(--holo); color: var(--void); font-weight: 700; }
.btn--holo:hover { color: var(--void); filter: brightness(1.12); }
.btn[aria-pressed="true"] { border-color: var(--magenta); box-shadow: 0 0 18px rgba(255, 79, 192, 0.35); }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* ── Elevator ────────────────────────────────────────────────────────────── */

.elevator {
  position: fixed;
  z-index: 10;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}
.elevator__display {
  margin: 0;
  width: 48px;
  padding: 6px 0;
  border-radius: 8px;
  background: #05060a;
  box-shadow: inset 0 0 0 1px rgba(61, 242, 255, 0.25);
  text-align: center;
  font: 800 1rem/1 var(--display);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(61, 242, 255, 0.8);
}
.elevator__buttons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.elevator__buttons a {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(154, 163, 181, 0.35);
  color: var(--steel);
  text-decoration: none;
  font: 700 0.62rem/1 var(--display);
}
.elevator__buttons a span {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  padding: 0.35em 0.7em;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: 500 0.8rem/1 var(--mono);
  opacity: 0;
  pointer-events: none;
}
.elevator__buttons a:hover span,
.elevator__buttons a:focus-visible span { opacity: 1; }
.elevator__buttons a:hover { color: var(--text); border-color: var(--text); }
.elevator__buttons a[aria-current="true"] {
  color: var(--void);
  border-color: transparent;
  background: var(--holo);
  box-shadow: 0 0 14px rgba(128, 64, 255, 0.55);
}

/* ── Door ────────────────────────────────────────────────────────────────── */

.door {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px 64px;
}
.door__title { margin: 0 auto 8px; max-width: 900px; width: 100%; }
.door__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.door__diamond { margin: 0; justify-self: center; }
.door__diamond img {
  max-height: min(56vh, 520px);
  width: auto;
  filter: drop-shadow(0 0 48px rgba(128, 64, 255, 0.45)) drop-shadow(0 0 120px rgba(61, 242, 255, 0.18));
}
.door__left { min-width: 0; }
.door__copy { max-width: 64ch; margin-top: clamp(20px, 3.5vh, 36px); }
.door__copy p { margin: 0.6em 0 0; color: var(--soft); }
.door__copy .door__street { margin-top: 0.35em; color: var(--amber); font-weight: 700; }
.door__vip {
  font: 800 clamp(1.1rem, 2.2vw, 1.45rem)/1.35 var(--display);
  letter-spacing: 0.02em;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Terminals ───────────────────────────────────────────────────────────── */

.terminal {
  border: 1px solid rgba(154, 163, 181, 0.25);
  border-radius: var(--radius);
  background: rgba(11, 15, 26, 0.92);
  box-shadow: 0 0 0 1px rgba(128, 64, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 0 clamp(16px, 2.5vw, 28px) clamp(18px, 2.5vw, 26px);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 calc(-1 * clamp(16px, 2.5vw, 28px)) 18px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.82rem;
}
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.terminal__bar span:nth-child(2) { background: var(--violet); }
.terminal__bar span:nth-child(3) { background: var(--magenta); margin-right: 8px; }
.prompt { color: var(--steel); margin-right: 0.6ch; }

.terminal__lines { list-style: none; margin: 0; padding: 0; font-size: clamp(0.92rem, 1.4vw, 1.05rem); }
.terminal__lines li { min-height: 1.7em; }
.terminal__lines li:not(.cmd):not(.granted):not(.welcome)::before { content: "› "; color: var(--violet); }
.terminal__lines .cmd { color: var(--text); font-weight: 700; margin-bottom: 0.6em; }
.terminal__lines .dim { display: inline-block; min-width: 12ch; }
.terminal__lines .ok { color: var(--cyan); font-weight: 700; }
.terminal__lines .granted { margin-top: 0.6em; color: var(--gold); font-weight: 700; }
.terminal__lines .welcome { color: var(--cyan); }
/* While the handshake types, unrevealed lines keep their space so nothing jumps. */
.is-typing li { visibility: hidden; }
.is-typing li.is-shown { visibility: visible; }
.is-typing li.is-current::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Floors ──────────────────────────────────────────────────────────────── */

.floor { padding-block: clamp(72px, 12vh, 136px); border-top: 1px solid var(--line); }
.floor__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(18px, 3vw, 36px);
  align-items: end;
  margin-bottom: clamp(28px, 5vh, 52px);
}
.floor__code {
  grid-row: span 2;
  font: 900 clamp(3rem, 8vw, 6rem)/0.85 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(154, 163, 181, 0.55);
}
.holo {
  margin: 0;
  font: 800 clamp(1.9rem, 4.6vw, 3.3rem)/1.05 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(128, 64, 255, 0.35));
}
.floor__lede { grid-column: 2; margin: 0.6em 0 0; max-width: 64ch; color: var(--soft); }
.aside, .note { color: var(--steel); max-width: 72ch; }
.note { font-size: 0.86rem; }

.ticks { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 0.7em; }
.ticks li { position: relative; padding-left: 1.6em; color: var(--soft); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 0.55em;
  height: 0.55em;
  transform: rotate(45deg);
  background: var(--holo);
}

/* Lobby: the charter */
.charter { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2.4vh, 22px); }
.charter li {
  position: relative;
  padding-left: 1.4em;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.4;
  max-width: 48ch;
}
.charter li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5em;
  height: 0.5em;
  transform: rotate(45deg);
  border: 1.5px solid var(--cyan);
}
.charter__shroom { color: var(--amber); font-weight: 700; }
.charter__shroom::before { border-color: var(--magenta) !important; }
.shrooms { display: inline-block; white-space: nowrap; }
.charter__shroom:hover .shrooms { animation: wobble 1.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

.trailer { margin: clamp(40px, 7vh, 72px) 0 0; }
.trailer img, .case__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(128, 64, 255, 0.35);
  box-shadow: 0 0 60px rgba(128, 64, 255, 0.18);
}
figcaption { margin-top: 12px; color: var(--steel); font-size: 0.86rem; }

/* B1: membership passes */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.vip {
  --c: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--c) 65%, transparent);
  background:
    linear-gradient(115deg, transparent 28%, rgba(61, 242, 255, 0.1) 44%, rgba(255, 79, 192, 0.1) 56%, transparent 72%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--panel)), var(--ink) 75%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--c) 18%, transparent);
}
.vip--violet { --c: var(--violet); }
.vip--amber { --c: var(--amber); }
.vip--magenta { --c: var(--magenta); }
/* The chip on every pass. */
.vip::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 20px;
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(13, 8, 16, 0.35) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 30%, rgba(13, 8, 16, 0.35) 30% 38%, transparent 38% 62%, rgba(13, 8, 16, 0.35) 62% 70%, transparent 70%),
    linear-gradient(135deg, #ffe08a, var(--amber));
}
.vip__sigil { margin: 0; font-size: 2.6rem; line-height: 1; }
.vip__class { margin: 18px 0 14px; font: 800 1.3rem/1.1 var(--display); letter-spacing: 0.05em; color: var(--c); text-transform: uppercase; }
.vip dl { margin: 0; display: grid; gap: 4px; }
.vip dt { color: var(--steel); font-size: 0.8rem; margin-top: 8px; }
.vip dd { margin: 0; font-weight: 700; }
.vip__number { margin: auto 0 0; padding-top: 18px; color: var(--steel); letter-spacing: 0.14em; font-size: 0.85rem; }

/* B2: the arsenal listing */
.ls__cmd { margin: 0 0 12px; font-weight: 700; }
.ls { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.ls li { display: grid; grid-template-columns: 12ch 19ch 1fr; gap: 1.5ch; color: var(--soft); }
.ls__perm { color: var(--steel); }
.ls__name { color: var(--cyan); font-weight: 700; }
.ls__name--red { color: var(--magenta); }

.sub { margin: clamp(48px, 8vh, 80px) 0 18px; font: 800 clamp(1.2rem, 2.4vw, 1.6rem)/1.2 var(--display); letter-spacing: 0.04em; color: var(--text); }
.toml__table { margin: 0 0 8px; color: var(--violet); font-weight: 700; }
.toml { margin: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.toml div { display: grid; grid-template-columns: 17ch 1fr; gap: 1.5ch; }
.toml dt { color: var(--cyan); font-weight: 700; }
.toml dd { margin: 0; color: var(--amber); }
.toml dd::before { content: "= "; color: var(--steel); }
.toml .toml__hot { color: var(--magenta); font-weight: 700; }

.warning {
  margin: 28px 0 0;
  padding: 14px 18px;
  max-width: 80ch;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 179, 71, 0.08);
  color: var(--soft);
}

/* B3: the case file */
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.case__media { margin: 0; position: sticky; top: 24px; }
.case__title { margin: 0; font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.case__tag { margin: 10px 0 14px; color: var(--cyan); font-weight: 700; }
.case__body > p { color: var(--soft); }
.code {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink);
  overflow-x: auto;
  font-size: 0.85rem;
}

/* B4: the casino */
.casino { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.house { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.house li { padding-left: 2em; position: relative; color: var(--soft); }
.house li::before { content: "♦"; position: absolute; left: 0.2em; color: var(--magenta); }
.house li:nth-child(2n)::before { content: "♠"; color: var(--cyan); }
.house .actions { margin-top: 0.9em; }
.coin {
  position: fixed;
  top: -64px;
  z-index: 30;
  pointer-events: none;
  font: 800 28px/1 system-ui, sans-serif;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.85);
  will-change: transform;
  animation: fall var(--dur, 2.4s) cubic-bezier(0.35, 0.05, 0.75, 1) var(--delay, 0s) forwards;
}
@keyframes fall { to { transform: translateY(calc(100vh + 140px)) rotate(var(--spin, 360deg)); } }
.dice__rule { margin: 0; color: var(--soft); }
.dice__rule b { color: var(--amber); }
.dice__result { margin: 14px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
#dice-roll { font: 900 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); color: var(--text); min-width: 4.2ch; }
.dice__verdict { font-weight: 700; color: var(--steel); }
.dice__verdict.win { color: var(--cyan); }
.dice__verdict.lose { color: var(--magenta); }
.dice__chips { margin: 0; color: var(--soft); }
.dice__chips b { color: var(--gold); }
.dice__seeds { display: grid; grid-template-columns: 16ch 1fr; gap: 6px 12px; margin: 18px 0 0; font-size: 0.85rem; }
.dice__seeds dt { color: var(--steel); }
.dice__seeds dd { margin: 0; word-break: break-all; color: var(--soft); }
.dice__seeds input {
  width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(154, 163, 181, 0.4);
  background: #05060a;
  color: var(--text);
  font: inherit;
}

.parrot {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(48px, 8vh, 88px);
}
.parrot img { width: 100%; max-width: 540px; filter: drop-shadow(0 0 40px rgba(128, 64, 255, 0.35)); }
.parrot__copy .sub { margin-top: 0; }
.parrot__copy p { color: var(--soft); max-width: 46ch; }
.parrot__copy .parrot__word {
  margin: 0.4em 0;
  font: 900 clamp(2rem, 5vw, 3.4rem)/1.05 var(--display);
  letter-spacing: 0.03em;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 79, 192, 0.35));
}

/* B5: the flyer */
.flyer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 22px;
  border: 1px solid rgba(255, 79, 192, 0.35);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(128, 64, 255, 0.28), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, rgba(255, 79, 192, 0.22), transparent 60%),
    var(--ink);
}
.flyer__tonight { margin: 0 0 12px; color: var(--amber); font: 700 1rem/1 var(--display); letter-spacing: 0.08em; }
.lineup { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; }
.lineup li { font-size: clamp(1rem, 2vw, 1.35rem); color: var(--soft); margin-top: 0.35em; }
.lineup li:first-child {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lineup li:nth-child(2) { font-size: clamp(1.3rem, 3vw, 2rem); color: var(--text); }
.lineup .dim { font-family: var(--mono); font-weight: 400; text-transform: none; font-size: 0.75em; letter-spacing: 0; }
.flyer__door dl { margin: 0; display: grid; gap: 4px; }
.flyer__door dt { color: var(--steel); font-size: 0.82rem; margin-top: 10px; }
.flyer__door dd { margin: 0; font-weight: 700; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 22px; }
.eq i {
  flex: 1;
  height: 12%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, var(--violet), var(--magenta), var(--amber));
  opacity: 0.85;
  transform-origin: bottom;
}
.eq.is-on i { animation: eq var(--d, 0.9s) ease-in-out infinite alternate; }
@keyframes eq { from { height: 12%; } to { height: var(--h, 80%); } }

/* B6: the garden */
.garden__statement { color: var(--amber) !important; font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.garden { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.garden__copy > p:first-child { margin-top: 0; color: var(--soft); }
.soil canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 420;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 179, 71, 0.3);
  background: radial-gradient(80% 80% at 50% 100%, rgba(255, 179, 71, 0.08), transparent 70%), #07080e;
  cursor: crosshair;
  touch-action: manipulation;
}

/* B7: the confessional */
.confess { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.diff {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink);
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.8;
}
.diff code { color: inherit; }
.del { color: var(--magenta); }
.add { color: var(--cyan); }
.confess .ticks { margin: 0; }

/* B8: the plaque */
.plaque {
  margin: 0;
  padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(56px, 7vw, 92px);
  max-width: 860px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--holo) border-box;
  counter-reset: rule;
  list-style: none;
}
.plaque li { counter-increment: rule; position: relative; padding-block: 0.55em; font-size: clamp(1rem, 1.9vw, 1.2rem); border-bottom: 1px solid var(--line); }
.plaque li:last-child { border-bottom: 0; }
.plaque li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: calc(-1 * clamp(40px, 5vw, 62px));
  top: 0.62em;
  font: 800 0.95rem/1 var(--display);
  color: var(--amber);
}

/* B10: the Skalper Team */
.crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.member {
  --c: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 15%, var(--panel)), var(--ink) 72%);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c) 16%, transparent);
  overflow: hidden;
}
.member--asame { --c: var(--magenta); }
.member__portrait {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 320px;
  padding: 26px 24px 18px;
  background:
    radial-gradient(75% 65% at 50% 108%, color-mix(in srgb, var(--c) 34%, transparent), transparent 72%),
    repeating-linear-gradient(0deg, rgba(154, 163, 181, 0.05) 0 1px, transparent 1px 26px),
    #07080e;
}
.member__portrait img { max-height: min(46vh, 420px); width: auto; filter: drop-shadow(0 0 34px color-mix(in srgb, var(--c) 55%, transparent)); }
.member__portrait figcaption { margin: 0; color: var(--steel); font-size: 0.78rem; letter-spacing: 0.04em; }
/* The party favours: mushrooms, pills, cocktails and sparkle drifting around the crew. */
.party { position: absolute; inset: 0; pointer-events: none; }
.party i {
  position: absolute;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  line-height: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 75%, transparent));
  animation: party-bob 4.5s ease-in-out infinite;
}
.party i:nth-child(1) { top: 5%; left: 7%; animation-delay: 0s; }
.party i:nth-child(2) { top: 16%; right: 8%; animation-delay: 0.6s; }
.party i:nth-child(3) { top: 42%; left: 3%; animation-delay: 1.1s; }
.party i:nth-child(4) { top: 33%; right: 3%; animation-delay: 1.6s; }
.party i:nth-child(5) { bottom: 27%; left: 6%; animation-delay: 0.9s; }
.party i:nth-child(6) { bottom: 31%; right: 6%; animation-delay: 1.3s; }
.party i:nth-child(7) { bottom: 9%; left: 15%; animation-delay: 0.35s; }
.party i:nth-child(8) { bottom: 7%; right: 15%; animation-delay: 1.8s; }
@keyframes party-bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
.member__body { padding: 22px 24px 26px; }
.member__no { margin: 0; color: var(--steel); font: 700 0.78rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
.member__name {
  margin: 8px 0 2px;
  font: 800 clamp(1.5rem, 3vw, 2.05rem)/1.05 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.member__role { margin: 0 0 10px; color: var(--c); font-weight: 700; }
.member__body p { color: var(--soft); }
.member dl { margin: 14px 0 0; display: grid; gap: 4px; }
.member dt { color: var(--steel); font-size: 0.8rem; margin-top: 8px; }
.member dd { margin: 0; font-weight: 700; }

/* X: the exit */
.exit { text-align: center; padding-block: clamp(72px, 12vh, 136px) 48px; border-top: 1px solid var(--line); }
.exit__logo { width: min(560px, 100%); margin: 0 auto 8px; }
.exit__title { margin: 0; font: 800 clamp(1.3rem, 3vw, 2rem)/1.2 var(--display); letter-spacing: 0.03em; }
.exit p { color: var(--soft); }
.mail {
  font: 800 clamp(1.2rem, 3.2vw, 2rem)/1.2 var(--display);
  letter-spacing: 0.02em;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  word-break: break-word;
}
.mail:hover { filter: brightness(1.2); }
.exit .exit__catch { margin: 1.6em 0 0; font: 800 clamp(1.2rem, 2.6vw, 1.7rem)/1.2 var(--display); color: var(--amber); }
.exit .exit__sign { margin: 0.4em 0 0; color: var(--steel); letter-spacing: 0.14em; font-size: 0.9rem; }

.foot { padding: 32px var(--gutter) 48px; text-align: center; color: var(--steel); font-size: 0.85rem; border-top: 1px solid var(--line); }
.foot p { margin: 0.4em 0; }

/* ── Photo backdrops ─────────────────────────────────────────────────────── */
/* A few neon renders bleeding behind selected floors. Always dimmed and graded
   so the copy stays legible and nothing leaves the brand. */
.door, .floor, .exit { position: relative; }
.backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  filter: saturate(1.15) contrast(1.05);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 66% at 50% 46%, transparent 0%, rgba(13, 8, 16, 0.74) 66%, var(--void) 100%),
    linear-gradient(180deg, var(--void), transparent 16% 84%, var(--void));
}
.door > :not(.backdrop), .floor > :not(.backdrop), .exit > :not(.backdrop) { position: relative; z-index: 1; }

/* ── The always-on GitHub badge ──────────────────────────────────────────── */

/* The org profile, pinned top-right and lit by the brand: never scrolls away. */
.gh-badge {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(rgba(11, 15, 26, 0.86), rgba(11, 15, 26, 0.86)) padding-box, var(--holo) border-box;
  box-shadow: 0 0 22px rgba(128, 64, 255, 0.35), 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gh-badge:hover,
.gh-badge:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(61, 242, 255, 0.5), 0 14px 36px rgba(0, 0, 0, 0.5);
}
.gh-badge__mark { flex: none; color: var(--cyan); transition: color 0.18s ease; }
.gh-badge:hover .gh-badge__mark { color: var(--text); }
.gh-badge__label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.gh-badge__kicker {
  font: 800 0.6rem/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gh-badge__handle { font: 500 0.72rem/1.25 var(--mono); color: var(--soft); white-space: nowrap; }

@media (max-width: 860px) {
  .gh-badge__handle { display: none; }
}

@media (max-width: 520px) {
  .gh-badge { top: 12px; right: 12px; padding: 8px 12px; }
  .gh-badge__kicker { font-size: 0.56rem; }
}

/* ── Smaller screens ─────────────────────────────────────────────────────── */

@media (min-width: 1100px) {
  :root { --rail: 64px; }
}

@media (max-width: 1099px) {
  .elevator {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    border-radius: 0;
    border-width: 1px 0 0;
    padding: 8px 12px;
  }
  .elevator__display { flex: none; }
  .elevator__buttons { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .elevator__buttons a { flex: none; }
  .elevator__buttons a span { display: none; }
  body { padding-bottom: 64px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .door__stage, .case, .casino, .flyer, .garden, .confess, .parrot, .crew { grid-template-columns: minmax(0, 1fr); }
  .door__diamond { order: -1; }
  .door__diamond img { max-height: 34vh; }
  .door__title { margin-bottom: 20px; }
  .case__media { position: static; }
  .ls li { grid-template-columns: 1fr; gap: 0; padding-bottom: 6px; }
  .ls__perm { display: none; }
  .toml div { grid-template-columns: 1fr; gap: 0; padding-bottom: 6px; }
  .floor__head { grid-template-columns: 1fr; }
  .floor__code { grid-row: auto; font-size: 2.6rem; }
  .floor__lede { grid-column: 1; }
}

@media (max-width: 520px) {
  .terminal__lines { font-size: 0.82rem; }
  .terminal__lines .dim { min-width: 11ch; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .vip { min-height: 0; }
  .dice__seeds { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
