:root {
  --bg: #0f0f1a; --surface: #1a1a2e; --surface2: #23233d; --accent: #e94560;
  --text: #eaeaea; --muted: #8888aa; --ok: #27ae60; --danger: #c0392b;
  --radius: 10px; --font: 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }
h1 { color: var(--accent); }
h3 { margin-bottom: 10px; }
a { color: var(--muted); }
.muted { color: var(--muted); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
button {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0;
  border-radius: var(--radius); padding: 12px 16px; cursor: pointer;
}
button:disabled { opacity: .4; cursor: default; }
button.secondary { background: var(--surface2); border: 1px solid var(--muted); }
button.danger { background: var(--danger); }
button.claim { background: var(--ok); }
button.small { padding: 6px 10px; font-size: .85rem; }
input, select {
  font: inherit; color: var(--text); background: var(--surface2); border: 1px solid #444;
  border-radius: 6px; padding: 8px; min-width: 0;
}
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; flex: none; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 50; }
.overlay .panel { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }

.pl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; }
.pl.current { background: var(--surface2); outline: 2px solid var(--accent); }
.pl.out { opacity: .45; }
.pl .pname { flex: 1; }
.pl .pcash { font-weight: 700; }
.chips { width: 100%; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.chips i { width: 10px; height: 14px; border-radius: 2px; }
.chips em { font-size: .75rem; color: var(--muted); margin-left: 6px; }

.auction .deed { border-top: 8px solid; background: #f4f1e8; color: #222; border-radius: 6px; padding: 8px; display: flex; justify-content: space-between; }
.auction .big { font-size: 1.6rem; font-weight: 700; margin: 6px 0; }
.bidpad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.bidpad .row { grid-column: 1 / -1; margin: 0; }
.bidpad .row input { flex: 1; }
.bidpad > .secondary { grid-column: 1 / -1; }
.debt { border-left: 4px solid var(--danger); display: flex; flex-direction: column; gap: 8px; }
.card { border-left: 4px solid #f39c12; }
.card.community { border-left-color: #3498db; }
.claim { border-left: 4px solid var(--ok); }
.trade { border-left: 4px solid #9b59b6; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--surface2); padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; }
#toast.error { background: var(--danger); }
