/* ac_n_iron panel_countdown: 280×160 native canvas; artwork keeps its prefab proportions.
   The existing Countdown owns server-time calculation, pause, expiry and warning threshold. */
.icd { --cu: .01rem; position: relative; flex: none; width: calc(280 * var(--cu)); height: calc(160 * var(--cu)); isolation: isolate; }
.icd > span { position: absolute; pointer-events: none; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.icd__back { right: 0; top: 0; width: calc(694 * var(--cu)); height: calc(134 * var(--cu)); background-image: var(--iron-asset-countdown-img-back, none); z-index: -2; }
.icd__bg { right: 0; top: 0; width: calc(277 * var(--cu)); height: calc(151 * var(--cu)); background-image: var(--iron-asset-countdown-img-bg-1, none); z-index: -1; }
.icd__dial { right: 0; top: calc(4 * var(--cu)); width: calc(168 * var(--cu)); height: calc(108 * var(--cu)); background-image: var(--iron-asset-countdown-img-bg-2, none); }
.icd__ring { left: calc(139 * var(--cu)); top: calc(9 * var(--cu)); width: calc(104 * var(--cu)); height: calc(104 * var(--cu)); -webkit-mask-image: conic-gradient(from 0deg, #000 var(--icd-fill), transparent var(--icd-fill)); mask-image: conic-gradient(from 0deg, #000 var(--icd-fill), transparent var(--icd-fill)); transition: opacity .167s linear; }
.icd__ring--normal { background-image: var(--iron-asset-countdown-iflled-img-normal, none); opacity: 1; }
.icd__ring--last { background-image: var(--iron-asset-countdown-iflled-img-last, none); opacity: 0; }
.icd__last-glow { right: 0; top: 0; width: calc(353 * var(--cu)); height: calc(198 * var(--cu)); background-image: var(--iron-asset-countdown-img-light-last, none); opacity: 0; transition: opacity .167s linear; }
.icd.is-warn .icd__ring--normal { opacity: 0; }
.icd.is-warn .icd__ring--last { opacity: 1; }
.icd.is-warn .icd__last-glow { opacity: .5; }
.icd__num-back { left: calc(140.5 * var(--cu)); top: calc(37.5 * var(--cu)); width: calc(107 * var(--cu)); height: calc(61 * var(--cu)); background-image: var(--iron-asset-countdown-count-num-back, none); }
.icd__num-front { left: calc(146 * var(--cu)); top: calc(41 * var(--cu)); width: calc(90 * var(--cu)); height: calc(44 * var(--cu)); background-image: var(--iron-asset-countdown-count-num-front, none); }
.icd .icd__digits { left: calc(142 * var(--cu)); top: calc(38 * var(--cu)); width: calc(96 * var(--cu)); height: calc(52 * var(--cu)); display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.icd__digit { display: block; flex: 0 0 calc(32 * var(--cu)); width: calc(32 * var(--cu)); height: calc(52 * var(--cu)); background: center / 100% 100% no-repeat;
  font: 700 calc(44 * var(--cu)) / calc(52 * var(--cu)) var(--font-num, sans-serif); text-align: center; }
.icd .icd__label { right: calc(25 * var(--cu)); top: calc(114 * var(--cu)); color: #efcf91; background: rgba(20,12,7,.75); padding: 2px 5px; font-size: max(9px,.12rem); white-space: nowrap; }
.icd--sm { --cu: .007rem; }
html[data-battle-theme="ac_n_iron"] .gm .gtop__clock { position: relative; }
html[data-battle-theme="ac_n_iron"] .gm .gtop__clock .icd { margin-top: -.2rem; margin-right: -.3rem; margin-bottom: -.25rem; }
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .icd { --cu: .009rem; }
  .icd--sm { --cu: .0065rem; }
}
@media (prefers-reduced-motion: reduce) { .icd > span { transition: none; } }

.icd__digit--0 { background-image: var(--iron-asset-countdown-digit-0, none); }
.icd__digit--1 { background-image: var(--iron-asset-countdown-digit-1, none); }
.icd__digit--2 { background-image: var(--iron-asset-countdown-digit-2, none); }
.icd__digit--3 { background-image: var(--iron-asset-countdown-digit-3, none); }
.icd__digit--4 { background-image: var(--iron-asset-countdown-digit-4, none); }
.icd__digit--5 { background-image: var(--iron-asset-countdown-digit-5, none); }
.icd__digit--6 { background-image: var(--iron-asset-countdown-digit-6, none); }
.icd__digit--7 { background-image: var(--iron-asset-countdown-digit-7, none); }
.icd__digit--8 { background-image: var(--iron-asset-countdown-digit-8, none); }
.icd__digit--9 { background-image: var(--iron-asset-countdown-digit-9, none); }

/* panel_prep_ready: official ready/cancel plates and icons. Existing ReadyToggle
   keeps its click, busy/disabled behavior, shortcut and refusal messages. */
html[data-battle-theme="ac_n_iron"] .gm .readybtn {
  --ready-u: .014rem;
  /* Uniform 75% scale, including text, icon and frame; keep the visual right
     edge aligned to the digits, accounting for the timer's -.3rem margin. */
  scale: .75; transform-origin: right center;
  margin-right: calc(42 * .01rem - .3rem);
  position: relative; isolation: isolate; display: flex; align-items: center;
  width: calc(123 * var(--ready-u)); min-width: 0;
  height: calc(45 * var(--ready-u)); min-height: 0;
  gap: calc(6 * var(--ready-u)); padding: 0 calc(9 * var(--ready-u));
  border: 0; border-radius: 0; box-shadow: none;
  background: var(--iron-asset-countdown-btn-ready, #bad7cf) center / 100% 100% no-repeat;
  color: #283e3c; font-size: max(11px, calc(14 * var(--ready-u)));
  font-weight: 700; letter-spacing: .04em; transition: filter .2s, opacity .2s;
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn__box {
  width: calc(27 * var(--ready-u)); height: calc(27 * var(--ready-u));
  flex: none; border: 0; border-radius: 0;
  background: var(--iron-asset-countdown-icon-ready, none) center / contain no-repeat;
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn__box > * { display: none; }
html[data-battle-theme="ac_n_iron"] .gm .readybtn__label {
  position: relative; z-index: 1; flex: 1; white-space: nowrap; text-align: center;
  line-height: 1.1; overflow-wrap: normal;
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn__key {
  position: absolute; right: calc(7 * var(--ready-u)); bottom: calc(2 * var(--ready-u));
  color: #425955; border-color: rgba(40,62,60,.35); font-size: max(7px,.08rem); padding: 0 2px;
}
/* Keep the effect node stable through busy/ready updates. One entrance flash;
   ticker renders and disabled-state changes must not restart an idle loop. */
html[data-battle-theme="ac_n_iron"] .gm .readybtn::after {
  content: ''; position: absolute; pointer-events: none; z-index: -1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(133 * var(--ready-u)); height: calc(51 * var(--ready-u));
  background: var(--iron-asset-countdown-btn-ready-light, none) center / 100% 100% no-repeat;
  animation: iron-ready-frame 1.3333s linear 1 both;
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn:is(.is-on, :disabled)::after { visibility: hidden; }
@keyframes iron-ready-frame {
  0% { opacity: 0; scale: .928 .83; }
  26.25%,61.25% { opacity: 1; }
  87.5%,100% { opacity: .1; scale: 1.026 1.085; }
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn.is-on {
  background: var(--iron-asset-countdown-btn-cancel, #283e3c) center / 100% 100% no-repeat;
  color: #dfebe5; box-shadow: none;
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn.is-on .readybtn__box {
  background: var(--iron-asset-countdown-icon-cancel, none) center / contain no-repeat;
  border: 0;
}
html[data-battle-theme="ac_n_iron"] .gm .readybtn.is-on .readybtn__key { color: #dce7de; border-color: rgba(220,231,222,.35); }
html[data-battle-theme="ac_n_iron"] .gm .readybtn:hover:not(:disabled) { background-color: transparent; filter: brightness(1.12); box-shadow: none; }
html[data-battle-theme="ac_n_iron"] .gm .readybtn:focus-visible { outline: 2px solid #f3c34a; outline-offset: 3px; }
html[data-battle-theme="ac_n_iron"] .gm .readybtn:disabled { filter: grayscale(.8); opacity: .5; color: #6c7975; border: 0; box-shadow: none; }
html[data-battle-theme="ac_n_iron"] .gm .readybtn.is-busy { opacity: .65; }
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  html[data-battle-theme="ac_n_iron"] .gm .readybtn {
    --ready-u: max(.014rem, .7px);
    margin-right: calc(42 * .009rem - .3rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-battle-theme="ac_n_iron"] .gm .readybtn::after { animation: none !important; opacity: .4; }
}

