:root {
  --bg-deep: #0b1014;
  --bg: #121a21;
  --bg-panel: #18222c;
  --bg-elevated: #1e2a36;
  --stroke: #2a3a48;
  --text: #e7eef4;
  --muted: #8fa3b5;
  --accent: #3dd6c6;
  --accent-dim: #1f8f84;
  --danger: #eb4b4b;
  --gold: #e4ae39;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 214, 198, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(228, 174, 57, 0.08), transparent 50%),
    linear-gradient(180deg, #0d141a 0%, var(--bg-deep) 40%, #0a0f13 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.app-body .main {
  flex: 1;
  min-width: 0;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--stroke);
  background: rgba(10, 15, 19, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: transform 280ms ease;
}

@media (max-width: 700px) {
  .topnav.topnav--hidden {
    transform: translateY(-110%);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topnav {
    transition: none;
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  text-transform: uppercase;
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-battle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-right: 0.15rem;
}

.nav-battle.nav-battle-waiting,
.nav-battle.nav-battle-waiting:hover,
.nav-battle.nav-battle-waiting.active {
  color: var(--accent);
}

.nav-battle-badge {
  position: absolute;
  top: -0.55rem;
  right: -0.75rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle.active {
  color: var(--text);
  border-color: var(--accent-dim);
  background: rgba(61, 214, 198, 0.08);
}

.drop-feed {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--stroke);
  background: rgba(10, 15, 19, 0.85);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
  align-self: flex-start;
}

.drop-feed-head {
  padding: 0.9rem 1rem 0.5rem;
  border-bottom: 1px solid var(--stroke);
}

.drop-feed-head h2 {
  font-size: 1rem;
  margin: 0;
}

.drop-feed-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drop-feed-empty {
  padding: 1rem 0.5rem;
  font-size: 0.85rem;
}

.drop-feed-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid var(--stroke);
  border-left-width: 3px;
  background: var(--bg-panel);
  animation: rise-in 280ms ease both;
}

.drop-feed-item-visual {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.drop-feed-item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-feed-meta {
  min-width: 0;
  flex: 1;
}

.drop-feed-item-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-feed-count {
  color: var(--gold);
  font-weight: 700;
  margin-left: 0.15rem;
}

.drop-feed-wear {
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.drop-feed-player {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.drop-feed-winner-label {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
}

.drop-feed-avatar {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.drop-feed-avatar.fallback {
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: var(--font-display);
}

.drop-feed-sub {
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.drop-feed-time {
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .drop-feed {
    width: 220px;
  }
}

@media (max-width: 700px) {
  .app-body {
    flex-direction: column;
  }

  .drop-feed {
    width: 100%;
    max-height: none;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }

  .drop-feed-head {
    display: none;
  }

  /* One drop row visible; scroll for the rest */
  .drop-feed-list {
    flex: none;
    max-height: calc(1rem + 2 * 0.45rem + 5.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.balance-pill {
  font-family: var(--font-display);
  color: var(--gold);
  border: 1px solid rgba(228, 174, 57, 0.35);
  background: rgba(228, 174, 57, 0.08);
  padding: 0.35rem 0.7rem;
}

a.balance-pill-link {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

a.balance-pill-link:hover,
a.balance-pill-link.active {
  color: var(--gold);
  background: rgba(228, 174, 57, 0.15);
  border-color: rgba(228, 174, 57, 0.5);
}

.main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: #041210;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #62e4d6;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.secondary {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}

.btn.danger {
  background: var(--danger);
  border-color: transparent;
  color: #1a0606;
}

.btn.danger:hover:not(:disabled) {
  background: #f06565;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.35rem 0.5rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(115deg, rgba(11, 16, 20, 0.55), rgba(11, 16, 20, 0.92)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233dd6c6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-panel {
  width: min(420px, 100%);
  padding: 2rem;
  background: linear-gradient(160deg, rgba(30, 42, 54, 0.95), rgba(18, 26, 33, 0.98));
  border: 1px solid var(--stroke);
  animation: rise-in 420ms ease both;
}

.auth-panel h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 0.7rem 0.75rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 1px solid var(--accent-dim);
  border-color: var(--accent-dim);
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
}

.session-limit-banner {
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-family: var(--font-display);
  color: var(--text);
  background: color-mix(in srgb, var(--danger) 18%, var(--bg-panel));
  border-bottom: 1px solid color-mix(in srgb, var(--danger) 45%, var(--stroke));
}

.app-shell.session-locked .topnav,
.app-shell.session-locked .app-body {
  filter: grayscale(0.85) brightness(0.45);
  pointer-events: none;
  user-select: none;
}

.session-limit-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 10, 14, 0.72);
}

.session-limit-box {
  width: min(28rem, 100%);
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--stroke));
  background:
    linear-gradient(165deg, rgba(235, 75, 75, 0.08) 0%, transparent 40%),
    var(--bg-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.session-limit-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danger);
  font-family: var(--font-display);
}

.session-limit-box h2 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
}

.session-limit-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.session-limit-respect {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  text-align: left;
}

.session-limit-ad {
  text-align: left;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
}

.session-limit-ad-label {
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke);
  font-family: var(--font-display);
}

.session-limit-ad-screen {
  padding: 1rem 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  min-height: 8.5rem;
}

.session-limit-ad-screen.playing {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(61, 214, 198, 0.12), transparent 55%),
    var(--bg-elevated);
}

.session-limit-ad-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

.session-limit-ad-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text);
}

.session-limit-ad-screen .muted {
  margin: 0;
  font-size: 0.82rem;
}

.session-limit-ad-screen .btn {
  margin-top: 0.35rem;
}

.session-limit-ad-progress {
  width: 100%;
  height: 0.35rem;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.session-limit-ad-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.9s linear;
}

.session-limit-ad-countdown {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.case-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.item-tile,
.case-tile {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--stroke);
  border-top-width: 3px;
  padding: 0.85rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 180ms ease, border-color 180ms ease;
  animation: rise-in 480ms ease both;
}

.case-tile {
  cursor: pointer;
  min-height: 180px;
}

.case-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
}

