/* Vehicle-hydroplanes explainer: a cutaway of a truck tire rolling on wet asphalt. Standing water builds a wedge ahead
   of the tire; when it floats, the wedge runs under the whole tread and the contact patch is lost. Hero, film, course
   offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .hy-*. The script sets the stage's
   data-speed, data-tread, data-contact (grip, float, regain, skid), data-gas, data-clutch and data-brake states and
   writes the speed readout. Without script the picture shows 55 mph, good tread and the tire floating. Every SVG text
   label is at least 9.5px in the 360-wide viewBox. */
.hy-page{--hy-water:#38bdf8;--hy-go:#31d67b;--hy-warn:#fbbf24;--hy-red:#ef4444;--hy-console:#151b20}
.hy-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.hy-demo{padding-block:64px 72px;background:var(--paper)}
.hy-demo-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.hy-head{grid-area:head}
.hy-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#222a30,#0d1114 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.hy-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.hy-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: tire contact, speed and tire state; script on */
.hy-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.hy-stage.is-js .hy-hud{display:flex}
.hy-chip{display:inline-flex;align-items:center;gap:7px;margin:0;padding:6px 10px 6px 8px;border-radius:8px;background:#080b0d;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap}
.hy-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166;transition:background .2s,box-shadow .2s}
.hy-chip span{color:#a9b3b8;font-weight:600}
.hy-chip b{color:#e8eef0;font-weight:800}
.hy-stage[data-contact="grip"] .hy-chip-contact i{background:var(--hy-go);box-shadow:0 0 0 2px rgb(49 214 123/.18),0 0 10px rgb(49 214 123/.8)}
.hy-stage[data-contact="grip"] .hy-chip-contact b{color:var(--hy-go)}
.hy-stage[data-contact="float"] .hy-chip-contact i,.hy-stage[data-contact="regain"] .hy-chip-contact i{background:var(--hy-warn);box-shadow:0 0 0 2px rgb(251 191 36/.2),0 0 10px rgb(251 191 36/.8)}
.hy-stage[data-contact="float"] .hy-chip-contact b,.hy-stage[data-contact="regain"] .hy-chip-contact b{color:#fde68a}
.hy-stage[data-contact="skid"] .hy-chip-contact i{background:var(--hy-red);box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.85)}
.hy-stage[data-contact="skid"] .hy-chip-contact b{color:#fca5a5}
.hy-chip-speed i{background:var(--hy-water);box-shadow:0 0 0 2px rgb(56 189 248/.18)}
.hy-chip-tire i{background:var(--hy-go)}
.hy-stage[data-tread="worn"] .hy-chip-tire i{background:var(--hy-warn)}
.hy-stage[data-tread="worn"] .hy-chip-tire b{color:#fde68a}

/* scene, road and water */
.hy-rain{fill:none;stroke:#9cc9e0;stroke-opacity:.35;stroke-width:1.2;stroke-linecap:round}
.hy-road{stroke:#0b0d0f;stroke-width:1}
.hy-water{opacity:.9}
.hy-ripple{fill:none;stroke:#e0f2fe;stroke-opacity:.7;stroke-width:1.2;stroke-linecap:round}
.hy-wedge{transition:opacity .3s}
.hy-wedge-float{opacity:0}
.hy-stage[data-contact="float"] .hy-wedge-float,.hy-stage[data-contact="skid"] .hy-wedge-float{opacity:1}
.hy-stage[data-contact="float"] .hy-wedge-grip,.hy-stage[data-contact="skid"] .hy-wedge-grip{opacity:0}
.hy-stage[data-contact="regain"] .hy-wedge-float{opacity:.45}
.hy-film{fill:none;stroke:#7dd3fc;stroke-width:3.2;stroke-linecap:round;opacity:0;transition:opacity .3s}
.hy-stage[data-contact="float"] .hy-film,.hy-stage[data-contact="skid"] .hy-film{opacity:1}
.hy-stage[data-contact="regain"] .hy-film{opacity:.5}
.hy-spray{fill:none;stroke:#bae6fd;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:3 4;opacity:0;transition:opacity .3s}
.hy-stage[data-contact="grip"] .hy-spray,.hy-stage[data-contact="regain"] .hy-spray{opacity:.85}

/* parts and labels: every label 9.5px or larger */
.hy-part{fill:#d3dade;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.hy-part-mid{text-anchor:middle}
.hy-part-end{text-anchor:end}
.hy-pointer{fill:none;stroke:#d3dade;stroke-width:1.4;stroke-linecap:round;paint-order:stroke}
.hy-pointer-dot{fill:#d3dade}
.hy-travel{fill:none;stroke:#d3dade;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* the tire: it rides up on the water when it floats */
.hy-tire{transform-box:view-box;transition:transform .35s cubic-bezier(.3,1.3,.55,1)}
.hy-stage[data-contact="float"] .hy-tire,.hy-stage[data-contact="skid"] .hy-tire{transform:translateY(-7px)}
.hy-stage[data-contact="regain"] .hy-tire{transform:translateY(-3px)}
.hy-rubber{stroke:#050607;stroke-width:1.4}
.hy-tread{fill:none;stroke:#0a0c0e;stroke-width:8;stroke-dasharray:6 5}
.hy-stage[data-tread="worn"] .hy-tread{stroke-width:2.6;stroke-dasharray:3 8}
.hy-rim{stroke:#2a3133;stroke-width:1.2}
.hy-lugs{fill:none;stroke:#3a4246;stroke-width:3;stroke-linecap:round}
.hy-hub{fill:#5e696c;stroke:#2a3133;stroke-width:1}
.hy-valve{fill:var(--hy-warn)}
.hy-spin{transform-box:view-box;transform-origin:120px 165px}
.hy-stage[data-tread="worn"] .hy-rubber{transform-box:view-box;transform-origin:120px 227px;transform:scale(1.03,.97)}
.hy-lock{opacity:0;transition:opacity .2s}
.hy-lock rect{fill:#b91c1c}
.hy-lock text{fill:#fff;font-size:9.5px;font-weight:900;letter-spacing:.06em;text-anchor:middle}
.hy-stage[data-contact="skid"] .hy-lock{opacity:1}

/* the contact patch: green on pavement, dashed amber on water, red when the wheel slides */
.hy-patch{fill:none;stroke:var(--hy-go);stroke-width:3.4;stroke-linecap:round;transition:stroke .2s}
.hy-stage[data-contact="float"] .hy-patch,.hy-stage[data-contact="regain"] .hy-patch{stroke:var(--hy-warn);stroke-dasharray:5 5}
.hy-stage[data-contact="skid"] .hy-patch{stroke:var(--hy-red);stroke-dasharray:5 5}

/* tread and pressure */
.hy-cond-txt{fill:#e8eef0;font-size:10px;font-weight:800;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.hy-cond-bad{fill:#fde68a}
.hy-cond-worn{display:none}
.hy-stage[data-tread="worn"] .hy-cond-worn{display:inline}
.hy-stage[data-tread="worn"] .hy-cond-good{display:none}

/* the contact card */
.hy-card-box,.hy-pedals-box{fill:#080b0d;fill-opacity:.88;stroke:#59636a;stroke-width:1;transition:stroke .2s}
.hy-card-cap{fill:#b6c0c5;font-size:9.5px;font-weight:800;letter-spacing:.1em;text-anchor:middle;text-transform:uppercase}
.hy-card-big{font-size:15px;font-weight:900;letter-spacing:.05em;text-anchor:middle}
.hy-card-sub{fill:#d3dade;font-size:10px;font-weight:700;text-anchor:middle}
.hy-mode{display:none}
.hy-stage[data-contact="grip"] .hy-mode-grip,.hy-stage[data-contact="float"] .hy-mode-float,
.hy-stage[data-contact="regain"] .hy-mode-regain,.hy-stage[data-contact="skid"] .hy-mode-skid{display:inline}
.hy-mode-grip .hy-card-big{fill:var(--hy-go)}
.hy-mode-float .hy-card-big,.hy-mode-regain .hy-card-big{fill:var(--hy-warn)}
.hy-mode-skid .hy-card-big{fill:#fca5a5}
.hy-stage[data-contact="grip"] .hy-card-box{stroke:var(--hy-go)}
.hy-stage[data-contact="float"] .hy-card-box,.hy-stage[data-contact="regain"] .hy-card-box{stroke:var(--hy-warn)}
.hy-stage[data-contact="skid"] .hy-card-box{stroke:var(--hy-red)}

/* the pedals: a pressed pedal sinks and lights amber */
.hy-pedal-pad{fill:#4a555b;stroke:#8f9a9d;stroke-width:1;transform-box:view-box;transition:transform .2s,fill .2s}
.hy-pedal-name{fill:#e8eef0;font-size:10px;font-weight:800}
.hy-pedal-state{font-size:9.5px;font-weight:700}
.hy-off{fill:#b6c0c5}
.hy-on{fill:#fde68a;display:none}
.hy-stage[data-gas="on"] .hy-pedal-gas .hy-on,.hy-stage[data-clutch="in"] .hy-pedal-clutch .hy-on,.hy-stage[data-brake="on"] .hy-pedal-brake .hy-on{display:inline}
.hy-stage[data-gas="on"] .hy-pedal-gas .hy-off,.hy-stage[data-clutch="in"] .hy-pedal-clutch .hy-off,.hy-stage[data-brake="on"] .hy-pedal-brake .hy-off{display:none}
.hy-stage[data-gas="on"] .hy-pedal-gas .hy-pedal-pad,.hy-stage[data-clutch="in"] .hy-pedal-clutch .hy-pedal-pad{fill:var(--hy-warn);transform:translateY(3px)}
.hy-stage[data-brake="on"] .hy-pedal-brake .hy-pedal-pad{fill:var(--hy-red);transform:translateY(3px)}
.hy-stage[data-brake="on"] .hy-pedal-brake .hy-on{fill:#fca5a5}

/* the speed readout */
.hy-mph{fill:#fff;font-size:22px;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:#0b1214;stroke-width:3px;stroke-linejoin:round}

/* motion, script on: the tread turns and water ripples; a locked wheel stops turning */
.hy-stage.is-js .hy-spin{animation:hy-turn 1.1s linear infinite}
.hy-stage.is-js[data-speed="55"] .hy-spin{animation-duration:.55s}
.hy-stage.is-js[data-contact="skid"] .hy-spin{animation:none}
.hy-stage.is-js .hy-ripple{animation:hy-flow .8s linear infinite;stroke-dasharray:6 6}
.hy-stage.is-js .hy-spray{animation:hy-flow .4s linear infinite}
.hy-stage.is-js .hy-rain{stroke-dasharray:6 30;animation:hy-rain .7s linear infinite}
.hy-stage.is-js[data-contact="skid"] .hy-tire{animation:hy-shake .25s linear infinite}
@keyframes hy-turn{to{transform:rotate(360deg)}}
@keyframes hy-flow{to{stroke-dashoffset:12}}
@keyframes hy-rain{to{stroke-dashoffset:-36}}
@keyframes hy-shake{0%,100%{transform:translate(0,-7px)}50%{transform:translate(1.5px,-7px)}}

/* controls: one dark console, every button the same dark face and white text, amber when active or focused */
.hy-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.hy-ask[hidden],.hy-controls[hidden]{display:none}
.hy-ask b{font-weight:800}
.hy-controls{display:grid;gap:10px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#232b31,var(--hy-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e8eef0}
.hy-btn{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:linear-gradient(180deg,#303a41,#1b2227);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #06090b,0 8px 16px -10px rgb(0 0 0/.7);color:#fff;font:inherit;font-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.hy-btn:hover{background:linear-gradient(180deg,#38434b,#20282d)}
.hy-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #06090b}
.hy-btn[aria-pressed="true"]{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--sbp-amber,#ffb400),0 1px 0 #06090b}
.hy-btn:focus-visible{outline:3px solid var(--sbp-amber,#ffb400);outline-offset:3px}
.hy-btn-wide{min-height:64px}
.hy-name{display:grid;gap:3px;min-width:0}
.hy-name small{color:#a9b3b8;font-size:13px;font-weight:600}
.hy-group{display:grid;gap:6px}
.hy-label{margin:0;color:#a9b3b8;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hy-seg{display:grid;gap:6px}
.hy-seg-3{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(0,.8fr)}
.hy-seg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hy-btn-seg{justify-content:center;padding:8px 6px;text-align:center;font-size:15px}
.hy-icon{flex:none;width:44px;height:30px}
.hy-icon-pad{fill:#8f9a9d}
.hy-icon-down{fill:#d7dddd}
.hy-icon-arrow{fill:none;stroke:#bbf7d0;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hy-icon-x{fill:none;stroke:#fca5a5;stroke-width:2.2;stroke-linecap:round}
.hy-reset{justify-self:start;gap:8px;min-height:44px;padding:8px 16px 8px 12px;font-size:15px}
.hy-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hy-status{display:block;min-height:7.3em;padding:12px 14px 12px 16px;border-left:5px solid var(--hy-warn);border-radius:0 10px 10px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45;transition:border-color .2s}
.hy-stage[data-contact="grip"]~.hy-panel .hy-status{border-left-color:var(--hy-go)}
.hy-stage[data-contact="skid"]~.hy-panel .hy-status{border-left-color:var(--hy-red)}
.hy-text{margin:0;max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

@media (min-width:761px){
  .hy-page .sbp-film-frame.is-wide{aspect-ratio:auto;padding-bottom:58px;background:#0b0d0f}
  .hy-page .sbp-film-frame.is-wide video{aspect-ratio:16/9;width:100%;height:auto}
  .hy-page .sbp-film-frame.is-wide .sbp-play{bottom:58px}
  .hy-page .sbp-film-frame.is-wide .sbp-sound-on{left:12px;right:auto;top:auto;bottom:10px}
  .hy-page .sbp-film-frame.is-wide .sbp-pause{right:12px;top:auto;bottom:10px}
}
@media (max-width:900px){
  .hy-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .hy-demo{padding-block:36px 44px}
  .hy-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .hy-svg{border-radius:8px}
  .hy-hud{gap:4px;padding:0 0 6px}
  .hy-chip{padding:4px 6px 4px 5px;font-size:11px;gap:4px}
  .hy-chip i{width:8px;height:8px}
  .hy-panel{gap:10px}
  .hy-ask{font-size:18px}
  .hy-controls{gap:8px;margin-inline:-8px;padding:12px 10px}
  .hy-btn{padding:8px 9px;gap:8px;font-size:15px}
  .hy-btn-wide{min-height:60px}
  .hy-btn-seg{padding:8px 4px;font-size:14px}
  .hy-icon{width:38px;height:26px}
  .hy-name small{font-size:12px}
  .hy-status{min-height:8.8em;padding:10px 12px;font-size:15px}
  .hy-text{font-size:16px}
}
@media (max-width:380px){
  .hy-chip{padding:4px 5px;font-size:11px;gap:4px}
  .hy-chip-speed span,.hy-chip-tire span{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hy-page .hy-demo *{transition:none!important;animation:none!important}
}
