/* The cameos' marks (src/ui/cameo_marks.js - the user, 2026-11-10): what a def is or does, whatever the faction.
   Bottom right (.mk-fn): a structure's function or a unit's kind, on a dark plate in the function's colour - power a yellow
   bolt, ore a green cart of yellow ore (the refinery and every gatherer), a silo a brown crate, infantry a purple figure,
   vehicles a red tank, aircraft a white plane, a ship / a shipyard the sea-blue anchor (step 30), tech a purple vial,
   the construction yard a sand-coloured crane, radar a cyan dish, repair a silver wrench, a support power of its own a
   red star. Top left (.mk-tg): orange - what its weapons are good against (infantry, vehicles, aircraft, structures),
   and a transport's seats. The build grid's key badge sits in the bottom row, right of the marks (ui/cmdgrid.js). */
.cameo .mk-fn, .cameo .mk-tg { position: absolute; z-index: 2; display: flex; gap: 2px; pointer-events: none; }
.cameo .mk-fn { right: 2px; bottom: 2px; flex-direction: row-reverse; align-items: flex-end; }
.cameo .mk-tg { left: 2px; top: 2px; gap: 1px; }
.cameo.rep .mk-tg { left: calc(15px * var(--hud)); }  /* (the repeat's ∞ keeps its corner) */
.cameo .mk { display: block; width: calc(14px * var(--hud)); height: calc(14px * var(--hud)); border-radius: 3px;
  background: rgba(0, 0, 0, .66) no-repeat center / 80%; box-shadow: 0 0 0 1px rgba(var(--c, 255, 255, 255), .4); }
.cameo .mk-tg .mk { width: calc(12px * var(--hud)); height: calc(12px * var(--hud)); --c: 255, 154, 60; }
.cameo .mk-tg .t-trn { margin-left: 2px; }
#cmd-grid .cameo .mk-fn kbd { position: static; }  /* (the build grid's key: in the row, at its right end) */

