:root {
  --bg: #0b0d11;
  --bg-2: #121621;
  --accent: #66f2b6;
  --gold: #f6d36c;
  --rare: #71c4ff;
  --epic: #ff7fd4;
  --legend: #ffb36b;
  --text: #e9edf4;
  --muted: #9aa5b1;
  --crate: #2a2f3a;
  --crate-edge: #3c4454;
  --lid: #232733;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: radial-gradient(circle at 20% 15%, #1a2233 0%, var(--bg) 50%),
    radial-gradient(circle at 85% 75%, #0c1627 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
  justify-content: center;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 15;
}

.xpbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}

.xpbar__level {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
}

.xpbar__track {
  width: 220px;
  height: 8px;
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.xpbar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7af7c3, #56e3ff);
  box-shadow: 0 0 12px rgba(102, 242, 182, 0.4);
  transition: width 0.3s ease;
}

.xpbar__info {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 12, 18, 0.6);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.xp-floater {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.xp-float {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #7af7c3;
  text-shadow: 0 0 14px rgba(102, 242, 182, 0.55);
  animation: xp-float-up 1.2s ease-out forwards;
}

@keyframes xp-float-up {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.02);
  }
}

.wallet {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.wallet__value {
  font-size: 20px;
  font-weight: 600;
  color: #7af7c3;
}

.wallet__cost {
  font-size: 12px;
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand__mark {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 242, 182, 0.4);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  font-family: "Sora", sans-serif;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stats {
  display: flex;
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  min-width: 140px;
  text-align: left;
}

.stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.stat strong {
  font-size: 18px;
}

.stat--button {
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat--button:hover {
  border-color: rgba(122, 247, 195, 0.4);
  transform: translateY(-1px);
}

.arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.crate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.crate-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.open-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.odds-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 242, 182, 0.4) 0%, rgba(102, 242, 182, 0) 70%);
  filter: blur(20px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.crate-wrap {
  position: relative;
}

.crate {
  width: 220px;
  height: 170px;
  position: relative;
  transform-style: preserve-3d;
}

.vinyl {
  width: 220px;
  height: 220px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle, #1a202c 0%, #0c0f15 65%, #0a0c12 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  animation: vinyl-spin 3.6s linear infinite;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: repeating-radial-gradient(
      circle,
      rgba(255, 255, 255, 0.05) 0 2px,
      rgba(0, 0, 0, 0) 2px 6px
    ),
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.vinyl__logo {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(12, 16, 24, 0.65);
  text-transform: uppercase;
  background: rgba(122, 247, 195, 0.75);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.crate--starter .vinyl__disc::before {
  background: radial-gradient(circle, rgba(122, 247, 195, 0.9), rgba(86, 227, 255, 0.6));
}

.crate--pro .vinyl__disc::before {
  background: radial-gradient(circle, rgba(255, 199, 99, 0.95), rgba(255, 140, 84, 0.65));
  box-shadow: 0 0 18px rgba(255, 176, 92, 0.6);
}

.crate--ultra .vinyl__disc::before {
  background: radial-gradient(circle, rgba(221, 140, 255, 0.95), rgba(109, 194, 255, 0.7));
  box-shadow: 0 0 22px rgba(155, 170, 255, 0.65);
}

.crate--pro .vinyl::after,
.crate--ultra .vinyl::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 16px rgba(255, 190, 120, 0.2);
}

.crate--ultra .vinyl::after {
  box-shadow: 0 0 20px rgba(160, 180, 255, 0.35);
}

.reveal.shiny-mode .vinyl {
  animation-duration: 0.18s;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.reveal.shiny-mode .vinyl__disc::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 215, 140, 0.75));
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.8);
}

.reveal.shiny-mode .vinyl::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

.vinyl__disc {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, #0f141e 0%, #0b0f16 55%, #0a0c12 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.vinyl__disc::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 247, 195, 0.9), rgba(86, 227, 255, 0.6));
  box-shadow: 0 0 16px rgba(102, 242, 182, 0.55);
}

.vinyl__disc::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06);
}

.vinyl__shine {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
  top: 10%;
  right: 8%;
  filter: blur(1px);
  opacity: 0.7;
}

.vinyl--large {
  width: 320px;
  height: 320px;
}

