/* Tankward (code name Ironclad). The page is the Arcade's parchment shell (palette.css); the
   hangar sits in a framed panel; the field itself is a full-viewport dark
   layer with a DOM HUD over the canvas. No em dashes in on-screen copy. */

/* ==========================================================================
   Page: the hangar
   ========================================================================== */

.ic-hangar-frame {
  width: 100%;
  max-width: 880px;
  padding: clamp(14px, 2.4vw, 24px);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .04)), var(--parchment-deep);
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .55), inset 0 0 0 3px rgba(122, 104, 80, .22),
    0 18px 40px rgba(58, 46, 34, .28), 0 3px 8px rgba(58, 46, 34, .22);
}
.ic-hangar { display: flex; flex-direction: column; gap: 16px; }

.ic-btn {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
  padding: 11px 18px; min-height: 44px; border-radius: 8px; border: 1px solid var(--oxblood);
  background: var(--oxblood); color: var(--parchment); cursor: pointer;
  transition: background .2s var(--ease), transform .12s var(--ease), opacity .2s var(--ease);
}
.ic-btn:hover { background: var(--oxblood-deep); }
.ic-btn:active { transform: translateY(1px) scale(.98); }
.ic-btn.ghost { background: transparent; color: var(--oxblood); }
.ic-btn.ghost:hover { background: rgba(90, 26, 31, .08); }
.ic-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.ic-btn:focus-visible, .ic-tank-card:focus-visible, .ic-map-card:focus-visible, .ic-tabs button:focus-visible {
  outline: 2px solid var(--oxblood); outline-offset: 2px;
}

/* name */
.ic-name-row label { display: block; font-family: var(--caps); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--oxblood); margin-bottom: 6px; }
.ic-name-in { display: flex; gap: 8px; }
.ic-name-in input {
  flex: 1; min-width: 0; font: inherit; font-size: 19px; color: var(--ink); padding: 8px 12px; min-height: 44px;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(122, 104, 80, .55); border-radius: 8px;
}
.ic-name-in input:focus { outline: 2px solid rgba(90, 26, 31, .45); }
.ic-name-hint { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-light); font-style: italic; }
.ic-name-note { margin: 6px 0 0; min-height: 1.2em; font-size: 15px; color: var(--ink-light); font-style: italic; }

/* tank cards */
.ic-tanks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ic-tank-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 10px;
  border-radius: 10px; cursor: pointer; color: var(--ink); font: inherit; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)), var(--parchment);
  border: 1px solid rgba(122, 104, 80, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 6px rgba(58, 46, 34, .15);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.ic-tank-card:hover { transform: translateY(-2px); }
.ic-tank-card[aria-checked="true"] {
  border-color: var(--tc);
  box-shadow: inset 0 0 0 2px var(--tc), 0 6px 16px rgba(58, 46, 34, .28);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tl) 30%, transparent), rgba(255, 255, 255, .05)), var(--parchment);
}
.ic-tank-pic { width: 100%; max-width: 110px; height: 78px; }
.ic-tank-team { font-family: var(--caps); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--tc); }
.ic-tank-team span { font-size: 14px; }
.ic-tank-rank { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.1; }
.ic-tank-meta { font-size: 13px; color: var(--ink-light); }
.ic-prog { width: 80%; height: 5px; border-radius: 3px; background: rgba(58, 46, 34, .18); overflow: hidden; }
.ic-prog i { display: block; height: 100%; background: var(--tc); transform-origin: 0 50%; }

/* map cards */
.ic-maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.ic-map-card {
  display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--ink);
  padding: 10px 12px; border-radius: 9px; cursor: pointer; min-height: 44px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(122, 104, 80, .35);
}
.ic-map-card strong { font-family: var(--display); font-size: 20px; font-weight: 600; font-style: italic; }
.ic-map-card span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.3; }
.ic-map-card em { font-size: 13px; color: var(--forest); font-family: var(--caps); letter-spacing: .08em; font-style: normal; }
.ic-map-card[aria-checked="true"] { border-color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--oxblood); background: rgba(255, 255, 255, .45); }

/* doors */
.ic-doors { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ic-deploy { font-size: 16px; padding: 14px 40px; letter-spacing: .2em; box-shadow: 0 6px 18px rgba(90, 26, 31, .35); }
.ic-practice-btn { font-size: 15px; padding: 13px 30px; }
.ic-why { margin: 0; text-align: center; font-style: italic; color: var(--ink-light); min-height: 1.2em; font-size: 16px; }

/* tabs */
.ic-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid rgba(122, 104, 80, .4); }
.ic-tabs button {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; min-height: 40px;
  padding: 8px 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--ink-light); cursor: pointer;
}
.ic-tabs button[aria-selected="true"] { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.ic-panel { min-height: 140px; font-size: 16.5px; color: var(--ink-soft); }
.ic-note { font-size: 15.5px; color: var(--ink-light); line-height: 1.45; }
.ic-msg { min-height: 1.2em; font-style: italic; color: var(--forest); }

.ic-medals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ic-medals li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .18); opacity: .6; }
.ic-medals li.is-won { opacity: 1; background: rgba(227, 183, 84, .22); box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .6); }
.ic-medal { grid-row: span 3; font-size: 22px; color: var(--gold-deep); }
.ic-medals strong { font-family: var(--display); font-size: 18px; }
.ic-medals span { font-size: 14px; }
.ic-medals em { font-size: 12px; font-style: normal; font-family: var(--caps); letter-spacing: .1em; color: var(--forest); }

