/* Physical plate artwork supersedes the earlier decorative CSS plates. */
.license-plate.plate-realistic {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 5px;
  outline: 0;
  box-shadow: 0 2px 3px #0005;
  background: transparent;
  aspect-ratio: var(--plate-ratio);
  font-style: normal;
  font-synthesis: none;
  overflow: hidden;
}
.license-plate.plate-realistic::before,
.license-plate.plate-realistic::after {
  display: none;
}
.plate-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.plate-ru [data-reel-track] {
  stroke: #111;
  stroke-width: 1.5;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.plate-reel .reel-placeholder {
  display: none;
}
.plate-reel[data-reel-state="pending"] [data-reel-track] {
  visibility: hidden;
}
.plate-reel[data-reel-state="pending"] .reel-placeholder {
  display: block;
}
.plate-reel[data-reel-state="rolling"] [data-reel-track] {
  opacity: 0.9;
  filter: blur(0.35px);
}
.hero-plate > .plate-us {
  max-width: 240px;
  margin-inline: auto;
}
.card-plate > .plate-us {
  max-width: 230px;
  margin-inline: auto;
}
.plate-detail > .plate-us,
.result-grid .plate-us {
  max-width: 320px;
  margin-inline: auto;
}
.rolling .license-plate {
  animation: none;
}
.draw-dialog {
  max-width: 620px;
}
.draw-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}
.draw-counter > b {
  color: var(--accent);
}
.draw-stage {
  padding: 28px 0 20px;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.draw-stage .plate-us {
  max-width: 300px;
  margin-inline: auto;
}
.draw-caption {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  min-height: 22px;
}
.draw-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 8px 0 26px;
}
.draw-progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.draw-progress i.revealed {
  background: var(--accent);
}
.draw-actions {
  display: flex;
  justify-content: center;
}
.draw-actions button {
  min-height: 44px;
}
.draw-notice {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}
.draw-motion {
  opacity: 1;
  transition: opacity 100ms ease;
}
.draw-dialog[data-phase="switching"] .draw-motion {
  opacity: 0;
}
.draw-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 24px;
  margin-bottom: 16px;
}
.draw-status > [data-symbol-count] {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
}
.symbol-progress {
  display: flex;
  gap: 7px;
}
.symbol-progress i {
  width: 7px;
  height: 7px;
  background: var(--line-strong);
  border-radius: 50%;
}
.symbol-progress i.revealed {
  background: var(--accent);
}
.draw-summary {
  height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: auto;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms;
}
.draw-summary h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}
.draw-summary p {
  margin: 0;
  font-size: 12px;
}
.draw-summary .rarity {
  margin: 0;
  font-size: 11px;
}
.draw-action-stack {
  display: grid;
  margin-top: 18px;
}
.draw-action-stack > div {
  grid-area: 1/1;
  align-self: center;
}
.draw-action-stack > .dialog-actions {
  margin: 0;
}
.draw-final {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms;
}
.draw-skip {
  transition:
    opacity 160ms ease,
    visibility 160ms;
}
.draw-dialog[data-phase="ready"] .draw-summary,
.draw-dialog[data-phase="ready"] .draw-final {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.draw-dialog[data-phase="ready"] .draw-skip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.plate-references {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.plate-references a {
  color: var(--accent);
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .draw-stage {
    padding-top: 20px;
    min-height: 120px;
  }
  .draw-counter {
    margin-bottom: 12px;
  }
  .draw-caption {
    font-size: 11px;
    line-height: 1.6;
  }
  .draw-summary h3 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .draw-motion,
  .draw-summary,
  .draw-final,
  .draw-skip {
    transition: none;
    transform: none;
  }
}
