/* Solenthar — a marble run on a pegboard.
   Ink-blue ground, one hot accent, chamfered corners, geometric display type,
   humanist text, monospace readouts. Prefix: me-. */

:root {
  --me-bg: #0a0f17;
  --me-surface: #101824;
  --me-surface-2: #16212f;
  --me-well: #070b11;
  --me-line: #243246;
  --me-line-2: #34465f;
  --me-ink: #eef3f8;
  --me-muted: #a7b6c8;
  --me-hot: #ffdc2e;
  --me-hot-deep: #e6bf00;
  --me-hot-ink: #15120a;
  --me-cool: #46d6e6;
  --me-tan: #ff8a2a;
  --me-cya: #2fc6e0;
  --me-lim: #9be03a;
  --me-vio: #a768ff;
  --me-brass: #d2a84f;
  --me-display: "Futura PT", Futura, "Century Gothic", "Avenir Next", Avenir, "URW Gothic L", "Trebuchet MS", sans-serif;
  --me-text: Seravek, "Gill Sans Nova", "Gill Sans", Ubuntu, Calibri, "DejaVu Sans", "Segoe UI", sans-serif;
  --me-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --me-s1: 4px;
  --me-s2: 8px;
  --me-s3: 12px;
  --me-s4: 16px;
  --me-s5: 24px;
  --me-s6: 32px;
  --me-s7: 48px;
  --me-s8: 64px;
  --me-cut: 10px;
  --me-cut-s: 6px;
  --me-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--me-s5); }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(255, 220, 46, .08), transparent 70%),
    radial-gradient(800px 600px at 100% 110%, rgba(70, 214, 230, .06), transparent 70%),
    var(--me-bg);
  background-attachment: fixed;
  color: var(--me-ink);
  font: 17px/1.55 var(--me-text);
}
body.me-locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--me-hot); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--me-cool); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--me-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 var(--me-s4); }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--me-s4); }
code { font-family: var(--me-mono); font-size: .88em; color: var(--me-hot); }
.me-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.me-skip { position: absolute; left: var(--me-s4); top: -60px; z-index: 90; background: var(--me-hot); color: var(--me-hot-ink); padding: var(--me-s2) var(--me-s4); font-weight: 700; }
.me-skip:focus { top: var(--me-s2); }
.me-small { font-size: .875rem; color: var(--me-muted); }

/* chamfer */
.me-btn, .me-stake, .me-choice, .me-band, .me-sidecard, .me-rail, .me-console, .me-runcard, .me-tt__tile, .me-gh__cell,
.me-callout, .me-gate__card, .me-sheet__card, .me-topsheet__in, .me-tool, .me-stop, .me-pause, .me-meter, .me-form input,
.me-form select, .me-form textarea, .me-q, .me-doclist a, .me-notes a, .me-status {
  clip-path: polygon(var(--me-cut) 0, calc(100% - var(--me-cut)) 0, 100% var(--me-cut), 100% calc(100% - var(--me-cut)),
    calc(100% - var(--me-cut)) 100%, var(--me-cut) 100%, 0 calc(100% - var(--me-cut)), 0 var(--me-cut));
}
.me-btn, .me-stake, .me-choice, .me-band, .me-pause, .me-meter, .me-tt__tile, .me-gh__cell { --me-cut: var(--me-cut-s); }
.me-btn:focus-visible, .me-stake:focus-visible, .me-choice:focus-visible, .me-band:focus-visible, .me-tt__tile:focus-visible,
.me-pause:focus-visible, .me-meter:focus-visible, .me-runcard:focus-visible, .me-stop:focus-visible,
.me-form input:focus-visible, .me-form select:focus-visible, .me-form textarea:focus-visible, .me-notes a:focus-visible, .me-doclist a:focus-visible {
  outline: 3px solid var(--me-cool); outline-offset: -5px;
}

/* kicker: dot + caps */
.me-kick { display: flex; align-items: center; gap: var(--me-s2); margin: 0 0 var(--me-s3); font: 700 .75rem/1 var(--me-display); letter-spacing: .16em; text-transform: uppercase; color: var(--me-muted); }
.me-kick i { width: 9px; height: 9px; border-radius: 50%; background: var(--me-hot); box-shadow: 0 0 0 3px rgba(255, 220, 46, .18); flex: none; }

