:root {
  --bg: #0f1115;
  --panel: rgba(20, 23, 30, 0.8);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f1ea;
  --muted: rgba(243, 241, 234, 0.6);
  --gold: #ffd35a;
  --gold2: #e0a526;
  --red: #ff4d4d;
  --green: #4dff88;
  --blue: #6fb6ff;
  --r: 14px;
  --font: Inter, 'Segoe UI', system-ui, sans-serif;
  --stencil: 'Black Ops One', Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-tap-highlight-color: transparent; }
body { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#app, #app canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#app canvas { touch-action: none; }
#lvh { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
input { font: 500 15px var(--font); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07); color: var(--text); font: 700 14px var(--font);
  cursor: pointer; text-decoration: none; backdrop-filter: blur(8px); transition: transform .12s, background .2s; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(180deg, #ffe07a, #e8a92a); color: #1a1406; border-color: transparent; box-shadow: 0 6px 20px rgba(232, 169, 42, .3); }
.btn.primary:hover { background: linear-gradient(180deg, #ffe890, #f0b53a); }
.btn.gold { background: rgba(255, 211, 90, .16); border-color: rgba(255, 211, 90, .4); color: var(--gold); }
.btn.icon { width: 40px; padding: 0; font-size: 17px; }
.btn.ghost { background: transparent; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); }
.ph { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font: 400 16px var(--stencil); letter-spacing: .06em; }
.ph .muted { font: 600 12px var(--font); letter-spacing: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* brand */
#brand { position: fixed; top: 14px; left: 16px; z-index: 5; width: 290px; }
.logo { display: flex; align-items: center; gap: 10px; font: 400 30px var(--stencil); letter-spacing: .03em; color: var(--gold); text-shadow: 0 2px 18px rgba(255, 211, 90, .3); }
.logo .tick { font: 700 13px var(--font); color: var(--text); background: rgba(255, 255, 255, .1); padding: 3px 8px; border-radius: 6px; letter-spacing: 0; text-shadow: none; }
.tag { color: var(--muted); font-size: 13px; margin: 0 0 10px 2px; }
#coin { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.coin-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); gap: 8px; }
#coinMc { color: var(--text); font-weight: 700; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 6px; transition: width .6s; }

/* the big number */
#owed { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 4; pointer-events: none; width: min(640px, 60vw); }
#owed .label { font: 800 12px var(--font); letter-spacing: .16em; color: var(--muted); }
#owed .big { font: 400 64px var(--stencil); line-height: 1.05; color: var(--gold); text-shadow: 0 4px 34px rgba(255, 190, 60, .45), 0 2px 0 #6b4c0e; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
#owed .big.bump { animation: bump .25s; }
@keyframes bump { 40% { transform: scale(1.04); } }
#owed .sub { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pause { color: #fff; background: rgba(255, 77, 77, .9); padding: 3px 10px; border-radius: 6px; font-weight: 800; letter-spacing: .06em; font-size: 12px; animation: blink 1.4s infinite; }
.pause.ok { background: rgba(40, 170, 90, .9); animation: none; }

/* actions */
#actions { position: fixed; top: 14px; right: 16px; z-index: 5; display: flex; gap: 8px; }

/* side panels */
#board, #log { position: fixed; top: 150px; bottom: 150px; width: 300px; z-index: 3; display: flex; flex-direction: column; }
#board { left: 16px; }
#log { right: 16px; }
.tabs { display: flex; gap: 4px; padding: 0 10px 8px; }
.tabs button { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); font: 700 12.5px var(--font); padding: 6px 0; border-radius: 8px; cursor: pointer; }
.tabs button.on { background: rgba(255, 211, 90, .16); color: var(--gold); border-color: rgba(255, 211, 90, .35); }
.list { flex: 1; overflow-y: auto; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.empty { color: var(--muted); font-size: 13px; padding: 14px 8px; text-align: center; }

.person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.person:hover, .person.sel { background: rgba(255, 255, 255, .07); }
.person .rk { width: 22px; font: 800 12px var(--font); color: var(--muted); text-align: right; }
.person.top .rk { color: var(--gold); }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: #333; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.person .who { flex: 1; min-width: 0; }
.av.lock { background: #1d2129; font-size: 15px; }
.person.anon .nm { color: var(--muted); }
.person .nm { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .hd { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .amt { text-align: right; font-weight: 800; font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }
.person .amt small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.person.pulse { animation: rowpulse 1.2s; }
@keyframes rowpulse { 0% { background: rgba(255, 211, 90, .35); } 100% { background: transparent; } }

.find { display: flex; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--line); }
.find input { flex: 1; min-width: 0; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 0 12px; height: 40px; outline: none; }
.find input:focus { border-color: rgba(255, 211, 90, .5); }

/* vault log */
.ev { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; font-size: 13px; line-height: 1.35; cursor: default; }
.ev + .ev { border-top: 1px solid rgba(255, 255, 255, .04); }
.ev .ic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; background: rgba(255, 255, 255, .06); font-size: 15px; }
.ev.accrue .ic { background: rgba(255, 211, 90, .15); }
.ev.paid .ic { background: rgba(77, 255, 136, .15); }
.ev.named .ic { background: rgba(111, 182, 255, .15); }
.ev.buy .ic { background: rgba(255, 211, 90, .15); }
.ev.sell .ic { background: rgba(255, 77, 77, .15); }
.ev b { color: var(--text); }
.ev .gold { color: var(--gold); font-weight: 800; }
.ev .when { color: var(--muted); font-size: 11px; }
.ev a { color: var(--blue); text-decoration: none; }
.ev.fresh { animation: rowpulse 1.4s; }
.ev[data-h] { cursor: pointer; }
.stats { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.stats div { display: flex; flex-direction: column; }
.stats small { color: var(--muted); font-size: 10.5px; letter-spacing: .06em; font-weight: 700; }
.stats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.stats .burn { grid-column: 1 / -1; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 6px; }
.stats .burn b { color: #ff9a3d; }
.stats .burn a { color: var(--muted); }
.stats .src { grid-column: 1 / -1; color: var(--muted); font-size: 11px; display: block; }
.stats .src a { color: var(--muted); }

/* bottom */
#bottom { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(900px, calc(100vw - 660px)); }
#road { display: flex; gap: 6px; width: 100%; }
.node { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 6px; text-align: center; font-size: 11.5px; color: var(--muted); backdrop-filter: blur(8px); min-width: 0; }
.node b { display: block; color: var(--text); font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.done { border-color: rgba(255, 211, 90, .45); }
.node.done b { color: var(--gold); }
.node.next { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 20px rgba(255, 211, 90, .18); }
.node.sealed b { letter-spacing: .2em; }
.node .play { color: var(--gold); cursor: pointer; font-weight: 700; }
.node[data-play] { cursor: pointer; }
#mobileTabs { display: none; }

#hint { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 4; font: 800 14px var(--font); letter-spacing: .14em; color: var(--gold); background: rgba(0, 0, 0, .55); padding: 8px 16px; border-radius: 10px; pointer-events: none; animation: hintb 1.6s infinite; transition: opacity .5s; }
#hint.gone { opacity: 0; }
@keyframes hintb { 50% { transform: translate(-50%, -4px); } }
#tape { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; pointer-events: none; }
#tape > div { background: rgba(0, 0, 0, .6); padding: 4px 12px; border-radius: 8px; font-size: 13px; animation: tapein .3s; white-space: nowrap; }
#tape .buy b { color: var(--gold); }
#tape .sell b { color: var(--red); }
@keyframes tapein { from { opacity: 0; transform: translateY(8px); } }

/* titles */
#title { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.9); z-index: 6; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
#title.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#title .t1 { font: 400 72px var(--stencil); color: var(--gold); text-shadow: 0 6px 40px rgba(0, 0, 0, .8), 0 0 40px rgba(255, 190, 60, .5); line-height: 1; }
#title .t2 { font: 700 18px var(--font); margin-top: 10px; text-shadow: 0 2px 12px #000; }
#flash { position: fixed; inset: 0; background: #fff6d8; opacity: 0; pointer-events: none; z-index: 7; }
#redwash { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 0, 0, .45)); opacity: 0; }

/* floaters */
#floaters { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.fl { position: absolute; transform: translate(-50%, -50%); font: 900 18px var(--font); animation: fl .95s ease-out forwards; text-shadow: 0 2px 8px #000; white-space: nowrap; }
.fl.big { font-size: 24px; }
.fl.knock { font: 400 22px var(--stencil); }
@keyframes fl { to { transform: translate(-50%, -110%); opacity: 0; } }

/* tooltip */
#tip { position: fixed; z-index: 8; background: rgba(12, 14, 18, .95); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; pointer-events: none; min-width: 190px; }
#tip .nm { font-weight: 800; font-size: 15px; }
#tip .amt { color: var(--gold); font-weight: 900; font-size: 20px; margin-top: 4px; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.sheet { position: relative; background: #151820; border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; user-select: text; }
.sheet.narrow { width: min(480px, 100%); }
.sheet h2 { font: 400 26px var(--stencil); margin: 0 0 10px; color: var(--gold); letter-spacing: .02em; }
.close { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .08); border: 0; color: var(--text); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; z-index: 2; }
.row { display: flex; gap: 8px; margin-top: 14px; }
.row.wrap { flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.how { padding-left: 18px; line-height: 1.5; font-size: 14.5px; }
.how li { margin-bottom: 8px; }
.how b { color: var(--gold); }

.ticket { position: relative; background: linear-gradient(135deg, #f6ecd2, #e6d2a4); color: #1b1f27; border-radius: 14px; padding: 16px 18px 18px; overflow: hidden; }
.t-head { display: flex; justify-content: space-between; align-items: center; background: #1b1f27; color: #cfd5de; margin: -16px -18px 14px; padding: 10px 18px; font: 800 12px var(--font); letter-spacing: .14em; }
.brandmark { font: 400 20px var(--stencil); color: var(--gold); letter-spacing: .04em; }
.t-body { display: flex; align-items: center; gap: 14px; }
.t-av { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #1b1f27; object-fit: cover; background: #8a7a55; }
.t-name { font-weight: 900; font-size: 22px; }
.t-handle { font-weight: 700; color: #5a5140; text-decoration: none; }
.t-handle:hover { text-decoration: underline; }
.t-label { margin-top: 14px; font: 800 11.5px var(--font); letter-spacing: .14em; color: #5a5140; }
.t-owed { font: 400 52px var(--stencil); line-height: 1.05; font-variant-numeric: tabular-nums; }
.t-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: #5a5140; margin-top: 4px; }
.t-coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.t-coins a { display: inline-flex; align-items: center; gap: 6px; background: rgba(27, 31, 39, .08); border: 1px solid rgba(27, 31, 39, .15); border-radius: 8px; padding: 4px 8px 4px 4px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.t-coins a:hover { background: rgba(27, 31, 39, .15); }
.t-coins img, .t-coins .cav { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; background: #9a8a60; }
.t-coins small { color: #5a5140; font-weight: 600; }
.stamp { position: absolute; top: 58px; right: 14px; transform: rotate(-12deg); border: 4px solid rgba(192, 57, 43, .8); color: rgba(192, 57, 43, .85); font: 400 20px var(--stencil); padding: 4px 10px; border-radius: 8px; letter-spacing: .04em; }
.stamp.ok { border-color: rgba(30, 132, 73, .8); color: rgba(30, 132, 73, .85); }
.ticket.knocked { animation: tknock .35s; }
@keyframes tknock { 20% { transform: translateX(-6px) rotate(-.6deg); } 50% { transform: translateX(5px) rotate(.4deg); } 80% { transform: translateX(-2px); } }

#demo { position: fixed; left: 50%; top: 150px; transform: translateX(-50%); z-index: 9; background: rgba(0, 0, 0, .7); border: 1px dashed rgba(255, 255, 255, .25); border-radius: 10px; padding: 6px 8px; display: flex; gap: 4px; align-items: center; font-size: 11px; }
#demo button { background: rgba(255, 255, 255, .1); border: 0; color: #fff; border-radius: 6px; padding: 4px 7px; cursor: pointer; font-size: 11px; }

#loader { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-weight: 600; transition: opacity .6s; }
#loader.gone { opacity: 0; pointer-events: none; }
.lcoin { width: 120px; height: 120px; border-radius: 22px; box-shadow: 0 0 60px rgba(255, 190, 60, .35); animation: lpulse 1.4s ease-in-out infinite; }
@keyframes lpulse { 50% { transform: scale(1.05); } }
.dial { width: 64px; height: 64px; border-radius: 50%; border: 6px solid #3a404b; border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* screenshot mode for the OG card */
body.og #board, body.og #log, body.og #actions, body.og #bottom, body.og #hint, body.og #tape, body.og #brand, body.og #demo { display: none !important; }

/* narrower desktops: slimmer panels */
@media (max-width: 1280px) {
  #board, #log { width: 260px; }
  #bottom { width: min(900px, calc(100vw - 580px)); }
  #owed .big { font-size: 54px; }
}

/* small desktops / tablets */
@media (min-width: 761px) and (max-width: 1100px) {
  #brand { width: 220px; }
  .logo { font-size: 24px; }
  .tag { display: none; }
  #owed { width: calc(100vw - 560px); top: 14px; }
  #owed .big { font-size: 40px; }
  #owed .label { font-size: 10px; letter-spacing: .1em; }
  #board, #log { width: 230px; top: 120px; bottom: 120px; }
  #bottom { width: calc(100vw - 500px); }
  .node b { font-size: 10px; }
  .node { font-size: 10px; }
  .node .play { display: none; }
  #actions .desk { display: none; }
  #demo { top: 120px; }
}


/* wrappers only matter on phones */
#ui, #topbar, #hero { display: contents; }
#spot, #cue, #mbar, .mob { display: none; }

/* knock button on list rows */
.person .kn { flex: none; background: rgba(255, 211, 90, .1); border: 1px solid rgba(255, 211, 90, .25); color: var(--gold); border-radius: 8px; font: 800 12px var(--font); padding: 5px 7px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.person .kn:active { transform: scale(.92); }
@media (min-width: 761px) { .person .kn { display: none; } }

/* the count-up lands with a stamp */
.pause.slam { animation: slam .45s cubic-bezier(.2, 1.6, .4, 1), blink 1.4s 0.5s infinite; }
@keyframes slam { 0% { transform: scale(2.4) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* phones: one scrolling column over the vault; the first screen has to land in 3 seconds */
@media (max-width: 760px) {
  .desk { display: none !important; }
  .btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .btn.icon { width: 38px; }

  /* the vault keeps the large-viewport height, so the address bar can't resize it */
  #app, #app canvas { bottom: auto; height: 100vh; height: 100lvh; }
  #ui { display: block; position: fixed; inset: 0; z-index: 3; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 12px calc(86px + env(safe-area-inset-bottom)); }
  #topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; position: sticky; top: 0; z-index: 6; margin: 0 -12px; padding: 10px 12px 14px; background: linear-gradient(#0f1115f2 60%, #0f111500); }
  #brand { position: static; width: auto; }
  .logo { font-size: 24px; }
  .logo .tick, .tag { display: none; }
  #coin { padding: 4px 8px; margin-top: 4px; }
  .coin-row { font-size: 10.5px; white-space: nowrap; }
  #actions { position: static; gap: 6px; }
  #buyBtn { display: none; }

  #hero { display: flex; flex-direction: column; min-height: calc(100svh - 150px); }
  #owed { position: static; transform: none; width: auto; margin-top: 2px; }
  #owed .label { font-size: 10.5px; letter-spacing: .12em; }
  #owed .big { font-size: clamp(40px, 12.5vw, 56px); }
  #owed .sub { flex-direction: column; gap: 6px; margin-top: 4px; }
  #owed .sub #owedRate { font-size: 12px; }

  #spot { display: flex; margin-top: auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(14, 16, 21, .86); border: 1px solid rgba(255, 211, 90, .28); box-shadow: 0 10px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 190, 60, .12); backdrop-filter: blur(10px); cursor: pointer; }
  #spot.hidden { display: none !important; }
  #spot.in { animation: spotin .45s cubic-bezier(.2, 1.3, .4, 1); }
  @keyframes spotin { from { transform: translateX(40px); opacity: 0; } }
  #spotAv { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: #333; flex: none; }
  .sp-body { flex: 1; min-width: 0; }
  .sp-k { font: 800 10.5px var(--font); letter-spacing: .16em; color: var(--muted); }
  .sp-amt { font: 400 32px var(--stencil); color: var(--gold); line-height: 1.05; font-variant-numeric: tabular-nums; }
  .sp-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sp-name small { color: var(--muted); font-weight: 600; }
  .sp-knock { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(255, 211, 90, .14); border: 1px solid rgba(255, 211, 90, .4); color: var(--gold); border-radius: 12px; font: 800 20px var(--font); padding: 8px 10px; }
  .sp-knock span { font-size: 11px; }
  .sp-knock:active { transform: scale(.92); }
  #cue { display: block; margin: 12px auto 4px; background: none; border: 0; color: var(--gold); font: 800 12px var(--font); letter-spacing: .14em; text-transform: uppercase; animation: hintb 1.6s infinite; }
  @keyframes hintb { 50% { transform: translateY(4px); } }

  #board, #log { position: static; width: auto; height: auto; margin-top: 14px; display: block; transform: none; background: rgba(16, 18, 24, .92); }
  #board .list { overflow: visible; max-height: none; padding-bottom: 4px; }
  #log .list { max-height: 55vh; }
  .person { padding: 9px 6px; gap: 10px; }
  .av { width: 44px; height: 44px; }
  .person .nm { font-size: 14.5px; }
  .person .amt { font-size: 15px; }
  .find { position: static; }

  #bottom { position: static; transform: none; width: auto; margin-top: 14px; }
  #road { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .node { font-size: 11px; padding: 8px 6px; text-align: left; }
  .node b { font-size: 12px; }
  .node .play { display: inline; }
  .mob { display: flex; width: 100%; }

  #mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(#0f111500, #0f1115f5 35%); }
  #mbar .btn { flex: 1; height: 48px; font-size: 15px; border-radius: 12px; }

  #hint { display: none; }
  #tape { bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 7; }
  #tape > div { font-size: 12px; }
  #title .t1 { font-size: 44px; }
  #title .t2 { font-size: 15px; }
  #demo { top: auto; bottom: 140px; flex-wrap: wrap; width: calc(100vw - 20px); justify-content: center; }
  .t-owed { font-size: 40px; }
  .stamp { top: 52px; font-size: 15px; }
  #tip { display: none !important; }
}
