/* ...existing styles... */
:root {
  --bg: #fff;
  --text: #111;
  --muted: #666;
  --accent: #111;
  --border: #e5e5e5;
}

/* dark theme variables */
body[data-theme="dark"] {
  --bg: #0f1113;
  --text: #e8eef7;
  --muted: #9aa6b2;
  --accent: #cbd5e1;
  --border: #1d2328;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

header .brand { font-weight: 700; letter-spacing: 0.5px; }

.main {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 12px;
  padding: 12px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg) 95%, #fff 5%);
}

.cash {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
}
.cash .amount { font-family: "Space Mono", monospace; }

.music-select { width: 100%; }

.belt {
  position: relative;
  overflow: hidden;
  height: 240px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.track {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px;
  background: #ddd; transform: translateY(-50%);
}

.item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 140ms ease;
}
.item:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.item img {
  width: 60px; height: 60px; object-fit: contain;
}

.badge {
  font-size: 12px; padding: 2px 8px; border: 1px solid #ddd; border-radius: 999px;
}

.buy-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.inv-list, .players { display: grid; gap: 8px; }
.inv-card, .player-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px;
}

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

.actions { display: flex; gap: 6px; }

.steal-btn, .sell-btn {
  border: 1px solid #111; background: #111; color: #fff; border-radius: 6px; padding: 6px 10px; cursor: pointer;
}

.quiz {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: grid; place-items: center;
}
.quiz-card {
  width: 520px; max-width: calc(100vw - 24px);
  background: var(--bg); border-radius: 10px; padding: 16px; border: 1px solid var(--border);
}

.quiz-card h3 { margin: 0 0 6px; }
.quiz-q { display: grid; gap: 8px; margin-top: 10px; }