/* Highr: the lobby, the floor dial, the directory board, the call panel. Built on tokens.css and base.css.
   Brass is only floors; lamp is only the lit button. Flat colour, hairlines, no glow, no gradients. */

body { background: var(--bg); color: var(--ink); }
.center { text-align: center; justify-content: center; margin-inline: auto; }
.accent { color: var(--brass); }
.brass { color: var(--brass); }
.kicker { color: var(--brass); letter-spacing: 0.14em; }
.kicker-dot { background: var(--lamp); }
h1, h2, .display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h3 { font-weight: 600; }

.section-head { display: grid; justify-content: start; align-items: start; gap: 6px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; }

/* ---------- header and footer ---------- */
#top { background: rgba(14, 21, 19, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand-lock { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 42px; height: 24px; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.brand-word { height: 22px; width: auto; color: var(--ink); }
.foot-brand .brand-word { height: 20px; }
.demo-strip { background: #2a2210; color: var(--brass-l); border-bottom: 1px solid rgba(217, 180, 101, 0.3); }
.demo-strip b { color: var(--brass); }

/* ---------- buttons: the lit call button is the one action ---------- */
.btn { border-radius: var(--r-pill); }
.btn.primary, .btn.primary:hover { background: var(--lamp); color: var(--on-accent); border-color: var(--lamp); font-weight: 600; }
.btn.primary:hover { background: #ff7d55; }
.call { gap: 10px; }
.call-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-accent); box-shadow: 0 0 0 3px rgba(26, 13, 7, 0.25); flex: none; }

/* ---------- screws: a hand-made detail on plates ---------- */
.screw { width: 9px; height: 9px; border-radius: 50%; background: var(--brass-d); position: relative; flex: none; }
.screw::after { content: ""; position: absolute; left: 1.5px; right: 1.5px; top: 4px; height: 1px; background: rgba(0, 0, 0, 0.55); transform: rotate(35deg); }

