/* MODCHIP.APP · the site wears the app's skin: the orange bar, the LCDs, the panels. One theme, the machine's own. */
:root {
  --bg: #1b1d24; --bg-2: #22252e; --panel: #2a2d38; --panel-hi: #353947; --line: #3a3e4c; --edge: #0a0b0e;
  --ink: #e6e7ea; --ink-2: #a9adb9; --muted: #6f7482; --accent: #ff8a45; --accent-2: #ffb07a;
  --lcd-bg: #0b1a22; --lcd-ink: #9fe3ff; --lcd-dim: #3f6b7c; --led-green: #5df08f; --led-red: #ff5252; --led-amber: #ffc83d;
  --bar: linear-gradient(180deg, #ffa052, #ff7a2a 60%, #e8621a); --bar-ink: #2a1607;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace; --wide: "Michroma", "Eurostile", "Arial Black", sans-serif; --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --measure: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; }
kbd { font-family: var(--mono); font-size: .85em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; background: var(--panel); color: var(--ink); white-space: nowrap; }
h1, h2, h3 { font-family: var(--wide); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(15px, 2vw, 20px); }
p { margin: 0 0 1em; max-width: var(--measure); }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--lcd-ink); outline-offset: 2px; }

/* the bar: the app's own header, the one-colour cut of the mark on the orange */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bar); border-bottom: 1px solid #7a3a0c; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 52px; }
.bar .mark { display: inline-flex; align-items: center; gap: 8px; color: var(--bar-ink); }
.bar .mark img { height: 20px; width: auto; filter: brightness(0) saturate(100%) invert(9%) sepia(40%) saturate(900%) hue-rotate(350deg); }
.bar .ver { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #5a2a0c; }
.bar nav { margin-left: auto; display: flex; gap: 4px; }
.bar nav a { font-family: var(--wide); font-size: 9px; letter-spacing: .16em; color: var(--bar-ink); padding: 7px 10px; border-radius: 3px; border: 1px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current] { text-decoration: none; background: rgba(42,22,7,.14); border-color: rgba(42,22,7,.25); }
.bar nav a.key { background: #1b1d24; color: var(--accent-2); border-color: #0a0b0e; }

/* the hero: the mark on black, like the boot screen, and the app under it in a bezel */
.hero { background: #000; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero .boot { width: min(46vw, 300px); image-rendering: pixelated; }
.hero h1 { font-size: clamp(14px, 1.7vw, 18px); color: var(--ink); max-width: 36ch; letter-spacing: .14em; }
.hero .sub { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-2); max-width: 60ch; margin: -8px 0 0; }
.keys { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hw { appearance: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--wide); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  padding: 12px 18px; border-radius: 4px; border: 1px solid var(--edge); background: linear-gradient(180deg, var(--panel-hi), var(--bg-2)); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 0 var(--edge); cursor: pointer; }
.hw:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-2); }
.hw:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--edge); }
.hw.on { background: linear-gradient(180deg, #ffa052, #e8621a); color: var(--bar-ink); border-color: #7a3a0c; }
.hw.on:hover { color: #000; }
.hw i { width: 7px; height: 7px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.hw svg { width: 11px; height: 11px; fill: currentColor; flex: none; }
.hw[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-2); }
.hw.soon i { background: var(--led-amber); box-shadow: 0 0 6px var(--led-amber); }
.bezel { width: min(100%, 1180px); margin-top: 12px; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #2a2d38, #1b1d24); box-shadow: 0 -1px 0 rgba(255,255,255,.08) inset, 0 -30px 80px -40px rgba(255,138,69,.35); }
.bezel img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--edge); }

/* sections: a head like the app's SHOW bar, a lamp and a name */
section.band { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
section.band:nth-of-type(even) { background: var(--bg-2); }
.head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.head .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); align-self: center; }
.head .meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-left: auto; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin-bottom: 28px; }

/* the chips: the app's own cards, bigger, with the spec under each */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.chip-card { cursor: default; padding: 18px 14px 16px; }
.chip-card:hover { transform: none; }
.chip-card.playing { border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 0 18px -6px var(--cc); }
.chip-name { font-size: 11px; }
.chip-line { font-size: 10px; max-width: 26ch; }
.chip-spec { font-family: var(--mono); font-size: 9.5px; line-height: 1.55; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; max-width: 28ch; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; }
.chip-play { margin-top: auto; padding-top: 6px; }   /* pinned to the card's foot, so every key in a row sits level whatever the text above it runs to */
.chip-play .hw { padding: 8px 12px; font-size: 8.5px; gap: 7px; }
.chip-play .hw small { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted); text-transform: none; }
.chip-play .none { display: inline-flex; align-items: center; padding: 8px 0; border: 1px solid transparent; line-height: 1.2; font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .06em; }   /* the same box as a key, so the row stays level */