.ic-record { border-collapse: collapse; width: 100%; max-width: 560px; }
.ic-record th { text-align: left; font-weight: 500; color: var(--ink-light); padding: 5px 12px 5px 0; font-size: 15px; }
.ic-record td { padding: 5px 0; color: var(--ink); }
.ic-record tr + tr { border-top: 1px solid rgba(122, 104, 80, .2); }

.ic-shop { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ic-shop li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(122, 104, 80, .3); }
.ic-shop strong { font-family: var(--display); font-size: 19px; }
.ic-shop small { min-height: 1em; color: var(--ink-light); font-size: 13px; }
.ic-fit-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ic-fit-btns .ic-btn { flex: 1 1 auto; }
.ic-pips { display: flex; gap: 4px; }
.ic-pips i { width: 18px; height: 6px; border-radius: 3px; background: rgba(58, 46, 34, .2); }
.ic-pips i.on { background: var(--gold-deep); }

.ic-slots { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.ic-slots li { display: flex; align-items: center; gap: 8px; }
.ic-slots label { display: flex; flex-direction: column; gap: 3px; font-family: var(--caps); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); flex: 1; }
.ic-slots select, .ic-set select { font: inherit; font-size: 16px; min-height: 40px; padding: 4px 8px; border-radius: 7px; border: 1px solid rgba(122, 104, 80, .5); background: rgba(255, 255, 255, .5); color: var(--ink); text-transform: none; letter-spacing: 0; }
.ic-slot-icon svg, .ic-tool-list svg { width: 24px; height: 24px; color: var(--ink-soft); vertical-align: middle; }
.ic-tool-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 15px; }
.ic-tool-list dt { font-weight: 600; white-space: nowrap; }
.ic-tool-list dd { margin: 0; color: var(--ink-light); }

.ic-set { border: 1px solid rgba(122, 104, 80, .35); border-radius: 9px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ic-set legend { font-family: var(--caps); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--oxblood); padding: 0 6px; }
.ic-set label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; min-height: 32px; }
.ic-set input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--oxblood); }
.ic-set small { color: var(--ink-light); font-size: 13.5px; }

.ic-xfer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic-code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; padding: 8px 10px; background: rgba(255, 255, 255, .4); border-radius: 6px; word-break: break-all; }
.ic-paste { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 8px; font-size: 15px; }
.ic-paste input { font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 14px; padding: 8px 10px; min-height: 40px; border-radius: 7px; border: 1px solid rgba(122, 104, 80, .5); background: rgba(255, 255, 255, .5); }

.ic-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ic-tops h3, .ic-panel h3 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 21px; margin: 0 0 6px; color: var(--ink); }
.ic-top { margin: 0; padding-left: 1.6em; }
.ic-top li { padding: 3px 0; }
.ic-top li::marker { color: var(--ink-light); }
.ic-top li > span { display: inline-flex; }
.ic-top-name { min-width: 60%; }
.ic-top-name span { color: var(--tc); margin-right: 4px; filter: brightness(.75); }
.ic-tq { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, .25); }
.ic-tq em { font-size: 14px; color: var(--forest); }

@media (max-width: 620px) {
  .ic-tanks { grid-template-columns: repeat(2, 1fr); }
  .ic-tank-pic { height: 64px; }
  .ic-deploy, .ic-practice-btn { flex: 1 1 140px; }
  /* mobile pass 2026-12-06: on a phone the way in stays on screen while the
     colours and the field card scroll by */
  .ic-doors {
    position: sticky; bottom: 0; z-index: 3; margin: 0 -12px; padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(232, 214, 176, 0), rgba(232, 214, 176, .96) 30%);
  }
}

/* ==========================================================================
   The field: full-viewport game layer
   ========================================================================== */

html.ic-playing, html.ic-playing body { overflow: hidden; overscroll-behavior: none; height: 100%; }
.ic-game {
  position: fixed; inset: 0; z-index: 100; background: #16110c; color: var(--cream);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  overscroll-behavior: none; overflow: hidden; -webkit-tap-highlight-color: transparent;
  height: 100dvh; width: 100vw;
}
.ic-game[hidden] { display: none; }
.ic-game:fullscreen { width: 100%; height: 100%; }
#ic-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ic-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
  font-family: var(--hand); font-style: italic; font-size: clamp(18px, 3vw, 24px); color: var(--parchment);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6); text-align: center; pointer-events: none;
}
.ic-loading[hidden] { display: none; }

