/* Projectile Coach: a launch range (sky, bleachers, striped field, ground-level launcher turret, clock board, landing
   close-up). Scene by art.js, colors from the --pc-* properties below (light and dark). */
html {
  --pc-sky1: #7cc0f0; --pc-sky2: #d9effc; --pc-stand1: #9aa5ae; --pc-stand2: #78838c; --pc-stand-line: rgba(255,255,255,.35); --pc-wall: #1f5f8b;
  --pc-grass1: #3fa564; --pc-grass2: #2a7f49; --pc-soil1: #8a6a45; --pc-soil2: #6b5135; --pc-chalk: #ffffff; --pc-line: #1d2a33;
  --pc-cu-bg: #eef3ea; --pc-label: #10202a; --pc-halo: #f4f8fb; --pc-path: #ffffff; --pc-vx: #1f5fbf; --pc-vy: #c2185b;
  --pc-laser: #e0262b; --pc-cloud: rgba(255,255,255,.85); --pc-ink: #17242c; --pc-panel-bg1: #f5faf6; --pc-panel-bg2: #e5efe8; --pc-accent: #17663f;
  --pc-ok: #13704a; --pc-bad: #b3261e; --pc-chip: #ffffff; --pc-chip-on: #d7eedf;
}
html[data-theme="dark"] {
  --pc-sky1: #0f2238; --pc-sky2: #27466a; --pc-stand1: #3b4650; --pc-stand2: #29323a; --pc-stand-line: rgba(255,255,255,.14); --pc-wall: #15476b;
  --pc-grass1: #2c7a49; --pc-grass2: #1d5634; --pc-soil1: #4f3d29; --pc-soil2: #3a2c1e; --pc-chalk: #e9eef2; --pc-line: #05090c;
  --pc-cu-bg: #1b2620; --pc-label: #eef4f7; --pc-halo: #142028; --pc-path: #f4f1ea; --pc-vx: #7cb6f0; --pc-vy: #ff86b5;
  --pc-laser: #ff6b6b; --pc-cloud: rgba(170,190,215,.18); --pc-ink: #e8eff3; --pc-panel-bg1: #1d2a24; --pc-panel-bg2: #16211c; --pc-accent: #6fd39b;
  --pc-ok: #4fd08c; --pc-bad: #ff8a80; --pc-chip: #15201a; --pc-chip-on: #1d3d2a;
}
.pc { position: absolute; inset: 0; display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 12px; padding: 10px; color: var(--tlg-text); font-size: 16px; }
.pc input, .pc button { font: inherit; }
.pc-controls { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; padding: 8px 12px;
  background: linear-gradient(var(--pc-panel-bg1), var(--pc-panel-bg2)); color: var(--pc-ink); border: 3px solid var(--pc-accent); border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.16); }