/* the demos: a rack of LCD strips, one a song */
.demos { display: grid; gap: 8px; }
.demo { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 5px; border: 1px solid var(--edge); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.demo .pp { width: 44px; height: 36px; padding: 0; justify-content: center; }
.demo .pp svg { width: 12px; height: 12px; fill: currentColor; }
.demo .lcd { font-family: var(--mono); color: var(--lcd-ink); background: var(--lcd-bg); border: 1px solid var(--edge); border-radius: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8);
  text-shadow: 0 0 4px rgba(159,227,255,.55); padding: 6px 10px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.demo .lcd .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo .lcd .d { color: var(--lcd-dim); white-space: nowrap; }
.demo .lcd .bar-track { flex: 1; height: 6px; background: #071117; border: 1px solid #0a2a36; border-radius: 1px; overflow: hidden; }
.demo .lcd .bar-fill { height: 100%; width: 0; background: var(--lcd-ink); box-shadow: 0 0 6px var(--lcd-ink); }
.demo .tags { display: flex; gap: 5px; }
.tag { font-family: var(--wide); font-size: 7.5px; letter-spacing: .14em; padding: 4px 7px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.tag[data-chip] { color: var(--cc, var(--ink-2)); border-color: color-mix(in srgb, var(--cc, var(--line)) 45%, var(--edge)); }
.demo .bpm { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 720px) { .demo { grid-template-columns: 44px 1fr; } .demo .tags, .demo .bpm { display: none; } }

/* the browser version: a card that says what it is */
.webcard { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 26px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.webcard ul { margin: 0; padding-left: 18px; color: var(--ink-2); } .webcard li { margin: 4px 0; }
.webcard .lcd-big { font-family: var(--mono); color: var(--lcd-ink); background: var(--lcd-bg); border: 1px solid var(--edge); border-radius: 3px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); text-shadow: 0 0 4px rgba(159,227,255,.55);
  padding: 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.8; }
.webcard .lcd-big b { color: var(--led-green); text-shadow: 0 0 6px rgba(93,240,143,.6); }
@media (max-width: 820px) { .webcard { grid-template-columns: 1fr; } }

/* download + changelog */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dl .plate { padding: 24px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.dl .big { font-family: var(--mono); font-size: 28px; color: var(--lcd-ink); background: var(--lcd-bg); border: 1px solid var(--edge); border-radius: 3px; padding: 10px 16px; display: inline-block; text-shadow: 0 0 6px rgba(159,227,255,.5); margin-bottom: 14px; }
.dl .fine { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.log { font-family: var(--mono); font-size: 12px; line-height: 1.6; max-height: 360px; overflow: auto; border: 1px solid var(--edge); background: var(--bg); border-radius: 4px; padding: 10px 12px; }
.log div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.log b { color: var(--accent-2); font-weight: 600; } .log span { color: var(--ink-2); }
@media (max-width: 820px) { .dl { grid-template-columns: 1fr; } }

/* the beta: one field, one key */
.beta form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.beta input { flex: 1; min-width: 220px; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--lcd-ink); background: var(--lcd-bg); border: 1px solid var(--edge); border-radius: 3px; padding: 11px 14px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); }
.beta input::placeholder { color: var(--lcd-dim); text-transform: uppercase; }
.beta .note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 10px; letter-spacing: .04em; }
.beta .ok { color: var(--led-green); }

footer { padding: 34px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
footer a { color: var(--ink-2); } footer .r { margin-left: auto; }

/* the manual page */
.man { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 36px 0 80px; }
.man-nav { position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 84px); overflow: auto; font-family: var(--mono); font-size: 12px; }
.man-group { margin-bottom: 14px; } .man-group b { display: block; font-family: var(--wide); font-size: 8.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 4px; }
.man-group a { display: block; padding: 4px 8px; border-radius: 3px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; } .man-group a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }
.man-topic { padding: 22px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.man-topic h2 { font-size: 15px; margin-bottom: 12px; } .man-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
.man-topic p { color: var(--ink-2); } .man-topic b { color: var(--ink); }
.help-try { margin: 14px 0 6px; padding: 12px 14px; border-radius: 5px; border: 1px solid var(--edge); background: var(--lcd-bg); color: var(--lcd-ink); font-family: var(--mono); font-size: 12.5px; max-width: 70ch; }
.help-try > b { display: block; font-family: var(--wide); font-size: 8px; letter-spacing: .16em; color: var(--lcd-dim); margin-bottom: 8px; }
.help-step { padding: 3px 0 3px 18px; position: relative; } .help-step::before { content: "›"; position: absolute; left: 4px; color: var(--lcd-dim); }
.help-why { margin-top: 8px; padding-top: 8px; border-top: 1px dotted var(--lcd-dim); color: var(--lcd-dim); font-size: 11.5px; }
.help-try kbd { background: transparent; color: var(--lcd-ink); border-color: var(--lcd-dim); }
@media (max-width: 820px) { .man { grid-template-columns: 1fr; } .man-nav { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hw, .chip-card { transition: none; } }

/* the questions: a rack of details, each a panel with an LED that lights when open */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { border: 1px solid var(--edge); border-radius: 5px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a3e4c; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); flex: none; }
.faq details[open] summary::before { background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.faq details > div { padding: 0 16px 16px 35px; color: var(--ink-2); }
.faq details > div p { margin: 0; max-width: none; }   /* the answer fills its panel; the panel sets the measure */

/* the deck: appears while a song plays, with the name, stop and the level */
.deck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; transform: translateY(110%); transition: transform .2s ease; background: linear-gradient(180deg, #2a2d38, #1b1d24); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.5); }
.deck.on { transform: none; }
.deck .wrap { display: flex; align-items: center; gap: 14px; height: 56px; }
.deck .pp { width: 40px; height: 34px; padding: 0; justify-content: center; }
.deck .lcd { flex: 1; font-family: var(--mono); color: var(--lcd-ink); background: var(--lcd-bg); border: 1px solid var(--edge); border-radius: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); text-shadow: 0 0 4px rgba(159,227,255,.55); padding: 6px 10px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.deck .lcd .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck .lcd .d { color: var(--lcd-dim); white-space: nowrap; }
.deck .lcd .bar-track { flex: 1; height: 6px; background: #071117; border: 1px solid #0a2a36; border-radius: 1px; overflow: hidden; }
.deck .lcd .bar-fill { height: 100%; width: 0; background: var(--lcd-ink); box-shadow: 0 0 6px var(--lcd-ink); }
.level { display: flex; align-items: center; gap: 8px; font-family: var(--wide); font-size: 8px; letter-spacing: .16em; color: var(--muted); }
.level input { -webkit-appearance: none; appearance: none; width: 120px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--pct, 50%), #0a0b0e var(--pct, 50%)); border: 1px solid var(--edge); outline: none; }
.level input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--panel-hi), var(--bg-2)); border: 1px solid var(--edge); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 2px 3px rgba(0,0,0,.6); cursor: pointer; }
.level input::-moz-range-thumb { width: 14px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--panel-hi), var(--bg-2)); border: 1px solid var(--edge); cursor: pointer; }
.level .db { font-family: var(--mono); font-size: 11px; color: var(--lcd-ink); min-width: 5ch; text-align: right; letter-spacing: .04em; }
body.deck-open { padding-bottom: 56px; }
@media (max-width: 720px) { .deck .lcd .d { display: none; } .level input { width: 80px; } }

