@import url("screens.css");   /* wave 5b: the inner screens (sc-/fs-/sp-/qs-/bd-/pf-) */
@import url("fighter.css");   /* task 15 wave B: «Боец» and the hero grid (hg-/fs-) */
/* Main menu (client/menu): the #lobby box, its palette and the few shared bits; the shell and home (wave 5a) below,
   the inner screens (wave 5b) in screens.css. The old menu (wave 5 of task 02) was removed in UI wave 6. */
/* the menu's own palette stays on menu elements; :root belongs to client/ui/kit.css */
:where(.mn,[class^="mn-"],[class*=" mn-"]){--ink:#1d1b26;--cream:#fff7e6;--paper:#fffdf4;--lime:#ddff65;--gold:#ffc93c;--coral:#ff5a4f;--cyan:#7fd8ff;--teal:#14606b;--grass:#7ee05a}
.mn{position:fixed;inset:0;z-index:20;color:var(--ink);overflow:hidden;
  background:radial-gradient(130% 70% at 50% -10%,#4d6390 0%,#2a3554 42%,#161b29 100%)}
.mn::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:radial-gradient(circle at 12% 18%,#ffc93c33 0 3px,transparent 4px),radial-gradient(circle at 78% 12%,#7fd8ff33 0 4px,transparent 5px),
  radial-gradient(circle at 88% 64%,#ff5a4f2a 0 3px,transparent 4px),radial-gradient(circle at 22% 78%,#ddff6526 0 5px,transparent 6px);background-size:260px 260px}
#mn-root{position:absolute;inset:0;display:flex;flex-direction:column}
.mn input,.mn select{user-select:text;-webkit-user-select:text;font:700 var(--t-btn) var(--f-text)}

/* ---------- shared bits ---------- */
.mn-note{margin:8px 4px;font:600 var(--t-cap)/1.35 var(--f-text);color:#ffffffb8}

.mn-empty{padding:16px 12px;text-align:center;font:700 var(--t-cap)/1.4 var(--f-text);color:#ffffffc0}

/* =====================================================================================================================
   Wave 5a of the UI rework: the new menu shell and the home screen (direction B «Стикер»; client/menu/index.js,
   home.js, dock.js; mockup /lab/ui-concept/home.html?dir=b). #lobby gets .mn-b.
   Classes: mb-* (shell), hm-* (home); mn-* carry the menu palette (the :where rule at the top).
   ===================================================================================================================== */
@property --rx{syntax:'<length>';inherits:true;initial-value:195px}
@property --ry{syntax:'<length>';inherits:true;initial-value:350px}
.mn.mn-b{--cream:#fff4dc;--paper:#fffbf0;--grass:#6bd66b;background:var(--ink);color:var(--ink)}
.mn.mn-b::before{display:none}
.mn-b button{font-family:inherit}

/* brand background: sunburst rays centred behind the fighter (--rx/--ry from index.js aimRays), halftone dots, glow */
.mb-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#ff7550;transition:--rx var(--t-slow) var(--ease-out),--ry var(--t-slow) var(--ease-out)}
.mb-rays{position:absolute;left:var(--rx);top:var(--ry);width:300vmax;height:300vmax;translate:-50% -50%;
  background:repeating-conic-gradient(from 0deg,#ff6a4f 0 7.5deg,#ff8250 7.5deg 15deg)}
.mb-dots{position:absolute;inset:0;opacity:.22;background-image:radial-gradient(#7a1d18 1.6px,transparent 1.8px);background-size:11px 11px;
  -webkit-mask:radial-gradient(70% 60% at var(--rx) var(--ry),transparent 30%,#000 90%);mask:radial-gradient(70% 60% at var(--rx) var(--ry),transparent 30%,#000 90%)}
.mb-glow{position:absolute;inset:0;background:radial-gradient(min(62vw,560px) min(46vh,420px) at var(--rx) var(--ry),#ffd25a 0%,#ffb03a55 40%,transparent 70%),linear-gradient(transparent 72%,#00000040)}
/* the quiet background of the inner screens (UX audit 19.11, README «Система» 7: loud only on «Бой»): the same rays under
   an even coral veil — their contrast ×0.3, no dots, no glow, so cards and text lead. It fades in and out with the slide.
   Ink text straight on it stays ≥ 4.5:1 (the veil 4.7:1, the veiled rays ~5:1), so notes and section titles on the
   background are full ink, not muted. --mb-quiet is what the veiled rays come to (sticky bars and pinned rows fade into it) */
.mn-b{--mb-quiet:#ef5f43}
.mb-veil{position:absolute;inset:0;background:#e8553e;opacity:0}
.mb-dots,.mb-glow,.mb-veil{transition:opacity var(--t-slow) var(--ease-out)}
.mb-bg.quiet .mb-veil{opacity:.72}
.mb-bg.quiet .mb-dots,.mb-bg.quiet .mb-glow{opacity:0}

/* ---------- top bar, one row (task 15, README «Система» 6): home — me (avatar + level + XP; a guest's dot) and, lying
   down / on desktop, the small logo; a section — its title in the same place (no «‹», no avatar); a nested screen (the
   profile) — «‹» + title; then the section tabs (landscape, desktop), ♪ and the bumbaxes ---------- */
.mb-topbar{position:relative;z-index:4;display:flex;align-items:center;gap:var(--g1);padding:calc(8px + var(--safe-t)) calc(16px + var(--safe-r)) 8px calc(16px + var(--safe-l))}
.mb-me{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto;padding:4px 0 4px 4px;background:none;border:0;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mb-me[hidden],.mb-title[hidden],.mb-logo[hidden],.mb-backbtn[hidden],.mb-xpbar[hidden],.mb-money[hidden]{display:none}
.mb-ava{background-color:var(--sun)}
/* the profile is on screen: the avatar is «where you are» (sun, like the lit dock item; no dock item is lit then) */
.mb-me.on .mb-ava{box-shadow:0 0 0 var(--rim) var(--sun),4px 5px 0 var(--rim) var(--ink)}
.mb-ava.face{background-size:170%;background-position:50% 12%}
/* a guest on the website: «войди — сохраним прогресс» is one sky dot on the avatar (the profile has the button) */
.mb-dot{position:absolute;top:-8px;right:-8px;width:16px;height:16px;box-sizing:border-box;border-radius:50%;background:var(--sky);border:2.5px solid var(--ink);box-shadow:0 0 0 2px var(--rim-c)}
.mb-me .who{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.mb-me .nick{max-width:100%;padding:0 4px 4px 0;font:900 var(--t-btn)/1.1 var(--f-text);color:#fff;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill;text-shadow:2px 3px 0 var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-xpbar{width:120px;height:12px;border-width:2.5px}
/* a section's title: the same height as the avatar row, so the screen under it does not jump between home and a section */
.mb-title{flex:1 1 auto;min-width:0;min-height:56px;display:flex;align-items:center;gap:var(--g2)}
.mb-title h1{flex:0 1 auto;min-width:0;margin:0;padding:4px 8px 8px 4px;font:900 var(--t-title)/1.05 var(--f-display);text-transform:uppercase;color:#fff;-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;
  text-shadow:3px 3px 0 var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-title-in{animation:mb-title-in var(--t-mid) var(--ease-out)}
@keyframes mb-title-in{from{opacity:0;translate:-12px 0}}
/* the small logo (landscape and desktop home): a tap goes home */
.mb-logo{display:none;flex:none;width:104px;aspect-ratio:1064/458;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mb-logo img{display:block;width:100%;height:100%;rotate:var(--lean-tag);filter:drop-shadow(3px 4px 0 #1d1b2655);pointer-events:none}
.mb-money{flex:none;cursor:pointer;transition:transform var(--t-mid) var(--ease-pop)}
/* the menu's music: ♪ in the top bar, the track's name under it (client/menumusic.js) */
.mb-np{flex:none}
.mb-np[hidden],.mb-npt[hidden]{display:none}
.mb-np .k-g{font-size:19px}
.mb-npt{position:fixed;z-index:6;display:flex;align-items:center;gap:8px;max-width:min(340px,calc(100vw - 16px));padding:4px 4px 4px 12px;border-radius:var(--r-m);
  background:var(--ink);color:var(--paper);box-shadow:0 0 0 2.5px var(--rim-c),3px 3px 0 2.5px #0006;font:700 var(--t-cap)/1.2 var(--f-text)}
.mb-npt .nm{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-npt .mb-npx{width:30px;height:30px;font-size:15px;flex:none}
.mb-money:active{transform:translate(2px,2px) scale(.95)}
.mb-money b{font:inherit;min-width:2.2em;text-align:right}

/* ---------- sections: dock (phone upright) / tabs (landscape, desktop) ---------- */
.mb-dock{position:relative;z-index:4;display:flex;gap:4px;margin:0 calc(8px + var(--safe-r)) calc(8px + var(--safe-b)) calc(8px + var(--safe-l));padding:8px 4px 8px;
  border-radius:20px;background:var(--ink);border:var(--ow) solid var(--ink);box-shadow:0 0 0 4px #fff,6px 7px 0 4px var(--ink)}
.mb-nav-i{position:relative;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;font-synthesis:none}
.mb-dock .mb-nav-i{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px 0 4px;border-radius:var(--r-l);color:#fff;
  font:900 var(--t-min)/1 var(--f-text);letter-spacing:.2px;text-transform:uppercase;transition:background var(--t-fast),color var(--t-fast)}
.mb-dock .mb-nav-i img{width:44px;height:44px;object-fit:contain;margin-top:-20px;filter:drop-shadow(0 3px 0 #0006);transition:scale var(--t-mid) var(--ease-pop)}
.mb-dock .mb-nav-i span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mb-dock .mb-nav-i.on{background:var(--sun);color:var(--ink);transform:skewX(var(--skew));animation:k-tab-on var(--t-slow) var(--ease-pop)}
.mb-dock .mb-nav-i.on img{scale:1.14}
.mb-dock .mb-nav-i:active img{scale:.9}
/* the badge sits on the icon's top-right corner (not over the picture), small: the dock's items are ~70 px wide */
.mb-dock .k-badge{top:-21px;right:auto;left:calc(50% + 7px);min-width:20px;height:20px;padding:0 4px;font-size:var(--t-min);line-height:15px}
.mb-dock .k-badge.dot{top:-15px;left:calc(50% + 13px);min-width:14px;width:14px;height:14px;padding:0}
.mb-tabs{display:none;gap:4px;padding:4px;margin:0 auto;border-radius:var(--r-l);background:var(--ink);box-shadow:0 0 0 3px #fff,4px 5px 0 3px var(--ink)}
.mb-tabs .mb-nav-i{display:flex;align-items:center;gap:8px;height:42px;padding:0 16px 0 8px;border-radius:var(--r-m);color:#ffffffd0;font:900 var(--t-cap)/1 var(--f-display);text-transform:uppercase;white-space:nowrap;
  transition:background var(--t-fast),color var(--t-fast)}
.mb-tabs .mb-nav-i img{width:32px;height:32px;margin:-8px 0;object-fit:contain;transition:scale var(--t-mid) var(--ease-pop)}
.mb-tabs .mb-nav-i.on{background:var(--sun);color:var(--ink);transform:skewX(var(--skew));animation:k-tab-on var(--t-slow) var(--ease-pop)}
.mb-tabs .mb-nav-i:not(.on):hover{color:#fff;background:#ffffff14}
.mb-tabs .k-badge{top:-12px;right:-8px;min-width:20px;height:20px;padding:0 4px;line-height:15px}   /* over the tab's corner, above its label (bug: «−20%» covered «МАГАЗИН») */
.mb-hop{animation:mb-hop var(--t-mid) var(--ease-pop)}
.mb-badge-jump{animation:mb-badge-jump var(--t-slow) var(--ease-pop)}
@keyframes mb-hop{50%{translate:0 -7px}}
@keyframes mb-badge-jump{0%{scale:1}30%{scale:1.45;translate:0 -6px}65%{scale:.9}100%{scale:1}}

/* ---------- screens and the slide between them ---------- */
.mb-screens{position:relative;z-index:2;flex:1;min-height:0}
.mb-view{position:absolute;inset:0;display:flex;flex-direction:column;z-index:1}
.mb-view.mb-leave{z-index:0;pointer-events:none}
.mb-enter[data-dir=r]{animation:mb-in-r var(--t-slow) var(--ease-pop) both}
.mb-enter[data-dir=l]{animation:mb-in-l var(--t-slow) var(--ease-pop) both}
.mb-leave[data-dir=r]{animation:mb-out-l var(--t-mid) var(--ease-in) both}
.mb-leave[data-dir=l]{animation:mb-out-r var(--t-mid) var(--ease-in) both}
@keyframes mb-in-r{from{opacity:0;translate:56px 0}}
@keyframes mb-in-l{from{opacity:0;translate:-56px 0}}
@keyframes mb-out-l{to{opacity:0;translate:-40px 0}}
@keyframes mb-out-r{to{opacity:0;translate:40px 0}}
.mn-b .mb-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:none;
  padding:4px calc(16px + var(--safe-r)) 16px calc(16px + var(--safe-l))}
.mn-b .mb-scroll::-webkit-scrollbar{display:none}
/* scrolled: the content fades out under the top bar instead of being cut flat under the avatar / balance (index.js) */
.mn-b .mb-scrolled>.mb-scroll{-webkit-mask:linear-gradient(transparent,#000 22px);mask:linear-gradient(transparent,#000 22px)}
.mb-view.home .mb-scroll{display:flex;flex-direction:column;overflow:hidden;container:hmscreen / size}
/* ---------- home (task 15 wave A, mockup art/ui/audit-2026-11/mock/home.html): the fighter is the focus; one primary
   «Играть»; Боты · Команды · С друзьями alike on paper; «сегодня» — one column of identical stickers left of the fighter
   (desktop: one «Сегодня» panel); the logo ~190 px over the podium upright, small in the top bar lying down / on desktop */
.hm-home{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"logo" "hero" "side";row-gap:var(--g1)}
.hm-logo{grid-area:logo;position:relative;z-index:3;justify-self:center;width:188px;aspect-ratio:1064/458;margin:var(--g1) 0 calc(-1 * var(--g2));padding:0;
  background:none;border:0;cursor:pointer;isolation:isolate;rotate:var(--lean-tag);-webkit-tap-highlight-color:transparent}
.hm-logo img{display:block;pointer-events:none;user-select:none;-webkit-user-select:none}
.hm-logo .word{width:100%;height:100%;filter:drop-shadow(4px 6px 0 #1d1b2655)}
.hm-logo .burst{position:absolute;left:50%;top:50%;z-index:-1;width:118%;aspect-ratio:1064/731;translate:-50% -50%;opacity:0}
.hm-logo .bomb{position:absolute;right:-4%;top:-16%;width:17%;transform:rotate(18deg);transform-origin:50% 75%;filter:drop-shadow(2px 3px 0 #1d1b2666)}
.hm-logo.intro .bomb,.hm-logo.intro .word{will-change:transform}
.hm-logo .bomb.hm-bomb-hop{animation:hm-bomb-hop .32s var(--ease-pop)}
@keyframes hm-bomb-hop{40%{translate:0 -10px}}

.hm-hero{grid-area:hero;position:relative;min-height:150px}
.hm-stage{position:absolute;inset:0}
.hm-stage canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;touch-action:pan-y;cursor:grab}
.hm-podium{position:absolute;left:50%;top:var(--foot,90%);width:min(64%,240px);aspect-ratio:240/60;translate:-50% -42%;border-radius:50%;
  background:radial-gradient(60% 60% at 50% 40%,var(--ink-3),var(--ink));box-shadow:0 0 0 5px #fff,0 10px 0 5px var(--ink),0 22px 30px #0006}
.hm-podium::before{content:'';position:absolute;inset:16% 14%;border-radius:50%;border:3px dashed #ffffff30}
/* ‹ name › — one group under the podium: the arrows sit next to what they change */
.hm-fname{position:absolute;left:50%;bottom:0;z-index:3;translate:-50% 0;display:flex;align-items:center;gap:var(--g1);max-width:100%}
.hm-fname .nm{min-width:0;max-width:min(calc(100% - 88px),300px);padding:8px 16px;border-radius:12px;background:#fff;color:var(--ink);border:3px solid var(--ink);rotate:calc(-1 * var(--lean));
  box-shadow:4px 4px 0 var(--ink);text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--t-mid) var(--ease-pop)}
.hm-fname .nm:active{transform:translate(2px,2px)}
.hm-fname .nm b{display:block;font:900 var(--t-btn)/1.05 var(--f-display);text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-fname .nm small{display:block;margin-top:4px;font:800 var(--t-cap)/1.1 var(--f-text);color:var(--coral-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-arrow{flex:none}

/* «сегодня»: identical stickers — an icon 56 on paper + one short line; the quests' ring shows the day's progress, the
   offer carries the only «−20%» of the screen (README «Система» 4, 5) */
.hm-today{position:absolute;left:0;top:var(--g1);z-index:4;display:flex;flex-direction:column;gap:var(--g3);pointer-events:none}
.hm-th{display:none}
.hm-tdy{pointer-events:auto;position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:64px;padding:0;border:0;background:none;color:inherit;cursor:pointer;
  font:inherit;-webkit-tap-highlight-color:transparent}
.hm-tdy .ic{position:relative;display:grid;place-items:center;width:56px;height:56px;box-sizing:border-box;border-radius:var(--r-l);background:var(--paper);border:var(--ow) solid var(--ink);
  box-shadow:var(--sticker-s);transition:translate var(--t-slow) var(--ease-pop),box-shadow var(--t-slow) var(--ease-pop)}
.hm-tdy:active .ic{translate:2px 2px;box-shadow:var(--sticker-in);transition-duration:var(--t-press)}
.hm-tdy .ic>img,.hm-flame{display:block;width:40px;height:40px;object-fit:contain}
.hm-flame img{width:100%;height:100%;object-fit:contain}
.hm-tdy .ring{position:absolute;inset:-8px;z-index:-1;border-radius:calc(var(--r-l) + 6px);background:conic-gradient(var(--grass) 0 var(--p,0%),var(--paper) var(--p,0%) 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))}
.hm-tdy .ic>.k-tag{position:absolute;top:-8px;right:-20px}
.hm-tdy .tx{display:block;min-width:0}
.hm-tdy .tx b{display:block;font:800 var(--t-cap)/1.15 var(--f-text);color:#fff;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill;text-align:center;white-space:nowrap}
.hm-tdy .tx small{display:none}
.hm-tdy.claim b{color:var(--lime)}
.hm-tdy.claim .ic,.hm-tdy.all .ic{background:#e3f6d6}

.hm-side{grid-area:side;position:relative;z-index:3;display:flex;flex-direction:column;gap:var(--g2);padding-top:var(--g1)}
.hm-play{width:100%;min-height:84px;font-size:var(--t-hero);letter-spacing:0}
.hm-play small{font-size:var(--t-cap)}
.hm-play small b{font-family:var(--f-display)}
.hm-online{display:inline-flex;align-items:center;gap:4px}
.hm-online i{width:8px;height:8px;border-radius:50%;background:var(--grass-d);box-shadow:0 0 0 2px #1d1b2630}
/* the background preload's line in the play button (client/preload.js: html[data-preload] while it fetches) */
.hm-preload{display:none}
html[data-preload] .hm-play .hm-preload{display:inline}
html[data-preload] .hm-play .hm-online{display:none}
.hm-modes{display:flex;gap:var(--g1)}
.hm-modes .k-btn{flex:1 1 0;min-width:0;flex-direction:column;gap:4px;min-height:56px;padding:4px 4px 8px;font-size:var(--t-cap)}
.hm-modes .k-btn img{width:28px;height:28px;object-fit:contain;pointer-events:none}
.hm-punch{animation:hm-punch .12s ease-in-out 2 alternate}
@keyframes hm-punch{to{translate:3px 0;rotate:4deg}}
.hm-note{font:700 var(--t-cap) var(--f-text);color:#fff;text-align:center;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill}

/* «С друзьями»: invite (the sheet's one primary), a room by code, the server */
.mn-b .k-sheet-h h2{font-size:clamp(18px,5.6vw,22px)}
.hm-frsheet .k-sheet-b>.k-muted:first-child{margin:0 0 var(--g2)}
.hm-invite img{width:32px;height:32px;margin:-8px 0;object-fit:contain}
.hm-frsheet .k-h{margin:var(--g3) 0 var(--g1)}
.hm-coderow{display:flex;gap:var(--g1);align-items:stretch}
.mn-b .hm-codein{flex:1 1 auto;min-width:0;box-sizing:border-box;height:56px;margin:0;padding:0 12px;border-radius:var(--r-m);border:var(--ow) solid var(--ink);background:var(--paper);color:var(--ink);
  font:900 var(--t-title)/1 var(--f-display);letter-spacing:4px;text-transform:uppercase;text-align:center;box-shadow:inset 0 3px 0 #0000001a;outline:none}
.mn-b .hm-codein:focus{box-shadow:inset 0 3px 0 #0000001a,0 0 0 3px var(--lime)}
.mn-b .hm-codein::placeholder{color:#1d1b2640}
.hm-codego{flex:none;min-height:56px}
.hm-frsheet .hm-codehint{margin:var(--g1) 0 0;font-size:var(--t-cap)}
.hm-srvlist{display:flex;flex-direction:column;gap:var(--g1)}
.hm-srvopt{width:100%;font:inherit;cursor:pointer}
.hm-srvopt>svg.k-g{font-size:20px}

/* landscape and desktop: the tabs go up, the dock goes away; the logo moves into the top bar */
@media (orientation:landscape){
  .mb-dock{display:none}
  .mb-tabs{display:flex}
  .mb-me{flex:0 1 auto}
  .mb-title{flex:0 1 auto}
  .mb-logo{display:block}
  .hm-logo{display:none}
}
/* desktop: today | podium | play (three columns) */
@media (orientation:landscape) and (min-width:1000px){
  .hm-home{grid-template-columns:minmax(260px,300px) minmax(0,1fr) minmax(320px,400px);grid-template-rows:minmax(0,1fr);grid-template-areas:"today hero side";column-gap:var(--g3);
    padding:0 0 var(--g2)}
  .hm-today{position:static;grid-area:today;align-self:start;margin-top:var(--g2);gap:0;padding:var(--g1) var(--g2);background:var(--cream);border:var(--ow) solid var(--ink);
    border-radius:var(--r-l);box-shadow:var(--sticker);pointer-events:auto}
  .hm-th{display:block;margin:var(--g1) 0;font:900 var(--t-body)/1 var(--f-display);text-transform:uppercase}
  .hm-tdy{flex-direction:row;align-items:center;width:100%;gap:var(--g2);padding:12px 0;border-top:2px dashed #1d1b2626;text-align:left}
  .hm-th+.hm-tdy{border-top:0}
  .hm-tdy .ic{flex:none;width:48px;height:48px}
  .hm-tdy .ic>img,.hm-tdy .hm-flame{width:36px;height:36px}
  .hm-tdy .ic>.k-tag{top:-12px;right:auto;left:-16px}
  .hm-tdy .tx b{font:800 var(--t-body)/1.15 var(--f-text);color:var(--ink);-webkit-text-stroke:0;text-align:left;white-space:normal}
  .hm-tdy .tx small{display:block;margin-top:4px;font:700 var(--t-cap)/1.2 var(--f-text);color:#1d1b26b8}
  .hm-tdy.claim b{color:var(--grass-ink)}
  .hm-side{justify-content:flex-end;gap:var(--g2);padding:0 8px 0 0}
  .hm-play{min-height:112px}
  .hm-modes .k-btn{min-height:64px}
  .hm-modes .k-btn img{width:32px;height:32px}
  .hm-podium{width:min(52%,300px)}
  .hm-fname .nm{max-width:320px}
  .hm-fname .nm b{font-size:var(--t-title)}
}
/* phone lying down: podium (today's stickers on its left) | play column */
@media (orientation:landscape) and (max-width:999px){
  .mb-tabs .mb-nav-i span{display:none}
  .mb-tabs .mb-nav-i{padding:0 8px}
  .hm-home{grid-template-columns:minmax(0,1fr) min(340px,44vw);grid-template-rows:minmax(0,1fr);grid-template-areas:"hero side";column-gap:var(--g2)}
  .hm-today{top:0}
  .hm-side{justify-content:flex-end;gap:var(--g1);padding:0 0 var(--g1)}
  .hm-play{min-height:76px}
  .hm-modes .k-btn{min-height:52px}
  .hm-modes .k-btn img{width:26px;height:26px}
  .hm-stage{bottom:40px}
  .hm-podium{width:min(46%,200px)}
}
@media (orientation:landscape) and (max-height:500px){
  .mb-topbar{padding-top:calc(8px + var(--safe-t));padding-bottom:4px}
  .mb-me .k-avatar{width:40px;height:40px}
  .mb-title{min-height:48px}
  .mb-tabs .mb-nav-i{height:36px}
}
/* landscape with little height (Telegram fullscreen takes the top): the stickers lose their lines, then the play
   button its subline — play always fits */
@container hmscreen (max-height:290px) and (orientation:landscape){
  .hm-today{gap:var(--g1)}
  .hm-tdy .tx{display:none}
  .hm-tdy .ic{width:48px;height:48px}
  .hm-tdy .ic>img,.hm-tdy .hm-flame{width:34px;height:34px}
  .hm-play{min-height:64px}
}
@container hmscreen (max-height:230px) and (orientation:landscape){
  .hm-play small{display:none}
}

/* toasts while the menu is open — one rule (UI polish): never over the main action (the play block, «Выбрать бойца»,
   the dock: the bottom upright, the right column lying down), the top bar (the balance a purchase has just changed) or a
   sheet. They sit in a lane right under the top bar (--mn-top-b: its bottom edge, index.js). Lying down / on desktop,
   when the right side is taken (the home screen's play column, a sheet's panel), the lane keeps to the free left part;
   upright an open sheet stops under the lane (it never covers the top bar, so the new balance stays in sight). */
html.mn-open .k-toasts{top:calc(var(--mn-top-b,72px) + 8px);bottom:auto}
@media (orientation:landscape){
  html.mn-open:has(.mb-view.home.mb-cur,.k-sheet:not([hidden])) .k-toasts{right:min(400px,44vw)}
}
@media (orientation:portrait){
  html.mn-open .k-sheet{max-height:calc(100% - var(--mn-top-b,72px) - 60px)}
}
/* the dock labels are in the text face everywhere (Unbounded does not fit «ТАБЛИЦЫ» into a 70 px item) */
@media (max-width:370px){ .mb-dock .mb-nav-i{letter-spacing:-.3px} .mb-dock{padding-left:0;padding-right:0} }
/* a narrow phone: «‹ ПРОФИЛЬ» and the balance share 330 px — the title one step down */
@media (max-width:380px){ .mb-title{gap:var(--g1)} .mb-title h1{font-size:var(--t-btn)} }
/* little room for the home screen upright (short phones, Telegram fullscreen eats ~90 px on top): the podium keeps
   its space — a smaller logo, a lower play block (container: the home screen's own height) */
@container hmscreen (max-height:640px) and (orientation:portrait){
  .hm-logo{width:152px;margin-bottom:calc(-1 * var(--g1))}
  .hm-today{gap:var(--g2)}
  .hm-play{min-height:72px;padding-top:8px;padding-bottom:8px}
  .hm-side{gap:var(--g1)}
}
@container hmscreen (max-height:560px) and (orientation:portrait){
  .hm-logo{width:132px}
  .hm-today{gap:12px}
  .hm-tdy.first{display:none}           /* the least urgent sticker goes first: the column keeps clear of ‹ name › */
  .hm-tdy .ic{width:48px;height:48px}
  .hm-tdy .ic>img,.hm-tdy .hm-flame{width:34px;height:34px}
  .hm-play{min-height:64px}
  .hm-play small{display:none}
  .hm-modes .k-btn{min-height:52px}
  .hm-modes .k-btn img{width:24px;height:24px}
}

/* reduced motion: no slides, nothing moves by itself (anim.js still() covers the JS side) */
@media (prefers-reduced-motion:reduce){
  .mb-view,.mb-nav-i.on,.mb-title-in{animation:none!important}
  .mb-bg,.mb-dots,.mb-glow,.mb-veil{transition:none}
}
html.k-still :is(.mb-view,.mb-nav-i.on,.mb-title-in){animation:none!important}
html.k-still :is(.mb-bg,.mb-dots,.mb-glow,.mb-veil){transition:none}
