/* "Pig soldiers on the farm" skin (2026-12-03, Vova picked the barnyard + HQ concepts: generations/ui-concept-*.jpg).
   Loaded AFTER each page's own CSS; changes only the look (backgrounds, frames, colours), never the layout or ids:
   borders keep their widths (border-image is drawn over the same border box), so every size / position stays as in
   style.css / landing.css / cabinet.css. Art: public/img/ui/*.webp (tools/gen-uikit.mjs + tools/cut-uikit.mjs).
   Scopes: body.skin-game (index.html: lobby, servers, picker, HUD, dialogs), body.skin-cab; the landing has its own
   landing.css in the same style (body.skin-landing here only for the language knob).
   Wood = barnyard (lobby, landing, HUD); map table + paper + pins = HQ (servers, map picker); manila folder + dog tags +
   stamps = cabinet. Hover = soft glow only. */
/* v2 (2026-12-03, Vova: "the plaques are there, but what is on them is not integrated"): every label is made OF its
   material — burned / carved into lighter planed wood (*-lt.webp, tools/skin2-light.mjs), ink on paper, embossed on tin;
   timer = painted ring burned into a wooden dial, wind = brass compass, knob icons carved (cv-*.svg), ОГОНЬ in an
   iron-banded ring, weapon icons painted onto the tile (multiply). The old cream-text-with-outline ("sticker") is kept
   only for text that floats over the 3D scene or the dark map table (--sticker). */
:root {
  --burn: #2b1206;                /* burned / carved into wood */
  --burn-muted: #5b3417;
  --wood-ink: var(--burn);        /* text on wood */
  --wood-muted: var(--burn-muted);
  --ink: #33200f;                 /* ink on paper */
  --ink-muted: #6a4a30;
  --glow: drop-shadow(0 0 10px rgba(255, 196, 92, .85));
  --drop: drop-shadow(0 6px 8px rgba(30, 14, 4, .45));
  --carve: 0 1px 0 rgba(255, 236, 205, .6), 0 -1px 0 rgba(40, 16, 4, .3);   /* a cut: dark top edge, lit lower lip */
  --sticker: 0 2px 0 #3a1a08, 1.5px 0 0 #3a1a08, -1.5px 0 0 #3a1a08, 0 -1.5px 0 #3a1a08, 1.5px 1.5px 0 #3a1a08, -1.5px 1.5px 0 #3a1a08;
  --emboss: 0 1px 0 rgba(255, 255, 255, .75), 0 -1px 0 rgba(0, 0, 0, .3);    /* raised letters on tin */
  --tin: linear-gradient(165deg, #f3f5f4 0%, #bcc3c5 42%, #e2e6e6 68%, #9ba3a6 100%);
}

/* ============================== shared pieces (all three pages) ============================== */
/* wood board panel (frame + planks): HUD blocks, header */
.skin-game .plaque, .skin-cab #top, .skin-landing .top {
  background: none; box-shadow: none; border-radius: 8px; border-style: solid;
  border-image: url(/img/ui/board-lt.webp) 64 fill / 16px / 0 stretch; filter: var(--drop); color: var(--wood-ink);
}
.skin-landing .top { border-image-source: url(/img/ui/board.webp); }   /* the landing keeps its own light-on-dark header */
/* paper sheet: menu dialogs, notes (in the fight every panel is a wooden board, see the HUD part) */
.skin-game .card, .skin-cab .card, #hrLocMenu {
  background: none; box-shadow: none; border-radius: 6px; border-style: solid; color: var(--ink);
  border-image: url(/img/ui/note.webp) 44 fill / 16px / 0 stretch; filter: var(--drop);
}
/* buttons = planks with the word burned in; primary = orange-painted plank */
.skin-game button, .skin-cab button {
  background: none; box-shadow: none; border-radius: 6px; border-style: solid; color: var(--wood-ink); text-shadow: var(--carve);
  border-image: url(/img/ui/plank-lt.webp) 0 140 fill / 0 18px / 0 stretch; filter: drop-shadow(0 3px 3px rgba(30, 14, 4, .45));
  transition: filter .15s;
}
.skin-game button:hover, .skin-cab button:hover:not(:disabled) { background: none; box-shadow: none; filter: drop-shadow(0 3px 3px rgba(30, 14, 4, .45)) var(--glow); }
.skin-game button:active, .skin-cab button:active:not(:disabled) { box-shadow: none; }
.skin-game button.primary, .skin-game button.go, .skin-cab button.primary, .skin-cab button.on {
  background: none; color: var(--burn); border-image-source: url(/img/ui/plank-go-lt.webp);
}
.skin-game button.primary:hover, .skin-game button.go:hover, .skin-cab button.primary:hover:not(:disabled), .skin-cab button.on:hover:not(:disabled) { background: none; }
/* round wooden knobs: the sign is carved into the disc (letters: dark cut + lit lip; icons: cv-*.svg groove + lip,
   multiplied into the wood; inline svg icons multiplied too) */
