/* My Camp (camp.js): the 3D view and its overlay */
.camp-view { position: relative; height: min(78vh, 820px); min-height: 420px; border-radius: 12px; overflow: hidden; background: #0c1018; }
.camp-view canvas { display: block; }
.camp-demo-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.camp-ui { position: absolute; inset: 0; pointer-events: none; font-size: 14px; color: #f3ead6; }
.camp-ui > * { pointer-events: auto; }
.camp-goods { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.camp-goods span { background: rgba(20, 16, 12, 0.72); border: 1px solid rgba(240, 220, 170, 0.25); border-radius: 999px; padding: 3px 10px; }
.camp-tip { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); background: rgba(20, 16, 12, 0.8);
  border-radius: 8px; padding: 5px 12px; opacity: 0; transition: opacity 0.2s; pointer-events: none; white-space: nowrap; }
.camp-tip.show { opacity: 1; }
.camp-help { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; opacity: 0.75; pointer-events: none;
  text-shadow: 0 1px 3px #000; }
.camp-panel { position: absolute; top: 48px; right: 10px; width: min(330px, calc(100% - 20px)); max-height: calc(100% - 100px); overflow: auto;
  background: rgba(24, 19, 14, 0.9); border: 1px solid rgba(240, 220, 170, 0.3); border-radius: 12px; padding: 12px 14px; }
.camp-panel h3 { margin: 0 24px 6px 0; font-family: Cinzel, Georgia, serif; }
.camp-panel h4 { margin: 12px 0 6px; }
.camp-panel p { margin: 6px 0; }
.camp-panel button { margin: 4px 6px 4px 0; }
.camp-close { position: absolute; top: 6px; right: 6px; margin: 0 !important; padding: 2px 9px; }
.camp-row { display: flex; flex-wrap: wrap; }
.camp-recipe { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(240, 220, 170, 0.15); }
.camp-recipe span { display: flex; flex-direction: column; }
.camp-recipe small { opacity: 0.75; }
.camp-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; margin-top: 6px; }
.camp-bar i { display: block; height: 100%; width: 0; background: #e0a84a; }
.camp-hold { user-select: none; touch-action: none; }
.camp-away { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(24, 19, 14, 0.9);
  border-radius: 12px; padding: 16px 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.camp-away[hidden], .camp-panel[hidden] { display: none; }
/* the page's own place panels (jetty, rune stone, banner, stall, tent) */
.camp-panel.wide { width: min(440px, calc(100% - 20px)); }
.camp-place .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.camp-place .spacer { flex: 1; }
.camp-place .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin: 6px 0; }
.camp-place .stat { background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 6px 8px; text-align: center; }
.camp-place .stat .v { font-size: 18px; font-weight: 700; }
.camp-place .stat .k { font-size: 12px; opacity: 0.75; }
.camp-place .stat button { font-size: 12px; padding: 3px 6px; }
.camp-place h4 { margin: 12px 0 4px; }
.camp-place .bar { height: 6px; border-radius: 3px; background: #2a2d34; margin-top: 4px; overflow: hidden; }
.camp-place .bar i { display: block; height: 100%; background: var(--gold, #e0a84a); }
.camp-place .bar i.done { background: #5ee08a; }
.camp-place .oath { margin: 8px 0; }
.camp-place .wb-icon { width: 56px; height: 56px; border-radius: 50%; }
/* Watch the trip: the journey view over the camp */
.camp-watch { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.92); display: flex; align-items: center; justify-content: center; padding: 10px; }
.camp-watch[hidden] { display: none; }
.camp-watch-box { width: 100%; max-width: 1100px; max-height: 100%; overflow: auto; }
.camp-watch > .camp-close { z-index: 2; top: 10px; right: 10px; font-size: 18px; }
/* touch: joystick + Use */
.camp-stick { position: absolute; left: 18px; bottom: 34px; width: 120px; height: 120px; border-radius: 50%; touch-action: none;
  background: rgba(20, 16, 12, 0.45); border: 2px solid rgba(240, 220, 170, 0.35); }
.camp-stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(240, 220, 170, 0.55); pointer-events: none; }
.camp-use { position: absolute; right: 22px; bottom: 54px; width: 78px; height: 78px; border-radius: 50%; font-weight: 700; touch-action: none; user-select: none; }
.camp-stick[hidden], .camp-use[hidden] { display: none; }
@media (max-width: 640px) {
  .camp-view { height: 72vh; min-height: 380px; }
  .camp-help { font-size: 11px; bottom: 6px; }
  .camp-goods { gap: 4px; }
  .camp-goods span { font-size: 12px; padding: 2px 7px; }
  .camp-panel { top: 44px; max-height: calc(100% - 190px); }
}
