:root {
  --bg: #161021;
  --bg2: #221832;
  --card: #2c2140;
  --card2: #3a2c52;
  --line: #4a3b63;
  --ink: #f8eff8;
  --muted: #b9a7c9;
  --accent: #ff5d8f;
  --accent-d: #c23562;
  --gold: #f4c95d;
  --good: #6fdc9b;
  --t1: #9aa3b5; --t2: #6fdc9b; --t3: #5db7ff; --t4: #c58cff; --t5: #f4c95d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0d0915; color: var(--ink); overflow: hidden; overscroll-behavior: none;
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#app { max-width: 480px; margin: 0 auto; height: 100vh; height: 100dvh; position: relative; overflow: hidden; background: var(--bg); }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.primary { background: var(--accent); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.primary:disabled { background: var(--line); color: var(--muted); cursor: default; }
.big { width: 100%; padding: 13px; font-size: 16.5px; margin-top: 14px; }
.danger { background: #5a2330 !important; color: #ffd0d0; }
.face { background: #2a1730 url(carmen.webp) no-repeat; background-size: 520% auto; background-position: 57% 4%; border-radius: 50%; }

/* Start */
.screen { padding: 12px; height: 100%; overflow-y: auto; }
.start-card { background: var(--card); border-radius: 20px; padding: 22px; margin-top: 24px; text-align: center; }
.start-photo { display: inline-block; width: 120px; height: 120px; border: 3px solid var(--gold); }
.start-card h1 { margin: 12px 0 4px; font-size: 26px; }
.start-card h2 { margin: 4px 0 10px; color: var(--gold); }
.start-card label { display: block; text-align: left; margin-top: 18px; font-size: 13px; color: var(--muted); }
.start-card input { width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 16px; }
.swatches { display: flex; gap: 10px; justify-content: center; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; }
.swatches button.on { border-color: var(--gold); }
.trait { background: var(--bg2); padding: 10px; border-radius: 10px; }

/* Scene */
#game { position: absolute; inset: 0; }
#scene { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #4a2a5c 0%, #2a1a3c 45%, #160f22 100%); }
#world { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.floor { position: absolute; left: -10%; right: -10%; top: 54%; bottom: -10%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 40px), linear-gradient(180deg, #2b1d3d, #1a1228); }
#stage { position: absolute; left: 50%; top: 47%; width: 34%; height: 33%; transform: translate(-50%, -50%); cursor: pointer; }
#lifter { position: absolute; inset: 0 0 10% 0; display: flex; justify-content: center; }
#lifter svg { height: 100%; overflow: visible; }
#lifter.pumped svg { filter: drop-shadow(0 0 10px rgba(255, 93, 143, .55)); }
#lifter.flex svg { animation: flex .25s ease; }
@keyframes flex { 50% { transform: scale(1.05); } }
.stage-plate { position: absolute; left: -10%; right: -10%; bottom: 0; height: 16%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #5a3a72, #2b1d3d 70%); box-shadow: 0 0 24px rgba(244,201,93,.15); }
.tap-hint { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; color: var(--gold);
  background: rgba(0,0,0,.35); border-radius: 99px; padding: 2px 9px; animation: hint 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes hint { 50% { opacity: .45; } }

.station { position: absolute; transform: translate(-50%, -50%); width: 25%; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.station .glyph { width: 100%; max-width: 88px; aspect-ratio: 4 / 3; border-radius: 14px; background: rgba(255,255,255,.04);
  border: 2px solid var(--t1); display: flex; align-items: center; justify-content: center; position: relative; }
.station .glyph svg { width: 78%; height: 78%; }
.station.t2 .glyph { border-color: var(--t2); } .station.t3 .glyph { border-color: var(--t3); }
.station.t4 .glyph { border-color: var(--t4); } .station.t5 .glyph { border-color: var(--t5); box-shadow: 0 0 14px rgba(244,201,93,.4); }
.station.locked .glyph { border-style: dashed; border-color: var(--line); opacity: .55; }
.station.sel .glyph { box-shadow: 0 0 0 3px var(--gold); }
.station .partners { display: flex; gap: 2px; height: 12px; margin-top: 3px; }
.station .partners i { width: 6px; height: 11px; border-radius: 3px 3px 1px 1px; background: var(--muted); opacity: .8; }
.station .slabel { margin-top: 2px; font-size: 10.5px; white-space: nowrap; background: rgba(0,0,0,.45); border-radius: 99px; padding: 1px 7px; color: var(--ink); }
.station .sname { font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 1px; }
.station .dot { top: -5px; right: -5px; }
.station.locked .slabel { color: var(--muted); }
.dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); top: 4px; right: 4px; box-shadow: 0 0 0 2px var(--bg); }

#floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; font-weight: 700; color: var(--gold); animation: up 1s ease-out forwards; text-shadow: 0 1px 3px #000; font-size: 14px; white-space: nowrap; }
@keyframes up { to { transform: translateY(-55px); opacity: 0; } }

.arrow { position: absolute; top: 25%; width: 36px; height: 56px; border-radius: 10px; background: rgba(0,0,0,.45); font-size: 30px; line-height: 1; z-index: 6; color: var(--ink); }
#arrow-l { left: 6px; } #arrow-r { right: 6px; }

/* HUD */
.hud { position: absolute; top: 0; left: 0; right: 0; z-index: 8; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 10px 8px; background: linear-gradient(180deg, rgba(13,9,21,.85), rgba(13,9,21,0)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-left { display: flex; align-items: center; gap: 7px; min-width: 0; }
.avatar { width: 34px; height: 34px; border: 2px solid var(--gold); flex: none; }
.h-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.h-sub { font-size: 12px; color: var(--muted); }
.hud-mid { text-align: center; }
.gains { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rate { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hud-right { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 11px; background: rgba(44,33,64,.9); font-size: 18px; }
.icon-btn .dot { top: -3px; right: -3px; }

.coach { position: absolute; top: calc(max(8px, env(safe-area-inset-top)) + 52px); left: 10px; right: 10px; z-index: 7; display: flex; gap: 8px; align-items: center; animation: pop .3s ease; }
.coach-photo { width: 34px; height: 34px; border: 2px solid var(--gold); flex: none; }
.bubble { background: rgba(44,33,64,.95); border-radius: 4px 14px 14px 14px; padding: 6px 10px; font-size: 13px; line-height: 1.3; }
.bubble b { color: var(--gold); font-size: 12px; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } }

.spotter { position: absolute; right: 12px; top: 24%; z-index: 9; display: flex; gap: 8px; align-items: center; text-align: left;
  background: var(--gold); color: #2a1730; border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 13px; line-height: 1.2; animation: pulse 1s infinite; }
.spot-face { width: 40px; height: 40px; display: inline-block; border: 2px solid #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,201,93,.7); } 70% { box-shadow: 0 0 0 14px rgba(244,201,93,0); } 100% { box-shadow: 0 0 0 0 rgba(244,201,93,0); } }
.boost { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(8px, env(safe-area-inset-top)) + 54px); z-index: 7; background: #4b3a14; color: var(--gold);
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; }

/* Corners */
.corner-l { position: absolute; left: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shake-btn { position: relative; width: 48px; height: 48px; border-radius: 14px; background: rgba(47,90,67,.95); font-size: 19px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.shake-btn span { font-size: 11px; font-weight: 700; color: #dfffe9; }
.shake-btn small { position: absolute; top: -6px; right: -6px; background: var(--bg); border-radius: 99px; font-size: 10px; padding: 0 5px; color: var(--muted); }
.shake-btn:disabled { opacity: .4; }
.pump { position: relative; width: 66px; height: 66px; }
.pump svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pump-bg { fill: rgba(13,9,21,.85); stroke: var(--line); stroke-width: 5; }
.pump-ring { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 169.6; transition: stroke-dashoffset .25s linear; }
.pump-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.pump-text b { font-size: 14px; color: var(--accent); }
.pump-text span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pump.off .pump-text b { color: var(--muted); }
.corner-r { position: absolute; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 7; background: rgba(44,33,64,.95); border-radius: 12px;
  padding: 6px 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 104px; }
.corner-r.ready { box-shadow: 0 0 0 2px var(--gold); animation: pulse 1.4s infinite; }
.cr-top { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-name { font-size: 11px; color: var(--muted); }
.cr-bar { width: 100%; height: 5px; border-radius: 9px; background: #120c1c; overflow: hidden; display: block; }
.cr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, var(--gold)); }

/* Bottom bar */
.bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; gap: 6px; padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(13,9,21,.95) 60%, rgba(13,9,21,0)); }
.bar button { position: relative; flex: 1; height: 48px; border-radius: 12px; background: var(--card); font-size: 22px; }
.bar button .dot { top: 5px; right: 8px; }

/* Station panel */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 10; background: var(--bg2); border-radius: 18px 18px 0 0;
  padding: 12px 14px max(10px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -8px 24px rgba(0,0,0,.4);
  animation: slide .3s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateY(100%); } }
.sh-head { display: flex; align-items: center; gap: 8px; }
.sh-title { flex: 1; min-width: 0; }
.sh-title b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-title span { font-size: 12px; color: var(--muted); }
.tier-btn { background: var(--card2); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center; color: var(--muted); }
.tier-btn.ready { background: var(--gold); color: #2a1730; }
.tier-btn small { display: block; font-weight: 400; font-size: 11px; }
.sh-x { width: 34px; height: 34px; border-radius: 10px; background: var(--card); font-size: 16px; color: var(--muted); }
.sh-prog { height: 6px; border-radius: 9px; background: #120c1c; overflow: hidden; }
.sh-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-d), var(--accent)); }
.sh-up { background: var(--card); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.sh-up .u-name { font-weight: 700; font-size: 15px; }
.sh-up .u-desc { font-size: 12.5px; color: var(--muted); grid-column: 1; }
.sh-up .u-stat { font-size: 13px; grid-column: 1; font-variant-numeric: tabular-nums; }
.sh-up .u-stat em { font-style: normal; color: var(--accent); }
.up-btn { grid-column: 2; grid-row: 1 / span 3; min-width: 104px; background: var(--accent); color: #fff; border-radius: 12px; padding: 9px 8px; font-weight: 700; line-height: 1.15;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.up-btn small { display: block; font-weight: 500; font-size: 12px; opacity: .9; }
.up-btn:disabled { background: var(--line); color: var(--muted); }
.icons { display: flex; gap: 8px; justify-content: space-between; }
.icons button { position: relative; flex: 1; aspect-ratio: 1; max-width: 64px; border-radius: 12px; background: var(--card); border: 2px solid transparent; font-size: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.icons button small { font-size: 10px; color: var(--muted); }
.icons button.on { border-color: #fff; }
.icons button.max small { color: var(--gold); }
.icons .dot { top: -4px; right: -4px; }
.sh-foot { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: auto; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modes.six { grid-template-columns: repeat(3, 1fr); }
.mode { background: var(--card); border-radius: 12px; padding: 10px 8px; border: 2px solid transparent; text-align: center; }
.mode.on { border-color: var(--gold); }
.mode b { display: block; font-size: 14px; }
.mode span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Full-screen panels */
.panel { position: absolute; inset: 0; z-index: 12; background: var(--bg); display: flex; flex-direction: column; animation: slide .3s cubic-bezier(.2,.8,.2,1); }
.panel-head { padding: max(12px, env(safe-area-inset-top)) 16px 6px; text-align: center; }
.panel-head h2 { margin: 0; font-size: 19px; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 14px 10px; }
.panel-x { margin: 6px auto max(10px, env(safe-area-inset-bottom)); width: 64px; height: 44px; border-radius: 12px; background: var(--card); font-size: 18px; flex: none; }
.card { background: var(--card); border-radius: 14px; padding: 11px 13px; margin-bottom: 8px; }
.card .yr { color: var(--gold); font-size: 12px; font-weight: 600; }
.card h4 { margin: 2px 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.card.locked { opacity: .45; }
.quote { border-left: 3px solid var(--gold); padding-left: 10px; font-style: italic; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-card { position: relative; background: var(--card); border-radius: 14px; padding: 10px; text-align: left; border-left: 4px solid var(--t1); }
.st-card.t2 { border-left-color: var(--t2); } .st-card.t3 { border-left-color: var(--t3); } .st-card.t4 { border-left-color: var(--t4); } .st-card.t5 { border-left-color: var(--t5); }
.st-card b { display: block; font-size: 14px; } .st-card span { display: block; font-size: 12px; color: var(--muted); }
.st-card.locked { opacity: .5; }

/* Shows */
.divs { display: flex; gap: 6px; }
.divs button { flex: 1; background: var(--card); border-radius: 12px; padding: 9px 4px; }
.divs button.on { outline: 2px solid var(--gold); }
.divs small { display: block; color: var(--muted); font-size: 11.5px; }
.showbox { background: var(--card); border-radius: 16px; padding: 12px; margin-top: 10px; }
.showbox h3 { margin: 0 0 4px; font-size: 16px; }
.score-bar { height: 12px; background: #120c1c; border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.score-fill { height: 100%; background: linear-gradient(90deg, #ffb347, var(--gold)); }
.ladder { display: flex; gap: 4px; margin: 0 0 10px; }
.ladder span { flex: 1; text-align: center; font-size: 11px; padding: 6px 2px; border-radius: 8px; background: var(--bg2); color: var(--muted); }
.ladder span.won { background: #4b3a14; color: var(--gold); }
.ladder span.next { outline: 1px solid var(--gold); color: var(--ink); }
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.trade div { background: var(--bg2); border-radius: 10px; padding: 8px; }
.trade b { display: block; font-size: 12px; color: var(--gold); margin-bottom: 2px; }
.balance { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 4px 8px; font-size: 12px; align-items: center; margin-top: 8px; }
.balance .b { height: 7px; border-radius: 9px; background: #120c1c; position: relative; overflow: hidden; }
.balance .b i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 9px; }
.balance .b.want i { background: var(--muted); }

/* Quests */
.q-top { background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.chests { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.chest { flex: 1; background: var(--bg2); border-radius: 10px; padding: 8px 2px; text-align: center; font-size: 12px; border: 2px solid transparent; }
.chest b { display: block; font-size: 18px; }
.chest.ready { border-color: var(--gold); animation: pulse 1.4s infinite; }
.chest.open { opacity: .45; }
.q-bar { height: 8px; background: #120c1c; border-radius: 9px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--accent); }
.q-pts { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.quest { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.quest .qn { font-weight: 600; font-size: 14px; }
.quest .qp { font-size: 12px; color: var(--muted); }
.quest .qb { grid-column: 1; height: 6px; background: #120c1c; border-radius: 9px; overflow: hidden; }
.quest .qb i { display: block; height: 100%; background: var(--good); }
.quest button { grid-column: 2; grid-row: 1 / span 3; min-width: 76px; }

/* Modal */
.modal { position: absolute; inset: 0; background: rgba(10, 4, 12, .78); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.modal-card { background: var(--card); border-radius: 20px; padding: 20px; max-width: 420px; width: 100%; text-align: center; max-height: 92%; overflow-y: auto; }
.modal-card h2 { margin: 6px 0; color: var(--gold); }
.modal-card .big-n { font-size: 28px; font-weight: 800; }
.dev-card { text-align: left; }
.dev-card h3 { margin: 0 0 4px; }
.row { display: flex; gap: 6px; }
.row button { flex: 1; background: var(--bg2); border-radius: 10px; padding: 10px; }
.row button.on { background: var(--accent); color: #fff; }

@media (max-height: 700px) {
  .station .sname { display: none; }
  .gains { font-size: 22px; }
  .sheet { height: 56%; }
}

#world.zoom .station:not(.sel) { opacity: .2; }
#world.zoom .station:not(.sel) .sname, #world.zoom .station:not(.sel) .slabel { visibility: hidden; }
#world.zoom .tap-hint { display: none; }

/* v4: activities with their own rules, progressive reveal */
.station.teaser .glyph { border-style: dashed; border-color: var(--line); background: rgba(255,255,255,.02); }
.station.teaser .glyph svg { display: none; }
.station.teaser .glyph::after { content: "?"; font-size: 30px; font-weight: 800; color: var(--muted); }
.station.teaser .sname { color: var(--muted); }
.station .glyph { transition: border-color .3s; }
.station.reveal { animation: reveal .8s ease; }
@keyframes reveal { 0% { transform: translate(-50%,-50%) scale(.4); opacity: 0; } 70% { transform: translate(-50%,-50%) scale(1.12); } 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.urow { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 8px 10px; }
.urow .ic { grid-row: 1 / span 2; font-size: 22px; text-align: center; }
.urow .un { font-weight: 700; font-size: 14px; }
.urow .un small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.urow .ud { font-size: 12px; color: var(--muted); grid-column: 2; }
.urow .ud em { font-style: normal; color: var(--accent); }
.urow .buy { grid-column: 3; grid-row: 1 / span 2; min-width: 84px; background: var(--accent); color: #fff; border-radius: 10px; padding: 7px 6px; font-weight: 700; font-size: 13px; line-height: 1.15;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; position: relative; }
.urow .buy small { display: block; font-weight: 500; font-size: 11.5px; opacity: .9; }
.urow .buy:disabled { background: var(--line); color: var(--muted); }
.urow .buy.coins:not(:disabled) { background: #b8892a; }
.urow.done { opacity: .55; }
.rule { font-size: 12.5px; color: var(--gold); background: rgba(244,201,93,.08); border-radius: 10px; padding: 7px 10px; }
.big-action { width: 100%; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 16px; background: var(--accent); color: #fff; }
.big-action:disabled { background: var(--line); color: var(--muted); }
.build-box { background: var(--card); border-radius: 14px; padding: 14px; text-align: center; }
.build-box p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }
.equip { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.equip b { flex: 1; }

/* v4.1: boost label sits in the HUD under the rate; next-step line on the Training Floor */
.boost { position: static; transform: none; display: inline-block; margin-top: 3px; padding: 1px 9px; font-size: 11.5px; }
.next-step { background: var(--card); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.next-step .ns-top { display: flex; justify-content: space-between; gap: 8px; }
.next-step .ns-top span { color: var(--muted); white-space: nowrap; }
.next-step .ns-bar { height: 6px; border-radius: 9px; background: #120c1c; overflow: hidden; margin-top: 5px; }
.next-step .ns-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-d), var(--accent)); }

.icons button.locked-g { border: 2px dashed var(--line); opacity: .85; }
.icons button.locked-g.on { border: 2px solid #fff; }
.icons button.locked-g small { color: var(--gold); }

/* one room panel: fixed slot grid */
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.slots button { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--card); border: 2px solid transparent; font-size: 21px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.slots button small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.slots button.on { border-color: #fff; }
.slots button.grey { opacity: .42; }
.slots button.grey.on { opacity: .75; }
.slots button.max small { color: var(--gold); }
.slots .dot { top: -4px; right: -4px; }
.up-btn.coins:not(:disabled) { background: #b8892a; }
.sh-body .rule { font-size: 12px; padding: 6px 9px; }