.item-visual,
.case-visual {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  opacity: 0.85;
  min-height: 64px;
}

.item-name,
.case-name {
  font-family: var(--font-display);
  font-weight: 600;
}

.item-meta,
.case-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.item-wear {
  color: var(--accent);
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.empty {
  padding: 1.5rem;
  border: 1px dashed var(--stroke);
  color: var(--muted);
}

.case-page {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.case-page > a.muted {
  margin: 0;
  line-height: 1.2;
}

.case-hero-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 420ms ease;
}

.case-hero-wrap > .case-hero {
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 320ms ease,
    transform 420ms ease;
}

.case-hero-wrap--hidden {
  grid-template-rows: 0fr;
  pointer-events: none;
}

.case-hero-wrap--hidden > .case-hero {
  opacity: 0;
  transform: translateY(-1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .case-hero-wrap,
  .case-hero-wrap > .case-hero {
    transition: none;
  }
}

.case-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem 0.25rem;
  text-align: center;
}

.case-hero > p.muted {
  margin: 0;
}

.case-key-progress {
  width: min(420px, 100%);
  margin: 0.35rem 0 0.15rem;
}

.case-key-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.case-key-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--stroke);
  overflow: hidden;
}

.case-key-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: inherit;
  transition: width 300ms ease;
}

.case-price,
.item-price {
  color: var(--gold);
  font-family: var(--font-display);
}

.open-qty {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.open-qty label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.open-qty select {
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 0.4rem 0.55rem;
  font-family: var(--font-display);
}

.multi-reels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.multi-reel-hint {
  margin: 0;
  font-size: 0.85rem;
}

.multi-reels.many {
  gap: 1.25rem;
}

.multi-reel-slot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-reel-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.won-banner.compact {
  padding: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
}

.won-banner.compact .won-img {
  width: 48px;
  height: 48px;
  margin: 0;
}

.case-hero .case-icon {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(145deg, rgba(61, 214, 198, 0.12), transparent 50%),
    var(--bg-panel);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  animation: float-soft 3.2s ease-in-out infinite;
}

.case-hero .case-icon:hover:not(.disabled) {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.case-hero .case-icon.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  animation: none;
}

.reel-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0a1015;
  height: 140px;
}

.reel-wrap.reel-wrap-owners {
  height: 200px;
}

.reel-wrap::before,
.reel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.reel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #0a1015, transparent);
}

.reel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #0a1015, transparent);
}

.reel-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 3;
  box-shadow: 0 0 12px rgba(61, 214, 198, 0.55);
  transform: translateX(-50%);
}

