/* ============================================================
   Tactical Talk — HUD Gauge System (web) styles
   Pairs with web/hud-gauge.js. Spec: docs/HUD_GAUGE_SPEC.md
   ============================================================ */

.ttg-frame { position: relative; }
.ttg-br {
  position: absolute; width: 16px; height: 16px;
  border: 2px solid #E8A838; opacity: .55;
}
.ttg-br.tl  { top: -6px;    left: -6px;  border-right: none; border-bottom: none; }
.ttg-br.tr  { top: -6px;    right: -6px; border-left: none;  border-bottom: none; }
.ttg-br.bl  { bottom: -6px; left: -6px;  border-right: none; border-top: none; }
.ttg-br.brr { bottom: -6px; right: -6px; border-left: none;  border-top: none; }

.ttg-gauge { position: relative; display: flex; align-items: center; justify-content: center; }
.ttg-ctr {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; gap: 7px;
}

/* digital LCD screen */
.ttg-screen {
  position: relative; border-radius: 6px; padding: 7px 16px 6px; overflow: hidden;
  background: linear-gradient(180deg, #04140f 0%, #061a13 45%, #03100c 100%);
}
.ttg-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 2px);
}
.ttg-ghost {
  position: absolute; left: 0; right: 0; top: 7px; text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 800;
  font-variant-numeric: tabular-nums; opacity: .07; letter-spacing: 2px;
}
.ttg-num {
  position: relative; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 0 14px currentColor, 0 0 4px currentColor;
}
.ttg-unit {
  position: relative; display: block; text-align: center;
  font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 2px; margin-top: 2px; opacity: .8;
}
.ttg-lab {
  font-family: ui-monospace, monospace; font-size: 9px; font-weight: 600; letter-spacing: 3px;
  padding: 2px 9px; border: 1px solid; border-radius: 2px;
}

