/* enchnt site prototype v2. One scene; pixel props in the language of art/forge.js. */

:root {
  --bg: #0a0809;
  --bg2: #120e11;
  --panel: rgba(18, 13, 15, .58);
  --line: #241d21;
  --frame: #3a3437;
  --frame2: #4d4448;
  --text: #d8dce2;
  --mute: #8f858a;
  --dim: #615659;
  --faint: #3e3639;
  --ember: #ff7a2a;
  --ember2: #ffb35a;
  --emberdk: #a33a14;
  --hot: #fff1c4;
  --warm: #ffe2b8;
  --cyan: #74e8f2;
  --violet: #c7a2ff;
  --crimson: #ff6152;
  --gold: #ffd54f;
  --radiant: #fffdf2;
  --ok: #9fe0a8;
  --bad: #ff7a5a;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --tile: 336px;
  --gap: 12px;
  --side: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 14px/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
img { image-rendering: pixelated; }
a { color: inherit; }
[hidden] { display: none !important; }

/* tier colors: --tc text and bars, --tg faint band, --tw glow */
.t0 { --tc: #d2d7de; --tg: rgba(210, 215, 222, .045); --tw: rgba(210, 215, 222, .25); }
.t1 { --tc: var(--cyan); --tg: rgba(116, 232, 242, .07); --tw: rgba(116, 232, 242, .55); }
.t2 { --tc: var(--violet); --tg: rgba(199, 162, 255, .08); --tw: rgba(185, 138, 255, .6); }
.t3 { --tc: var(--crimson); --tg: rgba(255, 97, 82, .085); --tw: rgba(255, 90, 66, .6); }
.t4 { --tc: var(--gold); --tg: rgba(255, 213, 79, .085); --tw: rgba(255, 213, 79, .6); }
.t5 { --tc: var(--radiant); --tg: rgba(255, 253, 242, .09); --tw: rgba(255, 240, 176, .7); }

/* ------------------------------------------------------------ canvases */

.fx-back, .fx-front { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; }
.fx-back { z-index: 0; }
.fx-front { z-index: 25; }

/* ------------------------------------------------------------ scene grid */

.scene {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--gap) 16px;
  padding: 12px var(--side) 0;
  min-height: 100vh;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "top top top"
    "l stage r"
    "inv inv inv"
    "feed feed feed";
}
/* the room: dark at the top, warm at the floor, light pooled at the anvil and the furnace */
body {
  background:
    radial-gradient(ellipse 38% 46% at 50% 50%, rgba(160, 58, 16, .20), transparent 72%),
    radial-gradient(ellipse 26% 34% at 11% 24%, rgba(170, 60, 16, .17), transparent 70%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(90, 34, 12, .30), transparent 75%),
    linear-gradient(180deg, #080607 0%, #0b0809 42%, #140b08 100%);
  background-attachment: fixed;
}
.top { grid-area: top; }
.col-l { grid-area: l; }
.stage { grid-area: stage; }
.col-r { grid-area: r; }
.inv { grid-area: inv; }
.feed { grid-area: feed; }
.foot { display: none; }
.col { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; min-width: 0; }

/* panels: corner brackets like the inventory slot frame of the art */
.brk {
  --bc: var(--frame);
  position: relative;
  padding: 13px 16px;
  background:
    linear-gradient(var(--bc), var(--bc)) left top / 10px 2px no-repeat,
    linear-gradient(var(--bc), var(--bc)) left top / 2px 10px no-repeat,
    linear-gradient(var(--bc), var(--bc)) right top / 10px 2px no-repeat,
    linear-gradient(var(--bc), var(--bc)) right top / 2px 10px no-repeat,
    linear-gradient(var(--bc), var(--bc)) left bottom / 10px 2px no-repeat,
    linear-gradient(var(--bc), var(--bc)) left bottom / 2px 10px no-repeat,
    linear-gradient(var(--bc), var(--bc)) right bottom / 10px 2px no-repeat,
    linear-gradient(var(--bc), var(--bc)) right bottom / 2px 10px no-repeat,
    linear-gradient(180deg, rgba(24, 17, 19, .62), rgba(14, 10, 12, .46));
}
.lbl {
  display: flex; align-items: center; gap: 8px;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .2em;
  color: var(--mute);
  margin-bottom: 10px;
}
.lbl span { color: var(--dim); letter-spacing: .06em; font-weight: 500; }
.live { flex: none; width: 6px; height: 6px; background: var(--crimson); box-shadow: 0 0 8px rgba(255, 97, 82, .8); animation: blink 1.2s steps(2) infinite alternate; }
@keyframes blink { to { opacity: .35; } }

/* ------------------------------------------------------------ header */

.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 22px/1 var(--sans);
  letter-spacing: -.025em;
  text-decoration: none;
  color: #efe9e3;
}
.mark-dot {
  width: 8px; height: 8px;
  background: var(--ember);
  box-shadow: 0 0 0 2px #3a1a0c, 0 0 14px 2px rgba(255, 122, 42, .55);
  animation: dot 2.4s steps(3) infinite alternate;
}
@keyframes dot { to { background: var(--ember2); box-shadow: 0 0 0 2px #3a1a0c, 0 0 20px 4px rgba(255, 150, 60, .6); } }
.mock-tag {
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 4px 6px;
}
.beat-chip { display: none; }
.links { margin-left: auto; display: flex; gap: 4px; }
.links a, .foot a {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--mute);
  text-decoration: none;
  padding: 8px 9px;
  border: 1px solid transparent;
}
.links a:hover { color: var(--text); border-color: var(--frame); }
.wallet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 12px;
  background: var(--bg2);
  border: 1px solid var(--frame);
  cursor: pointer;
  font: 500 12.5px/1 var(--mono);
  white-space: nowrap;
}
.wallet:hover { border-color: var(--frame2); }
.wallet .wd { width: 6px; height: 6px; background: var(--ok); box-shadow: 0 0 8px rgba(159, 224, 168, .6); }
.wallet .wb { color: var(--mute); }

/* not settled indicator (D11) */
.pend {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 4px 0 10px;
  font: 500 11.5px/1 var(--mono); color: var(--mute);
  border: 1px dashed rgba(255, 179, 90, .45);
  background: rgba(255, 140, 50, .05);
  white-space: nowrap;
}
.pend .pd { width: 6px; height: 6px; background: var(--ember2); animation: blink .9s steps(2) infinite alternate; }
.pend b { color: var(--ember2); font-weight: 600; }
.pend em { font-style: normal; color: var(--dim); }
.pend .btn { padding: 5px 8px 6px; font-size: 10.5px; letter-spacing: .1em; }
.pend-top { margin-left: auto; }
.pend-top + .links { margin-left: 0; }

/* ------------------------------------------------------------ buttons */

.btn {
  cursor: pointer;
  border: 0;
  background: #1a1417;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--frame), inset 0 -4px 0 rgba(0, 0, 0, .35);
  padding: 9px 12px 11px;
  font: 600 13px/1 var(--mono);
  letter-spacing: .06em;
  transition: transform .06s steps(1);
  user-select: none;
}
.btn:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--ember), inset 0 -4px 0 rgba(0, 0, 0, .35); color: #fff; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--ember), inset 0 -2px 0 rgba(0, 0, 0, .35); }
.btn:disabled { cursor: not-allowed; color: var(--dim); box-shadow: inset 0 0 0 2px #262022; background: #141013; }
.btn small { display: block; margin-top: 5px; font: 500 10.5px/1 var(--mono); color: var(--mute); letter-spacing: .02em; }
.btn.hot {
  background: var(--ember);
  color: #1a0904;
  box-shadow: inset 0 2px 0 #ffb47a, inset 0 -5px 0 var(--emberdk), 0 0 26px rgba(255, 122, 42, .28);
}
.btn.hot:hover:not(:disabled) { background: #ff8c42; box-shadow: inset 0 2px 0 #ffc89a, inset 0 -5px 0 var(--emberdk), 0 0 34px rgba(255, 122, 42, .45); color: #1a0904; }
.btn.hot:active:not(:disabled) { box-shadow: inset 0 2px 0 #ffc89a, inset 0 -2px 0 var(--emberdk); }
.btn.hot.gold { background: var(--gold); box-shadow: inset 0 2px 0 #fff0b0, inset 0 -5px 0 #a8740e, 0 0 24px rgba(255, 213, 79, .22); }
.btn.hot.gold:hover:not(:disabled) { background: #ffe07a; box-shadow: inset 0 2px 0 #fff6cc, inset 0 -5px 0 #a8740e, 0 0 30px rgba(255, 213, 79, .35); }
.btn.hot:disabled { background: #2a1d17; color: #7a5a48; box-shadow: inset 0 0 0 2px #3a2a22; }
.btn.buy.gold small { color: #b9a26a; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 179, 90, .55); color: var(--ember2); }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ember2); color: var(--hot); background: rgba(255, 140, 50, .08); }

/* ------------------------------------------------------------ the forge: the heartbeat */

.furnace { display: flex; flex-direction: column; align-items: center; text-align: center; --bc: #5a3a2a; }
.furnace .lbl { align-self: flex-start; color: var(--ember2); }
.fur-art {
  position: relative;
  width: 170px; height: 140px; margin: -4px auto 4px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6));
}
.fur-art::before {
  content: ''; position: absolute; left: 50%; top: 66%; width: 230px; height: 150px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 110, 30, calc(.10 + var(--heat, .3) * .22)), transparent);
  z-index: -1;
  animation: flick 1.8s steps(4) infinite alternate;
}
@keyframes flick { 0% { opacity: .85; } 50% { opacity: 1; } 100% { opacity: .8; } }
.fur-art svg { width: 100%; height: 100%; display: block; }
.fur-bal { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 8px; font-family: var(--mono); }
.fur-bal .num {
  font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--warm);
  text-shadow: 0 0 22px rgba(255, 122, 42, .45), 0 0 2px rgba(255, 200, 140, .4);
  transition: color .4s;
}
.fur-bal .num.up { color: #fff6dc; text-shadow: 0 0 30px rgba(255, 170, 80, .8); }
.fur-bal .num.down { color: #ffb08a; }
.fur-bal .unit { font-size: 13px; color: var(--mute); }
.fur-deltas { position: absolute; right: -8px; top: -10px; width: 0; }
.fur-deltas span {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 600 11.5px/1 var(--mono); color: var(--ember2);
  animation: rise 1.4s steps(7) forwards;
}
.fur-deltas span.down { color: #ff8a6a; }
@keyframes rise { from { transform: translate(4px, 4px); opacity: 1; } to { transform: translate(4px, -26px); opacity: 0; } }
.beat { width: 220px; height: 30px; margin: 9px auto 2px; position: relative; }
.beat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.beat .hd { animation: blink .8s steps(2) infinite alternate; }
.fur-max {
  margin-top: 8px; width: 100%;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 10px 7px;
  font: 500 11.5px/1 var(--mono); color: var(--mute); letter-spacing: .04em;
  background: linear-gradient(90deg, rgba(255, 122, 42, .10), rgba(255, 122, 42, .02));
  box-shadow: inset 2px 0 0 var(--ember);
}
.fur-max b { font: 600 17px/1 var(--mono); color: var(--ember2); letter-spacing: -.01em; text-shadow: 0 0 14px rgba(255, 140, 50, .35); }
.fur-cap { margin-top: 7px; font: 500 11px/1.3 var(--mono); color: var(--dim); }

/* ------------------------------------------------------------ rack and claim */

.rack { display: flex; flex-direction: column; flex: 1 1 auto; }
.rack-row { display: grid; grid-template-columns: 44px 70px 1fr; align-items: center; gap: 8px; margin-bottom: 9px; }
.rack-ico { width: 44px; height: 44px; display: block; }
.rack-nm { font: 600 12px/1.1 var(--mono); letter-spacing: .1em; }
.rack-nm small { display: block; margin-top: 4px; color: var(--mute); font-weight: 500; letter-spacing: .02em; }
.rack-row[data-kind="blessed"] .rack-nm { color: var(--gold); }
.rack-btns { display: flex; gap: 6px; justify-content: flex-end; }
.rack-btns .btn { min-width: 48px; padding: 8px 6px 9px; text-align: center; }
.rack-note { padding-top: 1px; font: 500 11.5px/1.3 var(--mono); color: var(--dim); }
.rack-note b { color: var(--text); font-weight: 600; }
.split { margin-top: auto; padding-top: 12px; }
.split .sb { display: flex; height: 6px; gap: 2px; }
.split .sb i { display: block; height: 100%; }
.split .sb .f { background: var(--ember); box-shadow: 0 0 10px rgba(255, 122, 42, .35); }
.split .sb .a { background: #6e6367; }
.split .sb .r { background: var(--ok); opacity: .75; }
.split .sl { display: flex; justify-content: space-between; margin-top: 6px; font: 500 11px/1.2 var(--mono); color: var(--dim); }
.split .sl b { color: var(--mute); font-weight: 600; }
.split .sl .f b { color: var(--ember2); }

.claim:empty { display: none; }
.claim {
  margin: -3px -6px 12px;
  padding: 9px 10px 9px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  background: linear-gradient(90deg, rgba(255, 122, 42, .12), rgba(255, 122, 42, .02));
  box-shadow: inset 2px 0 0 var(--ember);
}
.claim .ct { font: 700 13px/1.1 var(--mono); letter-spacing: .1em; color: var(--warm); }
.claim .cs { font: 500 11.5px/1.2 var(--mono); color: var(--mute); }
.claim .cs b { color: var(--ember2); font-weight: 600; }
.claim .btn { grid-row: 1 / span 2; grid-column: 2; }
.claim.done { grid-template-columns: 1fr; }
.claim.done .ct { color: var(--mute); }

/* ------------------------------------------------------------ stage: the centerpiece */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
  min-width: 0;
  /* the hammer's handle leaves the tile on the right toward the smith's hand; on a phone the tile is nearly as wide
     as the screen, so the stage clips it sideways (clip, not hidden: the wind-up above the tile stays visible) */
  overflow-x: clip;
}
.stage-glow {
  position: absolute; inset: -8px 0 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse closest-side at 50% calc(var(--tile) * .5 + 8px), var(--glow, rgba(255, 122, 42, .14)), transparent 78%),
    radial-gradient(ellipse 60% 36% at 50% calc(var(--tile) * 1.12), rgba(255, 110, 30, calc(.08 + var(--heat, .3) * .16)), transparent 72%);
  animation: breathe 3.6s steps(6) infinite alternate;
}
@keyframes breathe { from { opacity: .82; } to { opacity: 1; } }
.stack { position: relative; display: flex; flex-direction: column; align-items: center; }
.stack.impact { transform: translateY(3px); }
.stack.shake { animation: shake .42s steps(5) 1; }
.stack.quake { animation: quake .6s steps(7) 1; }
@keyframes shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-4px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, 1px); } 100% { transform: translate(0, 0); } }
@keyframes quake { 0% { transform: translate(0, 0); } 15% { transform: translate(-7px, 3px); } 30% { transform: translate(6px, -3px); } 45% { transform: translate(-5px, 2px); } 60% { transform: translate(4px, -1px); } 80% { transform: translate(-2px, 1px); } 100% { transform: translate(0, 0); } }
.tile-wrap {
  position: relative;
  width: var(--tile);
  height: var(--tile);
  z-index: 2;
}
.tile {
  width: 100%; height: 100%;
  display: block;
  box-shadow: 0 0 0 1px #1a1517, 0 34px 60px -24px rgba(0, 0, 0, .95), 0 0 110px -6px var(--glow, rgba(255, 122, 42, .14));
}
.tile[src=""], .tile:not([src]) { visibility: hidden; }
.tile-wrap.is-empty .tile { visibility: hidden; }
.tile-fx { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tile-wrap.fx-up .tile-fx { animation: flashUp 1.1s steps(6) 1; background: radial-gradient(circle at 50% 50%, var(--tc), transparent 62%); mix-blend-mode: screen; }
.tile-wrap.fx-tier .tile-fx { animation: flashUp 1.6s steps(8) 1; background: radial-gradient(circle at 50% 50%, #fff, var(--tc) 30%, transparent 72%); mix-blend-mode: screen; }
@keyframes flashUp { 0% { opacity: .95; } 100% { opacity: 0; } }
.tile-wrap.fx-shatter .tile-fx { animation: flashUp .9s steps(5) 1; background: radial-gradient(circle at 50% 55%, rgba(255, 70, 40, .6), transparent 60%); }
.tile-wrap.fx-down .tile-fx { animation: flashUp .9s steps(5) 1; background: radial-gradient(circle at 50% 50%, rgba(255, 213, 79, .45), transparent 60%); mix-blend-mode: screen; }
.tile-wrap.fx-melt .tile { animation: meltAway 1s steps(6) forwards; }
.tile-wrap.fx-melt .tile-fx { animation: flashUp 1s steps(6) 1; background: radial-gradient(circle at 50% 70%, rgba(255, 180, 60, .75), transparent 65%); mix-blend-mode: screen; }
@keyframes meltAway { 0% { opacity: 1; filter: none; } 60% { filter: brightness(1.8) sepia(1) saturate(3) hue-rotate(-20deg); } 100% { opacity: 0; transform: translateY(14px) scaleY(.8); } }
.tile-wrap.hit .tile-fx { opacity: 1; background: radial-gradient(circle at 50% 50%, rgba(255, 241, 196, .42), rgba(255, 179, 90, .16) 16%, transparent 34%); mix-blend-mode: screen; }

.hammer {
  /* box, size and pose come from pix.js (hammerGeometry, swingHammer): left, top, width and height in tile cells */
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .65));
}
.hammer svg { width: 100%; height: 100%; display: block; }
.tile-wrap.striking .hammer { opacity: 1; }

.anvil {
  width: calc(var(--tile) * .86);
  height: calc(var(--tile) * .86 * 24 / 68);
  margin-top: -14px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .75));
}
.anvil svg { width: 100%; height: 100%; display: block; }
.anvil::after {
  content: '';
  position: absolute; left: -18%; right: -18%; bottom: -12px; height: 18px;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, .75), transparent 70%);
}
.prop { display: none; position: absolute; bottom: -2px; pointer-events: none; z-index: 0; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .65)) brightness(.92); }
.prop svg { width: 100%; height: 100%; display: block; }
.stage.roomy .prop { display: block; }
.prop-l { width: calc(var(--tile) * .34); height: calc(var(--tile) * .34 * 31 / 30); right: calc(50% + var(--tile) * .47); }
.prop-r { width: calc(var(--tile) * .30); height: calc(var(--tile) * .30 * 31 / 28); left: calc(50% + var(--tile) * .49); }
.tile-meta {
  margin-top: 6px;
  min-height: 15px;
  font: 500 11px/1.3 var(--mono);
  color: var(--dim);
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}
.tile-meta b { color: var(--mute); font-weight: 500; }
.tile-meta .un { color: var(--ember2); }