/* the counters under the hero keys: five little LCDs */
.counters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lcd-count { display: flex; align-items: baseline; gap: 7px; font-family: var(--mono); color: var(--lcd-ink); background: var(--lcd-bg); border: 1px solid var(--edge); border-radius: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); text-shadow: 0 0 4px rgba(159,227,255,.55); padding: 6px 12px; }
.lcd-count b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; } .lcd-count span { font-size: 9px; letter-spacing: .14em; color: var(--lcd-dim); }

/* the chip sheet: the whole chip, under the grid, in its colour */
.hint { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin: 14px 0 0; }
.chip-card { cursor: pointer; }
.chip-card.on { border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 0 18px -6px var(--cc); }
.chip-sheet { width: min(1100px, 100% - 32px); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--cc, var(--line)); border-radius: 8px; background: linear-gradient(180deg, var(--panel), var(--bg)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 35%, transparent), 0 20px 60px -30px var(--cc); overflow: hidden; }
.sheet-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cc) 10%, transparent); }
.sheet-era { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--cc); }
.sheet-head h3 { font-size: 15px; color: var(--ink); }
.sheet-spec { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; flex: 1; min-width: 220px; }
.sheet-head .hw { padding: 6px 10px; margin-left: auto; }
.sheet-cols { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 24px; padding: 20px; }
.sheet-eyebrow { font-family: var(--wide); font-size: 8px; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }
.sheet-col p { color: var(--ink-2); font-size: 15px; }
.sheet-col ul { margin: 10px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 14px; } .sheet-col li { margin: 4px 0; }
.sheet-count { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 10px; letter-spacing: .04em; } .sheet-count b { color: var(--cc); font-size: 18px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill b { color: var(--cc, var(--accent-2)); font-weight: 600; }
.pill.kit { font-family: var(--wide); font-size: 7.5px; letter-spacing: .14em; color: var(--ink); border-color: color-mix(in srgb, var(--cc) 40%, var(--edge)); }
.sheet-demo-line { font-size: 13px !important; margin-top: 10px; }
@media (max-width: 900px) { .sheet-cols { grid-template-columns: 1fr; } }

/* the tour: a block a feature */
.tour { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.tour-block { padding: 20px 22px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); display: flex; flex-direction: column; gap: 8px; }
.tour-eyebrow { font-family: var(--wide); font-size: 8px; letter-spacing: .16em; color: var(--accent); }
.tour-block h3 { font-size: 13px; color: var(--ink); }
.tour-line { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.tour-block p { color: var(--ink-2); font-size: 14.5px; margin: 4px 0 0; max-width: none; }
.tour-block ul { margin: 4px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 13.5px; } .tour-block li { margin: 3px 0; }
.tour-block .pills { margin-top: 6px; } .tour-block .pill b { color: var(--accent-2); }
.studio-row { margin-top: 8px; } .studio-row .tour-eyebrow { display: block; color: var(--muted); margin-bottom: 5px; }
.tour-block .hw { align-self: flex-start; margin-top: 8px; }

/* the effects: a family a shelf, a box a card in its colour */
.fx-family { margin-bottom: 22px; }
.fx-family-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-family: var(--wide); font-size: 10px; letter-spacing: .16em; color: var(--ink); }
.fx-family-head .fx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 8px var(--fc); align-self: center; }
.fx-family-head span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.fx-box { position: relative; padding: 12px 12px 12px 14px; padding-right: 54px; border-radius: 5px; border: 1px solid var(--edge); background: linear-gradient(180deg, var(--panel), var(--bg-2)); border-left: 4px solid var(--bc); }
.fx-plate { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--bc) 35%, var(--edge)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 14px -6px var(--bc); }
.pill.glyphed { display: inline-flex; align-items: center; gap: 6px; } .pill.glyphed .glyph { color: var(--bc, var(--accent-2)); flex: none; }
.fx-name { font-family: var(--wide); font-size: 9.5px; letter-spacing: .16em; color: var(--bc); }
.fx-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin: 3px 0 6px; }
.fx-line { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* the dialog: the chip opens over the page, in place, and the page stays where it was */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(6,7,10,.72); backdrop-filter: blur(2px); }
.modal .chip-sheet { position: relative; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 35%, transparent), 0 40px 120px -30px #000; }
.modal .sheet-head { position: sticky; top: 0; z-index: 1; background: color-mix(in srgb, var(--cc) 12%, var(--panel)); }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .modal .chip-sheet { animation: sheet-in .16s ease-out; } @keyframes sheet-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } } }

