/* Kingyo Sukui — HUD and result card. The tank itself is all canvas. */

#canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 4px; }

/* ---- HUD --------------------------------------------------------------- */

.hud {
  position: absolute;
  top: .6rem; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
  padding: 0 .9rem;
  pointer-events: none;
  z-index: 2;
}
.hud[hidden] { display: none; }

.hud-time {
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.hud-time[data-low="true"] { color: var(--ember); }

.hud-score {
  grid-column: 3;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

/* The paper gauge sits centred between them, deliberately small: the rip
   drawn across the poi itself is the real signal and this is the confirmation,
   not the other way round. */
.hud-poi {
  grid-column: 2;
  width: min(34vw, 9rem);
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hud-poi i {
  display: block; height: 100%; width: 100%;
  transform-origin: left center;
  background: #f3e6cd;
  transition: background var(--dur-base) var(--ease-out);
}
.hud-poi[data-worn="true"] i { background: var(--orange); }
.hud-poi[data-worn="tearing"] i { background: var(--ember); }

/* ---- Start card -------------------------------------------------------- */

.start-lede { font-size: .9375rem; line-height: 1.55; }
.start-warn {
  font-size: .875rem;
  color: rgba(242,231,211,.6);
  font-style: italic;
}

/* ---- Result ------------------------------------------------------------ */

.result-score {
  margin: .2rem 0 0;
  text-align: center;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.result-score small {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242,231,211,.5);
  margin-top: .4rem;
}

.verdict-line {
  margin: .2rem 0 0;
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gold);
}