/* ---------- the floor dial ---------- */
.dial { display: block; width: 100%; height: auto; overflow: visible; }
.dial-ring { fill: none; stroke: var(--brass); stroke-width: 7; stroke-linecap: round; }
.dial-tick { stroke: var(--brass); stroke-opacity: 0.5; stroke-width: 1.6; stroke-linecap: round; }
.dial-tick.big { stroke-opacity: 0.9; stroke-width: 2.4; }
.dial-lamp { fill: #2b332f; stroke: rgba(217, 180, 101, 0.45); stroke-width: 1; }
.dial-lamp.on { fill: var(--lamp); stroke: var(--lamp); }
.dial-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--ink-2); text-anchor: middle; }
.dial-label.on { fill: var(--lamp); }
.dial-label.ground { fill: var(--ink); }
.dial-roof { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.dial-now { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3 3; stroke-linecap: round; opacity: 0.9; }
.dial-needle { transform: rotate(var(--deg)); transform-origin: 0 0; }
.dial-needle-body { fill: var(--brass-l); }
.dial-hub { fill: var(--brass); }
.dial-hub-in { fill: var(--bg); }
.dial-mini .dial-ring { stroke-width: 16; }
.dial-mini .dial-tick { display: none; }
.dial-mini .dial-needle-body { fill: var(--lamp); }
[data-motion="on"] .dial-needle.sweep { animation: needle 900ms var(--ease) both 150ms; }
@keyframes needle { 0% { transform: rotate(0deg); } 72% { transform: rotate(calc(var(--deg) + 2deg)); } 100% { transform: rotate(var(--deg)); } }

/* ---------- home: the lobby ---------- */
.lobby { padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--bg), var(--bg)) padding-box; }
.lobby-in { display: grid; gap: 18px; justify-items: center; }
.hero-dial { width: min(560px, 92vw); margin-top: 6px; }
.hero-caption { color: var(--muted); font-size: 13px; min-height: 1.4em; margin-top: -6px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: min(860px, 100%); margin-top: 4px; }
.door { background: var(--surface); border: 1px solid var(--line-2); padding: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 28px); display: flex; align-items: center; min-height: clamp(110px, 16vw, 170px); position: relative; }
.door.left { justify-content: flex-end; border-radius: var(--r) 2px 2px var(--r); }
.door.right { justify-content: flex-start; border-radius: 2px var(--r) var(--r) 2px; }
.door::after { content: ""; position: absolute; top: 18%; bottom: 18%; width: 2px; background: var(--line-2); }
.door.left::after { right: 14px; }
.door.right::after { left: 14px; }
.door-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6.4vw, 74px); line-height: 0.98; letter-spacing: -0.02em; }
.door.right .door-word { color: var(--brass); }
.lobby .lede { max-width: 680px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); }
.lobby .lede b { color: var(--ink); font-weight: 600; }
.ctas.center { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 6px; }
.fact { display: grid; justify-items: center; gap: 2px; }
.fact b { font-size: 20px; color: var(--brass); font-weight: 600; }
.fact span { font-size: 13px; color: var(--muted); }
.capacity { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid rgba(217, 180, 101, 0.35); border-radius: 6px; color: var(--brass-l); font-size: 12px; letter-spacing: 0.04em; background: #19190f; }

/* ---------- the felt board: the floor guide ---------- */
.board { background: var(--felt); border: 1px solid #1f2622; border-radius: var(--r-lg); padding: clamp(14px, 2.5vw, 24px); box-shadow: inset 0 0 0 6px #121815; }
.board-title { color: var(--brass); font-size: 12px; letter-spacing: 0.3em; text-align: center; padding-bottom: 12px; border-bottom: 1px dashed rgba(243, 239, 230, 0.14); margin-bottom: 4px; }
.board-row { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px 4px; border-bottom: 1px dashed rgba(243, 239, 230, 0.1); align-items: start; }
.board-row:last-child { border-bottom: 0; }
.board-floor { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--bg); background: var(--brass); font-size: 16px; }
.board-row.ground .board-floor { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.board-row.basement .board-floor { background: transparent; color: var(--brass); border: 1.5px dashed var(--brass); }
.board-what { display: grid; gap: 3px; }
.board-what b { font-family: var(--font-mono); font-weight: 500; color: #f3efe6; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.board-what span { color: var(--ink-2); }

/* ---------- the lobby directory: coins ---------- */
.directory { background: var(--felt); border: 1px solid #1f2622; border-radius: var(--r-lg); overflow: hidden; }
.dir-row { display: grid; grid-template-columns: 92px 52px minmax(0, 1.6fr) minmax(0, 1fr) 96px 64px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px dashed rgba(243, 239, 230, 0.1); color: inherit; text-decoration: none; }
.dir-row:last-child { border-bottom: 0; }
a.dir-row:hover { background: #121815; }
.dir-head { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding-block: 10px; }
.dir-floor { color: var(--brass); font-weight: 600; font-size: 16px; display: grid; }
.dir-floor small, .dir-now small { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; }
.dir-head .dir-floor { color: var(--muted); font-size: 11px; }
.dir-dial .dial { width: 48px; }
.dir-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dir-name { display: grid; min-width: 0; }
.dir-name b { color: #f3efe6; font-weight: 600; }
.dir-name > span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.pair-tag { color: var(--muted); font-size: 12px; margin-left: 6px; }
.dir-vault { font-size: 13px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-now { text-align: right; display: grid; font-weight: 500; }
.dir-age { text-align: right; font-size: 12px; }
.coin-pic { border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; display: inline-grid; place-items: center; }
.coin-pic.blank { padding: 6px; }
.tone-window { color: var(--warn); }
.tone-held { color: var(--ink-2); }
.tone-burned { color: var(--lamp); }
.tone-refunded { color: var(--good); }
.dir-row.sk { height: 64px; }
.dir-row.sk .sk { grid-column: 1 / -1; height: 18px; border-radius: 6px; background: var(--surface); }

/* ---------- the logbook ---------- */
.logbook { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.log-row { display: grid; grid-template-columns: 70px 74px minmax(0, 1fr) auto 70px; gap: 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.log-row:last-child { border-bottom: 0; }
.logbook > p { padding: 16px 18px; margin: 0; }
.ca-section { margin-top: 8px; }
.coin-main .log-row { grid-template-columns: 70px minmax(0, 1fr) auto 64px; }
.log-kind { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.k-launch .log-kind { color: var(--brass); }
.k-burn .log-kind { color: var(--lamp); }
.k-refund .log-kind { color: var(--good); }
.log-sym { color: var(--ink); font-weight: 500; text-decoration: none; }
.log-text { color: var(--ink-2); }
.tx { font-size: 12px; color: var(--brass); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.log-time { font-size: 12px; text-align: right; }

/* ---------- the CA plate ---------- */
.ca-section { padding-top: 0; }
.ca-plate { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; padding: 18px 22px; border-radius: 8px; background: #1a1910; border: 1px solid rgba(217, 180, 101, 0.4); }
.ca-plate .label { color: var(--brass); }
.ca-plate .ca-addr { color: var(--ink); word-break: break-all; }
.ca-plate .ca-soon { color: var(--brass-l); font-size: 18px; }
.ca-plate .ca-note { color: var(--muted); font-size: 13px; margin-left: 8px; }

/* ---------- the closing band ---------- */
.band { background: var(--brass); color: #16130a; }
.band-in { padding-block: clamp(36px, 6vw, 64px); display: grid; gap: 12px; justify-items: start; }
.band h2 { color: #16130a; font-size: clamp(28px, 4vw, 44px); }
.band p { color: #3b3220; max-width: 560px; }

/* ---------- a coin's plate ---------- */
.plate-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-top: clamp(20px, 4vw, 40px); }
.plate-id { display: flex; gap: 18px; align-items: flex-start; }
.plate-id h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.plate-id .sym { color: var(--brass); font-size: 0.55em; font-weight: 500; }
.plate-id p { margin: 8px 0 12px; }
.plate-dial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 12px; }
.plate-dial-key { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-top: 6px; flex-wrap: wrap; }
.key-opened { color: var(--brass); }
.key-opened::before { content: ""; display: inline-block; width: 14px; height: 3px; background: var(--brass-l); margin-right: 6px; vertical-align: middle; }
.key-now::before { content: ""; display: inline-block; width: 14px; border-top: 2px dashed var(--ink); margin-right: 6px; vertical-align: middle; }
.coin-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 20px; }
.coin-stats .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat-value { color: var(--ink); }
.coin-stats .stat:first-child .stat-value { color: var(--brass); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; padding-block: 16px 48px; align-items: start; }
.coin-main, .coin-side { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); }
.vault-chip { font-family: var(--font-mono); font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin-top: 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.facts.small { font-size: 13px; }
.split { display: flex; height: 34px; border-radius: 8px; overflow: hidden; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; }
.split span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; }
.split .split-you { background: var(--brass); color: #16130a; }
.split .split-house { background: var(--surface-2); color: var(--ink-2); justify-content: center; padding: 0 4px; }
.chart-line { fill: none; stroke: var(--brass-l); stroke-width: 2; }
.chart-ground { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; }
.chart-floor { stroke: var(--brass); stroke-dasharray: 2 4; stroke-width: 1; }
.chart-rule-label { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }

/* ---------- launch: the call panel ---------- */
.call-panel { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px; background: #1a1910; border: 1px solid rgba(217, 180, 101, 0.35); border-radius: var(--r-lg); justify-content: center; }
.floor-btn { display: grid; justify-items: center; gap: 6px; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 2px; }
.floor-ring { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 3px solid var(--brass); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.floor-n { font-size: 18px; font-weight: 600; color: var(--brass-l); }
.floor-cap { font-size: 11px; color: var(--muted); }
.floor-btn[aria-pressed="true"] .floor-ring { border-color: var(--lamp); box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.22); }
.floor-btn[aria-pressed="true"] .floor-n { color: var(--lamp); }
.floor-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.readout { margin-top: 14px; display: grid; gap: 12px; }
.big-line { font-size: 17px; }
.read-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.read-num { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.read-num b { font-size: 17px; }
.read-num .muted { font-size: 12px; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.mode { text-align: left; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; }
.mode b { font-size: 16px; }
.mode span { font-size: 13px; }
.mode[aria-checked="true"] { border-color: var(--lamp); }
.mode-more { display: grid; gap: 10px; margin-top: 12px; }
.mode-more:empty { display: none; }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.pair { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; }
.pair span { font-size: 12px; }
.pair[aria-pressed="true"] { border-color: var(--brass); }
.side-card { display: grid; gap: 10px; }
.preview-dial { padding: 6px 4px 0; }
.launch-side { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 12px; }
.pay-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; background: var(--surface-2); border-radius: var(--r); padding: 14px; margin: 10px 0; }
.pay-to { word-break: break-all; font-size: 14px; }
.received { color: var(--brass); margin-top: 6px; }

/* ---------- how it works ---------- */
.how-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 24px; align-items: center; }
.how-dial { display: grid; gap: 8px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.detail h3 { color: var(--brass); margin-bottom: 6px; }
.detail p { color: var(--ink-2); }
.risks { display: grid; gap: 8px; padding-left: 18px; color: var(--ink-2); }
.count { margin: 10px 0; font-size: 13px; }
.chips { flex-wrap: wrap; }
.controls { flex-wrap: wrap; }
.controls .input { min-width: 0; flex: 1 1 220px; }

.empty-pic .dial { width: 220px; margin: 0 auto 8px; }

/* ---------- phones ---------- */
@media (max-width: 980px) {
  .coin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coin-grid, .plate-head, .how-top { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: 84px 44px minmax(0, 1fr) 90px; }
  .dir-vault, .dir-age { display: none; }
}
@media (max-width: 640px) {
  .doors { grid-template-columns: 1fr; }
  .door.left, .door.right { justify-content: center; border-radius: var(--r); min-height: 0; padding: 18px; }
  .door::after { display: none; }
  .door-word { font-size: 40px; }
  .dir-row { grid-template-columns: 72px minmax(0, 1fr) 74px; gap: 10px; padding: 12px; }
  .dir-dial { display: none; }
  .dir-id .coin-pic { width: 32px; height: 32px; }
  .log-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .log-kind { grid-column: 1; }
  .log-sym { display: none; }
  .log-text { grid-column: 1 / -1; }
  .coin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes, .read-nums, .details { grid-template-columns: 1fr; }
  .floor-ring { width: 58px; height: 58px; }
  .pay-box { grid-template-columns: 1fr auto; }
  .pay-box .label { grid-column: 1 / -1; }
  .hero-facts { gap: 10px 18px; }
  .capacity { font-size: 11px; }
}
