/* camzoom.css — the camera zoom's controls (js/camzoom.js), built to mockup A the owner picked (2026-10-31,
   assets/gen/nightcamp_camzoom_a_raw.png). Both pieces live in the minimap corner (#hud .tr) and are sized in --u like it,
   so they grow and shrink with the ring (a phone's portrait scale(0.8) included).
   - a phone: a column just left of the ring: the magnifier "-" (out), the zoom now on a cream pill, the magnifier "+" (in);
     sideways the sky window (.dial) moves left into the slot beside it and the menu / chat buttons with it (as drawn)
   - a PC: under the zone ribbon, for a moment while the wheel turns, a "ซูม 125%" bubble over an 80% .. 150% bar
   Icons: assets/ui/camzoom/ (tools/camzoom_cut.py). */

/* ---------- the phone's column ---------- */
.cz-col { display: none; }
html.mob .cz-col {
  display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u));
  position: absolute; left: calc(-94 * var(--u)); top: calc(22 * var(--u)); width: calc(96 * var(--u)); z-index: 3; pointer-events: none;
}
html.mob-port .cz-col { top: calc(255 * var(--u)); }
.cz-btn {
  display: grid; place-items: center; width: calc(96 * var(--u)); height: calc(96 * var(--u)); padding: 0; border-radius: 50%; cursor: pointer;
  border: calc(7 * var(--u)) solid #183c54; background: radial-gradient(circle at 50% 35%, #10283b, #17364b);
  box-shadow: 0 calc(6 * var(--u)) 0 rgba(0, 0, 0, 0.3); box-sizing: border-box;
  pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.cz-btn i { width: 78%; height: 78%; background: center / contain no-repeat; pointer-events: none; }
.cz-out i { background-image: url(../assets/ui/camzoom/cz_out.png); }
.cz-in i { background-image: url(../assets/ui/camzoom/cz_in.png); }
.cz-btn:active { transform: scale(0.92); }
.cz-btn:disabled { cursor: default; }
.cz-btn:disabled i { opacity: 0.45; }
.cz-pct {
  display: grid; place-items: center; min-width: calc(100 * var(--u)); height: calc(34 * var(--u)); padding: 0 calc(8 * var(--u)); box-sizing: border-box;
  border-radius: calc(17 * var(--u)); border: calc(4.5 * var(--u)) solid #183c54; background: linear-gradient(#10283b, #17364b);
  color: #e8f7ff; font: 800 calc(26 * var(--u)) / 1 'Baloo 2', 'Mitr', sans-serif; white-space: nowrap;
}
/* sideways: the sky window into the slot left of the column, the menu and the chat a step left (mockup A's top right) */
html.mob-land #hud .tr .dial { left: calc(-221 * var(--u)); }
html.mob-land .mb-menu { right: calc(env(safe-area-inset-right) + 215 * var(--m)); }
html.mob-land .mb-chat { right: calc(env(safe-area-inset-right) + 275 * var(--m)); }
html.mob-land .mb-chatline { right: calc(env(safe-area-inset-right) + 215 * var(--m)); }

/* ---------- a PC: the bubble and the bar while the wheel turns ---------- */
.cz-tip {
  position: absolute; right: 0; top: calc(100% - 6 * var(--u)); width: calc(373 * var(--u)); z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s;
}
.cz-tip.on { opacity: 1; visibility: visible; transition: opacity 0.12s; }
html.mob .cz-tip { display: none; }
.cz-chip {
  position: relative; display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(50 * var(--u)); box-sizing: border-box;
  margin-right: calc(44 * var(--u)); padding: 0 calc(28 * var(--u)) 0 calc(20 * var(--u));
  border-radius: calc(25 * var(--u)); border: calc(3 * var(--u)) solid #183c54; background: linear-gradient(#10283b, #17364b);
  box-shadow: 0 calc(4 * var(--u)) 0 rgba(0, 0, 0, 0.28);
  color: #e8f7ff; font: 800 calc(34 * var(--u)) / 1 'Baloo 2', 'Mitr', sans-serif; white-space: nowrap;
}
/* (the tail pointing down at the bar's knob, --tail set by js/camzoom.js: the outline, then the cream over it) */
.cz-chip::before, .cz-chip::after { content: ''; position: absolute; left: var(--tail, 50%); width: 0; height: 0; border-style: solid; border-color: transparent; }
.cz-chip::before { bottom: calc(-14 * var(--u)); margin-left: calc(-12 * var(--u)); border-width: calc(12 * var(--u)) calc(12 * var(--u)) 0; border-top-color: #183c54; }
.cz-chip::after { bottom: calc(-9 * var(--u)); margin-left: calc(-8 * var(--u)); border-width: calc(8 * var(--u)) calc(8 * var(--u)) 0; border-top-color: #416e87; }
.cz-chip i { width: calc(36 * var(--u)); height: calc(36 * var(--u)); background: url(../assets/ui/camzoom/cz_line.png) center / contain no-repeat; }
.cz-bar {
  display: flex; align-items: center; gap: calc(12 * var(--u)); width: 100%; height: calc(46 * var(--u)); margin-top: calc(8 * var(--u));
  padding: 0 calc(16 * var(--u)); box-sizing: border-box; border-radius: calc(22 * var(--u));
  border: calc(3 * var(--u)) solid #3c7d98; background: rgba(28, 25, 46, 0.9);
  color: #e8f7ff; font: 800 calc(20 * var(--u)) / 1 'Baloo 2', 'Mitr', sans-serif; white-space: nowrap;
}
.cz-track {
  position: relative; flex: 1; height: calc(26 * var(--u)); border-radius: calc(13 * var(--u)); box-sizing: border-box;
  border: calc(3 * var(--u)) solid #183c54; background: #081b2b;
}
.cz-track em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(#185776, #185776); }
.cz-track u {
  position: absolute; top: 50%; width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin: calc(-17 * var(--u)) 0 0 calc(-17 * var(--u));
  border-radius: 50%; border: calc(3 * var(--u)) solid #183c54; background: radial-gradient(circle at 40% 35%, #10283b, #10283b); box-sizing: border-box;
}