.reel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.reel-item {
  flex: 0 0 120px;
  width: 120px;
  border-right: 1px solid #1a2530;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-top: 4px solid var(--rarity, #8899aa);
  background: linear-gradient(180deg, #15202a, #0e151c);
  padding: 0.4rem;
}

.reel-item .glyph {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.reel-item .label {
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-owner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  max-width: 100%;
  margin-top: 0.2rem;
}

.reel-owner-avatar,
.reel-owner-fallback {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--stroke);
  object-fit: cover;
}

.reel-owner-fallback {
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: var(--font-display);
}

.reel-owner-name {
  font-size: 0.62rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
  text-align: center;
}

.won-banner {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
  animation: rise-in 360ms ease both;
}

.won-banner strong {
  color: var(--rarity, var(--accent));
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.won-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  margin: 0 auto 0.5rem;
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--stroke);
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.rank {
  font-family: var(--font-display);
  color: var(--accent);
}

.table tbody tr.table-row-clickable {
  cursor: pointer;
}

.table tbody tr.table-row-clickable:hover,
.table tbody tr.table-row-clickable:focus-visible {
  background: rgba(61, 214, 198, 0.06);
  outline: none;
}

/* —— Leaderboard —— */
.lb-page {
  max-width: 960px;
}

.lb-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

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

.lb-avatar-sm {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.7rem;
}

.lb-avatar-lg {
  width: 3.4rem;
  height: 3.4rem;
  font-size: 0.9rem;
}

.lb-avatar-xl {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.15rem;
}

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.65rem;
  align-items: end;
  margin: 0.25rem 0 1.25rem;
}

