/* ------------------------------------------------------------------
   PDX garage (garage.js) and paper-plane throw (planethrow.js), wave 13.
   (Round 2 walks the ramps: the stairs panel is gone.)
   DG//OS look, docs/STYLE-GUIDE.md: near-black panels, chamfers, mono
   labels; volt for the way you can go and the power, cyan for the sweet
   spot, hot for the top you must not hit. No curves.
   ------------------------------------------------------------------ */

/* The card: LEVEL 3 on arrival, the distance on a landing. */
.pdx-gcard {
  --c: 10px;
  position: fixed; left: 50%; top: 34%; z-index: 35; transform: translate(-50%, -50%);
  padding: 12px 18px; background: rgba(8, 10, 16, .9); border: 1px solid var(--volt); color: var(--volt);
  font: 700 clamp(16px, 4vw, 26px)/1.1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  opacity: 0; pointer-events: none; transition: opacity .18s linear;
}
.pdx-gcard.is-on { opacity: 1; }
@media (max-width: 480px) { .pdx-gcard { white-space: normal; text-align: center; max-width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { .pdx-gcard { transition: none; } }

/* The swing meter: a tall bar at the right of the screen. The game shows
   through: it is the roof and the street the plane is thrown over. */
.pdx-throw { position: fixed; right: 16px; top: 50%; z-index: 36; transform: translateY(-50%); font-family: var(--font-mono); }
.pdx-throw[hidden] { display: none; }
.pdx-throw-box {
  --c: 10px;
  width: 132px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px;
  background: rgba(8, 10, 16, .9); border: 1px solid var(--line-2); color: var(--text);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.pdx-throw-eye { margin: 0; font: 500 10px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pdx-throw-track { position: relative; align-self: center; width: 34px; height: min(300px, 46vh); background: var(--screen); border: 1px solid var(--line-2); }
.pdx-throw-track i { position: absolute; left: 0; right: 0; display: block; }
.pdx-throw-spot { background: rgba(34, 227, 238, .35); border-top: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); }
.pdx-throw-top { height: 0; border-top: 2px solid var(--hot); }
.pdx-throw-zero { height: 0; border-top: 1px dashed var(--dim); }
.pdx-throw-fill { bottom: 0; background: linear-gradient(to top, rgba(230, 255, 43, .15), rgba(230, 255, 43, .55)); }
.pdx-throw-pow { height: 0; left: -6px !important; right: -6px !important; border-top: 2px solid var(--volt); }
.pdx-throw-needle { height: 0; left: -10px !important; right: -10px !important; border-top: 3px solid #fff; }
.pdx-throw-msg { margin: 0; min-height: 2.6em; font: 600 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--volt); }
.pdx-throw-keys { margin: 0; font: 500 9px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (pointer: coarse) { .pdx-throw-keys { display: none; } }
@media (max-width: 480px) { .pdx-throw { right: 8px; } .pdx-throw-box { width: 112px; padding: 10px; } }