.btn {
  font-family: "Sora", sans-serif;
  background: linear-gradient(135deg, #7af7c3, #56e3ff);
  border: none;
  color: #0b0d11;
  padding: 14px 18px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(102, 242, 182, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn__label {
  position: relative;
  z-index: 2;
}

.btn__hold {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 0%;
  background: rgba(11, 13, 17, 0.15);
  transition: width 0.06s linear;
  z-index: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(102, 242, 182, 0.4);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.crate-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}

.crate-picker__card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 10, 16, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.crate-picker__card.active {
  border-color: rgba(122, 247, 195, 0.5);
}

.crate-picker__card:hover {
  transform: translateY(-2px);
}

.crate-picker__title {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  margin-bottom: 6px;
}

.crate-picker__meta {
  font-size: 12px;
  color: var(--muted);
}

.promo {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo--compact {
  width: auto;
  max-width: none;
  align-items: flex-end;
  position: relative;
}

.promo__toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
}

.promo__panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.promo__panel.active {
  display: block;
}

.promo label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.promo__row {
  display: flex;
  gap: 10px;
}

.promo input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.6);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.promo__msg {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Collection */
.collection {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.collection.active {
  display: flex;
}

.collection__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.72);
}

.collection__panel {
  position: relative;
  width: min(1000px, 92vw);
  max-height: 84vh;
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  overflow: auto;
  z-index: 1;
}

.collection__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.collection__header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.collection__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.collection__header-actions {
  display: flex;
  gap: 10px;
}

.collection__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.collection__bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 16, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.collection__bulk.is-hidden {
  display: none;
}

.collection__bulk-info {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.collection__card.is-selectable {
  cursor: pointer;
}

.collection__card.is-selected {
  border-color: rgba(122, 247, 195, 0.8);
  box-shadow: 0 0 0 2px rgba(122, 247, 195, 0.25);
}

.collection__tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 16px;
}

.collection__tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 24, 0.6);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.collection__tab.active {
  border-color: rgba(122, 247, 195, 0.6);
  background: rgba(12, 22, 26, 0.95);
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.5);
}

.collection__panels {
  min-height: 0;
}

.collection__panel-body {
  display: none;
}

.collection__panel-body.active {
  display: block;
}