.skin-game .knob, .skin-cab .knob, body .hr-loc.knob-like {
  background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; border-color: transparent; border-image: none; box-shadow: none;
  color: var(--burn); text-shadow: var(--carve); filter: drop-shadow(0 4px 4px rgba(30, 14, 4, .5));
}
.skin-game .knob:hover, .skin-cab .knob:hover:not(:disabled), body .hr-loc.knob-like:hover { background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 4px 4px rgba(30, 14, 4, .5)) var(--glow); }
.skin-game .knob svg, .skin-cab .knob svg { mix-blend-mode: multiply; }
.skin-game .knob svg [fill="#5a2812"] { fill: #2b1206; }
.skin-game .knob svg [stroke="#5a2812"] { stroke: #2b1206; }
.skin-game .knob svg [fill="#fff6dc"] { fill: #fff; }   /* white under multiply = the bare wood shows through the cut */
body .hr-loc.knob-like { color: var(--burn); text-shadow: var(--carve); font-size: 12px; }
/* the language knob: the code burned into a wooden disc (game, cabinet login); the landing keeps the globe */
body.skin-game .hr-loc.knob-like, body.skin-cab .authLoc .hr-loc {
  background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; color: var(--burn); text-shadow: var(--carve); font-size: 13px;
}
body.skin-landing .hr-loc { background: url(/img/ui/ic-globe.webp) center / 100% 100% no-repeat; color: #fff; text-shadow: var(--sticker); font-size: 13px; }
body.skin-game .hr-loc.knob-like:hover, body.skin-cab .authLoc .hr-loc:hover { background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; }
body.skin-landing .hr-loc:hover { background: url(/img/ui/ic-globe.webp) center / 100% 100% no-repeat; }
/* language menu: a paper note */
#hrLocMenu { border-width: 4px; }
#hrLocMenu .h { color: var(--ink); text-shadow: none; }
#hrLocMenu button { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 2px rgba(74, 36, 16, .35); }
#hrLocMenu button:hover { background: #fff; }
#hrLocMenu button.on { background: #c8411c; color: #fff; box-shadow: none; text-shadow: none; }

/* ============================== game page: lobby (barnyard) ============================== */
.skin-game #lobby { background: #6b3d1c url(/img/ui/bg-barn.webp) center 40% / cover no-repeat; }
.skin-game #lobby::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 190, 90, .10), rgba(40, 18, 4, .30) 100%); }
.skin-game #lobby .res { position: relative; }
/* logo on a wooden sign hanging on two ropes from the top of the screen */
.skin-game #logoImg {
  padding: 0 4% 3%; box-sizing: content-box;
  background: url(/img/ui/rope.webp) 22% 0 / 12px 64% repeat-y, url(/img/ui/rope.webp) 78% 0 / 12px 64% repeat-y,
              url(/img/ui/sign-wide.webp) center 92% / 100% 52% no-repeat;
}
.skin-game #tagline { text-shadow: var(--sticker), 0 4px 12px rgba(0, 0, 0, .5); }
/* nickname: a burlap plaque in a wooden frame */
.skin-game #lobby input, .skin-game #servers .card #sNick {
  background: none; border-radius: 6px; border-style: solid; box-shadow: none; color: var(--burn); text-shadow: 0 1px 0 rgba(255, 240, 210, .45);
  border-image: url(/img/ui/burlap-lt.webp) 60 70 fill / 14px 16px / 0 stretch; filter: var(--drop);
}
.skin-game #lobby input::placeholder, .skin-game #sNick::placeholder { color: #6b4a2c; text-shadow: none; opacity: 1; }
/* mode cards: the pig over a wooden plank sign, a pig-snout button under it */
.skin-game button.mode {
  border: 0; border-image: none; box-shadow: none; padding-bottom: 30px; margin-bottom: 18px;
  background: url(/img/ui/sign-wide-lt.webp) center bottom / 100% calc(100% - clamp(40px, 9vh, 70px)) no-repeat;
  filter: drop-shadow(0 10px 12px rgba(30, 14, 4, .5));
}
.skin-game button.mode#createBtn { background-image: url(/img/ui/burlap-lt.webp); }
.skin-game button.mode:hover { background-color: transparent; filter: drop-shadow(0 10px 12px rgba(30, 14, 4, .5)) drop-shadow(0 0 16px rgba(255, 190, 80, .9)); }
.skin-game button.mode#createBtn:hover { background: url(/img/ui/burlap-lt.webp) center bottom / 100% calc(100% - clamp(40px, 9vh, 70px)) no-repeat; }
.skin-game button.mode:not(#createBtn):hover { background: url(/img/ui/sign-wide-lt.webp) center bottom / 100% calc(100% - clamp(40px, 9vh, 70px)) no-repeat; }
.skin-game button.mode:active { transform: translateY(3px); box-shadow: none; }
.skin-game button.mode b { color: var(--burn); text-shadow: var(--carve); }
.skin-game button.mode small { color: var(--burn); text-shadow: var(--carve); }
.skin-game button.mode::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 64px; height: 54px; transform: translateX(-50%);
  background: url(/img/ui/snout.webp) center / contain no-repeat; filter: drop-shadow(0 4px 4px rgba(30, 14, 4, .5)); pointer-events: none; }
.skin-game #createBlock { row-gap: 40px; }
/* cabinet link: a plank with the dog-tags icon */
.skin-game #cabBtn {
  background: none; box-shadow: none; border-radius: 6px; border-style: solid; padding-left: 48px; color: var(--burn); text-shadow: var(--carve);
  border-image: url(/img/ui/plank-lt.webp) 0 140 fill / 0 18px / 0 stretch; filter: var(--drop);
}
.skin-game #cabBtn::before { content: ""; position: absolute; left: -10px; top: 50%; width: 52px; height: 52px; transform: translateY(-50%);
  background: url(/img/ui/ic-tags.webp) center / contain no-repeat; filter: drop-shadow(0 3px 3px rgba(30, 14, 4, .5)); }