.lb-podium-card {
  appearance: none;
  width: 100%;
  text-align: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 0.7rem 0.7rem 0.75rem;
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.lb-podium-card:hover,
.lb-podium-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.lb-podium-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lb-podium-frame {
  margin: 0.15rem 0 0.1rem;
  padding: 0.2rem;
  border: 1px solid var(--stroke);
}

.lb-podium-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-podium-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.lb-podium-bonus {
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.lb-wealth {
  width: 100%;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--stroke);
}

.lb-wealth-total {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.lb-wealth-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-wealth-total strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.lb-wealth-parts {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.lb-wealth-parts em {
  font-style: normal;
  color: var(--text);
  font-family: var(--font-display);
}

.lb-wealth-compact strong {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

/* 1st — most impressive */
.lb-place-1 {
  position: relative;
  z-index: 1;
  overflow: visible;
  isolation: isolate;
  padding: 0.95rem 0.85rem 0.9rem;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--stroke));
  background:
    linear-gradient(165deg, rgba(228, 174, 57, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, #243040 0%, var(--bg-panel) 100%);
  box-shadow: inset 0 1px 0 rgba(228, 174, 57, 0.25);
}

.lb-fire {
  position: absolute;
  inset: -4px;
  pointer-events: none;
  z-index: -1;
}

.lb-fire-ring {
  position: absolute;
  inset: 0;
  padding: 2px;
  border: none;
  background: linear-gradient(
    120deg,
    #7a1a00,
    #e85d04,
    #ffba08,
    #faa307,
    #dc2f02,
    #7a1a00
  );
  background-size: 280% 280%;
  animation: lb-fire-ring 2.4s linear infinite;
  opacity: 0.95;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes lb-fire-ring {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-fire-ring {
    animation: none;
    background-position: 40% 50%;
  }
}

.lb-place-1 .lb-podium-rank {
  font-size: 0.95rem;
  color: var(--gold);
}

.lb-place-1 .lb-podium-frame {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--stroke));
  padding: 0.28rem;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.lb-place-1 .lb-podium-title {
  color: var(--gold);
  font-size: 0.72rem;
}

.lb-place-1 .lb-podium-name {
  font-size: 1.15rem;
}

.lb-place-1 .lb-podium-bonus {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.lb-place-1 .lb-wealth-total strong {
  font-size: 1.1rem;
  color: var(--gold);
}

.lb-place-1:hover,
.lb-place-1:focus-visible {
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* 2nd */
.lb-place-2 {
  border-color: color-mix(in srgb, #c5d0db 40%, var(--stroke));
  background:
    linear-gradient(165deg, rgba(197, 208, 219, 0.1) 0%, transparent 45%),
    var(--bg-panel);
}

.lb-place-2 .lb-podium-rank {
  color: #c5d0db;
}

.lb-place-2 .lb-podium-frame {
  border-color: color-mix(in srgb, #c5d0db 55%, var(--stroke));
}

.lb-place-2 .lb-podium-title,
.lb-place-2 .lb-podium-bonus {
  color: #b8c4d0;
}

.lb-place-2:hover,
.lb-place-2:focus-visible {
  border-color: #c5d0db;
}

/* 3rd */
.lb-place-3 {
  border-color: color-mix(in srgb, #c47a45 45%, var(--stroke));
  background:
    linear-gradient(165deg, rgba(196, 122, 69, 0.12) 0%, transparent 45%),
    var(--bg-panel);
}

.lb-place-3 .lb-podium-rank {
  color: #d4925c;
}

.lb-place-3 .lb-podium-frame {
  border-color: color-mix(in srgb, #c47a45 55%, var(--stroke));
}

.lb-place-3 .lb-podium-title,
.lb-place-3 .lb-podium-bonus {
  color: #d4925c;
}

.lb-place-3:hover,
.lb-place-3:focus-visible {
  border-color: #d4925c;
}

.lb-list {
  border-top: 1px solid var(--stroke);
  padding-top: 1rem;
}

.lb-list-head {
  display: grid;
  grid-template-columns: 3rem 2.35rem 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0 0.85rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-list-head span:nth-child(2) {
  grid-column: 2 / 4;
}

.lb-list-head-wealth {
  text-align: right;
}

.lb-list-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lb-row {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 3rem 2.35rem minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-bottom-color: var(--stroke);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-row:hover,
.lb-row:focus-visible {
  outline: none;
  background: rgba(61, 214, 198, 0.05);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.lb-row-rank {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-dim);
}

.lb-row-name {
  font-family: var(--font-display);
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-row-meta {
  font-size: 0.78rem;
  display: none;
}

.lb-row .lb-wealth-compact {
  text-align: right;
}

@media (min-width: 640px) {
  .lb-row-meta {
    display: block;
  }
}

@media (max-width: 720px) {
  .lb-podium {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .lb-place-1 {
    order: -1;
  }

  .lb-list-head {
    grid-template-columns: 2.5rem 2.35rem 1fr auto;
  }

  .lb-list-head span:nth-child(2) {
    grid-column: 2 / 3;
  }

  .lb-row {
    grid-template-columns: 2.5rem 2.35rem minmax(0, 1fr) auto;
  }

  .lb-row-meta {
    display: none;
  }
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-tabs button {
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-display);
}

.admin-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Admin shell —— */
.admin-shell {
  display: grid;
  grid-template-columns: 13.5rem 1fr;
  min-height: 100vh;
  background: var(--bg-deep);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 0.85rem;
  border-right: 1px solid var(--stroke);
  background: var(--bg-panel);
}

.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.35rem 0.5rem;
  border-bottom: 1px solid var(--stroke);
}

.admin-sidebar-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-display);
}

.admin-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.admin-side-nav a {
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--muted);
}

.admin-side-nav a:hover {
  color: var(--text);
  background: rgba(61, 214, 198, 0.05);
}

.admin-side-nav a.active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stroke);
}

.admin-sidebar-user {
  font-size: 0.8rem;
  padding: 0 0.35rem;
}

.admin-main {
  padding: 1.35rem 1.5rem 2.5rem;
  max-width: 1100px;
  width: 100%;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
}

.admin-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

.admin-stat strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.admin-stat .muted {
  font-size: 0.75rem;
}

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-recent-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-recent-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-recent-avatar {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--muted);
}

.admin-recent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-search {
  min-width: 11rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  color: var(--text);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.admin-form-grid .admin-form-span {
  grid-column: 1 / -1;
}

.admin-form-grid .btn {
  justify-self: start;
}

.admin-row-main {
  flex: 1;
  min-width: 0;
}

.admin-pill-on {
  color: var(--accent);
}

.admin-pill-off {
  color: var(--danger);
}

.admin-cat-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--stroke));
  padding: 0.1rem 0.4rem;
}

.admin-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
}

.admin-cat-row .admin-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-cat-edit {
  width: 100%;
  align-items: center;
}

.admin-cat-edit input {
  flex: 1;
  min-width: 10rem;
}

.admin-drop-pct {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 4.2rem;
  text-align: right;
}

.admin-adjust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stroke);
}

.admin-adjust-panel .admin-adjust-row:first-child {
  margin-top: 0.75rem;
}

.admin-adjust-panel .admin-adjust-row + .admin-adjust-row {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
}

.admin-adjust-row label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-adjust-row input {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  color: var(--text);
  min-width: 8rem;
}

.admin-adjust-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-adjust-preview {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 4.5rem;
}

.admin-adjust-preview.pos {
  color: var(--accent);
}

.admin-adjust-preview.neg {
  color: var(--danger);
}

.admin-adjust-result {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  align-self: end;
  padding-bottom: 0.55rem;
  white-space: nowrap;
}

.admin-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 820px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }

  .admin-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-block {
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-row input,
.admin-row select {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  color: var(--text);
}

.drop-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drop-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0;
  border-top: 1px solid var(--stroke);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .drop-row {
    grid-template-columns: 1fr;
  }

  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.item-tile.selectable {
  cursor: pointer;
}

.item-tile.selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.item-tile.favorite {
  box-shadow: inset 0 0 0 1px rgba(228, 174, 57, 0.45);
}

.item-favorite-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.item-vault-badge {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  z-index: 2;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.25rem;
  background: #0a121c;
  color: #e8f6ff;
  border: 1.5px solid #7ec8ff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
}

.item-tile.staked {
  box-shadow: inset 0 0 0 1px rgba(80, 160, 220, 0.4);
}

.vault-panel {
  margin: 1.25rem 0 1.5rem;
}

.vault-panel .section-head {
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.vault-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 7.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.2;
}

.vault-timer strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.vault-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.vault-grid {
  margin-bottom: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
  gap: 0.55rem;
  justify-content: start;
}

.vault-grid .item-tile {
  padding: 0.45rem;
  min-height: 0;
  gap: 0.2rem;
}

.vault-grid .item-visual {
  min-height: 56px;
  font-size: 1.1rem;
}

.vault-grid .item-visual.has-img {
  min-height: 56px;
}

.vault-grid .item-visual img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.vault-grid .item-name {
  font-size: 0.78rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-grid .item-meta,
.vault-grid .item-wear {
  font-size: 0.7rem;
  line-height: 1.15;
}

.vault-grid .item-vault-badge {
  min-width: 1.15rem;
  height: 1.15rem;
  font-size: 0.68rem;
}

.vault-grid .item-favorite-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.28rem;
}


.item-tile.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.mode-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-panel));
  min-height: 160px;
  transition: transform 180ms ease, border-color 180ms ease;
  position: relative;
}

