/* In-match HUD. Every corner has one owner; the battlefield centre stays clear. Tokens only. Its frames are forged
   moonsteel: dark steel with a gold edge (Tyler, 26 October 2026: "do the forged moonsteel"). */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud [data-hud], #hud button, #hud input, #hud canvas { pointer-events: auto; }

/* Top centre: all six champions, score, clock, towers. Sizes from the 2026-10-26 UI council: every cluster keeps its
   2026-10-07 place. Compact since the launch research (29 October 2026, accepted by Tyler): 44 px portraits, thin
   health and mana lines, kills and towers on one line over the clock, and every slot the same height. */
.topbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  zoom: var(--ui-scale);
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s1) var(--s3) 6px;
  background: var(--steel);
  border-bottom: 2px solid var(--trim);
  box-shadow: var(--steel-edge), 0 6px 16px var(--shadow);
}
.tb-team { gap: 6px; align-items: flex-start; }
.tm { position: relative; display: flex; flex-direction: column; gap: 3px; width: 44px; }
.tm .portrait { --size: 44px; }
/* The level digits never go under 12 px on screen (to HUD scale 0.465, the lowest), like the HUD's other numbers: a
   fixed 11 px drew about 9 px at 1516x820 (HUD council round 3, 8 November 2026). The badge keeps its corner and
   grows only to hold its digits below scale 0.8. */
.tm .portrait .lvl { min-width: 18px; font-size: clamp(13px, calc(12px / var(--ui-scale)), 26px); line-height: max(15px, 1em); }
.tm .portrait .ult { left: -4px; bottom: -4px; width: 11px; height: 11px; }
.inspect-portrait { border: none; padding: 0; background: transparent; }
.inspect-portrait:focus-visible { outline: 2px solid var(--you); }
/* A 4 px health line and a 2 px mana line; the box keeps its height when a slot shows neither. */
.tm-bars { height: 7px; display: flex; flex-direction: column; gap: 1px; }
.tm-bars .bar { height: 4px; border: 0; outline: 0; background: var(--bg-0); }
.tm-bars .bar.mana { height: 2px; }
.score { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 104px; }
/* The kills stand apart from each team's towers: 16 px between them, never under 8 px on screen, with a short metal
   rule centred in each gap, so the line reads towers | kills | towers, not five loose numbers (HUD council round 5,
   8 November 2026). The rules are the socket trim's gold: the steel line (1.3:1 on this steel) would not show. They
   are positioned, so the bar keeps its height. */
.score .tb-line { --tb-gap: max(var(--s4), calc(8px / var(--ui-scale))); display: flex; align-items: center; gap: var(--tb-gap); }
.score .big::before, .score .big::after { content: ""; position: absolute; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--trim-socket); }
.score .big::before { left: calc(var(--tb-gap) / -2); }
.score .big::after { right: calc(var(--tb-gap) / -2); }
/* The two kill counts lead the bar: bold body-face digits at 24 px, never under 18 px on screen (to HUD scale 0.62,
   the smallest). Not Silkscreen: it is loaded without a bold and blurs off its 8 px grid when the HUD scales
   (HUD council round 2, 8 November 2026: the kill and tower string was slow to parse and small at 1516x820). */
.score .big { position: relative; font-family: var(--font-body); font-weight: 700; font-size: clamp(var(--t-l), calc(18px / var(--ui-scale)), 39px); line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 0 var(--steel-dark); }
/* The clock follows the kills: bold body-face tabular digits, never under 16 px on screen (to HUD scale 0.465). In
   Silkscreen it drew about 12.6 px at 1516x820, off its 8 px grid (HUD council round 3, 8 November 2026). */
.score .clock { font-family: var(--font-body); font-weight: 700; font-size: clamp(var(--t-m), calc(16px / var(--ui-scale)), 35px); line-height: 18px; font-variant-numeric: tabular-nums; color: var(--you-light); }
/* The kills carry the weight; each team's towers are a quieter group beside them: 16 px body digits in the dim text,
   the icon in the team's colour, 8 px clear of the kills (HUD council, 8 November 2026: 12 px pixel digits beside
   12 px icons read as one cramped string of symbols).
   The digits never go under 16 px on screen (to HUD scale 0.465, the lowest; round 4 raised them from 14 px), still
   under the kills' 18 px and their line height, so the bar keeps its height. The icon keeps their size. */
.score .tb-towers { gap: 3px; font-family: var(--font-body); font-size: clamp(var(--t-s), calc(16px / var(--ui-scale)), 35px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-dim); }
/* The icons are lighter than the kills' crossed swords, at 70%, so the swords and the kill digits lead (HUD council
   round 6, 8 November 2026, Sol); their size and gaps stay. */
.score .tb-towers .ico { width: 1em; height: 1em; opacity: 0.7; }
.score .tb-towers.c-ally .ico { color: var(--ally); }
.score .tb-towers.c-enemy .ico { color: var(--enemy); }

/* Top right: your score and quick toggles */
.mystats {
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  zoom: var(--ui-scale);
  display: flex;
  gap: var(--s2);
  align-items: center;
  padding: var(--s1) var(--s2);
  /* Quieter than the combat console: a navy backing and a thin line, no forged frame (GPT-6.1 Sol, round 8). */
  background: color-mix(in srgb, var(--bg-0) 82%, transparent);
  border: 1px solid var(--steel-line);
}

/* One left dock: inspection and death recap stack, never cover each other. */
.inspection-dock {
  position: absolute;
  /* Below the performance readout at the top left, which the target card used to cover (UI council round 2 capture). */
  top: calc(32px / var(--ui-scale));
  left: var(--s4);
  bottom: 210px;
  zoom: var(--ui-scale);
  width: 400px;
  max-width: calc(100vw / var(--ui-scale) - 32px);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  overflow-y: visible;
  pointer-events: none;
}
.inspection-dock > .panel, .inspection-dock > .target { flex-shrink: 0; }
#hud.is-dead .inspection-dock { overflow-y: auto; }
.mystats .stat-pair { gap: var(--s1); margin-right: var(--s2); }
/* Following: the word turns gold, a small state mark rather than a gold frame (GPT-6.1 Sol, round 8). */
#camera.following > .sm { color: var(--you); }
/* Dead, the abilities rest; gold and the shop stay bright because you can still buy (Opus, round 5). */
#hud.is-dead .combat .slots { filter: saturate(0.4) brightness(0.75); }
/* The target card: what you see of the unit you clicked. Wide and short (Tyler, 21 November 2026: "It takes up way too
   much vertical space"): the portrait, name, score and bars on one band, items and stats on a second, and its buffs
   under the frame, outside it and at the size of your own, so a buff coming or going never resizes the card. It takes
   the pointer, so every item, stat and buff has its tip ("I can't hover over the items"). */