/* buttons */
.me-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--me-s2);
  min-height: 44px; padding: var(--me-s2) var(--me-s5); border: 0; cursor: pointer;
  font: 700 1rem/1.1 var(--me-display); letter-spacing: .02em; text-decoration: none;
  transition: transform 160ms var(--me-ease), background-color 160ms var(--me-ease), color 160ms var(--me-ease);
}
.me-btn:active { transform: scale(.97); }
.me-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.me-btn--hot { background: var(--me-hot); color: var(--me-hot-ink); }
.me-btn--hot:hover { background: #fff07a; }
.me-btn--plain, .me-btn--even { background: var(--me-surface-2); color: var(--me-ink); box-shadow: inset 0 0 0 1px var(--me-line-2); }
.me-btn--plain:hover, .me-btn--even:hover { background: #1e2c3e; }
.me-btn--ghost { background: transparent; color: var(--me-muted); box-shadow: inset 0 0 0 1px var(--me-line); }
.me-btn--ghost:hover { color: var(--me-ink); }
.me-linkbtn { background: none; border: 0; padding: 0; color: var(--me-hot); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* masthead */
.me-mast { border-bottom: 1px solid var(--me-line); background: rgba(10, 15, 23, .92); }
.me-strip { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--me-s1) var(--me-s4); padding: 6px var(--me-s4); background: var(--me-well); border-bottom: 1px solid var(--me-line); font: 600 .75rem/1.4 var(--me-mono); letter-spacing: .04em; color: var(--me-muted); }
.me-strip b { color: var(--me-hot-ink); background: var(--me-hot); padding: 0 6px; }
.me-strip span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: var(--me-s2); vertical-align: middle; border-radius: 50%; background: var(--me-hot); }
.me-mast__bar { max-width: 1320px; margin: 0 auto; padding: var(--me-s3) var(--me-s5); display: flex; align-items: center; gap: var(--me-s4); }
.me-logo { display: flex; align-items: center; gap: var(--me-s3); color: var(--me-ink); text-decoration: none; margin-right: auto; }
.me-logo img { width: 40px; height: 40px; }
.me-logo__word { font: 700 1.5rem/1 var(--me-display); letter-spacing: .02em; }
.me-logo__word b { color: var(--me-hot); }
.me-mast__tools { display: flex; align-items: center; gap: var(--me-s2); }
.me-meter { display: flex; align-items: baseline; gap: 6px; padding: var(--me-s2) var(--me-s4); background: var(--me-surface-2); color: var(--me-ink); text-decoration: none; min-height: 44px; align-items: center; }
.me-meter__n { font: 700 1.05rem/1 var(--me-mono); color: var(--me-hot); }
.me-meter__u { font-size: .8rem; color: var(--me-muted); }
.me-pause { display: flex; align-items: center; gap: var(--me-s2); min-height: 44px; padding: var(--me-s2) var(--me-s4); border: 0; background: rgba(70, 214, 230, .12); color: var(--me-cool); font: 700 .95rem/1 var(--me-display); cursor: pointer; transition: background-color 160ms var(--me-ease); }
.me-pause:hover { background: rgba(70, 214, 230, .2); }
.me-pause.is-on { background: var(--me-cool); color: var(--me-bg); }
.me-pause__bars { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

/* breadcrumb bar */
.me-crumbbar { max-width: 1320px; margin: 0 auto; padding: 0 var(--me-s5); display: flex; align-items: center; gap: var(--me-s4); min-height: 48px; border-top: 1px solid var(--me-line); position: relative; }
.me-crumbbar__trail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--me-s2); font: .85rem/1.3 var(--me-mono); color: var(--me-muted); margin-right: auto; min-width: 0; }
.me-crumbbar__trail li { display: flex; align-items: center; gap: var(--me-s2); }
.me-crumbbar__trail li + li::before { content: ""; width: 14px; height: 2px; background: var(--me-line-2); }
.me-crumbbar__trail a { color: var(--me-muted); }
.me-crumbbar__trail a:hover { color: var(--me-ink); }
.me-crumbbar__trail [aria-current] { color: var(--me-ink); }
.me-crumbbar__jumps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--me-s1); }
.me-crumbbar__jumps a { display: block; padding: var(--me-s2) var(--me-s3); color: var(--me-ink); text-decoration: none; font: 600 .9rem/1.2 var(--me-display); border-bottom: 2px solid transparent; transition: border-color 160ms var(--me-ease), color 160ms var(--me-ease); }
.me-crumbbar__jumps a:hover { border-bottom-color: var(--me-line-2); }
.me-crumbbar__jumps a.is-here { border-bottom-color: var(--me-hot); color: var(--me-hot); }
.me-crumbbar__toggle { display: none; min-height: 40px; padding: 0 var(--me-s4); background: var(--me-surface-2); border: 0; color: var(--me-ink); font: 600 .9rem/1 var(--me-display); cursor: pointer; }

/* frame: sidebar + content */
.me-frame { max-width: 1320px; margin: 0 auto; padding: var(--me-s6) var(--me-s5) var(--me-s8); display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--me-s6); align-items: start; }
.me-side { position: sticky; top: var(--me-s4); display: grid; gap: var(--me-s4); }
.me-main { min-width: 0; }
.me-rail, .me-sidecard { background: var(--me-surface); padding: var(--me-s5); box-shadow: inset 0 0 0 1px var(--me-line); }
.me-rail__facts { margin: 0 0 var(--me-s3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--me-s3); }
.me-rail__facts div { min-width: 0; }
.me-rail__facts dt { font-size: .75rem; color: var(--me-muted); }
.me-rail__facts dd { margin: 2px 0 0; font: 700 1rem/1.25 var(--me-mono); color: var(--me-ink); overflow-wrap: anywhere; }
.me-rail__facts div:first-child dd { color: var(--me-hot); }
.me-rail__hold { padding: var(--me-s2) var(--me-s3); background: rgba(70, 214, 230, .12); color: var(--me-cool); font-size: .9rem; }
.me-rail__links { margin: 0; font-size: .9rem; }
.me-toc { padding: 0 var(--me-s2); }
.me-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--me-line); }
.me-toc a { display: block; padding: 6px var(--me-s3); color: var(--me-muted); text-decoration: none; font-size: .92rem; }
.me-toc a:hover { color: var(--me-ink); box-shadow: inset 2px 0 0 var(--me-hot); }

