/* Ghost Drop design tokens and shared elements.
   THEME: cyber/steampunk. Soot-black workshop, riveted iron panels, brass trim,
   furnace-red threat, aether-teal tech glow. Canvas colors mirror these in src/config/palette.js.
   TYPE: Cinzel (engraved display) · Chakra Petch (gauges/HUD) · Barlow (body). */

:root {
  color-scheme: dark;

  --bg: #0b0806;
  --pan: #16100c;
  --pan-2: #1f1711;
  --line: #3b2c1f;
  --ink: #f3e7d0;      /* parchment */
  --dim: #a8937a;

  --brass: #d9a441;
  --brass-dim: #8a6a35;
  --copper: #c46a36;
  --aether: #45f0d8;
  --furnace: #ff5a36;
  --go: #5ef2a6;
  --bad: #ff4a3a;
  --steam: #9fb3b8;

  --r-common: #a8998a;
  --r-uncommon: #45f0d8;
  --r-rare: #c98bff;
  --r-exotic: #ffd25e;

  --font-display: "Cinzel", Georgia, serif;
  --font-gauge: "Chakra Petch", sans-serif;
  --font-body: Barlow, system-ui, sans-serif;

  /* four brass rivets, one per corner */
  --rivets:
    radial-gradient(circle at 8px 8px, var(--brass-dim) 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 8px) 8px, var(--brass-dim) 2px, transparent 2.5px),
    radial-gradient(circle at 8px calc(100% - 8px), var(--brass-dim) 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), var(--brass-dim) 2px, transparent 2.5px);
}

* { box-sizing: border-box; min-width: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  overflow-x: clip;
}

h1, h2, h3, .disp { font-family: var(--font-display); margin: 0; line-height: 1.05; }

button {
  font: 600 15px var(--font-body);
  color: var(--ink);
  background: linear-gradient(#241a12, #1a130d);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  padding: 6px 12px;
  cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--brass); }
button:focus-visible { outline: 2px solid var(--aether); outline-offset: 2px; }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.hide { display: none !important; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .nm { font-weight: 600; }
.ds { color: var(--dim); font-size: 13px; }
.price { font: 700 15px var(--font-gauge); white-space: nowrap; text-align: right; color: var(--brass); }
.list { max-height: 420px; overflow: auto; }
.empty { color: var(--dim); padding: 18px 0; text-align: center; }

.r-common   { color: var(--r-common); }
.r-uncommon { color: var(--r-uncommon); }
.r-rare     { color: var(--r-rare); }
.r-exotic   { color: var(--r-exotic); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
