/* Study Quest — camp.css · EMBER & IRON (docs/DESIGN.md is law)
 * The camp & reading HUD (js/ui-camp.js): the reading chip, the sticky "Still reading?" line, the meal chip, the calm
 * notes (all in the HUD's top-centre column), the camp card ("Make camp" / "Stop eating?", bottom centre like the quest
 * card), and the glyph accents of the Refreshed / Well Fed / Nourished buff wells.
 * Load after hud.css. Own prefix `.camp-*` only; theme tokens (--cx-*) and the HUD's small buttons (.hbtn, hud.css) are
 * composed, never restyled. Smoked steel in a bronze hairline, iron sockets; ember only on the reading fill (it is XP)
 * and on focus. No idle loops: the only motion is a one-off fade/rise after the player's own key or a state change.
 * Tuned for 1280×800 and compact 480×360 (`.camp-compact`, set by ui-camp.js from the HUD's compact mode).
 */

.camp-tray, .camp-dock, .camp-card {
  --camp-plate-sh: inset 0 1px 0 rgba(196, 204, 214, 0.10), inset 0 0 0 1px rgba(176, 122, 60, 0.55), inset 0 0 0 3px rgba(5, 5, 6, 0.86),
    inset 0 0 0 4px rgba(138, 145, 154, 0.14), 0 4px 14px rgba(0, 0, 0, 0.6);
  --camp-outline: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 0 1px 3px rgba(0, 0, 0, 0.9);
  --camp-bone: var(--cx-text, #ebe4d6);
  --camp-ash: var(--cx-text-dim, #aea89c);
  --camp-gold: var(--cx-gold-text, #e3b562);
  --camp-candle: var(--cx-candle, #ffc06a);
  --camp-patina: #9cc9b9;
  font-family: var(--cx-font-body, Georgia, serif);
  color: var(--camp-bone);
}
.camp-tray .hidden, .camp-dock .hidden, .camp-card.hidden, .camp-tray.hidden, .camp-dock.hidden { display: none !important; }

/* Glyph accents (also inside the HUD's buff wells and on the camp card) */
.camp-icon { display: block; width: 100%; height: 100%; }
.camp-g-ember { fill: var(--cx-torch, #ff8a3d); }
.camp-g-leaf { fill: #a7d98f; }

/* ================================================================== TRAY (top centre, inside .hud-top) */
.camp-tray {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  pointer-events: none;
}
.camp-tray--float { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 16px)); z-index: 4; }
/* V5: below the music window's now-playing chip (fixed at top 40px, music-ui.css), so a new track never covers the chip */
.hud-top > .camp-tray:not(.camp-compact) { margin-top: 24px; }
.camp-tray:empty { display: none; }

/* ---- Chips: a smoked-steel plate in a bronze hairline with an iron socket (like the phone frame) */
.camp-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 268px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 5px 6px 5px 5px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1, 2px);
  background: var(--cx-caps), linear-gradient(180deg, rgba(255, 138, 61, 0.06), rgba(255, 138, 61, 0) 70%), var(--cx-bg-smoke, #15181c);
  box-shadow: var(--camp-plate-sh);
  pointer-events: auto;
  animation: campRise var(--cx-dur-calm, 480ms) var(--cx-ease, ease-out);
}
.camp-socket {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #efe6d4;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-3, #b07a3c), 0 0 0 3px #000, 0 0 0 5px #2e3237, 0 0 0 6px #000;
}
.camp-socket .camp-icon { width: 18px; height: 18px; }
.camp-socket--read { background: radial-gradient(circle at 50% 70%, #6b3414 0%, #2c1409 55%, #0d0603 100%); }
.camp-socket--meal { background: radial-gradient(circle at 50% 75%, #5a3416 0%, #241409 55%, #0b0603 100%); }
.camp-socket--ask { background: radial-gradient(circle at 50% 70%, #3a2a1a 0%, #1a130c 60%, #080604 100%); }

.camp-chip__body { flex: 1 1 auto; min-width: 0; cursor: help; }
.camp-chip__line {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  font: 400 14px/17px var(--cx-font-body, Georgia, serif);
  text-shadow: 0 1px 1px #000;
}
.camp-chip__title { font: 700 13px/16px var(--cx-font-label, serif); letter-spacing: 0.04em; color: var(--camp-gold); }
.camp-chip__time { font: 700 13px/16px var(--cx-font-num, sans-serif); font-variant-numeric: lining-nums tabular-nums; color: var(--camp-bone); }
.camp-chip__xp { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 500 13px/16px var(--cx-font-num, sans-serif); font-variant-numeric: lining-nums tabular-nums; color: var(--camp-ash); }
.camp-chip__xp.is-xp { font-weight: 700; color: var(--camp-candle); }
.camp-chip__xp:empty { display: none; }
.camp-dot::before { content: '\00b7'; margin: 0 5px; color: rgba(235, 228, 214, 0.45); }

/* the iron channel: a 90-minute reading bar (a notch per section) or the meal bar (a notch where the buff is sure) */
.camp-bar {
  position: relative;
  display: block;
  height: 6px;
  margin-top: 4px;
  border: 1px solid #000;
  border-radius: 2px;
  background: #040405;
  box-shadow: inset 0 1px 2px #000, 0 0 0 1px #3a3f46;
  overflow: hidden;
}
.camp-bar__fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--v, 0));   /* scaled, never a width change */
  background: var(--cx-bar-enamel), var(--cx-bar-xp);
}
.camp-bar--meal .camp-bar__fill { background: var(--cx-bar-enamel), var(--cx-bar-verdigris); }
.camp-bar__ticks { position: absolute; inset: 0; }
.camp-bar__ticks b { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: rgba(0, 0, 0, 0.75); box-shadow: 1px 0 0 rgba(138, 145, 154, 0.18); }
.camp-bar__ticks b.lit { background: rgba(255, 214, 140, 0.85); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6); }
.camp-bar__mark {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: calc(var(--at, 0.83) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--cx-bronze-hi, #e2b56a);
  box-shadow: 0 0 0 1px #000;
}
.camp-bar.is-sure .camp-bar__mark { background: #cfe9dd; }

/* the chip's key: a small iron keycap plate (R end · E stop) */
.camp-chip__key {
  flex: none;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px 0 5px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1, 2px);
  font: 700 12px/1 var(--cx-font-label, serif);
  letter-spacing: 0.04em;
  color: var(--camp-ash);
  text-shadow: 0 1px 0 #000;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(210, 220, 235, 0.10), rgba(210, 220, 235, 0) 2px), linear-gradient(180deg, #2a2d32 0%, #1a1c20 60%, #111316 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.35), 0 1px 0 rgba(0, 0, 0, 0.5);
  transition: color var(--cx-dur-quick, 160ms) var(--cx-ease, ease-out);
}
.camp-chip__key:hover { color: var(--cx-gold-leaf, #f4d58c); box-shadow: inset 0 0 0 1px rgba(226, 181, 106, 0.8), 0 1px 0 rgba(0, 0, 0, 0.5); }
.camp-chip__key:active { transform: translateY(1px); }
.camp-chip__key:focus { outline: none; }
.camp-chip__key:focus-visible { outline: 2px solid var(--cx-torch, #ff8a3d); outline-offset: 1px; }
.camp-chip__key kbd, .camp-ask kbd, .camp-card kbd { font-size: 10px; line-height: 13px; padding: 0 4px; min-width: 0; }

/* paused while "Still reading?" waits: the ember goes dim, nothing else moves */
.camp-read.is-paused .camp-bar__fill { opacity: 0.4; filter: saturate(0.4); }
.camp-read.is-paused .camp-chip__title { color: var(--camp-ash); }
.camp-read.is-paused .camp-socket--read { background: radial-gradient(circle at 50% 70%, #3a2a1e 0%, #1a130d 60%, #080604 100%); }
.camp-read.is-short .camp-bar__fill { opacity: 0.55; }
.camp-meal.is-sure .camp-chip__xp { color: var(--camp-patina); font-weight: 700; }

/* ---- "Still reading?": a sticky, quiet plate; two buttons; never takes focus */
.camp-ask {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(500px, 100%);
  box-sizing: border-box;
  padding: 6px 7px 6px 7px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1, 2px);
  background: var(--cx-caps), radial-gradient(ellipse at 18% 120%, rgba(255, 138, 61, 0.14), rgba(255, 138, 61, 0) 60%), var(--cx-bg-smoke, #15181c);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.1), inset 0 0 0 1px rgba(226, 181, 106, 0.6), inset 0 0 0 3px rgba(5, 5, 6, 0.86),
    inset 0 0 0 4px rgba(138, 145, 154, 0.14), 0 4px 14px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: campRise var(--cx-dur-calm, 480ms) var(--cx-ease, ease-out);
}
/* under the reading chip it hangs from it: no socket of its own, a bronze hanger between the two plates */
.camp-ask.is-attached { margin-top: -2px; padding-left: 12px; }
.camp-ask.is-attached .camp-socket--ask { display: none; }
.camp-ask.is-attached::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -9px;
  width: 34px;
  height: 8px;
  margin-left: -17px;
  background: var(--cx-rivet) left 0 top 1px / 6px 6px no-repeat, var(--cx-rivet) right 0 top 1px / 6px 6px no-repeat,
    linear-gradient(90deg, transparent 5px, #3b2614 5px, #7a5229 50%, #3b2614 calc(100% - 5px), transparent calc(100% - 5px)) center / 100% 3px no-repeat;
}
.camp-ask__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; cursor: help; }
.camp-ask__q { font: 700 15px/18px var(--cx-font-head, serif); letter-spacing: 0.04em; color: var(--cx-gold-leaf, #f4d58c); text-shadow: 0 1px 1px #000; }
.camp-ask__why { font: 400 14px/17px var(--cx-font-body, serif); color: var(--camp-bone); text-shadow: 0 1px 1px #000; }
.camp-ask__more { font: 400 13px/16px var(--cx-font-body, serif); color: var(--camp-ash); text-shadow: 0 1px 1px #000; }
.camp-ask__more:empty { display: none; }
.camp-ask__btns { flex: none; display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.camp-ask .hbtn { justify-content: flex-start; pointer-events: auto; }
.camp-ask .hbtn:focus { outline: none; }
.camp-ask .hbtn:focus-visible { outline: 2px solid var(--cx-torch, #ff8a3d); outline-offset: 1px; }
.camp-ask.is-closed .camp-ask__why { color: var(--camp-bone); }

/* ---- Calm notes: one line on soot, fading at both ends; never clickable */
.camp-notes { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 100%; pointer-events: none; }
.camp-notes:empty { display: none; }
.camp-note {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 26px 3px 26px;
  font: 400 15px/19px var(--cx-font-body, serif);
  color: var(--camp-bone);
  text-shadow: var(--camp-outline);
  background: linear-gradient(90deg, rgba(7, 8, 10, 0), rgba(7, 8, 10, 0.74) 14%, rgba(7, 8, 10, 0.74) 86%, rgba(7, 8, 10, 0));
  transition: opacity 0.6s var(--cx-ease-in, ease-in);
  animation: campRise var(--cx-dur-calm, 480ms) var(--cx-ease, ease-out);
}
.camp-note.is-leaving { opacity: 0; }
.camp-note__icon { flex: none; width: 17px; height: 17px; color: #e9dcc4; filter: drop-shadow(0 1px 0 #000); }
.camp-note--good .camp-note__icon { color: var(--camp-patina); }
.camp-note--hint { color: var(--cx-gold-leaf, #f4d58c); }
.camp-note__text { min-width: 0; }
.camp-note__tail { font: 700 14px/1 var(--cx-font-num, sans-serif); color: var(--camp-candle); white-space: nowrap; }

/* ================================================================== DOCK (compact: the question above the action bar) */
.camp-dock {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-top, 56px) + 8px);
  transform: translateX(-50%);
  width: min(468px, calc(100vw - 12px));
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}
.camp-dock:empty { display: none; }

/* ================================================================== CAMP CARD (E): forged iron frame, smoked steel inside */
.camp-card {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-top, 84px) + 24px);
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 20px));
  box-sizing: border-box;
  padding: 10px 14px 9px 16px;
  z-index: 6;
  pointer-events: auto;
  outline: none;
}
.camp-card::before {
  /* the forged frame: iron band, cap corners, bronze rivets (the quest card's frame, in iron all through) */
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 1px solid var(--cx-line, #030304);
  border-radius: var(--cx-r-2, 3px);
  background: var(--cx-caps), var(--cx-rivet) left 10px bottom 1px / 7px 7px no-repeat, var(--cx-rivet) right 10px bottom 1px / 7px 7px no-repeat,
    var(--cx-rivet) right 10px top 1px / 7px 7px no-repeat, var(--cx-bg-iron);
  box-shadow: inset 0 0 0 1px rgba(196, 204, 214, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}
.camp-card::after {
  /* the panel: smoked steel with a firelight pool rising from below, in a bronze hairline */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 1px;
  background: radial-gradient(ellipse at 50% 135%, rgba(255, 138, 61, 0.16), rgba(255, 138, 61, 0) 62%), var(--cx-bg-smoke, #15181c);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.7), inset 0 0 0 2px #000, inset 0 2px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.camp-card.camp-in { animation: campCardIn var(--cx-dur-quick, 160ms) ease-out; }
@keyframes campCardIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes campRise { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.camp-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  padding: 0 0 5px 30px;
  background: linear-gradient(90deg, rgba(176, 122, 60, 0.55), rgba(176, 122, 60, 0)) left bottom / 100% 1px no-repeat;
}
.camp-card__pin {
  /* the ember medallion pins the card to its frame (the flame emblem = the campfire) */
  position: absolute;
  left: -18px;
  top: -18px;
  width: 44px;
  height: 44px;
  z-index: 1;
  background: var(--cx-orn-seal) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.camp-card__title { flex: 1 1 auto; font: 700 18px/1.1 var(--cx-font-head, serif); letter-spacing: 0.05em; color: var(--camp-gold); text-shadow: var(--cx-sh-text-gold, 0 1px 0 #000); }
.camp-card__x {
  flex: none;
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cx-orn-close) center / 100% 100% no-repeat;
}
.camp-card__x:hover { filter: brightness(1.2); }
.camp-card__x:focus { outline: none; }
.camp-card__x:focus-visible { box-shadow: var(--cx-focus); }
.camp-card__sub { margin: 4px 0 8px; font: 400 14px/18px var(--cx-font-body, serif); color: var(--camp-ash); }
.camp-card__sub.is-blocked { color: var(--camp-candle); }

.camp-card__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.camp-card.is-confirm .camp-card__opts { display: none; }
.camp-confirm { display: none; }
.camp-card.is-confirm .camp-confirm { display: block; }

/* a meal / snack plate: bevelled dark bronze (two equal choices — the only two bronze plates of this card) */
.camp-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 8px 7px 7px;
  border: 1px solid #120a03;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  color: #f7e3b2;
  /* V5: smoked-steel plates in a bronze hairline, like the quest card's ratings (DESIGN rule 3: one bronze plate per
     view, §12: no wood grain); the ember comes up from below on hover */
  background: linear-gradient(180deg, rgba(196, 204, 214, 0.2), rgba(196, 204, 214, 0) 2px),
    radial-gradient(ellipse at 30% 0%, rgba(125, 136, 149, 0.22), rgba(125, 136, 149, 0) 70%),
    linear-gradient(180deg, #353a41 0%, #23272c 45%, #191c20 78%, #111316 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.62), inset 0 -2px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: transform 0.08s ease-out;
}
.camp-opt:hover {
  background: linear-gradient(180deg, rgba(196, 204, 214, 0.26), rgba(196, 204, 214, 0) 2px),
    radial-gradient(ellipse at 50% 130%, rgba(255, 138, 61, 0.34), rgba(255, 138, 61, 0) 70%),
    linear-gradient(180deg, #3b4148 0%, #282c32 45%, #1c1f23 78%, #131518 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 170, 90, 0.75), inset 0 -2px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.55);
}
.camp-opt:focus { outline: none; }
.camp-opt:focus-visible { outline: 2px solid var(--cx-torch, #ff8a3d); outline-offset: 1px; }
.camp-opt.is-pressed { transform: translateY(1px); }
.camp-opt__icon {
  flex: none;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #fbeedb;
  background: radial-gradient(circle at 40% 32%, #6b4424, #2c1a0c 62%, #120a04 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(242, 201, 122, 0.55), 0 0 0 3px #000, inset 0 -6px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.camp-opt__icon .camp-icon { width: 26px; height: 26px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.8)); }
.camp-opt.is-cd .camp-opt__icon .camp-icon { opacity: 0.4; }
.camp-opt--snack .camp-opt__icon { background: radial-gradient(circle at 40% 32%, #4f5a2a, #222812 62%, #0b0d05 100%); }
/* the cooldown sweep (classic action-button convention): the dark part is what is left */
.camp-opt__sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(rgba(0, 0, 0, 0.74) calc(var(--cd, 0) * 360deg), rgba(0, 0, 0, 0) calc(var(--cd, 0) * 360deg));
  pointer-events: none;
}
.camp-opt__cdnum {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 15px/1 var(--cx-font-num, sans-serif);
  color: var(--cx-gold-leaf, #f4d58c);
  text-shadow: var(--camp-outline);
  pointer-events: none;
}
.camp-opt__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.camp-opt__row { display: flex; align-items: baseline; gap: 6px; }
.camp-opt__name { font: 700 15px/1.15 var(--cx-font-label, serif); letter-spacing: 0.04em; color: #f7e3b2; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75); }
.camp-opt__len { font: 700 12px/1 var(--cx-font-num, sans-serif); color: #e8d8ba; text-shadow: 0 1px 0 #000; }
.camp-opt__buff { font: 400 13px/1.2 var(--cx-font-body, serif); color: #f1e2c4; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-opt__pct { font: 700 12px/1 var(--cx-font-num, sans-serif); color: var(--camp-candle); }
.camp-opt__state { font: 700 12px/1.25 var(--cx-font-num, sans-serif); letter-spacing: 0.02em; color: #bfe6d3; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.camp-opt__key { position: absolute; right: 5px; bottom: 5px; }
.camp-card kbd.camp-opt__key { font-size: 11px; padding: 0 4px; }
/* on cooldown: dead iron, the sweep over the dish, the time left in bone */
.camp-opt.is-cd, .camp-opt.is-blocked {
  cursor: default;
  color: var(--camp-ash);
  background: linear-gradient(180deg, rgba(210, 220, 235, 0.08), rgba(210, 220, 235, 0) 2px), var(--cx-tex-iron),
    linear-gradient(180deg, #2c3035 0%, #1d2024 55%, #131518 100%);
  box-shadow: inset 0 0 0 1px rgba(138, 145, 154, 0.22), 0 1px 2px rgba(0, 0, 0, 0.55);
}
.camp-opt.is-cd .camp-opt__name, .camp-opt.is-blocked .camp-opt__name { color: #cfc8b9; }
.camp-opt.is-cd .camp-opt__buff, .camp-opt.is-blocked .camp-opt__buff { color: var(--camp-ash); }
.camp-opt.is-cd .camp-opt__pct, .camp-opt.is-blocked .camp-opt__pct { color: #d9b98a; }
.camp-opt.is-cd .camp-opt__state { color: var(--camp-bone); }
.camp-opt.is-blocked .camp-opt__state { color: var(--camp-ash); }
.camp-opt.is-cd .camp-opt__icon, .camp-opt.is-blocked .camp-opt__icon { filter: saturate(0.35); }

.camp-confirm__text { font: 400 15px/1.35 var(--cx-font-body, serif); color: var(--camp-bone); }
.camp-confirm__text .camp-ok { color: var(--camp-patina); }
.camp-bar--lg { height: 8px; margin: 8px 0 9px; }
.camp-confirm__btns { display: flex; gap: 8px; justify-content: flex-end; }

.camp-card__foot { margin-top: 8px; min-height: 18px; font: 400 13px/18px var(--cx-font-body, serif); color: var(--camp-ash); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-card__foot.is-msg { color: var(--camp-candle); white-space: normal; }
.camp-card__foot.is-empty { display: none; }
.camp-card__foot.is-note { color: var(--camp-bone); font-style: italic; }
.camp-card__foot .camp-dot::before { margin: 0 6px; }

/* ================================================================== COMPACT (480×360 beside a PDF) */
.camp-tray.camp-compact { align-items: flex-end; gap: 4px; }
.camp-compact .camp-chip { min-width: 0; gap: 6px; padding: 3px 4px 3px 3px; }
.camp-compact .camp-socket { width: 20px; height: 20px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-3, #b07a3c), 0 0 0 3px #000; }
.camp-compact .camp-socket .camp-icon { width: 13px; height: 13px; }
.camp-compact .camp-chip__line { font-size: 12px; line-height: 14px; }
.camp-compact .camp-chip__title { font-size: 12px; line-height: 14px; letter-spacing: 0.02em; }
.camp-compact .camp-chip__time, .camp-compact .camp-chip__xp { font-size: 12px; line-height: 14px; }
.camp-compact .camp-dot::before { margin: 0 3px; }
.camp-compact .camp-bar { height: 4px; margin-top: 2px; }
.camp-compact .camp-chip__key { padding: 0 3px; }
.camp-compact .camp-chip__key span { display: none; }
.camp-compact .camp-note { padding: 2px 16px; font-size: 13px; line-height: 16px; }
.camp-compact .camp-note__icon { width: 14px; height: 14px; }
.camp-compact .camp-note__tail { font-size: 12px; }
.camp-dock .camp-notes { margin-bottom: 4px; }
.camp-dock .camp-note:not(:last-child) { display: none; }
.camp-compact .camp-ask { width: 100%; gap: 7px; padding: 4px 5px 4px 5px; }
.camp-compact .camp-ask .camp-socket { width: 22px; height: 22px; }
.camp-compact .camp-ask__q { font-size: 14px; line-height: 16px; }
.camp-compact .camp-ask__why { font-size: 13px; line-height: 15px; }
.camp-compact .camp-ask__more { font-size: 12px; line-height: 14px; }
.camp-compact .camp-ask__btns { gap: 3px; }
.camp-compact .camp-ask .hbtn { min-height: 22px; font-size: 12px; padding: 1px 6px 0; gap: 4px; }
.camp-compact .camp-ask .hbtn kbd { display: inline-block; font-size: 10px; line-height: 12px; }
.camp-card.camp-compact { bottom: calc(var(--bar-top, 56px) + 10px); width: min(372px, calc(100vw - 16px)); padding: 7px 9px 6px 12px; }
.camp-card.camp-compact::before { inset: -5px; }
.camp-card.camp-compact .camp-card__head { padding-left: 22px; margin-bottom: 2px; padding-bottom: 3px; }
.camp-card.camp-compact .camp-card__pin { left: -13px; top: -13px; width: 32px; height: 32px; }
.camp-card.camp-compact .camp-card__title { font-size: 15px; }
.camp-card.camp-compact .camp-card__sub { margin: 2px 0 5px; font-size: 12px; line-height: 15px; }
.camp-card.camp-compact .camp-card__opts { gap: 5px; }
.camp-card.camp-compact .camp-opt { gap: 6px; padding: 5px 5px 5px 5px; }
.camp-card.camp-compact .camp-opt__icon { width: 30px; height: 30px; }
.camp-card.camp-compact .camp-opt__icon .camp-icon { width: 20px; height: 20px; }
.camp-card.camp-compact .camp-opt__cdnum { font-size: 12px; }
.camp-card.camp-compact .camp-opt__name { font-size: 13px; }
.camp-card.camp-compact .camp-opt__len { font-size: 11px; }
.camp-card.camp-compact .camp-opt__buff { font-size: 12px; }
.camp-card.camp-compact .camp-opt__pct { font-size: 11px; }
.camp-card.camp-compact .camp-opt__state { font-size: 11px; }
.camp-card.camp-compact .camp-opt__key { right: 3px; bottom: 3px; }
.camp-card.camp-compact .camp-confirm__text { font-size: 13px; }
.camp-card.camp-compact .camp-bar--lg { height: 6px; margin: 6px 0 7px; }
.camp-card.camp-compact .camp-confirm .hbtn { min-height: 22px; font-size: 12px; padding: 1px 7px 0; gap: 4px; }
.camp-card.camp-compact .camp-confirm .hbtn kbd { display: inline-block; font-size: 10px; line-height: 12px; }
.camp-card.camp-compact .camp-card__foot { margin-top: 5px; font-size: 12px; line-height: 15px; min-height: 15px; }

/* ================================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .camp-chip, .camp-ask, .camp-note, .camp-card.camp-in { animation: none; }
  .camp-note, .camp-opt, .camp-chip__key { transition: none; }
}
body.reduced-motion .camp-chip, body.reduced-motion .camp-ask, body.reduced-motion .camp-note, body.reduced-motion .camp-card.camp-in { animation: none; }
body.reduced-motion .camp-note, body.reduced-motion .camp-opt, body.reduced-motion .camp-chip__key { transition: none; }