/* band meter cell */
.ttg-cell {
  background: #08090b; border: 1px solid #23252e; border-radius: 3px;
  padding: 12px; position: relative; overflow: hidden;
}
.ttg-cell::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-top: 10px solid #23252e; border-left: 10px solid transparent;
}
.ttg-crow {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 9px; font-family: ui-monospace, monospace;
}
.ttg-clab { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: #aeb1c0; }
.ttg-cval { font-size: 13px; font-weight: 700; }
.ttg-segwrap { position: relative; margin-bottom: 7px; }
.ttg-glowbar {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  height: 18px; border-radius: 4px; filter: blur(7px); opacity: .55; z-index: 0;
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.ttg-seg { position: relative; z-index: 1; display: flex; gap: 2px; height: 9px; }
.ttg-seg i { flex: 1; border-radius: 1px; background: #1a1c22; transition: background .3s, box-shadow .3s; }
.ttg-note { font-family: ui-monospace, monospace; font-size: 8px; color: #727585; letter-spacing: 1px; }

/* ============================================================
   LIVE cyberpunk gauge (TTGauge.live) + fluid meter (TTGauge.fluid)
   ============================================================ */
.ttl-housing{position:relative;display:flex;align-items:center;justify-content:center;padding:10px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.6))}
.ttl-plate{position:absolute;inset:0;background:linear-gradient(160deg,#11151f,#080a10);border:1px solid #2b3245;
  clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px);
  box-shadow:inset 0 0 24px rgba(0,0,0,.7)}
.ttl-plate::after{content:"";position:absolute;inset:0;
  clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px);
  border:1px solid rgba(0,240,255,.18)}
.ttl-frame{position:relative;transition:transform .12s cubic-bezier(.2,.9,.2,1)}
.ttl-frame.bulge{animation:ttl-bulge .55s cubic-bezier(.25,1.4,.4,1)}
.ttl-frame.suck{animation:ttl-suck .55s cubic-bezier(.3,.7,.3,1)}
@keyframes ttl-bulge{0%{transform:scale(1)}35%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes ttl-suck{0%{transform:scale(1)}35%{transform:scale(.9)}100%{transform:scale(1)}}
.ttl-br{position:absolute;width:14px;height:14px;border:2px solid #00F0FF;opacity:.7;transition:border-color .4s;z-index:3}
.ttl-br.tl{top:-2px;left:-2px;border-right:none;border-bottom:none}
.ttl-br.tr{top:-2px;right:-2px;border-left:none;border-bottom:none}
.ttl-br.bl{bottom:-2px;left:-2px;border-right:none;border-top:none}
.ttl-br.brr{bottom:-2px;right:-2px;border-left:none;border-top:none}
.ttl-gauge{position:relative;display:flex;align-items:center;justify-content:center}
.ttl-ctr{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;gap:8px}
.ttl-screen{position:relative;border-radius:5px;padding:8px 16px 7px;overflow:hidden;min-width:92px;
  background:radial-gradient(120% 80% at 50% 0%, rgba(0,255,180,.10), transparent 55%),linear-gradient(180deg,#04241b,#052a20 40%,#02130d);
  border:1px solid rgba(0,0,0,.6);box-shadow:inset 0 2px 6px rgba(0,0,0,.75)}
.ttl-screen::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;
  background-image:radial-gradient(rgba(0,0,0,.5) 38%, transparent 39%);background-size:3px 3px}
.ttl-scan{position:absolute;left:0;right:0;height:18px;pointer-events:none;z-index:2;
  background:linear-gradient(180deg,transparent,rgba(0,255,200,.18),transparent);animation:ttl-scan 2.6s linear infinite}
@keyframes ttl-scan{0%{top:-20px}100%{top:100%}}
.ttl-ghost{position:absolute;left:0;right:0;top:8px;text-align:center;font-family:ui-monospace,monospace;font-weight:800;
  font-variant-numeric:tabular-nums;opacity:.10;letter-spacing:3px}
.ttl-num{position:relative;text-align:center;font-family:ui-monospace,monospace;font-weight:800;letter-spacing:3px;
  font-variant-numeric:tabular-nums;line-height:1;
  text-shadow:-1.6px 0 rgba(255,30,80,.75), 1.6px 0 rgba(0,240,255,.75), 0 0 8px currentColor, 0 0 20px currentColor}
.ttl-num.glitch{animation:ttl-glitch .35s steps(2) 1}
@keyframes ttl-glitch{0%{transform:translate(0)}25%{transform:translate(-2px,1px)}50%{transform:translate(2px,-1px)}75%{transform:translate(-1px,0)}100%{transform:translate(0)}}
.ttl-unit{position:relative;display:block;text-align:center;font-family:ui-monospace,monospace;font-size:7.5px;letter-spacing:1.5px;margin-top:3px;opacity:.85}
.ttl-alert{position:absolute;left:0;right:0;bottom:0;height:17px;overflow:hidden;font-family:ui-monospace,monospace;
  font-size:9.5px;font-weight:700;letter-spacing:1px;display:none;align-items:center;
  background:rgba(0,0,0,.66);border-top:1px solid rgba(0,240,255,.18);z-index:3}
.ttl-alert.on{display:flex}
.ttl-alert span{white-space:nowrap;padding-left:100%;animation:ttl-marq 7.5s linear infinite;text-shadow:0 0 8px currentColor}
@keyframes ttl-marq{from{transform:translateX(0)}to{transform:translateX(-200%)}}
.ttl-lab{font-family:ui-monospace,monospace;font-size:9px;font-weight:600;letter-spacing:2.5px;padding:3px 11px;border:1px solid;
  transition:color .4s,border-color .4s;text-align:center;line-height:1.3;
  clip-path:polygon(0 0,100% 0,100% 65%,88% 100%,0 100%)}

/* fluid meter */
.ttf-wrap{display:flex;flex-direction:column;align-items:center;gap:9px}
.ttf-tube{position:relative;width:46px;height:152px;overflow:hidden;
  background:linear-gradient(90deg,#070910,#10141d 50%,#070910);border:1px solid #2a3145;
  clip-path:polygon(0 8px,8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px));
  box-shadow:inset 0 3px 8px rgba(0,0,0,.8), 0 8px 16px rgba(0,0,0,.5);transition:transform .12s}
.ttf-tube.bulge{animation:ttl-bulge .5s cubic-bezier(.25,1.4,.4,1)}
.ttf-tube.suck{animation:ttl-suck .5s cubic-bezier(.3,.7,.3,1)}
.ttf-liquid{position:absolute;left:0;right:0;bottom:0;transition:height .8s cubic-bezier(.2,.85,.25,1),background .4s,box-shadow .4s}
.ttf-liquid::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:#fff;filter:blur(1px);opacity:.95}
.ttf-glare{position:absolute;top:6px;left:7px;width:8px;bottom:6px;border-radius:8px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.05));opacity:.5;filter:blur(.5px)}
.ttf-ticks{position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(0deg,rgba(0,240,255,.08) 0 1px,transparent 1px 15px)}
.ttf-val{font-family:ui-monospace,monospace;font-weight:800;font-size:17px;font-variant-numeric:tabular-nums;transition:color .3s;
  text-shadow:-1px 0 rgba(255,30,80,.6),1px 0 rgba(0,240,255,.6),0 0 10px currentColor}
.ttf-lab{font-family:ui-monospace,monospace;font-size:9px;letter-spacing:1.5px;color:#aeb1c0;text-align:center;line-height:1.3;max-width:92px}
.ttf-note{font-family:ui-monospace,monospace;font-size:8px;color:#5a6072;letter-spacing:1px;text-align:center}

/* gauge cluster sections (dashboard) */
.ttd-cluster{margin:8px 0 4px}
.ttd-csec{position:relative;margin:0 0 18px;padding:22px 24px;background:linear-gradient(180deg,rgba(13,16,24,.6),rgba(7,9,14,.6));
  border:1px solid #1d2230;
  clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,22px 100%,0 calc(100% - 22px))}
.ttd-csec .ttd-cgrid-bg{position:absolute;inset:0;pointer-events:none;opacity:.16;
  background-image:linear-gradient(#00F0FF 1px,transparent 1px),linear-gradient(90deg,#00F0FF 1px,transparent 1px);
  background-size:32px 32px;-webkit-mask-image:radial-gradient(120% 90% at 50% 0%,#000,transparent 75%);mask-image:radial-gradient(120% 90% at 50% 0%,#000,transparent 75%)}
.ttd-chead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:18px;font-family:ui-monospace,monospace;position:relative}
.ttd-chead .t{font-size:12px;letter-spacing:3px;color:#00F0FF;font-weight:700;text-shadow:0 0 8px rgba(0,240,255,.5)}
.ttd-chead .t::before{content:"▞ ";color:#FF2E97}
.ttd-chead .s{font-size:9px;letter-spacing:1px;color:#5a6072}
.ttd-chextag{position:absolute;top:-12px;right:14px;font-family:ui-monospace,monospace;font-size:8px;letter-spacing:2px;color:#FF2E97;opacity:.7}
.ttd-crow{display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:flex-start;position:relative}
