/* Tabletop Trials — dark arcane theme
   Tuned for two very different screens: a TV/tablet across the room (player)
   and a phone or laptop in the DM's lap (console). */

:root {
  --bg: #07080c;
  --bg-2: #0d1017;
  --panel: #12161f;
  --panel-2: #171c28;
  --line: #262d3d;
  --line-soft: #1b2130;

  --ink: #e8e3d6;
  --ink-dim: #9aa3b5;
  --ink-faint: #626c80;

  --gold: #d8b26a;
  --gold-soft: #8a7241;
  --teal: #4fd1c5;
  --violet: #9a7ae0;
  --blood: #d4574a;
  --moss: #7fb069;

  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r: 10px;
}

* { box-sizing: border-box; }

/* Several components below set an explicit `display`, which would otherwise
   beat the UA rule for [hidden] and leave invisible-but-clickable panels
   floating over the screen. Overlays that swallow taps are unforgiving on a
   tablet, so make hidden mean hidden, everywhere. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-image:
    radial-gradient(1200px 700px at 50% -10%, #1a2133 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 110%, #14181f 0%, transparent 65%);
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #0a0d14;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-soft); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

/* --- shared bits ------------------------------------------------------- */

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex: 0 0 auto;
  color: var(--blood);
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  display: inline-block;
}
.dot.live { color: var(--moss); }
.dot.wait { color: var(--gold); }

.btn {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  transition: border-color .15s, background .15s, transform .05s;
}
.btn:hover:not(:disabled) { border-color: var(--gold-soft); background: #1d2331; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #3a2f18, #241d10);
  border-color: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}
.btn.danger { color: var(--blood); border-color: #4a2320; }
.btn.good { color: var(--moss); border-color: #26401f; }
.btn.on { background: #23304a; border-color: var(--teal); color: var(--teal); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: .82; }
  50% { opacity: .95; }
}
@keyframes pulse-ring {
  0% { transform: scale(.9); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
