.feature-sign {
  height: 94px;
  padding: 4px 16px;
  flex: none;
}
.feature-sign::before,
.feature-sign::after { font-size: 0; animation: none; pointer-events: none; }
.feature-sign::before { left: -4px; }
.feature-sign::after { right: -4px; }
.lobby-feature {
  position: absolute;
  top: 4px;
  left: 16px;
  right: 16px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  touch-action: manipulation;
  z-index: 2;
}
.lobby-feature:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lobby-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background: rgba(8, 2, 18, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 224, 130, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 80ms ease-out;
}
.lobby-feature > span {
  transition: transform 80ms ease-out;
}
.lobby-feature:active:not(:disabled):not([aria-disabled="true"])::before {
  opacity: 1;
}
.lobby-feature:active:not(:disabled):not([aria-disabled="true"]) > span {
  transform: translateY(1px);
}
.feature-sign .lobby-sign-title {
  position: absolute;
  left: 60px;
  top: 0;
  font-family: var(--display);
  font-size: 11px;
  line-height: 12px;
  letter-spacing: .08em;
}
.lobby-feature-content {
  position: absolute;
  inset: 12px 0 0;
  opacity: 1;
}
.lobby-feature-art {
  position: absolute;
  width: 48px;
  height: 44px;
  left: 0;
  top: -12px;
  object-fit: contain;
  pointer-events: none;
}
.lobby-feature[data-phase="event"] .lobby-feature-art {
  width: 54px;
  height: 54px;
  left: -4px;
  top: -9px;
  object-fit: cover;
  object-position: 50% 14%;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.lobby-feature-copy {
  display: flex;
  flex-direction: column;
  margin-left: 60px;
  min-width: 0;
  font-family: var(--display);
  text-shadow: 0 1px 0 #000, 0 2px 4px #000;
  letter-spacing: .03em;
}
.lobby-feature-title {
  height: 18px;
  line-height: 18px;
  font-size: var(--type-readout);
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobby-feature-badge {
  position: relative;
  align-self: flex-start;
  height: 14px;
  line-height: 14px;
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lobby-feature-status { display: block; height: 14px; line-height: 14px; }
.lobby-feature[data-phase="ready"] .lobby-feature-badge,
.lobby-feature[data-phase="new"] .lobby-feature-badge { color: var(--gold-light); }
.feature-sign .lobby-sign-sub {
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  margin: 0;
  text-align: center;
}
.lobby-notice {
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 18px;
  line-height: 18px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .035em;
  color: var(--gold-light);
  text-align: center;
  text-shadow: 0 1px 0 #000;
  opacity: 0;
  pointer-events: none;
}
.lobby-notice.show { opacity: 1; animation: feature-notice-in 240ms ease-out; }
.lobby-notice.notice-exiting { opacity: 1; animation: feature-fade-out 240ms ease-in forwards; }
.feature-sign:has(.lobby-notice.show, .lobby-notice.notice-exiting) .lobby-marquee-ticker,
.feature-notice-gap .lobby-marquee-ticker { visibility: hidden; }
#lobby-notice-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.feature-fading { animation: feature-fade-out 180ms ease-in forwards; }
.feature-entering { animation: feature-fade-in 180ms ease-out; }
@keyframes feature-fade-out { to { opacity: 0; } }
@keyframes feature-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes feature-notice-in {
  from { opacity: 0; transform: translateY(-3px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lobby-feature-status-old { display: none; }
.feature-status-change .lobby-feature-status-old {
  position: absolute;
  inset: 0;
  display: block;
  animation: feature-fade-out 200ms ease-out forwards;
}
.feature-status-change .lobby-feature-status { animation: feature-fade-in 200ms ease-out; }
.lobby-feature-roll { display: none; }
.feature-roll .lobby-feature-status,
.feature-roll .lobby-feature-status-old { visibility: hidden; }
.feature-roll .lobby-feature-roll {
  display: flex;
  position: absolute;
  inset: 0;
}
.feature-letter { display: inline-block; height: 14px; overflow: hidden; }
.feature-letter-track { display: flex; flex-direction: column; animation: feature-letter-roll 350ms ease-out var(--letter-delay) both; }
.feature-letter-track > span { height: 14px; }
@keyframes feature-letter-roll { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.feature-roll::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 30%, #fff3b0aa 48%, transparent 65%);
  animation: feature-sheen 180ms ease-out 550ms;
}
@keyframes feature-sheen {
  from { opacity: .2; transform: translateX(-50%); }
  50% { opacity: .8; }
  to { opacity: 0; transform: translateX(50%); }
}
.feature-halo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 12px #ffdf7980, 0 0 10px #cf5ff755;
  pointer-events: none;
  opacity: .2;
  animation: feature-halo 3.2s ease-in-out infinite;
}
@keyframes feature-halo { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }
.feature-glint {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  pointer-events: none;
  opacity: 0;
  animation: feature-glint 3.2s ease-in-out infinite;
}
.feature-glint.a { left: 8px; top: 8px; }
.feature-glint.b { right: 8px; bottom: 8px; animation-delay: -1.6s; }
@keyframes feature-glint {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  15% { opacity: .9; transform: scale(1) rotate(45deg); }
  35% { opacity: .01; transform: scale(.3) rotate(90deg); }
}
.feature-fleck {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 7px;
  background: var(--gold-light);
  pointer-events: none;
  opacity: 0;
}
.feature-fleck.n0 { --fleck-x: -125px; --fleck-y: -20px; }
.feature-fleck.n1 { --fleck-x: -80px; --fleck-y: -32px; }
.feature-fleck.n2 { --fleck-x: -40px; --fleck-y: 26px; }
.feature-fleck.n3 { --fleck-x: 45px; --fleck-y: -30px; }
.feature-fleck.n4 { --fleck-x: 85px; --fleck-y: 25px; }
.feature-fleck.n5 { --fleck-x: 130px; --fleck-y: -15px; }
.feature-flecks .feature-fleck { animation: feature-fleck 750ms ease-out; }
@keyframes feature-fleck {
  from { opacity: 0; transform: translate(0, 0) rotate(0); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--fleck-x), var(--fleck-y)) rotate(120deg); }
}
#lobby:not([data-content-motion="true"]) .feature-halo,
#lobby:not([data-content-motion="true"]) .feature-glint,
.feature-feedback .feature-halo,
.feature-feedback .feature-glint { animation-play-state: paused; opacity: 0; }
@media (max-height: 700px) {
  .feature-sign { height: 74px; padding: 2px 16px; }
  .lobby-feature { top: 2px; }
  .feature-sign .lobby-sign-sub,
  .lobby-notice { bottom: 2px; }
  .feature-sign .lobby-sign-sub { font-size: 11px; }
  .league-tab.open { padding-top: 2px; padding-bottom: 2px; }
  .league-tab.open .league-tab-body { gap: 1px; }
  .league-tab.open .league-tab-head { gap: 2px; }
  .league-tab.open .league-tab-gem { width: 18px; height: 18px; }
  .league-tab.open .league-tab-row { min-height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-sign *,
  .feature-sign *::after { animation: none !important; }
  .lobby-feature::before,
  .lobby-feature > span { transition: none; }
  .lobby-feature:active:not(:disabled):not([aria-disabled="true"]) > span { transform: none; }
  .feature-glint,
  .feature-fleck { opacity: 0; }
}