/* page heads and sections */
.me-head { padding-bottom: var(--me-s5); }
.me-head h1 { max-width: 22ch; }
.me-lede { font-size: 1.15rem; color: var(--me-muted); max-width: 64ch; }
.me-head__line { display: inline-flex; flex-wrap: wrap; gap: var(--me-s2); align-items: center; padding: var(--me-s2) var(--me-s3); background: var(--me-well); box-shadow: inset 3px 0 0 var(--me-hot); font-size: .9rem; }
.me-head__line b { font-family: var(--me-mono); color: var(--me-hot); }
.me-head__art { margin-top: var(--me-s5); width: 100%; max-height: 360px; object-fit: cover; }
.me-byline { font: .85rem/1.4 var(--me-mono); color: var(--me-muted); }
.me-sec { margin-top: var(--me-s7); padding-top: var(--me-s5); border-top: 1px solid var(--me-line); }
.me-sec > p, .me-sec--prose p, .me-sec--prose li { max-width: 68ch; }
.me-status { padding: var(--me-s3) var(--me-s4); background: var(--me-surface-2); font-weight: 600; }
.me-status.is-held { background: rgba(70, 214, 230, .14); color: var(--me-cool); }

/* tables */
.me-scroll { overflow-x: auto; margin: 0 0 var(--me-s4); }
.me-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.me-table caption { text-align: left; padding-bottom: var(--me-s2); font: 700 .75rem/1 var(--me-display); letter-spacing: .14em; text-transform: uppercase; color: var(--me-muted); }
.me-table th, .me-table td { text-align: left; padding: var(--me-s3) var(--me-s3); border-bottom: 1px solid var(--me-line); vertical-align: middle; }
.me-table thead th { font: 600 .8rem/1.2 var(--me-display); color: var(--me-muted); letter-spacing: .04em; border-bottom-color: var(--me-line-2); }
.me-table tbody th { font-weight: 600; }
.me-table td { font-family: var(--me-mono); font-size: .9rem; }
.me-table--facts th { width: 38%; color: var(--me-muted); font-weight: 400; }
.me-table--facts td { font-family: var(--me-text); font-size: .95rem; }
.me-sidecard .me-table th, .me-sidecard .me-table td { padding: var(--me-s2) 0; }
.me-table--mini th, .me-table--mini td { padding: 6px var(--me-s2); }
.me-sym { display: inline-block; width: 32px; height: 32px; vertical-align: middle; margin-right: var(--me-s2); }
.me-swatch { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: var(--me-s2); }
.me-swatch--tan { background: var(--me-tan); }
.me-swatch--cya { background: var(--me-cya); }
.me-swatch--lim { background: var(--me-lim); }
.me-swatch--vio { background: var(--me-vio); }
.me-pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.me-pips i { width: 12px; height: 8px; background: var(--me-line-2); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.me-pips i.is-on { background: var(--me-hot); }

/* lists */
.me-steps { margin: 0; padding: 0; list-style: none; counter-reset: me-step; display: grid; gap: var(--me-s3); }
.me-steps li { counter-increment: me-step; position: relative; padding: var(--me-s3) var(--me-s4) var(--me-s3) 56px; background: var(--me-surface); box-shadow: inset 0 0 0 1px var(--me-line); max-width: 72ch; }
.me-steps li::before { content: counter(me-step, decimal-leading-zero); position: absolute; left: var(--me-s4); top: var(--me-s3); font: 700 .95rem/1.6 var(--me-mono); color: var(--me-hot); }
.me-know { margin: 0; padding: 0 0 0 var(--me-s5); display: grid; gap: var(--me-s2); }
.me-know li { max-width: 70ch; }
.me-know li::marker { color: var(--me-hot); }

/* board */
.me-board { position: relative; margin: 0 0 var(--me-s5); background: var(--me-well); }
.me-board__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(1.05) brightness(.8); }
.me-board__svg { position: absolute; inset: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.me-board__cap { padding: var(--me-s3) var(--me-s4); font-size: .9rem; color: var(--me-muted); border-top: 1px solid var(--me-line); }
.me-track { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.me-track--bed { stroke: rgba(7, 11, 17, .78); stroke-width: 30; }
.me-track--line { stroke: var(--me-hot); stroke-width: 5; stroke-dasharray: 2 16; opacity: .9; }
.me-marble { fill: #fff3a6; stroke: var(--me-hot); stroke-width: 4; opacity: 0; transition: opacity 300ms var(--me-ease); }
.me-marble.is-live { opacity: 1; }
.me-marble.is-rest { opacity: .6; }
.me-station { cursor: pointer; }
.me-station__ring { fill: rgba(7, 11, 17, .55); stroke: var(--me-hot); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform 200ms var(--me-ease); }
.me-station__dot { fill: var(--me-surface-2); stroke: var(--me-line-2); stroke-width: 2; transition: fill 160ms var(--me-ease); }
.me-station__no { font: 700 32px/1 var(--me-display); fill: var(--me-ink); pointer-events: none; }
.me-station__name { font: 700 28px/1 var(--me-display); fill: var(--me-ink); paint-order: stroke; stroke: rgba(7, 11, 17, .9); stroke-width: 8px; stroke-linejoin: round; pointer-events: none; }
.me-station:hover .me-station__ring, .me-station.is-on .me-station__ring { transform: scale(1.12); }
.me-station.is-on .me-station__dot { fill: var(--me-hot); stroke: var(--me-hot); }
.me-station.is-on .me-station__no { fill: var(--me-hot-ink); }
.me-station:focus { outline: none; }
.me-station:focus-visible .me-station__ring { stroke: var(--me-cool); stroke-width: 6; }
.me-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--me-s3); }
.me-stop { display: grid; grid-template-columns: 56px auto 1fr; gap: var(--me-s3); align-items: center; padding: var(--me-s2) var(--me-s3) var(--me-s2) var(--me-s2); background: var(--me-surface); color: var(--me-ink); text-decoration: none; transition: background-color 160ms var(--me-ease); }
.me-stop:hover { background: var(--me-surface-2); }
.me-stop img { width: 56px; height: 75px; object-fit: cover; }
.me-stop__no { font: 700 1.6rem/1 var(--me-mono); color: var(--me-hot); }
.me-stop__text b { display: block; font-family: var(--me-display); }
.me-stop__text span { font-size: .85rem; color: var(--me-muted); }
.me-readout__art { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: var(--me-s3); }
.me-readout__no { margin: 0 0 var(--me-s1); font: .8rem/1.3 var(--me-mono); color: var(--me-muted); }
.me-readout__name { margin: 0 0 var(--me-s2); font: 700 1.4rem/1.1 var(--me-display); }
.me-readout__pitch { font-size: .95rem; color: var(--me-muted); }
.me-readout__pips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--me-s2); font-size: .8rem; color: var(--me-muted); }
.me-readout__go { width: 100%; margin-top: var(--me-s2); }