.mk.f-power { --c: 255, 216, 74; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7.4.6 2.2 6.9h3.3l-1 4.5 5.3-6.6H6.4z' fill='%23ffd84a' stroke='%23704d00' stroke-width='.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mk.f-ore { --c: 95, 211, 90; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='4.3' cy='4.6' r='1.5' fill='%23ffd84a'/%3E%3Ccircle cx='6.4' cy='3.8' r='1.6' fill='%23ffe27a'/%3E%3Ccircle cx='8.2' cy='4.8' r='1.3' fill='%23f0c23a'/%3E%3Cpath d='M1 5.6h10L9.6 8.8H2.4z' fill='%235fd35a'/%3E%3Ccircle cx='3.7' cy='10' r='1.2' fill='%235fd35a'/%3E%3Ccircle cx='8.3' cy='10' r='1.2' fill='%235fd35a'/%3E%3C/svg%3E"); }
.mk.f-silo { --c: 196, 132, 70; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.4 2.2h9.2v8.6H1.4z' fill='%23a8692f' stroke='%23e3b27a' stroke-width='.8'/%3E%3Cpath d='M1.8 2.6l8.4 7.8M1.4 6.5h9.2' stroke='%23e3b27a' stroke-width='.8'/%3E%3C/svg%3E"); }
.mk.f-inf { --c: 192, 124, 255; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23c07cff'%3E%3Ccircle cx='6' cy='2.3' r='1.7'/%3E%3Cpath d='M3 11.4V7.3C3 5.4 4.2 4.5 6 4.5s3 .9 3 2.8v4.1H7.4V8.6H4.6v2.8z'/%3E%3C/svg%3E"); }
.mk.f-veh { --c: 255, 84, 66; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff5442'%3E%3Cpath d='M3.2 3.8h4.4v3H3.2z'/%3E%3Cpath d='M7.4 4.7h4.2v1.2H7.4z'/%3E%3Cpath d='M.6 7.2h10.8l-1.3 3.3H1.9z'/%3E%3C/svg%3E"); }
.mk.f-air { --c: 244, 246, 248; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .5c.6 0 .9.8.9 1.8v2.6l4.6 2.5v1.3L6.9 7.3v2.2l1.7 1.1v.9L6 10.9l-2.6.6v-.9l1.7-1.1V7.3L.5 8.7V7.4l4.6-2.5V2.3C5.1 1.3 5.4.5 6 .5z' fill='%23f4f6f8'/%3E%3C/svg%3E"); }
.mk.f-naval { --c: 120, 190, 255; background-color: rgba(4, 18, 30, .78); background-size: 78%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23bfe6ff'%3E%3Ccircle cx='6' cy='2.1' r='1.2' stroke-width='1.1'/%3E%3Cpath d='M6 3.4v7.2M3.6 4.9h4.8' stroke-width='1.2'/%3E%3Cpath d='M1.8 7.3Q2.5 10.6 6 10.6T10.2 7.3' stroke-width='1.2'/%3E%3Cpath d='M1.1 8l.6-1.7 1.2 1.2zM10.9 8l-.6-1.7-1.2 1.2z' fill='%23bfe6ff' stroke='none'/%3E%3C/svg%3E"); }
.mk.f-tech { --c: 192, 124, 255; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.2 .9h3.6M5 1v3.7L2 9.9c-.4.8.1 1.5.9 1.5h6.2c.8 0 1.3-.7.9-1.5L7 4.7V1' fill='none' stroke='%23c07cff' stroke-width='1'/%3E%3Cpath d='M3.6 7.3h4.8l1.3 2.5c.2.4 0 .8-.5.8H2.8c-.5 0-.7-.4-.5-.8z' fill='%23c07cff'/%3E%3Ccircle cx='5.4' cy='9' r='.6' fill='%23ecd6ff'/%3E%3C/svg%3E"); }
.mk.f-fact { --c: 233, 214, 168; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23e9d6a8'%3E%3Cpath d='M3 2.6h2v8H3z'/%3E%3Cpath d='M.6 2.2h10.8v1.6H.6z'/%3E%3Cpath d='M4 .4 6.6 2.4H1.4z'/%3E%3Cpath d='M.6 3.6h2v1.6h-2z'/%3E%3Cpath d='M1.4 10.2h5.2v1.4H1.4z'/%3E%3Cpath d='M9.4 3.6v3' stroke='%23e9d6a8' stroke-width='.8'/%3E%3Cpath d='M8.4 6.4h2v1.8h-2z'/%3E%3C/svg%3E"); }
.mk.f-radar { --c: 111, 230, 240; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.6 3.6a5 5 0 0 0 6.8 6.8z' fill='%236fe6f0'/%3E%3Cpath d='M4.6 7.4 8 4' stroke='%236fe6f0' stroke-width='.9'/%3E%3Cpath d='M8.6 1.2a2.6 2.6 0 0 1 2.2 2.2M8.2 2.6a1.2 1.2 0 0 1 1.2 1.2' fill='none' stroke='%236fe6f0' stroke-width='.8'/%3E%3Cpath d='M3.6 9.4 2.8 11.4h3.4l-.6-1.4' fill='%236fe6f0'/%3E%3C/svg%3E"); }
.mk.f-repair { --c: 214, 221, 227; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M8.4.7a3 3 0 0 0-2.7 4L1.1 9.3a1.1 1.1 0 0 0 1.6 1.6l4.6-4.6a3 3 0 0 0 4-2.7L9.5 5.4 7.9 4.1 6.6 2.5 8.4.7z' fill='%23d6dde3'/%3E%3C/svg%3E"); }
.mk.f-power_sup { --c: 255, 90, 100; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .7l1.6 3.4 3.7.4-2.8 2.5.8 3.7L6 8.8l-3.3 1.9.8-3.7L.7 4.5l3.7-.4z' fill='%23ff5a64'/%3E%3C/svg%3E"); }

.mk.t-inf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff9a3c'%3E%3Ccircle cx='6' cy='2.3' r='1.7'/%3E%3Cpath d='M3 11.4V7.3C3 5.4 4.2 4.5 6 4.5s3 .9 3 2.8v4.1H7.4V8.6H4.6v2.8z'/%3E%3C/svg%3E"); }
.mk.t-veh { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff9a3c'%3E%3Cpath d='M3.2 3.8h4.4v3H3.2z'/%3E%3Cpath d='M7.4 4.7h4.2v1.2H7.4z'/%3E%3Cpath d='M.6 7.2h10.8l-1.3 3.3H1.9z'/%3E%3C/svg%3E"); }
.mk.t-air { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .5c.6 0 .9.8.9 1.8v2.6l4.6 2.5v1.3L6.9 7.3v2.2l1.7 1.1v.9L6 10.9l-2.6.6v-.9l1.7-1.1V7.3L.5 8.7V7.4l4.6-2.5V2.3C5.1 1.3 5.4.5 6 .5z' fill='%23ff9a3c'/%3E%3C/svg%3E"); }
.mk.t-bld { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff9a3c'%3E%3Cpath d='M.8 11.2V5.6l3.2-2.2v2.2l3.2-2.2v2.2l3.2-2.2v7.8z'/%3E%3Cpath d='M8.6 1h1.6v3H8.6z'/%3E%3C/svg%3E"); }
.mk.t-trn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff9a3c'%3E%3Ccircle cx='3' cy='2.4' r='1.3'/%3E%3Ccircle cx='6' cy='2.4' r='1.3'/%3E%3Ccircle cx='9' cy='2.4' r='1.3'/%3E%3Cpath d='M.6 5h10.8v4.2H.6z'/%3E%3Ccircle cx='3' cy='10.2' r='1.2'/%3E%3Ccircle cx='9' cy='10.2' r='1.2'/%3E%3C/svg%3E"); }
