
.lantern-button {
  min-width: 84px;
}

.lantern-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 1.05rem;
  line-height: 1;
  transform-origin: 50% 0;
}

.lantern-button:not(.ready) .lantern-icon {
  filter: grayscale(0.7) brightness(0.7);
}

.lantern-button.ready .lantern-icon {
  animation: lantern-swing 2.4s ease-in-out infinite;
}

.lantern-up {
  gap: 14px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, rgba(14, 3, 30, 0.45), rgba(14, 3, 30, 0) 100%),
    url("../art/beacon/hall.webp") center / cover no-repeat,
    #1a0636;
}

.lantern-title {
  font-size: 2.1rem;
  white-space: nowrap;
  filter: drop-shadow(0 1px 1px #000) drop-shadow(0 2px 4px var(--bg-deep));
}

.lantern-next {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 400;
}

.lantern-respins {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 230px;
  min-height: 32px;
  padding: 2px 16px;
  border: 2px solid #ff4fd8;
  border-radius: 6px;
  background: linear-gradient(180deg, #2a0846, #14031f);
  box-shadow: 0 0 12px rgba(255, 79, 216, 0.6), inset 0 0 8px rgba(255, 79, 216, 0.35);
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lantern-respins-count {
  color: #ff4fd8;
  font-size: 1.35rem;
  text-shadow: 0 0 8px rgba(255, 79, 216, 0.8);
}

.lantern-respins.reset {
  animation: beacon-reset 420ms ease-out;
}

.lantern-reels {
  --lc: clamp(50px, min((100vw - 74px) / 4, (100vh - 470px) / 3), 84px);
  --lc: clamp(50px, min((100vw - 74px) / 4, (100dvh - 470px) / 3), 84px);
  --cell: var(--lc);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--lc) calc(var(--lc) * 2) var(--lc);
  grid-template-rows: calc(var(--lc) * 3 + 8px);
  gap: 6px;
  padding: 6px;
  border: 3px solid transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a0838, #0a0320) padding-box;
  box-shadow: 0 0 22px rgba(255, 196, 80, 0.45), inset 0 0 18px rgba(0, 0, 0, 0.7);
  transition: box-shadow 300ms ease;
}

.lantern-reels.unlocked {
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.85), 0 0 46px rgba(170, 60, 255, 0.5), inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.lantern-reels::before {
  content: "";
  position: absolute;
  inset: -10px -8.5px -9px;
  z-index: 3;
  border: 26px solid transparent;
  border-image: url("../art/beacon/bezel.webp") 80 / 26px stretch;
  pointer-events: none;
}

.lantern-side {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}

.lantern-cell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 40%, #2a1462, #0c0528 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.55);
  transition: opacity 300ms ease, filter 300ms ease;
}

.lantern-reels:not(.unlocked) .lantern-cell {
  opacity: 0.22;
  filter: grayscale(0.8);
}

.lantern-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 2px;
  color: #fff;
  font-family: var(--display);
  font-size: 0.8rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  transition: opacity 300ms ease;
}

.lantern-reels.unlocked .lantern-lock {
  opacity: 0;
}

.lantern-cell-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.lantern-cell-item {
  display: grid;
  place-items: center;
  height: var(--lc);
}

.lantern-cell.spinning .beacon-coin {
  filter: blur(0.8px);
}

.lantern-cell.locked {
  background: radial-gradient(circle at 50% 40%, #4a2aa8, #1a0c58 75%);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(255, 196, 60, 0.6);
  animation: beacon-lock 360ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.lantern-cell.collect,
.lantern-centre.collect {
  animation: beacon-flare 360ms ease-out;
}

.lantern-sym.letter {
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--symbol);
  font-size: calc(var(--cell) * 0.56);
  font-weight: 400;
}

.lantern-sym.letter-10 {
  font-size: calc(var(--cell) * 0.4);
  letter-spacing: -0.04em;
}

.lantern-strip-item .lantern-sym.letter {
  font-size: calc(var(--cell) * 1.15);
}

.lantern-strip-item .lantern-sym.letter-10 {
  font-size: calc(var(--cell) * 0.85);
}

.lantern-centre {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 45%, #2e1670, #0c0530 75%);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.lantern-reels.landed .lantern-centre {
  animation: beacon-land 700ms ease-out forwards;
}

.lantern-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.lantern-strip-item {
  display: grid;
  place-items: center;
  height: calc(var(--lc) * 3 + 8px);
}

.beacon-coin {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--lc) * 0.86);
  height: calc(var(--lc) * 0.86);
  background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
}

.beacon-coin > span {
  grid-area: 1 / 1;
}

.beacon-coin-star {
  visibility: hidden;
  color: rgba(150, 80, 0, 0.6);
  text-shadow: 0 1px 0 rgba(255, 240, 190, 0.7), 0 -1px 0 rgba(90, 40, 0, 0.5);
  font-size: calc(var(--lc) * 0.62);
  line-height: 1;
}

.beacon-coin-value {
  color: #fff;
  font-family: var(--display);
  font-size: calc(var(--lc) * 0.3);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-text-stroke: calc(var(--lc) * 0.05) #2a1000;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #2a1000, 0 0 6px rgba(0, 0, 0, 0.9);
}

.beacon-coin.big {
  width: calc(var(--lc) * 1.86);
  height: calc(var(--lc) * 1.86);
}

.beacon-coin.big .beacon-coin-star {
  font-size: calc(var(--lc) * 1.35);
}

.beacon-coin.big .beacon-coin-value {
  font-size: calc(var(--lc) * 0.54);
  -webkit-text-stroke: calc(var(--lc) * 0.07) #2a1000;
  text-shadow: 0 3px 0 #2a1000, 0 0 12px rgba(0, 0, 0, 0.9);
}

.beacon-coin.mini {
  width: 26px;
  height: 26px;
}

.beacon-coin > .beacon-coin-light {
  position: absolute;
  right: 4%;
  bottom: 1%;
  color: var(--starlight);
  font-family: var(--display);
  font-size: max(11px, calc(var(--lc) * 0.22));
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-text-stroke: 2px var(--starlight-deep);
  paint-order: stroke fill;
  text-shadow: 0 1px 0 #00140c;
}

.beacon-coin.big > .beacon-coin-light {
  right: 4%;
  bottom: 1%;
  font-size: calc(var(--lc) * 0.44);
  -webkit-text-stroke-width: 4px;
}

.lantern-prizes,
.comet-prizes {
  flex-direction: row;
  gap: 24px;
  min-height: 0;
}

.lantern-prizes .spire-up-prize {
  width: auto;
  min-width: 88px;
}

.lantern-prizes .spire-up-label {
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.lantern-light .spire-up-amount {
  color: var(--starlight);
}

.lantern-light-mark {
  width: 60px;
  height: 60px;
}

.lantern-up > .lantern-bolts {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ff4df0) drop-shadow(0 0 12px #c040ff);
  transition: opacity 200ms ease;
}

.lantern-up > .lantern-title,
.lantern-up > .lantern-respins,
.lantern-up > .lantern-prizes,
.lantern-up > .lantern-next,
.lantern-up > .reward-collect {
  position: relative;
  z-index: 2;
}

.lantern-up.crackle > .lantern-bolts {
  opacity: 1;
}

.lantern-bolts path {
  fill: none;
  stroke: #ffe8fd;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.lantern-bolts path:nth-child(n + 3) {
  stroke-width: 1.5;
}