.collection__controls input {
  flex: 1;
  min-width: 220px;
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.collection__shiny {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(16, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.collection__shiny-title {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.info-pill {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 16, 24, 0.75);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
}

.info-pill__tooltip {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.info-pill:hover .info-pill__tooltip,
.info-pill:focus-visible .info-pill__tooltip {
  opacity: 1;
}

.collection__shiny-sub {
  font-size: 13px;
  color: var(--muted);
}

.collection__controls label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.collection__controls select {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.market__trade-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

.market__trade-filters input,
.market__trade-filters select {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.collection__card {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.collection__card .cover {
  width: 100%;
  height: 120px;
  align-self: stretch;
  background: transparent;
  border: none;
}

.collection__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.collection__rarity {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Sora", sans-serif;
}

.collection__title {
  font-size: 16px;
  font-weight: 600;
}

.collection__subtitle {
  font-size: 13px;
  color: var(--muted);
}

.collection__count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 10, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.collection__card--empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.35);
  min-height: 220px;
}

.collection__empty {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  display: none;
}

.collection__empty.active {
  display: block;
}

.auth {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.auth.active {
  display: flex;
}

.auth__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(10px);
}

.auth__panel {
  position: relative;
  z-index: 2;
  width: min(420px, 90vw);
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 12px 12px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.auth__panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.auth__panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.auth__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 12px 0 6px;
}

.auth__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.9);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.auth__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.auth__msg {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.banned .page {
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.6;
}

.tracks {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 55;
}

.tracks.active {
  display: flex;
}

.tracks__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.tracks__panel {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  max-height: 85vh;
  overflow: hidden;
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.tracks__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracks__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tracks__controls {
  display: grid;
  grid-template-columns: auto 1fr auto 180px;
  gap: 12px;
  align-items: center;
}

.tracks__controls label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.tracks__controls input,
.tracks__controls select {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.tracks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  overflow: auto;
  padding-right: 6px;
}

.market {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 55;
}

.market.active {
  display: flex;
}

.market__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.market__panel {
  position: relative;
  z-index: 2;
  width: min(1400px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.market__toast {
  min-height: 0;
  font-size: 13px;
  color: var(--text);
  background: rgba(12, 18, 28, 0.85);
  border: 1px solid rgba(122, 247, 195, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  display: none;
}

.market__list--hidden {
  display: none !important;
}

.market__hidden {
  display: none;
}

.crate-picker-btn {
  position: static;
  margin: 0;
  font-size: 12px;
  padding: 8px 12px;
}

.crate-picker {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.crate-picker.active {
  display: flex;
}

.crate-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.crate-picker__panel {
  position: relative;
  z-index: 2;
  width: min(720px, 94vw);
  max-height: 70vh;
  overflow: hidden;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crate-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crate-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  overflow: auto;
  padding-right: 6px;
  max-height: 52vh;
}

.crate-picker__card {
  cursor: pointer;
  position: relative;
}

.crate-picker__cover {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.6);
}

.crate-picker__disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(122, 247, 195, 0.85) 0%, rgba(10, 12, 18, 0.9) 70%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 14px rgba(122, 247, 195, 0.2);
  animation: vinyl-spin 5.8s linear infinite;
}

.crate-picker__disc::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: repeating-radial-gradient(
      circle,
      rgba(255, 255, 255, 0.08) 0 1px,
      rgba(0, 0, 0, 0) 1px 4px
    ),
    radial-gradient(circle, rgba(15, 20, 30, 0.65) 0%, rgba(8, 10, 14, 0.95) 70%);
  opacity: 0.6;
}

.crate-picker__disc::after {
  content: "SC";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(10, 14, 20, 0.7);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
}

.crate-picker__disc--starter {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 14px rgba(122, 247, 195, 0.3);
}

.crate-picker__disc--pro {
  background: radial-gradient(circle, rgba(255, 199, 99, 0.9) 0%, rgba(10, 12, 18, 0.92) 70%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 176, 92, 0.35);
}

.crate-picker__disc--ultra {
  background: radial-gradient(circle, rgba(221, 140, 255, 0.92) 0%, rgba(10, 12, 18, 0.92) 70%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 18px rgba(155, 170, 255, 0.4);
}

.crate-picker__card[data-info]::after {
  content: attr(data-info);
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(10, 14, 22, 0.9);
  color: #d9e6f2;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.crate-picker__card:hover::after,
.crate-picker__card:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.crate-picker__odds {
  position: absolute;
  top: 10px;
  right: 10px;
}
.market__toast.active {
  display: block;
}

.market__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.market__title {
  margin: 0;
  font-size: 20px;
}

.market__balance {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.market__balance-item {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.market__tabs {
  display: flex;
  gap: 8px;
}

.market__tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 24, 0.6);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.market__tab.active {
  border-color: rgba(122, 247, 195, 0.6);
  background: rgba(12, 22, 26, 0.95);
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.5);
}

.market__panels {
  min-height: 0;
  max-height: 80vh;
  overflow: hidden;
}

.market__panel-body {
  display: none;
  max-height: 80vh;
  overflow: hidden;
}

.market__panel-body.active {
  display: block;
}

.market__offers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 6px;
}

.market__trade {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.trade__panel--inline {
  width: 320px;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.market__trade-grid h3 {
  margin: 0;
}

.market__trade-grid p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.market__fuse {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market__fuse p {
  color: var(--muted);
  margin: 6px 0 10px;
  font-size: 13px;
}

.market__fuse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market__fuse-card {
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid rgba(120, 140, 170, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  box-shadow: inset 0 0 24px rgba(10, 20, 30, 0.5);
}

.market__fuse-title {
  font-weight: 700;
  font-size: 16px;
}

.market__fuse-sub {
  color: var(--muted);
  font-size: 13px;
}

.market__fuse-count {
  font-size: 13px;
  color: var(--text);
  margin-top: auto;
}

.trade__panel--inline {
  height: auto;
  position: relative;
  max-height: none;
  overflow: visible;
  padding: 12px;
}

.trade__panel--inline.is-empty {
  display: none;
}

.market__trade-placeholder {
  align-self: center;
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.trade__panel--inline {
  width: 100%;
  background: rgba(10, 14, 20, 0.8);
  transform: none;
}

.market__grid--selector {
  margin-top: 16px;
  max-height: 44vh;
}

.market__grid--selector {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(8, 10, 16, 0.9);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 999px;
  border: 2px solid rgba(20, 24, 32, 0.9);
}

.market__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.market__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.market__list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.market__inventory {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.market__inventory h3 {
  margin: 0;
}

.market__inventory p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.market__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-right: 6px;
  max-height: 36vh;
}

.market__grid .collection__card {
  padding: 12px;
}

.market__grid .collection__card .cover {
  height: 90px;
}

.market__grid .collection__title {
  font-size: 13px;
}

.market__grid.market__grid--selector {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  max-height: 44vh;
}

.market__grid.market__grid--selector .collection__card {
  padding: 10px;
  min-width: 0;
}

.market__grid.market__grid--selector .collection__card .cover {
  height: 78px;
}

.market__grid.market__grid--selector .collection__title {
  font-size: 12px;
}

.market__grid.market__grid--selector .collection__subtitle {
  font-size: 11px;
}

.market__grid .collection__subtitle {
  font-size: 11px;
}

.market__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 4px 10px 4px 8px;
  max-height: 36vh;
}

.market__list-wrap .market__list {
  max-height: 62vh;
}

.market__empty {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.market__card {
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  align-self: flex-start;
  overflow: visible;
}

.market__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.market__listing-card {
  padding: 14px;
  min-height: auto;
  width: 170px;
}

.market__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
}

@media (min-width: 900px) {
  .market__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.market__line {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: center;
}

.market__line--btn {
  cursor: default;
  border-color: rgba(122, 247, 195, 0.45);
  background: rgba(12, 20, 26, 0.9);
  text-transform: none;
}

.market__card-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.market__card-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.market__card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market__card-meta h4 {
  margin: 0;
  font-size: 15px;
}

.market__card-meta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.market__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.08);
}

.market__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.market__row--link {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.market__actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.market__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.market__note {
  color: var(--muted);
  font-size: 12px;
}

.trade {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.trade.active {
  display: flex;
}

.trade__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.trade__panel {
  position: relative;
  z-index: 2;
  width: min(480px, 92vw);
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade__offer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 10, 16, 0.6);
  border-radius: 14px;
  padding: 4px;
}

.trade__offer .cover,
.trade__offer img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.trade__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.trade__fields textarea {
  grid-column: 1 / -1;
  min-height: 32px;
  resize: vertical;
}

.trade__fields label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

*, *::before, *::after {
  box-sizing: border-box;
}

.trade__fields input,
.trade__fields select,
.trade__fields textarea {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 2px 6px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.trade__panel--inline {
  overflow: visible;
}

.trade__fields {
  overflow: visible;
}

.trade__msg {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

#tradeSubmit {
  padding: 8px 10px;
  font-size: 12px;
}

.offer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.offer.active {
  display: flex;
}

.offer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.offer__panel {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  height: min(720px, 90vh);
  aspect-ratio: 1 / 1;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.offer__layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(560px, 92vw);
}

.offer__target-wrap {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.offer__header {
  position: absolute;
  top: -6px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.offer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 95, 95, 0.6);
  background: rgba(40, 10, 10, 0.55);
  color: #ff6b6b;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.offer__close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 95, 95, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 95, 95, 0.15);
}

.offer__preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  position: static;
}

.offer__target-card {
  height: 100%;
  width: 170px;
  justify-content: flex-start;
  flex: 1;
}

.offer__target-card--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

.offer__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 16px;
}

.offer__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.market__inbox-btn {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.incoming-trade .offer__slot {
  cursor: default;
}

.incoming-trade .offer__slot.is-active {
  box-shadow: none;
}

.incoming-trade .offer__currency input {
  opacity: 0.7;
}

.offer__form .btn {
  margin-top: 8px;
}

.offer__slots-wrap,
.offer__currency {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer__slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(46px, 1fr));
  gap: 4px;
  margin-top: 2px;
}

.offer__slot {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(8, 10, 16, 0.6);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  line-height: 1.1;
  gap: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.offer__slot.is-active {
  border-color: rgba(122, 247, 195, 0.6);
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.3);
}

.offer__slot.has-card {
  border-style: solid;
}

.offer__slot.shiny-card {
  box-shadow: 0 0 16px rgba(122, 247, 195, 0.35);
  border-color: rgba(122, 247, 195, 0.55);
}

.offer__slot.shiny--rare {
  box-shadow: 0 0 18px rgba(90, 182, 255, 0.4);
  border-color: rgba(90, 182, 255, 0.65);
}

.offer__slot.shiny--epic {
  box-shadow: 0 0 18px rgba(192, 118, 255, 0.45);
  border-color: rgba(192, 118, 255, 0.65);
}

.offer__slot.shiny--legendary {
  box-shadow: 0 0 20px rgba(255, 179, 92, 0.5);
  border-color: rgba(255, 179, 92, 0.7);
}

.offer__slot-cover {
  width: 100%;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 12, 0.6);
}

.offer__slot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer__slot-meta {
  padding: 2px 3px 3px;
  width: 100%;
  font-size: 7px;
  color: var(--text);
  text-align: left;
  line-height: 1.2;
}

.offer__slot-meta .offer__slot-rarity {
  font-size: 7px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer__slot-meta .offer__slot-title {
  font-weight: 600;
}

.offer__slot-meta .offer__slot-subtitle {
  color: var(--muted);
  font-size: 6.5px;
}

.offer__currency label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.offer__currency input {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 8px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  width: 100%;
  min-width: 0;
}

.offer__msg {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .offer__layout {
    flex-direction: column;
    width: min(520px, 92vw);
  }

  .offer__target-wrap,
  .offer__panel {
    width: 100%;
  }

  .offer__slots {
    grid-template-columns: repeat(3, minmax(46px, 1fr));
  }
}

.all-listings {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.all-listings.active {
  display: flex;
}

.all-listings__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(8px);
}

.all-listings__panel {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  max-height: 85vh;
  overflow: hidden;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.all-listings__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.all-listings__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.all-listings__filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
}

.all-listings__filters input,
.all-listings__filters select {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.all-listings__check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.all-listings__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  overflow-y: auto;
  overflow-x: visible;
  padding: 6px 6px 6px 12px;
  max-height: 60vh;
}

.all-listings__list .collection__card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.all-listings__list .collection__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.all-listings__list .collection__subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.all-listings__list .market__footer {
  margin-top: auto;
}
.market__create {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market__create label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.market__create input,
.market__create select {
  background: rgba(8, 10, 16, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.market__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding-right: 6px;
}

.market__card {
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.market__msg {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  outline: none;
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: visible;
  background-clip: padding-box;
}

.card--selector {
  background: rgba(10, 12, 18, 0.7);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border: none;
}

.card--transparent {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  border-radius: 0;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: 12px;
}

.card--transparent .card__track,
.card--transparent .card__artist {
  text-shadow: none;
}

.card--transparent {
  box-shadow: none !important;
  filter: none !important;
}

.crate-picker__card {
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.crate-picker__card.active {
  border-color: rgba(122, 247, 195, 0.6);
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.35),
    0 12px 30px rgba(15, 255, 199, 0.15);
}

.cover {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(122, 247, 195, 0.12), rgba(86, 227, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-start;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection__card .cover img {
  object-fit: contain;
  background: transparent;
}

.cover--large {
  width: 160px;
  height: 160px;
}

.cover--missing {
  position: relative;
}

.cover--hidden {
  display: none;
}

.cover--missing::after {
  content: "SoundCollect\A NO COVER";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: rgba(14, 18, 28, 0.75);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: pre-line;
  background: radial-gradient(circle at 35% 35%, rgba(122, 247, 195, 0.6), rgba(86, 227, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cover--missing img {
  display: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.card__rarity {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card__track {
  font-size: 22px;
  font-weight: 700;
}

.card__artist {
  color: var(--muted);
  font-size: 15px;
}

/* Ticker */
.ticker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.ticker__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.ticker__rail {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticker__card {
  min-width: 0;
}

.ticker__card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 10, 16, 0.6);
  border-radius: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 240px;
}

.ticker__cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.ticker__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ticker__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticker__rarity {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Sora", sans-serif;
}

.ticker__title {
  font-size: 13px;
  font-weight: 600;
}

.ticker__subtitle {
  font-size: 12px;
  color: var(--muted);
}

/* Animations */
.vinyl.opening {
  animation: crate-shake 0.5s ease-in-out;
}

.glow.active {
  opacity: 1;
  transform: translateY(0);
}

.card.reveal {
  animation: card-pop 0.6s ease;
}

@keyframes crate-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px) rotate(-1deg);
  }
  40% {
    transform: translateX(6px) rotate(1deg);
  }
  60% {
    transform: translateX(-4px) rotate(-1deg);
  }
  80% {
    transform: translateX(4px) rotate(1deg);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes card-pop {
  0% {
    transform: translateY(10px) scale(0.97);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Rarity colors */
.card.common {
  border-color: rgba(255, 255, 255, 0.08);
}

.card.rare {
  border-color: rgba(113, 196, 255, 0.5);
  box-shadow: 0 0 24px rgba(113, 196, 255, 0.25);
}

.card.epic {
  border-color: rgba(255, 127, 212, 0.5);
  box-shadow: 0 0 24px rgba(255, 127, 212, 0.25);
}

.card.legendary {
  border-color: rgba(255, 179, 107, 0.55);
  box-shadow: 0 0 28px rgba(255, 179, 107, 0.35);
}

/* Fullscreen reveal */
.reveal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}

.reveal.active {
  display: flex;
  pointer-events: auto;
}

.reveal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(14, 22, 36, 0.9), rgba(6, 8, 12, 0.98));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reveal.active .reveal__backdrop {
  opacity: 1;
}

.reveal__stage {
  position: fixed;
  inset: 0;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
  transform: none !important;
  transition: opacity 0.4s ease;
  width: 100%;
  height: 100%;
}

.reveal.active .reveal__stage {
  opacity: 1;
  transform: none !important;
}

.reveal__effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 180px;
  height: 320px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  filter: blur(6px);
  opacity: 0;
}

.beam--left {
  left: 10%;
  top: -10%;
  transform: rotate(-12deg);
}

.beam--right {
  right: 8%;
  top: -6%;
  transform: rotate(10deg);
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  opacity: 0;
}

.spark--one {
  left: 40%;
  bottom: 20%;
}

.spark--two {
  left: 55%;
  bottom: 26%;
}

.spark--three {
  left: 65%;
  bottom: 18%;
}

.reveal__crate {
  width: 320px;
  height: 320px;
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: grid;
  place-items: center;
  margin: 0;
}

.reveal__crate .vinyl {
  animation-duration: 2.6s;
}

.reveal__burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.burst {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(122, 247, 195, 0.7);
  box-shadow: 0 0 40px rgba(122, 247, 195, 0.4);
  transform: scale(0.2);
  opacity: 0;
}

.burst--two {
  width: 240px;
  height: 240px;
  border-color: rgba(86, 227, 255, 0.6);
}

.shard {
  position: absolute;
  width: 16px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  border-radius: 10px;
  opacity: 0;
}

.shard--1 { top: 18%; left: 45%; }
.shard--2 { top: 28%; left: 62%; transform: rotate(20deg); }
.shard--3 { top: 50%; left: 70%; transform: rotate(45deg); }
.shard--4 { top: 60%; left: 30%; transform: rotate(-25deg); }
.shard--5 { top: 36%; left: 20%; transform: rotate(-40deg); }
.shard--6 { top: 58%; left: 52%; transform: rotate(10deg); }

.reveal__info {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0.98) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  align-items: center;
  text-align: center;
  max-width: 280px;
  background: rgba(12, 16, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.reveal__rarity {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.reveal__track {
  font-size: 24px;
  font-weight: 700;
}

.reveal__artist {
  color: var(--muted);
  font-size: 16px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  text-decoration: none;
}

.source-badge__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.reveal__close {
  flex: 1;
}

.reveal__sell {
  flex: 1;
}

.reveal__actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  justify-content: center;
}

.reveal__respin {
  width: 100%;
  margin-top: 6px;
}

.reveal__autospin {
  width: 100%;
  margin-top: 6px;
  display: none;
}

.card-preview {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 85;
}

.card-preview.active {
  display: flex;
}

.card-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(8px);
}

.card-preview__panel {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.card-preview__card {
  width: min(320px, 80vw);
  max-width: 320px;
  transform: scale(1.05);
}

.side-actions__btn.has-notification {
  border-color: rgba(255, 95, 95, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 95, 95, 0.25);
}

.market__tab.has-notification {
  border-color: rgba(255, 95, 95, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 95, 95, 0.35);
}

.reveal.opening .reveal__crate {
  animation: reveal-shake 0.6s ease-in-out;
}

.vinyl.spinning,
.reveal.spinning .vinyl {
  animation-duration: 0.35s;
}

.reveal.spinning .vinyl {
  animation-duration: 0.25s;
}

.reveal.opened .beam {
  animation: beam-flash 0.9s ease forwards;
}

.reveal.opened .spark {
  animation: spark-burst 0.9s ease forwards;
}

.reveal.opened .reveal__stage {
  animation: none;
}

.reveal.opened .reveal__info {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reveal.exploding .vinyl {
  animation-duration: 0.18s;
}

.reveal.exploding .reveal__burst {
  opacity: 1;
}

.reveal.exploding .burst {
  animation: burst-ring 0.6s ease forwards;
}

.reveal.exploding .burst--two {
  animation-delay: 0.08s;
}

.reveal.exploding .shard {
  animation: shard-fly 0.55s ease forwards;
}

.reveal.exploding .shard--2 { animation-delay: 0.05s; }
.reveal.exploding .shard--3 { animation-delay: 0.08s; }
.reveal.exploding .shard--4 { animation-delay: 0.03s; }
.reveal.exploding .shard--5 { animation-delay: 0.07s; }
.reveal.exploding .shard--6 { animation-delay: 0.1s; }

.reveal.exploded .vinyl {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease;
}

.reveal.common .reveal__stage {
  box-shadow: 0 30px 80px rgba(233, 237, 244, 0.1);
}

.reveal.rare .reveal__stage {
  box-shadow: 0 30px 80px rgba(113, 196, 255, 0.35);
}

.reveal.epic .reveal__stage {
  box-shadow: 0 30px 80px rgba(255, 127, 212, 0.4);
}

.reveal.legendary .reveal__stage {
  box-shadow: 0 30px 80px rgba(255, 179, 107, 0.45);
}

@keyframes reveal-shake {
  0% {
    transform: translate(-50%, -50%) translateX(0);
  }
  20% {
    transform: translate(-50%, -50%) translateX(-10px) rotate(-1deg);
  }
  40% {
    transform: translate(-50%, -50%) translateX(10px) rotate(1deg);
  }
  60% {
    transform: translate(-50%, -50%) translateX(-6px) rotate(-1deg);
  }
  80% {
    transform: translate(-50%, -50%) translateX(6px) rotate(1deg);
  }
  100% {
    transform: translate(-50%, -50%) translateX(0);
  }
}

@keyframes beam-flash {
  0% {
    opacity: 0;
    transform: translateY(20px) scaleY(0.6);
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scaleY(1.1);
  }
}

@keyframes spark-burst {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(1.1);
  }
}

@keyframes reveal-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes burst-ring {
  0% {
    transform: scale(0.2);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes shard-fly {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: translate(0, -60px) scale(1);
    opacity: 0;
  }
}
@keyframes vinyl-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bar-pulse {
  0%,
  100% {
    transform: scaleY(0.75);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}


@media (max-width: 900px) {
  .reveal__stage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reveal__info {
    align-items: center;
  }
}

@media (max-width: 820px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    width: 100%;
  }

  .stat {
    flex: 1;
  }
}

.side-actions {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.crate-list {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.crate-list__btn {
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  position: relative;
}

.crate-list__btn.active {
  border-color: rgba(122, 247, 195, 0.6);
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.35);
}

.crate-list__btn::after {
  content: attr(data-info);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.crate-list__btn:hover::after {
  opacity: 1;
}

.side-actions__btn {
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.side-actions .promo__panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .brand h1 {
    font-size: 22px;
  }

  .btn {
    font-size: 10px;
  }

  .arena {
    grid-template-columns: 1fr;
  }

  .ticker__list {
    animation-duration: 22s;
  }
}

/* Odds modal */
.odds {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.odds.active {
  display: flex;
}

.odds__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.72);
}

.odds__panel {
  position: relative;
  width: min(420px, 90vw);
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  z-index: 1;
}

.odds__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.odds__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.odds__list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* Purchase confirm */
.purchase {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 75;
}

.purchase.active {
  display: flex;
}

.purchase__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(12px);
}

.purchase__panel {
  position: relative;
  z-index: 2;
  width: min(420px, 92vw);
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.purchase__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.purchase__body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.purchase__cover {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.purchase__meta p {
  margin: 0;
}

.purchase__cost {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.purchase__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.xpmodal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 76;
}

.xpmodal.active {
  display: flex;
}

.xpmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(12px);
}

.xpmodal__panel {
  position: relative;
  z-index: 2;
  width: min(360px, 90vw);
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
}

.xpmodal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.xpmodal__body p {
  margin: 6px 0;
  color: var(--text);
}

.daily {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 77;
}

.daily.active {
  display: flex;
}

.quests {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 77;
}

.daily__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(12px);
}

.daily__panel {
  position: relative;
  z-index: 2;
  width: min(820px, 95vw);
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.daily__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.daily__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}

.daily__day {
  height: 104px;
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  font-size: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.daily__day.active {
  border-style: solid;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.3);
}

.daily__day.today {
  border-color: rgba(122, 247, 195, 0.6);
}

.daily__day.locked {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.daily__lock {
  font-size: 18px;
  margin-bottom: 4px;
}

.daily__reward-pill {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: normal;
  max-width: 100%;
}

.daily__shiny {
  font-size: 11px;
  color: rgba(122, 247, 195, 0.85);
}

.daily__reward {
  font-size: 14px;
  color: var(--muted);
}

.quests.active {
  display: flex;
}

.quests__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(12px);
}

.quests__panel {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quests__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quests__msg {
  font-size: 13px;
  color: var(--muted);
}

.quests__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.quest__card {
  background: rgba(8, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quest__title {
  font-weight: 600;
}

.quest__progress,
.quest__reward {
  font-size: 12px;
  color: var(--muted);
}

.daily__timer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.market__offer-media {
  display: flex;
  gap: 14px;
  margin: 6px 0 10px;
}

.market__offer-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market__offer-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.market__offer-cover {
  width: 100%;
  height: 88px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.market__offer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market__offer-cover.shiny {
  box-shadow: 0 0 14px rgba(122, 247, 195, 0.4);
}

.profile,
.profile-picker,
.admin-message {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.profile.active,
.profile-picker.active,
.admin-message.active {
  display: flex;
}

.profile__backdrop,
.profile-picker__backdrop,
.admin-message__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(12px);
}

.profile__panel,
.profile-picker__panel,
.admin-message__panel {
  position: relative;
  z-index: 2;
  width: min(820px, 92vw);
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(16px, 10vh, 120px);
}

.admin-message__panel {
  width: min(520px, 92vw);
  margin-top: 0;
}

.admin-message__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-message__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(227, 234, 255, 0.85);
}

.admin-message__amounts {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #e6f0ff;
}

.admin-message__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(227, 234, 255, 0.8);
}

.profile__panel--public {
  width: min(1200px, 96vw);
  border: none;
  background: transparent;
  padding: 0 22px 22px;
  margin-top: 0;
}

.profile__body {
  margin-top: 8px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(12, 16, 24, 0.95);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.profile__title {
  position: absolute;
  top: 18px;
  left: 22px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.profile__header,
.profile-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile__header p {
  margin-top: 6px;
  color: var(--muted);
}

.profile__username {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.profile__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.profile__actions--public {
  align-self: flex-end;
}

.profile__stats-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile__stats-row .profile__actions {
  margin-left: auto;
}

.profile__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.profile__showcase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.switch__slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__slider {
  background: rgba(122, 247, 195, 0.25);
  border-color: rgba(122, 247, 195, 0.7);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(22px);
}

.profile__grid {
  display: grid;
  grid-template-columns: repeat(4, 170px);
  gap: 16px;
  justify-content: center;
}

.profile__collection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 55vh;
  overflow: auto;
  padding-right: 6px;
  padding-bottom: 72px;
}

.profile__section-title {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile__collection.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.profile__collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 170px);
  gap: 16px;
  justify-content: flex-start;
}

.profile__collection-grid .collection__card {
  display: flex;
  flex-direction: column;
}

.profile__collection-grid .profile__offer {
  padding: 10px 14px 16px;
  margin-top: auto;
}

.profile__offer {
  padding: 10px 14px 16px;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.profile__stats {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(122, 247, 195, 0.12);
  border: 1px solid rgba(122, 247, 195, 0.35);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile__slot {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 18, 0.6);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.profile__slot .collection__card {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.profile__slot .shiny-card::before,
.profile__slot .shiny-card::after {
  opacity: 0.85;
}

.market__listing-card.shiny-card::before,
.market__listing-card.shiny-card::after {
  inset: -4px;
  opacity: 0.85;
}

.profile__placeholder {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-picker__grid {
  max-height: 60vh;
  overflow: auto;
  padding: 0 8px 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.profile-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

.profile-picker__count {
  color: var(--muted);
  font-size: 13px;
}

.profile-picker__actions {
  display: inline-flex;
  gap: 10px;
}

.fuse-card--selected {
  box-shadow: inset 0 0 0 2px rgba(120, 255, 220, 0.8);
}

.fuse-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}

.daily__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.daily__msg {
  font-size: 12px;
  color: var(--muted);
}
.reveal__info .cover {
  width: 100%;
  height: 180px;
}

.reveal__info .cover img {
  object-fit: contain;
  background: transparent;
}

/* Pull card glow by rarity */
.reveal.common .reveal__info {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.reveal.rare .reveal__info {
  box-shadow: 0 0 0 1px rgba(113, 196, 255, 0.6),
    0 20px 50px rgba(113, 196, 255, 0.18);
}

.reveal.epic .reveal__info {
  box-shadow: 0 0 0 1px rgba(255, 127, 212, 0.6),
    0 20px 50px rgba(255, 127, 212, 0.2);
}

.reveal.legendary .reveal__info {
  box-shadow: 0 0 0 1px rgba(255, 179, 107, 0.7),
    0 22px 60px rgba(255, 179, 107, 0.24);
}

.shiny-card .reveal__track,
.shiny-card .collection__title,
.shiny-card .ticker__title {
  animation: rgb-shift 3s linear infinite;
}

@keyframes rgb-shift {
  0% {
    color: #ff5f6d;
  }
  33% {
    color: #64ffda;
  }
  66% {
    color: #6a5cff;
  }
  100% {
    color: #ff5f6d;
  }
}

.shiny-card {
  position: relative;
}

.shiny-card::after,
.shiny-card::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: shimmer 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* Force visible border glow for shiny cards in marketplace/profile */
.collection__card.shiny-card {
  box-shadow: 0 0 0 1px rgba(122, 247, 195, 0.6), 0 0 18px rgba(122, 247, 195, 0.35);
}

.shiny-card.shiny--common {
  box-shadow: 0 0 0 1px rgba(233, 237, 244, 0.6), 0 0 18px rgba(233, 237, 244, 0.35);
}

.shiny-card.shiny--rare {
  box-shadow: 0 0 0 1px rgba(113, 196, 255, 0.7), 0 0 18px rgba(113, 196, 255, 0.4);
}

.shiny-card.shiny--epic {
  box-shadow: 0 0 0 1px rgba(255, 127, 212, 0.7), 0 0 18px rgba(255, 127, 212, 0.4);
}

.shiny-card.shiny--legendary {
  box-shadow: 0 0 0 1px rgba(255, 179, 107, 0.75), 0 0 20px rgba(255, 179, 107, 0.45);
}

.shiny-card::before {
  inset: -10px;
  animation-delay: 0.8s;
}

.all-listings__list .shiny-card {
  overflow: hidden;
}

.all-listings__list .shiny-card::before,
.all-listings__list .shiny-card::after {
  inset: -3px;
  border-radius: 18px;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
}

.shiny {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.shiny.active {
  display: flex;
}

.shiny__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.75);
}

.shiny__panel {
  position: relative;
  width: min(380px, 90vw);
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  z-index: 1;
  text-align: center;
}

.shiny__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 85;
}

.sell.active {
  display: flex;
}

.sell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.75);
}

.sell__panel {
  position: relative;
  width: min(360px, 90vw);
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  z-index: 1;
  text-align: center;
}

.sell__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
