:root {
  --bg: #020201; --green: #7dffa0; --amber: #ffb000; --red: #ff3b3b;
  --ink: #f3e7cf; --dim: #9c8f78;
  --jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --heavy: 'Dela Gothic One', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --led: 'VT323', 'Courier New', monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { overflow: hidden; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--jp); }
body { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#boot { position: fixed; inset: 0; background: #000; z-index: 90; display: flex; align-items: center; justify-content: center; color: #ffb000; font: 400 34px var(--led); }

/* In-play overlay: only the Boss's subtitle, a menu and relic text. */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#sub { position: absolute; left: 50%; top: calc(var(--safe-t) + 14px); width: min(calc(100vw - 112px), 560px); transform: translateX(-50%); text-align: center; font-size: clamp(16px, 2.3vh, 22px); line-height: 1.32; color: #fff; text-shadow: 0 0 6px #000, 0 2px 0 #000, 0 0 16px rgba(255,59,59,.65); min-height: 2.6em; }
#sub.show { animation: subIn .28s; }
#menuBtn { position: absolute; right: 8px; top: calc(var(--safe-t) + 8px); width: 42px; height: 42px; pointer-events: auto; color: var(--amber); font-size: 24px; background: rgba(10,8,5,.7); border: 1px solid #5a4a30; border-radius: 6px; }
#relicTip { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 18px); width: min(90vw, 520px); transform: translateX(-50%); padding: 10px 12px; background: rgba(14,10,6,.95); border: 1px solid var(--amber); border-radius: 8px; font-size: 15px; line-height: 1.4; opacity: 0; transition: opacity .15s; }
#relicTip.show { opacity: 1; }
#relicTip b { color: var(--amber); display: block; font-weight: 400; }

/* Buttons */
.big { display: block; width: 100%; min-height: 58px; font-family: var(--heavy); font-size: 21px; border-radius: 10px; padding: 8px 12px; color: #fff; border: 2px solid rgba(255,255,255,.2); box-shadow: 0 5px 0 rgba(0,0,0,.65), inset 0 2px 0 rgba(255,255,255,.3); text-shadow: 0 2px 0 rgba(0,0,0,.45); transition: transform .06s, box-shadow .06s; }
.big:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.65); }
.red { background: linear-gradient(#ff5a4a, #b5110c); }
.green { background: linear-gradient(#3fdc66, #0e7a31); }
.ghost { min-height: 42px; width: 100%; padding: 8px 14px; border: 1px solid #5a4a30; border-radius: 8px; color: var(--ink); background: rgba(12,9,6,.82); font-size: 15px; }
.ghost:active { background: #2c2418; }
.col { display: flex; flex-direction: column; gap: 10px; width: min(100%, 440px); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.layer { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 18px) 18px calc(var(--safe-b) + 18px); touch-action: pan-y; }
.layer h2 { font-family: var(--heavy); font-weight: 400; }

/* Title: the room stays visible behind the logo. */
#title { justify-content: space-between; background: linear-gradient(rgba(0,0,0,.5), transparent 32%, transparent 52%, rgba(0,0,0,.92)); }
#logo { width: min(86vw, 52vh, 520px); filter: drop-shadow(0 0 18px rgba(255,120,0,.65)); animation: logoPulse 2.6s infinite; margin-top: -2vh; }
#tStart { font-size: 28px; min-height: 72px; animation: nudge 1.3s infinite; }
#tBest { text-align: center; font: 400 22px var(--led); color: var(--amber); min-height: 22px; }

/* Boss arrival: the text sits on the 3D Boss. */
#taisho { z-index: 34; justify-content: flex-end; text-align: center; gap: 8px; background: linear-gradient(transparent 45%, rgba(0,0,0,.82)); padding-bottom: calc(var(--safe-b) + 34px); }
#taishoName { font-size: clamp(30px, 9vw, 54px); color: #fff; text-shadow: 0 0 24px var(--red), 0 4px 0 #000; animation: slam .4s; }

/* Draft captions around the photos. */
#cap { position: fixed; inset: 0; z-index: 12; display: flex; flex-direction: column; justify-content: space-between; align-items: center; pointer-events: none; padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 14px); }
#capTop { text-align: center; }
#capTitle { font-family: var(--heavy); font-weight: 400; font-size: clamp(25px, 7vw, 38px); color: var(--amber); text-shadow: 0 0 18px rgba(255,176,0,.75), 0 3px 0 #000; }
#capBonus { font-size: 14px; color: var(--green); text-shadow: 0 1px 0 #000; min-height: 18px; }
#capBottom { width: min(100%, 460px); pointer-events: auto; background: linear-gradient(transparent, rgba(0,0,0,.9) 14%); padding: 18px 2px 0; }
#capDots { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
#capDots i { width: 8px; height: 8px; border-radius: 50%; background: #5a4a30; }
#capDots i.on { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
#capKind { color: var(--amber); font-size: 13px; }
#capName { font-weight: 400; font-size: 20px; line-height: 1.2; color: #fff; }
#capDesc { color: var(--green); font-size: 16px; line-height: 1.32; margin: 4px 0 10px; min-height: 2.6em; }
#capRow { margin-top: 10px; }
#capWallet { display: inline-block; margin-top: 4px; padding: 2px 12px; font-weight: 700; font-size: 16px; color: #ffe08a; background: rgba(10,6,2,.85); border: 1px solid var(--amber); border-radius: 999px; }
#capTake:disabled { filter: grayscale(.9) brightness(.55); }
#capReroll:disabled { opacity: .45; }
#capAsk { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
#capNo { min-height: 58px; margin-bottom: 10px; font-size: 18px; }

#result { justify-content: flex-end; text-align: center; gap: 8px; background: linear-gradient(transparent 22%, rgba(0,0,0,.92) 50%); }
#resBig { font-size: clamp(32px, 10vw, 54px); color: var(--red); text-shadow: 0 0 22px var(--red), 0 4px 0 #000; }
#resDay { font-size: 19px; }
#resStats { width: min(100%, 440px); display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 6px 0 10px; padding: 12px 14px; background: rgba(6,5,3,.9); border: 1px solid #3a3122; border-radius: 8px; text-align: left; font-size: 15px; }
#resStats dd { font: 400 26px/1 var(--led); color: var(--green); text-align: right; }
#resStats dd.new { color: var(--amber); }


.sheet { background: rgba(10,8,5,.97); border: 1px solid #5a4a30; border-radius: 12px; padding: 14px; width: min(100%, 560px); height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; touch-action: pan-y; }
.sheet h2 { font-size: 25px; color: var(--amber); }
.sheet h3 { font-weight: 400; color: var(--green); font-size: 17px; margin-top: 6px; }
.sheet p { font-size: 15px; line-height: 1.45; }
.sheet .ghost { flex: none; position: sticky; bottom: 0; background: #1a140c; }
#how { z-index: 40; background: rgba(0,0,0,.6); }
#howBody { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pay { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; border-bottom: 1px dashed #3a3122; padding: 5px 0; font-size: 15px; }
.pay small { color: var(--dim); font-size: 13px; }
.pay b { font: 400 21px/1 var(--led); color: #7cd6ff; text-align: right; }
.pay em { font: 400 19px/1 var(--led); color: var(--red); font-style: normal; text-align: right; }
.syms { display: flex; flex-wrap: wrap; gap: 5px; }
.syms figure { width: 62px; text-align: center; font-size: 11px; }
.syms img { width: 50px; height: 50px; object-fit: contain; display: block; margin: 0 auto; }
#menu { justify-content: center; background: rgba(0,0,0,.72); z-index: 35; }

/* Wide screens: menu in a left column, so the machine stays in view. */
@media (min-aspect-ratio: 1/1) {
  #title { align-items: flex-start; justify-content: center; gap: 2vh; padding-left: 6vw; background: linear-gradient(90deg, rgba(0,0,0,.82), transparent 52%); }
  #logo { width: min(36vw, 62vh); margin: 0; }
  #titleBtns { width: min(36vw, 62vh, 440px); }
  #result { align-items: flex-start; justify-content: center; padding-left: 6vw; text-align: left; background: linear-gradient(90deg, rgba(0,0,0,.92), transparent 58%); }
  #result .col, #resStats { width: min(38vw, 440px); }
}

/* Guided first lever. */
#sub.guide { padding: 8px 12px; background: rgba(10,6,2,.9); border: 1px solid var(--amber); border-radius: 10px; text-shadow: none; font-weight: 700; }
#guideRing { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border: 4px solid #ffe08a; border-radius: 50%; box-shadow: 0 0 22px #ffb000, inset 0 0 18px rgba(255,176,0,.6); display: flex; align-items: center; justify-content: center; animation: guidePulse 1s infinite; }
#guideLabel { font: 400 17px var(--heavy); color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; }
#guideSkip { position: absolute; left: 8px; top: calc(var(--safe-t) + 8px); height: 42px; padding: 0 12px; pointer-events: auto; font-size: 14px; color: var(--ink); background: rgba(10,8,5,.75); border: 1px solid #5a4a30; border-radius: 6px; z-index: 2; }
#sub.guide ~ #guideSkip { top: auto; bottom: calc(var(--safe-b) + 12px); }

/* Score details. */
#detailBtn { position: absolute; right: 8px; bottom: calc(var(--safe-b) + 12px); min-width: 72px; height: 46px; padding: 0 14px; pointer-events: auto; font-weight: 700; font-size: 16px; color: #ffe08a; background: rgba(10,8,5,.86); border: 1px solid var(--amber); border-radius: 8px; }
#capDetail { width: auto; min-height: 34px; padding: 4px 14px; margin-top: 6px; pointer-events: auto; font-size: 14px; color: #ffe08a; border-color: var(--amber); }
#detail { z-index: 42; background: rgba(0,0,0,.6); }
#detail .row { align-items: center; }
#detail .row .ghost { flex: none; width: 52px; position: static; }
#detailWhich { flex: 1; text-align: center; font-weight: 700; }
#detailTotal { text-align: center; line-height: 1.1; }
#detailTotal b { display: block; font: 400 clamp(34px, 11vw, 52px) 'Dela Gothic One', sans-serif; color: #ffd84a; text-shadow: 0 0 14px rgba(255, 176, 0, .6), 0 3px 0 #000; overflow-wrap: anywhere; }
#detailTotal small { color: var(--dim); font-size: 13px; }
#detailBoard { display: grid; width: 100%; margin: 0 auto; gap: 3px; padding: 6px; background: #120a24; border: 1px solid var(--amber); border-radius: 8px; flex: none; }
#detailBoard div { min-width: 0; aspect-ratio: 1; border-radius: 4px; background: #05030c; opacity: .3; transition: opacity .12s; }
#detailBoard div.lit { opacity: 1; box-shadow: inset 0 0 0 2px var(--amber); }
#detailBoard img { display: block; width: 100%; height: 100%; object-fit: contain; }
#detailHint { color: var(--dim); font-size: 13px !important; }
#detailHits { display: flex; flex-direction: column; gap: 4px; flex: none; }
.dhit { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; width: 100%; padding: 7px 9px; text-align: left; background: #150f08; border: 1px solid #3a3122; border-radius: 6px; }
.dhit.on { border-color: var(--amber); background: #241a0a; }
.dhit.relic { background: #0e1a10; border-color: #2a5a34; }
.dhit b { font-weight: 700; font-size: 16px; color: #fff; }
.dhit .fx { font: 400 22px/1.1 var(--led); text-align: right; white-space: nowrap; }
.dhit .fx i { font-style: normal; color: #7cd6ff; }
.dhit .fx u { text-decoration: none; color: #ff7a6a; margin-left: 8px; }
.dhit small { grid-column: 1 / 3; font-size: 13px; line-height: 1.35; color: var(--dim); }
.dhit em { grid-column: 1 / 3; font-style: normal; font-size: 13px; color: var(--green); }
#detailSum { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px; background: #070503; border: 1px solid #3a3122; border-radius: 8px; flex: none; }
#detailSum dt { font-size: 14px; }
#detailSum dt small { color: var(--dim); font-size: 12px; margin-left: 4px; }
#detailSum dd { font: 400 26px/1 var(--led); text-align: right; color: #7cd6ff; }
#detailSum dd.m { color: #ff7a6a; }
#detailSum dt.t, #detailSum dd.t { border-top: 1px solid #5a4a30; padding-top: 5px; color: var(--green); font-weight: 700; }
#detailSum dd.t { font-size: 34px; font-weight: 400; }

/* Ranking. */
#hotBadge { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: center; align-items: flex-start; padding-top: calc(var(--safe-t) + 58px); }
#hotBadge::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 70px 14px rgba(255, 40, 20, .75); animation: hotPulse .55s ease-in-out infinite alternate; }
#hotBadge.hidden { display: none; }
#hotText { position: relative; max-width: calc(100% - 28px); padding: 6px 14px; border: 2px solid #ffc400; border-radius: 6px; background: #b30f00; color: #fff; font-size: 16px; font-weight: 700; text-align: center; }
@keyframes hotPulse { from { opacity: .62; } to { opacity: 1; } }
#vol { z-index: 40; justify-content: center; background: rgba(0,0,0,.8); }
#vol h2 { color: var(--amber); font-size: 25px; text-align: center; }
#vol label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--ink); }
#vol input { width: 100%; height: 34px; accent-color: #ffb000; }
#ban { z-index: 36; justify-content: center; background: rgba(0,0,0,.82); }
#ban h2 { color: var(--amber); font-size: 22px; text-align: center; }
#banNote { text-align: center; font-size: 14px; color: var(--ink); }
#banGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#banGrid .ghost { width: auto; position: static; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; font-size: 13px; }
#banGrid img { width: 52px; height: 52px; object-fit: contain; }
#banGrid .ghost.on { border-color: #ff5a4a; color: #ff7a6a; background: #2a0c08; }
#banGrid .ghost.on img { opacity: .45; }
#banGo:disabled { opacity: .5; }
#rank { z-index: 40; background: rgba(0,0,0,.6); }
#rank .row .ghost { flex: 1; width: auto; position: static; }
#capBonus.guide { display: inline-block; margin-top: 4px; padding: 6px 10px; font-size: 16px; font-weight: 700; color: #fff; background: rgba(10,6,2,.9); border: 1px solid var(--amber); border-radius: 10px; }
#rankAll.on, #rankWeek.on { border-color: var(--amber); color: var(--amber); }
#nameRow, #nameForm { display: flex; align-items: center; gap: 8px; }
#nameNow { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; }
#nameRow .ghost, #nameForm .ghost { width: auto; flex: none; padding: 6px 10px; font-size: 13px; }
#nameInput { flex: 1; width: 0; min-width: 0; height: 40px; padding: 0 10px; font: 700 16px var(--jp); color: #fff; background: #070503; border: 1px solid var(--amber); border-radius: 6px; user-select: text; -webkit-user-select: text; touch-action: auto; }
#nameNote { color: var(--dim); font-size: 12px; min-height: 0; }
#nameNote:empty { display: none; }
#rankMe { color: var(--green); font-weight: 700; min-height: 1.4em; }
#rankSpan { color: var(--amber); font-size: 13px; }
#rankSpan:empty { display: none; }
#rankList { flex: 1; list-style: none; display: flex; flex-direction: column; gap: 2px; }
#rankList li { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 8px; background: #150f08; border-radius: 4px; }
#rankList li.mine { outline: 1px solid var(--green); background: #122012; }
#rankList b { font: 400 22px var(--led); color: var(--amber); }
#rankList li:nth-child(-n+3) b { color: #ffe08a; text-shadow: 0 0 8px #ffb000; }
#rankList span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
#rankList em { font: 400 22px var(--led); font-style: normal; color: var(--green); text-align: right; }
#rankList small { grid-column: 2 / 4; color: var(--dim); font-size: 12px; }
#chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#chatRule { color: var(--dim); font-size: 12px; }
#chatList { flex: 1; min-height: 120px; overflow-y: auto; list-style: none; display: flex; flex-direction: column; gap: 4px; touch-action: pan-y; }
#chatList li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: baseline; padding: 6px 8px; background: #150f08; border-radius: 4px; }
#chatList li.mine { outline: 1px solid var(--green); background: #122012; }
#chatList li.none { display: block; color: var(--dim); }
#chatList b { font-weight: 700; color: var(--amber); overflow-wrap: anywhere; }
#chatList small { color: var(--dim); font-size: 12px; }
#chatList button { padding: 4px 6px; font-size: 12px; color: var(--dim); }
#chatList button.armed { color: #ff7a6a; font-weight: 700; }
#chatList p { grid-column: 1 / 4; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
#chatNote { min-height: 1.4em; font-size: 13px; font-weight: 700; color: var(--amber); }
#chatForm { display: flex; flex-direction: column; gap: 6px; }
#chatForm .line { display: flex; gap: 6px; }
#chatForm input { flex: 1 0 auto; width: 0; min-width: 0; height: 44px; padding: 0 10px; font: 700 16px var(--jp); color: #fff; background: #070503; border: 1px solid var(--amber); border-radius: 6px; user-select: text; -webkit-user-select: text; touch-action: auto; }
#chatForm .ghost { width: auto; flex: none; }
#resRank { width: min(100%, 440px); min-height: 20px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
#resRank .line { color: var(--amber); }
#resRank form { display: flex; gap: 6px; }
#resRank input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font: 700 16px var(--jp); color: #fff; background: #070503; border: 1px solid var(--amber); border-radius: 6px; user-select: text; -webkit-user-select: text; touch-action: auto; }
#resRank form .ghost { width: auto; flex: none; }

@keyframes guidePulse { 0%, 100% { transform: scale(.88); opacity: .75; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes subIn { from { transform: translate(-50%, -6px); opacity: .2; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes slam { 0% { transform: scale(2); opacity: 0; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1); } }
@keyframes nudge { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.32); } }
@keyframes logoPulse { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255,120,0,.45)); } 50% { filter: drop-shadow(0 0 32px rgba(255,120,0,.9)); } }

#howVer { display: block; width: auto; height: auto; min-height: 0; margin: 14px auto 0; padding: 8px 12px; font-size: 12px; color: #8f8268; background: none; border: 0; box-shadow: none; text-shadow: none; }
#howVer.hidden { display: none; }

.syms .odds { display: block; color: var(--amber); font: 700 13px var(--jp); }
#capName.gold { background: linear-gradient(100deg, #ffe680, #ffb000, #fff3b0, #ff9ae0, #ffd84a, #9ff4ff, #ffcc33, #ffe680); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(255, 190, 40, .8)) drop-shadow(0 2px 0 #000); animation: aurora 4s linear infinite; }
@keyframes aurora { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { #capName.gold { animation: none; } }

/* Day comments flowing right to left, Niconico style. */
#dmLayer { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
#dmLayer.off { display: none; }
.dm { position: absolute; left: 100%; white-space: nowrap; pointer-events: auto; font: 700 clamp(17px, 2.6vh, 24px) var(--jp); color: #fff; text-shadow: 0 0 3px #000, 0 2px 2px #000, 0 0 6px #000; animation: dmFlow var(--dur, 7s) linear forwards; cursor: pointer; }
.dm.mine { color: #ffe08a; outline: 1px solid rgba(255, 224, 138, .7); padding: 0 4px; }
.dm.armed { color: #ff7a6a; }
@keyframes dmFlow { to { transform: translateX(calc(-100vw - 100%)); } }
#dmBtn { position: absolute; left: 8px; bottom: calc(var(--safe-b) + 12px); width: 46px; height: 46px; pointer-events: auto; font-size: 22px; background: rgba(10,8,5,.86); border: 1px solid var(--amber); border-radius: 8px; }
#dmBar { position: absolute; left: 8px; right: 8px; bottom: calc(var(--safe-b) + 66px); display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
#dmName { flex: 1 0 100%; height: 40px; padding: 0 10px; font: 700 15px var(--jp); color: #fff; background: #070503; border: 1px solid var(--amber); border-radius: 6px; user-select: text; -webkit-user-select: text; touch-action: auto; }
.dm i { font-style: normal; color: #9fe8ff; font-size: .8em; }
#dmText { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font: 700 16px var(--jp); color: #fff; background: #070503; border: 1px solid var(--amber); border-radius: 6px; user-select: text; -webkit-user-select: text; touch-action: auto; }
#dmBar .ghost { width: auto; flex: none; position: static; padding: 0 12px; }
#dmNote { position: absolute; left: 8px; right: 8px; bottom: calc(var(--safe-b) + 116px); font-size: 13px; color: #ffe08a; text-shadow: 0 1px 2px #000; pointer-events: none; }
#rankList li.oldhead { display: block; margin-top: 14px; padding: 6px 4px; color: var(--dim); font-size: 13px; border-top: 1px solid #5a4a30; background: none; }
#rankList li.old { opacity: .6; }

/* Mobile layout trial B: the top screen's numbers, large, in an HTML bar. */
#bigHud { position: fixed; left: 6px; right: 6px; top: calc(var(--safe-t) + 54px); z-index: 11; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 4px; pointer-events: none; }
#bigHud.none { display: none; }
#bigHud .bh { background: rgba(5,6,4,.86); border: 1px solid #5a4a30; border-radius: 6px; padding: 3px 8px; }
#bigHud .bh.wide, #bigHud .bh.calc { grid-column: 1 / -1; }
#bigHud small { display: block; color: #ffb000; font: 700 11px var(--jp); }
#bigHud b { display: block; color: #7dffa0; font: 400 30px VT323, monospace; line-height: 1; }
#bhLever { color: #ff6a50 !important; letter-spacing: 2px; }
#bhCoin { color: #ffc23a !important; }
#bigHud .bh.calc:has(#bhCalc:empty) { display: none; }
#bhCalc { font-size: 24px !important; color: #fff !important; }