.skin-game #cabBtn:hover { background: none; box-shadow: none; filter: var(--drop) var(--glow); }
.skin-game #joinBlock button, .skin-game #againBtn { box-shadow: none; padding-left: 64px; position: relative; }
.skin-game #joinBlock button::before, .skin-game #againBtn::before { content: ""; position: absolute; left: 12px; top: 50%; width: 44px; height: 38px; transform: translateY(-50%);
  background: url(/img/ui/snout.webp) center / contain no-repeat; }
.skin-game .err { color: #ffd9c9; text-shadow: var(--sticker); }

/* ============================== game page: dialogs (paper) ============================== */
.skin-game .overlay { background: rgba(30, 16, 6, .45); }
.skin-game .card h1, .skin-game .card h2 { color: #8a1f12; text-shadow: none; }   /* red ink heading on paper */
.skin-game .card .small, .skin-game #gfxBox .small { color: var(--ink-muted); }
.skin-game .card input { background: rgba(255, 255, 255, .8); border-color: rgba(74, 36, 16, .55); border-radius: 6px; }
.skin-game #help .card, .skin-game #waiting .card { position: relative; }
.skin-game #help .card::before, .skin-game #waiting .card::before { content: ""; position: absolute; top: 4px; left: 50%; width: 28px; height: 42px;   /* inside the note: the card scrolls (overflow: auto) and cut a pin sticking out above it (Vova 2026-12-05) */ transform: translateX(-50%) rotate(8deg);
  background: url(/img/ui/pin-red.webp) center / contain no-repeat; filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, .4)); pointer-events: none; }
.skin-game button.quiet { border-image: none; text-shadow: none; color: var(--ink-muted); filter: none; }
.skin-game button.quiet:hover { background: rgba(74, 36, 16, .08); filter: none; }
/* in the fight every panel is a nailed wooden board with the words burned in: help, coach tip, chat pad, graphics box */
.skin-game #help .card, .skin-game #coach, .skin-game #chatPad {
  background: none; box-shadow: none; border-radius: 8px; border-style: solid; color: var(--burn); text-shadow: var(--carve);
  border-image: url(/img/ui/board-lt.webp) 64 fill / 16px / 0 stretch; filter: var(--drop);
}
/* the help is long: a sanded, lighter board (frame from the art, the inside washed) so the plank seams do not cut the lines */
.skin-game #help .card { border-image: url(/img/ui/board-lt.webp) 64 / 16px / 0 stretch; background: linear-gradient(rgba(238, 204, 152, .66), rgba(238, 204, 152, .66)), url(/img/ui/board-lt.webp) center / 112% 116%; background-clip: padding-box; }
.skin-game #help .card h2 { color: var(--burn); text-shadow: var(--carve); }
.skin-game #help .card .small, .skin-game #gfxBox .small { color: var(--burn-muted); }
.skin-game #help .card td:first-child { color: #5a1a06; }
.skin-game #help .card b { color: #000; }
.skin-game #help .card::before { display: none; }   /* boards hang on nails, no paper pin */
.skin-game #coach { color: var(--burn); }
.skin-game #coach #coachSkip { border-image: none; color: var(--burn-muted); text-shadow: var(--carve); filter: none; }
.skin-game #coachArrow { background: #c99b62; border-color: #6e4320; }
.skin-game #toast, .skin-game #lockHint {
  background: none; box-shadow: none; border-radius: 6px; border-style: solid; color: var(--wood-ink); text-shadow: var(--carve);
  border-image: url(/img/ui/plank-lt.webp) 0 140 fill / 0 18px / 0 stretch; filter: var(--drop);
}