/* run cards with shimmer (fx) */
.me-runlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--me-s4); }
.me-runlist--row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.me-runcard { display: flex; flex-direction: column; background: var(--me-surface); color: var(--me-ink); text-decoration: none; padding-bottom: var(--me-s4); transition: transform 200ms var(--me-ease); }
.me-runcard__art { position: relative; overflow: hidden; display: block; margin-bottom: var(--me-s3); }
.me-runcard__art::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .26) 50%, transparent 60%); transform: translateX(-70%); opacity: 0; pointer-events: none; }
.me-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.me-runcard__no { padding: 0 var(--me-s4); font: .78rem/1.3 var(--me-mono); color: var(--me-muted); }
.me-runcard__name { padding: 0 var(--me-s4); font: 700 1.2rem/1.2 var(--me-display); }
.me-runcard__pitch { padding: var(--me-s1) var(--me-s4) 0; font-size: .88rem; color: var(--me-muted); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .me-runcard:hover { transform: translateY(-3px); }
  .me-runcard:hover .me-runcard__art::after { transform: translateX(70%); opacity: 1; transition: transform 650ms var(--me-ease), opacity 120ms linear; }
}
.me-notes { list-style: none; margin: 0 0 var(--me-s4); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--me-s4); }
.me-notes a { display: block; height: 100%; background: var(--me-surface); color: var(--me-ink); text-decoration: none; }
.me-notes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.me-notes a > span { display: grid; gap: var(--me-s1); padding: var(--me-s3) var(--me-s4) var(--me-s4); }
.me-notes b { font-family: var(--me-display); line-height: 1.25; }
.me-notes a > span > span, .me-notes time { font-size: .88rem; color: var(--me-muted); }
.me-notes time { font-family: var(--me-mono); }
.me-callout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--me-s5); background: var(--me-surface); padding: var(--me-s4); align-items: center; }
.me-callout img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.me-doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--me-s3); }
.me-doclist a { display: grid; gap: var(--me-s1); padding: var(--me-s4) var(--me-s5); background: var(--me-surface); color: var(--me-ink); text-decoration: none; }
.me-doclist b { font-family: var(--me-display); font-size: 1.1rem; }
.me-doclist span { color: var(--me-muted); font-size: .95rem; }
.me-article__art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: var(--me-s4); }

/* FAQ */
.me-faq { display: grid; gap: var(--me-s2); }
.me-faq__item { background: var(--me-surface); box-shadow: inset 0 0 0 1px var(--me-line); }
.me-faq__item summary { cursor: pointer; padding: var(--me-s4) var(--me-s5); font: 700 1.02rem/1.35 var(--me-display); list-style: none; display: flex; justify-content: space-between; gap: var(--me-s4); }
.me-faq__item summary::-webkit-details-marker { display: none; }
.me-faq__item summary::after { content: "+"; font-family: var(--me-mono); color: var(--me-hot); }
.me-faq__item[open] summary::after { content: "−"; }
.me-faq__item p { padding: 0 var(--me-s5) var(--me-s4); margin: 0; color: var(--me-muted); max-width: 70ch; }

