
.lucky-head { text-align: center; }
.lucky-tier { margin: 0; font-size: var(--apa-text-xl); font-weight: 700; }
.lucky-head .hint { margin: 0.25rem 0 0; min-height: 1.4em; }
.lucky-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 9rem; align-items: center; width: 100%; }
.lots-hint { color: var(--muted); margin: 0; }
.lucky-card {
  min-width: 6.5rem; max-width: 100%; padding: 1.1rem 1.1rem 1rem; text-align: center; overflow-wrap: anywhere;
  border-radius: var(--radius); background: var(--surface);
  font-size: clamp(1.4rem, 5.5vw, 2.3rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.lucky-cards[data-count='1'] .lucky-card { font-size: clamp(2rem, 9vw, 3.4rem); padding-inline: 2rem; }
.lucky-card.is-rolling { color: var(--muted); }
.lucky-card.is-in, .lucky-stage-name.is-in { animation: lucky-in var(--apa-spring-dur) var(--apa-spring) both; animation-delay: calc(var(--i, 0) * var(--step, 60ms)); }
@keyframes lucky-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lucky-group + .lucky-group { margin-top: 1rem; }
.lucky-group h3 { margin: 0 0 0.4rem; font-size: var(--apa-text-md); }
.lucky-list:empty { display: none; }
.full-view { position: fixed; inset: 0; z-index: 100; overflow: hidden; outline: none; }
.full-close {
  position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); z-index: 2;
  width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: 0.55;
}
.full-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .full-close:hover:not(:disabled) { background: rgb(127 127 127 / 0.2); color: inherit; opacity: 1; } }
.lucky-stage {
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 2vh;
  background: var(--paper); color: var(--ink); padding: 4vh 4vw calc(4vh + env(safe-area-inset-bottom));
}
.lucky-stage-tier { margin: 0; font-size: clamp(1.5rem, 6vmin, 3.5rem); font-weight: 700; color: var(--muted); padding-inline: 48px; text-align: center; }
.lucky-stage-names {
  align-self: center; justify-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0.25em 0.6em;
  position: relative; width: 100%; min-width: 0; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; text-align: center;
}
.lucky-stage-name { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lucky-stage-name.is-rolling { color: var(--muted); }
.lucky-stage-actions { justify-content: center; }
.lk-count { margin: 0.75rem 0 0; text-align: center; font-weight: 650; }
.lk-secondary { justify-content: center; }
.lk-phone { max-width: 30rem; margin: 0 auto; }
.lk-phone .stage { text-align: center; gap: 0.75rem; }
.lk-phone .stage p { margin: 0; }
.lk-wait { font-size: var(--apa-text-xl); font-weight: 700; }
.lk-won { font-size: clamp(2rem, 9vw, 3rem); font-weight: 750; line-height: 1.2; }
.lk-won.is-in { animation: lucky-in var(--apa-spring-dur) var(--apa-spring) both; }
.is-presenting .lk-results { display: none; }
.is-presenting .lk-stage .lucky-tier { font-size: clamp(1.5rem, 3.5vw, 3rem); }
.is-presenting .lk-stage .lucky-card { font-size: clamp(2rem, 5vw, 5rem); }
.is-presenting .lk-stage .lucky-cards[data-count='1'] .lucky-card { font-size: clamp(3rem, 9vw, 8rem); }
.is-presenting .lk-stage .lucky-cards { min-height: 40vh; }