.pc-right { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; overflow: auto; }
.pc-kicker { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-accent); }
.pc-step, .pc-step-b { display: grid; gap: 3px; }
.pc-step-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 1.2; }
.pc-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pc-accent); color: #fff; font-size: 16px; font-weight: 800; }
html[data-theme="dark"] .pc-n { color: #0d1a14; }
.pc-step.is-done .pc-n { background: var(--pc-ok); }
.pc-mark { margin-left: auto; font-weight: 800; white-space: nowrap; font-size: 16px; }
.pc-mark.is-ok, .pc-fmark.is-ok { color: var(--pc-ok); }
.pc-mark.is-bad, .pc-fmark.is-bad { color: var(--pc-bad); }
.pc-note { margin: 0; line-height: 1.25; font-size: 16px; opacity: .9; }
.pc-slider { display: grid; gap: 0; }
.pc-slider-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.pc-slider-v { font-weight: 800; color: var(--pc-accent); white-space: nowrap; }
.pc-slider.is-unset .pc-slider-v { font-weight: 600; font-style: italic; color: var(--pc-ink); opacity: .8; }
.pc-slider-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; }
.pc-slider input { width: 100%; min-height: 32px; margin: 0; accent-color: var(--pc-accent); cursor: pointer; font-size: 16px; }
.pc-slider.is-unset input { opacity: .55; }
.pc-slider-ends { display: flex; justify-content: space-between; padding: 0 48px; font-size: 16px; opacity: .75; line-height: 1.1; }
.pc-slider .pc-locked-inp { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.pc-slider.is-locked-dial { position: relative; }
.pc-step-btn { min-height: 38px; border-radius: 10px; border: 2px solid var(--pc-accent); background: var(--pc-chip); color: var(--pc-ink); font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.pc-step-btn:disabled { opacity: .45; cursor: default; }
.pc input:focus-visible, .pc button:focus-visible { outline: 3px solid var(--tlg-focus, #1a73e8); outline-offset: 2px; }
.pc-nums { display: grid; gap: 4px; }
.pc-num { display: grid; grid-template-columns: 112px minmax(0, 1fr) 18px 76px; align-items: center; gap: 6px; min-width: 0; }
.pc-num-l { font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pc-fmark { font-weight: 800; font-size: 16px; white-space: nowrap; }
.pc-num input { min-width: 0; width: 100%; font-size: 17px; min-height: 38px; padding: 3px 8px; border: 2px solid #8796a1; border-radius: 8px; background: #fff; color: #17242c; }
html[data-theme="dark"] .pc-num input { background: #10171c; color: #eef3f6; border-color: #6d7f8c; }
.pc-unit { flex: none; font-weight: 700; }
.pc-chips { display: grid; gap: 4px; }
.pc-chip { position: relative; display: flex; align-items: center; min-height: 40px; padding: 4px 28px 4px 10px; border: 2px solid #9fb0bc; border-radius: 10px;
  background: var(--pc-chip); color: var(--pc-ink); font-size: 16px; line-height: 1.15; text-align: left; cursor: pointer; }
html[data-theme="dark"] .pc-chip { border-color: #4d606d; }
.pc-chip:hover:not(:disabled) { border-color: var(--pc-accent); }
.pc-chip.is-on { border-color: var(--pc-accent); background: var(--pc-chip-on); font-weight: 700; box-shadow: inset 0 0 0 1px var(--pc-accent); }
.pc-chip.is-on::before { content: '●'; margin-right: 6px; color: var(--pc-accent); }
.pc-chip-m { position: absolute; right: 8px; font-weight: 800; }
.pc-chip.is-key { border-color: var(--pc-ok); box-shadow: inset 0 0 0 2px var(--pc-ok); }
.pc-chip.is-key .pc-chip-m { color: var(--pc-ok); }
.pc-chip.is-wrong { border-color: var(--pc-bad); border-style: dashed; }
.pc-chip.is-wrong .pc-chip-m { color: var(--pc-bad); }
.pc-chip:disabled { cursor: default; opacity: 1; }
.pc-brief { flex: none; padding: 4px 12px; border: 2px solid var(--pc-accent); border-radius: 12px; background: var(--pc-panel-bg1); color: var(--pc-ink); }
.pc-brief p { margin: 0; line-height: 1.35; }
.pc-target { font-size: 18px; }
.pc-scene { flex: none; border-radius: 12px; overflow: hidden; border: 2px solid var(--pc-line); }
.pc-svg { display: block; width: 100%; height: auto; }
.pc-svg text { font-family: var(--tlg-font); }
.pc-cloud { fill: var(--pc-cloud); }
.pc-model { font-size: 16px; font-weight: 700; fill: var(--pc-label); paint-order: stroke; stroke: var(--pc-halo); stroke-width: 4px; stroke-linejoin: round; }
.pc-board-k { font-size: 16px; font-weight: 700; fill: #9fe8c6; }
.pc-board-t { font-size: 24px; font-weight: 800; fill: #ffe27a; font-variant-numeric: tabular-nums; }
.pc-board-n { font-size: 16px; font-weight: 700; fill: #cdeee0; }
.pc-board-n.pc-ok { fill: #6ff0a8; } .pc-board-n.pc-bad { fill: #ff9a90; }
.pc-console { font-size: 16px; font-weight: 800; fill: #ffe27a; }
.pc-ready-lamp.is-ready { fill: #5ff0a8; }
.pc-barrel.is-unset { opacity: .55; }
.pc-angle-arc { fill: none; stroke: var(--pc-label); stroke-width: 2; stroke-dasharray: 4 4; }
.pc-angle-t, .pc-label, .pc-tick-t, .pc-cu-t, .pc-cu-e, .pc-cu-land, .pc-cu-h { font-size: 17px; font-weight: 800; fill: var(--pc-label); paint-order: stroke; stroke: var(--pc-halo); stroke-width: 4px; stroke-linejoin: round; }
.pc-tick-t { font-size: 16px; font-weight: 700; fill: #fff; stroke: rgba(0,0,0,.45); stroke-width: 3px; }
.pc-cu-t { font-size: 16px; font-weight: 700; }
.pc-cu-h { font-size: 16px; }
.pc-cu-e { font-size: 16px; }
.pc-yard { stroke: var(--pc-chalk); stroke-width: 2.5; opacity: .9; }
.pc-cu-tick { stroke: var(--pc-label); stroke-width: 2; }
.pc-mat { fill: url(#pc-p-mat); stroke: var(--pc-line); stroke-width: 1.5; }
.pc-flagpole { stroke: var(--pc-line); stroke-width: 2.5; }
.pc-flag { fill: #d94f3d; stroke: var(--pc-line); stroke-width: 1.5; }
.pc-pole { stroke: #5f6c77; stroke-width: 4; stroke-dasharray: 10 3; }
.pc-laser { stroke: var(--pc-laser); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 4; }
.pc-laser-dot { fill: var(--pc-laser); stroke: var(--pc-line); stroke-width: 1.5; }
.pc-path { fill: none; stroke: var(--pc-path); stroke-width: 3; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .95; }
.pc-trail { fill: none; stroke: var(--pc-path); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.pc-ball { fill: url(#pc-g-ball); stroke: var(--pc-line); stroke-width: 2; }
.pc-shadow { fill: #000; }
.pc-dust { fill: url(#pc-g-dust); }
.pc-puff { transform-box: fill-box; transform-origin: center; animation: pc-puff .6s ease-out both; }
@keyframes pc-puff { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: .7; } }
.pc-peakline { fill: none; stroke: var(--pc-label); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .7; }
.pc-arrow-s { fill: none; stroke-width: 4; stroke-linecap: round; }
.pc-arrow-h { stroke-width: 1; }
.pc-arrow-s.pc-vx { stroke: var(--pc-vx); } .pc-arrow-h.pc-vx { fill: var(--pc-vx); stroke: var(--pc-vx); }
.pc-arrow-s.pc-vy { stroke: var(--pc-vy); stroke-dasharray: 7 4; stroke-linecap: butt; } .pc-arrow-h.pc-vy { fill: var(--pc-vy); stroke: var(--pc-vy); }
.pc-vlabel.pc-vx { fill: var(--pc-vx); } .pc-vlabel.pc-vy { fill: var(--pc-vy); }
.pc-drop { stroke: var(--pc-label); stroke-width: 1.2; stroke-dasharray: 2 4; opacity: .55; }
.pc-ghost { fill: url(#pc-g-ball); stroke: var(--pc-line); stroke-width: 1.5; opacity: .75; }
.pc-hitdot { stroke: var(--pc-line); stroke-width: 2; }
.pc-hitdot.pc-ok { fill: var(--pc-ok); } .pc-hitdot.pc-bad { fill: var(--pc-bad); }
.pc-label.pc-ok { fill: var(--pc-ok); } .pc-label.pc-bad { fill: var(--pc-bad); }
.pc-readout { flex: none; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; padding: 5px 12px; border-radius: 10px; background: var(--pc-panel-bg2); color: var(--pc-ink); }
.pc-status { margin: 0; line-height: 1.3; }
.pc-launch { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 3px solid var(--pc-line); background: var(--pc-accent); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
html[data-theme="dark"] .pc-launch { color: #0d1a14; }
.pc-launch:disabled { opacity: .45; cursor: default; }
.pc-about { flex: none; padding: 2px 10px; border: 1px solid var(--tlg-border); border-radius: 8px; }
.pc-about summary { cursor: pointer; min-height: 32px; font-weight: 700; display: flex; align-items: center; }
.pc-about p { margin: 4px 0; }
.pc-ex { display: grid; gap: 8px; }
.pc-ex-svg { border-radius: 10px; border: 2px solid var(--pc-line); width: 100% !important; max-width: 520px; height: auto !important; max-height: none; }
.pc-ex-p { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.pc-ex-30 { stroke: var(--pc-vx); } .pc-ex-45 { stroke: #e07a1f; stroke-dasharray: 9 5; } .pc-ex-60 { stroke: var(--pc-vy); stroke-dasharray: 3 5; }
.pc-ex-l { font-size: 17px; font-weight: 800; fill: var(--pc-label); paint-order: stroke; stroke: var(--pc-halo); stroke-width: 4px; }
.pc-ex-t { border-collapse: collapse; font-size: 16px; }
.pc-ex-t th, .pc-ex-t td { padding: 3px 10px; border-bottom: 1px solid var(--tlg-border); text-align: left; }
@media (max-width: 900px) {
  .pc { position: static; grid-template-columns: 1fr; }
  .pc-controls, .pc-right { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .pc *, .pc *::before { animation: none !important; transition: none !important; } }