/* run head */
.me-runhead { position: relative; overflow: hidden; margin-bottom: var(--me-s5); background: var(--me-well); }
.me-runhead__back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.me-runhead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 17, .96) 30%, rgba(7, 11, 17, .55)); }
.me-runhead__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--me-s5); padding: var(--me-s6); align-items: center; }
.me-runhead__note { font-size: .9rem; color: var(--me-muted); margin: 0; }
.me-runhead__art { margin: 0; }
.me-cover--lead { box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }

/* console */
.me-console { position: relative; background: var(--me-surface); padding: var(--me-s5); box-shadow: inset 0 0 0 1px var(--me-line); }
.me-console__hud { display: flex; flex-wrap: wrap; align-items: center; gap: var(--me-s3) var(--me-s5); margin-bottom: var(--me-s4); }
.me-console__glints, .me-console__visit { margin: 0; display: grid; gap: 2px; }
.me-console__glints span, .me-console__visit > span { font-size: .75rem; color: var(--me-muted); }
.me-console__glints b { font: 700 1.6rem/1 var(--me-mono); color: var(--me-hot); }
.me-console__visit b { font: 600 .95rem/1.2 var(--me-mono); }
.me-console__visit { margin-left: auto; text-align: right; }
.me-stakes { display: flex; flex-wrap: wrap; gap: var(--me-s1); }
.me-stake { min-width: 56px; min-height: 44px; border: 0; background: var(--me-surface-2); color: var(--me-ink); font: 700 .95rem/1 var(--me-mono); cursor: pointer; box-shadow: inset 0 0 0 1px var(--me-line-2); transition: background-color 160ms var(--me-ease); }
.me-stake:hover { background: #1e2c3e; }
.me-stake.is-on { background: var(--me-hot); color: var(--me-hot-ink); box-shadow: none; }
.me-stake[disabled] { opacity: .5; cursor: not-allowed; }
.me-console__stage { background: var(--me-well); padding: var(--me-s5); min-height: 280px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--me-line); }
.me-opts { display: flex; flex-wrap: wrap; gap: var(--me-s2); margin-top: var(--me-s3); }
.me-console__keys { display: flex; flex-wrap: wrap; gap: var(--me-s2); margin-top: var(--me-s4); }
.me-btn--go { min-width: 180px; font-size: 1.1rem; }
.me-verdict { margin: var(--me-s4) 0 0; padding: var(--me-s3) var(--me-s4); background: var(--me-well); font: .95rem/1.45 var(--me-mono); color: var(--me-muted); box-shadow: inset 3px 0 0 var(--me-line-2); }
.me-verdict.is-up { color: var(--me-ink); box-shadow: inset 3px 0 0 var(--me-hot); }
.me-console__lock { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: var(--me-s2); padding: var(--me-s6); text-align: center; background: rgba(7, 11, 17, .93); }
.me-console__lock[hidden] { display: none; }
.me-console__lock-h { font: 700 1.5rem/1.2 var(--me-display); color: var(--me-cool); margin: 0; }
.me-band { display: grid; gap: 2px; text-align: left; min-height: 52px; padding: var(--me-s2) var(--me-s4) var(--me-s2) var(--me-s5); border: 0; background: var(--me-surface-2); color: var(--me-ink); cursor: pointer; box-shadow: inset 4px 0 0 var(--me-line-2), inset 0 0 0 1px var(--me-line); transition: background-color 160ms var(--me-ease); }
.me-band b { font: 700 .95rem/1.2 var(--me-display); }
.me-band span { font: .8rem/1.2 var(--me-mono); color: var(--me-muted); }
.me-band:hover { background: #1e2c3e; }
.me-band.is-on { box-shadow: inset 4px 0 0 var(--me-hot), inset 0 0 0 2px var(--me-hot); }
.me-band--tan { box-shadow: inset 4px 0 0 var(--me-tan), inset 0 0 0 1px var(--me-line); }
.me-band--cya { box-shadow: inset 4px 0 0 var(--me-cya), inset 0 0 0 1px var(--me-line); }
.me-band--lim { box-shadow: inset 4px 0 0 var(--me-lim), inset 0 0 0 1px var(--me-line); }
.me-band--vio { box-shadow: inset 4px 0 0 var(--me-vio), inset 0 0 0 1px var(--me-line); }
.me-band--tan.is-on { box-shadow: inset 4px 0 0 var(--me-tan), inset 0 0 0 2px var(--me-hot); }
.me-band--cya.is-on { box-shadow: inset 4px 0 0 var(--me-cya), inset 0 0 0 2px var(--me-hot); }
.me-band--lim.is-on { box-shadow: inset 4px 0 0 var(--me-lim), inset 0 0 0 2px var(--me-hot); }
.me-band--vio.is-on { box-shadow: inset 4px 0 0 var(--me-vio), inset 0 0 0 2px var(--me-hot); }
.me-band[disabled] { opacity: .5; cursor: not-allowed; }

@keyframes me-pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* Glasshold */
.me-gh { display: grid; grid-template-columns: repeat(5, minmax(0, 96px)); gap: var(--me-s2); }
.me-gh__cell { aspect-ratio: 1; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, rgba(47, 198, 224, .2), rgba(47, 198, 224, .05)); box-shadow: inset 0 0 0 1px rgba(47, 198, 224, .35); }
.me-gh__cell img { width: 74%; height: auto; }
.me-gh__cell b { position: absolute; bottom: 4px; right: 6px; font: 700 .8rem/1 var(--me-mono); color: var(--me-ink); text-shadow: 0 1px 2px #000; }
.me-gh__cell.is-full { background: linear-gradient(160deg, rgba(255, 220, 46, .22), rgba(255, 220, 46, .05)); box-shadow: inset 0 0 0 1px rgba(255, 220, 46, .45); }
.me-gh__cell.is-fresh img { animation: me-pop 220ms var(--me-ease); }
.me-gh__drops { margin: var(--me-s3) 0 0; font: .9rem/1.3 var(--me-mono); color: var(--me-muted); text-align: center; }

/* Spindle Wheel */
.me-wh { width: min(100%, 380px); }
.me-wh__svg { width: 100%; height: auto; display: block; }
.me-wh__disc { transform-box: view-box; transform-origin: 160px 160px; transition: transform 2600ms cubic-bezier(.12, .66, .16, 1); }
.me-wh__w { stroke: var(--me-well); stroke-width: 1.5; }
.me-wh__w--tan { fill: var(--me-tan); }
.me-wh__w--cya { fill: var(--me-cya); }
.me-wh__w--lim { fill: var(--me-lim); }
.me-wh__w--vio { fill: var(--me-vio); }
.me-wh__w.is-hit { stroke: #fff; stroke-width: 4; }
.me-wh__rim { fill: none; stroke: #a3793a; stroke-width: 8; }
.me-wh__pin { fill: var(--me-brass); }
.me-wh__hub { fill: var(--me-surface-2); stroke: var(--me-brass); stroke-width: 4; }
.me-wh__ptr { fill: var(--me-hot); stroke: var(--me-well); stroke-width: 2; }

/* Pegfall */
.me-pf { width: min(100%, 520px); }
.me-pf__svg { width: 100%; height: auto; display: block; }
.me-pf__pin { fill: var(--me-brass); }
.me-pf__tray rect { fill: var(--me-surface-2); stroke: var(--me-line-2); stroke-width: 1.5; transition: fill 160ms var(--me-ease); }
.me-pf__tray text { font: 700 12px/1 var(--me-mono); fill: var(--me-muted); }
.me-pf__tray.is-tall text { fill: var(--me-hot); }
.me-pf__tray.is-hit rect { fill: var(--me-hot); stroke: var(--me-hot); }
.me-pf__ball { fill: #ffd27a; stroke: var(--me-tan); stroke-width: 3; }

/* Funnel Card */
.me-fc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--me-s5); width: 100%; align-items: start; }
.me-fc__card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.me-fc__col { text-align: center; font: 700 1.1rem/1.6 var(--me-display); color: var(--me-hot); }
.me-fc__cell { aspect-ratio: 1; display: grid; place-items: center; background: var(--me-surface-2); font: 700 1rem/1 var(--me-mono); transition: background-color 160ms var(--me-ease); }
.me-fc__cell.is-free { font-size: .65rem; letter-spacing: .08em; }
.me-fc__cell.is-hit { background: rgba(70, 214, 230, .25); color: var(--me-ink); }
.me-fc__cell.is-line { background: var(--me-hot); color: var(--me-hot-ink); }
.me-fc__tube { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; min-height: 120px; }
.me-fc__ball { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #c9d3de 60%, #8a98a8); color: #0a0f17; font: 700 .8rem/1 var(--me-mono); animation: me-pop 160ms var(--me-ease); }
.me-fc__ball.is-match { background: radial-gradient(circle at 35% 30%, #fff8c2, var(--me-hot) 60%, #b38d00); }

/* Pinhole Ten */
.me-ph { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--me-s5); width: 100%; align-items: start; }
.me-ph__board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; padding: var(--me-s3); background: linear-gradient(160deg, #3a1f6e, #24134a); }
.me-ph__hole { aspect-ratio: 1; min-width: 32px; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #0b0716 50%, #1a1033); color: #c9b8f0; font: 700 .8rem/1 var(--me-mono); cursor: pointer; transition: background-color 160ms var(--me-ease), box-shadow 160ms var(--me-ease); }
.me-ph__hole:hover { box-shadow: 0 0 0 2px rgba(255, 220, 46, .5); }
.me-ph__hole.is-pick { box-shadow: 0 0 0 3px var(--me-hot); color: var(--me-hot); }
.me-ph__hole.is-drawn { background: radial-gradient(circle at 50% 45%, #ffe9a0, #ff9f1a 65%, #7a3d00); color: #2a1300; animation: me-pop 180ms var(--me-ease); }
.me-ph__hole.is-hit { background: radial-gradient(circle at 50% 45%, #fff, var(--me-hot) 60%, #b38d00); color: var(--me-hot-ink); box-shadow: 0 0 0 3px #fff; }
.me-ph__hole:focus-visible { outline: 3px solid var(--me-cool); outline-offset: 2px; }
.me-ph__count { font: 700 .95rem/1.3 var(--me-mono); color: var(--me-hot); }

/* Tumbler Tiles */
.me-tt { width: 100%; }
.me-tt__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 104px)); gap: var(--me-s2); justify-content: center; }
.me-tt__tile { aspect-ratio: 1; border: 0; display: grid; place-items: center; background: linear-gradient(150deg, rgba(255, 138, 42, .55), rgba(167, 104, 255, .45)); cursor: pointer; transition: transform 160ms var(--me-ease), background-color 160ms var(--me-ease); }
.me-tt__tile:not([disabled]):hover { transform: translateY(-2px); }
.me-tt__tile:not([disabled]):active { transform: scale(.96); }
.me-tt__tile[disabled] { cursor: default; }
.me-tt__tile.is-up { background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px var(--me-line-2); }
.me-tt__tile.is-up img { width: 72%; animation: me-pop 200ms var(--me-ease); }
.me-tt__tile.is-three { box-shadow: inset 0 0 0 3px var(--me-hot); background: rgba(255, 220, 46, .16); }
.me-tt__tile.is-late { opacity: .5; }
.me-tt__count { margin: var(--me-s3) 0 0; text-align: center; font: .9rem/1.4 var(--me-mono); color: var(--me-muted); }

/* tally */
.me-tierbar { max-width: 560px; padding: var(--me-s4) var(--me-s5); background: var(--me-surface); }
.me-tierbar p { margin: 0 0 var(--me-s2); }
.me-tierbar b { color: var(--me-hot); font-family: var(--me-display); font-size: 1.2rem; }
.me-tierbar__track { height: 10px; background: var(--me-surface-2); overflow: hidden; margin-bottom: var(--me-s2); }
.me-tierbar__fill { display: block; height: 100%; background: var(--me-hot); transform-origin: left; transform: scaleX(0); transition: transform 300ms var(--me-ease); }
.me-stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--me-s2); }
.me-stamps li { display: grid; grid-template-columns: 18px 1fr auto; gap: var(--me-s3); align-items: center; padding: var(--me-s3) var(--me-s4); background: var(--me-surface); font-size: .95rem; }
.me-stampmark { width: 14px; height: 14px; border: 2px solid var(--me-line-2); transform: rotate(45deg); }
.me-stamps li em { font: normal .8rem/1 var(--me-mono); color: var(--me-muted); }
.me-stamps li.is-got .me-stampmark { background: var(--me-hot); border-color: var(--me-hot); }
.me-stamps li.is-got em { color: var(--me-hot); }

/* catch tray */
.me-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--me-s4); }
.me-tool { background: var(--me-surface); padding: var(--me-s5); box-shadow: inset 0 0 0 1px var(--me-line); }
.me-tool p { color: var(--me-muted); font-size: .95rem; }
.me-choices { display: flex; flex-wrap: wrap; gap: var(--me-s1); margin-bottom: var(--me-s2); }
.me-choice { min-height: 44px; padding: var(--me-s2) var(--me-s4); border: 0; background: var(--me-surface-2); color: var(--me-ink); font: 600 .9rem/1 var(--me-display); cursor: pointer; box-shadow: inset 0 0 0 1px var(--me-line-2); transition: background-color 160ms var(--me-ease); }
.me-choice:hover { background: #1e2c3e; }
.me-choice.is-on { background: var(--me-cool); color: var(--me-bg); box-shadow: none; }
.me-check { display: grid; gap: var(--me-s3); }
.me-q { margin: 0; border: 0; padding: var(--me-s4) var(--me-s5); background: var(--me-surface); }
.me-q legend { float: left; width: 100%; padding: 0; margin-bottom: var(--me-s2); font-weight: 600; }
.me-q label { display: inline-flex; align-items: center; gap: 6px; margin: 0 var(--me-s4) var(--me-s1) 0; min-height: 32px; color: var(--me-muted); font-size: .95rem; cursor: pointer; }
.me-q input { accent-color: var(--me-hot); width: 18px; height: 18px; }
.me-check__out { font-weight: 600; color: var(--me-cool); max-width: 68ch; }

/* contact */
.me-form { display: grid; gap: var(--me-s2); max-width: 620px; }
.me-form label { font-weight: 600; font-size: .95rem; margin-top: var(--me-s2); }
.me-form input, .me-form select, .me-form textarea { width: 100%; min-height: 46px; padding: var(--me-s3) var(--me-s4); border: 0; background: var(--me-surface-2); color: var(--me-ink); font: inherit; box-shadow: inset 0 0 0 1px var(--me-line-2); }
.me-form button { justify-self: start; margin-top: var(--me-s2); }
.me-form__ok { padding: var(--me-s3) var(--me-s4); background: rgba(70, 214, 230, .14); color: var(--me-cool); }
.me-form__err { padding: var(--me-s3) var(--me-s4); background: rgba(255, 138, 42, .14); color: #ffb47a; }
.me-decoy { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer: stacked list */
.me-foot { border-top: 1px solid var(--me-line); background: var(--me-well); }
.me-foot__row { max-width: 1320px; margin: 0 auto; padding: var(--me-s5); border-bottom: 1px solid var(--me-line); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--me-s2) var(--me-s5); }
.me-foot__row--lead { display: block; box-shadow: inset 4px 0 0 var(--me-hot); }
.me-foot__row--lead p { max-width: 90ch; }
.me-foot__row--lead p:last-child, .me-foot__row--base p:last-child { margin-bottom: 0; }
.me-foot__row--base { display: block; color: var(--me-muted); font-size: .9rem; border-bottom: 0; }
.me-foot__h { margin: 0; font: 700 .75rem/1.6 var(--me-display); letter-spacing: .14em; text-transform: uppercase; color: var(--me-muted); }
.me-foot__list, .me-foot__links { list-style: none; margin: 0; padding: 0; }
.me-foot__list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--me-s3); padding: 6px 0; border-bottom: 1px dashed var(--me-line); }
.me-foot__list li:last-child { border-bottom: 0; }
.me-foot__list span { color: var(--me-muted); font-size: .95rem; }
.me-foot__links { display: flex; flex-wrap: wrap; gap: var(--me-s2) var(--me-s5); }

/* age gate, sheets, top sheet, toast */
.me-gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--me-s4); background: rgba(5, 8, 12, .96); }
.me-gate[hidden], .me-sheet[hidden], .me-topsheet[hidden] { display: none; }
.me-gate__card { width: min(100%, 520px); background: var(--me-surface); padding: var(--me-s6); text-align: center; animation: me-pop 220ms var(--me-ease); }
.me-gate__card img { margin: 0 auto var(--me-s4); }
.me-gate__q { font: 700 1.45rem/1.25 var(--me-display); }
.me-gate__card p { color: var(--me-muted); }
.me-gate__card .me-gate__q { color: var(--me-ink); }
.me-gate__keys { display: grid; gap: var(--me-s2); margin: var(--me-s5) 0 var(--me-s4); }
.me-sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--me-s4); background: rgba(5, 8, 12, .8); }
.me-sheet__card { width: min(100%, 500px); background: var(--me-surface); padding: var(--me-s6); animation: me-pop 200ms var(--me-ease); }
.me-sheet__h { font: 700 1.35rem/1.2 var(--me-display); }
.me-sheet__keys { display: grid; grid-template-columns: 1fr 1fr; gap: var(--me-s2); margin: var(--me-s4) 0; }
.me-sheet__facts { display: grid; grid-template-columns: auto 1fr; gap: var(--me-s1) var(--me-s4); margin: 0; font-family: var(--me-mono); }
.me-sheet__facts dt { color: var(--me-muted); }
.me-sheet__facts dd { margin: 0; }
@keyframes me-drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.me-topsheet { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: var(--me-s3); }
.me-topsheet__in { max-width: 920px; margin: 0 auto; background: var(--me-surface-2); padding: var(--me-s5); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: me-drop 240ms var(--me-ease); }
.me-topsheet__h { font: 700 1.1rem/1.3 var(--me-display); }
.me-topsheet__in p { font-size: .95rem; }
.me-topsheet__keys { display: grid; grid-template-columns: 1fr 1fr; gap: var(--me-s2); max-width: 420px; }
.me-toast { position: fixed; left: 50%; bottom: var(--me-s5); z-index: 75; max-width: min(92vw, 520px); margin: 0; padding: var(--me-s3) var(--me-s5); background: var(--me-ink); color: var(--me-bg); font-weight: 600; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: transform 220ms var(--me-ease), opacity 180ms var(--me-ease); }
.me-toast.is-up { transform: translate(-50%, 0); opacity: 1; }

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