.mode-card-live {
  grid-column: 1 / -1;
  min-height: 220px;
}

.mode-card-wide {
  grid-column: 1 / -1;
}

.mode-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mode-card-top h2 {
  margin: 0;
}

.mode-status {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
  padding: 0.2rem 0.45rem;
  white-space: nowrap;
}

.mode-status.spinning {
  color: var(--gold);
  border-color: rgba(228, 174, 57, 0.4);
  background: rgba(228, 174, 57, 0.1);
}

.mode-blurb {
  margin: 0.5rem 0 0.85rem;
  font-size: 0.9rem;
}

.mode-pot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 12rem));
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.85rem;
}

.mode-pot-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.mode-pot-stats strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}

.mode-pot-items {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mode-pot-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--stroke);
  border-top-width: 2px;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.85rem;
  font-family: var(--font-display);
  color: var(--muted);
}

.mode-pot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mode-pot-more {
  font-size: 0.8rem;
}

.mode-pot-empty {
  margin: 0;
  font-size: 0.85rem;
}

.mode-card-reel {
  margin-top: 0.15rem;
}

.mode-card-winner {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--gold);
}

.reel-wrap-compact {
  height: 118px;
}

.reel-wrap-compact.reel-wrap-owners {
  height: 148px;
}

.reel-wrap-compact::before,
.reel-wrap-compact::after {
  width: 48px;
}

.reel-wrap-compact .reel-item {
  flex: 0 0 72px;
  width: 72px;
  padding: 0.25rem;
  gap: 0.2rem;
  border-top-width: 3px;
}

.reel-wrap-compact .reel-item .glyph {
  font-size: 1rem;
}

.reel-wrap-compact .reel-img {
  max-height: 2.4rem;
}

.reel-wrap-compact .reel-item .label {
  font-size: 0.62rem;
}

.reel-wrap-compact .reel-owner {
  gap: 0.2rem;
}

.reel-wrap-compact .reel-owner-avatar,
.reel-wrap-compact .reel-owner-fallback {
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.55rem;
}

.reel-wrap-compact .reel-owner-name {
  font-size: 0.58rem;
  max-width: 3.5rem;
}