/* sticks (dynamic: they appear where the thumb lands) */
.ic-stick {
  position: absolute; left: 0; top: 0; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border-radius: 50%; border: 2px solid rgba(227, 183, 84, .5);
  background: radial-gradient(circle, rgba(20, 16, 11, .12), rgba(20, 16, 11, .34));
  opacity: 0; pointer-events: none; transition: opacity .14s ease; z-index: 5;
}
.ic-stick.is-live { opacity: 1; transition: none; }
.ic-nub {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9a3a3f, #5a1a1f 70%);
  border: 1px solid rgba(227, 183, 84, .7); box-shadow: 0 3px 12px rgba(0, 0, 0, .5);
}
.ic-stick-aim .ic-nub { background: radial-gradient(circle at 35% 30%, #e8c66a, #9c7826 70%); }
.ic-reload {
  position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(rgba(227, 183, 84, .9) calc(var(--reload, 1) * 360deg), rgba(227, 183, 84, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}

/* first-run ghosts (touch only) */
.ic-ghost { display: none; }
.mgt-coarse .ic-ghost {
  display: grid; place-items: center; position: absolute; width: 104px; height: 104px; border-radius: 50%;
  border: 2px dashed rgba(241, 230, 200, .3); pointer-events: none; z-index: 4;
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 20px); transition: opacity .6s ease;
}
.mgt-coarse .ic-ghost span { font-family: var(--caps); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: rgba(241, 230, 200, .55); text-align: center; max-width: 90px; }
.ic-ghost-move { left: calc(max(24px, env(safe-area-inset-left)) + 30px); }
.ic-ghost-aim { right: calc(max(24px, env(safe-area-inset-right)) + 150px); }
.ic-touched .ic-ghost { opacity: 0; }


/* v2 hangar: insignia, the field card, the ladder, equipment, standings */
.ic-ins { width: 1.25em; height: 1.25em; vertical-align: -0.22em; color: var(--gold-deep); flex: none; }
.ic-ins-card { width: 22px; height: 22px; color: var(--tc); filter: brightness(.8); }
.ic-ins-row { width: 22px; height: 22px; }
.ic-ins-big { width: 64px; height: 64px; color: var(--oxblood); }
.ic-tank-rank { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.ic-map-card { cursor: default; }
.ic-map-card.is-cur { border-color: rgba(122, 104, 80, .55); background: rgba(255, 255, 255, .32); }
.ic-ladder-now { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .5); }
.ic-ladder-now strong { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 24px; color: var(--ink); }
.ic-ladder-now p { margin: 2px 0 6px; font-size: 15.5px; }
.ic-ladder-now .ic-prog { width: min(320px, 60vw); --tc: var(--oxblood); }
.ic-ladder-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.ic-ladder-list li { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.ic-ladder-list li .ic-ins { grid-row: span 3; align-self: center; color: var(--ink-light); }
.ic-ladder-list li.is-past .ic-ins { color: var(--gold-deep); }
.ic-ladder-list li.is-cur { background: rgba(227, 183, 84, .22); box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .6); }
.ic-ladder-list li.is-cur .ic-ins { color: var(--oxblood); }
.ic-ladder-list strong { font-family: var(--display); font-size: 18px; }
.ic-ladder-list span { font-size: 14px; color: var(--ink-light); }
.ic-ladder-list small { font-size: 13px; color: var(--oxblood); font-style: italic; }
.ic-equip-list { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ic-equip-list li { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(122, 104, 80, .3); }
.ic-eq-icon { grid-row: span 3; color: var(--oxblood); }
.ic-eq-icon svg { width: 28px; height: 28px; }
.ic-equip-list strong { font-family: var(--display); font-size: 18px; }
.ic-equip-list span { font-size: 14px; }
.ic-equip-list em { font-size: 13px; font-style: normal; font-family: var(--caps); letter-spacing: .06em; color: var(--forest); }
.ic-medal-pr { color: var(--ink-light) !important; }
.ic-top-all { max-height: 360px; overflow: auto; }
.ic-top li.is-me { font-weight: 700; color: var(--oxblood); }
.ic-top li > span:last-child { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--ink-light); }
.ic-tops-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ic-sub { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 21px; margin: 14px 0 6px; }
.ic-ranks { margin: 14px 0 0; }
.ic-ranks > summary { cursor: pointer; font-family: var(--display); font-style: italic; font-size: 19px; min-height: 44px; display: flex; align-items: center; }
/* ---- HUD (v2) ---- */
.ic-hud {
  --safe-t: max(8px, env(safe-area-inset-top));
  --safe-r: max(10px, env(safe-area-inset-right));
  --safe-b: max(10px, env(safe-area-inset-bottom));
  --safe-l: max(10px, env(safe-area-inset-left));
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  font-family: var(--body); color: var(--cream);
}
.ic-ui, .ic-ui * { pointer-events: auto; }
.ic-hud [hidden] { display: none !important; }

/* top left: insignia + "Captain II #14", the fuel bar, the ladder, where you are */
.ic-tl { position: absolute; top: var(--safe-t); left: var(--safe-l); width: min(42vw, 250px); display: flex; flex-direction: column; gap: 4px; }
.ic-plate { display: flex; align-items: center; gap: 6px; font-size: 15px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); white-space: nowrap; overflow: hidden; }
.ic-insw { display: inline-flex; }
.ic-insw .ic-ins { width: 24px; height: 24px; color: var(--gold-bright); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.ic-rk { font-family: var(--caps); font-size: 12.5px; letter-spacing: .08em; color: var(--gold-bright); }
.ic-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ic-bar {
  position: relative; height: 17px; border-radius: 8px; overflow: hidden;
  background: rgba(20, 14, 8, .62); box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .45);
}
.ic-bar .ic-fill { position: absolute; inset: 2px; border-radius: 6px; transform-origin: 0 50%; transition: transform .18s ease; background: linear-gradient(180deg, #f2cd6c, #b4781f); }
.ic-fuel.is-low .ic-fill { background: linear-gradient(180deg, #f08a6a, #a3332b); animation: ic-pulse .8s ease-in-out infinite; }
.ic-fuel .ic-cap { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: rgba(246, 238, 214, .55); }
.ic-bar .ic-num { position: absolute; right: 8px; top: 50%; transform: translateY(-52%); font-size: 12px; font-weight: 700; color: #fff8e4; text-shadow: 0 1px 2px #000; line-height: 1; font-variant-numeric: tabular-nums; }
.ic-ladder { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(241, 230, 200, .85); text-shadow: 0 1px 2px #000; }
.ic-pbar { flex: 0 0 52px; height: 4px; border-radius: 2px; background: rgba(20, 14, 8, .6); overflow: hidden; }
.ic-pbar i { display: block; height: 100%; background: var(--gold-bright); transform-origin: 0 50%; }
.ic-ptext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-loc { font-family: var(--caps); font-size: 11.5px; letter-spacing: .08em; color: rgba(241, 230, 200, .8); text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ic-chips span { font-size: 11.5px; padding: 1px 7px; border-radius: 9px; background: rgba(20, 14, 8, .6); box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .35); white-space: nowrap; }
.ic-tag { position: absolute; left: var(--safe-l); bottom: var(--safe-b); font-family: var(--caps); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(241, 230, 200, .5); text-shadow: 0 1px 2px #000; }
.mgt-coarse .ic-tag { display: none; }

/* top right: the minimap and three small buttons */
.ic-tr { position: absolute; top: var(--safe-t); right: var(--safe-r); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ic-mini-btn {
  width: clamp(92px, 17vmin, 150px); aspect-ratio: 1; padding: 3px; border-radius: 10px; cursor: pointer; touch-action: none;
  background: rgba(20, 14, 8, .55); border: 1px solid rgba(227, 183, 84, .45); box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.ic-mini { width: 100%; height: 100%; display: block; border-radius: 7px; }
.ic-btnrow { display: flex; gap: 6px; }
.ic-ibtn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; padding: 0;
  background: rgba(20, 14, 8, .6); color: var(--parchment); border: 1px solid rgba(227, 183, 84, .45);
}
.ic-ibtn svg { width: 20px; height: 20px; }
.ic-ibtn:active { background: rgba(90, 26, 31, .9); }

/* the shared log: a side panel on wide screens, a pull-down sheet on glass */
.ic-log {
  position: absolute; right: var(--safe-r); top: calc(var(--safe-t) + clamp(92px, 17vmin, 150px) + 56px);
  width: min(320px, 34vw); display: flex; flex-direction: column; gap: 4px;
}
.ic-log-head {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 16px; cursor: pointer;
  font-family: var(--caps); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(20, 14, 8, .62); color: var(--parchment); border: 1px solid rgba(227, 183, 84, .45);
}
.ic-log-n:not(:empty) { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--oxblood); color: var(--parchment); font-size: 11px; letter-spacing: 0; text-align: center; }
.ic-log-list {
  display: none; list-style: none; margin: 0; padding: 6px 8px; max-height: min(42vh, 360px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 10px; background: rgba(20, 14, 8, .62); box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .3);
  font-size: 13px; line-height: 1.35;
}
.ic-log.is-open .ic-log-list { display: block; }
.ic-log-list li { padding: 2px 0; border-bottom: 1px solid rgba(241, 230, 200, .07); }
.ic-log-list li.is-private { color: rgba(241, 230, 200, .7); font-style: italic; }
.ic-log-list li.ic-l-promote, .ic-log-list li.ic-l-supply { color: #f6e6b8; }
.ic-who { color: var(--tc, var(--cream)); font-weight: 600; }
.ic-who.is-me { text-decoration: underline; text-decoration-color: rgba(241, 230, 200, .5); }
.ic-botp { font-family: var(--caps); font-size: 11px; letter-spacing: .04em; color: rgba(241, 230, 200, .7); }
.ic-gold { color: var(--gold-bright); font-weight: 600; }
.ic-log q { font-style: italic; }
.mgt-coarse .ic-log { right: auto; left: 50%; transform: translateX(-50%); top: var(--safe-t); width: min(92vw, 440px); align-items: center; }
.mgt-coarse .ic-log-head { align-self: center; }
.mgt-coarse .ic-log-list { width: 100%; max-height: 46vh; background: rgba(20, 14, 8, .82); }

/* the ticker: new log lines while the panel is shut */
.ic-feed {
  position: absolute; top: calc(var(--safe-t) + 40px); left: 50%; transform: translateX(-50%); width: min(50vw, 440px);
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
html:not(.mgt-coarse) .ic-feed { top: var(--safe-t); }
.ic-log.is-open ~ .ic-feed { display: none; }
.ic-feed li {
  font-size: 13px; padding: 2px 10px; border-radius: 10px; background: rgba(20, 14, 8, .6); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: opacity 1s ease; animation: ic-in .25s ease;
}
.ic-feed li.is-old { opacity: 0; }

/* scoped: the label and the way back */
.ic-scoped { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 18px; background: rgba(20, 14, 8, .72); box-shadow: inset 0 0 0 1px rgba(127, 208, 196, .6); }
.ic-scoped-t { font-family: var(--caps); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #bfe8e0; font-variant-numeric: tabular-nums; }
.ic-scoped button { min-height: 36px; padding: 4px 12px; border-radius: 14px; cursor: pointer; font: 600 13px var(--body); background: var(--parchment); color: var(--ink); border: 0; }

/* the dock: equipment toggles over the action bar, bottom centre */
.ic-dock {
  position: absolute; left: 50%; bottom: var(--safe-b); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: max-content; max-width: calc(100vw - 2 * var(--safe-l));
}
.ic-equip, .ic-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ic-act, .ic-eq {
  position: relative; display: grid; place-items: center; padding: 0; cursor: pointer; touch-action: none;
  color: var(--parchment); border: 1px solid rgba(227, 183, 84, .5); box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
  transition: transform .08s ease, filter .2s ease, opacity .2s ease;
}
.ic-act { width: 54px; height: 54px; border-radius: 12px; grid-template-rows: 1fr auto; padding: 5px 0 3px; background: radial-gradient(circle at 40% 30%, rgba(122, 34, 40, .92), rgba(61, 15, 18, .92)); }
.ic-eq { width: 46px; height: 42px; border-radius: 10px; background: rgba(20, 14, 8, .72); color: rgba(241, 230, 200, .55); }
.ic-eq.is-on { color: var(--parchment); background: radial-gradient(circle at 40% 30%, rgba(47, 109, 140, .92), rgba(29, 69, 89, .95)); }
.ic-act .ic-ticon svg { width: 24px; height: 24px; display: block; }
.ic-eq .ic-ticon svg { width: 21px; height: 21px; display: block; }
.ic-act.is-down, .ic-eq.is-down { transform: scale(.92); }
.ic-act.is-empty, .ic-eq.is-empty { filter: grayscale(.85) brightness(.72); }
.ic-act.is-dead, .ic-eq.is-dead { opacity: .5; }
.ic-act.is-active { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 14px rgba(227, 183, 84, .55); }
.ic-act.is-no, .ic-eq.is-no { animation: ic-shake .35s ease; }
.ic-tcount {
  position: absolute; right: -5px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--parchment); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums;
}
/* key caps: on a keyboard each button shows the key that presses it, where a word used to be */
.ic-kcap {
  display: inline-block; min-width: 17px; padding: 1px 4px 2px; border-radius: 4px; box-sizing: border-box;
  font: 700 10.5px/1.15 var(--body); text-align: center; letter-spacing: 0; font-variant-numeric: tabular-nums;
  background: rgba(241, 230, 200, .92); color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(26, 20, 16, .35), 0 1px 1px rgba(0, 0, 0, .35);
}
.ic-kcap-arrows { letter-spacing: -.04em; padding: 1px 3px 2px; }
.ic-tkey { line-height: 0; }
.ic-act .ic-tkey { display: block; }
.ic-eq .ic-tkey { position: absolute; left: 3px; top: 3px; }
.ic-eq .ic-kcap { min-width: 14px; padding: 0 3px 1px; font-size: 9.5px; }
.mgt-coarse .ic-tkey { display: none; }
.ic-lamp { position: absolute; left: 50%; bottom: 3px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: rgba(241, 230, 200, .22); }
.ic-eq.is-on .ic-lamp { background: #9fe0c8; box-shadow: 0 0 6px #9fe0c8; }
.ic-cdr { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: conic-gradient(rgba(20, 14, 8, .62) calc(var(--cd, 0) * 360deg), transparent 0); }

.mgt-coarse .ic-act { width: 48px; height: 48px; padding: 0; grid-template-rows: 1fr; }

/* toasts, banners, the deactivated card, the wheel, the board, the menu */
.ic-ko-sub { font-size: 15px; color: rgba(241, 230, 200, .9); max-width: min(80vw, 420px); margin: 4px auto 8px !important; }
.ic-toast {
  position: absolute; left: 50%; bottom: calc(var(--safe-b) + 132px); transform: translate(-50%, 8px);
  padding: 7px 16px; border-radius: 18px; font-size: 16px; max-width: 80vw; text-align: center;
  background: rgba(20, 14, 8, .78); box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .45);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.ic-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ic-toast.is-why { box-shadow: inset 0 0 0 1px rgba(233, 140, 120, .7); color: #ffe0d4; }
.ic-toast.is-good { box-shadow: inset 0 0 0 1px rgba(184, 214, 138, .6); }

.ic-banner {
  position: absolute; left: 50%; top: 22%; transform: translate(-50%, -10px) scale(.96);
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: 10px 26px 12px; border-radius: 12px; max-width: 86vw;
  background: radial-gradient(120% 100% at 50% 0%, rgba(217, 148, 65, .25), rgba(26, 20, 16, .86));
  box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .65), 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .3s ease, transform .3s var(--ease); pointer-events: none;
}
.ic-banner.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ic-banner strong { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(22px, 4vw, 32px); color: var(--gold-bright); }
.ic-banner span { font-size: 15px; color: rgba(241, 230, 200, .85); }
.ic-banner.is-hint strong { color: var(--parchment); font-size: clamp(18px, 3.2vw, 26px); }

.ic-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.ic-center p { margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.ic-rally { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.ic-rally .ic-btn { font-size: 14px; padding: 8px 14px; }
.ic-rally .ic-btn.is-on { outline: 2px solid var(--team-light, #e3b754); outline-offset: 2px; }
.ic-ko { font-family: var(--display); font-style: italic; font-size: clamp(26px, 5vw, 40px); color: #f0c8b8; }
.ic-ko-n { font-family: var(--caps); letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--parchment); }

/* quick chat wheel */
.ic-wheel {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 14, 8, .35);
}
.ic-say {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0));
  min-width: 96px; min-height: 40px; padding: 6px 12px; border-radius: 20px; cursor: pointer;
  font: 600 15px var(--body); color: var(--ink); background: var(--parchment);
  border: 1px solid rgba(200, 156, 58, .8); box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.ic-say:active, .ic-say:focus-visible { background: var(--gold-bright); outline: none; }
.ic-say-x { --x: 0px; --y: 0px; min-width: 64px; background: rgba(20, 14, 8, .85); color: var(--parchment); }

/* scoreboard, big map, menu */
.ic-board, .ic-bigmap, .ic-menu, .ic-help { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 14, 8, .55); padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l); }
.ic-board-card, .ic-menu-card, .ic-help-card {
  width: min(680px, 94vw); max-height: 88vh; overflow: auto; padding: 16px 18px; border-radius: 12px; color: var(--ink);
  background: radial-gradient(120% 80% at 20% 0%, rgba(217, 148, 65, .18), rgba(217, 148, 65, 0) 50%), var(--parchment);
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .6), 0 24px 60px rgba(0, 0, 0, .5);
}
.ic-board-card h2, .ic-menu-card h2, .ic-help-card h2 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 28px; margin: 0 0 8px; }
.ic-board-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ic-board-cols h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); border-bottom: 2px solid var(--tc); display: flex; justify-content: space-between; }
.ic-board-cols h3 span { font-family: var(--caps); font-size: 12px; letter-spacing: .1em; color: var(--ink-light); }
.ic-board-cols table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ic-board-cols th { font-family: var(--caps); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-align: left; color: var(--ink-light); }
.ic-board-cols td, .ic-board-cols th { padding: 2px 4px; }
.ic-board-cols td:nth-child(n+3), .ic-board-cols th:nth-child(n+3) { text-align: right; }
.ic-board-cols tr.is-me td { font-weight: 700; color: var(--oxblood); }
.ic-board-cols small { font-size: 11px; color: var(--ink-light); }
/* the "bot" label on every name a bot drives (scoreboard, killfeed, chat, KO card) */
.ic-bot { display: inline-block; margin-left: .35em; padding: 0 .35em; border: 1px solid currentColor; border-radius: 3px; font-family: var(--caps); font-size: 11px; font-style: normal; font-weight: 400; letter-spacing: .06em; line-height: 1.35; vertical-align: 1px; opacity: .9; }
.ic-board-foot { font-size: 13px; color: var(--ink-light); margin: 8px 0 0; font-style: italic; }
.ic-menu-card { width: min(460px, 94vw); }
.ic-eyebrow { font-family: var(--caps); text-transform: uppercase; letter-spacing: .26em; font-size: 12px; color: var(--oxblood); margin: 0 0 4px; }
.ic-menu-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.ic-btn.ghost.ic-leave.is-armed, .ic-btn.ghost.ic-leave.is-armed:hover { background: var(--oxblood); color: #fff; }
.ic-leave-note { margin: -6px 0 14px; font-size: 14px; }
.ic-menu .ic-set { color: var(--ink-soft); }
.ic-open-help { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; }
.ic-btn-icon svg { width: 20px; height: 20px; display: block; }

/* the control sheet: every key as a picture and a key cap, then the legend */
.ic-help-card { width: min(720px, 94vw); display: flex; flex-direction: column; gap: 6px; }
.ic-help-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ic-help-head h2 { margin: 0 !important; }
.ic-help-card h3 { font-family: var(--caps); font-weight: 400; text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; color: var(--oxblood); margin: 10px 0 8px; }
.ic-help-card h4 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 17px; margin: 14px 0 4px; color: var(--ink); }
.ic-help-only-touch { display: none; }
.mgt-coarse .ic-help-only-touch { display: inline; }
.mgt-coarse .ic-help-only-keys { display: none; }
.mgt-coarse .ic-help-keys { order: 2; }
.ic-kgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.ic-k {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 2px 7px; border-radius: 10px;
  background: radial-gradient(circle at 40% 30%, rgba(122, 34, 40, .95), rgba(61, 15, 18, .95)); color: var(--parchment);
  box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .5);
}
.ic-k-icon svg { width: 24px; height: 24px; display: block; }
.ic-k .ic-kcap { font-size: 12.5px; min-width: 22px; padding: 2px 6px 3px; }
.ic-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic-help-foot { font-size: 13.5px; color: var(--ink-light); font-style: italic; margin: 10px 0 0; }
.ic-lgl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 6px 14px; }
.ic-lg { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft, var(--ink)); }
.ic-lg strong { color: var(--ink); }
.ic-lg-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--parchment); background: rgba(20, 14, 8, .82); }
.ic-lg-icon.is-act { background: radial-gradient(circle at 40% 30%, rgba(122, 34, 40, .95), rgba(61, 15, 18, .95)); }
.ic-lg-icon.is-eq { background: radial-gradient(circle at 40% 30%, rgba(47, 109, 140, .95), rgba(29, 69, 89, .95)); }
.ic-lg-icon.is-crown { color: #f2c14e; box-shadow: inset 0 0 0 1.5px rgba(242, 193, 78, .7); }
.ic-lg-icon svg { width: 22px; height: 22px; }
.ic-lg-demo { flex: 0 0 auto; width: 38px !important; height: 38px !important; margin: 4px 0; box-shadow: none !important; }
.ic-lg-demo.is-active { box-shadow: 0 0 0 2px var(--gold-bright) !important; }
.ic-lg-demo > svg { width: 21px; height: 21px; display: block; }
.ic-lg-demo .ic-tcount { right: -7px; top: -7px; }


/* the big map */
.ic-bigmap .ic-map-card {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; max-width: 96vw; max-height: 96vh;
  background: rgba(26, 20, 16, .94); box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .55), 0 20px 50px rgba(0, 0, 0, .6);
}
.ic-map-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ic-map-title { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 22px; color: var(--parchment); }
.ic-map-pct { font-family: var(--caps); font-size: 11.5px; letter-spacing: .1em; color: rgba(241, 230, 200, .75); flex: 1; }
.ic-map-zoom { display: inline-flex; gap: 4px; }
.ic-map-zoom button { width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font: 700 18px var(--body); background: rgba(20, 14, 8, .8); color: var(--parchment); border: 1px solid rgba(227, 183, 84, .5); }
.ic-map-wrap { display: grid; place-items: center; }
.ic-map-canvas { width: min(90vw, 74vh); height: min(90vw, 74vh); border-radius: 8px; box-shadow: 0 0 0 1px rgba(227, 183, 84, .5); touch-action: none; cursor: crosshair; }
.ic-tp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 9px; background: var(--parchment); color: var(--ink); }
.ic-tp-text { margin: 0; flex: 1 1 220px; font-size: 15px; }
.ic-tp-btns { display: flex; gap: 6px; }
.ic-tp .ic-btn { min-height: 40px; padding: 8px 14px; }
.ic-map-legend { margin: 0; font-size: 12.5px; color: rgba(241, 230, 200, .7); max-width: min(90vw, 74vh); }
.ic-close { min-height: 36px; padding: 6px 14px; border-radius: 10px; background: rgba(20, 14, 8, .8); color: var(--parchment); border: 1px solid rgba(227, 183, 84, .5); font-family: var(--caps); letter-spacing: .1em; cursor: pointer; }
.ic-keys { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.ic-keys summary { cursor: pointer; font-family: var(--caps); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--oxblood); }
.ic-keys p { margin: 6px 0 0; }

@media (max-width: 560px), (max-height: 420px) {
  .ic-tl { width: min(40vw, 210px); }
  .ic-feed { width: min(60vw, 340px); }
  .ic-feed li { font-size: 12px; }
}
@media (max-height: 420px) {
  /* Short landscape (an iPhone with Safari's bar showing is ~325-345 px
     tall): the top-right block lies flat, the dock shrinks to one row of
     actions and one of toggles. */
  .ic-tr { flex-direction: row; align-items: flex-start; }
  .ic-mini-btn { width: 76px; order: 2; }
  .ic-btnrow { order: 1; }
  .ic-act, .mgt-coarse .ic-act { width: 42px; height: 42px; }
  .ic-act .ic-ticon svg { width: 21px; height: 21px; }
  .ic-eq { width: 40px; height: 34px; }
  .ic-dock { gap: 4px; }
  .ic-chips { display: none; }
  .ic-banner { top: 16%; }
  .ic-log { top: calc(var(--safe-t) + 90px); }
}
@media (orientation: portrait) and (max-width: 560px) {
  .ic-dock { bottom: calc(var(--safe-b) + 4px); }
  .ic-acts { max-width: 280px; }
  /* narrow portrait: the log pill sits under the stats and the minimap, not on them */
  .mgt-coarse .ic-log { top: calc(var(--safe-t) + 150px); }
  .mgt-coarse .ic-feed { top: calc(var(--safe-t) + 190px); }
}

@keyframes ic-pulse { 50% { filter: brightness(1.35); } }
@keyframes ic-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes ic-in { from { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .ic-fuel.is-low .ic-fill, .ic-act.is-no, .ic-eq.is-no, .ic-feed li { animation: none; }
  .ic-banner, .ic-toast { transition: opacity .2s ease; }
}

/* orders mode (pacing pass 2026-12-04): no sticks; a tap is an order */
.ic-orders .ic-stick, .ic-orders .ic-ghost { display: none !important; }

/* mobile pass 2026-12-06: fingertip-sized targets (44 px) on glass */
.mgt-coarse .ic-ibtn { width: 44px; height: 44px; }
.mgt-coarse .ic-log-head { min-height: 40px; padding: 6px 14px; font-size: 12px; }
.mgt-coarse .ic-eq { width: 46px; height: 44px; }
.mgt-coarse .ic-map-zoom button, .mgt-coarse .ic-close { min-width: 44px; min-height: 44px; }

/* the field log and the standings: two pills, one list open at a time */
.ic-heads { display: flex; gap: 6px; align-self: flex-end; }
.mgt-coarse .ic-heads { align-self: center; }
.ic-stand-me:not(:empty) { font-family: var(--body); letter-spacing: 0; font-weight: 700; color: var(--gold-bright); }
.ic-stand-list {
  display: none; margin: 0; padding: 6px 8px; max-height: min(46vh, 380px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 10px; background: rgba(20, 14, 8, .78); box-shadow: inset 0 0 0 1px rgba(227, 183, 84, .3); font-size: 13px;
}
.ic-log.is-stand .ic-stand-list { display: block; }
.mgt-coarse .ic-stand-list { width: 100%; background: rgba(20, 14, 8, .86); }
.ic-stand-list table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ic-stand-list th { font-family: var(--caps); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-align: left; color: rgba(241, 230, 200, .65); padding: 2px 4px; }
.ic-stand-list td { padding: 3px 4px; border-bottom: 1px solid rgba(241, 230, 200, .07); white-space: nowrap; }
.ic-stand-list td:nth-child(2) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: var(--tc, var(--cream)); }
.ic-stand-list td:nth-child(n+4), .ic-stand-list th:nth-child(n+4) { text-align: right; }
.ic-stand-list tr.is-me td { font-weight: 700; color: var(--gold-bright); }
.ic-st-g { color: var(--tc); }
.ic-st-foot { margin: 6px 0 0; font-size: 11.5px; font-style: italic; color: rgba(241, 230, 200, .65); }

/* the end-of-game card (suggestion 3) */
.ic-endcard { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: rgba(10, 8, 5, .78); }
.ic-endcard-img { width: min(92vw, 720px); height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.ic-endcard-bar { display: flex; gap: 10px; }
.ic-btn-quiet { background: transparent; border: 1px solid currentColor; }
