/* Preserve the production diamond geometry and remaining-time gauge. */
#seat6 .timebank-toggle .tb-progress {
  /* Advance the empty arc clockwise from the top while retaining the remaining length. */
  stroke-dashoffset:calc(var(--tb-dash, 100) - 100) !important;
  /* Every sample is already an authoritative countdown. Never tween a new turn from the previous dash. */
  transition:none !important;
}
#seat6:not(.timer-active) .timebank-toggle .tb-progress,
#seat6.folded-seat .timebank-toggle .tb-progress {
  opacity:0 !important;
  transition:none !important;
}
#seat6 .timebank-toggle.off { --tb-accent:#52f5ff; opacity:1 !important; }
#seat6 .timebank-toggle.on { --tb-accent:#b969ff; }
#seat6 .timebank-toggle:is(.off,.on) .tb-glow,
#seat6 .timebank-toggle:is(.off,.on) .tb-rim,
#seat6 .timebank-toggle:is(.off,.on) .tb-rim-inner,
#seat6 .timebank-toggle:is(.off,.on) .tb-accent {
  stroke:var(--tb-accent) !important;
  filter:none !important;
}
#seat6 .timebank-toggle:is(.off,.on) .tb-core,
#seat6 .timebank-toggle:is(.off,.on) .tb-frame { filter:none !important; }
#seat6 .timebank-toggle.off .tb-core { fill:#061018 !important; }
#seat6 .timebank-toggle.off .tb-glow { opacity:.22 !important; }
#seat6 .timebank-toggle.off .tb-rim { opacity:.75 !important; }
#seat6 .timebank-toggle.off .tb-rim-inner { opacity:.5 !important; }
#seat6 .timebank-toggle.off .tb-accent { opacity:.75 !important; }
#seat6 .timebank-toggle .tb-corner-glow-layer,
#seat6 .timebank-toggle .tb-armed-light { display:none !important; }
#seat6 .timebank-toggle:is(.off,.on) .tb-content,
#seat6 .timebank-toggle:is(.off,.on) .tb-label,
#seat6 .timebank-toggle:is(.off,.on) .tb-count {
  color:var(--tb-accent) !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}
#seat6 .timebank-toggle .tb-content { gap:.12em !important; transform:translateY(.18em); }
#seat6 .timebank-toggle .tb-label {
  display:block; font-size:1.06em; line-height:1; font-weight:900; letter-spacing:.04em;
}
#seat6 .timebank-toggle.on .tb-core { fill:#1e1035 !important; }
#seat6 .timebank-toggle.on .tb-glow {
  opacity:.9 !important;
  filter:drop-shadow(0 0 .32em rgba(185,105,255,.8)) drop-shadow(0 0 .65em rgba(152,70,255,.48)) !important;
}
#seat6 .timebank-toggle.on .tb-rim,
#seat6 .timebank-toggle.on .tb-rim-inner {
  opacity:1 !important;
  filter:drop-shadow(0 0 .24em rgba(185,105,255,.65)) !important;
}
#seat6 .timebank-toggle.on .tb-label,
#seat6 .timebank-toggle.on .tb-count {
  text-shadow:0 0 .24em rgba(185,105,255,.65),0 0 .5em rgba(152,70,255,.35) !important;
}
.timebank-tap-effect {
  position:absolute; z-index:10065; pointer-events:none; transform:translate(-50%,-50%);
}
.timebank-tap-effect .tb-tap-wave {
  position:absolute; left:50%; top:50%; width:90%; height:90%; box-sizing:border-box;
  border:3px solid #cf91ff; border-radius:5%; opacity:0;
  animation:timebank-diamond-wave 800ms ease-out both;
}
.timebank-tap-effect .tb-tap-light {
  position:absolute; inset:12%; opacity:0;
  background:radial-gradient(circle,rgba(185,105,255,.8) 0%,rgba(152,70,255,.45) 24%,rgba(152,70,255,.15) 42%,transparent 64%);
  animation:timebank-diamond-light 700ms ease-out both;
}
@keyframes timebank-diamond-wave {
  0% { transform:translate(-50%,-50%) rotate(45deg) scale(.93); opacity:0; }
  16% { opacity:1; }
  100% { transform:translate(-50%,-50%) rotate(45deg) scale(2.1); opacity:0; }
}
@keyframes timebank-diamond-light {
  0% { opacity:0; }
  20% { opacity:.78; }
  100% { opacity:0; }
}
body:not(.app-view-table) .timebank-tap-effect,
body.ponder-duel-active .timebank-tap-effect,
body.ponder-showdown-result-mode .timebank-tap-effect,
body.ponder-tournament-winner-presentation .timebank-tap-effect { display:none; }
@media(prefers-reduced-motion:reduce) {
  .timebank-tap-effect .tb-tap-wave,.timebank-tap-effect .tb-tap-light { animation:none; }
}