a.mode-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
}

.mode-card.stub {
  opacity: 0.75;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: var(--gold);
  border: 1px solid rgba(228, 174, 57, 0.4);
  padding: 0.15rem 0.45rem;
  margin-top: 0.5rem;
}

.jackpot-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.timer-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
}

.timer-digits {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}

.gold {
  color: var(--gold);
  font-family: var(--font-display);
}

.status-pill {
  display: inline-block;
  width: fit-content;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.status-pill.open {
  color: var(--accent);
}

.status-pill.spinning,
.status-pill.in_progress {
  color: var(--gold);
}

.status-pill.resolved,
.status-pill.cancelled {
  color: var(--muted);
}

.row-me {
  background: rgba(61, 214, 198, 0.06);
}

.deposit-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deposit-owner {
  font-size: 0.8rem;
  text-align: center;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.row-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-ico {
  color: var(--gold);
  font-size: 0.95em;
  line-height: 1;
}

.btn-ico-vault {
  display: inline-grid;
  place-items: center;
  min-width: 1.1em;
  height: 1.1em;
  padding: 0 0.15em;
  border-radius: 0.2rem;
  background: #0a121c;
  color: #e8f6ff;
  border: 1px solid #7ec8ff;
  font-size: 0.72em;
  font-weight: 800;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.room-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
  transition: border-color 160ms ease;
}

.room-card:hover {
  border-color: var(--accent-dim);
}

.room-card.live {
  border-color: rgba(228, 174, 57, 0.35);
}

.room-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.profile-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

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

.file-btn {
  display: inline-block;
  text-align: center;
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.case-stats-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
}

.catalog-badges-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
}

.catalog-badges-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.catalog-badges-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.catalog-badges-luck {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.catalog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-badge {
  position: relative;
  width: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

a.catalog-badge:hover .catalog-badge-name {
  color: var(--accent);
}

.catalog-badge img,
.catalog-badge-fallback {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border: 1px solid rgba(61, 214, 198, 0.4);
  background: rgba(61, 214, 198, 0.08);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1rem;
}

.catalog-badge-check {
  position: absolute;
  top: -0.2rem;
  right: 0.1rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--accent);
  width: 0.95rem;
  height: 0.95rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

.catalog-badge-name {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence-online {
  color: #3ecf8e;
}

.presence-offline {
  color: var(--muted);
}

.achievement-badges-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
}

.achievement-badges-link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}

.achievement-badges-link:hover {
  text-decoration: underline;
}

.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.achievement-badge {
  position: relative;
  width: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

a.achievement-badge:hover .achievement-badge-name {
  color: var(--accent);
}

.achievement-badge-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
}

.achievement-badge-name {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.achievement-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.achievement-card.locked {
  opacity: 0.55;
}

.achievement-card.unlocked .achievement-card-icon {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.achievement-card-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.achievement-card-body h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.achievement-card-body p {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
}

.achievement-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.achievement-card-meta.locked-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-stats-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.case-stats-empty {
  margin: 0;
  font-size: 0.85rem;
}

.case-stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.case-stat-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.case-stat-row:hover {
  border-color: var(--accent-dim);
  background: rgba(61, 214, 198, 0.06);
}

.case-stat-visual {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--accent);
}

.case-stat-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-stat-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-stat-count {
  font-size: 0.85rem;
  white-space: nowrap;
}

.case-stat-keys {
  font-size: 0.8rem;
  white-space: nowrap;
}

.ok-msg {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-avatar {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.stub-panel {
  text-align: center;
}

.item-visual.has-img,
.case-visual.has-img,
.case-icon.has-img {
  padding: 0;
  overflow: hidden;
}

.item-visual img,
.case-visual img,
.case-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-icon.has-img {
  padding: 0;
}

.case-icon img {
  border-radius: 0;
}

.reel-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.reel-wrap-owners .reel-img {
  width: 48px;
  height: 48px;
}

.reel-wrap-owners .reel-item .glyph {
  font-size: 1.1rem;
}

.image-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.image-field input[type='text'],
.image-field > input:not([type]) {
  flex: 1;
  min-width: 160px;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 0.55rem 0.65rem;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid var(--stroke);
  background: var(--bg-deep);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--muted);
}

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

.admin-thumb.empty {
  font-size: 0.65rem;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}

.drop-item-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.drop-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.osu-pill {
  font-family: var(--font-display);
  color: var(--accent);
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
  padding: 0.35rem 0.7rem;
}

.shop-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1100px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 1.5rem 2rem;
  align-items: end;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 1px solid var(--stroke);
}

.shop-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.shop-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.shop-lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.45;
}

.shop-lede strong {
  color: var(--accent);
  font-weight: 600;
}

.shop-wallet {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background:
    linear-gradient(145deg, rgba(61, 214, 198, 0.08), transparent 55%),
    var(--bg-panel);
  border: 1px solid var(--stroke);
}

.shop-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.shop-wallet-osu {
  font-size: 1.05rem;
}

.shop-mock-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.shop-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shop-section-head h2 {
  margin: 0 0 0.2rem;
}

.shop-section-head .muted {
  margin: 0;
}

.shop-osu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.shop-osu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--stroke);
  min-height: 100%;
}

