/* Trump Tower UI theme: gold / navy / marble (FR-100, FR-120 palette). */
:root {
  --gold: #d4af37; --gold-hi: #ffe680; --gold-shade: #9c7a1c; --gold-deep: #5e4710;
  --marble: #f4f1ea; --marble2: #d9d4c7; --marble3: #b5ad9c;
  --navy: #1b2340; --night: #0b1026; --navy2: #2c3a66;
  --red: #c8102e; --green: #4caf50; --yellow: #f6c945; --stress-red: #e53935;
  --font: "Trebuchet MS", "Verdana", system-ui, sans-serif;
  --mono: "Courier New", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--marble); font: 14px/1.35 var(--font); overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { position: fixed; inset: 0; }
button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 1px; }
.hidden { display: none !important; }

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
#app > * { flex: none; }
#app > #stage { flex: 1 1 auto; }

/* Info bar */
#infobar { display: flex; align-items: center; gap: 14px; padding: 6px 10px; background: linear-gradient(var(--navy), var(--night)); border-bottom: 2px solid var(--gold); white-space: nowrap; overflow: hidden; }
.ib-name { font-weight: bold; color: var(--gold-hi); letter-spacing: 1px; text-transform: uppercase; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ib-stars { background: none; border: 1px solid var(--gold-shade); color: var(--gold); border-radius: 3px; padding: 2px 8px; font-size: 16px; }
.ib-stars:hover { background: rgba(212,175,55,.15); }
.ib-funds { color: #b9f6ca; font-family: var(--mono); font-weight: bold; }
.ib-funds.neg { color: #ff8a80; }
.ib-pop { color: var(--marble); }
.ib-date, .ib-phase { color: var(--marble2); font-family: var(--mono); }
.ib-speed { display: inline-flex; gap: 2px; margin-left: auto; }
#infobar button:not(.ib-stars) { background: var(--navy2); color: var(--marble); border: 1px solid var(--gold-shade); border-radius: 4px; padding: 3px 8px; min-width: 36px; min-height: 32px; font-size: 16px; }
#ib-mute.sound-off { border-color: var(--stress-red); }
#infobar button.active { background: var(--gold); color: var(--navy); font-weight: bold; }

/* Build bar: only buildable tools, icon + label, finger-sized */
#buildbar { display: flex; flex-wrap: nowrap; overflow-x: scroll; scrollbar-width: thin; gap: 4px; padding: 5px 8px; background: #141b33; border-bottom: 2px solid var(--gold-deep); position: relative; z-index: 5; }
.bb-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--navy2); color: var(--marble); border: 1px solid #45507a; border-radius: 4px; padding: 4px 10px 4px 6px; min-height: 40px; }
.bb-btn:hover { border-color: var(--gold); }
.bb-btn.selected { background: var(--gold); color: var(--navy); border-color: var(--gold-hi); font-weight: bold; }
.bb-icon { width: 24px; height: 24px; image-rendering: pixelated; flex: none; pointer-events: none; }
.coach-pulse { animation: pulse 1s ease-in-out infinite; box-shadow: 0 0 0 3px var(--gold-hi); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,230,128,.25); } }

/* Status line: the only build feedback text (never covers the tower) */
#statusbar { display: flex; align-items: center; gap: 8px; padding: 2px 8px; background: #0f1530; border-bottom: 1px solid #2c3555; min-height: 28px; }
#statusline { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--marble2); }
#statusline[data-kind=ok] { color: #b9f6ca; } #statusline[data-kind=warn] { color: var(--yellow); } #statusline[data-kind=bad] { color: #ff8a80; }
.zoom { display: inline-flex; gap: 3px; flex: none; }
.zoom button { background: var(--navy2); color: var(--marble); border: 1px solid var(--gold-shade); border-radius: 4px; min-width: 32px; min-height: 26px; font-size: 16px; line-height: 1; }

/* Stage */
#stage { position: relative; overflow: hidden; min-height: 0; }
#tower { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#paused-flag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: rgba(27,35,64,.85); border: 1px solid var(--gold); color: var(--gold-hi); padding: 2px 12px; letter-spacing: 3px; font-weight: bold; pointer-events: none; }