/* the views: a big row each, the shot and the words, then the things on it */
.view-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; padding: 34px 0 18px; }
.view-row.flip .view-shot { order: 2; }
.view-shot { border-radius: 8px; border: 1px solid var(--line); padding: 8px; background: linear-gradient(180deg, var(--panel), var(--bg)); box-shadow: 0 30px 80px -40px rgba(255,138,69,.35); }
.view-shot img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--edge); }
.view-missing { aspect-ratio: 1843 / 1103; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; border: 1px solid var(--edge); background: var(--lcd-bg); color: var(--lcd-ink); font-family: var(--mono); letter-spacing: .1em; text-shadow: 0 0 6px rgba(159,227,255,.5); }
.view-missing b { font-family: var(--wide); font-size: 18px; letter-spacing: .2em; } .view-missing span { font-size: 10px; color: var(--lcd-dim); }
.view-eyebrow { font-family: var(--wide); font-size: 8px; letter-spacing: .16em; color: var(--accent); margin-bottom: 8px; }
.view-name { font-size: clamp(22px, 3vw, 34px); color: var(--ink); margin-bottom: 8px; }
.view-copy .tour-line { margin-bottom: 10px; }
.view-copy p { color: var(--ink-2); font-size: 15.5px; max-width: none; }
.view-copy ul { margin: 0; padding-left: 16px; color: var(--ink-2); font-size: 14px; } .view-copy li { margin: 4px 0; }
.view-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 0 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tour-block.compact { padding: 16px 18px; } .tour-block.compact h3 { font-size: 11px; } .tour-block.compact p { font-size: 13.5px; } .tour-block.compact ul { font-size: 13px; }
@media (max-width: 900px) { .view-row { grid-template-columns: 1fr; gap: 18px; } .view-row.flip .view-shot { order: 0; } }

/* figures: every number in running text wears the machine's mono */
.num { font-family: var(--mono); font-size: .94em; letter-spacing: .02em; }