.empty { display: none; }
.tile-wrap.is-empty .empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  background:
    linear-gradient(var(--frame), var(--frame)) left top / 18px 2px no-repeat,
    linear-gradient(var(--frame), var(--frame)) left top / 2px 18px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right top / 18px 2px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right top / 2px 18px no-repeat,
    linear-gradient(var(--frame), var(--frame)) left bottom / 18px 2px no-repeat,
    linear-gradient(var(--frame), var(--frame)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right bottom / 2px 18px no-repeat,
    radial-gradient(circle at 50% 60%, rgba(255, 122, 42, .10), transparent 60%);
}
.empty .et { font: 700 24px/1.1 var(--sans); letter-spacing: -.015em; color: #efe9e3; }
.empty .es { font: 500 12px/1.4 var(--mono); color: var(--mute); }
.empty .es b { color: var(--ember2); font-weight: 600; }
.empty .btn { padding: 14px 22px 16px; font-size: 15px; letter-spacing: .12em; }

/* verdict of the last strike, over the lower edge of the tile */
.verdict {
  position: absolute; left: 50%; bottom: 12%; z-index: 5;
  transform: translate(-50%, 8px);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 11px 18px 10px;
  background: rgba(10, 8, 10, .86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .6), 0 12px 34px rgba(0, 0, 0, .7);
  opacity: 0; pointer-events: none;
  white-space: nowrap;
  transition: opacity .25s steps(3), transform .25s steps(3);
}
.verdict.on { opacity: 1; transform: translate(-50%, 0); }
.verdict b { font: 700 28px/1 var(--mono); letter-spacing: -.02em; color: var(--tc, var(--text)); text-shadow: 0 0 18px var(--tw, transparent); }
.verdict b.bad { color: var(--bad); }
.verdict b.soft { color: var(--gold); }
.verdict small { font: 500 10.5px/1 var(--mono); color: var(--mute); }
.verdict small i { font-style: normal; color: var(--text); }

/* strike controls */
.strike {
  width: min(100%, 432px);
  min-height: 179px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 7px;
}
.strike:empty { display: none; }
.seg { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; box-shadow: inset 0 0 0 2px var(--frame); }
.seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px;
  border: 0; background: transparent; cursor: pointer;
  font: 600 12.5px/1 var(--mono); letter-spacing: .1em; color: var(--mute);
}
.seg button img { width: 24px; height: 24px; }
.seg button em { font-style: normal; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.seg button.on { background: #221a1d; color: var(--text); box-shadow: inset 0 0 0 2px var(--ember); }
.seg button.on[data-kind="blessed"] { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.seg button:disabled { cursor: not-allowed; opacity: .5; }
.odds {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  height: 50px;
  padding: 0 2px;
}
.odds .pct { font: 700 40px/1 var(--mono); letter-spacing: -.04em; color: #f6f1ec; }
.odds .mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.odds .path { font: 600 15px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.odds .path .to { color: var(--tc, var(--text)); }
.odds .stake { font: 500 11px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.odds .stake b { font-weight: 600; color: var(--mute); }
.odds .stake b.to { color: var(--tc, var(--text)); }
.odds .stake .mx { color: var(--gold); }
.odds .fail { font: 500 12px/1.3 var(--mono); color: var(--mute); text-align: right; white-space: nowrap; }
.odds .fail b { display: block; font-weight: 600; color: #ff8a6a; }
.odds .fail b.soft { color: var(--gold); }
.strike-btn { grid-column: 1 / -1; height: 50px; padding: 0 16px 4px; font-size: 16px; letter-spacing: .18em; display: flex; justify-content: center; align-items: center; gap: 12px; }
.strike-btn span { font: 500 12px/1 var(--mono); letter-spacing: .02em; opacity: .75; }
.hint {
  grid-column: 1 / -1; height: 22px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 11.5px/1 var(--mono); color: var(--dim); letter-spacing: .03em; white-space: nowrap;
}
.hint.on { color: var(--gold); opacity: .9; }
.hint.un { color: var(--mute); }
.hint.un .pd { width: 6px; height: 6px; background: var(--ember2); animation: blink .9s steps(2) infinite alternate; }
.hint.un b { color: var(--ember2); font-weight: 600; }
.hint.un em, .hint.un .sep { font-style: normal; }
.hint .btn { padding: 5px 9px 6px; font-size: 10.5px; letter-spacing: .12em; }
.result {
  grid-column: 1 / -1;
  min-height: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  text-align: center;
}
.result .rt { font: 700 26px/1 var(--mono); letter-spacing: -.01em; color: var(--tc, var(--text)); }
.result .rt.bad { color: var(--bad); }
.result .rp { font: 500 11px/1.35 var(--mono); color: var(--dim); }
.result .rp span { display: block; }
.status {
  grid-column: 1 / -1;
  height: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  font: 600 13px/1 var(--mono); letter-spacing: .18em; color: var(--ember2);
}
.status small { font: 500 11px/1 var(--mono); color: var(--dim); letter-spacing: .02em; }
.status .dots { display: inline-block; width: 2.2em; text-align: left; }
.status .dots::after { content: ''; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ------------------------------------------------------------ melt ladder: glowing tiers */

.ladder { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding-left: 20px; }
.ladder .lbl { margin-left: -4px; }
.lad-head, .rung { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) 58px; align-items: center; gap: 8px; }
.lad-head { padding: 0 6px 5px 8px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.lad-head span:last-child { text-align: right; }
.rungs { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; justify-content: flex-end; }
.rung {
  flex: 1 1 0;
  min-height: 21px;
  max-height: 30px;
  padding: 0 6px 0 8px;
  font: 500 12.5px/1 var(--mono);
  position: relative;
  background: linear-gradient(90deg, var(--tg), transparent 75%);
}
.rung::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tc); opacity: .55; box-shadow: 0 0 6px var(--tw); }
.rung .lv { font-weight: 700; color: var(--tc); }
.rung .od { font-size: 10.5px; color: var(--dim); }
.rung .bar { height: 6px; position: relative; background: rgba(255, 255, 255, .035); }
.rung .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--tc)); opacity: .8; box-shadow: 0 0 10px var(--tw); }
.rung .bar i::after { content: ''; position: absolute; right: 0; top: -1px; bottom: -1px; width: 2px; background: #fff; opacity: .85; }
.rung .bar s { position: absolute; top: 1px; bottom: 1px; background: repeating-linear-gradient(90deg, var(--tc) 0 2px, transparent 2px 4px); opacity: .3; }
.rung .v { color: var(--text); text-align: right; white-space: nowrap; }
.rung.capped .v { color: var(--ember2); }
.rung.pres { background: linear-gradient(90deg, var(--tg), transparent 60%); }
.rung.pres .bar i { background: repeating-linear-gradient(90deg, var(--tc) 0 2px, transparent 2px 4px); opacity: .42; box-shadow: none; }
.rung.pres .bar i::after { display: none; }
.rung.pres .v { color: var(--dim); font-size: 11px; }
.rung.max .v { color: #fff; font-weight: 600; }
.rung.max.capped .v { color: var(--ember2); }
.rung.me { background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 80%); }
.rung.me::before { width: 3px; opacity: 1; }
.rung.me::after { content: ''; position: absolute; left: -12px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 6px solid var(--tc); filter: drop-shadow(0 0 4px var(--tw)); }
.rung.me .v { color: #fff; font-weight: 600; }
.rung.me .od { color: var(--mute); }
.maxline, .capline {
  display: flex; align-items: center; gap: 8px;
  height: 17px; padding: 0 6px 0 8px; flex: none;
  font: 600 10px/1 var(--mono); letter-spacing: .08em; white-space: nowrap;
}
.maxline::before, .capline::before { content: ''; flex: 1; order: 2; height: 0; }
.maxline span, .capline span { order: 1; }
.maxline b, .capline b { order: 3; font-weight: 600; }
.maxline { color: var(--gold); }
.maxline::before { border-top: 2px solid rgba(255, 213, 79, .7); box-shadow: 0 0 8px rgba(255, 213, 79, .55); }
.maxline span em { font-style: normal; color: var(--dim); font-weight: 500; letter-spacing: .04em; }
.maxline span::before { content: ''; display: inline-block; margin: 0 6px 1px 0; border: 4px solid transparent; border-bottom: 5px solid var(--gold); border-top: 0; vertical-align: middle; }
.capline { color: var(--ember2); }
.capline::before { border-top: 1px dashed rgba(255, 179, 90, .55); }
.melt { width: 100%; padding: 13px 12px 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; letter-spacing: .14em; flex: none; }
.melt span { font: 600 13px/1 var(--mono); letter-spacing: 0; color: var(--ember2); white-space: nowrap; }
.melt.hot span { color: #3a1606; }
.melt:disabled span { color: var(--dim); }
.melt.armed { box-shadow: inset 0 0 0 2px var(--gold), 0 0 22px rgba(255, 213, 79, .2); color: var(--gold); animation: armed .5s steps(2) infinite alternate; }
.melt.armed span { color: var(--gold); }
@keyframes armed { to { box-shadow: inset 0 0 0 2px #fff0b0, 0 0 28px rgba(255, 213, 79, .35); } }

/* ------------------------------------------------------------ hall */

.hall { flex: none; padding-bottom: 11px; }
.hall .lbl { margin-bottom: 9px; }
.hall-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: space-between; min-height: 76px; }
.hall-list:empty::before { content: 'no blade above +0 yet'; font: 500 11.5px/76px var(--mono); color: var(--dim); }
.hb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 50px; text-align: center; }
.hb img { width: 48px; height: 48px; display: block; outline: 1px solid #1a1517; }
.hb b { font: 700 11.5px/1 var(--mono); color: var(--tc); }
.hb span { font: 500 10px/1 var(--mono); color: var(--dim); }
.hb.mine span { color: var(--text); font-weight: 600; }
.hb.top img { box-shadow: 0 0 16px -2px var(--tw); }

/* ------------------------------------------------------------ inventory and your run */

.inv { padding-top: 10px; padding-bottom: 8px; }
.lbl-row { display: flex; align-items: center; gap: 14px; height: 18px; margin-bottom: 7px; }
.lbl-row .lbl { margin: 0; }
.lbl-row .pend { height: 22px; font-size: 11px; }
.inv-body { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.inv-stock { display: flex; gap: 8px; flex: none; padding-right: 18px; border-right: 1px solid var(--line); }
.inv-blades { display: flex; gap: 8px; overflow-x: auto; min-width: 0; flex: 1 1 auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--frame) transparent; }
.inv-blades:empty::before { content: 'no blades yet'; font: 500 12px/64px var(--mono); color: var(--dim); }
.slot {
  position: relative;
  flex: none;
  width: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
}
.slot img { width: 64px; height: 64px; display: block; outline: 1px solid #1a1517; }
.slot .cap { display: block; margin-top: 5px; font: 600 11px/1 var(--mono); color: var(--tc, var(--mute)); white-space: nowrap; }
.slot.sel img { outline: 2px solid var(--tc, var(--ember)); outline-offset: 2px; }
.slot:hover img { outline-color: var(--frame2); }
.slot.sel:hover img { outline-color: var(--tc, var(--ember)); }
.slot .lock { position: absolute; right: 4px; top: 4px; width: 12px; height: 16px; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .9)); }
.slot .lock svg { width: 100%; height: 100%; display: block; }
.slot.unset img { outline: 1px dashed rgba(255, 179, 90, .7); outline-offset: 1px; }
.slot.unset.sel img { outline: 2px dashed var(--ember2); outline-offset: 2px; }
.slot.unset .cap::after { content: ' ·'; color: var(--ember2); }
.slot.dead .cap { color: var(--bad); }
.slot.pending img { filter: brightness(.9); }
.slot.new img { animation: newSlot 1.2s steps(6) 1; }
@keyframes newSlot { 0% { outline: 2px solid var(--hot); outline-offset: 4px; filter: brightness(1.8); } 100% { outline-offset: 0; filter: none; } }
.slot.stock { cursor: default; }
.slot.stock.click { cursor: pointer; }
.slot .n { position: absolute; right: 4px; bottom: 21px; font: 700 12px/1 var(--mono); color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px #000; }
.slot.stock.zero img { opacity: .35; filter: grayscale(.6); }
.trade { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-self: stretch; }
.trade .btn { padding: 7px 8px 8px; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }

.run { position: relative; flex: none; width: 300px; padding-left: 18px; border-left: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 0 14px; align-items: start; }
.run .rb { position: relative; }
.run .rb img { width: 64px; height: 64px; display: block; outline: 1px solid #1a1517; }
.run .rb .cap { display: block; margin-top: 5px; text-align: center; font: 600 11px/1 var(--mono); color: var(--tc, var(--dim)); }
.run .rb.none img { opacity: .25; filter: grayscale(1); }
.run dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font: 500 11.5px/1 var(--mono); }
.run dt { color: var(--dim); letter-spacing: .04em; }
.run dd { margin: 0; text-align: right; color: var(--text); white-space: nowrap; }
.run dd.pos { color: var(--ok); }
.run dd.neg { color: #ff9a80; }
.run dd.big { font-size: 14px; font-weight: 600; }
.run .rh { position: absolute; left: 18px; top: -24px; font: 600 10.5px/1 var(--mono); letter-spacing: .2em; color: var(--mute); }

/* ------------------------------------------------------------ feed */

.feed {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  margin: 0 calc(-1 * var(--side));
  padding: 0 var(--side);
  border-top: 1px solid var(--line);
  background: rgba(8, 6, 8, .82);
  overflow: hidden;
}
.feed-line { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; white-space: nowrap; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ev { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); color: var(--mute); }
.ev img { width: 32px; height: 32px; display: block; flex: none; }
.ev .who { color: var(--dim); }
.ev.mine .who { color: var(--text); font-weight: 600; }
.ev .tx { color: var(--text); }
.ev-up .tx { color: var(--tc); }
.ev-shatter .tx { color: var(--bad); }
.ev-down .tx { color: var(--gold); opacity: .85; }
.ev-melt .tx { color: var(--ember2); }
.ev-buy .tx, .ev-claim .tx, .ev-trade .tx { color: var(--mute); }
.ev-claim img, .ev-buy img { opacity: .8; }
.ev .amt { color: var(--text); }
.ev-melt .amt { color: var(--warm); font-weight: 600; }
.ev .ago { color: var(--faint); }
.ev.big { padding: 3px 9px 3px 3px; background: linear-gradient(90deg, var(--tg, rgba(255, 122, 42, .10)), transparent); box-shadow: inset 2px 0 0 var(--tc, var(--ember)); }
.ev.big.ev-shatter { --tg: rgba(255, 90, 60, .12); --tc: var(--bad); }
.ev.big.ev-melt { --tg: rgba(255, 150, 60, .14); --tc: var(--ember2); }
.ev.fresh { animation: evIn .5s steps(4) 1; }
@keyframes evIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ popover, toast, dev */

.pop {
  position: fixed; z-index: 30;
  width: 290px;
  padding: 14px 16px;
  background: #141013;
  border: 1px solid var(--frame);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7);
  font: 500 12px/1.45 var(--mono);
}
.pop .row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--mute); }
.pop .row b { color: var(--text); font-weight: 500; }
.pop .note { color: var(--dim); margin: 8px 0; }
.pop input { width: 100%; background: #0c0a0d; border: 1px solid var(--line); color: var(--text); font: 500 11px/1 var(--mono); padding: 8px; margin: 4px 0 8px; }
.pop .btn { width: 100%; font-size: 11.5px; }

.toast {
  position: fixed; left: 50%; bottom: 66px; z-index: 40;
  transform: translate(-50%, 20px);
  padding: 10px 14px;
  background: #1d1518;
  border: 1px solid var(--frame2);
  font: 500 12.5px/1.2 var(--mono);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s steps(3);
  max-width: calc(100vw - 40px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: #8a3a2a; color: #ffb0a0; }

.dev {
  position: fixed; right: 14px; bottom: 58px; z-index: 50;
  width: 320px; max-height: calc(100vh - 80px); overflow: auto;
  padding: 14px 16px;
  background: rgba(14, 11, 13, .97);
  border: 1px solid #5b38a3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
  font: 500 11.5px/1.4 var(--mono);
  color: var(--mute);
}
.dev h4 { margin: 0 0 10px; font: 700 11px/1 var(--mono); letter-spacing: .18em; color: var(--violet); display: flex; justify-content: space-between; }
.dev h4 span { color: var(--dim); letter-spacing: .04em; font-weight: 500; }
.dev .g { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dev .r { display: flex; gap: 6px; align-items: center; margin: 5px 0; }
.dev .r > span:first-child { flex: 1; }
.dev select { flex: none; }
.dev input, .dev select { width: 92px; background: #0c0a0d; border: 1px solid var(--line); color: var(--text); font: 500 11.5px/1 var(--mono); padding: 6px; }
.dev button { background: #1d1620; border: 1px solid #3b2a52; color: var(--text); font: 500 11px/1 var(--mono); padding: 6px 8px; cursor: pointer; }
.dev button:hover { border-color: var(--violet); }
.dev .kv { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.dev .kv b { color: var(--text); font-weight: 500; text-align: right; }
.dev .ok { color: var(--ok); }
.dev .bad { color: var(--crimson); }

/* ------------------------------------------------------------ desktop below 1280: narrower sides */

@media (max-width: 1279px) and (min-width: 1100px) {
  .scene { grid-template-columns: 270px minmax(0, 1fr) 286px; gap: var(--gap) 14px; --side: 18px; }
  .run { width: 270px; }
}

/* ------------------------------------------------------------ tablet */

@media (max-width: 1099px) {
  .scene {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto;
    grid-template-areas:
      "top top"
      "stage ladder"
      "stage hall"
      "rack furnace"
      "inv inv"
      "feed feed";
    padding-bottom: 0;
  }
  .col { display: contents; }
  .furnace { grid-area: furnace; }
  .rack { grid-area: rack; }
  .ladder { grid-area: ladder; }
  .hall { grid-area: hall; align-self: start; }
  .stage { padding-bottom: 6px; }
  .beat-chip {
    display: inline-flex; align-items: baseline; gap: 7px;
    margin-left: auto;
    height: 30px; padding: 9px 10px 0;
    font: 500 11px/1 var(--mono); color: var(--mute);
    border: 1px solid rgba(255, 140, 50, .35);
    background: rgba(255, 110, 30, .07);
    white-space: nowrap;
  }
  .beat-chip .beat-dot { align-self: center; margin-top: -9px; width: 6px; height: 6px; background: var(--ember); box-shadow: 0 0 8px rgba(255, 122, 42, .8); animation: blink 1s steps(2) infinite alternate; }
  .beat-chip .bc-l { letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
  .beat-chip > b { font: 600 14px/1 var(--mono); color: var(--warm); text-shadow: 0 0 12px rgba(255, 122, 42, .4); }
  .beat-chip .bc-m b { color: var(--ember2); font-weight: 600; }
  .beat-chip + .pend-top { margin-left: 0; }
  .beat-chip ~ .links { margin-left: 0; }
  .pend-top { display: none !important; }
  .inv-body { flex-wrap: wrap; }
  .run { width: 100%; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 34px; grid-template-columns: 64px 1fr; }
  .run .rh { left: 0; top: 12px; }
  .run dl { grid-template-columns: auto 1fr auto 1fr; gap: 8px 14px; }
}

/* ------------------------------------------------------------ phone */

@media (max-width: 719px) {
  :root { --gap: 12px; --side: 14px; }
  .scene {
    padding: 0 var(--side) 60px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "top" "stage" "inv" "ladder" "furnace" "rack" "hall" "foot";
  }
  body { background-attachment: scroll; }
  .top {
    position: sticky; top: 0; z-index: 22;
    height: 50px; gap: 8px;
    margin: 0 calc(-1 * var(--side));
    padding: 0 var(--side);
    background: rgba(10, 8, 9, .92);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .mark { font-size: 20px; }
  .mock-tag, .links { display: none; }
  .beat-chip { padding: 9px 8px 0; gap: 6px; }
  .wallet { height: 30px; padding: 0 9px; gap: 7px; font-size: 11.5px; }
  .wallet .wa, .wallet .wu { display: none; }
  .beat-chip { font-size: 10px; gap: 5px; }
  .beat-chip > b { font-size: 13px; }
  .beat-chip .bc-l { font-size: 9.5px; }
  .stage { padding-top: 10px; }
  .hint { height: auto; min-height: 22px; flex-wrap: wrap; white-space: normal; text-align: center; gap: 6px 10px; }
  .hint.un { flex-wrap: nowrap; justify-content: center; text-align: left; gap: 9px; }
  .hint.un .ht { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
  .hint.un em { font-size: 10.5px; color: var(--dim); }
  .hint.un .sep { display: none; }
  .strike { width: 100%; }
  .odds .pct { font-size: 34px; }
  .feed { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 var(--side); height: 48px; z-index: 20; background: rgba(10, 8, 10, .96); }
  .inv-body { flex-direction: column; gap: 12px; }
  .inv-stock { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; width: 100%; }
  .inv-blades { width: 100%; }
  .lbl-row { flex-wrap: wrap; height: auto; min-height: 18px; }
  .run { padding-top: 34px; }
  .run dl { grid-template-columns: auto 1fr; gap: 7px 10px; }
  .slot, .slot img { width: 60px; }
  .slot img { height: 60px; }
  .slot .n { bottom: 21px; }
  .rack-row { grid-template-columns: 40px 64px 1fr; gap: 6px; }
  .rack-ico { width: 40px; height: 40px; }
  .rack-btns .btn { min-width: 44px; }
  .toast { bottom: 60px; }
  .dev { left: 10px; right: 10px; width: auto; bottom: 54px; }
  .rung { min-height: 26px; }
  .foot { grid-area: foot; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 4px 0 10px; }
  .foot span { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-left: 8px; }
  .hall-list { justify-content: flex-start; gap: 12px; }
}

@media (max-width: 370px) {
  .wallet { padding: 0 7px; }
  .beat-chip .bc-l { display: none; }
  .rack-row { grid-template-columns: 36px 58px 1fr; }
  .rack-ico { width: 36px; height: 36px; }
  .rack-nm { font-size: 11px; }
  .rack-btns { gap: 4px; }
  .rack-btns .btn { min-width: 40px; padding: 8px 4px 9px; font-size: 12px; }
  .slot, .slot img { width: 54px; }
  .slot img { height: 54px; }
  .odds { gap: 10px; }
  .odds .pct { font-size: 30px; }
  .hall-list { gap: 6px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-glow, .fur-art::before { animation: none; }
}

/* layout audit badge (?audit=1) */
.audit { position: fixed; left: 6px; top: 6px; z-index: 99; max-width: 60vw; padding: 6px 8px; background: rgba(20, 8, 30, .92);
  border: 1px solid #5b38a3; font: 500 10.5px/1.35 var(--mono); color: #e2ceff; white-space: pre-wrap; pointer-events: none; }
.audit.ok { border-color: #2f6a3a; color: var(--ok); }