/* Inspector */
#inspector { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; background: rgba(20,27,51,.97); border-left: 2px solid var(--gold); padding: 10px 12px; overflow-y: auto; transition: transform .2s ease; z-index: 4; }
#inspector.closed { transform: translateX(105%); }
.ins-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gold-shade); padding-bottom: 6px; margin-bottom: 8px; }
.ins-head h2 { margin: 0; font-size: 17px; color: var(--gold-hi); }
.ins-close { background: none; border: 1px solid var(--gold-shade); color: var(--marble); border-radius: 3px; }
.ins-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.ins-row span:first-child { color: var(--marble3); }
.ins-flavour { font-style: italic; color: var(--gold-hi); margin: 8px 0; padding: 6px 8px; border-left: 3px solid var(--gold); background: rgba(212,175,55,.08); }
.ins-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ins-actions button, .btn { background: var(--navy2); color: var(--marble); border: 1px solid var(--gold-shade); border-radius: 3px; padding: 4px 9px; }
.ins-actions button.active { background: var(--gold); color: var(--navy); font-weight: bold; }
.ins-actions button.danger { border-color: var(--stress-red); color: #ffcdd2; }
.ins-section { margin-top: 10px; font-size: 12px; color: var(--marble3); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #333c5c; }
.ins-list { font-size: 12px; max-height: 180px; overflow-y: auto; margin: 4px 0; padding: 0; list-style: none; }
.ins-list li { padding: 1px 0; border-bottom: 1px dotted #2c3555; }
.pos { color: #b9f6ca; } .neg { color: #ff8a80; }
.stress-calm { color: #b9f6ca; } .stress-annoyed { color: var(--yellow); } .stress-stressed { color: #ff8a80; }
.warnline { color: #ff8a80; font-weight: bold; }
.bar { height: 8px; background: #2c3555; border-radius: 2px; overflow: hidden; margin: 3px 0 6px; }
.bar > i { display: block; height: 100%; background: var(--gold); }

/* Star panel */
#starpanel { position: absolute; top: 4px; left: 240px; width: 360px; background: var(--navy); border: 2px solid var(--gold); border-radius: 4px; padding: 10px 12px; z-index: 6; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
#starpanel h3 { margin: 0 0 6px; color: var(--gold-hi); }
#starpanel ul { list-style: none; margin: 6px 0; padding: 0; }
#starpanel li { margin: 5px 0; }
#starpanel .fix { display: block; color: var(--marble3); font-size: 12px; margin-left: 22px; }
.tick { display: inline-block; width: 18px; font-weight: bold; }

/* Coach: a slim row under the toolbar (never over the tower) */
#coach { background: var(--marble); color: var(--navy); border-bottom: 2px solid var(--gold); padding: 4px 10px; font-size: 13px; }
#coach b { color: var(--red); }
#coach .coach-skip { float: right; font-size: 12px; background: none; border: none; color: var(--navy2); text-decoration: underline; min-height: 24px; }

/* Ticker */
#ticker { display: flex; align-items: center; height: 30px; background: var(--night); border-top: 2px solid var(--gold); overflow: hidden; }
.ticker-label { background: var(--red); color: #fff; font-weight: bold; padding: 0 10px; height: 100%; display: flex; align-items: center; letter-spacing: 1px; flex: none; }
.ticker-window { position: relative; flex: 1; height: 100%; overflow: hidden; }
#ticker-track { position: absolute; white-space: nowrap; top: 6px; left: 100%; color: var(--gold-hi); }
#ticker-track.run { animation: tick linear forwards; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 100vw)); } }

/* Screens and modals */
#screens { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.screen { position: absolute; inset: 0; pointer-events: auto; background: radial-gradient(circle at 50% 30%, #2c3a66, var(--night) 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.screen.dim { background: rgba(11,16,38,.82); }
.screen h1 { font-size: 54px; margin: 0; color: var(--gold); letter-spacing: 4px; text-shadow: 0 4px 0 var(--gold-deep), 0 8px 20px rgba(0,0,0,.6); text-transform: uppercase; }
.screen .tagline { color: var(--marble2); margin: 8px 0 24px; font-size: 16px; }
.menu { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.big { font-size: 18px; padding: 10px 20px; background: var(--gold); color: var(--navy); border: 2px solid var(--gold-hi); border-radius: 4px; font-weight: bold; box-shadow: 0 4px 0 var(--gold-deep); }
.big:hover:not(:disabled) { filter: brightness(1.08); }
.big:disabled { opacity: .5; cursor: not-allowed; }
.big.alt { background: var(--navy2); color: var(--marble); border-color: var(--gold-shade); box-shadow: 0 4px 0 #0e1430; }
.panel { background: rgba(20,27,51,.96); border: 2px solid var(--gold); border-radius: 6px; padding: 16px 20px; max-width: 920px; width: 100%; }
.panel h2 { margin: 0 0 10px; color: var(--gold-hi); }
.notice { background: rgba(200,16,46,.15); border: 1px solid var(--red); padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; max-width: 520px; text-align: center; }
.funding-wrap { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 16px; max-width: 1180px; width: 100%; align-items: stretch; }
.portrait { background: var(--navy); border: 2px solid var(--gold); border-radius: 6px; padding: 10px; text-align: center; }
.portrait canvas { width: 128px; height: 128px; image-rendering: pixelated; border: 2px solid var(--gold-shade); background: #2c3a66; }
.speech { background: var(--marble); color: var(--navy); border-radius: 8px; padding: 8px 10px; margin-top: 10px; font-size: 13px; position: relative; min-height: 80px; text-align: left; }
.card { background: var(--navy); border: 2px solid var(--gold-shade); border-radius: 6px; padding: 10px; text-align: left; color: var(--marble); }
.card:hover, .card.chosen { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(255,230,128,.3); }
.card canvas { width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; display: block; border: 1px solid var(--gold-deep); }
.card h3 { margin: 8px 0 4px; color: var(--gold-hi); }
.card .pitch { font-style: italic; margin: 4px 0; }
.card .detail { color: var(--marble3); font-size: 12px; }
.confirm-line { margin-top: 14px; font-size: 16px; color: var(--gold-hi); text-align: center; min-height: 24px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.field input { font: 18px var(--font); padding: 8px; background: var(--marble); color: var(--navy); border: 2px solid var(--gold); border-radius: 4px; }
.field small { color: var(--marble3); }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.howto figure { margin: 0; background: var(--navy); border: 1px solid var(--gold-shade); border-radius: 4px; padding: 8px; }
.howto canvas { width: 100%; image-rendering: pixelated; display: block; border: 1px solid var(--gold-deep); }
.howto figcaption b { color: var(--gold-hi); display: block; margin: 6px 0 2px; }
.settings-grid { display: grid; grid-template-columns: 120px 1fr 50px; gap: 8px 12px; align-items: center; margin: 10px 0; }
.settings-grid input[type=range] { width: 100%; accent-color: var(--gold); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status-line { min-height: 20px; color: var(--gold-hi); margin-top: 6px; }

#modal-root .screen { z-index: 40; }
.event-card { max-width: 520px; }
.event-card canvas { width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; border: 2px solid var(--gold-shade); display: block; }
.event-card .choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.event-card .choices button { text-align: left; }

/* Banner */
#banner-root { position: fixed; left: 0; right: 0; top: 76px; z-index: 35; pointer-events: none; display: flex; justify-content: center; }
/* Round 10 (BUGS.md #1): the banner sat over the inspector header and swallowed clicks on its close button for 8 s after
   every promotion and the funding reveal. It is click-through now; it hides itself (and when the inspector opens). */
.banner { pointer-events: none; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi), var(--gold), var(--gold-deep)); color: var(--navy); text-align: center; padding: 10px 20px; border-top: 3px solid var(--gold-hi); border-bottom: 3px solid var(--gold-deep); animation: drop .4s ease-out; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.banner h2 { margin: 0; font-size: 26px; letter-spacing: 2px; text-transform: uppercase; }
.banner p { margin: 4px 0 0; font-weight: bold; }
@keyframes drop { from { transform: translateY(-120%); } }

/* Speech bubble for catchphrase stingers (never audio-only) */
#bubble { position: fixed; z-index: 45; right: 20px; bottom: 44px; background: var(--marble); color: var(--navy); border: 3px solid var(--gold); border-radius: 14px; padding: 10px 16px; font-size: 22px; font-weight: bold; pointer-events: none; animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
#debug { position: fixed; bottom: 36px; left: 4px; z-index: 60; background: rgba(0,0,0,.75); border: 1px solid #0f8; padding: 4px; display: flex; gap: 4px; flex-wrap: wrap; max-width: 420px; }
#debug button { background: #022; color: #0f8; border: 1px solid #0f8; font-size: 11px; }
.greyscale { filter: grayscale(1); }

/* ---------- Phones / narrow screens (tested at 390x844) ---------- */
@media (max-width: 760px) {
  body { font-size: 13px; }
  #infobar { flex-wrap: wrap; gap: 3px 4px; padding: 3px 6px; white-space: normal; }
  .ib-name { display: none; }
  .ib-stars { order: 1; font-size: 13px; padding: 1px 4px; min-height: 30px; letter-spacing: -1px; }
  .ib-funds { order: 2; font-size: 15px; }
  .ib-pop { order: 3; flex: 1 1 auto; font-size: 12px; text-align: right; }
  .ib-date { display: none; }
  .ib-phase { order: 5; font-size: 11px; }
  .ib-speed { order: 6; margin-left: auto; }
  #ib-mute { order: 7; } #ib-menu { order: 8; }
  #infobar button:not(.ib-stars) { min-width: 44px; min-height: 44px; padding: 2px 6px; }
  #buildbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px; }
  #buildbar::-webkit-scrollbar { display: none; }
  .bb-btn { flex-direction: column; gap: 1px; min-width: 56px; min-height: 52px; padding: 3px 4px; font-size: 11px; flex: none; }
  .bb-icon { width: 28px; height: 28px; }
  #statusline { font-size: 12px; white-space: normal; line-height: 1.2; max-height: 2.5em; }
  .zoom button { min-width: 44px; min-height: 36px; }
  #coach { font-size: 12px; padding: 3px 8px; }
  #inspector { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 55%; border-left: none; border-top: 2px solid var(--gold); }
  #inspector.closed { transform: translateY(105%); }
  .ins-actions button { min-height: 44px; }
  #starpanel { left: 6px; right: 6px; width: auto; }
  #ticker { height: 26px; font-size: 12px; }
  .screen h1 { font-size: 34px; letter-spacing: 2px; }
  .funding-wrap { grid-template-columns: 1fr; }
  .portrait { display: flex; gap: 10px; align-items: center; text-align: left; }
  .portrait canvas { width: 72px; height: 72px; flex: none; }
  .speech { margin-top: 0; min-height: 0; }
  .big { min-height: 48px; }
  #bubble { font-size: 18px; bottom: 34px; right: 10px; }
  .banner { padding: 6px 10px; }
  .banner h2 { font-size: 16px; letter-spacing: 1px; }
  .banner p { font-size: 11px; }
}

/* Finale: the lit tower stays visible behind a translucent veil */
.screen.finale-bg { background: rgba(5,8,26,.35); }
.finale-panel { background: rgba(20,27,51,.9); box-shadow: 0 0 40px rgba(255,230,128,.35); }
.finale-panel .portrait canvas { width: 96px; height: 96px; flex: none; }

/* Phase 6 money page */
.money-title { font-size: 34px !important; text-align: center; max-width: 1100px; }
.money-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1180px; width: 100%; margin: 14px 0; }
.money-scene { max-width: 760px; text-align: left; }
.money-row { display: flex; gap: 14px; align-items: flex-start; }
.money-art { width: 50%; aspect-ratio: 16 / 9; image-rendering: pixelated; border: 2px solid var(--gold-shade); flex: none; }
.counter { font: bold 34px var(--mono); color: #b9f6ca; margin-top: 10px; }
.counter.past { color: var(--gold-hi); text-shadow: 0 0 10px rgba(255,230,128,.6); }
.coin-chart { width: 100%; max-width: 560px; aspect-ratio: 360 / 170; display: block; margin: 8px auto; border: 2px solid var(--gold-shade); image-rendering: pixelated; }
.coin-bar { display: flex; gap: 12px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.coin-news { font: bold 13px var(--mono); }
.coin-news.up { color: #00e676; } .coin-news.down { color: #ff8a80; }
.big.sell { font-size: 26px; padding: 12px 48px; background: #00c853; border-color: #b9f6ca; }
.caller { font: bold 16px var(--mono); color: var(--gold-hi); margin: 0 0 6px; }
.ringing { animation: ring .25s ease-in-out infinite alternate; }
@keyframes ring { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.headshake { animation: headshake .5s ease-in-out 4; }
@keyframes headshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 760px) {
  .money-title { font-size: 20px !important; }
  .money-menu { grid-template-columns: 1fr; }
  .money-row { flex-direction: column; }
  .money-art { width: 100%; }
  .counter { font-size: 26px; }
}

/* Round 7: hotel rooms grouped in the toolbar */
.bb-dining, .bb-parking { display: inline-flex; align-items: stretch; gap: 3px; padding: 2px 4px 2px 2px; border: 1px solid #8a6d1f; border-radius: 5px; background: rgba(201,162,39,.14); flex: none; }
.bb-hotel { display: inline-flex; align-items: stretch; gap: 3px; padding: 2px 4px 2px 2px; border: 1px solid #2e7d5a; border-radius: 5px; background: rgba(46,125,90,.18); flex: none; }
.bb-group-label { writing-mode: vertical-rl; transform: rotate(180deg); font: bold 10px var(--mono); color: #86c093; letter-spacing: 1px; padding: 0 1px; align-self: center; }


/* Round 8: full-screen welcome. The hero scene covers the whole viewport edge to edge; title, tagline
   and buttons sit on top (a soft scrim keeps them readable). */
.screen.title-screen { background: #1b2340; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow: hidden auto; }
.title-hero { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; image-rendering: pixelated; z-index: 0; pointer-events: none; }
.title-scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 62% 42% at 50% 46%, rgba(11,16,38,.82), rgba(11,16,38,.45) 70%, rgba(11,16,38,0) 100%); }
.title-screen > :not(canvas):not(.title-scrim) { position: relative; z-index: 1; }
.title-screen h1 { font-size: clamp(40px, 8vw, 96px); }
.title-screen .tagline { font-size: clamp(15px, 1.6vw, 20px); text-shadow: 0 2px 6px rgba(0,0,0,.8); }
@media (orientation: portrait) {
  .screen.title-screen { justify-content: flex-start; padding-top: max(9vh, env(safe-area-inset-top)); }
  .title-scrim { background: linear-gradient(rgba(11,16,38,.55), rgba(11,16,38,.7) 45%, rgba(11,16,38,0) 62%); }
}
.title-screen .menu button.big:disabled { background: #232c4f; opacity: 1; color: #8c92a8; }

/* Round 8: funding scenes - speech-bubble dialogue, coin crash, live art */
.money-side { flex: 1; min-width: 0; }
.talk { display: flex; flex-direction: column; gap: 6px; min-height: 96px; cursor: pointer; margin-top: 4px; }
.talk .say { background: var(--marble); color: var(--navy); border-radius: 10px; padding: 7px 10px; font-size: 14px; position: relative; max-width: 92%; align-self: flex-start; animation: sayIn .18s ease-out; }
.talk .say b { display: block; font: bold 10px var(--mono); letter-spacing: 1px; color: #7a5c1a; margin-bottom: 2px; }
.talk .say::before { content: ''; position: absolute; left: -6px; top: 10px; border: 6px solid transparent; border-right-color: var(--marble); border-left: 0; }
.talk .say.who-you { align-self: flex-end; background: #ffe680; }
.talk .say.who-you::before { left: auto; right: -6px; border-right: 0; border-left: 6px solid #ffe680; border-top-color: transparent; border-bottom-color: transparent; }
.talk .say.who-caller { background: #263238; color: #eceff1; } .talk .say.who-caller b { color: #ff8a80; } .talk .say.who-caller::before { border-right-color: #263238; }
@keyframes sayIn { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.counter.crash { color: #ff1744; text-shadow: 0 0 10px rgba(255,23,68,.55); }
.coin-sold { text-align: center; font: bold 15px var(--mono); color: #b9f6ca; margin: 6px 0 0; }
.money-art { image-rendering: pixelated; }
.talk .ring-bubble { font: bold 15px var(--mono); animation: ring .25s ease-in-out infinite alternate; }

/* Round 10: primary / armed inspector buttons (the build-bar rules tag was removed in round 11) */
.ins-actions button.primary { background: var(--gold); color: var(--navy); font-weight: bold; }
.ins-actions button.armed, .ins-actions button[data-armed="1"] { outline: 2px solid #ffb300; background: #5a3a00; color: #ffe680; }
#ib-funds, #ib-name { cursor: pointer; }
/* Round 13: ▲▼ arrow controls on the selected elevator shaft (span + cost on every arrow) */
#shaft-ctl { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
#shaft-ctl .sc-group { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; gap: 2px; pointer-events: auto; }
#shaft-ctl button { font: bold 11px var(--mono); white-space: nowrap; padding: 2px 6px; min-height: 22px; background: rgba(20,27,51,.94); color: var(--gold-hi); border: 1px solid var(--gold); border-radius: 4px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
#shaft-ctl button:hover { background: var(--gold); color: var(--navy); }
#shaft-ctl button.blocked { color: #ff8a80; border-color: #b71c1c; }
@media (pointer: coarse) { #shaft-ctl button { min-height: 34px; font-size: 12px; padding: 4px 8px; } }
.ins-actions button.blocked { color: #ff8a80; }
