/* «Битва Фермеров», мультяшный интерфейс: кремовые подушки с тёмным контуром и толстой нижней кромкой,
   сочные кнопки-леденцы, окна с лентой-заголовком. Один шрифт — Rubik, запасной — системный. */
:root { --ink: #3a1d0a; --cream: #fff8e7; --cream2: #ffeec6; --brown: #8a5a2a;
  --green-a: #b8ff6a; --green-b: #4cbb17; --green-c: #2f8f0c; --blue-a: #a8e0ff; --blue-b: #2f8fe8; --blue-c: #1d64c0;
  --pink-a: #ffc2e3; --pink-b: #e0559e; --wood-a: #f0b46a; --wood-b: #c47a34; --red-a: #ff8f7a; --red-b: #e8433a; }
body { background: #3f8f2e url(../img/page_bg.webp) center / cover no-repeat; font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); }
#scr-menu { background: #7fd0ff; }
#scr-game { background: #4d2c22; }
#cv { position: absolute; left: 0; top: 0; display: block; touch-action: none; }

/* кнопки-леденцы */
.btn { min-width: 250px; min-height: 54px; padding: 0 20px; border: 3px solid var(--ink); border-radius: 22px; font: inherit; font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(var(--blue-a), var(--blue-b) 55%, var(--blue-c)); text-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .5);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 4px 0 rgba(255, 255, 255, .5), 0 6px 0 var(--ink), 0 10px 14px rgba(40, 20, 0, .3);
  transition: transform .07s, box-shadow .07s; position: relative; }
.btn:active { transform: translateY(5px); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 4px 0 rgba(255, 255, 255, .5), 0 1px 0 var(--ink); }
.btn-go { min-height: 64px; font-size: 24px; background: linear-gradient(var(--green-a), var(--green-b) 55%, var(--green-c)); animation: gopulse 1.6s ease-in-out infinite; }
.btn-sm { min-width: 0; min-height: 46px; font-size: 16px; border-radius: 18px; background: linear-gradient(var(--wood-a), var(--wood-b)); }
.btn-share { background: linear-gradient(var(--pink-a), var(--pink-b)); }
.btn-pair { display: flex; gap: 10px; }
.btn-pair .btn { flex: 1; }
@keyframes gopulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* окна: кремовая карточка, лента с заголовком, мягкое появление */
.overlay { background: radial-gradient(circle, rgba(30, 60, 20, .35), rgba(20, 30, 10, .7)); }
.overlay.show .panel { animation: panelin .32s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes panelin { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.panel { width: 318px; padding: 30px 18px 20px; margin-top: 18px; border-radius: 30px; color: var(--ink); align-items: stretch; gap: 11px;
  background: linear-gradient(var(--cream), var(--cream2)); border: 4px solid var(--ink);
  box-shadow: inset 0 -6px 0 rgba(200, 140, 60, .25), 0 8px 0 var(--ink), 0 20px 30px rgba(20, 10, 0, .45); }
.panel::before { content: ""; position: absolute; left: 18px; right: 18px; top: 10px; height: 8px; border-radius: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #f2c12e 0 14px, #ef3e5c 14px 28px, #8fdc4a 28px 42px, #3b9dff 42px 56px, #a46bff 56px 70px); opacity: .9; }
.panel-title { align-self: center; margin: -54px 0 2px; padding: 8px 30px 10px; font-size: 25px; font-weight: 900; color: #fff; text-align: center; white-space: nowrap;
  background: linear-gradient(var(--red-a), var(--red-b)); border: 3px solid var(--ink); border-radius: 16px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 var(--ink); position: relative; }
.panel-title::before, .panel-title::after { content: ""; position: absolute; top: 12px; width: 22px; height: 30px; background: #b8302a; border: 3px solid var(--ink); z-index: -1; }
.panel-title::before { left: -16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); border-right: 0; }
.panel-title::after { right: -16px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); border-left: 0; }
.res-line { font-size: 15px; font-weight: 700; text-align: center; color: var(--brown); }
.res-title { display: flex; justify-content: center; margin-top: -4px; line-height: 0; }
.panel-res { gap: 10px; padding-top: 22px; }
.res-stats { display: flex; gap: 7px; }
.res-stats > div { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.res-stats b { font-size: 21px; font-weight: 900; color: var(--green-c); font-variant-numeric: tabular-nums; }
.res-stats span { font-size: 11px; color: var(--brown); font-weight: 700; }
.res-list { display: flex; flex-direction: column; gap: 5px; }
.res-row { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 6px; border-radius: 14px; background: #fff; border: 2px solid rgba(58, 29, 10, .18); font-size: 14px; font-weight: 800; }
.res-row svg { width: 24px; height: 24px; flex-shrink: 0; }
.res-row.me { background: #fff2b0; border-color: #ffa21a; box-shadow: 0 2px 0 #ffa21a; }
.res-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-c { font-size: 11px; color: var(--brown); font-weight: 700; }
.res-v { width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.help-row { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.28; }
.help-row svg { flex-shrink: 0; width: 34px; height: 34px; }
.help-row i { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%); border: 3px solid var(--ink); }

/* рейтинг */
#lb-list { max-height: 300px; }
.lb-row { border-radius: 16px; background: #fff; color: var(--ink); font-weight: 800; border: 2px solid rgba(58, 29, 10, .15); }
.lb-row.top-1 { background: linear-gradient(90deg, #fff2a0, #ffd23f); }
.lb-row.top-2 { background: linear-gradient(90deg, #f4f7fb, #cdd5e0); }
.lb-row.top-3 { background: linear-gradient(90deg, #ffe0c4, #f0a46a); }
.lb-row.me { box-shadow: 0 0 0 3px var(--green-b); }
.lb-medal { font-weight: 900; }
.lb-medal.gold, .lb-medal.silver, .lb-medal.bronze { width: 30px; height: 30px; line-height: 26px; border-radius: 50%; border: 3px solid var(--ink); color: var(--ink); }
.lb-medal.gold { background: radial-gradient(circle at 35% 30%, #fff6b0, #ffc21a 60%, #c98a00); }
.lb-medal.silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c3ccd8 60%, #8a94a3); }
.lb-medal.bronze { background: radial-gradient(circle at 35% 30%, #ffd9b0, #e0864a 60%, #a85a20); }
.lb-avatar { background: var(--green-b); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; border: 2px solid var(--ink); }
.lb-score { color: var(--green-c); font-size: 18px; font-weight: 900; }
.lb-empty { color: var(--brown); font-weight: 700; }
#toast { bottom: 96px; padding: 10px 18px; border-radius: 18px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 15px; font-weight: 800; }

/* HUD: кремовые подушки поверх поля */
.hud { position: absolute; left: 0; top: 0; pointer-events: none; overflow: hidden; }
.hud > * { pointer-events: none; }
.hud .hud-pause, .hud .spect.show { pointer-events: auto; }
.bubble { background: linear-gradient(var(--cream), var(--cream2)); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink), 0 8px 12px rgba(20, 10, 0, .3); }
.hud-me { --crop: #f2c12e; position: absolute; left: 10px; top: 8px; width: 146px; padding: 6px 10px 9px 48px; border-radius: 20px; }
.hud-ico { position: absolute; left: -6px; top: -6px; width: 52px; height: 52px; filter: drop-shadow(0 3px 0 rgba(58, 29, 10, .35)); }
.hud-crop { font-size: 12px; font-weight: 800; color: var(--brown); }
.hud-pct { font-size: 28px; font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-barbox { position: relative; height: 10px; margin: 6px 0 0 -38px; border-radius: 6px; background: #e8d4a8; overflow: hidden; border: 2px solid var(--ink); }
.hud-bar { height: 100%; background: repeating-linear-gradient(-45deg, var(--crop) 0 6px, color-mix(in srgb, var(--crop) 70%, #fff) 6px 12px); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s; }
.hud-barbox i { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--red-b); }
.hud-mid { position: absolute; left: 166px; top: 8px; display: grid; grid-template-columns: auto auto; justify-items: center; align-items: center; gap: 5px 4px; }
.hud-mid .hud-mode { grid-column: 1 / span 2; white-space: nowrap; }
.hud-time { display: flex; align-items: center; gap: 4px; padding: 3px 12px 3px 6px; border-radius: 16px; font-size: 20px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-time svg { width: 24px; height: 24px; }
.hud-mode { padding: 1px 9px; border-radius: 10px; background: rgba(255, 248, 231, .9); border: 2px solid var(--ink); font-size: 11px; font-weight: 800; color: var(--brown); }
.hud-pause { position: absolute; right: 10px; top: 30px; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 25%, var(--green-a), var(--green-b) 70%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--ink); }
.hud-pause:active { transform: translateY(3px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.hud-top { position: absolute; left: 10px; top: 92px; width: 152px; display: flex; flex-direction: column; gap: 4px; }
.top-row { --crop: #fff; display: flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: 13px; background: rgba(255, 248, 231, .9); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; color: var(--ink); }
.top-row svg { width: 20px; height: 20px; flex-shrink: 0; }
.top-row .crown { width: 16px; height: 16px; margin-left: -2px; }
.top-row.me { background: #fff2b0; box-shadow: 0 0 0 2px #ffa21a; }
.top-row.out { opacity: .55; text-decoration: line-through; }
.top-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-val { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.feed { position: absolute; left: 50%; top: 70px; width: 210px; margin-left: -105px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.feed-row { max-width: 210px; padding: 3px 10px; border-radius: 12px; background: var(--cream); border: 2px solid var(--ink); border-left-width: 6px; font-size: 12px; font-weight: 800; text-align: center; color: var(--ink);
  animation: feedin .3s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes feedin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.banner { position: absolute; left: 0; right: 0; top: 34%; display: none; justify-content: center; font-size: 100px; font-weight: 900; color: #fff2b0;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink), 0 14px 20px rgba(0, 0, 0, .4); }
.banner.show { display: flex; animation: bannerin .4s cubic-bezier(.2, 1.6, .4, 1); }
.banner.small { top: 44%; font-size: 22px; -webkit-text-stroke: 0; text-shadow: none; color: var(--ink); }
.banner.small.show { left: 50%; right: auto; transform: translateX(-50%); padding: 8px 18px; border-radius: 18px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); white-space: nowrap; animation: none; }
.banner.go { color: #c8ff6a; }
@keyframes bannerin { from { transform: scale(1.9) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.spect { position: absolute; left: 50%; bottom: 26px; width: 304px; margin-left: -152px; display: none; flex-direction: column; align-items: center; gap: 7px; padding: 14px;
  border-radius: 24px; background: linear-gradient(var(--cream), var(--cream2)); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.spect.show { display: flex; }
.spect-text { font-size: 17px; font-weight: 900; text-align: center; color: var(--red-b); }
.spect-sub { font-size: 13px; font-weight: 600; color: var(--brown); text-align: center; }
.spect .btn { min-width: 160px; }

/* монеты за раунд, отметки целей на полосе, всплывающие цели и место */
.hud-coins { display: flex; align-items: center; gap: 4px; padding: 1px 10px 1px 4px; border-radius: 14px; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hud-coins svg { width: 22px; height: 22px; }
.mt { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--ink); opacity: .45; }
.mt.on { background: #ffd23f; opacity: 1; box-shadow: 0 0 6px #ffd23f; }
.mile-pop { position: absolute; left: 50%; top: 31%; display: none; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; }
.mile-pop.show { display: flex; animation: milein 1.8s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.mile-pop b { font-size: 46px; font-weight: 900; color: #c8ff6a; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); white-space: nowrap; }
.mile-pop.king b { color: #ffd23f; font-size: 36px; }
.mile-pop span { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 12px 3px 6px; border-radius: 16px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 22px; font-weight: 900; }
.mile-pop span svg { width: 28px; height: 28px; }
@keyframes milein { 0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-8deg); } 15% { opacity: 1; transform: translateX(-50%) scale(1.1) rotate(2deg); } 25% { transform: translateX(-50%) scale(1) rotate(0); } 80% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }
.rank-pop { position: absolute; right: 12px; top: 238px; display: none; padding: 5px 14px; border-radius: 16px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 18px; font-weight: 900; color: #fff; pointer-events: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.rank-pop.up { background: linear-gradient(var(--green-a), var(--green-b)); }
.rank-pop.down { background: linear-gradient(var(--red-a), var(--red-b)); }
.rank-pop.show { display: block; animation: rankin 1.6s ease-out forwards; }
@keyframes rankin { 0% { opacity: 0; transform: translateX(30px); } 12% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* гараж */
.panel-garage { width: 336px; gap: 10px; }
.gar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gar-coins { display: flex; align-items: center; gap: 4px; padding: 3px 12px 3px 5px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); font-size: 18px; font-weight: 900; }
.gar-coins svg { width: 26px; height: 26px; }
.gar-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 16px; background: #e8d4a8; border: 2px solid var(--ink); }
.gar-tab { border: 0; border-radius: 12px; min-height: 36px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 800; color: var(--brown); background: none; }
.gar-tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
#gar-list { max-height: 330px; display: flex; flex-direction: column; gap: 8px; }
.gar-card { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 18px; background: #fff; border: 3px solid rgba(58, 29, 10, .2); }
.gar-card.sel { border-color: var(--green-b); background: #f2ffe2; }
.gar-pic { width: 76px; height: 56px; flex-shrink: 0; }
.gar-ico { width: 46px; height: 46px; flex-shrink: 0; }
.gar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gar-txt b { font-size: 16px; font-weight: 900; }
.gar-txt span { font-size: 12px; font-weight: 600; color: var(--brown); line-height: 1.25; }
.gar-dots { display: flex; gap: 4px; margin-top: 3px; }
.gar-dots em { width: 16px; height: 8px; border-radius: 4px; background: #e8d4a8; border: 2px solid rgba(58, 29, 10, .35); }
.gar-dots em.on { background: var(--green-b); border-color: var(--green-c); }
.gar-btn { flex-shrink: 0; display: flex; align-items: center; gap: 3px; min-height: 42px; padding: 0 12px 0 6px; border-radius: 16px; border: 3px solid var(--ink); font: inherit; font-size: 16px; font-weight: 900; color: var(--ink);
  background: linear-gradient(#fff2a0, #ffc21a); box-shadow: 0 4px 0 var(--ink); }
.gar-btn svg { width: 24px; height: 24px; }
.gar-btn.pick { padding: 0 12px; background: linear-gradient(var(--green-a), var(--green-b)); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.gar-btn.poor { filter: grayscale(.6); opacity: .75; }
.gar-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.gar-on { flex-shrink: 0; padding: 6px 10px; border-radius: 12px; background: var(--green-b); color: #fff; font-size: 13px; font-weight: 900; }
/* кнопка рывка и значки бонусов */
.dash-btn { --cd: 0; position: absolute; right: 16px; bottom: 26px; width: 86px; height: 86px; border-radius: 50%; border: 4px solid var(--ink); display: none; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(rgba(58, 29, 10, .55) calc(var(--cd) * 360deg), transparent 0), radial-gradient(circle at 35% 25%, #ffe58a, #ffa21a 70%);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 5px 0 var(--ink); pointer-events: auto; touch-action: none; font: inherit; color: var(--ink); }
.dash-btn.show { display: flex; }
.dash-btn svg { width: 40px; height: 40px; }
.dash-btn span { font-size: 12px; font-weight: 900; }
.dash-btn.ready { animation: gopulse 1s ease-in-out infinite; }
.dash-btn:active { transform: translateY(4px); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--ink); }
.hud-fx { position: absolute; left: 10px; top: 236px; display: flex; flex-direction: column; gap: 4px; }
.hud-fx span { padding: 2px 10px; border-radius: 12px; border: 2px solid var(--ink); font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); animation: feedin .3s; }
.hud-fx .fx-f { background: linear-gradient(var(--red-a), var(--red-b)); }
.hud-fx .fx-u { background: linear-gradient(var(--green-a), var(--green-b)); }
.hud-fx .fx-s { background: linear-gradient(var(--blue-a), var(--blue-b)); }

/* оживление */
.revive { position: absolute; left: 50%; bottom: 24px; width: 312px; margin-left: -156px; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px 12px;
  border-radius: 26px; background: linear-gradient(var(--cream), var(--cream2)); border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); pointer-events: auto; animation: panelin .3s cubic-bezier(.2, 1.5, .4, 1); }
.revive.show { display: flex; }
.revive-title { font-size: 22px; font-weight: 900; text-align: center; color: var(--red-b); }
.revive-sub { font-size: 13px; font-weight: 600; text-align: center; color: var(--brown); }
.revive .btn { min-width: 0; }
.btn-ico { width: 24px; height: 24px; vertical-align: -5px; margin: 0 2px; }
.revive-bar { height: 10px; border-radius: 6px; background: #e8d4a8; border: 2px solid var(--ink); overflow: hidden; }
.revive-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-b), #ffd23f); transform-origin: 0 50%; }
/* достижения */
#ach-list { max-height: 360px; display: flex; flex-direction: column; gap: 7px; }
.ach-card { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 18px; background: #fff; border: 3px solid rgba(58, 29, 10, .18); }
.ach-card.done { background: #f2ffe2; border-color: var(--green-b); }
.ach-ico { width: 40px; height: 40px; flex-shrink: 0; }
.ach-card:not(.done) .ach-ico { filter: grayscale(.7); opacity: .7; }
.ach-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ach-txt b { font-size: 15px; font-weight: 900; }
.ach-txt span { font-size: 12px; font-weight: 600; color: var(--brown); }
.ach-txt small { font-size: 11px; font-weight: 800; color: var(--brown); font-variant-numeric: tabular-nums; }
.ach-bar { display: block; height: 8px; margin-top: 2px; border-radius: 5px; background: #e8d4a8; overflow: hidden; }
.ach-bar em { display: block; height: 100%; background: linear-gradient(90deg, var(--green-b), var(--green-a)); }
.ach-rew { flex-shrink: 0; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 900; color: var(--green-c); }
.ach-rew svg { width: 20px; height: 20px; }
.res-ach { display: flex; flex-direction: column; gap: 4px; }
.res-ach div { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 14px; background: #fff2b0; border: 2px solid #ffa21a; font-size: 13px; font-weight: 800; }
.res-ach svg { width: 24px; height: 24px; flex-shrink: 0; }

/* номер комнаты над паузой */
.hud-room { position: absolute; right: 6px; top: 200px; min-width: 100px; text-align: center; display: none; padding: 1px 9px; border-radius: 10px; background: rgba(255, 248, 231, .95); border: 2px solid var(--ink); font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.hud-room.show { display: block; }

  background: linear-gradient(var(--pink-a), var(--pink-b)); box-shadow: 0 3px 0 var(--ink); pointer-events: auto; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
/* затемнение краёв поля (раньше рисовалось на холсте каждый кадр) */
.vign { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle farthest-corner at 50% 50%, rgba(10, 0, 20, 0) 55%, rgba(10, 0, 20, .3) 100%); }