.target { width: 396px; max-width: 100%; display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-xs); }
.target-card { display: flex; flex-direction: column; gap: 6px; padding: 6px var(--s2) var(--s2); }
.target-head { display: flex; gap: var(--s2); align-items: stretch; }
.target .portrait { --size: 52px; }
.target .portrait .lvl { min-width: 18px; line-height: 16px; right: -3px; bottom: -3px; }
.target-kind { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--line-strong); background: var(--bg-2); flex: none; }
.target-kind .ico { width: 27px; height: 27px; }
.target-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; }
.target-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 18px; }
.target-name { font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-what { color: var(--text-dim); white-space: nowrap; }
.target-kda { margin-left: auto; padding-left: var(--s2); display: flex; align-items: baseline; gap: var(--s1); white-space: nowrap; cursor: help; }
.target .bar.thin { height: 6px; }
.target-kit { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.target-items { display: flex; gap: 3px; }
.target-items .slot { border-width: 1px; }
.target-stats { flex: 1; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 2px var(--s2); }
.target-stats:only-child { display: flex; justify-content: flex-start; gap: var(--s4); }
.target-stats .stat { gap: 3px; font-size: var(--t-xs); line-height: 14px; cursor: help; }
.target-stats .stat svg { width: 14px; height: 14px; }
.target-buffs { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 3px; margin-left: 2px; }
/* Out of sight: the card holds what was last seen, under the top bar's fog veil, with nothing counting up. */
.target.unseen .bar, .target.unseen .target-kit { opacity: 0.55; }

/* Banner: major events only, below the top bar */
.notifications {
  position: absolute;
  top: 128px;
  left: 50%;
  transform: translateX(-50%);
  zoom: var(--ui-scale);
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.banner {
  text-align: center;
  padding: var(--s3) var(--s7);
  background: linear-gradient(90deg, transparent, var(--scrim-strong) 15%, var(--scrim-strong) 85%, transparent);
  pointer-events: none;
  z-index: var(--z-banner);
}
.banner.good h3 { color: var(--ally); }
.banner.bad h3 { color: var(--enemy); }
/* The banner takes priority: a toast waits out of sight while one is up, never drawn over it (Tyler, 2026-10-26:
   "our new ones need to take priority and they can't be overlapped"). An open panel hides the notifications
   (`[hidden]`), and then neither rule applies, as when they were unmounted. */
body:has(.notifications:not([hidden]) .banner) #toast.show { opacity: 0; }
/* While dead the respawn plate holds the toast's spot, so the toast drops below it (round-11 capture: "Wait until you
   respawn." covered the countdown). */
body:has(.notifications:not([hidden]) .respawn) #toast { top: calc(284px * var(--ui-scale)); }
/* A kill slams in with both portraits (2026-10-25 evening playtest: "even more obvious when we get kills"). */
.banner { animation: banner-slam 260ms cubic-bezier(.2, 1.4, .4, 1) both; }
.banner .duel { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-bottom: var(--s1); }
.banner .duel img { width: 52px; height: 52px; image-rendering: pixelated; border: 2px solid var(--line, #2c4078); background: var(--scrim-strong); }
.banner.good .duel .killer { border-color: var(--ally); }
.banner.bad .duel .killer { border-color: var(--enemy); }
.banner .duel .victim { filter: grayscale(1) brightness(0.7); }
.banner .duel .vs { font-size: 26px; color: var(--you); text-shadow: 0 2px 0 #000; }
.banner.personal h3 { font-size: calc(var(--t-l) * 1.6); color: var(--you); text-shadow: 0 3px 0 #000, 0 0 18px rgb(244 196 64 / 55%); letter-spacing: 0.04em; }
.banner.personal .duel img { width: 68px; height: 68px; }
@keyframes banner-slam { 0% { opacity: 0; transform: scale(1.7); } 60% { opacity: 1; transform: scale(0.96); } 100% { opacity: 1; transform: scale(1); } }
/* The raid boss (docs/RAID_BOSS.md "The arrival"): its banners carry its body, in the Moonforge frost ramp. */
.banner.frost h3 { color: #c8f6ff; text-shadow: 0 3px 0 #000, 0 0 18px rgb(106 224 255 / 60%); letter-spacing: 0.04em; font-size: calc(var(--t-l) * 1.4); }
.banner .creature.rimecoil { filter: drop-shadow(0 0 6px rgb(106 224 255 / 70%)); }
/* Any other creature on a banner is the tower, minion or monster that killed you, drawn in the portrait square with the
   killer's red about it, as a champion killer has its red frame (HUD council round 6, 8 November 2026). */
.banner .creature:not(.rimecoil) { filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 4px var(--enemy)); }
.raid-countdown {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  zoom: var(--ui-scale);
  z-index: var(--z-banner);
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s6);
  background: linear-gradient(90deg, transparent, var(--scrim-strong) 15%, var(--scrim-strong) 85%, transparent);
  pointer-events: none;
}
/* The Players panel opens under the countdown's row: the count steps aside while it is open (real-screen walk 4 of the
   launch integration: "Something rises in the north" covered the panel's Red team heading). */
body:has(.room-panel) .raid-countdown { display: none; }
.raid-countdown .silhouette { filter: brightness(0) drop-shadow(0 0 3px #6ae0ff) drop-shadow(0 0 1px #c8f6ff); }
.raid-countdown .eyebrow { color: #a4c4f0; }
.raid-countdown b { font-size: calc(var(--t-l) * 1.8); color: #c8f6ff; text-shadow: 0 3px 0 #000; text-align: center; }
/* Frost sweeps down every screen as it arrives (0.6 s), then thaws away. */
.frost-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-banner);
  background: linear-gradient(180deg, rgb(200 246 255 / 50%), rgb(106 224 255 / 22%) 18%, rgb(14 90 154 / 10%) 38%, transparent 55%);
  animation: frost-sweep 3s ease-out both;
}
@keyframes frost-sweep { 0% { clip-path: inset(0 0 100% 0); opacity: 1; } 20% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .banner, .frost-vignette { animation: none; } .frost-vignette { opacity: 0.6; } }

/* Above the combat cluster: status, recall, hint */
.status, .hint, .recall { position: absolute; left: 50%; transform: translateX(-50%); zoom: var(--ui-scale); }
.status {
  /* Just above the console it belongs to (GPT-6.1 Sol, rounds 3 and 4: the casting line floated mid-screen). */
  bottom: 196px;
  padding: var(--s2) var(--s4);
  background: var(--panel);
  border: 2px solid var(--you);
  font-weight: 700;
}
.recall { bottom: 290px; width: 360px; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
/* The casting hint sits just above the console it belongs to (GPT-6.1 Sol, round 3). */
.hint { bottom: 186px; color: var(--text-dim); background: var(--panel-soft); padding: var(--s1) var(--s3); white-space: nowrap; }
/* An opaque moonsteel plate, so no world name shows through the count, and the count in the pixel face (Grok, round 6:
   "Ni" peeked out of "RESPAWN IN" and a smooth 112 px digit covered the body). */
.respawn { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: fit-content; margin-inline: auto; padding: var(--s2) var(--s5); background: var(--steel); box-shadow: var(--steel-edge); }
/* One font pixel (1/8 em) tighter, so "33" reads as one number, and every digit the same width, so the count holds
   still as it falls (HUD council, 8 November 2026). */
.respawn .t { font-family: var(--font-head); font-size: var(--t-display); line-height: 1; letter-spacing: -0.125em; font-variant-numeric: tabular-nums; }

/* Bottom left: compact stats */
.statspanel {
  position: absolute;
  bottom: 0;
  left: 0;
  zoom: var(--ui-scale);
  width: 256px;
  padding: var(--s1) var(--s2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1) var(--s3);
  background: var(--steel);
  border-top: 2px solid var(--trim); /* the console's and minimap's gold edge (Opus, round 8) */
  box-shadow: var(--steel-edge), 0 6px 16px var(--shadow);
}
.statspanel .all-stats { grid-column: 1 / -1; }
/* Readable labels (GPT-6.1 Sol, round 9): never under 12 px on screen whatever the HUD scale, as far as the panel's
   columns hold them (to scale 0.667). The compact layouts follow the same rule: the HUD's zoom shrank these to 10-11 px
   on a 1516x820 page (HUD council, 8 November 2026). */
.statspanel .stat .lbl { font-size: clamp(15px, calc(12px / var(--ui-scale)), 18px); color: var(--text-dim); }
.allstats {
  position: absolute;
  top: 128px;
  left: var(--s4);
  zoom: var(--ui-scale);
  width: 720px;
  max-width: calc(100vw / var(--ui-scale) - 32px);
  max-height: calc(100vh / var(--ui-scale) - 148px);
  overflow-y: auto;
  z-index: var(--z-overlay);
}
.allstats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); padding: var(--s4); }
.allstat { display: flex; flex-direction: column; gap: 2px; }

/* Bottom centre: the combat cluster, one moonsteel console with cut top corners and a gold edge. The shape is drawn
   by its ::before (steel) and ::after (gold edge), not clipped, so the buff strip and level-up buttons above stay whole. */
.combat {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  zoom: var(--ui-scale);
  display: flex;
  align-items: flex-end;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  isolation: isolate;
}
.combat::before, .combat::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.combat::before {
  background: var(--steel);
  box-shadow: inset 0 0 0 1px var(--steel-dark), inset 0 0 0 3px var(--steel-line);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.combat::after {
  background: var(--trim);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% 21px, calc(100% - 18px) 3px, 18px 3px, 0 21px);
}
.combat .portrait { border-color: var(--trim); box-shadow: 0 0 0 2px var(--steel-dark), inset 0 0 12px var(--shadow); }
.combat .portrait .lvl {
  right: -10px;
  bottom: -10px;
  min-width: 34px;
  height: 34px;
  line-height: 30px;
  font-size: var(--t-m);
  border: 2px solid var(--trim);
  border-radius: 50%;
  background: radial-gradient(var(--steel-line), var(--bg-1));
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--you-light);
  /* A level-up lands (scorecard L4): the Portrait draws a new badge for each level, so this plays at every level-up,
     with the level sound. Scale is a transform: nothing around it moves. */
  animation: level-pop 900ms cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes level-pop { 0% { scale: 2; color: var(--true); box-shadow: 0 0 22px 8px var(--levelup-glow); } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .combat .portrait .lvl { animation: none; } }
.combat .bar.xp { outline-color: var(--trim-dark); height: 6px; background: var(--steel-line); } /* a thin track, not an empty field (Opus, round 10) */
.combat :where(.slot) { border-color: var(--trim-socket); box-shadow: 0 0 0 2px var(--steel-dark); }
.combat .slot.ready { border-color: var(--you-light); }
.combat .slot.passive, .combat .slot.passive > img { border-radius: 50%; }
.combat .slot.passive { border-color: var(--steel-line); }
/* The key letters: bold body-face capitals, pale gold on near-black, never under 13 px on screen (to HUD scale 0.465,
   the lowest), like the mana tags. In the pixel face at 14 px they drew about 11 px at 1516x820, weaker than the mana
   tags (HUD council round 4, 8 November 2026). The cap sits in the socket's corner, so the socket neither moves nor
   grows; it stays under the cooldown count, which keeps the white. */
.combat .slot .k { background: var(--steel-dark); border-color: var(--trim); color: var(--you-light); font-family: var(--font-body); font-weight: 700; font-size: clamp(var(--t-xs), calc(13px / var(--ui-scale)), 28px); line-height: 1.25; text-shadow: 0 1px 0 var(--bg-0); }
/* Mana costs never under 13 px on screen, up to what the socket's corner holds (to HUD scale 0.722). */
.combat .slot[data-ability-slot] .cost-tag { font-size: clamp(var(--t-xs), calc(13px / var(--ui-scale)), 18px); }
/* A cooling spell's count is the brightest thing on its socket: white in a dark outline, larger than the blue mana
   tag (HUD council, 8 November 2026). The pseudo-element fills the socket, so nothing moves. It draws over the key
   cap, which reaches the middle of the socket at the smallest HUD scales, and stays larger than the cap's 13 px: never
   under 16 px on screen (to HUD scale 0.465; 28 px from about scale 0.57 up, as before). */
.combat .slot[data-ability-slot].cd::after { z-index: 2; font-size: clamp(28px, calc(16px / var(--ui-scale)), 35px); color: var(--true); font-variant-numeric: tabular-nums; text-shadow: 2px 0 0 var(--bg-0), -2px 0 0 var(--bg-0), 0 2px 0 var(--bg-0), 0 -2px 0 var(--bg-0), 0 0 6px var(--bg-0); }
/* Ranks read at a glance (Opus, round 6: 10x4 was too small). */
.combat .pips i { width: 14px; height: 6px; background: var(--steel-dark); border-color: var(--steel-line); }
.combat .pips i.on { background: var(--you-light); border-color: var(--trim); box-shadow: 0 0 4px var(--you-glow); }
.combat .plus { background: linear-gradient(var(--you-light), var(--you-deep)); font-family: var(--font-head); font-weight: 400; box-shadow: 0 0 0 1px var(--trim-dark), 0 0 10px var(--levelup-glow); }
/* The portrait stands as tall as the ability sockets (Tyler, 2026-10-27: "Why is the character portrait so small?"). */
.combat .me { position: relative; align-items: center; gap: var(--s1); width: 116px; }
.combat .me .bar { width: 116px; }
/* The skill point note floats above the portrait, so the portrait never moves when you level up or spend a point
   (Tyler, 2026-10-27: "when I level up, it goes up, because there's a skill point thing under it"). It names the
   shortcut and never goes under 13 px on screen (to HUD scale 0.465), out of the layout at any size (HUD council
   round 4, 8 November 2026). */
.combat .points {
  font-size: clamp(var(--t-xs), calc(13px / var(--ui-scale)), 28px);
  line-height: 1.2;
  position: absolute;
  bottom: calc(100% + var(--s2));
  left: 50%;
  transform: translateX(-50%);
  padding: 2px var(--s2);
  background: var(--steel-dark);
  border: 1px solid var(--trim);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  /* Over the buff strip beside it: the starter item's icon covered "above an ability" (first-fifteen audit shots and
     fix walk, 17 November 2026; scorecard E4: the point impossible to miss). */
  z-index: 3;
}
/* The shortcut, under the click (Tyler's first-match walk, 11 November 2026). */
.combat .points .points-key { display: block; font-weight: 400; font-size: .85em; color: var(--text-dim); }
.abil { display: flex; flex-direction: column; gap: var(--s2); position: relative; }
.buffs { position: absolute; bottom: 100%; left: 0; margin-bottom: var(--s2); display: flex; gap: var(--s1); flex-wrap: wrap; max-width: 520px; }
.buff { position: relative; width: 32px; height: 32px; background: url(/c/3af6603e81fa736042efcbcf89da16ccb94c131c68eeaac23a6203724cc46f0b.png) calc(var(--i) * -32px) 0 / auto 32px no-repeat; image-rendering: pixelated; cursor: help; }
.buff b { position: absolute; right: 1px; bottom: 0; z-index: 1; font-size: var(--t-xs); line-height: 1; color: var(--text); text-shadow: 0 0 2px var(--bg-0), 1px 1px 0 var(--bg-0); }
.buff.bad { filter: drop-shadow(0 0 3px var(--enemy)); }
.buff.starter { background: none; border: 1px solid var(--line); }
.buff.starter img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.buff.starter.mastered { border-color: var(--you); }
.slots { display: flex; gap: var(--s2); align-items: flex-end; padding-top: var(--s5); }
.slotcol { align-items: center; gap: 0; }
.slot.passive { margin-bottom: 13px; }
.bars { display: flex; flex-direction: column; gap: 3px; width: 400px; }
/* Health is the urgent number: a taller bar and larger digits, with mana 2 px thinner so the block keeps its height
   (GPT-6.1 Sol, round 5: the health digits were quieter than the gold). */
.bars .bar { height: 22px; background: var(--steel-dark); border-color: var(--steel-dark); outline-color: var(--steel-line); }
/* Health never under 16 px on screen and mana never under 13 px, up to what their bars hold (to HUD scale 0.615 and
   0.684). */
.bars .bar:not(.mana) .val { font-size: clamp(18px, calc(16px / var(--ui-scale)), 26px); text-shadow: 0 0 2px var(--bg-0), 1px 1px 0 var(--bg-0), -1px -1px 0 var(--bg-0), 1px -1px 0 var(--bg-0), -1px 1px 0 var(--bg-0); }
.combat .bar > i { background-image: var(--sheen); }
.bars .bar.mana { height: 16px; }
.bars .bar.mana .val { font-size: clamp(var(--t-xs), calc(13px / var(--ui-scale)), 19px); }
.bars .bar .val { line-height: 1; }
/* Under 35% health the bar's frame pulses amber and its fill turns amber too, never red, which means an enemy (UI council
   round 2; the fill below). */
.bars .bar.low { outline: 2px solid var(--low-health); animation: low-health 1s steps(2, jump-none) infinite; }
/* The digits lead, bold and white; the warning words follow in their own span, quieter: 14 px regular in the low-health
   amber, never under 11 px on screen (HUD council round 6, 8 November 2026: "264 / 1,520 · Low health · Recall B" was
   one bold white string). On a narrow bar the words are cut, never the digits. */
.bars .bar .val { display: flex; justify-content: center; align-items: center; gap: 0.5em; padding: 0 var(--s2); }
.bars .bar .val .note { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: clamp(var(--t-xs), calc(11px / var(--ui-scale)), 23.66px); font-weight: 400; color: var(--low-health); }
@keyframes low-health { 50% { outline-color: var(--trim-dark); } }
@media (prefers-reduced-motion: reduce) { .bars .bar.low { animation: none; } }
/* A fixed width, so the panel never grows when gold gains a digit (2026-10-26 HUD audit: every icon slid at 1,000
   and 10,000 gold). 216 px holds 99,999 gold beside the Shop key. */
.econ { gap: var(--s2); width: 216px; }
.inv { display: grid; grid-template-columns: repeat(3, 48px); gap: var(--s2); justify-content: center; }
.inv :where(.slot) { border-color: var(--steel-line); }
.goldbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--steel-dark);
  border: 2px solid var(--trim-dark);
  padding: var(--s1) var(--s3);
  color: var(--text);
  white-space: nowrap;
}
.goldbox:is(:hover, .virtual-hover) { border-color: var(--trim); }
/* Gold is quieter than health (GPT-6.1 Sol, round 7). */
.goldbox .lg { font-size: 20px; }
.goldbox.spend { border-color: var(--you); box-shadow: 0 0 10px var(--you-glow); }

/* Bottom right: minimap */
.minimap-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  zoom: var(--ui-scale);
  --mm: 0.8;
  width: calc(452px * var(--mm));
  height: calc(222px * var(--mm));
  background: var(--bg-0);
  border: 2px solid var(--trim);
  border-right: none;
  border-bottom: none;
  box-shadow: 0 0 0 4px var(--steel-flat), 0 0 0 5px var(--steel-dark);
}
/* The raid pit's crown: a moonsteel arch over the bowl, so the frame holds the pit rather than cutting it off (Tyler:
   "make sure the minimap shows the rimecoil pit and doesn't cut it off"). The bowl's centre and radius come from the
   map (--pit-x, --pit-r: shares of the canvas's width, set by ui/play/minimap_raid.rs); the bump is drawn over it. */
.minimap-frame.pit-hidden::before { display: none; } /* no empty crown before the raid stirs (GPT-6.1 Sol, round 7) */
.minimap-frame::before {
  content: '';
  position: absolute;
  left: calc(448px * var(--mm) * var(--pit-x));
  top: calc(-42px * var(--mm));
  width: calc((448px * var(--pit-r) * 2 + 24px) * var(--mm));
  height: calc(42px * var(--mm));
  translate: -50% 0;
  background: var(--steel);
  border: 2px solid var(--trim);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 1px var(--steel-dark);
}
/* The canvas reaches 32 of its 212 rows (38.4px) above the frame: the raid bowl's bump pokes out of the rectangle
   (docs/RAID_BOSS.md; ui/play/minimap_raid.rs BAND). Those rows are transparent until 14:00. The canvas takes no
   clicks; #minimap over it is the hit area, its clip-path cut to the rectangle and, once the arena is open, the bump. */
#hud #minimap-art { position: relative; z-index: 1; width: calc(448px * var(--mm)); height: calc(254.4px * var(--mm)); margin-top: calc(-38.4px * var(--mm)); display: block; image-rendering: pixelated; pointer-events: none; }
#minimap { position: absolute; z-index: 2; left: 0; top: calc(-38.4px * var(--mm)); width: calc(448px * var(--mm)); height: calc(254.4px * var(--mm)); }
.minimap-error { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; background: var(--bg-0); color: var(--text); pointer-events: none; }

/* Camp leash warning (camp-feedback.ts) */
.camp-warning {
  position: fixed;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  zoom: var(--ui-scale);
  z-index: var(--z-banner);
  padding: var(--s2) var(--s4);
  background: var(--panel);
  border: 2px solid var(--line-strong);
  font-weight: 700;
  font-size: var(--t-s);
  max-width: 640px;
  text-align: center;
  pointer-events: none;
}
.camp-warning[data-state='warning'] { border-color: var(--physical); color: var(--physical); }
.camp-warning[data-state='returning'] { border-color: var(--text-dim); color: var(--text-dim); }

/* Out of mana: a soft blue glow at the screen edge while no learned spell is affordable; a hard flash when a cast is refused.
   Under 30% health the same glow in amber. Each glow is four strips along the edges (ui/play/hud/edges.rs), not
   one full-screen box with an inset shadow: the browser blends only the strips (about a third of the screen) over the
   game each frame, and the pulse and the flash change only opacity, so nothing is repainted while they run. Each strip
   is the inset shadow's own fall-off: a shadow of spread --s and blur radius 2 × --b is the colour at 1 − Φ((x − s)/b)
   at x from the edge (Φ the normal distribution, --a0 its value at the edge), drawn to s + 2b, where it is under 3%.
   Strips overlap at the corners, where the two blend to what the shadow drew there. `?edges=glow` (body.edges-glow)
   draws the inset shadows as before. */
:is(#mana-edge, #low-health-edge) { position: absolute; inset: 0; pointer-events: none; }
:is(.edge-glow, .edge-flash) > i { position: absolute; opacity: 0; transition: opacity 0.25s;
  --d: calc(var(--s) + 2 * var(--b));
  --stops: color-mix(in srgb, var(--c) var(--a0), transparent) 0, color-mix(in srgb, var(--c) 50%, transparent) var(--s),
    color-mix(in srgb, var(--c) 30.9%, transparent) calc(var(--s) + 0.5 * var(--b)),
    color-mix(in srgb, var(--c) 15.9%, transparent) calc(var(--s) + var(--b)),
    color-mix(in srgb, var(--c) 6.7%, transparent) calc(var(--s) + 1.5 * var(--b)), transparent var(--d); }
:is(.edge-glow, .edge-flash) > .edge-top { left: 0; right: 0; top: 0; height: var(--d); background: linear-gradient(to bottom, var(--stops)); }
:is(.edge-glow, .edge-flash) > .edge-bottom { left: 0; right: 0; bottom: 0; height: var(--d); background: linear-gradient(to top, var(--stops)); }
:is(.edge-glow, .edge-flash) > .edge-left { top: 0; bottom: 0; left: 0; width: var(--d); background: linear-gradient(to right, var(--stops)); }
:is(.edge-glow, .edge-flash) > .edge-right { top: 0; bottom: 0; right: 0; width: var(--d); background: linear-gradient(to left, var(--stops)); }
#mana-edge .edge-glow { --c: var(--mana-tint); --s: 24px; --b: 45px; --a0: 70.3%; }
#mana-edge.on .edge-glow > i { opacity: 0.75; animation: mana-pulse 1.6s ease-in-out infinite; }
#low-health-edge .edge-glow { --c: rgb(255 154 46 / 55%); --s: 30px; --b: 55px; --a0: 70.7%; }
#low-health-edge.on .edge-glow > i { opacity: 0.9; animation: mana-pulse 1s ease-in-out infinite; }
/* Lighter than round 6's, so the edges of the fight stay readable (GPT-6.1 Sol, round 7); the fill now carries it. */
#low-health-edge.critical .edge-glow { --c: rgb(255 154 46 / 75%); --s: 40px; --a0: 76.6%; }
@media (prefers-reduced-motion: reduce) { #low-health-edge.on .edge-glow > i { animation: none; } }
/* The refused cast: a second, brighter set drawn once and faded out (ui/play/hud/edges.rs `flash_mana` alternates
   `go-a` and `go-b`, so a quick repeat restarts the fade with no forced layout). */
#mana-edge .edge-flash { --c: var(--mana); --s: 44px; --b: 70px; --a0: 73.5%; }
.edge-flash.go-a > i { animation: mana-flash-a 0.6s ease-out; }
.edge-flash.go-b > i { animation: mana-flash-b 0.6s ease-out; }
@keyframes mana-flash-a { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mana-flash-b { 0% { opacity: 1; } 100% { opacity: 0; } }
/* `?edges=glow`: the full-screen inset shadows of before 15 November 2026, for comparison. */
body.edges-glow :is(.edge-glow, .edge-flash) > i { display: none; }
body.edges-glow :is(#mana-edge, #low-health-edge) { opacity: 0; transition: opacity 0.25s; }
body.edges-glow #mana-edge { box-shadow: inset 0 0 90px 24px var(--mana-tint); }
body.edges-glow #mana-edge.on { opacity: 0.75; animation: mana-pulse 1.6s ease-in-out infinite; }
body.edges-glow #low-health-edge { box-shadow: inset 0 0 110px 30px rgb(255 154 46 / 55%); }
body.edges-glow #low-health-edge.on { opacity: 0.9; animation: mana-pulse 1s ease-in-out infinite; }
body.edges-glow #low-health-edge.critical { box-shadow: inset 0 0 110px 40px rgb(255 154 46 / 75%); }
@media (prefers-reduced-motion: reduce) { body.edges-glow #low-health-edge.on { animation: none; } }
body.edges-glow #mana-edge:has(> .go-a) { animation: glow-flash-a 0.6s ease-out; }
body.edges-glow #mana-edge:has(> .go-b) { animation: glow-flash-b 0.6s ease-out; }
/* Still starved after a refused cast: the flash, then the pulse again (the flash's class stays on, and alone it would
   leave the glow steady for the rest of the page). */
body.edges-glow #mana-edge.on:has(> .go-a) { animation: glow-flash-a 0.6s ease-out, mana-pulse 1.6s ease-in-out 0.6s infinite; }
body.edges-glow #mana-edge.on:has(> .go-b) { animation: glow-flash-b 0.6s ease-out, mana-pulse 1.6s ease-in-out 0.6s infinite; }
@keyframes glow-flash-a { 0% { opacity: 1; box-shadow: inset 0 0 140px 44px var(--mana); } 100% { opacity: 0.75; } }
@keyframes glow-flash-b { 0% { opacity: 1; box-shadow: inset 0 0 140px 44px var(--mana); } 100% { opacity: 0.75; } }
/* Under 35% the fill itself turns amber, so the bar reads at a glance (Grok and Opus, round 6); red stays the enemy's.
   Its own amber, not --physical's orange (HUD council round 6, 8 November 2026). */
.bars .bar.low > i { background: var(--low-health); }
.bars .bar.low .val { color: var(--text); }
@keyframes mana-pulse { 50% { opacity: 0.4; } }
/* Graphics: Low (body.low-graphics, graphics.rs `LOW_CLASS`) also spares the page: the edges glow without pulsing, and
   the top bar and the stats panel keep their steel edge without the soft drop shadow under them, which the top bar
   repaints with its clock every second. Nothing a player reads changes. */
body.low-graphics :is(#mana-edge, #low-health-edge).on .edge-glow > i { animation: none; }
body.low-graphics :is(.topbar, .statspanel) { box-shadow: var(--steel-edge); }

.core-alert {
  z-index: var(--z-banner);
  position: absolute;
  top: calc(124px * var(--ui-scale));
  left: 50%;
  transform: translateX(-50%);
  color: var(--enemy);
  border-color: var(--enemy);
  padding: var(--s2) var(--s3);
  font-weight: 700;
  pointer-events: none;
}

.match-performance { position: fixed; top: 8px; left: 12px; z-index: 20; pointer-events: none; color: var(--text-dim); font-size: var(--t-xs); background: var(--scrim); padding: 1px var(--s1); font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }

.slot.buff-active { border-color: #ffbd62; box-shadow: 0 0 8px #ffbd6280, inset 0 0 5px #ffbd6240; }

/* A bot's 3 s answer to a ping, over the top of its portrait: it never changes the bar's size. */
.answer-chip { position: absolute; top: -5px; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; padding: 0 4px; font-size: 10px; font-weight: 700; line-height: 12px; white-space: nowrap; color: var(--bg-0); background: var(--you); }
.tm:has(.answer-chip) .portrait { box-shadow: 0 0 0 2px var(--you), 0 0 8px var(--you); }
/* Four circular sectors match the gesture's cardinal directions. */
.ping-wheel { position: fixed; z-index: var(--z-banner); width: 200px; height: 200px; transform: translate(-50%, -50%); pointer-events: none; font-size: 11px; color: var(--text); border: 2px solid var(--steel-line); border-radius: 50%; background: var(--steel); box-shadow: 0 3px 16px #000b, inset 0 0 0 4px #0b1723; }
.ping-wheel::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 50%; background: repeating-conic-gradient(from 45deg, var(--steel-line) 0deg 1deg, transparent 1deg 90deg); }
.ping-wheel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); z-index: 3; border: 1px solid var(--steel-line); border-radius: 50%; background: #0b1723; }
.ping-choice { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 50%; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.ping-choice.active { color: var(--you); background: #665025; box-shadow: inset 0 0 0 3px var(--you); }
.ping-choice.right { clip-path: polygon(50% 50%, 100% 0, 100% 100%); padding-left: 127px; }
.ping-choice.left { clip-path: polygon(50% 50%, 0 100%, 0 0); padding-right: 127px; }
.ping-choice.up { clip-path: polygon(50% 50%, 0 0, 100% 0); padding-bottom: 127px; }
.ping-choice.down { clip-path: polygon(50% 50%, 100% 100%, 0 100%); padding-top: 127px; }
.ping-center, .ping-scope { position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 4; white-space: nowrap; font-size: 9px; }
.ping-scope { top: calc(50% - 9px); color: var(--ally); }
.ping-center { top: calc(50% + 8px); color: var(--text-dim); }

/* Training (ui/play/training.rs, training_layer.rs; Tyler, 9 November 2026). The HUD shows a piece at a time: nothing
   at Move, the player panel's portrait and health from Attack, the ability bar from Abilities. What Training does not
   teach stays hidden throughout; the first match teaches it. */
body.training-hud .topbar, body.training-hud .mystats, body.training-hud .statspanel, body.training-hud .minimap-frame,
body.training-hud .inspection-dock, body.training-hud .recall, body.training-hud .status, body.training-hud .team-ping-notice,
body.training-hud #player-chat, body.training-hud .combat .econ, body.training-hud .combat .buffs, body.training-hud .combat .bar.xp,
body.training-hud .combat .points, body.training-hud .combat .plus, body.training-hud .combat .pips { display: none !important; }
/* Nor, in Training, the skill-point label wherever it shows, the low-health edge and the bar's "Low health · Recall"
   note: Training gives the abilities and keeps the Knight above half health (walk 4). */
body.training-hud .points, body.training-hud .plus, body.training-hud #low-health-edge, body.training-hud .bar .note { display: none !important; }
body.training-hud:not(.training-health) #player-panel { display: none !important; }
/* From the Shop step on (training.rs `SHOP_CLASS`): the gold, the bag and the shop button the step teaches. */
body.training-hud.training-shop .combat .econ { display: flex !important; }
body.training-hud:not(.training-abilities) #player-panel .slots, body.training-hud:not(.training-abilities) #player-panel .bar.mana { display: none !important; }
/* R is not taught in Training: its slot waits for the first match. */
body.training-hud #player-panel [data-ability-slot="3"] { display: none !important; }
body.training-hud #player-panel, body.training-hud.training-abilities #player-panel .slots { animation: training-reveal 520ms cubic-bezier(.2, 1.4, .4, 1) both; }
/* Individual translate and scale: the panel's own transform centres it. */
@keyframes training-reveal { from { opacity: 0; translate: 0 18px; scale: .94; filter: brightness(2); } to { opacity: 1; translate: 0 0; scale: 1; filter: none; } }
/* The prompt stands beside the thing to act on, never over it (placed each frame by training_layer.rs): on the side of
   its target away from the player's champion, level with the target's body, its pointer at the target; over the
   ability bar for the abilities. The box fits its text and wraps a long line. */
.training-prompt { position: fixed; left: -999px; top: -999px; z-index: var(--z-overlay); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-sizing: border-box; width: max-content; max-width: 300px; padding: 8px 14px; text-align: center; background: var(--panel-flat); border: 2px solid var(--you-light);
  box-shadow: 0 0 0 2px var(--bg-0), 0 0 18px var(--you-glow); animation: training-pop 260ms cubic-bezier(.2, 1.6, .4, 1) both, training-bob 1.6s ease-in-out 260ms infinite; }
.training-prompt.world, .training-prompt.world[data-side="right"] { transform: translate(56px, calc(-50% - 48px)); }
.training-prompt.world[data-side="left"] { transform: translate(calc(-100% - 56px), calc(-50% - 48px)); }
.training-prompt:is(.abilities, .shop-button) { transform: translate(-50%, calc(-100% - 14px)); }
/* While the ability prompt sits by the keys, where to stand: over the Cleric, a pointer down at it (walk 3). */
.training-mark { position: fixed; left: -999px; top: -999px; z-index: var(--z-overlay); pointer-events: none; transform: translate(-50%, calc(-100% - 96px));
  padding: 2px 10px; font-size: var(--t-m); color: var(--bg-0); background: var(--you-light); box-shadow: 0 0 14px var(--you-glow); animation: training-bob 1.2s ease-in-out infinite; }
.training-mark::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--you-light); }
.training-prompt::after { content: ''; position: absolute; width: 14px; height: 14px; background: var(--panel-flat); transform: rotate(45deg); }
.training-prompt:is(.abilities, .shop-button)::after { left: 50%; bottom: -10px; margin-left: -7px; border-right: 2px solid var(--you-light); border-bottom: 2px solid var(--you-light); }
.training-prompt.world::after, .training-prompt.world[data-side="right"]::after { left: -10px; top: 50%; margin-top: -7px; border-left: 2px solid var(--you-light); border-bottom: 2px solid var(--you-light); }
.training-prompt.world[data-side="left"]::after { left: auto; right: -10px; border-left: 0; border-bottom: 0; border-right: 2px solid var(--you-light); border-top: 2px solid var(--you-light); }
/* The target off screen (training.rs edge_prompt): the prompt waits at the screen's edge, centred on its point, and an
   arrow points the way (Tyler's walk, 11 November 2026: the dummy's prompt left the screen with it). */
.training-arrow { display: none; font-size: var(--t-l); line-height: 1; color: var(--you-light); rotate: var(--prompt-angle, 0deg); }
.training-prompt.world[data-side="edge"] { transform: translate(-50%, -50%); }
.training-prompt.world[data-side="edge"]::after { display: none; }
.training-prompt.world[data-side="edge"] .training-arrow { display: block; }
@keyframes training-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes training-bob { 50% { translate: 0 -4px; } }
.training-line { margin: 0; font-size: var(--t-l); line-height: 1.25; color: var(--text); overflow-wrap: break-word; }
/* The control beside a prompt's words (training_layer.rs `control_picture`, scorecard T2): a mouse with its right button
   lit, or the key as a keycap. */
.training-mouse { position: relative; display: inline-block; width: 18px; height: 26px; margin-right: 10px; vertical-align: -5px;
  border: 2px solid var(--text); border-radius: 9px 9px 8px 8px; }
.training-mouse::after { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 10px; margin-left: -1px; background: var(--text); }
.training-mouse > b { position: absolute; top: 0; right: 0; width: 50%; height: 10px; border-top-right-radius: 7px; background: var(--you-light); }
.training-line > .training-key { margin-right: 10px; vertical-align: 2px; }
.training-progress, .training-reset { margin: 0; font-size: var(--t-s); color: var(--text-dim); }
.training-reset { color: var(--you-light); }
/* The opening line, on its own dark banner across the top so no scenery runs through it, while the player finds the
   marker. */
.training-intro { position: absolute; top: 0; left: 0; right: 0; z-index: var(--z-overlay); pointer-events: none; padding: 18px 16px 20px; text-align: center;
  background: linear-gradient(var(--bg-0) 55%, transparent); text-shadow: 0 2px 0 var(--bg-0); animation: training-intro 900ms ease-out both; }
.training-intro h2 { margin: 0; font: 400 calc(var(--t-l) * 1.8)/1.1 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--you-light); }
.training-intro p { margin: 6px 0 0; font-size: var(--t-l); color: var(--text); }
@keyframes training-intro { from { opacity: 0; } to { opacity: 1; } }
.training-skip .key { margin-left: 6px; }
/* The layer under these takes no pointer: each takes its own (the real-screen walk's Skip click went to the arena). */
.training-skip-dock { position: absolute; top: var(--s4); right: var(--s4); z-index: var(--z-overlay); pointer-events: auto; display: flex; gap: var(--s2); }
/* The completion: the reward, the next goal and Play. */
.training-done-scrim { position: absolute; inset: 0; z-index: var(--z-overlay); pointer-events: auto; display: grid; place-items: center; background: color-mix(in srgb, var(--bg-0) 45%, transparent); }
.training-done { width: 380px; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); text-align: center; border-color: var(--you-light); animation: training-pop 320ms cubic-bezier(.2, 1.6, .4, 1) both; }
.training-done h2 { margin: 0; font: 400 var(--t-l)/1.1 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--you-light); }
.training-done p { margin: 0; }
.training-reward { font: 400 calc(var(--t-l) * 1.4)/1.1 var(--font-head); color: var(--silver-light); animation: training-pop 420ms 240ms cubic-bezier(.2, 1.8, .4, 1) both; }
.training-done .training-play { width: 100%; margin-top: var(--s2); }
.training-done .training-leave { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .training-prompt, .training-intro, .training-done, .training-reward, body.training-hud #player-panel, body.training-hud.training-abilities #player-panel .slots { animation: none; }
}
/* An account's first matches (tips.rs FIRST_MATCH_CLASS, Tyler's first-match walk, 11 November 2026): the stats rows
   wait behind All stats, the KDA and CS strip for the scoreboard, and the map says what its numbers are. */
body.first-match-hud .statspanel { width: auto; }
body.first-match-hud .statspanel .stat, body.first-match-hud .mystats .stat-pair { display: none; }
.minimap-key { display: none; }
body.first-match-hud .minimap-key:not([hidden]) { display: block; position: absolute; right: 0; bottom: calc(100% + var(--s2)); margin: 0; padding: 2px var(--s2);
  font-size: var(--t-s); color: var(--text); background: var(--panel-flat); border: 1px solid var(--trim); white-space: nowrap; pointer-events: none; }
body.first-match-hud .tip-dock { bottom: 236px; } /* clear of the map's key line */
/* One thing at a time (tips.rs SHOWING_CLASS, scorecard E1): while a tip shows in the first matches, the skill-point
   note and the map's key line wait. The + stays, and glows while a point waits (E4); the skill tip rings it. Only the
   glow changes, so nothing moves. */
body.first-match-hud.tip-showing .minimap-key:not([hidden]) { display: none; }
body.first-match-hud.tip-showing .combat .points { visibility: hidden; }
body.first-match-hud .combat .plus { animation: plus-glow 1.2s ease-in-out infinite; }
body.tip-skill .combat .plus { outline: 3px solid var(--you-light); outline-offset: 2px; }
/* What wins and what is next (goal_line.rs, scorecard L6): one quiet line under the top bar, in the first matches.
   Only the match's own line (`data-hud`): Home's goal card names its text goal-line too (goal.rs), and the bare class
   pulled it out of the card to float over Home. */
.goal-line[data-hud] { position: absolute; top: 80px; left: 50%; translate: -50% 0; zoom: var(--ui-scale); margin: 0; padding: 2px var(--s3);
  font-size: var(--t-s); color: var(--text); background: var(--panel-flat); border: 1px solid var(--trim-dark); white-space: nowrap; pointer-events: none; }
@keyframes plus-glow { 50% { box-shadow: 0 0 0 1px var(--trim-dark), 0 0 22px 6px var(--levelup-glow); } }
@media (prefers-reduced-motion: reduce) { body.first-match-hud .combat .plus { animation: none; } }
/* First-time tips (ui/play/tips.rs): one at a time, above the minimap. */
.tip-dock { position: absolute; right: var(--s4); bottom: 200px; zoom: var(--ui-scale); z-index: var(--z-overlay); pointer-events: none; }
/* The death tip points at the Damage taken panel (tips.rs, DEATH_CLASS). */
body.tip-death #death-recap { outline: 3px solid var(--you-light); outline-offset: 3px; box-shadow: 0 0 18px var(--you-glow); }
.tip-dock > * { pointer-events: auto; }
.tip-card { width: 340px; padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s2); border-color: var(--you); }
.tip-card p { margin: 0; font-size: var(--t-m); line-height: 1.3; color: var(--text); }

/* "Your lane" (ui/play/lane_guide.rs): an arrow at the screen's edge toward the player's lane and a mark on the
   minimap, in an account's first matches when they are out of lane with nothing to explain it. */
.lane-pointer { position: fixed; left: -999px; top: -999px; z-index: var(--z-overlay); pointer-events: none; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px; padding: 4px 10px; color: var(--bg-0); background: var(--you-light); box-shadow: 0 0 14px var(--you-glow);
  font-size: var(--t-m); animation: training-bob 1.4s ease-in-out infinite; }
.lane-arrow { display: inline-block; rotate: var(--lane-angle, 0deg); }
.lane-mark { position: fixed; left: -999px; top: -999px; z-index: var(--z-overlay); pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 2px solid var(--bg-0); background: var(--you-light); box-shadow: 0 0 8px var(--you-glow); rotate: 45deg; }
/* The tip-condition view (?tips=debug, tips.rs): at the left edge above the stats, collapsible (walk 3: at the top it
   covered the HUD). */
#tip-debug { position: fixed; left: 8px; bottom: 170px; z-index: var(--z-overlay); max-height: 45vh; max-width: 340px; overflow: auto; padding: 4px 8px; opacity: .92; }
#tip-debug summary { cursor: pointer; }
#tip-debug table { border-collapse: collapse; }
#tip-debug td, #tip-debug th { padding: 0 4px; }
