/* 72_3ddrone.css - V3: Drone mode thumb sticks and speed switch (72_3ddrone.js). Same look as the view buttons:
   white cards, navy #1e3a5f, a dark variant. The rings are see-through so the model shows behind them. */
.kp3d.kp3d-has-sticks > .kp3d-joy { display: none !important; } /* the two sticks replace the old single joystick */
.kp3d-sticks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.kp3d-sticks.kp3d-hide { display: none !important; }
/* V4: while the sticks show, the hint leaves the bottom-left corner (it covered the left stick, and both sticks on a phone) and sits under Map | Drone,
   24 px from the left edge, at most 420 px wide - clear of the speed switch, the map buttons and the sticks at tablet, phone and phone-on-its-side sizes */
.kp3d.kp3d-has-sticks:has(> .kp3d-sticks:not(.kp3d-hide)) > .kp3d-status { left: 24px; top: 68px; bottom: auto; max-width: min(420px, calc(100% - 48px)); box-sizing: border-box; }
.kp3d-stick { position: absolute; left: 24px; bottom: 24px; width: 140px; height: 140px; box-sizing: border-box; border: 2px solid rgba(30, 58, 95, .5); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 0 30%, rgba(255, 255, 255, .34) 31% 100%); box-shadow: 0 1px 6px rgba(15, 23, 42, .22);
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.kp3d-stick::before, .kp3d-stick::after { content: ""; position: absolute; left: 50%; top: 14%; bottom: 14%; width: 1px; margin-left: -.5px; background: rgba(30, 58, 95, .28); pointer-events: none; }
.kp3d-stick::after { top: 50%; bottom: auto; left: 14%; right: 14%; width: auto; height: 1px; margin: -.5px 0 0; }
.kp3d-knob { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; margin: -21% 0 0 -21%; box-sizing: border-box; border-radius: 50%; border: 2px solid #1e3a5f;
  background: #ffffff; box-shadow: 0 2px 6px rgba(15, 23, 42, .3); pointer-events: none; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.kp3d-stick.is-on .kp3d-knob { transition: none; background: #1e3a5f; }
.kp3d-stick-cap { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-size: 11px; font-weight: 600; line-height: 1; color: #1e3a5f; pointer-events: none;
  text-shadow: 0 0 3px rgba(255, 255, 255, .9); }
.kp3d-speed { position: absolute; right: 120px; bottom: 176px; display: flex; pointer-events: auto; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.kp3d-sp { position: relative; height: 44px; min-height: 44px; min-width: 56px; padding: 0 10px; margin: 0 0 0 -1px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.kp3d-sp:first-child { margin-left: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.kp3d-sp:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.kp3d-sp:hover { background: var(--surface-alt); color: var(--ink); }
.kp3d-sp[aria-pressed="true"], .kp3d-sp[aria-pressed="true"]:hover { z-index: 1; background: var(--navy, #1e3a5f); border-color: var(--navy, #1e3a5f); color: #ffffff; }
.kp3d-sp:focus-visible { z-index: 2; outline: 2px solid var(--brand); outline-offset: 2px; }
[data-theme="dark"] .kp3d-stick { border-color: rgba(147, 197, 253, .55); background: radial-gradient(circle, rgba(15, 23, 42, .12) 0 30%, rgba(15, 23, 42, .4) 31% 100%); }
[data-theme="dark"] .kp3d-stick::before, [data-theme="dark"] .kp3d-stick::after { background: rgba(147, 197, 253, .3); }
[data-theme="dark"] .kp3d-knob { background: var(--surface, #1e293b); border-color: #93c5fd; }
[data-theme="dark"] .kp3d-stick.is-on .kp3d-knob { background: #93c5fd; }
[data-theme="dark"] .kp3d-stick-cap { color: #e2e8f0; text-shadow: 0 0 3px rgba(11, 17, 32, .95); }
[data-theme="dark"] .kp3d-sp { color: var(--ink); }
[data-theme="dark"] .kp3d-sp[aria-pressed="true"], [data-theme="dark"] .kp3d-sp[aria-pressed="true"]:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* TILT: the hold-to-tilt camera buttons beside the left stick (72_3ddrone.js places them; these defaults match a 140 px ring at 1280 x 800). Same card look as the speed switch. */
.kp3d-tilt { position: absolute; left: 176px; bottom: 42px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.kp3d-tb { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; margin: 0; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--navy, #1e3a5f); box-shadow: var(--shadow); cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.kp3d-tb svg { width: 24px; height: 24px; pointer-events: none; }
.kp3d-tb.is-on { background: var(--navy, #1e3a5f); border-color: var(--navy, #1e3a5f); color: #ffffff; }
.kp3d-tb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[data-theme="dark"] .kp3d-tb { color: #93c5fd; }
[data-theme="dark"] .kp3d-tb.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ==== D-A: design pass, 10/11/2026 (punch list P2-2, P2-3) ==== */
/* P2-2: the rings are near-solid cards now - 86% of the surface colour in both themes - so the floor, the boxes and the area names no longer read
   through them (this replaces the see-through fills near the top of this file). The captions go up to 12.5 px and sit a little higher in the ring. */
.kp3d-stick { background: rgba(255, 255, 255, .86); background: color-mix(in srgb, var(--surface) 86%, transparent); }
[data-theme="dark"] .kp3d-stick { background: rgba(30, 41, 59, .86); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.kp3d-stick-cap { bottom: 9.5%; font-size: 12.5px; }
/* P2-3: while the sticks show, "?" and Home leave the bottom corner and sit as a pair at the top right, level with Map | Drone, so the right stick can
   mirror the left one (72_3ddrone.js layout). 70_3d.js writes the column's lift inline, hence !important on bottom. A screen under 560 px high (a phone
   on its side) keeps the column beside the right stick. At the top right the pair is nowhere near the record panel's tab, so it keeps its 24 px. */
@media (min-height: 560px) {
  .kp3d.kp3d-has-sticks:has(> .kp3d-sticks:not(.kp3d-hide)) > .kp3d-nav { top: 10px; bottom: auto !important; flex-direction: row; }
  body.is-3d:has(#drawer-tab:not([hidden])) .kp3d.kp3d-has-sticks:has(> .kp3d-sticks:not(.kp3d-hide)) > .kp3d-nav { right: 24px; }
}

/* T89a: no springy knob return for people who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  .kp3d-knob { transition: none; }
}
