/* ===== the command room's fan-shaped brass console (geometry in src/fan.js) =====
   mode select, story nations, story missions, skirmish deployment, tutorial */
#menu-body.cr.fanned { --crt-h: 57%; }
#menu-body.cr.fanned.m-deploy { --crt-h: 63%; } /* deploy: a little taller so 8 rows of 44 px+ buttons fit inside their row frames */
#menu-body.cr.fanned.two { --crt-h: 55%; }
.cr .fan { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(96%, 1200px); height: 36%; z-index: 4; }
.cr .fan.two { height: 39%; }
.cr .fan .fanart { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; filter: drop-shadow(0 -6px 14px rgba(0,0,0,0.6)); }
.cr .fan .bar .socket { stroke: #0b0904; }
.cr .fan .bar .glow { stroke: rgba(255, 190, 70, 0); transition: stroke 0.18s; }
.cr .fan .bar .core { stroke: #3a2f17; transition: stroke 0.18s; }
.cr .fan .bar.on .glow { stroke: rgba(255, 196, 80, 0.42); }
.cr .fan .bar.on .core { stroke: #ffd877; }

/* ----- instruments in the wings ----- */
.cr .fandeco { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cr .fandeco > * { position: absolute; box-sizing: border-box; }
/* lamp strip: red / green / amber blinking out of step */
.cr .fandeco .lamps { display: flex; align-items: center; justify-content: space-evenly; padding: 0 2px; background: #0c0e08; border: 1.5px solid #6d5729; border-radius: 999px; box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255,240,190,0.12); }
.cr .fandeco .lamp { position: relative; height: 72%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #a88a45; box-sizing: border-box; animation: lampBlink 1.6s ease-in-out infinite; }
.cr .fandeco .lamp.r { background: radial-gradient(circle at 35% 30%, #ffd8cc 0 14%, #ff5a3c 42%, #8a1a0c); box-shadow: 0 0 7px #ff5a3c; }
.cr .fandeco .lamp.g { background: radial-gradient(circle at 35% 30%, #e0ffe8 0 14%, #4fef8a 42%, #0d6a30); box-shadow: 0 0 7px #5dff9a; }
.cr .fandeco .lamp.a { background: radial-gradient(circle at 35% 30%, #fff0c8 0 14%, #ffbf3c 42%, #8a5a0c); box-shadow: 0 0 7px #ffbf3c; }
/* radar scope: rings, cross hairs, a rotating sweep and a blip */
.cr .fandeco .scope { border-radius: 50%; overflow: hidden; border: 3px solid #b8954a; box-shadow: 0 0 0 1.5px #3d2f12, 0 3px 6px rgba(0,0,0,0.7), inset 0 0 10px #000;
  background: radial-gradient(circle, transparent 0 31%, rgba(93,255,154,0.3) 32% 33.5%, transparent 34.5% 63%, rgba(93,255,154,0.3) 64% 65.5%, transparent 66.5%),
    linear-gradient(90deg, transparent 49.2%, rgba(93,255,154,0.28) 49.2% 50.8%, transparent 50.8%),
    linear-gradient(0deg, transparent 49.2%, rgba(93,255,154,0.28) 49.2% 50.8%, transparent 50.8%),
    radial-gradient(circle, #10301b, #061008 75%); }
.cr .fandeco .scope i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 280deg, rgba(93,255,154,0.05) 280deg, rgba(93,255,154,0.62) 360deg); animation: sweep 3.2s linear infinite; }
.cr .fandeco .scope b { position: absolute; left: 62%; top: 28%; width: 10%; height: 10%; border-radius: 50%; background: #c8ffda; box-shadow: 0 0 5px #5dff9a; animation: blip 3.2s linear infinite; }
/* round gauges: brass bezel, major + minor ticks over a 240° scale, red zone, swinging needle, glass glare */
.cr .fandeco .gauge { border-radius: 50%; border: 3px solid #cfae5f; box-shadow: 0 0 0 1.5px #4d3c1a, 0 3px 6px rgba(0,0,0,0.7), inset 0 0 6px rgba(0,0,0,0.55);
  background:
    radial-gradient(circle, #1d1a10 0 8%, #8a6d33 8.5% 11%, transparent 12%),
    radial-gradient(circle, #efe3bd 0 52%, transparent 53%),
    conic-gradient(from 120deg, #efe3bd 0 120deg, transparent 120deg),
    conic-gradient(from 75deg, rgba(200, 40, 30, 0.85) 0 45deg, transparent 45deg),
    repeating-conic-gradient(from -120.7deg, #2b2414 0 1.4deg, transparent 1.4deg 15deg),
    repeating-conic-gradient(from -121.2deg, #2b2414 0 2.6deg, transparent 2.6deg 60deg),
    radial-gradient(circle, #f2e6c2 0 60%, #d8c995 75%, #a8955a); }
.cr .fandeco .gauge.sm { border-width: 2px; }
.cr .fandeco .gauge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 2; background: radial-gradient(ellipse 60% 42% at 34% 26%, rgba(255,255,255,0.42), transparent 70%); }
.cr .fandeco .gauge i { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 42%; margin-left: -1px; background: linear-gradient(0deg, #3a0e0a, #c0261c 30%); transform-origin: 50% 100%; animation: needle 3.1s ease-in-out infinite alternate; z-index: 1; border-radius: 1px; }
/* ridged knob with a pointer */
.cr .fandeco .knob { border-radius: 50%; background: repeating-conic-gradient(#3a321e 0 7deg, #776437 7deg 14deg); box-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 0 2px #241c0c; }
.cr .fandeco .knob::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efdca2, #9b7f3e 55%, #4a3a18); box-shadow: inset 0 -2px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.6); }
.cr .fandeco .knob i { position: absolute; left: 50%; top: 20%; width: 9%; height: 30%; margin-left: -4.5%; background: #1a1408; border-radius: 2px; transform-origin: 50% 100%; transform: rotate(var(--r)); }
/* toggle switches on brass plates: one up, one down */
.cr .fandeco .tog { display: flex; justify-content: space-between; gap: 10%; }
.cr .fandeco .tog span { position: relative; flex: 1; border-radius: 4px; background: linear-gradient(180deg, #7a6634, #3e3218); border: 1px solid #c9a75a; box-shadow: 0 2px 3px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,240,190,0.3); }
.cr .fandeco .tog span::before { content: ""; position: absolute; left: 50%; top: 50%; width: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0e0a8, #8d7339 60%, #3b2e12); }
.cr .fandeco .tog span i { position: absolute; left: 50%; width: 18%; height: 42%; margin-left: -9%; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #7d7f76, #f2f2ea 45%, #5b5d54); box-shadow: 0 1px 2px rgba(0,0,0,0.7); }
.cr .fandeco .tog span.up i { top: 8%; transform-origin: 50% 100%; transform: rotate(-14deg); }
.cr .fandeco .tog span.dn i { top: 50%; transform-origin: 50% 0; transform: rotate(14deg); }
/* segmented bar readout */
.cr .fandeco .bars { display: flex; gap: 2px; align-items: flex-end; padding: 3px; background: #0b100b; border: 1.5px solid #8a6d33; border-radius: 3px; box-shadow: inset 0 0 6px #000; }
.cr .fandeco .bars b { flex: 1; height: 100%; background: linear-gradient(0deg, #5dff9a, #c8ff6a 62%, #ffbf3c 82%, #ff5a3c); transform-origin: 50% 100%; animation: readout 2.2s ease-in-out infinite alternate; opacity: 0.9;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px); mask: repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px); }
/* oscilloscope: a green trace sliding across a gridded screen */
.cr .fandeco .osc { overflow: hidden; border-radius: 5px; border: 3px solid #b8954a; box-shadow: 0 0 0 1.5px #3d2f12, 0 3px 6px rgba(0,0,0,0.7), inset 0 0 8px #000;
  background: linear-gradient(rgba(93,255,154,0.15) 1px, transparent 1px) 0 0 / 100% 25%, linear-gradient(90deg, rgba(93,255,154,0.15) 1px, transparent 1px) 0 0 / 16.66% 100%, radial-gradient(ellipse, #10301b, #061008 80%); }
.cr .fandeco .osc .wv { position: absolute; left: 0; top: 0; width: 200%; height: 100%; animation: oscRun 1.8s linear infinite; }
.cr .fandeco .osc svg { width: 100%; height: 100%; display: block; }
.cr .fandeco .osc path { fill: none; stroke: #8dffbb; stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ----- the panels: military plates (brass frame, dark groove, raised olive face, screws, stencil tag) ----- */
.cr .fanslot { position: absolute; z-index: 2; transition: transform 0.14s cubic-bezier(.3,1.6,.5,1), filter 0.14s; }
.cr .fanslot:has(.fanbtn:hover), .cr .fanslot:has(.fanbtn.focus) { transform: translateY(-2px); filter: brightness(1.1) drop-shadow(0 0 6px rgba(226, 200, 120, 0.7)); }
.cr .fanslot:has(.fanbtn.sel) { filter: brightness(1.12) drop-shadow(0 0 9px rgba(255, 214, 120, 0.85)); }
.cr .fanslot:has(.fanbtn:active) { transform: translateY(3px); filter: brightness(0.82); transition-duration: 0.05s; }
.cr .fanslot.press { animation: fanPress 0.28s ease-out; }
.cr .fanbtn { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 44px; padding: 0; border: none; border-image: none; clip-path: var(--shape); isolation: isolate;
  background: linear-gradient(180deg, #f6e1a0, #c9a456 22%, #8a6d33 62%, #4d3c1a);
  white-space: normal; line-height: 1.08; letter-spacing: 0.06em; font-size: max(16px, calc(26px * var(--s))); color: #f1e2b2; }
.cr .fanbtn:hover, .cr .fanbtn.focus, .cr .fanbtn:active, .cr .fanbtn.pressed, .cr .fanbtn.sel { transform: none; filter: none; }
/* the groove around the face: shadowed at the top, lit at the bottom edge */
.cr .fanbtn::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--inner); pointer-events: none; background: linear-gradient(180deg, #070704, #2a2412 55%, #7a6430); }
/* the raised face: a top highlight, a bottom shade, brushed lines, a worn patch */
.cr .fanbtn::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--face); pointer-events: none;
  --face-c: radial-gradient(ellipse 80% 60% at 50% 18%, #8d9a55, #59642f 55%, #333b1b);
  background: linear-gradient(180deg, rgba(255,250,220,0.3), rgba(255,250,220,0) 8%, rgba(0,0,0,0) 78%, rgba(0,0,0,0.38)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 30% 22% at 78% 72%, rgba(190,170,120,0.16), transparent 70%),
    var(--face-c); }
.cr .fanbtn.sel::after { --face-c: radial-gradient(ellipse 80% 60% at 50% 18%, #adbd6a, #6c7a40 55%, #3b4520); }
.cr .fanslot.press .fanbtn::after { filter: brightness(0.75); }
.cr .fanbtn .fl { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.12em; text-align: center; overflow: hidden; text-shadow: var(--ol); }
.cr .fanbtn .fl b { color: #f3e4b4; text-shadow: 0 -1px 0 rgba(0,0,0,0.7), var(--ol); }
.cr .fanbtn .fl small { font-size: 0.56em; letter-spacing: 0.1em; color: #d9e8b0; font-weight: 900; line-height: 1.1; }
.cr .fanbtn.sel .fl b { color: #fff3c8; }
/* stencil tag (A-01…) with a status lamp that lights on the selected panel */
.cr .fanslot .fno { position: absolute; z-index: 3; pointer-events: none; display: inline-flex; align-items: center; gap: 0.35em; padding: 0.05em 0.45em; border-radius: 2px; white-space: nowrap;
  font-family: "Courier New", Consolas, monospace; font-weight: 900; letter-spacing: 0.14em; line-height: 1.15; color: #1f1a0c;
  background: linear-gradient(180deg, #d9c07a, #a8894a); box-shadow: inset 0 1px 0 rgba(255,240,190,0.4), 0 1px 2px rgba(0,0,0,0.7); }
.cr .fanslot .fno i { width: 0.62em; height: 0.62em; border-radius: 50%; background: #3a2a10; box-shadow: inset 0 1px 1px rgba(0,0,0,0.8); flex: none; }
.cr .fanslot:has(.fanbtn.sel) .fno i { background: #7dff9e; box-shadow: 0 0 5px #5dff9a; }
.cr .fanslot:has(.fanbtn.key) .fno { background: linear-gradient(180deg, #e8b83c, #a8761c); }
/* slot-head screws in the face's corners */
.cr .fanslot .sc { position: absolute; z-index: 3; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0c0 0 12%, #c9a85c 36%, #5e4a20 100%); box-shadow: 0 1px 1px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.35); }
.cr .fanslot .sc::after { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 1.5px; margin-top: -0.75px; background: #3a2c10; transform: rotate(var(--r)); }
/* hazard tape along the bottom of the big keys */
.cr .fanslot .hz { position: absolute; inset: 0; z-index: 1; pointer-events: none; clip-path: var(--hz); background: repeating-linear-gradient(-45deg, #e0b02a 0 6px, #16130a 6px 12px); opacity: 0.92; }
/* kinds of panels */
.cr .fanbtn.nat { font-size: max(14px, calc(21px * var(--s))); }
.cr .fanbtn.nat .fl { flex-direction: row; gap: 0.4em; }
.cr .fanbtn.nat .fp { height: 2.3em; width: 2.3em; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 2px solid var(--nc); background: #10140c; flex: none; box-shadow: 0 0 6px color-mix(in srgb, var(--nc) 60%, transparent), inset 0 0 0 2px #1a1408; }
.cr .fanbtn.nat::after { --face-c: radial-gradient(ellipse 90% 60% at 50% 110%, color-mix(in srgb, var(--nc) 26%, transparent), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 18%, #8d9a55, #59642f 55%, #333b1b); }
.cr .fanbtn.nat.sel::after { --face-c: radial-gradient(ellipse 90% 60% at 50% 110%, color-mix(in srgb, var(--nc) 34%, transparent), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 18%, #adbd6a, #6c7a40 55%, #3b4520); }
.cr .fanbtn.nat .fl b { color: var(--nc); filter: brightness(1.35); }
.cr .fanbtn.nat.sel .fl b { color: #fff3c8; }
.cr .fanbtn.key { font-size: max(15px, calc(23px * var(--s))); }
.cr .fanbtn.key::after { --face-c: radial-gradient(ellipse 80% 70% at 50% 20%, #b84c31, #7a2a1a 60%, #4a170e); }
/* request 72: the picked story difficulty (easy / standard) lights olive with a cream label and a check */
.cr .fanbtn.dbtn.dpick::after { --face-c: radial-gradient(ellipse 80% 70% at 50% 20%, #c6d47a, #7d8c3e 58%, #3f4a1c); }
.cr .fanbtn.dbtn.dpick .fl b { color: #fff3c8; }
.cr .fanbtn.dbtn.dpick .fl b::before { content: "✔ "; }
.cr .fanbtn.dbtn:not(.dpick) { filter: brightness(0.82) saturate(0.75); }
.cr .fanbtn.key.sel::after { --face-c: radial-gradient(ellipse 80% 70% at 50% 20%, #d0603c, #8e3320 60%, #521a0f); }
.cr .fanbtn.key:not(.small) .fl b { white-space: nowrap; letter-spacing: 0.04em; }
.cr .fanbtn .fl.wrap b { white-space: normal; line-height: 1.05; letter-spacing: 0; }   /* request 75: a label too long for its key wraps */
.cr .fanbtn.key.small { font-size: max(12px, calc(15px * var(--s))); }
.cr .fanbtn.key.small::after { --face-c: radial-gradient(ellipse 80% 60% at 50% 18%, #6b7048, #44482b 60%, #2a2c1a); }
.cr .fanbtn.arrowk .fl b { font-size: 1.45em; line-height: 1; color: #ffd877; }
.cr .fanbtn.arrowk .fl small { font-size: 0.6em; letter-spacing: 0.04em; }
.cr .fanbtn.arrowk::after { --face-c: radial-gradient(ellipse 80% 60% at 50% 18%, #6e7a46, #474f28 55%, #2a3017); }
.cr .fanslot:has(.fanbtn.arrowk) .fno { display: none; }
.cr .fanbtn.ico .fl b { font-size: 1.15em; line-height: 1; }
.cr .fanbtn.ico .fl small { font-size: 0.78em; letter-spacing: 0.04em; color: #f3e4b4; }
.cr .fanbtn.dis { cursor: not-allowed; filter: none; }
.cr .fanslot:has(.fanbtn.dis) { filter: grayscale(0.8) brightness(0.62); }
.cr .fanbtn.mis { font-size: max(12px, calc(15px * var(--s))); }
.cr .fanbtn.mis .no { font-size: 1.9em; line-height: 1; font-family: "Courier New", Consolas, var(--font); letter-spacing: 0.02em; }
.cr .fanbtn.mis .mt { font-size: 0.82em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: none; letter-spacing: 0; }
.cr .fanbtn.mis .st { font-size: 0.9em; color: #ffd877; letter-spacing: 0; }
.cr .fanbtn.mis.cur .st { color: #9fe6bd; animation: pulse 0.8s ease-in-out infinite alternate; }
.cr .fanbtn.mis.lock { filter: none; cursor: not-allowed; }
.cr .fanbtn.mis.lock::after { --face-c: radial-gradient(ellipse 80% 60% at 50% 18%, #4a4c3c, #2e3025 60%, #1c1d16); }
.cr .fanslot:has(.mis.lock) { filter: grayscale(0.7) brightness(0.7); }
.cr .fanbtn.mis.fin .no { color: #ffb4a0; }

/* ----- dropdown buttons ----- */
.btn.dd { padding: 2px 8px; gap: 5px; text-transform: none; }
.btn.dd .car { font-style: normal; opacity: 0.8; font-size: 0.8em; margin-left: auto; }
.btn.dd .di { width: max(20px, calc(28px * var(--s))); height: max(20px, calc(28px * var(--s))); object-fit: contain; flex: none; }
.btn.dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sw { display: inline-block; width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #0c0e06, 0 0 6px rgba(255,255,255,0.35); }

/* ----- skirmish deployment: map + notes on the left, every side as a tile, the options in one even row ----- */
.crt-in .scene.sk .bgimg { filter: blur(3px) brightness(0.42) saturate(0.9); transform: scale(1.06); }
.crt-in .scene.sk .fade { background: linear-gradient(90deg, rgba(6,12,9,0.5), rgba(6,12,9,0.68) 30%, rgba(6,12,9,0.8)); }
.skwrap { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: calc(10px * var(--s) + 4px); padding: calc(6px * var(--s) + 4px) calc(10px * var(--s) + 4px); }
.skprev { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.skprev::-webkit-scrollbar { display: none; }
.skprev .thumbbox { position: relative; flex: none; height: 50%; aspect-ratio: 1; max-width: 100%; }
.skprev .thumb { width: 100%; height: 100%; border-radius: 4px; display: block; object-fit: cover; box-shadow: 0 0 0 2px #0c0e06, 0 0 0 3px rgba(159, 230, 189, 0.5), 0 6px 14px rgba(0,0,0,0.6); }
.skprev .mapno { position: absolute; left: 4px; top: 4px; padding: 1px 6px; font: 900 max(12px, calc(13px * var(--s))) "Courier New", Consolas, monospace; color: #1f1a0c; background: linear-gradient(180deg, #d9c07a, #a8894a); border-radius: 2px; letter-spacing: 0.1em; box-shadow: 0 1px 2px rgba(0,0,0,0.7); }
.skprev h3 { margin: 3px 0 0; font-size: max(15px, calc(25px * var(--s))); font-weight: 900; color: #fff0c0; text-shadow: var(--ol); line-height: 1.15; }
.skprev .mmeta { font-weight: 900; color: var(--khaki); font-size: max(12px, calc(14px * var(--s))); text-shadow: var(--ol); }
.skprev .mdesc { margin: 0; font-weight: 700; font-size: max(12px, calc(15px * var(--s))); line-height: 1.42; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,0.9); }
.sksides { display: flex; flex-direction: column; gap: calc(5px * var(--s) + 2px); min-height: 0; min-width: 0; }
.sksides .optlabel { color: #9fe6bd; font-weight: 900; letter-spacing: 0.08em; font-size: max(12px, calc(15px * var(--s))); text-shadow: 0 1px 0 #000; flex: none; text-transform: uppercase; }
.slotgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(4px * var(--s) + 2px) calc(6px * var(--s) + 3px); align-content: start; flex: none; }
.slotgrid .slot { display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 2px 4px 2px 11px; min-width: 0; border-radius: 5px; position: relative;
  background: linear-gradient(180deg, rgba(46, 54, 30, 0.9), rgba(16, 20, 10, 0.92)); border: 1px solid rgba(226, 200, 120, 0.4); box-shadow: inset 4px 0 0 var(--tc), 0 2px 4px rgba(0,0,0,0.5); }
.slotgrid .slot.me { border-color: rgba(255, 216, 119, 0.9); box-shadow: inset 4px 0 0 var(--tc), 0 0 8px rgba(255, 216, 119, 0.35); }
.slot .who { display: flex; flex-direction: column; flex: 1 1 auto; white-space: nowrap; overflow: hidden; min-width: 0; font-size: max(12px, calc(14px * var(--s))); font-weight: 900; text-shadow: var(--ol); line-height: 1.15; }
.slot .who b { color: #ffd877; font-family: "Courier New", Consolas, var(--font); letter-spacing: 0.04em; }
.slot .who .wn { color: #d8ecd0; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 0.9em; }
.slot .srow { display: flex; gap: 4px; flex: none; }
.slot .srow .btn.dd { flex: none; width: max(46px, calc(56px * var(--s))); min-width: 44px; min-height: max(44px, calc(48px * var(--s))); padding: 0 4px; justify-content: center; }
.slot .srow .btn.dd.ctl { order: 3; }
.slot .srow .btn.dd .car { margin-left: 2px; }
.slot .srow .btn.dd .cg { font-size: max(12px, calc(14px * var(--s))); line-height: 1; color: #fff0c0; text-shadow: var(--ol); overflow: visible; }
.slot .srow .btn.dd.ctl .car { display: none; }
.slotgrid .addslot { min-height: 44px; white-space: normal; line-height: 1.1; font-size: max(13px, calc(16px * var(--s))); padding: 2px 6px; }
.skopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(6px * var(--s) + 3px); margin-top: auto; flex: none; }
.skopts .btn.dd.opt { flex-direction: column; justify-content: center; gap: 1px; min-height: max(48px, calc(62px * var(--s))); padding: 2px 18px 2px 8px; width: 100%; min-width: 0; }
.skopts .btn.dd.opt .ol { font-size: max(12px, calc(13px * var(--s))); color: #9fe6bd; letter-spacing: 0.1em; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.skopts .btn.dd.opt .ov2 { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: max(13px, calc(18px * var(--s))); line-height: 1.1; color: #fff0c0; max-width: 100%; white-space: normal; overflow: visible; }
.skopts .btn.dd.opt .ov2 span { white-space: normal; overflow-wrap: anywhere; text-align: center; overflow: visible; }
.skopts .btn.dd.opt .car { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); margin: 0; }

/* ----- skirmish step 1: the map pick. Theme backdrops cross-fade behind the whole screen, the map on the left ----- */
.crt-in .scene.skm .bgimg { opacity: 0; transition: opacity 2.2s ease; filter: brightness(0.74) saturate(0.95); transform: scale(1.03); }
.crt-in .scene.skm .bgimg.on { opacity: 1; animation: skDrift 16s ease-in-out infinite alternate; }
@keyframes skDrift { from { transform: scale(1.03); } to { transform: scale(1.09) translateX(-1.6%); } }
.crt-in .scene.skm .fade { background: linear-gradient(90deg, rgba(6,12,9,0.25), rgba(6,12,9,0.05) 20%, rgba(6,12,9,0.05) 36%, rgba(6,12,9,0.5) 47%, rgba(6,12,9,0.7) 62%, rgba(6,12,9,0.76)); }
.crt-in .scene.skm .mapsq { z-index: 1; border-color: rgba(226, 200, 120, 0.7); box-shadow: 0 0 0 3px rgba(12, 14, 6, 0.85), 0 10px 24px rgba(0,0,0,0.75), inset 0 0 30px rgba(0,0,0,0.5); animation: popIn 0.35s cubic-bezier(.3,1.5,.5,1) both; }
.crt-in .scene.skm .mk .ring { width: 2.2em; height: 2.2em; left: -1.1em; top: -1.1em; background: radial-gradient(circle, rgba(8,10,6,0.55), rgba(8,10,6,0.9)); }
.crt-in .scene.skm .mk .ring b { font: 900 1.15em "Courier New", Consolas, monospace; color: #fff; text-shadow: 0 0 6px var(--nc), 0 1px 0 #000, 0 0 2px #000; }
.crt-in .scene.skm .mk .ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--nc); opacity: 0.55; animation: pulse 1.1s ease-in-out infinite alternate; }
.crt-in .scene.skm .mapsq .mapno { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 1px 7px; font: 900 max(12px, calc(14px * var(--s))) "Courier New", Consolas, monospace; color: #1f1a0c; background: linear-gradient(180deg, #d9c07a, #a8894a); border-radius: 2px; letter-spacing: 0.1em; box-shadow: 0 1px 2px rgba(0,0,0,0.7); }
.crt-in .ov .mchips { display: flex; flex-wrap: wrap; gap: 0.35em; flex: none; }
.crt-in .ov .mchips .chip { font-size: 0.82em; align-self: auto; border: 1px solid rgba(226, 200, 120, 0.45); background: rgba(20, 24, 12, 0.7); }
.crt-in .ov .mchips .chip.theme { color: #16180c; background: linear-gradient(#f0d890, #c9a656); border-color: #f4e2a8; }
.crt-in .ov .mstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3em 1.2em; flex: none; }
.crt-in .ov .mst { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; min-width: 0; }
.crt-in .ov .mst .k { font-weight: 900; color: #d8ecd0; font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crt-in .ov .mst .segs { display: flex; gap: 3px; flex: none; }
.crt-in .ov .mst .segs i { width: 1.05em; height: 0.62em; background: rgba(159, 230, 189, 0.12); border: 1px solid rgba(159, 230, 189, 0.45); transform: skewX(-14deg); }
.crt-in .ov .mst .segs i.on { background: linear-gradient(180deg, #ffe39a, #d99a2b); border-color: #fff1c2; box-shadow: 0 0 6px rgba(255, 200, 90, 0.6); }

/* ----- skirmish step 2: deploy. Only the sides (2 columns × 4 rows that share the height) and the option row ----- */
.skwrap.dep { display: flex; flex-direction: column; gap: calc(6px * var(--s) + 3px); padding: calc(8px * var(--s) + 4px) calc(16px * var(--s) + 6px); }
.dephead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex: none; font-weight: 900; text-shadow: var(--ol); min-width: 0; }
.dephead b { color: #fff0c0; font-size: max(15px, calc(22px * var(--s))); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dephead span { color: #9fe6bd; font-family: "Courier New", Consolas, var(--font); font-size: max(12px, calc(16px * var(--s))); letter-spacing: 0.08em; white-space: nowrap; }
/* every row: 位置 | 顏色 | 陣營（徽章） | 隊伍 | 電腦難度 | 你／電腦 — fixed widths so the column names line up and nothing leaves the row */
.dep .slot .srow .btn.dd.ctl { --w-ctl: max(56px, calc(80px * var(--s))); }
.dep .slothead .c-ctl { --w-ctl: max(56px, calc(80px * var(--s))); }
@container app (min-height: 521px) {
  .dep .slotgrid .slot.slot { gap: 6px; }
  .dep .slot .srow.srow { gap: 4px; }
  .dep .slot .srow .btn.dd.diff.diff { padding: 0; }
  .dep .slothead.slothead { gap: 4px; }
}
.dep .slotgrid { --w-pos: max(28px, calc(38px * var(--s))); --w-sw: max(46px, calc(52px * var(--s))); --w-nat: max(48px, calc(62px * var(--s))); --w-team: max(48px, calc(62px * var(--s))); --w-ctl: max(52px, calc(72px * var(--s)));
  flex: 1 1 auto; min-height: 0; grid-template-rows: auto repeat(4, minmax(0, 1fr)); align-content: stretch; gap: calc(6px * var(--s) + 3px) calc(12px * var(--s) + 4px); }
.dep .slothead { display: flex; align-items: flex-end; gap: 6px; padding: 0 9px 0 16px; min-width: 0; font-weight: 900; font-size: max(11px, calc(13px * var(--s))); color: #9fe6bd; letter-spacing: 0.06em; text-shadow: 0 1px 0 #000, 0 0 4px #000; line-height: 1.1; }
.dep .slothead span { flex: none; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep .slothead .c-pos { width: var(--w-pos); margin-right: 4px; text-align: left; }
.dep .c-sw { width: var(--w-sw); } .dep .c-nat { width: var(--w-nat); } .dep .c-team { width: var(--w-team); } .dep .c-ctl { width: var(--w-ctl); }
.dep .slothead .c-diff, .dep .slot .c-diff { flex: 1 1 0; min-width: 0; }
.dep .slotgrid .slot { padding: 3px 8px 3px 15px; gap: 10px; overflow: hidden; box-shadow: inset 6px 0 0 var(--tc), 0 2px 5px rgba(0,0,0,0.55); }
.dep .slotgrid .slot.me { box-shadow: inset 6px 0 0 var(--tc), 0 0 10px rgba(255, 216, 119, 0.4); }
.dep .slot .who { flex: 0 0 var(--w-pos); width: var(--w-pos); min-width: 0; font-size: max(13px, calc(17px * var(--s))); }
.dep .slot .who b { font-size: 1.3em; }
.dep .slot .srow { flex: 1 1 auto; min-width: 0; gap: 6px; height: 100%; align-items: center; }
.dep .slot .srow .btn.dd { box-sizing: border-box; flex: none; min-width: 44px; max-width: 100%; min-height: max(44px, calc(54px * var(--s))); padding: 0 2px; justify-content: center; overflow: hidden; }
.dep .slot .srow .btn.dd .car { display: none; }
.dep .slot .srow .btn.dd.swatch .sw { width: max(20px, calc(26px * var(--s))); height: max(20px, calc(26px * var(--s))); }
.dep .slot .srow .btn.dd.nat .di { width: max(28px, calc(38px * var(--s))); height: max(28px, calc(38px * var(--s))); flex: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }
.dep .slot .srow .btn.dd.diff { flex: 1 1 0; width: auto; padding: 0 4px; }
.dep .slot .srow .btn.dd .dg { font-size: max(12px, calc(16px * var(--s))); font-weight: 900; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep .slot .btn.dd.d-easy .dg { color: #9fe6bd; } .dep .slot .btn.dd.d-normal .dg { color: #ffd877; } .dep .slot .btn.dd.d-hard .dg { color: #ff9a86; }
.dep .slot .nodiff { align-self: stretch; margin: 8px 0; border-radius: 4px; border: 1px dashed rgba(226, 200, 120, 0.25); }
.dep .slot .srow .btn.dd .cg { font-size: max(12px, calc(17px * var(--s))); white-space: nowrap; }
.tbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7em; height: 1.7em; padding: 0 0.3em; border-radius: 0.45em; box-sizing: border-box;
  font: 900 max(13px, calc(17px * var(--s))) "Courier New", Consolas, var(--font); color: #1a1408; background: linear-gradient(180deg, color-mix(in srgb, var(--tb, #888) 100%, #fff 25%), var(--tb, #888)); box-shadow: 0 0 0 2px #0c0e06, 0 0 8px var(--tb, transparent); }
.tbadge { text-shadow: none; letter-spacing: 0; }
/* team flags (drawn in code) and the difficulty list with each level's real numbers */
.dep .slotgrid .slot { padding-top: 2px; padding-bottom: 2px; }
.dep .slot .srow .btn.dd { height: min(100%, max(44px, calc(54px * var(--s)))); min-height: 44px; }
.tflag { width: max(38px, calc(48px * var(--s))); height: max(38px, calc(48px * var(--s))); flex: none; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.6)); }
.ddopt .tflag { width: 38px; height: 38px; }
.dep .slot .btn.dd.team .soloT { font-size: max(12px, calc(15px * var(--s))); color: #ece6d4; text-shadow: var(--ol); white-space: nowrap; letter-spacing: 0; }
.ddlist.descs { grid-template-columns: 1fr; }
.ddpop:has(.ddlist.descs) { width: min(820px, 94%); max-width: 94%; }
.ddopt.hasdesc { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 6px 14px; text-align: left; }
.ddopt.hasdesc > span { font-size: max(15px, calc(19px * var(--s))); }
.ddopt .dsc { display: block; font-size: max(13px, calc(15px * var(--s))); font-weight: 700; color: #cfe8c4; line-height: 1.3; white-space: pre-line; letter-spacing: 0; text-transform: none; overflow: visible; }
.dep .slot .btn.swatch::after { content: none; } /* the old list's drawn dot: the deploy button shows its own .sw */
/* deploy row buttons: the brass plate drawn inside the button (no outset), so nothing spills over the row frame */
.dep .slot .srow .btn.dd { border-width: 6px 7px; border-image: url(assets/ui-button.webp) 76 42 84 42 fill / 9px 7px 11px 7px / 0 stretch; letter-spacing: 0; }
.btn.dd.team.solo .tbadge { background: none; box-shadow: none; color: #d8ecd0; font-family: var(--font); font-size: max(12px, calc(15px * var(--s))); text-shadow: var(--ol); }
.ddopt .tbadge { margin-right: 4px; }
.ddlist.emblems { grid-template-columns: repeat(4, minmax(64px, 84px)); justify-content: center; }
.ddlist.emblems .ddopt { justify-content: center; padding: 4px; min-height: 76px; }
.ddlist.emblems .ddopt .di { width: 56px; height: 56px; }
.ddlist.emblems .ddopt.sel { outline: 3px solid #fff3c8; outline-offset: 1px; border-radius: 8px; filter: brightness(1.12); }
.dep .slotgrid .addslot { min-height: 44px; height: 100%; font-size: max(14px, calc(18px * var(--s))); border-style: dashed; }
.dep .skopts { margin-top: 0; }
.dep .skopts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dephead .depwarn { flex: 1 1 auto; min-width: 0; text-align: center; font-style: normal; color: #ffb08a; font-size: max(12px, calc(15px * var(--s))); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lampBlink 1.2s ease-in-out infinite; }
.dephead .depwarn.shake { animation: warnShake 0.4s ease; }
@keyframes warnShake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* 確定 on the map pick: the map grows to fill the big screen while the rest fades; the deploy step then fades in */
.crt-in .scene.skm .mapsq { transition: transform 0.85s cubic-bezier(.55, 0, .2, 1); transform-origin: 50% 50%; will-change: transform; }
.crt-in .scene.skm.zoom .ov, .crt-in .scene.skm.zoom .fade, .crt-in .scene.skm.zoom > .bgimg, .crt-in .scene.skm.zoom .mk { opacity: 0 !important; transition: opacity 0.45s ease; }
.crt-in .scene.skm.zoom .mapsq { border-color: transparent; box-shadow: none; }
.crt.fadein .crt-in { animation: crtFade 0.45s ease both; }
@keyframes crtFade { from { opacity: 0; filter: brightness(1.6); } to { opacity: 1; filter: none; } }
#menu-body.busy { pointer-events: none; }

/* ----- tutorial: one lesson at a time; its model on a hologram ring at the left, the steps on the right ----- */
.crt-in .scene.tut .bgimg { filter: brightness(0.5) saturate(0.85) blur(1px); transform: scale(1.04); }
.scene.tut .tutfig { position: absolute; left: 2%; top: 5%; bottom: 13%; width: 32%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.scene.tut .tutfig .ring { position: absolute; height: 94%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(159, 230, 189, 0.45);
  background: radial-gradient(circle, rgba(93,255,154,0.2), rgba(93,255,154,0.05) 58%, transparent 70%); box-shadow: inset 0 0 24px rgba(93,255,154,0.2); }
.scene.tut .tutfig .ring::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(255, 216, 119, 0.5); animation: sweep 22s linear infinite; }
.scene.tut .tutfig .ticon { position: relative; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,0.75)); animation: floaty 3.4s ease-in-out infinite; }
.scene.tut .tutfig .tno { position: absolute; left: 3%; top: 0; font: 900 max(18px, calc(34px * var(--s))) "Courier New", Consolas, monospace; color: #ffd877; text-shadow: var(--ol); letter-spacing: 0.06em; }
.scene.tut .tdots { position: absolute; left: 2%; width: 32%; bottom: 4%; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.scene.tut .tdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(159, 230, 189, 0.22); border: 1px solid rgba(159, 230, 189, 0.6); }
.scene.tut .tdots i.on { background: #ffd877; box-shadow: 0 0 8px #ffd877; border-color: #fff3c8; }
.crt-in .ov .tsteps { margin: 0; padding-left: 1.5em; font-family: "Trebuchet MS", "Segoe UI", var(--font); font-weight: 700; font-size: 1em; line-height: 1.55; color: #eef5e6; text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,0.85); flex: none; }
.crt-in .ov .tsteps li { margin: 0 0 0.25em; }
.crt-in .ov .tsteps li::marker { color: #ffd877; font-weight: 900; }
.crt-in .ov .tsteps b { color: #fff0c0; }

@keyframes lampBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes readout { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }
@keyframes needle { 0% { transform: rotate(-95deg); } 40% { transform: rotate(-30deg); } 100% { transform: rotate(82deg); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 6% { opacity: 0; } 10% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes oscRun { to { transform: translateX(-50%); } }
@keyframes fanPress { 0% { transform: none; } 30% { transform: translateY(5px) scale(0.985); filter: brightness(0.72); } 100% { transform: none; } }

@container app (max-height: 520px) {
  #menu-body.cr.fanned { --crt-h: 61%; }
  #menu-body.cr.fanned.two { --crt-h: 55%; }
  #menu-body.cr.fanned.m-tutorial { --crt-h: 64%; }
  #menu-body.cr.fanned.m-skirmish { --crt-h: 69%; }
  .cr.m-skirmish .crhead { margin-bottom: 0; }
  .sksides .optlabel { display: none; }
  .cr .fan { height: 33%; }
  .cr .fan.two { height: 40%; }
  .cr.m-tutorial .fan { height: 30%; }
  .cr.m-skirmish .fan { height: 26%; }
  .cr .fanbtn { font-size: 18px; }
  .cr .fanbtn .fl small { font-size: 12px; }
  .cr .fanbtn.nat { font-size: 14px; }
  .cr .fanbtn.nat .fl { flex-direction: column; gap: 1px; }
  .cr .fanbtn.nat .fp { height: 26px; width: 26px; }
  .cr .fanbtn.key { font-size: 15px; }
  .cr .fanbtn.key.small { font-size: 12px; }
  .cr .fanbtn.dbtn.dpick .fl b::before { content: none; }
  .cr .fanbtn.mis { font-size: 12px; }
  .cr .fanbtn.mis .no { font-size: 20px; }
  .cr .fanbtn.mis .mt { display: none; }
  .cr .fanbtn.arrowk .fl b { font-size: 22px; }
  .skwrap { grid-template-columns: 29% minmax(0, 1fr); gap: 6px; padding: 3px 5px; }
  .skprev .thumbbox { height: 50%; }
  .skprev h3 { font-size: 14px; }
  .skprev .mmeta, .skprev .mdesc { font-size: 12px; line-height: 1.3; }
  .sksides { gap: 3px; }
  .sksides .optlabel { font-size: 12px; line-height: 1.15; }
  .slotgrid { gap: 2px 4px; }
  .slotgrid .slot { padding: 0 2px 0 8px; gap: 3px; }
  .slot .who { font-size: 12px; line-height: 1.15; }
  .slot .srow { gap: 3px; }
  .slot .srow .btn.dd { min-height: 44px; border-width: 5px 6px; }
  .slot .srow .btn.dd .car { display: none; }
  .slotgrid .addslot { font-size: 13px; }
  .skopts { gap: 4px; }
  .skopts .btn.dd.opt { min-height: 44px; padding: 1px 4px; }
  .skopts .btn.dd.opt .ol { font-size: 12px; }
  .skopts .btn.dd.opt .ov2 { font-size: 13px; }
  .skopts .btn.dd.opt .car { display: none; }
  .scene.tut .tutfig .tno { font-size: 16px; }
  .scene.tut .tdots { gap: 4px; }
  .scene.tut .tdots i { width: 7px; height: 7px; }
  /* phones: 8 sides (4 rows of 44 px controls) and the option row must all fit on the big screen */
  #menu-body.cr.fanned.m-skirmish { --crt-h: 68%; }
  .cr.m-skirmish .fan { height: 27%; }
  .cr.m-skirmish .crhead, .cr.m-tutorial .crhead { display: none; }
  .cr.m-skirmish .crt-in, .cr.m-tutorial .crt-in { top: 0; }
  #menu-body.cr.fanned.m-tutorial { --crt-h: 66%; }
  .crt-in .ov .tsteps { line-height: 1.32; }
  .crt-in .ov .tsteps li { margin: 0; }
  .crt-in .scene.tut .ov .who { display: none; }
  .crt-in .scene.tut .ov h2 { margin: 0; line-height: 1.1; }
  .cr .fanslot .fno { font-size: 12px !important; }
  .cr .fan.two .fanslot:has(.fanbtn.key) .fno { display: none; }
  .cr .fanbtn.arrowk .fl small { display: none; }
  .skopts .btn.dd.opt .ol { display: none; }
  .skopts .btn.dd.opt .ov2 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .sksides { gap: 2px; }
  .slotgrid { gap: 2px 4px; }
  .slotgrid .slot { border: 0; box-shadow: inset 4px 0 0 var(--tc), inset 0 0 0 1px rgba(226, 200, 120, 0.4); }
  .slotgrid .slot.me { box-shadow: inset 4px 0 0 var(--tc), inset 0 0 0 1px rgba(255, 216, 119, 0.9); }
  .skopts .btn.dd.opt { flex-direction: row; gap: 5px; min-height: 44px; padding: 0 4px; }
  .skopts .btn.dd.opt .ol { letter-spacing: 0; flex: none; max-width: 48%; overflow: hidden; }
  .skopts .btn.dd.opt .ov2 { min-width: 0; }
  /* phones: the deploy step uses the same tall screen as the map pick */
  #menu-body.cr.fanned.m-deploy { --crt-h: 72%; --crt-t: 6px; --crt-l: 12.4%; }
  .dep .slotgrid { --w-pos: 0px !important; --w-sw: 46px !important; --w-nat: 48px !important; --w-team: 50px !important; --w-ctl: 46px !important; }
  .dep .slot .srow .btn.dd.team .tflag { width: 32px; height: 32px; }
  .dep .slot .srow .btn.dd.team .soloT { font-size: 12px; }
  .ddopt.hasdesc { padding: 3px 10px; min-height: 44px; }
  .ddopt.hasdesc > span { font-size: 15px; }
  .ddopt .dsc { font-size: 12px; line-height: 1.25; }
  .ddopt .tflag { width: 32px; height: 32px; }
  .dep .slot .srow .btn.dd.ctl { --w-ctl: 44px; }
  .dep .slot .srow .btn.dd.diff { padding: 0; }
  .dep .slot .srow .btn.dd.diff .dg { font-size: 11px !important; letter-spacing: 0; }
  .cr.m-deploy .fan { height: 25%; }
  .cr.m-deploy .crhead { display: none; }
  .cr.m-deploy .crt-in { top: 0; }
  .skwrap.dep { gap: 2px; padding: 2px 8px; }
  .dephead b { font-size: 14px; }
  .dephead span { font-size: 12px; }
  .dephead .depwarn { font-size: 12px; }
  .dep .slotgrid { --w-pos: 20px; --w-sw: 44px; --w-nat: 46px; --w-team: 46px; --w-ctl: 52px; gap: 2px 8px; grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .dep .slothead { display: none; }
  .dep .slotgrid .slot { padding: 0 3px 0 9px; gap: 3px; box-shadow: inset 4px 0 0 var(--tc), inset 0 0 0 1px rgba(226, 200, 120, 0.4); }
  .dep .slotgrid .slot.me { box-shadow: inset 4px 0 0 var(--tc), inset 0 0 0 1px rgba(255, 216, 119, 0.9); }
  .dep .slot .who { font-size: 11px; }
  .dep .slot .who b { font-size: 1.1em; }
  .dep .slot .srow { gap: 3px; }
  .dep .slot .srow .btn.dd { min-height: 44px; height: 44px; border-width: 5px 6px; padding: 0 1px; }
  .dep .slot .srow .btn.dd.nat .di { width: 26px; height: 26px; }
  .dep .slot .srow .btn.dd.swatch .sw { width: 20px; height: 20px; }
  .dep .slot .srow .btn.dd .cg, .dep .slot .srow .btn.dd .dg { font-size: 12px; }
  .dep .slot .nodiff { margin: 6px 0; }
  .dep .slotgrid .addslot { font-size: 13px; }
  .crt-in .ov .mstats { gap: 0.15em 0.8em; }
}
