#camp { --camp-line: #584235; --camp-muted: #cbb399; --camp-gold: #efc581; }
.camp-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.camp-heading h2 { font: 700 clamp(32px, 4vw, 55px)/1.08 "Songti SC", "SimSun", serif; color: #f7e6c6; letter-spacing: .09em; }
.camp-heading-actions, .camp-bar-action { display: flex; gap: 6px; align-items: center; }
.camp-back { padding: 8px 11px; border: 1px solid #795841; background: #28201a; color: #f6d7a4; font-size: 12px; white-space: nowrap; }
.camp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 25%); align-items: stretch; gap: 10px; }
.camp-town, .camp-facility, .camp-prepare, .camp-report, .camp-roster { border: 1px solid var(--camp-line); background: #1d1715; min-width: 0; }
.camp-scene { position: relative; aspect-ratio: 1672 / 941; background: #292323; }
.camp-map-art { display: block; width: 100%; height: 100%; }
.camp-outline { opacity: 0; fill: #f3bb6318; stroke: #e4b571; stroke-width: 2; vector-effect: non-scaling-stroke; transition: opacity .14s; }
.camp-scene:has(.tavern-hotspot:is(:hover, :focus-visible)) .tavern-outline,
.camp-scene:has(.shop-hotspot:is(:hover, :focus-visible)) .shop-outline { opacity: 1; }
#camp .camp-hotspot { position: absolute; display: grid; align-items: end; justify-items: center; background: transparent; border: 0; padding: 0; }
.tavern-hotspot { left: 5.5%; top: 6.5%; width: 42.5%; height: 75%; }
.shop-hotspot { left: 64%; top: 21.5%; width: 32.5%; height: 59%; }
.camp-plaque {
  display: grid; gap: 2px; padding: 5px 8px; margin-bottom: -7px; white-space: nowrap;
  border: 1px solid #9a7452; background: #221612f5; box-shadow: 0 2px 0 #090807, inset 0 0 0 2px #31211c;
}
.camp-plaque strong { color: #ffe0ad; font-size: clamp(12px, 1.3vw, 17px); }
.camp-plaque small { color: var(--camp-muted); font-size: 11px; }
.camp-hotspot:is(:hover, :focus-visible) .camp-plaque { background: #4c2d20; border-color: #dfb77b; }
.camp-caption { padding: 8px 12px; color: var(--camp-muted); font-size: 12px; border-top: 1px solid var(--camp-line); }
.camp-caption span { margin-right: 4px; color: #c18d5c; }
.camp-treasury { display: grid; gap: 3px; }
.camp-treasury > span { font-size: 11px; color: var(--camp-muted); }
.camp-treasury strong { font-size: 17px; color: var(--camp-gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.camp-bar {
  margin-top: 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px;
  border: 1px solid var(--camp-line); border-top-color: #95613d; padding: 9px 13px; background: #201815;
}
.camp-interior, .camp-roster { padding: clamp(12px, 2vw, 20px); }
.facility-banner {
  display: grid; align-content: end; min-height: clamp(125px, 20vw, 218px); padding: 18px;
  border-bottom: 1px solid var(--camp-line); background: #322019 center / cover no-repeat;
}
#camp-facility[data-place="tavern"] .facility-banner { background-image: linear-gradient(90deg, #181412cf, transparent 57%), url("camp-tavern-pixel.png"); }
#camp-facility[data-place="shop"] .facility-banner { background-image: linear-gradient(90deg, #181412cf, transparent 57%), url("camp-forge-pixel.png"); }
.facility-banner h3, .prepare-heading h3 { margin: 0; font: 700 clamp(24px, 3vw, 40px) "Songti SC", "SimSun", serif; letter-spacing: .09em; color: #f2d9af; }
.facility-intro { color: var(--camp-muted); font-size: 12px; line-height: 1.6; }
.camp-stock { list-style: none; padding: 0; margin: 11px 0 0; display: grid; gap: 6px; }
.camp-stock li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; background: #28201c; border: 1px solid var(--camp-line); }
.camp-stock .portrait, .camp-stock-icon { width: 34px; height: 43px; }
.camp-stock-icon { display: grid; place-items: center; background: #312820; border: 1px solid #5b4535; }
.camp-stock-icon::before { content: ""; width: 24px; height: 24px; background: url("gear-pixel.svg") var(--gear-icon) center / 700% 100% no-repeat; image-rendering: pixelated; }
.camp-stock h4 { margin: 0 0 3px; font-size: 13px; }
.camp-stock p { color: var(--camp-muted); font-size: 11px; line-height: 1.45; }
.camp-stock .shop-comparison { color: #f3ca86; font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }
#camp .camp-stock button, #camp-depart { border: 1px solid #845a3e; background: #41271f; color: #ffe0a4; padding: 7px 8px; font-size: 12px; }
#camp .camp-stock button:not(:disabled):hover, #camp-depart:hover { background: #633a2b; }
#camp-status { color: var(--camp-gold); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#camp-checkpoint { color: var(--camp-muted); font-size: 11px; line-height: 1.5; }
#shop-recipient { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--camp-muted); font-size: 12px; }
#shop-hero { color: var(--paper); padding: 5px 8px; font: inherit; background: #28201c; border: 1px solid #845a3e; }
.camp-roster .section-heading h3 { margin: 0; font-size: 15px; color: #f2d9af; letter-spacing: .08em; }
#hero-roster { margin: 10px 0; padding: 0; border: 0; min-width: 0; }
#hero-roster legend { padding: 0; margin-bottom: 6px; color: var(--camp-muted); font-size: 11px; }
#hero-options { display: grid; gap: 4px; }
#hero-options label { display: flex; gap: 8px; align-items: center; min-height: 47px; padding: 4px 7px; background: #28201c; border: 1px solid var(--camp-line); font-size: 13px; cursor: pointer; }
#hero-options label:has(:checked) { border-color: #986f4a; background: #3c2821; }
#hero-options input { accent-color: #d2a564; }
#hero-options .portrait { width: 28px; height: 37px; border: 1px solid #5e4b3a; }
#hero-options small { display: block; color: var(--camp-muted); margin-top: 3px; }
#hero-detail { border-block: 1px solid var(--camp-line); padding: 9px 0; }
.camp-hero-stats { display: flex; gap: 5px 12px; flex-wrap: wrap; font-size: 12px; color: var(--camp-gold); }
.camp-hero-gear { color: var(--camp-muted); font-size: 11px; line-height: 1.6; margin-top: 6px; }
#camp-depart {
  min-width: 150px; padding: 9px 18px; background: #652b23; border-color: #ad7055;
  box-shadow: inset 0 0 0 2px #45201c; font-weight: 700; font-size: 15px; letter-spacing: .09em;
}
.prepare-heading { padding: 14px 18px; }
.route-picker { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.route-map { position: relative; min-height: clamp(190px, 23vw, 250px); isolation: isolate; background: radial-gradient(ellipse, #685044, #362623 80%); border-block: 1px solid var(--camp-line); }
.route-legend { position: absolute; top: 8px; left: 12px; z-index: 1; padding: 0; color: var(--camp-muted); font-size: 11px; }
.route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.route-terrain { fill: #a2765833; stroke: #bd947d7a; stroke-width: 1; }
.route-path { fill: none; stroke: #e7b16b6e; stroke-width: 2; stroke-dasharray: 5 5; }
.route-map:has(input[value=vault]:checked) #route-vault-path, .route-map:has(input[value=mine]:checked) #route-mine-path,
.route-map:has(input[value=cloister]:checked) #route-cloister-path { stroke: #e7b16b; }
.route-marker { position: absolute; display: grid; justify-items: center; color: #ffe0ad; font-size: 12px; text-shadow: 0 1px 2px #161211; white-space: nowrap; transform: translate(-50%, -17%); }
.route-marker b { color: #ffe5b8; font-size: 23px; line-height: 1; }
.route-town { top: 67%; left: 19%; }
.route-vault { top: 18%; left: 64%; }
.route-mine { top: 76%; left: 77%; }
.route-cloister { top: 43%; left: 78%; }
.route-choice { gap: 2px; padding: 4px 7px; background: #2e211d; border: 1px solid #9d7858; cursor: pointer; }
.route-choice:has(:checked) { color: #ffe8b8; border-color: #f1bd79; background: #613829; }
.route-choice:has(:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.route-choice:has(:disabled) { cursor: default; color: #c2ae9d; border-color: #846958; }
.route-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.route-choice small { font-size: 10px; }
.prepare-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px; font-size: 12px; color: var(--camp-muted); line-height: 1.65; }
#prepare-reward, #prepare-hero { color: #f6dbab; }
#prepare-sidequest { margin-top: 4px; color: #c5ac7d; }
.report-heading { padding: clamp(16px, 3vw, 27px); background: radial-gradient(ellipse at top left, #59362a, #241916 68%); border-bottom: 1px solid var(--camp-line); }
.report-heading h3 { margin: 0 0 5px; font: 700 clamp(28px, 4vw, 46px) "Songti SC", "SimSun", serif; color: #f6dcb1; letter-spacing: .07em; }
#report-subtitle, #report-loot { color: var(--camp-muted); font-size: 13px; line-height: 1.6; }
.report-body { padding: clamp(12px, 2.4vw, 24px); }
.report-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 15px; }
.report-stats > div { display: grid; gap: 4px; padding: 8px; background: #2b211c; border: 1px solid var(--camp-line); }
.report-stats dt { color: var(--camp-muted); font-size: 11px; }
.report-stats dd { margin: 0; color: var(--camp-gold); font-size: clamp(13px, 2vw, 19px); font-variant-numeric: tabular-nums; }
.report-body h4 { margin: 0; font-size: 13px; color: #f6dbab; }
#report-loot { margin: 6px 0 0; padding-inline-start: 18px; }
.report-unlock { margin-top: 12px; padding: 8px; border: 1px solid #8d6746; color: var(--camp-gold); font-size: 12px; }
.report-ending { margin-top: 15px; padding: 12px; border: 1px solid #8d6746; background: #35251c; color: var(--camp-muted); font-size: 13px; line-height: 1.7; }
.report-ending p { margin-top: 4px; }
#camp-abandon-dialog { max-width: min(370px, calc(100% - 28px)); background: #231a17; color: var(--paper); border: 1px solid #97704b; padding: 18px; }
#camp-abandon-dialog::backdrop { background: #0b0808c0; }
#camp-abandon-dialog h3 { margin: 0 0 8px; color: var(--camp-gold); }
#camp-abandon-dialog p { color: var(--camp-muted); font-size: 13px; }
@media (max-width: 670px) {
  .camp-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .camp-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
  .camp-bar > div:last-child { grid-column: 1 / -1; }
  .camp-bar > div:last-child:has(#camp-checkpoint[hidden]) #camp-status:empty { display: none; }
  #camp-depart { min-width: 0; }
  .camp-plaque { padding: 4px; }
  .camp-plaque small { font-size: 10px; }
  #camp .camp-stock button, #camp-depart, .camp-back, #shop-hero { min-height: 44px; }
  #hero-options label { min-height: 48px; }
  .route-map { min-height: 216px; }
  .route-choice { min-height: 44px; align-content: center; }
}
@media (prefers-reduced-motion: reduce) { .camp-outline { transition: none; } }
