.feature-sign .lobby-feature { right: 124px; }
.lobby-specials {
  position: absolute;
  top: 4px;
  right: 12px;
  z-index: 2;
  width: 96px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: var(--type-key);
  line-height: 1;
  touch-action: manipulation;
}
.lobby-specials:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lobby-specials > span { pointer-events: none; }
.specials-caret {
  position: absolute;
  left: 30px;
  right: 30px;
  top: -2px;
  height: 15px;
  padding-top: 1px;
  border: 1px solid var(--sapphire);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(var(--navy), var(--navy-deep));
  color: var(--gold);
  font-size: 22px;
  box-shadow: 0 0 4px var(--neon-cyan);
}
.specials-caret svg { width: 18px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.specials-face {
  position: absolute;
  inset: 7px 2px 5px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(var(--neon-pink), var(--red) 45%, var(--red-dark) 55%, var(--lacquer));
  box-shadow: 0 0 0 1px var(--navy-deep), 0 0 0 3px var(--sapphire), 0 0 7px var(--neon-pink), inset 0 2px 1px rgba(255,255,255,.6), inset 0 -3px 2px var(--bg-deep);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, border-color 80ms ease-out;
}
.lobby-specials:active:not(:disabled) .specials-face {
  transform: translateY(1px);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--navy-deep), 0 0 0 3px var(--sapphire), 0 0 10px var(--neon-pink), inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -1px 1px var(--bg-deep);
}
.specials-letters {
  display: flex;
  height: 18px;
  line-height: 18px;
  text-shadow: 0 1px 0 var(--gold-deep), 0 2px 2px var(--bg-deep);
}
.specials-column { display: block; width: .46em; height: 18px; overflow: hidden; }
.specials-strip { display: flex; flex-direction: column; }
.specials-letter { flex: none; height: 18px; line-height: 18px; }
.specials-flash {
  position: absolute;
  inset: -8px -24px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(150deg, transparent 35%, rgba(255,255,255,.95) 48%, transparent 62%);
  transform: translateX(-100%);
}
.specials-underline {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sapphire);
  box-shadow: 0 0 4px var(--neon-cyan);
}
.specials-glint {
  position: absolute;
  z-index: 1;
  width: 24px;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--text), var(--neon-cyan), transparent);
  box-shadow: 0 0 5px var(--neon-cyan);
}
.specials-glint.top { top: 6px; left: 4px; }
.specials-glint.bottom { bottom: 0; right: 4px; }
.lobby[data-attention-motion="true"] .specials-glint.top { animation: specials-rim-top 2.8s linear infinite; }
.lobby[data-attention-motion="true"] .specials-glint.bottom { animation: specials-rim-bottom 3.2s linear .4s infinite; }
.attention-roll .specials-strip { animation: specials-letter-roll 2.2s cubic-bezier(.3,0,.35,1) var(--letter-delay) both; }
.attention-roll .specials-flash { animation: specials-face-flash 260ms ease-out 1130ms; }
@keyframes specials-rim-top {
  0% { opacity: 0; transform: translateX(0); }
  25% { opacity: .9; transform: translateX(22px); }
  65% { opacity: .35; transform: translateX(45px); }
  100% { opacity: 0; transform: translateX(65px); }
}
@keyframes specials-rim-bottom {
  0% { opacity: 0; transform: translateX(0); }
  30% { opacity: .95; transform: translateX(-20px); }
  70% { opacity: .2; transform: translateX(-46px); }
  100% { opacity: 0; transform: translateX(-65px); }
}
@keyframes specials-letter-roll {
  0% { transform: translateY(0); }
  48% { transform: translateY(-51.4286%); }
  62% { transform: translateY(-34.2857%); }
  100% { transform: translateY(-85.7143%); }
}
@keyframes specials-face-flash {
  0% { opacity: 0; transform: translateX(-70%); }
  40% { opacity: 1; transform: translateX(-10%); }
  100% { opacity: 0; transform: translateX(70%); }
}
.lobby-buy { color: var(--bg-deep); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.lobby-buy { --buy-y: 3px; }
html.landscape .lobby-buy { --buy-y: 7px; }
.buy-sheen {
  position: absolute;
  inset: calc(var(--buy-y) + 1.5px) 4.5px;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.buy-sheen::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(110deg, transparent 8%, rgba(255,226,140,.55) 32%, rgba(255,255,255,.9) 50%, rgba(255,226,140,.55) 68%, transparent 92%);
  transform: translateX(-160%) skewX(-18deg);
}
.buy-star {
  position: absolute;
  top: calc(var(--buy-y) - 6px);
  right: -3px;
  z-index: 1;
  width: 14px;
  height: 14px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  filter: drop-shadow(0 0 3px rgba(255,236,160,.9)) drop-shadow(0 1px 1px rgba(0,0,0,.5));
}
.buy-star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff 0 22%, var(--gold-light) 60%, var(--gold) 100%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.lobby-buy.broke :is(.buy-sheen, .buy-star) { display: none; }
.lobby-buy.attention-flash:not(.broke) .buy-sheen::before { animation: buy-sheen-sweep 520ms ease-in-out both; }
.lobby-buy.attention-flash:not(.broke) .buy-star { animation: buy-star-pop 360ms ease-out 260ms both; }
@keyframes buy-sheen-sweep {
  from { transform: translateX(-160%) skewX(-18deg); }
  to { transform: translateX(330%) skewX(-18deg); }
}
@keyframes buy-star-pop {
  0% { opacity: 0; transform: scale(0) rotate(-30deg); }
  45% { opacity: 1; transform: scale(1.1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0) rotate(40deg); }
}
.lobby-topbar .credits-coin {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}
.lobby-topbar .credits-coin::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,.85) 50%, transparent 90%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-130%);
}
.lobby-topbar .credits.coin-glint > .credits-coin::after { animation: coin-glint-sweep 700ms ease-in-out both; }
.lobby-topbar .credits:is(.show-starlight, .show-astrals) > .credits-coin::after { animation: none; }
@keyframes coin-glint-sweep {
  0% { opacity: 0; transform: translateX(-130%); }
  25%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(260%); }
}
.specials-left { display: none; }
html.landscape .feature-sign .specials-left {
  position: absolute;
  top: 100%;
  left: 50%;
  display: block;
  height: var(--specials-countdown);
  padding: 0 6px;
  border: 1px solid var(--sapphire);
  border-radius: 7px;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
}
@media (max-height: 700px) { .lobby-specials { top: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .lobby-specials *, .buy-sheen::before, .buy-star, .lobby-topbar .credits-coin::after { animation: none !important; }
  .specials-face { transition: none; }
  .lobby-specials:active:not(:disabled) .specials-face {
    transform: none;
    box-shadow: 0 0 0 1px var(--navy-deep), 0 0 0 3px var(--sapphire), 0 0 10px var(--neon-pink), inset 0 2px 3px rgba(0, 0, 0, 0.45), inset 0 -3px 2px var(--bg-deep);
  }
  .specials-glint, .specials-flash { opacity: 0; }
}
