[hidden] { display: none !important; }
.alpha-shell { width: min(960px, calc(100% - 24px)); margin: 0 auto; padding: 14px 0 100px; text-align: center; }
.alpha-header, .alpha-actions, .alpha-dock { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.alpha-header { min-height: 55px; justify-content: flex-start; text-align: left; }
.alpha-header > .brand-name { font-size: 1.3rem; }
#environment { color: var(--muted, #bfb7cd); }
#wallet { margin-inline-start: auto; }
.alpha-feedback { min-height: 25px; margin: 6px 0; color: #ffb9c2; }
.alpha-panel { padding: clamp(12px, 3vw, 24px); background: #171121; border: 1px solid #372b48; border-radius: 20px; margin-inline: auto; }
.alpha-panel h1 { margin: 0 0 18px; font-size: clamp(1.3rem, 3vw, 1.9rem); }
#login { max-width: 500px; }
#login-form, #invite-fields[open] { display: grid; gap: 10px; text-align: left; }
#invite-fields > summary { cursor: pointer; }
#confirm { margin-top: 12px; }
.alpha-shell input, .alpha-shell select { max-width: 100%; min-height: 42px; padding: 7px 10px; color: #f8efff; border: 1px solid #514265; background: #211932; border-radius: 9px; }
.alpha-pack { max-width: 620px; }
.alpha-stage { min-height: 365px; display: grid; place-content: center; justify-items: center; gap: 10px; margin: 10px auto; }
.alpha-booster { width: 138px; aspect-ratio: 0.6; border-radius: 13px; cursor: pointer; padding: 0; border: none; background: transparent; filter: drop-shadow(0 9px 20px #5cfba851); }
.alpha-booster img { width: 100%; height: 100%; object-fit: contain; }
.alpha-reserve { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.alpha-reserve > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #4c3e61; border-radius: 9px; padding: 6px; }
.alpha-reserve progress { width: min(100%, 180px); accent-color: #83ffc1; }
.alpha-card { display: grid; gap: 4px; grid-template-rows: 2.9em minmax(0, 1fr) auto 2.55em auto; align-items: center; width: min(176px, 100%); aspect-ratio: 0.68; padding: 7px; border: 2px solid currentColor; border-radius: 12px; background: radial-gradient(ellipse at 35% 22%, color-mix(in srgb, currentColor 17%, #1a1326), #15101b); }
.alpha-card > * { min-width: 0; }
.alpha-card strong, .alpha-card .alpha-world { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.alpha-card img { align-self: stretch; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 28%; background: color-mix(in srgb, currentColor 20%, #15101b); border-radius: 6px; }
.alpha-card .alpha-stats, .alpha-card .alpha-world { color: #fff8f3; }
.alpha-card .alpha-stats, .alpha-card small { font-size: .78rem; }
.alpha-card.common, .alpha-odds.common { color: #c5bdce; }
.alpha-card.uncommon, .alpha-odds.uncommon { color: #72e3a0; }
.alpha-card.rare, .alpha-odds.rare { color: #64b2ff; }
.alpha-card.epic, .alpha-odds.epic { color: #b894ff; }
.alpha-card.legendary, .alpha-odds.legendary { color: #ffd578; }
.alpha-card.legendary { box-shadow: 0 0 23px #ffc7517f; }
.alpha-card.alpha-missing img { filter: saturate(.33) brightness(.72); }
.alpha-card.alpha-reveal { animation: alpha-flip .42s ease-out both; }
.alpha-card.alpha-reveal.legendary { animation-duration: 1.05s; }
@keyframes alpha-flip { from { transform: perspective(800px) rotateY(81deg); opacity: .23; } to { transform: perspective(800px) rotateY(0deg); opacity: 1; } }
.alpha-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 176px)); justify-content: center; gap: 12px; margin: 18px 0; }
.alpha-dock { position: fixed; z-index: 2; inset: auto 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #120d1df3; border-top: 1px solid #372b48; }
.alpha-dock [aria-current="page"] { color: #8dffc2; }
.alpha-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.alpha-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #372b48; padding-block: 8px; text-align: left; overflow-wrap: anywhere; }
.alpha-dialog form { margin: 0; padding: 18px; }
@media (max-width: 370px) {
  .alpha-cards { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
  .alpha-card { font-size: .9rem; }
  .alpha-actions { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .alpha-card.alpha-reveal { animation: none; } }
