/* ============================================================================
   THERMAL CONVECTION · saver.css — the in-page screensaver lower third (saver.js)
   ----------------------------------------------------------------------------
   The plate sits at the bottom left in a landscape frame and across the
   bottom in a portrait frame. saver.js frames the views in the band above
   it (it reads the plate box). The shell screensaver draws its own poster;
   this plate shows only in the in-page mode (html.tc-saver).
   Page chrome that has [data-saver-hide] hides in both modes.
   Fonts come from ../../lib/sci.css (Inter, STIX Two Text).
   grep -n targets: "PLATE", "HEAD", "PARAMS", "HINT", "CHROME", "PORTRAIT"
   ========================================================================== */
[hidden]{display:none!important}

/* CHROME */
html.tc-saver [data-saver-hide],html.sn-saver [data-saver-hide]{display:none!important}
html.tc-saver,html.tc-saver body{cursor:none}

/* PLATE */
.tcs-plate{
  --tcs-accent:#ff9a3c;
  position:fixed;z-index:60;left:max(32px,env(safe-area-inset-left,0px) + 16px);
  bottom:max(32px,env(safe-area-inset-bottom,0px) + 16px);
  display:grid;grid-template-columns:auto 1fr;
  min-width:min(480px,calc(100vw - 64px));max-width:min(760px,calc(100vw - 64px));
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;color:#f5f1ea;
  pointer-events:none;opacity:0;transform:translateY(14px);
  transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1);
}
.tcs-plate.on{opacity:1;transform:none}
.tcs-bar{width:5px;border-radius:3px 0 0 3px;background:linear-gradient(#ffd66b,var(--tcs-accent) 55%,#b8321e)}
.tcs-main{padding:14px 22px 14px 18px;display:flex;flex-direction:column;gap:7px;min-width:0;
  background:rgba(12,9,8,.84);border-radius:0 6px 6px 0}

/* HEAD */
.tcs-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;min-width:0;transition:opacity .35s ease,transform .35s ease}
.tcs-title{font-size:clamp(22px,2.4vw,34px);font-weight:650;letter-spacing:-.01em;line-height:1.05;white-space:nowrap}
.tcs-sub{font-family:'STIX Two Text',Georgia,serif;font-style:italic;font-size:clamp(15px,1.35vw,20px);color:#e7c9a4}
.tcs-eq{font-family:'STIX Two Text',Georgia,serif;font-size:clamp(14px,1.2vw,18px);color:#ece6dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* PARAMS */
.tcs-params{font-size:clamp(12px,1vw,14px);font-variant-numeric:tabular-nums;color:#c8bfb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* the cut: the old shot name fades out, the new one fades in */
.tcs-plate.swap .tcs-head{opacity:0;transform:translateY(6px)}

/* HINT */
.tcs-hint{position:fixed;z-index:61;top:max(16px,env(safe-area-inset-top,0px) + 8px);right:max(16px,env(safe-area-inset-right,0px) + 8px);
  padding:6px 12px;border-radius:999px;background:rgba(12,9,8,.75);color:#ece6dc;
  font:500 12px/1.3 'Inter',system-ui,sans-serif;opacity:0;transition:opacity .5s ease;pointer-events:none}
.tcs-hint.on{opacity:1}

/* PORTRAIT: the plate spans the bottom */
@media (max-aspect-ratio:1/1){
  .tcs-plate{left:max(12px,env(safe-area-inset-left,0px) + 8px);right:max(12px,env(safe-area-inset-right,0px) + 8px);
    bottom:max(16px,env(safe-area-inset-bottom,0px) + 10px);min-width:0;max-width:none}
  .tcs-main{padding:12px 16px}
  .tcs-title{font-size:clamp(20px,6vw,30px)}
  .tcs-eq{font-size:clamp(12px,3.4vw,16px)}
  .tcs-params{font-size:clamp(11px,3vw,13px);white-space:normal}
}
@media (prefers-reduced-motion:reduce){
  .tcs-plate,.tcs-head{transition:none}
}