.shop-osu-card.popular {
  border-color: rgba(61, 214, 198, 0.45);
}

.shop-osu-card.highlight {
  border-color: rgba(228, 174, 57, 0.55);
  background:
    linear-gradient(160deg, rgba(228, 174, 57, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
}

.shop-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--accent);
  padding: 0.15rem 0.4rem;
}

.shop-osu-card.highlight .shop-badge {
  background: var(--gold);
}

.shop-badge.subtle {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--stroke);
  position: static;
  align-self: flex-start;
  margin-bottom: 0.15rem;
}

.shop-osu-card h3,
.shop-credit-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.shop-osu-amount {
  margin: 0.15rem 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--accent);
  line-height: 1.1;
}

.shop-osu-amount span {
  font-size: 0.85rem;
  color: var(--muted);
}

.shop-osu-blurb,
.shop-osu-rate {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  flex: 1;
}

.shop-buy-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.shop-credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.shop-credit-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
}

.shop-credit-card .pack-credits {
  margin: 0.1rem 0;
  font-size: 1.15rem;
}

.shop-credit-cost {
  margin: 0.15rem 0 0.35rem;
}

.shop-credit-scale {
  margin: 0;
  font-size: 0.78rem;
}

.shop-credit-card .btn {
  width: 100%;
  margin-top: auto;
}

.shop-ad-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--stroke);
  background: rgba(61, 214, 198, 0.04);
}

.shop-ad-panel h2 {
  margin: 0 0 0.25rem;
}

.shop-ad-panel .muted {
  margin: 0;
}

@media (max-width: 720px) {
  .shop-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


.inv-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (max-width: 700px) {
  .inv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .inv-grid .item-tile {
    padding: 0.65rem;
    min-height: 120px;
  }
}

.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.inv-section-head {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.inv-section-head h1 {
  margin: 0;
}

.inv-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.inv-count {
  font-size: 0.85rem;
}

.inv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.inv-bulk-sell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--stroke);
}

.inv-bulk-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
}

.inv-bulk-label input[type='number'] {
  width: 5.5rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 0.4rem 0.55rem;
  font-family: inherit;
}

.inv-bulk-preview {
  font-size: 0.85rem;
}

.inv-auto-sell-box {
  margin-left: auto;
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.inv-auto-sell-at {
  font-family: var(--font-display);
  font-size: 0.85rem;
  white-space: nowrap;
}

.inv-auto-sell-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  user-select: none;
}

.inv-auto-sell-toggle input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.inv-auto-sell-toggle span {
  white-space: nowrap;
}

.sort-toggle {
  display: inline-flex;
  border: 1px solid var(--stroke);
}

.sort-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.sort-toggle button.active {
  color: var(--text);
  background: rgba(61, 214, 198, 0.1);
}

.shop-pack .pack-credits {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0.35rem 0;
}

.pack-credits {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0.35rem 0;
}

.ad-panel {
  margin-top: 0.5rem;
}

.ad-sim {
  margin-top: 0.75rem;
}

.ad-bar {
  height: 6px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  background-size: 200% 100%;
  animation: ad-slide 1.6s linear infinite;
}

@keyframes ad-slide {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

/* Catalog */
.catalog-luck-pill {
  font-family: var(--font-display);
  color: var(--accent);
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}

.catalog-chapters {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalog-chapter {
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-panel));
  padding: 1rem 1.15rem 1.15rem;
}

.catalog-chapter.completed {
  border-color: rgba(61, 214, 198, 0.4);
}

.catalog-chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.catalog-chapter-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.catalog-chapter-title h2 {
  margin: 0;
  font-size: 1.15rem;
}

