/* Hog Rumble UI: one "toy" style taken from the generated logo (Vova 2026-12-03: the whole game in the logo's style).
   Cream plaques with a thick brown outline and a solid 3D bottom, juicy orange buttons, white text with a brown outline,
   generated icons (public/img). Exo 2. */
@font-face { font-family: Exo2; font-weight: 500 800; font-display: swap; src: url(/fonts/exo2-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Exo2; font-weight: 500 800; font-display: swap; src: url(/fonts/exo2-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212; }
:root {
  --brown: #5a2812; --cream: #fff6dc; --cream2: #ffe7a8; --ink: #fff; --muted: #8a5a3a; --dark: #1c2433;
  --orange: linear-gradient(180deg, #ffe05a 0%, #ffb02e 45%, #ff7a1a 100%);
  --orangeHi: linear-gradient(180deg, #fff07a 0%, #ffc03e 45%, #ff8a2a 100%);
  --go: #4be06b;
  --edge: 0 5px 0 var(--brown), 0 10px 20px rgba(0,0,0,.28);          /* solid 3D bottom + soft drop */
  --shine: inset 0 3px 0 rgba(255,255,255,.6);
  --outline: 0 3px 0 var(--brown), 2px 0 0 var(--brown), -2px 0 0 var(--brown), 0 -2px 0 var(--brown), 2px 2px 0 var(--brown), -2px 2px 0 var(--brown);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #a9d4ef; font: 700 14px/1.3 Exo2, system-ui, "Segoe UI", sans-serif; color: var(--brown); }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.small { font-size: 12px; color: var(--muted); }

/* the one plaque look for every HUD block */
.plaque, .knob { position: fixed; color: var(--brown); background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 55%, var(--cream2) 100%);
  border: 4px solid var(--brown); box-shadow: var(--edge), var(--shine); border-radius: 20px; }
button { font: inherit; font-weight: 800; color: var(--brown); cursor: pointer; user-select: none; border: 3px solid var(--brown); border-radius: 14px; padding: 6px 14px;
  background: linear-gradient(180deg, #fffaf0, var(--cream2)); box-shadow: 0 4px 0 var(--brown), var(--shine); transition: background .12s; }
button:hover { background: linear-gradient(180deg, #ffffff, #fff0c4); }
button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brown), var(--shine); }
button.primary, button.go, .wbtn.on, .cb button.held, .gfxRow button.on { background: var(--orange); color: #fff; text-shadow: var(--outline); }
button.primary:hover, button.go:hover { background: var(--orangeHi); }
.knob { width: 40px; height: 40px; border-radius: 50%; padding: 0; font-size: 19px; font-weight: 800; z-index: 5; }
.chip { padding: 3px 14px; font-size: 13px; border-radius: 999px; }

/* top-left: whose turn; the timer is a ring that runs down (--p = share of the turn left) */
#turnbox { top: 12px; left: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 12px 6px; max-width: 330px; }
#timer { --p: 1; --c: var(--go); flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: var(--outline); box-shadow: 0 0 0 3px var(--brown);
  background: radial-gradient(closest-side, #8a4a22 74%, transparent 76%), conic-gradient(var(--c) calc(var(--p) * 360deg), #e8cf98 0); }
#timer.low { --c: #ff4d5e; animation: tick 1s ease-in-out infinite; }
@keyframes tick { 50% { transform: scale(1.07); } }
.tinfo { min-width: 0; }
#turnTeam { font-weight: 800; font-size: 18px; line-height: 1.15; color: var(--brown); }
#turnTeam::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--team, #fff); box-shadow: 0 0 0 2.5px var(--brown); }
#turnPig { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#teams { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: 12px; }
#teams .t { display: flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; }
#teams .pp { display: inline-flex; gap: 3px; }
#teams .pp i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--brown); }
#teams .pp i.dead { background: transparent !important; opacity: .45; }
#skipBtn { position: absolute; right: 14px; bottom: -16px; font-size: 11px; padding: 2px 12px; border-width: 2.5px; box-shadow: 0 3px 0 var(--brown); }

/* top-right: wind + knobs */
#windbox { top: 12px; right: 12px; width: 64px; height: 64px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#windArrow { font-size: 28px; line-height: 1; transition: transform .1s; color: #3fa9ff; text-shadow: 0 2px 0 var(--brown); }
#windVal { font-weight: 800; font-size: 12px; }
#corner { position: fixed; top: 88px; right: 24px; display: flex; flex-direction: column; gap: 10px; }
#corner .knob { position: static; }
#musicBtn.off { opacity: .55; text-decoration: line-through; }
#gfxBtn { top: 238px; right: 24px; z-index: 25; }
#gfxBox { top: 246px; right: 82px; width: 270px; z-index: 25; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
#gfxBox .ctitle { font-weight: 800; }
.gfxRow { display: flex; gap: 6px; align-items: center; }
.gfxRow button { flex: 1; padding: 6px 4px; }

/* top-center: one short line of what to do */
#stepbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; }
#stepbar button { pointer-events: auto; }
#stepText { font-size: 21px; font-weight: 800; white-space: nowrap; color: #fff; text-shadow: var(--outline), 0 6px 14px rgba(0,0,0,.35); }

/* bottom dock: drawn icons on cream tiles, the chosen one turns orange */
#bottom { bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; padding: 6px 8px; border-radius: 26px; }
#weapons { display: flex; gap: 6px; }
button.big { position: relative; width: 66px; height: 66px; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; border-radius: 18px; }
button.big img { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); height: 34px; max-width: 52px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); pointer-events: none; }
button.big span { font-weight: 800; font-size: 12px; line-height: 1.1; }
button.big small { font-size: 10px; color: var(--muted); line-height: 1.1; margin-bottom: 1px; }
.wbtn.on small { color: #fff; }
#jumpBtn.off, #fireBtn.off { opacity: .5; filter: grayscale(.5); }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 0 var(--brown), 0 0 0 0 rgba(255,140,60,.9); } 50% { box-shadow: 0 4px 0 var(--brown), 0 0 0 9px rgba(255,140,60,0); } }

/* on-screen controls inside the dock */
#ctrl { display: flex; gap: 8px; padding: 0 8px; margin: 0 2px; border-radius: 16px; background: rgba(90,40,18,.1); align-self: stretch; align-items: center; }
#ctrl .cg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#ctrl.punch .ranged { display: none !important; }
#ctrl label { font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }
#ctrl label b { color: var(--brown); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cb { display: flex; gap: 4px; }
.cb button { width: 34px; height: 30px; padding: 0; font-size: 13px; border-radius: 10px; border-width: 2.5px; box-shadow: 0 3px 0 var(--brown); touch-action: none; }

/* ОГОНЬ: the drawn big red button; the ring shows the shot power */
#fireBtn { position: relative; width: 88px; height: 88px; border-radius: 50%; padding: 0; margin: -20px 0 -20px 4px; display: grid; place-items: center;
  background: none; border: 0; box-shadow: none; touch-action: none; }
#fireBtn:hover { background: none; filter: brightness(1.08); }
#fireBtn:active { transform: translateY(3px); box-shadow: none; }
#fireBtn img.fimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); pointer-events: none; }
#fireBtn svg.pw { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
#fireBtn .ring { fill: none; stroke: #ffe066; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; filter: drop-shadow(0 0 3px var(--brown)); }
#fireBtn .fb { position: relative; margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: .5px; color: #fff; text-shadow: var(--outline); }
#fireBtn.charging { filter: brightness(1.15) saturate(1.2); }

/* mouse captured: a power bar under the hint line on top (no crosshair: the arc is the aim; low it covered the pig) */
#aimHud { position: fixed; left: 50%; top: 66px; width: 0; height: 0; pointer-events: none; }
#aimHud .pbar { position: absolute; left: -95px; top: -16px; width: 190px; height: 16px; border-radius: 10px; background: var(--cream); border: 3px solid var(--brown); box-shadow: 0 3px 0 var(--brown); overflow: hidden; }
#aimHud .pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4be06b, #ffd23a 55%, #ff3d5e); }
#aimHud .ptxt { position: absolute; left: -120px; top: 6px; width: 240px; text-align: center; font-size: 14px; font-weight: 800; white-space: nowrap; color: #fff; text-shadow: var(--outline); }
#lockHint { position: fixed; left: 50%; top: 68%; transform: translate(-50%, -50%); padding: 9px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; pointer-events: none;
  color: var(--brown); background: var(--cream); border: 3px solid var(--brown); box-shadow: var(--edge); }

/* keys of the current step: one quiet line under the dock */
#keys { position: fixed; bottom: 5px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 6px rgba(0,0,0,.45); }
#keys:empty { display: none; }
kbd { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 6px; background: var(--cream); color: var(--brown); font: 800 11px/16px Exo2, system-ui, sans-serif; text-align: center; text-shadow: none; box-shadow: 0 0 0 1.5px var(--brown), 0 2px 0 var(--brown); }

/* coach tips (opt-in with "?") */
#coach { position: fixed; z-index: 20; width: 290px; border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--brown); background: var(--cream); border: 3px solid var(--brown); box-shadow: var(--edge); }
#coach .cbtns { display: flex; gap: 6px; margin-top: 10px; }
#coach .cbtns button { padding: 3px 12px; font-size: 12px; }
#coach #coachSkip { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
#coachArrow { position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: var(--cream); border: 3px solid var(--brown); transform: translateX(-50%) rotate(45deg); }
#coach.below #coachArrow { top: -8px; border-right: 0; border-bottom: 0; }
#coach.above #coachArrow { bottom: -8px; border-left: 0; border-top: 0; }

.dmg { position: absolute; transform: translate(-50%, -100%); font: 800 30px/1 Exo2, system-ui, sans-serif; color: #fff; white-space: nowrap; -webkit-text-stroke: 2px #c3123a; paint-order: stroke fill; text-shadow: 0 3px 0 #c3123a, 0 4px 12px rgba(0,0,0,.35); }
.dmg.drown { -webkit-text-stroke-color: #1460a8; text-shadow: 0 3px 0 #1460a8, 0 4px 12px rgba(0,0,0,.35); }

/* names + HP over the pigs */
#labels { position: fixed; inset: 0; pointer-events: none; }
.lbl { position: absolute; transform: translate(-50%, -100%); text-align: center; font-size: 13px; font-weight: 800; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 1px 2px rgba(255,255,255,.9); }
.lbl .hp { width: 52px; height: 8px; background: var(--cream); border-radius: 5px; margin: 3px auto 0; overflow: hidden; box-shadow: 0 0 0 2px var(--brown); }
.lbl .hp i { display: block; height: 100%; }

#banner { position: fixed; top: 34%; left: 50%; transform: translate(-50%, -50%); font-size: 42px; font-weight: 800; color: #fff; pointer-events: none; white-space: nowrap; letter-spacing: .5px;
  -webkit-text-stroke: 7px var(--brown); paint-order: stroke fill; text-shadow: 0 5px 0 var(--brown), 0 10px 24px rgba(0,0,0,.35); }
#toast { position: fixed; top: 104px; left: 50%; transform: translateX(-50%); padding: 6px 18px; border-radius: 999px; pointer-events: none; font-weight: 800;
  color: var(--brown); background: var(--cream); border: 3px solid var(--brown); box-shadow: var(--edge); }

/* end of the match: big splash with the drawn pig (trophy / white flag) */
#result { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,190,80,.4) 0%, rgba(20,30,50,.6) 75%); backdrop-filter: blur(4px); animation: resIn .4s ease-out; }
#result.lose { background: radial-gradient(ellipse at 50% 45%, rgba(140,160,200,.35) 0%, rgba(15,20,35,.7) 75%); }
@keyframes resIn { from { opacity: 0; } }
/* the knobs (help, music, gear, language, fullscreen) stay usable over the end splash (Vova: "can't even turn the music off") */
body:has(#result:not(.hidden)) #corner, body:has(#result:not(.hidden)) #gfxBtn, body:has(#result:not(.hidden)) #gfxBox { z-index: 32; }
body:has(#result:not(.hidden)) #help { z-index: 34; }
/* ways out (js/exits.js): the door knob under the gear (touch: in the knob row), the confirm, end screen buttons + reward */
#fightExitBtn svg { width: 20px; height: 20px; display: block; margin: auto; }
body:not(.touch) #fightExitBtn { position: fixed; top: 288px; right: 24px; }
body:has(#result:not(.hidden)) #fightExitBtn { display: none; }
#leaveBox { z-index: 36; }
#leaveBox .card { width: min(420px, 100%); gap: 16px; text-align: center; }
#leaveBox h2 { font-size: 22px; }
#leaveBox .pickBtns { justify-content: center; }
#resBtns { display: flex; gap: 12px; align-items: center; animation: resUp .5s .55s both; }
#resBtns #resMenu, #resBtns #resCab { font-size: 17px; padding: 10px 22px; border-radius: 999px; }
#resReward { display: flex; gap: 10px; align-items: center; font-weight: 800; color: #fff; text-shadow: var(--outline); animation: resUp .5s .5s both; }
#resReward .rw { padding: 4px 14px; border-radius: 14px; background: rgba(255, 246, 220, .92); color: var(--brown); text-shadow: none; }
#resReward .rw b { font-size: 18px; margin-right: 6px; }
#resReward .rw i { font-style: normal; font-size: 13px; }
#resReward a { color: #fff; }
#result .res { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
#resArt { height: clamp(140px, 34vh, 360px); object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.4)); animation: resPop .7s cubic-bezier(.2,1.6,.4,1); margin-bottom: -18px; }
#resTitle { position: relative; font-size: clamp(54px, min(10vw, 13vh), 116px); font-weight: 800; line-height: 1; letter-spacing: 2px; color: #ffc22e;
  -webkit-text-stroke: 12px var(--brown); paint-order: stroke fill; filter: drop-shadow(0 6px 0 var(--brown)) drop-shadow(0 12px 18px rgba(0,0,0,.35)); animation: resPop .7s .1s cubic-bezier(.2,1.6,.4,1) both; }
#result.lose #resTitle { color: #e3ecfa; -webkit-text-stroke-color: #22304d;
  filter: drop-shadow(0 6px 0 #22304d) drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
@keyframes resPop { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
#resText { font-size: 20px; font-weight: 800; color: #fff; text-shadow: var(--outline); animation: resUp .5s .25s both; }
#resStats { display: flex; gap: 12px; animation: resUp .5s .4s both; }
#resStats .st { padding: 8px 18px; border-radius: 18px; font-weight: 800; font-size: 13px; color: var(--brown);
  background: linear-gradient(180deg, #fffaf0, var(--cream2)); border: 4px solid var(--brown); box-shadow: var(--edge), var(--shine); }
#resStats .st b { display: block; font-size: 26px; font-weight: 800; }
#resStats .pp { display: inline-flex; gap: 4px; margin-top: 4px; }
#resStats .pp i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--brown); }
#resStats .pp i.dead { background: transparent !important; opacity: .45; }
#againBtn { font-size: 22px; padding: 12px 36px; border-radius: 999px; border-width: 4px; box-shadow: 0 7px 0 var(--brown), 0 14px 26px rgba(0,0,0,.35), var(--shine); animation: resUp .5s .55s both; }
@keyframes resUp { from { transform: translateY(24px); opacity: 0; } }
#confetti { position: absolute; inset: 0; pointer-events: none; }
#confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* start screen */
#lobby { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,200,110,.18) 0%, rgba(15,30,55,.45) 75%); }
#lobby .res { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; width: min(720px, 100%); }
#logoImg { cursor: pointer; height: clamp(120px, 30vh, 340px); max-width: 92vw; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); animation: resPop .8s cubic-bezier(.2,1.6,.4,1); }
#tagline { font-size: 18px; font-weight: 800; color: #fff; text-shadow: var(--outline); margin-top: -6px; animation: resUp .5s .2s both; }
#lobby input { font: inherit; font-weight: 800; text-align: center; width: min(320px, 100%); padding: 10px 16px; border-radius: 999px;
  background: var(--cream); color: var(--brown); border: 4px solid var(--brown); box-shadow: var(--edge); animation: resUp .5s .3s both; }
/* mode buttons: juicy orange body, brown outline, solid 3D bottom; the drawn scene pops out over the top */
#createBlock { display: flex; justify-content: center; flex-wrap: wrap; margin-top: clamp(40px, 9vh, 80px); gap: 18px; animation: resUp .5s .4s both; }
button.mode { position: relative; width: 210px; padding: clamp(70px, 14vh, 112px) 12px 12px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--orange); border: 4px solid var(--brown); box-shadow: 0 7px 0 var(--brown), 0 14px 26px rgba(0,0,0,.35), var(--shine); }
button.mode:hover { background: var(--orangeHi); }
button.mode:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--brown), 0 6px 14px rgba(0,0,0,.35), var(--shine); }
button.mode img { position: absolute; left: 50%; bottom: calc(100% - clamp(70px, 14vh, 112px) + 4px); transform: translateX(-50%); width: 190px; max-height: clamp(110px, 24vh, 200px); object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); pointer-events: none; }
button.mode b { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .5px; text-shadow: var(--outline); }
button.mode small { font-size: 12px; font-weight: 800; color: var(--brown); }
#joinBlock button { font-size: 22px; padding: 14px 36px; border-radius: 999px; border-width: 4px; box-shadow: 0 7px 0 var(--brown), 0 14px 26px rgba(0,0,0,.35), var(--shine); }
body.menu #gfxBtn, body.menu #gfxBox { display: none; }
/* lobby: link to the player cabinet (/cabinet), top-right corner */
#cabBtn { position: absolute; top: 14px; right: 16px; padding: 8px 20px; border-radius: 999px; font-size: 16px; font-weight: 800; text-decoration: none; color: #fff; text-shadow: var(--outline);
  background: var(--orange); border: 4px solid var(--brown); box-shadow: 0 5px 0 var(--brown), 0 10px 20px rgba(0,0,0,.28), var(--shine); transition: box-shadow .12s; }
#cabBtn:hover { background: var(--orangeHi); box-shadow: 0 5px 0 var(--brown), 0 12px 26px rgba(0,0,0,.38), var(--shine); }
/* help, waiting */
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,30,50,.35); backdrop-filter: blur(3px); padding: 16px; z-index: 30; }
.card { color: var(--brown); border-radius: 26px; padding: 22px 26px; width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow: auto;
  background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 60%, var(--cream2) 100%); border: 5px solid var(--brown); box-shadow: 0 8px 0 var(--brown), 0 20px 40px rgba(0,0,0,.35), var(--shine); }
.card h1, .card h2 { margin: 0; font-weight: 800; color: #fff; text-shadow: var(--outline); }
.card input { font: inherit; padding: 9px 14px; border-radius: 14px; border: 3px solid var(--brown); background: #fff; color: var(--brown); width: 100%; }
.card table { border-collapse: collapse; font-size: 13px; }
.card td { padding: 3px 6px; vertical-align: top; }
.card td:first-child { font-weight: 800; white-space: nowrap; }
#help .card { width: min(1160px, 100%); }   /* wider + keys in 2 columns since the weapons paragraph (2026-12-03): fits 1265x650 without inner scroll */
#help .card { gap: 6px; padding: 16px 24px; }
#help .card td { padding: 2px 6px; }
#help .card p { margin: 0; }
#help #helpClose { position: sticky; bottom: 0; z-index: 1; flex: none; }   /* the help grew past 650 px: «Понятно» stays in view, the text scrolls */
#help .keys tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
#help .keys tr { display: flex; }
#help .keys td:first-child { flex: none; width: 140px; }
.err { color: #ffd0d0; margin: 0; min-height: 1em; text-shadow: var(--outline); }

/* truffles (js/truffles3d.js): +hp float, buff badges over the name plate */
.dmg.heal { -webkit-text-stroke-color: #2f8a24; text-shadow: 0 3px 0 #2f8a24, 0 4px 12px rgba(0,0,0,.35); }
.lbl .bf { display: flex; justify-content: center; gap: 3px; margin-bottom: 2px; }
.lbl .bf span { display: inline-flex; align-items: center; gap: 1px; padding: 1px 5px 1px 3px; border-radius: 999px; background: rgba(255,248,232,.92); box-shadow: 0 2px 4px rgba(60,40,20,.25); font-size: 11px; color: #5a3d26; text-shadow: none; }
.lbl .bf svg { width: 14px; height: 14px; }
/* server browser (2026-12-03): one card over the lobby, the list scrolls inside it; rows are tiles, no lines between them */
#toast { z-index: 40; }
#servers { z-index: 31; }
#servers .card { width: min(1000px, 100%); height: min(600px, 100%); overflow: hidden; gap: 10px; padding: 18px 22px 16px; }
.sHead, .sFilters { display: flex; align-items: center; gap: 12px; flex: none; }
.sHead h2 { font-size: 30px; }
.grow { flex: 1; }
#servers .card #sNick { width: 190px; padding: 6px 14px; border-radius: 999px; font-weight: 800; text-align: center; }
#sCreate { font-size: 17px; padding: 9px 22px; border-radius: 999px; white-space: nowrap; }
#sClose { position: static; flex: none; font-size: 17px; }
#sMap { font: inherit; font-weight: 800; color: var(--brown); padding: 6px 12px; border-radius: 999px; border: 3px solid var(--brown); background: #fffaf0; box-shadow: 0 3px 0 var(--brown); cursor: pointer; }
.sFree { display: flex; align-items: center; gap: 7px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.sFree input { width: 20px; height: 20px; accent-color: #ff7a1a; cursor: pointer; }
.sCols, .srow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) 118px; gap: 12px; align-items: center; }
.sCols { flex: none; padding: 0 18px; font-size: 12px; font-weight: 800; color: var(--muted); }
#sList { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(90,40,18,.07); }
.srow { flex: none; padding: 8px 10px 8px 10px; border-radius: 16px; background: #fffdf6; box-shadow: 0 3px 0 rgba(90,40,18,.22); transition: box-shadow .15s; }
.srow:hover { box-shadow: 0 3px 0 rgba(90,40,18,.22), 0 8px 18px rgba(60,30,10,.14); }
.srow.off { background: rgba(255,253,246,.6); }
.sMapC { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sMapC img { width: 84px; height: 50px; object-fit: cover; border-radius: 12px; flex: none; background: #8fc4ef; box-shadow: 0 0 0 2.5px var(--brown); }
.sMapC span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sMapC b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* «Archipelago» ran into the brigades column (Vova 2026-12-05) */
#sRefresh { flex: none; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
#sRefresh i { display: inline-block; font-style: normal; font-size: 18px; line-height: 1; }
#sRefresh.spin i { animation: sSpin .6s ease-out; }
@keyframes sSpin { to { transform: rotate(360deg); } }
.sMapC small, .sSt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sPl { display: flex; flex-direction: column; gap: 3px; }
.sPl b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #ecd9ae; }
.dots i.on { background: var(--go); box-shadow: 0 0 0 2px var(--brown); }
.sSt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.st { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.st.wait { background: #d8f5cf; color: #23681f; }
.st.fight { background: #ffe0cf; color: #a83c17; }
.srow button { width: 100%; padding: 7px 0; border-radius: 999px; }
.srow button:disabled { opacity: .4; cursor: default; }
.srow button:disabled:active { transform: none; box-shadow: 0 4px 0 var(--brown), var(--shine); }
.sEmpty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sEmpty img { height: 120px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.sEmpty b { font-size: 20px; }
.sEmpty span { color: var(--muted); }
.sEmpty button { margin-top: 4px; font-size: 17px; padding: 9px 24px; border-radius: 999px; }
button.quiet { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); font-size: 13px; }
button.quiet:hover { background: rgba(90,40,18,.07); }

/* map choice before a game (online room / solo / hotseat) */
#picker { z-index: 32; }
#picker .card { width: min(860px, 100%); gap: 12px; }
#pickMaps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
button.mapb { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 6px 7px; border-radius: 18px; min-width: 0; }
button.mapb img { width: 100%; height: 92px; object-fit: cover; border-radius: 12px; background: #8fc4ef; box-shadow: 0 0 0 2.5px var(--brown); margin-bottom: 4px; }
button.mapb b { font-size: 17px; }
button.mapb small { font-size: 11px; font-weight: 700; }
button.mapb.on { background: var(--orange); }
button.mapb.on b { color: #fff; text-shadow: var(--outline); }
#pickTeamRow { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; }
#pickTeamRow > span { font-size: 16px; font-weight: 800; }
#pickTeams { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
#pickTeams button { padding: 4px 0; width: 38px; border-radius: 10px; }
#pickTeams button.on { background: var(--orange); color: #fff; text-shadow: var(--outline); }
#pickTeams .fixed { font-size: 16px; }
.pickBtns { display: flex; justify-content: flex-end; gap: 10px; }
#pickGo { font-size: 18px; padding: 10px 34px; border-radius: 999px; }