/* ============================== game page: server list + map picker (HQ map table) ============================== */
.skin-game #servers, .skin-game #picker { background: #3a2412 url(/img/ui/bg-hq.webp) center / cover no-repeat; backdrop-filter: none; }
.skin-game #servers .card, .skin-game #picker .card { border-image: none; border-color: transparent; background: none; filter: none; color: var(--ink); }
.skin-game #servers .sHead h2, .skin-game #picker h2 { color: #fff; text-shadow: var(--sticker), 0 4px 10px rgba(0, 0, 0, .5); }
.skin-game .sFilters, .skin-game .sCols { color: var(--ink); }
.skin-game .sFilters { padding: 6px 14px; border-radius: 4px; background: none; border: 4px solid transparent; border-image: url(/img/ui/note.webp) 44 fill / 12px / 0 stretch; filter: drop-shadow(0 4px 6px rgba(40, 20, 6, .35)); }
.skin-game .sCols { color: #fff4dc; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.skin-game #sMap { background: #fffaf0; border-color: rgba(74, 36, 16, .6); box-shadow: none; }
.skin-game #sList { background: none; gap: 12px; padding: 12px 10px; }
/* a room = a paper note pinned to the map */
.skin-game .srow { position: relative; background: none; box-shadow: none; border-radius: 4px; border: 4px solid transparent; color: var(--ink);
  border-image: url(/img/ui/note.webp) 44 fill / 14px / 0 stretch; filter: drop-shadow(0 4px 6px rgba(30, 14, 4, .4)); transition: filter .15s; }
.skin-game .srow:nth-child(odd) { rotate: -.35deg; }
.skin-game .srow:nth-child(even) { rotate: .35deg; }
.skin-game .srow:hover { box-shadow: none; filter: drop-shadow(0 4px 6px rgba(30, 14, 4, .4)) drop-shadow(0 0 10px rgba(255, 220, 140, .9)); }
.skin-game .srow::before { content: ""; position: absolute; top: -6px; left: 14px; width: 18px; height: 28px; background: url(/img/ui/pin-red.webp) center / contain no-repeat; rotate: -12deg; pointer-events: none; }
.skin-game .srow:nth-child(3n+2)::before { background-image: url(/img/ui/pin-blue.webp); }
.skin-game .srow:nth-child(3n)::before { background-image: url(/img/ui/pin-yellow.webp); }
.skin-game .srow.off { opacity: .8; }
.skin-game .sMapC img { border-radius: 2px; box-shadow: 0 0 0 3px #fff, 0 2px 5px 2px rgba(0, 0, 0, .3); }
.skin-game .sMapC small, .skin-game .sSt small { color: var(--ink-muted); }
.skin-game .st.wait { background: none; color: #2c7a22; box-shadow: inset 0 0 0 2.5px #2c7a22; border-radius: 6px; rotate: -3deg; }
.skin-game .st.fight { background: none; color: #b52418; box-shadow: inset 0 0 0 2.5px #b52418; border-radius: 6px; rotate: -3deg; }
.skin-game .sEmpty { padding: 18px 26px; border: 4px solid transparent; border-image: url(/img/ui/note.webp) 44 fill / 14px / 0 stretch; filter: var(--drop); }
.skin-game .sEmpty span { color: var(--ink-muted); }
/* map picker: each map is a photo clipped to the map */
.skin-game #pickMaps { gap: 16px 14px; padding-top: 8px; }
.skin-game button.mapb { position: relative; border: 0; border-image: none; border-radius: 2px; padding: 7px 7px 6px; color: var(--ink); text-shadow: none;
  background: #fbf6ea; box-shadow: none; filter: drop-shadow(0 5px 6px rgba(30, 14, 4, .45)); }
.skin-game button.mapb:nth-child(odd) { rotate: -1.2deg; }
.skin-game button.mapb:nth-child(even) { rotate: 1deg; }
.skin-game button.mapb:hover { background: #fffdf6; filter: drop-shadow(0 5px 6px rgba(30, 14, 4, .45)) drop-shadow(0 0 12px rgba(255, 210, 120, .95)); }
.skin-game button.mapb img { border-radius: 0; box-shadow: none; }
.skin-game button.mapb small { color: var(--ink-muted); }
.skin-game button.mapb::before { content: ""; position: absolute; top: -14px; left: 50%; width: 22px; height: 34px; transform: translateX(-50%); z-index: 1;
  background: url(/img/ui/clip-paper.webp) center / contain no-repeat; pointer-events: none; }
.skin-game button.mapb.on { background: #fffbe8; outline: 4px solid #e8741e; outline-offset: 2px; filter: drop-shadow(0 5px 6px rgba(30, 14, 4, .45)) drop-shadow(0 0 12px rgba(255, 150, 40, 1)); }
.skin-game button.mapb.on b { color: var(--ink); text-shadow: none; }
.skin-game button.mapb.on::after { content: ""; position: absolute; right: 2px; top: 2px; width: 46px; height: 44px; rotate: 10deg;
  background: url(/img/ui/stamp-check.webp) center / contain no-repeat; pointer-events: none; }
.skin-game #pickTeamRow { align-self: center; padding: 6px 16px; border-radius: 4px; background: none; border: 4px solid transparent; border-image: url(/img/ui/note.webp) 44 fill / 12px / 0 stretch; filter: drop-shadow(0 4px 6px rgba(40, 20, 6, .35)); }
.skin-game #pickTeams button { color: var(--wood-ink); }
.skin-game #pickTeams button.on { background: none; color: var(--burn); border-image-source: url(/img/ui/plank-go-lt.webp); font-weight: 900;
  filter: drop-shadow(0 3px 3px rgba(30, 14, 4, .45)) drop-shadow(0 0 8px rgba(255, 150, 40, .95)); }   /* play2: the chosen count = the orange plank */
.skin-game .pickBtns button:not(.primary) { color: var(--wood-ink); }

/* ============================== game page: HUD (made of wood, brass, tin) ============================== */
.skin-game #turnbox { color: var(--burn); }
.skin-game #turnTeam { color: var(--burn); text-shadow: var(--carve); }
.skin-game #turnTeam::before { box-shadow: 0 0 0 2px #2a1206, inset 0 1px 2px rgba(0, 0, 0, .45); }   /* a painted dot sunk in the wood */
.skin-game #turnPig { color: var(--burn-muted); text-shadow: var(--carve); }
.skin-game #teams .t { color: var(--burn); text-shadow: var(--carve); }
.skin-game #teams .pp i { box-shadow: 0 0 0 1.5px #2a1206, inset 0 1px 2px rgba(0, 0, 0, .45); }
/* timer = a wooden dial: the time left is painted into the outer ring (multiply keeps the grain), the time gone is
   burned dark; the number is carved into the inner disc */
.skin-game #timer { box-shadow: none; color: var(--burn); text-shadow: var(--carve); font-size: 22px;
  background: url(/img/ui/btn-round-lt.webp) center / 66% 66% no-repeat,
              conic-gradient(var(--c) calc(var(--p) * 360deg), rgba(66, 30, 8, .8) 0),
              url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat;
  background-blend-mode: normal, multiply, normal; filter: drop-shadow(0 2px 2px rgba(40, 16, 4, .45)); }
.skin-game #timer.low { --c: #e0392b; }
/* wind = a brass compass set into wood: the needle is red enamel, the strength is ink on the compass card */
.skin-game #windbox { border-image: none; border-color: transparent; filter: var(--drop);
  background: url(/img/ui/compass.webp) center / 118% 118% no-repeat; }
/* 2026-12-05 (Vova: "on the board top right you can't make out anything"): the needle has a dark outline, the strength
   sits on a light enamel pill */
.skin-game #windArrow { color: #c8261a; font-size: 26px; text-shadow: none;
  filter: drop-shadow(1px 0 0 #2a1206) drop-shadow(-1px 0 0 #2a1206) drop-shadow(0 1px 0 #2a1206) drop-shadow(0 -1px 0 #2a1206); }
.skin-game #windVal { color: #2a1a0c; font-size: 11px; font-weight: 900; text-shadow: none; margin-top: 0; padding: 0 5px; line-height: 14px; border-radius: 7px;
  background: rgba(255, 250, 236, .92); box-shadow: 0 0 0 1.5px #5a2e12; }
/* weather = a small board with the icons on sky-blue enamel discs (they used to be multiplied into the wood: unreadable;
   blue and not cream, so white snow / grey fog icons read too) */
.skin-game #wxbox { color: var(--burn); text-shadow: var(--carve); border-image: url(/img/ui/plank-lt.webp) 0 140 fill / 0 18px / 0 stretch; border-radius: 6px; }
.skin-game #wxbox .now, .skin-game #wxbox .next { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 23px; line-height: 1;
  background: radial-gradient(circle at 50% 35%, #8fc3ea, #3f7fb3); box-shadow: 0 0 0 2px #3a1c0a, 0 2px 3px rgba(30, 12, 2, .45);
  text-shadow: none; }
.skin-game #wxbox .next { width: 28px; height: 28px; font-size: 18px; }
.skin-game #wxbox.calm .next, .skin-game #wxbox.calm .arr { display: none; }
.skin-game #wxbox .arr { color: #2a1206; opacity: 1; font-size: 17px; font-weight: 900; text-shadow: 0 1px 0 rgba(255, 240, 210, .6); }
/* phones: the brigades on a plank (2026-12-05, Vova "faces of my pigs with their energy" + a CS-like scoreboard): my
   pigs = round portraits on a disc of the brigade colour (dark rim so yellow / white teams read), an HP bar under each
   (green / amber / red), the pig on turn in a gold ring with a warm glow, a dead pig greyed with a dark cross; other
   brigades = a colour disc with the number alive + a total HP line; the brigade on turn glows softly */
.skin-game #teamStrip { padding: 4px 10px; }
.skin-game #teamStrip .tc { background: rgba(255, 250, 236, .93); box-shadow: 0 1px 3px rgba(42, 18, 6, .35); }
.skin-game #teamStrip .tc.act { animation: tcTurn 1.1s ease-in-out infinite; }
@keyframes tcTurn { 50% { background: #fff1b8; } }
.skin-game #teamStrip .tc.foe.out { opacity: .5; filter: grayscale(.7); }
.skin-game #teamStrip .tc.foe b { background: var(--c); color: #fff; font-weight: 900; text-shadow: 0 0 2px #2a1206, 0 1px 1px #2a1206; box-shadow: 0 0 0 2px #2a1206; }
.skin-game #teamStrip .tc.foe em { background: linear-gradient(90deg, #3d9a3a var(--h), rgba(90, 50, 20, .25) var(--h)); box-shadow: 0 0 0 1px #2a1206; }
.skin-game #teamStrip .foes.mini .tc.foe { background: conic-gradient(#3d9a3a var(--h), rgba(90, 50, 20, .3) var(--h)); box-shadow: 0 0 0 1.5px #2a1206; }
.skin-game #teamStrip .foes.mini .tc.foe b { box-shadow: 0 0 0 1.5px #2a1206; }
.skin-game #teamStrip .foes.mini .tc.foe.act { animation: none; box-shadow: 0 0 0 1.5px #2a1206, 0 0 6px 2px rgba(255, 196, 60, .9); }
.skin-game .fc { background: radial-gradient(circle at 50% 38%, #fff8e6 0 28%, var(--c) 72%); box-shadow: 0 0 0 2px #2a1206; }
.skin-game .fc .clsb { box-shadow: 0 0 0 1.5px #2a1206; }
.skin-game #teamStrip .pf.on .fc { box-shadow: 0 0 0 2.5px #f2b51c, 0 0 0 4px #2a1206, 0 0 10px 3px rgba(255, 196, 60, .8); }
.skin-game .pf.x .fc img, .skin-game #teamPanel .pg.x .fc img { filter: grayscale(1) brightness(.85); opacity: .55; }
.skin-game .pf.x .fc, .skin-game #teamPanel .pg.x .fc { background: #b9ab98; }
.skin-game .pf.x .fc::after, .skin-game #teamPanel .pg.x .fc::after { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(45deg, transparent 43%, #6a1d10 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #6a1d10 43% 57%, transparent 57%); }
.skin-game .pf.x .clsb, .skin-game #teamPanel .pg.x .clsb { display: none; }
.skin-game #teamStrip .pf i, .skin-game #teamPanel .pg i { background: linear-gradient(90deg, var(--hc, #3d9a3a) var(--h), rgba(90, 50, 20, .22) var(--h)); box-shadow: 0 0 0 1.2px #2a1206; }
.skin-game #teamStrip .pf i.mid, .skin-game #teamPanel .pg i.mid { --hc: #e0a11c; }
.skin-game #teamStrip .pf i.low, .skin-game #teamPanel .pg i.low { --hc: #d2412a; }
.skin-game #teamPanel { color: var(--burn); }
.skin-game #teamPanel .sbX { border-image: none; border: 0; background: rgba(255, 250, 236, .92); box-shadow: 0 1px 3px rgba(42, 18, 6, .45); color: var(--burn); text-shadow: none; filter: none; }
.skin-game #teamPanel .tp { background: rgba(255, 250, 236, .62); }
.skin-game #teamPanel .tp.me { background: rgba(255, 240, 190, .8); box-shadow: inset 0 0 0 2px #f2b51c; }
.skin-game #teamPanel .tp.out { opacity: .6; }
.skin-game #teamPanel .tph b { color: var(--burn); text-shadow: var(--carve); }
.skin-game #teamPanel .tph i { background: var(--c); box-shadow: 0 0 0 2px #2a1206; }
.skin-game #teamPanel .nk, .skin-game #teamPanel .tph .sum, .skin-game #teamPanel .pg .cl { color: var(--burn-muted); font-weight: 800; }
.skin-game #teamPanel .tph .you, .skin-game #teamPanel .tph .turn { padding: 0 6px; border-radius: 6px; background: #f2b51c; color: #2a1206; font-size: 11px; font-weight: 900; }
.skin-game #teamPanel .tph .turn { background: #e07a1c; color: #fff8ea; }
.skin-game #teamPanel .pg { color: var(--burn); font-weight: 800; }
.skin-game #teamPanel .pg.on { background: rgba(255, 210, 90, .55); }
.skin-game #teamPanel .pg.on .fc { box-shadow: 0 0 0 2px #f2b51c, 0 0 0 3.5px #2a1206; }
.skin-game #teamPanel .pg.x .nm { opacity: .55; text-decoration: line-through; }
.skin-game #teamPanel .pg.x .cl, .skin-game #teamPanel .pg.x b { opacity: .55; }
/* knob icons carved into the disc (tools/skin2-icons.mjs) */
.skin-game #musicBtn, .skin-game #musicBtn:hover { font-size: 0; background: url(/img/ui/cv-music.svg) center / 64% no-repeat, url(/img/ui/cv-music-lip.svg) center / 64% no-repeat, url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; background-blend-mode: multiply, normal, normal; }
.skin-game #musicBtn.off { opacity: 1; background-image: url(/img/ui/cv-music-off.svg), url(/img/ui/cv-music-off-lip.svg), url(/img/ui/btn-round-lt.webp); }   /* off = the note crossed out on the same wood; a grey knob read as dirt (Vova 2026-12-05) */
.skin-game #gfxBtn, .skin-game #gfxBtn:hover { font-size: 0; background: url(/img/ui/cv-gear.svg) center / 64% no-repeat, url(/img/ui/cv-gear-lip.svg) center / 64% no-repeat, url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; background-blend-mode: multiply, normal, normal; }
.skin-game #corner .knob, .skin-game #sClose { font-size: 21px; font-family: Georgia, "Times New Roman", serif; }   /* ? i ✕ cut like letters into the disc */
/* the dock: one wooden board; weapons are small nailed tiles with the picture painted on, the chosen one painted orange */
.skin-game #bottom { border-image-width: 14px; }
.skin-game button.big {
  border-radius: 6px; border-image: url(/img/ui/tile-lt.webp) 34 fill / 10px / 0 stretch; color: var(--burn);
}
.skin-game button.big img { mix-blend-mode: multiply; filter: saturate(.9) contrast(1.08); }
.skin-game #powers .pw svg { mix-blend-mode: multiply; filter: none; }
.skin-game button.big span { text-shadow: var(--carve); }
.skin-game button.big small { color: var(--burn); text-shadow: var(--carve); }
.skin-game .wbtn.on, .skin-game .cb button.held, .skin-game .gfxRow button.on { border-image-source: url(/img/ui/tile-on-lt.webp); background: none; }
.skin-game .wbtn.on small { color: var(--burn); }
.skin-game .gfxRow button.on { border-image-source: url(/img/ui/plank-go-lt.webp); }
/* ammo left = a tin tag nailed to the tile, the number embossed */
.skin-game .wbtn .am { top: 2px; right: 2px; min-width: 20px; height: 17px; padding: 0 8px; border-radius: 2px; rotate: 5deg;
  font-size: 11px; line-height: 17px; color: #2a3034; text-shadow: var(--emboss);
  background: radial-gradient(circle at 2.5px 3px, #6f7577 0 .9px, transparent 1.4px), radial-gradient(circle at calc(100% - 2.5px) calc(100% - 3px), #6f7577 0 .9px, transparent 1.4px), var(--tin);
  box-shadow: 0 1px 2px rgba(30, 14, 4, .5), inset 0 -1px 0 rgba(60, 66, 70, .45); }
.skin-game .wbtn.empty .am { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .4);
  background: radial-gradient(circle at 2.5px 3px, #5a2216 0 .9px, transparent 1.4px), radial-gradient(circle at calc(100% - 2.5px) calc(100% - 3px), #5a2216 0 .9px, transparent 1.4px), linear-gradient(165deg, #c8503c, #8e2a1c 60%, #b2402e); }
/* the aim controls sit in a channel routed into the board */
.skin-game #ctrl { background: rgba(70, 34, 10, .16); border-radius: 6px; box-shadow: inset 0 2px 4px rgba(50, 22, 6, .45), 0 1px 0 rgba(255, 236, 205, .5); }
.skin-game #ctrl label { color: var(--burn); text-shadow: var(--carve); }
.skin-game #ctrl label b { color: var(--burn); text-shadow: var(--carve); }
.skin-game .cb button { border-image: url(/img/ui/tile-lt.webp) 34 fill / 8px / 0 stretch; }
.skin-game .cb button.held { border-image-source: url(/img/ui/tile-on-lt.webp); }
/* ОГОНЬ: the big red button sits in an iron-banded wooden ring */
.skin-game #fireBtn, .skin-game #fireBtn:hover { border-image: none; filter: none; background: url(/img/ui/fire-ring.webp) center / 100% 100% no-repeat; }
.skin-game #fireBtn:hover { filter: brightness(1.08); }
.skin-game #fireBtn img.fimg { inset: 13%; width: 74%; height: 74%; }
.skin-game #fireBtn .fb { font-size: 15px; color: #fff6e6; text-shadow: 0 1px 0 rgba(90, 10, 0, .7), 0 0 5px rgba(110, 16, 0, .75); }
.skin-game #skipBtn { border-image-width: 0 12px; }
/* class powers in the dock (classes.css) */
.skin-game #rageBtn { background-image: linear-gradient(0deg, rgba(255, 120, 30, .6) calc(var(--p) * 100%), transparent calc(var(--p) * 100%)); background-origin: border-box; }
.skin-game #rageBtn span, .skin-game #rageBtn small { color: var(--burn); }
/* aim power bar: a slot routed into a plank */
.skin-game #aimHud .pbar { background: #3a1c0a; border-color: #2a1206; box-shadow: 0 3px 0 #2a1206; }
/* keys line (over the scene): a tight dark edge; the keys are little wooden tiles with the letter burned in */
.skin-game #keys { text-shadow: 0 1px 0 #2a1206, 1px 0 0 #2a1206, -1px 0 0 #2a1206, 0 -1px 0 #2a1206, 0 2px 4px rgba(0, 0, 0, .6); }
.skin-game #keys kbd { background: linear-gradient(180deg, #e2b77c, #c48f55); color: var(--burn); box-shadow: 0 2px 0 #4a2410, inset 0 1px 0 rgba(255, 240, 215, .6); }
/* names + HP over the pigs: the HP is a small plank, the health painted onto it in the brigade colour */
.skin-game .lbl .hp { height: 9px; border-radius: 2px; isolation: isolate; background: url(/img/ui/plank-lt.webp) center / 140% 300% no-repeat;
  box-shadow: 0 0 0 2px #3a1a08, 0 2px 3px rgba(20, 8, 2, .45); }
.skin-game .lbl .hp i { mix-blend-mode: multiply; filter: saturate(1.25); }
.skin-game .lbl .bf span { color: #2a3034; text-shadow: var(--emboss); background: var(--tin); border-radius: 3px; box-shadow: 0 1px 2px rgba(30, 14, 4, .5); }
/* chat: the quick-phrase pad is a board (see the panels above), the input a plank */
.skin-game #chatIn { background: none; border: 3px solid transparent; border-radius: 6px; color: var(--burn); text-shadow: var(--carve);
  border-image: url(/img/ui/plank-lt.webp) 0 140 fill / 0 18px / 0 stretch; filter: drop-shadow(0 3px 3px rgba(30, 14, 4, .45)); }
.skin-game #chatIn::placeholder { color: var(--burn-muted); }
.skin-game #chat .cm { background: rgba(43, 18, 6, .72); }
/* phones (mobile.css): the weapons strip is a board, the look / zoom buttons and the joystick knob are wooden discs */
.skin-game.touch #weapons { background: none; box-shadow: none; border: 4px solid transparent; border-radius: 8px; border-image: url(/img/ui/board-lt.webp) 64 fill / 12px / 0 stretch; filter: var(--drop); }
.skin-game .tbtn, .skin-game #tJoy i { border-image: none; border-color: transparent; box-shadow: none; background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 3px rgba(30, 14, 4, .5)); }
.skin-game .tbtn svg { mix-blend-mode: multiply; }
.skin-game .tbtn svg [fill="#5a2812"] { fill: #2b1206; }
.skin-game .tbtn svg [fill="#fff6dc"] { fill: #fff; }
.skin-game .tbtn.on { background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 0 8px rgba(255, 150, 40, 1)); }
/* end of the match: the score on small wooden tiles */
.skin-game #resStats .st { background: none; box-shadow: none; border-radius: 6px; color: var(--burn); text-shadow: var(--carve);
  border-image: url(/img/ui/tile-lt.webp) 34 fill / 12px / 0 stretch; filter: var(--drop); }
.skin-game #resText { text-shadow: var(--sticker), 0 3px 10px rgba(0, 0, 0, .5); }
.skin-game #gfxBox .ctitle { color: var(--burn); text-shadow: var(--carve); }
.skin-game #gfxBox { border-image-outset: 7px; }   /* the frame sits outside the text, as on the other boards */

/* ============================== cabinet (manila folder + dog tags + stamps on the HQ table) ============================== */
.skin-cab { background: #3a2412 url(/img/ui/bg-hq.webp) center / cover no-repeat; }
.skin-cab::before { background: radial-gradient(ellipse at 50% 50%, rgba(40, 20, 6, 0), rgba(40, 20, 6, .35)); }
.skin-cab #top { border-radius: 8px; color: var(--wood-ink); }
.skin-cab .who .nick { color: var(--burn); text-shadow: var(--carve); }
.skin-cab .who .lvl, .skin-cab #top small { color: var(--wood-muted); }
.skin-cab .stat { background: rgba(70, 34, 10, .14); box-shadow: inset 0 2px 3px rgba(50, 22, 6, .35), 0 1px 0 rgba(255, 236, 205, .5); color: var(--burn); text-shadow: var(--carve); }   /* a routed groove in the board */
.skin-cab .stat .plus { border-image-width: 0; background: url(/img/ui/btn-round-lt.webp) center / 100% 100% no-repeat; }
/* the brigade = a big manila folder */
.skin-cab #left { background: none; box-shadow: none; border-radius: 4px; border-style: solid; color: var(--ink);
  border-image: url(/img/ui/folder.webp) 120 70 60 380 fill / 34px 20px 18px 108px / 0 stretch; filter: var(--drop); }
.skin-cab #tabs { padding-left: 112px; }
.skin-cab #tabs button { color: var(--wood-ink); }
.skin-cab .foot .hint, .skin-cab .tile .sub, .skin-cab small { color: var(--ink-muted); }
/* a pig = a dog tag; the chosen pig = gold, locked slots = dull bronze */
.skin-cab .tile { background: none; border-radius: 10px; border: 4px solid transparent; box-shadow: none; padding: 8px 8px 12px;
  border-image: url(/img/ui/tag-silver.webp) 80 fill / 22px / 0 stretch; filter: drop-shadow(0 4px 4px rgba(30, 14, 4, .4)); transition: filter .15s; }
.skin-cab .tile:hover { box-shadow: none; filter: drop-shadow(0 4px 4px rgba(30, 14, 4, .4)) drop-shadow(0 0 10px rgba(255, 210, 120, .9)); }
.skin-cab .tile.sel { background: none; box-shadow: none; border-color: transparent; border-image-source: url(/img/ui/tag-gold.webp); }
.skin-cab .tile.locked { background: none; border-image-source: url(/img/ui/tag-bronze.webp); opacity: .8; }
.skin-cab .tile .nm { color: #2a1a10; }
.skin-cab .tile.locked .nm { color: #4a2a18; }
/* "В бою" = a red ink stamp */
.skin-cab .tile .flag { background: rgba(255, 255, 255, .25); color: #c41c28; text-shadow: none; box-shadow: inset 0 0 0 2.5px #c41c28; border-radius: 5px; rotate: -10deg; top: 10px; left: 8px; }
.skin-cab .box { background: rgba(255, 252, 240, .55); border-radius: 4px; }
/* the pig card = a clipboard, the stats = a paper note */
.skin-cab #pigCard { background: url(/img/ui/clipboard.webp) center / 100% 100% no-repeat; border-color: transparent; box-shadow: none; border-radius: 0; padding-top: 30px; filter: var(--drop); color: var(--ink); }
.skin-cab #stats { background: none; box-shadow: none; border-radius: 4px; border-style: solid; color: var(--ink);
  border-image: url(/img/ui/note.webp) 44 fill / 14px / 0 stretch; filter: var(--drop); }
/* В бой! = a big orange plank with the snout */
.skin-cab #goBtn { background: none; box-shadow: none; border-radius: 6px; border-style: solid; position: relative;
  border-image: url(/img/ui/plank-go-lt.webp) 0 140 fill / 0 26px / 0 stretch; filter: var(--drop); color: var(--burn); text-shadow: var(--carve); -webkit-text-stroke: 0; }
.skin-cab #goBtn:hover { background: none; box-shadow: none; filter: var(--drop) var(--glow); }
.skin-cab #goBtn { grid-auto-flow: column; gap: .3em; justify-content: center; }
.skin-cab #goBtn.off { filter: grayscale(.6) var(--drop); }
.skin-cab #goBtn::before { content: ""; width: 1.3em; height: 1.1em; background: url(/img/ui/snout.webp) center / contain no-repeat; }
/* login */
.skin-cab #authForm { background: none; box-shadow: none; border-radius: 4px; border-style: solid; border-image: url(/img/ui/clipboard.webp) 110 40 40 fill / 34px 14px 14px / 0 stretch; padding-top: 40px; filter: var(--drop); }
.skin-cab #authForm input { border-radius: 6px; border-color: rgba(74, 36, 16, .5); }
.skin-cab .authCard h1, .skin-cab .back { text-shadow: var(--sticker), 0 3px 10px rgba(0, 0, 0, .5); }
.skin-cab #rateTbl tr.me td { background: rgba(200, 65, 28, .15); }

/* compact menus (mobile.css: picture left, words right): the sign / burlap fills the whole card, so the burned words stay on wood */
@media (max-width: 700px), (max-height: 500px) {
  .skin-game button.mode, .skin-game button.mode:hover, .skin-game button.mode:not(#createBtn):hover, .skin-game button.mode#createBtn:hover { background-size: 100% 100%; background-position: center; }
}
/* ============================== portrait screens (phones): the 9:16 backgrounds ============================== */
@media (max-aspect-ratio: 4/5) {
  .skin-game #lobby { background-image: url(/img/ui/bg-barn-p.webp); }
  .skin-game #lobby { background-position: center bottom; }
  .skin-game #servers, .skin-game #picker, .skin-cab { background-image: url(/img/ui/bg-hq-p.webp); }
}