.catalog-chapter-title h2 a {
  color: var(--text);
}

.catalog-chapter-title h2 a:hover {
  color: var(--accent);
}

.catalog-chapter-title p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

.catalog-case-thumb {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--stroke);
  flex-shrink: 0;
}

.catalog-case-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.catalog-complete-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}

.catalog-progress-bar {
  width: 7rem;
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  flex-shrink: 0;
}

.catalog-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 200ms ease;
}

.catalog-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
}

.catalog-slot {
  aspect-ratio: 1;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem;
  overflow: hidden;
  position: relative;
}

.catalog-slot.filled {
  border-top: 3px solid var(--rarity, var(--stroke));
}

.catalog-slot.empty {
  opacity: 0.55;
}

.catalog-slot img {
  width: 70%;
  height: 55%;
  object-fit: contain;
}

.catalog-slot-fallback {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
}

.catalog-slot-name {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-slot-empty {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--muted);
}


/* Prestige */
.prestige-head {
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.prestige-head-copy h1 {
  margin-bottom: 0.35rem;
}

.prestige-lead {
  margin: 0;
  max-width: 36rem;
  line-height: 1.45;
  color: var(--muted);
  font-size: 0.98rem;
}

.prestige-lead strong {
  color: var(--gold);
  font-weight: 600;
}

.prestige-steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.prestige-steps > li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
}

.prestige-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.prestige-steps p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.prestige-step-num {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--stroke));
  background: color-mix(in srgb, var(--gold) 12%, var(--bg-deep));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.prestige-count-pill {
  font-family: var(--font-display);
  color: var(--gold);
  border: 1px solid rgba(228, 174, 57, 0.4);
  background: rgba(228, 174, 57, 0.08);
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}

.prestige-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.prestige-pr-pill {
  font-family: var(--font-display);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--stroke));
  padding: 0.35rem 0.7rem;
  background: color-mix(in srgb, var(--gold) 10%, var(--bg-panel));
  color: var(--gold);
  white-space: nowrap;
}

.prestige-pr-est {
  color: var(--gold);
}

.prestige-pr-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.prestige-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 10rem));
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.prestige-totals-wide {
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
}

.prestige-totals > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.prestige-totals strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.prestige-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.2rem;
}

.prestige-action-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.prestige-action-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.prestige-status {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 0.25rem 0.55rem;
}

.prestige-status.ready {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--stroke));
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.prestige-action-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.prestige-action-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
  font-size: 0.82rem;
}

.prestige-action-stats strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.prestige-action-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.prestige-action-split h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.prestige-action-split ul {
  margin: 0;
  padding: 0 0 0 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.prestige-action-btn {
  align-self: flex-start;
  min-width: 10rem;
}

.prestige-action .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .prestige-steps {
    grid-template-columns: 1fr;
  }

  .prestige-action-stats,
  .prestige-action-split {
    grid-template-columns: 1fr;
  }
}

.prestige-tree-section {
  margin-top: 0.5rem;
}

.prestige-tree-section h2 {
  margin: 0 0 0.25rem;
}

.prestige-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.prestige-tree-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--stroke));
  background:
    linear-gradient(165deg, rgba(228, 174, 57, 0.12) 0%, transparent 55%),
    var(--bg-panel);
  font-family: var(--font-display);
}

.prestige-tree-root span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.prestige-tree-root strong {
  color: var(--gold);
  font-size: 1.15rem;
}

.prestige-tree-branches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 56rem;
}

.prestige-tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prestige-tree-connector {
  width: 2px;
  height: 1.25rem;
  background: color-mix(in srgb, var(--gold) 40%, var(--stroke));
}

.prestige-skill-node {
  width: 100%;
  padding: 0.95rem 0.85rem;
  border: 1px solid var(--stroke);
  background: var(--bg-panel);
  text-align: center;
}

.prestige-skill-node h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.prestige-skill-node p {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
}

.prestige-skill-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.prestige-delta {
  color: var(--gold);
  font-family: var(--font-display);
}

.prestige-skill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.prestige-skill-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
}

.prestige-history {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
}

.prestige-history h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.prestige-profile-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
}

.prestige-profile-stats {
  margin-top: 0.35rem;
}

@media (max-width: 720px) {
  .prestige-tree-branches {
    grid-template-columns: 1fr;
  }

  .prestige-totals {
    grid-template-columns: 1fr;
  }
}
