/* HUD for the TyreCheq 3D scene (tread3d.js). Shared by TyreCheq and the TyreCheq section on AutoCheq. */
.t3-stage { position: relative; width: 100%; aspect-ratio: 1 / .86; }
.t3-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.t3-stage .fallback { position: absolute; inset: 6% 20%; width: 60%; height: 88%; object-fit: contain; opacity: 0; transition: opacity .5s; }
.t3-stage.no-webgl .fallback { opacity: 1; }
.t3-hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.t3-tag { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 10px; white-space: nowrap;
  background: rgba(0,26,16,.86); border: 1px solid rgba(43,216,137,.6); color: #FCFDFB; font: 700 12px/1 Satoshi, Inter, sans-serif; padding: 5px 8px;
  opacity: 0; transition: opacity .35s, margin-top .5s cubic-bezier(.2,.7,.2,1); margin-top: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.t3-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px; background: linear-gradient(#2bd889, transparent); }
.t3-tag.on { opacity: 1; margin-top: 0; }
.t3-tag b { color: #8fcbb2; font-size: 11px; margin-right: 2px; }
.t3-tag span { font-family: "Space Mono", monospace; font-size: 13px; }
.t3-tag em { font-style: normal; color: #8fcbb2; font-size: 11px; }
.t3-tag.warn { border-color: rgba(232,179,58,.75); } .t3-tag.warn::after { background: linear-gradient(#e8b33a, transparent); }
.t3-tag.low { background: #2bd889; color: #04241a; } .t3-tag.low b, .t3-tag.low em { color: #04241a; }
.t3-tag.warn.low { background: #e8b33a; color: #3b2600; } .t3-tag.warn.low b, .t3-tag.warn.low em { color: #3b2600; }
.t3-card { position: absolute; right: 1%; bottom: 2%; width: min(230px, 42%); padding: 14px 16px 12px; border-radius: 18px; color: #FCFDFB;
  background: rgba(0,20,12,.82); border: 1px solid rgba(196,232,205,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(0,0,0,.45); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .45s, transform .6s cubic-bezier(.2,.7,.2,1); font-family: Satoshi, Inter, sans-serif; }
.t3-card.on { opacity: 1; transform: none; }
.t3-st { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.t3-st i { width: 10px; height: 10px; border-radius: 50%; background: #2bd889; box-shadow: 0 0 12px #2bd889; }
.t3-card.warn .t3-st i { background: #e8b33a; box-shadow: 0 0 12px #e8b33a; }
.t3-card.warn .t3-st b { color: #f3c969; } .t3-card.good .t3-st b { color: #7fe0b0; }
.t3-low { font-family: "Space Mono", monospace; font-weight: 700; font-size: 13px; color: #8fcbb2; margin-top: 4px; }
.t3-low span { font-size: 38px; color: #fff; letter-spacing: -.04em; margin-right: 4px; }
.t3-card small { display: block; font-size: 11.5px; color: #8fcbb2; margin-top: 2px; }
.t3-bars { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 76px; margin-top: 10px; align-items: end; }
.t3-bars div { position: relative; height: 100%; border: 1px solid rgba(196,232,205,.18); border-radius: 6px; display: flex; align-items: flex-end; }
.t3-bars div i { display: block; width: 100%; background: #2a3a33; border-radius: 0 0 5px 5px; }
.t3-bars div i.low { background: #2bd889; } .t3-card.warn .t3-bars div i.low { background: #e8b33a; }
.t3-bars div em { position: absolute; left: 0; right: 0; bottom: -17px; text-align: center; font: 700 10.5px "Space Mono", monospace; color: #dfe9e4; font-style: normal; }
.t3-line { position: absolute; left: -2px; right: -2px; border-top: 1px dashed rgba(255,255,255,.35); }
.t3-line.l3 { bottom: 37.5%; } .t3-line.l16 { bottom: 20%; border-color: rgba(255,122,107,.6); }
.t3-card .t3-bars { margin-bottom: 16px; }
@media (max-width: 560px) { .t3-card { width: 52%; padding: 10px 12px; } .t3-low span { font-size: 28px; } .t3-bars { height: 52px; } .t3-tag { font-size: 11px; padding: 4px 7px; } .t3-tag span { font-size: 12px; } }

a.t3-stage { display: block; cursor: pointer; text-decoration: none; }
/* alternate groove labels sit higher so neighbours never overlap */
.t3-tag.alt { margin-top: -26px; } .t3-tag.alt.on { margin-top: -38px; } .t3-tag.alt::after { height: 56px; }
