/* Bomb Blast - all UI styles. rem based (root font size is set by game.js from the window size); safe-area insets + 100dvh keep phones tidy.
   Sections: base, top bar + HUD, boss bar, touch controls, banner + hint, overlays (menu, level map, sheet, help, settings, cards), responsive */
:root { --acc: #FFB52E; --pn: linear-gradient(180deg, #2A2362, #181340); --top: 54px; --sat: 0px; --sar: 0px; --sab: 0px; --sal: 0px; --gold: #FFD23F; --heart: #FF5C7A; }
html, body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; background: #14102f; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-b); color: var(--paper); }
button { font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
svg.fill, .fill svg { fill: currentColor; stroke: none; }
#app, .bb { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: hidden; background: #14102f; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.btn { gap: .5em; white-space: nowrap; min-height: 2.6em; font-size: 1rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn em { font-style: normal; opacity: .8; font-size: .85em; }
.btn--ghost { --bg: rgba(255, 255, 255, .09); --sh: rgba(0, 0, 0, .35); }
.btn--big { font-size: 1.35rem; }
.btn.dis, .btn:disabled { opacity: .45; filter: grayscale(.5); pointer-events: none; }
.shake { animation: bbshake .35s; }
@keyframes bbshake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ic { display: block; }

/* ---------- top bar ---------- */
.bar { position: absolute; z-index: 30; left: 0; right: 0; top: 0; height: var(--top); padding: var(--sat) calc(var(--sar) + 8px) 0 calc(var(--sal) + 8px); display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 10, 40, .88), rgba(14, 10, 40, .55) 75%, rgba(14, 10, 40, 0)); }
.bar > * { pointer-events: auto; }
body:not(.playing) .bar { display: none; }
.bl, .br, .bc { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.bc { position: absolute; left: 50%; top: calc(var(--sat) + 4px); transform: translateX(-50%); height: calc(var(--top) - var(--sat) - 8px); }
.home { display: none; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); }
.home img { width: 2.2rem; height: 2.2rem; } .home b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; } .home b i { font-style: normal; color: var(--lime); }
.tool { position: relative; width: 2.8rem; height: 2.8rem; border: 0; padding: 0; display: grid; place-items: center; border-radius: .85rem; background: rgba(34, 28, 80, .88); color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 3px 0 rgba(0, 0, 0, .35); flex: none; transition: transform .12s, background .15s; }
.tool:hover { background: rgba(60, 50, 130, .95); transform: translateY(-1px); } .tool:active { transform: translateY(2px); } .tool svg { width: 1.35rem; height: 1.35rem; }
.pill { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: .4rem; height: 2.6rem; padding: 0 .8rem 0 .6rem; border-radius: .85rem; background: rgba(20, 14, 56, .88); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; flex: none; line-height: 1; }
.pill svg { width: 1.3rem; height: 1.3rem; flex: none; } .pill b { font-family: var(--font-d); font-weight: 400; font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 1.2ch; letter-spacing: .01em; }
.pill.hearts { padding: 0 .5rem; gap: .15rem; } .hr { width: 1.45rem; height: 1.45rem; color: rgba(255, 255, 255, .2); transition: transform .2s; } .hr svg { width: 100%; height: 100%; } .hr.on { color: var(--heart); filter: drop-shadow(0 0 .35rem rgba(255, 92, 122, .65)); }
.sh { margin-left: .2rem; } .sh canvas { width: 1.8rem; height: 1.8rem; }
.pill.tm svg { color: #CFC9F5; } .pill.tm.low { background: rgba(120, 18, 34, .92); animation: lowt .7s ease-in-out infinite; } .pill.tm.low b { color: #FFD0D6; }
@keyframes lowt { 50% { transform: scale(1.06); } }
.pill.en svg { color: #FFB0C0; } .pill.lvl { flex-direction: column; gap: 1px; padding: 0 .9rem; } .pill.lvl small { font-size: .56rem; font-weight: 800; letter-spacing: .14em; color: #B8B2E8; text-transform: none; } .pill.lvl b { font-size: 1.05rem; }
.pill.gem { padding: 0 .4rem; opacity: .6; filter: grayscale(.8) brightness(.8); transition: all .3s; } .pill.gem.on { opacity: 1; filter: none; box-shadow: 0 0 0 1.5px #c8b4ff inset, 0 0 1rem rgba(155, 123, 255, .7); } .pill.gem canvas { width: 1.9rem; height: 1.9rem; }
.pill.bm { gap: .25rem; padding: 0 .65rem 0 .35rem; } .pill.bm canvas { width: 2rem; height: 2rem; } .pill.bm i { width: .25rem; } .pill.bm .fi { color: #FF8A2E; width: 1.1rem; height: 1.1rem; } .pill.bm b { font-size: 1.1rem; }
.pows { display: flex; gap: .25rem; } .pows span { position: relative; display: block; height: 2.4rem; padding: 0 .25rem; border-radius: .7rem; background: rgba(20, 14, 56, .88); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; } .pows canvas { width: 2.2rem; height: 2.4rem; } .pows em { position: absolute; right: -.1rem; bottom: -.15rem; font: 400 .75rem var(--font-d); font-style: normal; color: #fff; background: #1a8fb8; border-radius: .5rem; padding: 0 .3rem; }

/* ---------- boss bar ---------- */
.bossbar { position: absolute; z-index: 29; left: 50%; top: calc(var(--top) + 2px); transform: translateX(-50%); width: min(44vw, 30rem); display: none; text-align: center; pointer-events: none; }
.bossbar.show { display: block; } .bossbar b { display: block; font: 400 .85rem var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); margin-bottom: .15rem; }
.bossbar i { display: block; height: .8rem; border-radius: 99px; background: rgba(10, 6, 30, .75); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 4px 12px rgba(0, 0, 0, .4); overflow: hidden; padding: 2px; } .bossbar u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #FF8A98, #E0243F); transition: width .35s; }
.bossbar.dead { opacity: .4; }

/* ---------- touch controls (phones only) ---------- */
.tc { position: absolute; inset: 0; z-index: 29; display: none; pointer-events: none; --pw: min(10.5rem, 40vh); --bs: min(7.2rem, 27vh); }
body.is-touch.playing .tc { display: block; }
.tc-zone { position: absolute; left: 0; bottom: 0; width: calc(var(--pw) * 1.5 + var(--sal)); height: calc(var(--pw) * 1.45 + var(--sab)); pointer-events: auto; touch-action: none; }
.tc-pad { position: absolute; left: calc(var(--sal) + .8rem); bottom: calc(var(--sab) + .8rem); width: var(--pw); height: var(--pw); border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(60, 50, 130, .55), rgba(20, 14, 56, .62)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .22) inset, 0 8px 22px rgba(0, 0, 0, .4); transition: transform .1s; pointer-events: none; }
.tc-pad.on { transform: scale(1.03); }
.tc-pad .a { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.tc-pad .a::before { content: ""; position: absolute; width: calc(var(--pw) * .2); height: calc(var(--pw) * .2); border: solid rgba(255, 255, 255, .55); border-width: 0 0 calc(var(--pw) * .04) calc(var(--pw) * .04); margin: calc(var(--pw) * -.1) 0 0 calc(var(--pw) * -.1); transition: border-color .08s, filter .08s; }
.tc-pad .a.u { transform: translateY(calc(var(--pw) * -.3)) rotate(135deg); } .tc-pad .a.r { transform: translateX(calc(var(--pw) * .3)) rotate(-135deg); } .tc-pad .a.d { transform: translateY(calc(var(--pw) * .3)) rotate(-45deg); } .tc-pad .a.l { transform: translateX(calc(var(--pw) * -.3)) rotate(45deg); }
.tc-pad.u .a.u::before, .tc-pad.r .a.r::before, .tc-pad.d .a.d::before, .tc-pad.l .a.l::before { border-color: var(--acc); filter: drop-shadow(0 0 .4rem var(--acc)); }
.tc-pad .hub { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * .26); height: calc(var(--pw) * .26); margin: calc(var(--pw) * -.13) 0 0 calc(var(--pw) * -.13); border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset; }
.tc-b { position: absolute; pointer-events: auto; touch-action: none; border: 0; padding: 0; border-radius: 50%; color: #fff; display: grid; place-items: center; transition: transform .08s; }
.tc-bomb { right: calc(var(--sar) + .9rem); bottom: calc(var(--sab) + .9rem); width: var(--bs); height: var(--bs); background: radial-gradient(circle at 40% 30%, #FF8A5E, #D8381E); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35) inset, 0 8px 0 #7a1a10, 0 12px 26px rgba(0, 0, 0, .45); }
.tc-bomb canvas { width: 66%; height: 66%; } .tc-bomb b { position: absolute; right: -.1rem; top: -.1rem; min-width: 1.8rem; height: 1.8rem; border-radius: 1rem; background: #1b1744; box-shadow: 0 0 0 2px #fff inset; font: 400 .95rem/1.8rem var(--font-d); text-align: center; }
.tc-b.down { transform: translateY(5px) scale(.96); }
.tc-det { display: none; right: calc(var(--sar) + .9rem + var(--bs) * 1.05); bottom: calc(var(--sab) + 1.1rem); width: calc(var(--bs) * .66); height: calc(var(--bs) * .66); background: radial-gradient(circle at 40% 30%, #FFD23F, #E0900A); color: #3a2400; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35) inset, 0 6px 0 #8a5a00, 0 10px 20px rgba(0, 0, 0, .4); }
.tc-det.show { display: grid; } .tc-det svg { width: 46%; height: 46%; stroke-width: 2.6; } .tc-det em { position: absolute; bottom: 12%; font: 400 .6rem var(--font-d); font-style: normal; }

/* ---------- banner + hint ---------- */
.ban { position: absolute; z-index: 26; left: 50%; top: 22%; transform: translate(-50%, 0); text-align: center; pointer-events: none; opacity: 0; width: 90vw; }
.ban b { display: block; font: 400 clamp(1.8rem, 5vw, 3.6rem) var(--font-d); letter-spacing: .02em; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 0 1.6rem var(--acc); }
.ban small { display: inline-block; margin-top: .4rem; padding: .25rem .9rem; border-radius: 999px; background: rgba(14, 10, 40, .7); font-size: .95rem; font-weight: 800; color: #E8E4FF; }
.ban.show { animation: banin 2.4s ease forwards; } .ban.boss b { color: #FF5C7A; text-shadow: 0 4px 0 rgba(0, 0, 0, .5), 0 0 2rem #FF2040; } .ban.good b { color: #7DFF9A; text-shadow: 0 4px 0 rgba(0, 0, 0, .5), 0 0 2rem #2eea6a; } .ban.gem b { color: #C8B4FF; text-shadow: 0 4px 0 rgba(0, 0, 0, .5), 0 0 2rem #9B7BFF; } .ban.go b { color: #FFD23F; }
@keyframes banin { 0% { opacity: 0; transform: translate(-50%, -20px) scale(.85); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.hint { position: absolute; z-index: 27; left: 50%; bottom: calc(var(--sab) + 12px); transform: translate(-50%, 10px); max-width: min(78vw, 40rem); padding: .55rem 1.1rem; border-radius: 999px; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.3; background: rgba(14, 10, 40, .92); box-shadow: 0 0 0 2px rgba(255, 181, 46, .65) inset, 0 8px 24px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.hint.show { opacity: 1; transform: translate(-50%, 0); } .hint b { color: var(--acc); } .hint.bad { box-shadow: 0 0 0 2px #FF5C7A inset, 0 8px 24px rgba(0, 0, 0, .5); }
body.is-touch.playing .hint { bottom: auto; top: calc(var(--top) + 6px); max-width: min(54vw, 30rem); font-size: .82rem; padding: .4rem .9rem; }

/* ---------- overlays ---------- */
.ovl { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; padding: calc(var(--sat) + 1rem) calc(var(--sar) + 1rem) calc(var(--sab) + 1rem) calc(var(--sal) + 1rem); }
.ovl::-webkit-scrollbar { display: none; }
.ovl.show { display: grid; animation: ovin .25s ease; } @keyframes ovin { from { opacity: 0; } }
.ovl.center { place-items: center; background: rgba(12, 8, 36, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ovl.maps { background: rgba(12, 8, 36, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-content: start; }
.ovl.menuov { place-items: center start; background: linear-gradient(90deg, rgba(14, 10, 40, .93) 0%, rgba(14, 10, 40, .66) 40%, rgba(14, 10, 40, 0) 72%), linear-gradient(0deg, rgba(14, 10, 40, .5), transparent 35%); padding-left: calc(var(--sal) + clamp(1.2rem, 6vw, 7rem)); }
.menu { width: min(35rem, 100%); animation: bbpop .5s var(--ease); margin: 0; } @keyframes bbpop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.kick { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); } .kick::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.kick span { color: #CFC9F5; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.logo { margin: .1em 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3rem, 8.4vw, 7rem); text-shadow: 0 6px 0 rgba(0, 0, 0, .4); position: relative; }
.logo span, .logo b { display: block; font-weight: 400; } .logo span { color: #fff; } .logo b { background: linear-gradient(100deg, #FFE27A 0%, #FFB020 38%, #FF5B2E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .4)); }
.logo i { position: absolute; left: calc(100% + .05em); top: -.12em; width: 1.12em; height: 1.12em; transform: translateX(-125%); font-style: normal; } .logo i canvas { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); }
.tag { margin: .5rem 0 1.1rem; font-size: 1.1rem; font-weight: 600; color: #DCD7FF; max-width: 28em; line-height: 1.45; }
.cta { display: flex; gap: .7rem; flex-wrap: wrap; } .sub2 { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.stats { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; } .stats > div { padding: .45rem .9rem; border-radius: .9rem; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; }
.stats small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .stats b { font-family: var(--font-d); font-weight: 400; font-size: 1.4rem; } .stats em { font-style: normal; font-size: .8rem; opacity: .6; }
.orient { display: none; align-items: center; gap: .6rem; margin-top: .9rem; padding: .5rem .8rem; border-radius: .8rem; background: rgba(47, 214, 255, .12); box-shadow: 0 0 0 1.5px rgba(47, 214, 255, .35) inset; font-size: .8rem; font-weight: 700; color: #CDEFFF; } .orient.on { display: flex; } .orient svg { width: 1.4rem; height: 1.4rem; flex: none; stroke: var(--cyan); }
.scr { width: min(84rem, 100%); margin: 0 auto; } .scr-h { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; flex-wrap: wrap; } .scr-h h2 { margin: 0; font: 400 clamp(1.3rem, 2.6vw, 2.2rem) var(--font-d); text-transform: uppercase; flex: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.tot { display: flex; align-items: center; gap: .3rem; font-family: var(--font-d); font-size: 1.2rem; color: var(--gold); } .tot svg { width: 1.5rem; height: 1.5rem; fill: currentColor; stroke: none; } .tot b { font-weight: 400; }
/* level map */
.wtabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-bottom: .7rem; }
.wtab { border: 0; padding: .45rem .5rem; border-radius: .9rem; background: rgba(255, 255, 255, .07); color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .5rem; align-items: center; text-align: left; transition: transform .12s, background .15s; }
.wtab:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); } .wtab .wn { grid-row: 1 / 3; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--ink); font: 400 1rem var(--font-d); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.wtab b { font: 400 .9rem var(--font-d); line-height: 1.1; } .wtab small { font-size: .7rem; font-weight: 800; color: #B8B2E8; display: flex; align-items: center; } .wtab small svg { width: 1rem; height: 1rem; }
.wtab.on { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08)); box-shadow: 0 0 0 2.5px var(--c) inset, 0 0 1.2rem color-mix(in srgb, var(--c) 55%, transparent); } .wtab.lock { opacity: .55; }
.wmap { position: relative; border-radius: 1.4rem; overflow: hidden; height: clamp(14rem, 56vh, 34rem); box-shadow: 0 0 0 3px var(--c), 0 18px 50px rgba(0, 0, 0, .55); background: #222; }
.wbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .wshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 6, 34, .62), rgba(10, 6, 34, .12) 45%, rgba(10, 6, 34, .4)); }
.wtitle { position: absolute; left: 1.2rem; top: .9rem; max-width: 52%; pointer-events: none; } .wtitle small { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c); } .wtitle b { display: block; font: 400 clamp(1.3rem, 3vw, 2.2rem) var(--font-d); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); line-height: 1; } .wtitle p { margin: .3rem 0 0; font-size: .85rem; font-weight: 700; color: #E8E4FF; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.wpath { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .wpath path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; } .wpath .p0 { stroke: rgba(10, 6, 34, .7); stroke-width: 14; } .wpath .p1 { stroke: rgba(255, 255, 255, .85); stroke-width: 4; stroke-dasharray: 2 12; }
.node { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; background: none; color: #fff; display: grid; justify-items: center; gap: .15rem; transition: transform .15s; } .node:hover { transform: translate(-50%, -54%) scale(1.07); }
.node .nd { width: clamp(2.8rem, 5.2vw, 4rem); height: clamp(2.8rem, 5.2vw, 4rem); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); color: var(--ink); font-style: normal; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 0 rgba(0, 0, 0, .4), 0 10px 20px rgba(0, 0, 0, .4); }
.node .nd b { font: 400 clamp(1.1rem, 2.2vw, 1.6rem) var(--font-d); } .node .nd svg { width: 55%; height: 55%; }
.node.boss .nd { width: clamp(3.4rem, 6.5vw, 5rem); height: clamp(3.4rem, 6.5vw, 5rem); background: radial-gradient(circle at 35% 28%, #FF9AA8, #E0243F 60%, #8a0f26); color: #fff; box-shadow: 0 0 0 3px #FFD23F, 0 6px 0 rgba(0, 0, 0, .4), 0 0 1.6rem rgba(255, 60, 90, .7); } .node .bn { position: absolute; top: -.55rem; font: 400 .6rem var(--font-d); background: #FFD23F; color: var(--ink); padding: .05rem .4rem; border-radius: .5rem; box-shadow: 0 2px 0 #B68A00; }
.node .ns { display: block; background: rgba(10, 6, 34, .72); padding: .12rem .4rem; border-radius: 99px; } .node.lock .nd { background: #4a4678; color: #aaa6d0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3), 0 6px 0 rgba(0, 0, 0, .4); filter: saturate(.6); } .node.lock { cursor: default; }
.node.cur .nd { animation: curp 1.4s ease-in-out infinite; } @keyframes curp { 50% { box-shadow: 0 0 0 3px #fff, 0 6px 0 rgba(0, 0, 0, .4), 0 0 1.8rem 4px var(--c); transform: scale(1.1); } }
.stl { display: inline-flex; gap: .15rem; } .st { width: 1.3rem; height: 1.3rem; color: rgba(255, 255, 255, .22); display: inline-block; } .st svg { width: 100%; height: 100%; } .st.on { color: var(--gold); filter: drop-shadow(0 0 .4rem rgba(255, 210, 63, .7)); }
.st.sm { width: .95rem; height: .95rem; } .stl.big .st { width: 3.2rem; height: 3.2rem; }
/* level sheet */
.sheet { width: min(62rem, 100%); display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.2rem; padding: 1rem; border-radius: 1.6rem; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 30px 80px rgba(0, 0, 0, .6); animation: bbpop .35s var(--ease); }
.sh-l { position: relative; } .sh-l canvas { width: 100%; border-radius: 1rem; box-shadow: 0 0 0 3px var(--c), 0 10px 30px rgba(0, 0, 0, .5); display: block; } .sh-l .bt { position: absolute; left: .7rem; top: .6rem; font: 400 .8rem var(--font-d); background: #E0243F; padding: .2rem .7rem; border-radius: .6rem; box-shadow: 0 3px 0 #8a0f26; }
.kick2 { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c); } .sh-r h2 { margin: .1em 0 .2em; font: 400 clamp(1.5rem, 3vw, 2.4rem) var(--font-d); text-transform: uppercase; line-height: 1; } .sh-r p { margin: 0 0 .6rem; font-weight: 600; color: #DCD7FF; font-size: .92rem; line-height: 1.4; }
.goals { display: grid; gap: .25rem; margin: .4rem 0 .6rem; } .gl { display: flex; align-items: center; gap: .5rem; padding: .3rem .6rem; border-radius: .7rem; background: rgba(255, 255, 255, .06); font-weight: 800; font-size: .85rem; color: #B8B2E8; } .gl i { width: 1.3rem; height: 1.3rem; display: grid; place-items: center; font-style: normal; color: rgba(255, 255, 255, .3); } .gl i svg { width: 100%; height: 100%; } .gl.on { color: #fff; background: rgba(142, 224, 74, .16); } .gl.on i { color: #8EE04A; }
.facts { display: flex; gap: .4rem; flex-wrap: wrap; } .facts > div { padding: .35rem .7rem; border-radius: .8rem; background: rgba(255, 255, 255, .07); line-height: 1.05; } .facts small, .tps small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .facts b { font: 400 1.15rem var(--font-d); }
.feat { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .5rem; } .feat span { padding: .15rem .6rem; border-radius: 99px; background: rgba(47, 214, 255, .14); box-shadow: 0 0 0 1.5px rgba(47, 214, 255, .35) inset; font-size: .72rem; font-weight: 800; color: #CDEFFF; }
.tps { margin: .6rem 0 .7rem; } .tps > div { display: flex; flex-wrap: wrap; gap: .25rem; } .tp { position: relative; display: block; } .tp canvas { width: 2.8rem; height: 2.8rem; display: block; background: rgba(255, 255, 255, .07); border-radius: .7rem; } .tp.bossic canvas { width: 4.2rem; height: 4.2rem; } .tp b { position: absolute; right: -.2rem; bottom: -.2rem; font: 400 .7rem var(--font-d); background: #1b1744; border-radius: .5rem; padding: 0 .3rem; box-shadow: 0 0 0 1.5px #fff inset; }
.acts { display: grid; gap: .6rem; } .acts.row { display: flex; flex-wrap: wrap; gap: .6rem; } .acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cardw { width: min(30rem, 100%); text-align: center; padding: 1.5rem 1.6rem 1.3rem; border-radius: 1.8rem; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 30px 80px rgba(0, 0, 0, .6); animation: bbpop .35s var(--ease); max-height: 100%; overflow: auto; scrollbar-width: none; }
.cardw.wide { width: min(38rem, 100%); text-align: left; } .cardw h2 { margin: 0 0 .3rem; font: 400 clamp(1.8rem, 4vw, 2.8rem) var(--font-d); text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .4); line-height: 1; } .cardw.wide h2 { text-align: center; margin-bottom: 1rem; }
.sub { margin: 0 0 .7rem; color: #CFC9F5; font-weight: 600; } .sub.tip { font-size: .85rem; margin: .7rem 0; color: #B8B2E8; }
.rec { display: inline-block; margin: .4rem .2rem 0; padding: .3em 1em; border-radius: 999px; background: var(--sun); color: var(--ink); font: 400 .85rem var(--font-d); transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; } .rec.wu { background: var(--lime); box-shadow: 0 3px 0 #6F9A00; transform: rotate(2deg); }
.stats4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr)); gap: .5rem; margin: .8rem 0; } .stats4 > div { padding: .5rem .3rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); line-height: 1.1; } .stats4 small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .2rem; } .stats4 b { font: 400 1.25rem var(--font-d); }
.res .goals { text-align: left; margin: .5rem 0; }
.res.win .stl.big { margin: .4rem 0 .2rem; } .stl.pop .st { transform: scale(.5); opacity: .4; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .2s; } .stl.pop .st.hit { transform: scale(1.1); opacity: 1; }
.res.win h2 { color: var(--acc); } .res.lose h2 { color: #FF8A98; } .cardw.fin { width: min(34rem, 100%); } .crown { width: 6rem; height: 6rem; margin: 0 auto .2rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); } .crown canvas { width: 100%; height: 100%; }
.ovl.fin { background: rgba(12, 8, 36, .3); backdrop-filter: none; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; } .tab { border: 0; padding: .5rem 1rem; border-radius: .8rem; background: rgba(255, 255, 255, .08); color: #DCD7FF; font: 400 .85rem var(--font-d); text-transform: uppercase; } .tab.on { background: var(--acc); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; } .step { display: flex; gap: .7rem; padding: .8rem; border-radius: 1rem; background: rgba(255, 255, 255, .06); } .step i { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font: 400 1.1rem var(--font-d); font-style: normal; background: var(--acc); color: var(--ink); } .step b { font: 400 1rem var(--font-d); } .step p { margin: .2rem 0 0; font-size: .85rem; font-weight: 600; color: #DCD7FF; line-height: 1.4; }
.keys { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; } .keys span { padding: .35rem .8rem; border-radius: .8rem; background: rgba(255, 255, 255, .07); font-weight: 800; font-size: .85rem; color: #DCD7FF; } .keys kbd { font-size: .75rem; }
.enc { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; } .enc.en, .enc.pu { grid-template-columns: repeat(5, 1fr); } .enc.bs { grid-template-columns: repeat(5, 1fr); } .ec { padding: .7rem; border-radius: 1rem; background: rgba(255, 255, 255, .06); } .ec .eh { margin-bottom: .3rem; } .ec .eh canvas { width: 3.6rem; height: 3.6rem; } .enc.bs .eh canvas { width: 5rem; height: 5rem; } .ec b { font: 400 .95rem var(--font-d); display: block; } .ec p { margin: .2rem 0 .3rem; font-size: .78rem; font-weight: 600; color: #DCD7FF; line-height: 1.3; } .es { font-size: .7rem; font-weight: 800; color: #B8B2E8; }
.rows { display: grid; gap: .65rem; } .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 800; } .row small { font-size: .7rem; color: var(--mute); display: block; }
.sw { border: 0; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: 800 .85rem var(--font-b); min-width: 5rem; } .sw.on { background: linear-gradient(180deg, #8EE04A, #4C9A1E); color: #10220a; }
.row.hero { align-items: flex-start; } .skins { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; flex: 1; max-width: 22rem; } .skin { border: 0; padding: .3rem .2rem .4rem; border-radius: .9rem; background: rgba(255, 255, 255, .07); color: #fff; display: grid; justify-items: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; } .skin canvas { width: 3.4rem; height: 3.4rem; } .skin b { font: 400 .75rem var(--font-d); } .skin small { font-size: .62rem; }
.skin.on { box-shadow: 0 0 0 2.5px var(--c) inset, 0 0 1rem var(--c); } .skin.lock canvas { filter: grayscale(1) brightness(.45); } .skin.lock { opacity: .75; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 55%; height: 1.6rem; background: transparent; touch-action: pan-x; } input[type=range]::-webkit-slider-runnable-track { height: .55rem; border-radius: 99px; background: linear-gradient(90deg, var(--acc) var(--v, 100%), rgba(255, 255, 255, .15) var(--v, 100%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin-top: -.43rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); } input[type=range]::-moz-range-track { height: .55rem; border-radius: 99px; background: rgba(255, 255, 255, .15); } input[type=range]::-moz-range-progress { height: .55rem; border-radius: 99px; background: var(--acc); } input[type=range]::-moz-range-thumb { width: 1.4rem; height: 1.4rem; border: 0; border-radius: 50%; background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .enc, .enc.bs { grid-template-columns: repeat(3, 1fr); } .enc.en, .enc.pu { grid-template-columns: repeat(4, 1fr); } }
body:not(.playing) .home { display: inline-flex; position: fixed; left: calc(var(--sal) + 10px); top: calc(var(--sat) + 10px); z-index: 50; }
body.short .home { display: none !important; }
body.short:not(.playing) .home { display: inline-flex !important; padding: 4px 10px 4px 4px; } body.short:not(.playing) .home b { display: none; }
body.short .logo { font-size: clamp(2.2rem, 12vh, 4rem); } body.short .tag { font-size: .9rem; margin: .3rem 0 .6rem; } body.short .stats { margin-top: .6rem; } body.short .stats > div { padding: .25rem .6rem; } body.short .stats b { font-size: 1.1rem; }
body.short .btn--big { font-size: 1.1rem; padding: .6em 1.3em; } body.short .sub2 { margin-top: .5rem; } body.short .kick { font-size: .7rem; }
body.short .ovl { padding-top: calc(var(--sat) + .5rem); padding-bottom: calc(var(--sab) + .5rem); }
body.short:not(.playing) .ovl.maps, body.short:not(.playing) .ovl.center { padding-top: calc(var(--sat) + 3.3rem); } body.short:not(.playing) .ovl.menuov { padding-top: calc(var(--sat) + .3rem); }
body.short .bl, body.short .br { gap: .3rem; } body.short .tool { width: 2.4rem; height: 2.4rem; } body.short .pill { height: 2.2rem; padding: 0 .5rem 0 .4rem; } body.short .pill b { font-size: 1.05rem; } body.short .hr { width: 1.2rem; height: 1.2rem; } body.short .pill.lvl { display: none; } body.short .pows span { height: 2rem; } body.short .pows canvas { height: 2rem; width: 1.9rem; }
body.short .scr-h { margin-bottom: .3rem; } body.short .scr-h .btn { min-height: 0; padding: .4em .9em; } body.short .wtabs { gap: .3rem; margin-bottom: .4rem; } body.short .wtab { padding: .25rem .4rem; } body.short .wtab .wn { width: 1.5rem; height: 1.5rem; font-size: .8rem; } body.short .wtab b { font-size: .75rem; } body.short .wmap { height: calc(100dvh - 11.4rem - var(--sat) - var(--sab)); min-height: 10rem; } body.short .wtitle p { display: none; } body.short .wtitle { left: .8rem; top: .5rem; }
body.short .sheet { padding: .6rem; gap: .8rem; } body.short .sh-r p { display: none; } body.short .tps { margin: .3rem 0 .4rem; } body.short .gl { padding: .15rem .5rem; font-size: .75rem; } body.short .facts > div { padding: .2rem .5rem; } body.short .sh-r h2 { font-size: 1.4rem; } body.short .feat { margin-top: .3rem; }
body.short .cardw { padding: .8rem 1.2rem; } body.short .cardw h2 { font-size: 1.6rem; } body.short .stats4 { margin: .4rem 0; } body.short .stl.big .st { width: 2.3rem; height: 2.3rem; } body.short .res .goals { display: none; } body.short .crown { width: 3.6rem; height: 3.6rem; }
body.short .step p { font-size: .75rem; } body.short .step { padding: .5rem; } body.short .ec p { font-size: .72rem; } body.short .ec .eh canvas { width: 2.8rem; height: 2.8rem; } body.short .enc, body.short .enc.bs { grid-template-columns: repeat(3, 1fr); } body.short .enc.en, body.short .enc.pu { grid-template-columns: repeat(5, 1fr); }
body.short .ban { top: 16%; } body.short .hint { font-size: .8rem; padding: .35rem .8rem; } body.short .bossbar { width: min(40vw, 22rem); } body.short .skin canvas { width: 2.6rem; height: 2.6rem; }
body.portrait .sheet { grid-template-columns: 1fr; } body.portrait .steps { grid-template-columns: 1fr; } body.portrait .wtabs { grid-template-columns: repeat(5, 1fr); } body.portrait .wtab b, body.portrait .wtab small { display: none; } body.portrait .ovl.menuov { padding-left: calc(var(--sal) + 1rem); background: rgba(14, 10, 40, .78); }
@media (max-width: 760px) and (min-height: 521px) { .pill.lvl { display: none; } }
@media (prefers-reduced-motion: reduce) { .ban.show { animation-duration: .01s; } .node.cur .nd, .pill.tm.low { animation: none; } .menu, .cardw, .sheet { animation: none; } }