/* narrow screens */
@media (max-width: 1080px) {
  .me-frame { grid-template-columns: minmax(0, 1fr); }
  .me-side { position: static; order: 2; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
  .me-main { order: 1; }
  .me-readout { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .me-mast__bar { padding: var(--me-s2) var(--me-s4); }
  .me-logo__word { font-size: 1.25rem; }
  .me-meter__u { display: none; }
  .me-crumbbar { padding: var(--me-s1) var(--me-s4); flex-wrap: wrap; }
  .me-crumbbar__toggle { display: block; }
  .me-crumbbar__jumps { display: none; position: absolute; top: 100%; right: var(--me-s4); left: var(--me-s4); z-index: 20; flex-direction: column; background: var(--me-surface-2); padding: var(--me-s2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
  .me-crumbbar__jumps.is-open { display: flex; }
  .me-frame { padding: var(--me-s5) var(--me-s4) var(--me-s7); }
  .me-runhead__in { grid-template-columns: minmax(0, 1fr); padding: var(--me-s5); }
  .me-runhead__art { display: none; }
  .me-console { padding: var(--me-s4); }
  .me-console__stage { padding: var(--me-s3); }
  .me-console__visit { margin-left: 0; text-align: left; }
  .me-fc, .me-ph { grid-template-columns: minmax(0, 1fr); }
  .me-callout, .me-tools { grid-template-columns: minmax(0, 1fr); }
  .me-foot__row { grid-template-columns: minmax(0, 1fr); }
  .me-foot__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .me-station__name { display: none; }
  .me-sheet__keys, .me-topsheet__keys { grid-template-columns: 1fr; }
  .me-stake { min-width: 48px; }
  .me-btn--go { width: 100%; }
}
@media (max-width: 420px) {
  .me-strip { font-size: .68rem; gap: 2px var(--me-s3); }
  .me-ph__board { gap: 4px; padding: var(--me-s2); }
  .me-ph__hole { min-width: 0; font-size: .7rem; }
}
