/* ENZOJUMPER — storybook theme. Cream paper, ink outlines, hard shadows,
   a chunky modern grotesque. Layered over style.css, which keeps the layout. */
:root {
  --paper: #fbf6ea;
  --paper-2: #f2ead7;
  --paper-3: #e8dec6;
  --ink: #142419;
  --ink-2: #3c5043;
  --ink-3: #6e7e71;
  --leaf: #23864a;
  --lime: #c8f06e;
  --lime-2: #b2e254;
  --coral: #ff7a59;
  --sun: #ffd166;
  --sky: #5fb6e0;

  --bg: #142419;
  --surface: var(--paper);
  --surface-2: var(--paper);
  --surface-solid: var(--paper-2);
  --line: rgba(20, 36, 25, .14);
  --line-2: rgba(20, 36, 25, .3);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --accent: var(--leaf);
  --accent-2: var(--leaf);
  --accent-ink: var(--ink);
  --amber: #b9771a;
  --rose: #c8452e;
  --danger: #c8452e;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --ui: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --glass: none;
  --border: 2.5px solid var(--ink);
}
html, body { font-family: var(--ui); font-size: 15.5px; font-variation-settings: 'wdth' 92; }
::selection { background: var(--lime); color: var(--ink); }

/* ─── paper panels ─── */
.screen { background: rgba(20, 36, 25, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.panel { background: var(--paper); color: var(--ink); border: var(--border); border-radius: var(--r); box-shadow: 7px 7px 0 var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; background-image: radial-gradient(rgba(120, 95, 40, .06) 1px, transparent 1px); background-size: 6px 6px; }
.panel h2 { font: 800 30px/1.05 var(--display); font-variation-settings: 'wdth' 82; letter-spacing: -.01em; color: var(--ink); }
.panel h3 { font: 800 13px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.panel p, .muted { color: var(--ink-2); }
.panel .close { background: var(--paper); border: var(--border); color: var(--ink); box-shadow: var(--shadow-sm); border-radius: 12px; }
.panel .close:hover { background: var(--lime); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* ─── chunky buttons ─── */
.btn { background: var(--lime); color: var(--ink); border: var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); font: 700 15px/1 var(--ui); letter-spacing: .01em; transition: transform .12s, box-shadow .12s, background .15s; }
.btn:hover { background: var(--lime-2); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); filter: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.danger { background: #ffd6cc; color: var(--danger); }
.btn.danger:hover { background: #ffc3b4; }
.btn:disabled { opacity: .5; transform: none; box-shadow: var(--shadow-sm); }
.icon-btn { background: var(--paper); color: var(--ink); border: var(--border); box-shadow: var(--shadow-sm); border-radius: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.icon-btn:hover { background: var(--lime); }
.linkish { color: var(--ink-2); font-weight: 600; }
.linkish:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ─── forms ─── */
input[type=text], input[type=number], input[type=password], select { background: #fffdf6 !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; border-radius: 12px; box-shadow: inset 2px 2px 0 rgba(20, 36, 25, .08); }
input:focus { box-shadow: 0 0 0 4px rgba(200, 240, 110, .7) !important; border-color: var(--ink) !important; }
input[type=range] { accent-color: var(--leaf); }
.toggle span { color: var(--ink); }
.seg { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 14px; padding: 4px; }
.seg button { color: var(--ink-2); font-weight: 700; border-radius: 10px; }
.seg button.on { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.seg.small button { padding: 6px 8px; font-size: 12.5px; }
.code-box { background: var(--paper-2); color: var(--ink); border: 2px dashed var(--ink-3); }

/* ─── lists and cards inside panels ─── */
.navlist button { color: var(--ink); border-bottom: 1.5px solid var(--line); border-radius: 10px; }
.navlist button .ico { color: var(--leaf); }
.navlist button small { color: var(--ink-3); }
.navlist button:hover { background: rgba(200, 240, 110, .35); }
.complete-stats div, .medal, .item, .result, .hat, .jl.missing, .acct-row, .xpline, .shop-head, .acct-card { background: #fffdf6; border: 2px solid var(--ink); border-radius: 14px; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.complete-stats b { color: var(--ink); font-family: var(--display); font-weight: 800; }
.complete-stats small, .medal small, .item .it small { color: var(--ink-3); }
.medal { opacity: .45; }
.medal.on { opacity: 1; background: #fff4cf; }
.item .ii { background: var(--paper-2); color: var(--leaf); border: 2px solid var(--ink); }
.item .it .have { color: var(--leaf); }
.price.sale { color: var(--coral); }
.result .rk { color: var(--ink-3); }
.hat.on, .item .btn:not(.ghost) { background: var(--lime); }
.swatch { border: 2.5px solid var(--ink) !important; box-shadow: 2px 2px 0 var(--ink); }
.lvl { background: #fffdf6; color: var(--ink); border: 2px solid var(--ink); }
.lvl.done { background: var(--lime); }
.lvl:disabled { background: var(--paper-2); color: var(--ink-3); border-style: dashed; }
.acct-card { color: var(--leaf); }
.acct-card b { color: var(--ink); }
.acct-msg { color: var(--danger); }
.xp-top b { color: var(--leaf); }
.xpbar { background: var(--paper-3); border: 1.5px solid var(--ink); }
.xpbar i { background: linear-gradient(90deg, var(--leaf), var(--lime)); box-shadow: none; }
.lvup { color: var(--coral); }
.pb.up { color: var(--leaf); }
.rank-chip { background: var(--paper); border: 2px solid var(--ink); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.rank-chip b { color: var(--ink); }
.rank-chip .ico { color: var(--leaf); }
.journal-story li { border-left-color: var(--lime-2); }
.journal-story small { color: var(--leaf); }
.journal-story p { font-family: var(--serif); color: var(--ink); }
.shop-head { background: #fff4cf; }
.shop-purse { background: var(--paper); border: 2px solid var(--ink); }
.shop-say { font-family: var(--serif); color: var(--ink); }

/* ─── the HUD: paper tags pinned to the screen ─── */
.pill { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm); border-radius: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 800; }
.pill .lv { color: var(--ink-3); }
.pill b { font-family: var(--display); }
.pill .dot { background: var(--leaf); }
.timer { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 7px; margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; box-shadow: 2px 2px 0 var(--ink); }
.timer.par-miss { color: var(--danger); }
.combo { color: var(--ink); -webkit-text-stroke: 0; text-shadow: 2px 2px 0 var(--paper), -2px -2px 0 var(--paper), 2px -2px 0 var(--paper), -2px 2px 0 var(--paper); font-weight: 800; }
.intro { text-shadow: none; }
.intro .in-ch { display: inline-block; background: var(--ink); color: var(--lime); padding: 6px 12px; border-radius: 8px; letter-spacing: .14em; }
.intro .in-lv { font: 800 clamp(48px, 8vw, 92px)/1 var(--display); font-variation-settings: 'wdth' 80; color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.intro .in-place { color: var(--ink); background: var(--paper); display: inline-block; padding: 4px 12px; border-radius: 8px; border: 2px solid var(--ink); font-weight: 700; }
.intro .in-tags span { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ─── dialogue: a storybook caption card with a name tab ─── */
.dialog { background: var(--paper); color: var(--ink); border: var(--border); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.dportrait { background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 18px; }
.dname { display: inline-block; background: var(--ink); padding: 5px 11px 4px; border-radius: 8px; letter-spacing: .12em; font-weight: 800; margin-bottom: 6px; }
.dtext { color: var(--ink); font-size: 17px; line-height: 1.5; font-weight: 500; }
.dtext.moth { font-family: var(--serif); font-style: italic; }
.dnext { color: var(--leaf); }
.dskip { color: var(--ink-2); border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.toast { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.toast .tp { background: var(--paper-2); border: 2px solid var(--ink); }
.toast .tn { background: var(--ink); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.toast .tt { color: var(--ink); font-weight: 500; }
.news div { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); backdrop-filter: none; }
.pop { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--shadow); backdrop-filter: none; }
.pop .pi { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); }
.pop small { color: var(--ink-3); }
.talk { background: var(--paper); color: var(--ink); border: var(--border); box-shadow: 7px 7px 0 var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.talk .tk-log { color: var(--ink); }
.touch button { background: var(--paper) !important; color: var(--ink) !important; border: 2.5px solid var(--ink) !important; box-shadow: var(--shadow-sm); }

/* ─── the start menu ─── */
.screen.title-screen { background: linear-gradient(90deg, rgba(251, 246, 234, .92) 0%, rgba(251, 246, 234, .7) 34%, rgba(251, 246, 234, 0) 62%); place-items: center start; padding: clamp(20px, 6vw, 84px); }
.title-wrap { width: min(520px, 100%); display: flex; flex-direction: column; gap: 14px; }
.studio-line { font: 800 12px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.logo { position: relative; margin: 0; font: 800 clamp(58px, 9vw, 112px)/.86 var(--display); font-variation-settings: 'wdth' 76, 'opsz' 96; letter-spacing: -.035em; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; }
.logo .lg-b { color: var(--lime); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); margin-left: .02em; }
.logo .lg-sprout { position: absolute; width: clamp(34px, 5vw, 58px); right: 4%; top: -14%; animation: hop 1.6s cubic-bezier(.3, 0, .3, 1) infinite; transform-origin: 50% 100%; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1.08, .92); } 12% { transform: translateY(0) scale(.94, 1.08); } 45% { transform: translateY(-34%) rotate(-8deg); } 70% { transform: translateY(0) scale(1, 1); } }
.tagline { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 16px; font-weight: 500; }
.menu { display: grid; gap: 10px; margin-top: 8px; }
.m-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; text-align: left; background: var(--paper); color: var(--ink); border: var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; transition: transform .14s, box-shadow .14s, background .15s; animation: m-in .5s calc(var(--i) * .06s) cubic-bezier(.2, 1.3, .4, 1) both; outline: none; }
.m-item .ico { color: var(--leaf); flex: none; }
.m-item span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.m-item b { font: 800 19px/1.1 var(--display); font-variation-settings: 'wdth' 85; }
.m-item small { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item .chev { color: var(--ink-3); transition: transform .2s; }
.m-item:hover, .m-item:focus-visible, .m-item:focus { background: #fffbe9; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.m-item:focus .chev, .m-item:hover .chev { transform: translateX(4px); color: var(--ink); }
.m-item.primary { background: var(--lime); padding: 17px 18px; }
.m-item.primary b { font-size: 24px; }
.m-item.primary small { color: var(--ink-2); }
.m-item.primary .ico { color: var(--ink); }
.m-item.primary:hover, .m-item.primary:focus { background: var(--lime-2); }
.m-item.live small { color: var(--coral); font-weight: 700; }
@keyframes m-in { from { opacity: 0; transform: translateX(-24px); } }
.dock { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dock .ib { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s; }
.dock .ib:hover, .dock .ib:focus-visible { background: var(--lime); transform: translate(-1px, -2px) rotate(-3deg); box-shadow: 4px 5px 0 var(--ink); }
.title-foot { position: absolute; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); text-align: center; font-size: 12px; color: var(--ink-2); pointer-events: none; }
.title-foot b { font-weight: 800; letter-spacing: .08em; }
.title-stats, .ver { display: none !important; }

/* ─── the live leaderboard ─── */
.live-board { position: absolute; right: clamp(16px, 4vw, 56px); top: 50%; transform: translateY(-50%); width: min(340px, 34vw); padding: 16px; background: var(--paper); color: var(--ink); border: var(--border); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); pointer-events: auto; animation: lb-in .6s .2s cubic-bezier(.2, 1.3, .4, 1) both; }
.live-board.inline { position: static; transform: none; width: auto; box-shadow: 3px 3px 0 var(--ink); animation: none; margin: 8px 0 14px; }
@keyframes lb-in { from { opacity: 0; transform: translate(30px, -50%); } }
.live-board header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.live-board header b { font: 800 18px/1 var(--display); flex: 1; }
.live-board header small { color: var(--ink-3); font-weight: 600; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 122, 89, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255, 122, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); } }
.lb-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.lb-list li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; background: #fffdf6; border: 1.5px solid var(--line-2); font-size: 14px; }
.lb-list li:nth-child(1) { background: #fff1c2; border-color: var(--ink); }
.lb-list li:nth-child(2) { background: #f1f1ea; }
.lb-list li:nth-child(3) { background: #f9e4d6; }
.lb-list li.me { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); background: var(--lime); }
.lb-list li.moved { animation: lb-flash 1.2s; }
@keyframes lb-flash { 0%, 40% { background: var(--sun); } }
.lb-list .rk { width: 20px; font-weight: 800; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.lb-list .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.lb-list .nm { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-list .on { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); flex: none; }
.lb-list b { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13px; }
.lb-list .empty { color: var(--ink-3); justify-content: center; font-style: italic; }
.lb-more { margin-top: 10px; }
@media (max-width: 900px) {
  .screen.title-screen { place-items: start center; background: linear-gradient(180deg, rgba(251, 246, 234, .94) 0%, rgba(251, 246, 234, .75) 70%, rgba(251, 246, 234, .5) 100%); overflow-y: auto; }
  .live-board { position: static; transform: none; width: 100%; margin-top: 18px; animation: none; }
  .title-foot { position: static; margin-top: 16px; }
}

/* ─── the studio intro ─── */
.studio { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 45%, #183222, #070d09); color: #f4efe0; font-family: var(--display); cursor: pointer; overflow: hidden; }
.studio.gone { display: none; }
.studio.out { opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.st-scene { position: absolute; display: grid; justify-items: center; gap: 6px; text-align: center; opacity: 0; }
.st-1 { animation: st-show 2.6s .25s ease both; }
.st-2 { animation: st-show 2.6s 2.9s ease both; }
@keyframes st-show { 0% { opacity: 0; transform: scale(.96); filter: blur(8px); } 18% { opacity: 1; transform: none; filter: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.03); filter: blur(4px); } }
.st-mark { width: 104px; height: 104px; margin-bottom: 14px; }
.st-frame { stroke-dasharray: 400; stroke-dashoffset: 400; animation: st-draw 1.2s .4s cubic-bezier(.6, 0, .2, 1) forwards; }
.st-e { stroke-dasharray: 220; stroke-dashoffset: 220; animation: st-draw 1s .9s cubic-bezier(.6, 0, .2, 1) forwards; }
.st-spark { opacity: 0; transform-origin: 86px 60px; animation: st-spark .6s 1.7s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
@keyframes st-spark { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.st-name { font: 800 clamp(34px, 6vw, 64px)/1 var(--display); letter-spacing: .32em; margin-right: -.32em; font-variation-settings: 'wdth' 100; }
.st-sub { font: 600 13px/1 var(--display); letter-spacing: .7em; margin-right: -.7em; color: #b9d98a; }
.st-by { font: italic 400 20px/1 var(--serif); color: #b9c8b0; }
.st-author { font: 800 clamp(44px, 8vw, 92px)/1 var(--display); font-variation-settings: 'wdth' 80; letter-spacing: -.02em; color: #c8f06e; }
.st-roles { font: 600 12px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: #9fb196; margin-top: 8px; }
.st-skip { position: absolute; bottom: 24px; right: 28px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 239, 224, .35); }

/* ─── cinematic overlays keep their own night colours ─── */
.cc, .prev, .fall, .freeze, .letter, .vhs { --text: #f4efe0; --text-2: #c9d6c2; --text-3: #9fb196; --display: 'Bricolage Grotesque', system-ui, sans-serif; }
.cc-t { font-variation-settings: 'wdth' 80; font-weight: 800; letter-spacing: -.03em; }
.cc-s, .prev li { font-family: var(--serif); color: #d6e2d2; }
.cc-k { color: #c8f06e; }
.prev h2 { color: #f4efe0; font-weight: 800; }
.lt-paper p, .lt-sign { font-family: var(--serif); }
.fz-line { font-family: var(--serif); }
.fz-next b { font-weight: 800; }
body.void .dialog { background: transparent; border-color: transparent; box-shadow: none; }
body.void .dtext { font-family: var(--serif); color: #e9e2c8; }
body.void .dname { background: transparent; color: #b9c8b0 !important; }
body.cinema .dialog { box-shadow: 7px 7px 0 #000; }

/* fit shorter screens; footer out of the way */
.screen.title-screen { align-items: safe center; }
.title-wrap { gap: 11px; }
.logo { font-size: clamp(52px, min(8vw, 11vh), 104px); }
.m-item { padding: 10px 14px; }
.m-item.primary { padding: 14px 16px; }
.m-item b { font-size: 18px; }
.m-item.primary b { font-size: 22px; }
.title-foot { left: auto; right: clamp(16px, 4vw, 56px); text-align: right; }
@media (max-height: 700px) { .tagline, .studio-line { display: none; } .m-item small { display: none; } }
.st-1 { animation-duration: 3s; }
.st-2 { animation-delay: 3.1s; animation-duration: 3s; }

/* ─── the Static Raid (first-person shooter) ─── */
#raid { position: absolute; inset: 0; z-index: 45; background: #000; animation: fadein .4s; cursor: crosshair; }
#raid.out { opacity: 0; transition: opacity .45s; }
#raid canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#raid.hit::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 30px rgba(220, 30, 60, .55); animation: rd-hit .4s ease-out forwards; }
@keyframes rd-hit { to { opacity: 0; } }
.rd-cross { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; background: radial-gradient(circle, #fff 2px, transparent 2.5px), linear-gradient(#fff, #fff) center/2px 9px no-repeat; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; mix-blend-mode: difference; }
.rd-top { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; pointer-events: none; }
.rd-top b, .rd-top span { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm); border-radius: 12px; padding: 7px 12px; font-weight: 800; }
.rd-hp { position: absolute; left: 18px; bottom: 18px; width: min(260px, 40vw); padding: 8px 10px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); pointer-events: none; }
.rd-hp small { font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.rd-hp i { display: block; height: 10px; margin-top: 5px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.rd-hp b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--coral), var(--lime)); transition: width .25s; }
.rd-banner { position: absolute; left: 50%; top: 28%; transform: translate(-50%, -50%) scale(.8); font: 800 clamp(34px, 6vw, 72px)/1 var(--display); font-variation-settings: 'wdth' 78; color: var(--lime); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); opacity: 0; pointer-events: none; white-space: nowrap; }
.rd-banner.on { animation: rd-banner 1.6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes rd-banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-4deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); } }
.rd-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(20, 36, 25, .7); color: #fbf6ea; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; pointer-events: none; }
.rd-gun { position: absolute; right: 4vw; bottom: -10px; width: min(300px, 34vw); pointer-events: none; transform-origin: 80% 100%; }
.rd-gun.kick { animation: rd-kick .15s ease-out; }
.rd-flash { opacity: 0; }
.rd-gun.kick .rd-flash { animation: rd-flash .1s; }
@keyframes rd-kick { 40% { transform: translate(6px, 14px) rotate(4deg); } }
@keyframes rd-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.rd-pause { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 36, 25, .45); cursor: pointer; }
.rd-pause b { background: var(--paper); color: var(--ink); border: var(--border); box-shadow: var(--shadow); border-radius: 16px; padding: 14px 22px; font-size: 18px; }
.rd-skip { position: absolute; right: 16px; top: 16px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; font: 700 12px/1 var(--ui); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.rd-pad { position: absolute; left: 0; bottom: 0; width: 45%; height: 55%; pointer-events: none; background: radial-gradient(circle at 30% 70%, rgba(251, 246, 234, .16) 0 60px, transparent 61px); }
.rd-fire { position: absolute; right: 26px; bottom: 120px; width: 86px; height: 86px; border-radius: 50%; background: var(--coral); border: 3px solid var(--ink); box-shadow: var(--shadow-sm); }

/* ─── the Stack Map ─── */
.panel.map { width: min(760px, 96vw); }
.stackmap { max-height: min(62vh, 640px); overflow-y: auto; border: var(--border); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); margin: 8px 0 16px; background: #fbf6ea; scroll-behavior: smooth; }
.stackmap svg { display: block; }
.sm-cht { font: 800 18px var(--display); fill: var(--ink); font-variation-settings: 'wdth' 85; }
.sm-n { font: 800 14px var(--ui); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.sm-node.open { cursor: pointer; }
.sm-node.open circle { transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.sm-node.open:hover circle, .sm-node.open:focus circle { transform: scale(1.15); }
.sm-node:focus { outline: none; }
.sm-node.locked { opacity: .65; }
.sm-me { animation: sm-hop 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes sm-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.row.wrap { flex-wrap: wrap; }
