/* Design tokens, element defaults, and the few utilities every page uses. */

:root {
  color-scheme: dark;
  font-family: 'DM Sans', Arial, sans-serif;
  color: #e8e9e9;
  background: var(--page);
  font-synthesis: none;

  --page: #0c1624;
  --card: #142231;
  --raised: #1c2d3d; /* rows and hover backgrounds inside a card */
  --divider: #2c3b48;
  --input-border: #52606a;
  --text: #e8e9e7;
  --text-faint: #8c9ba6;
  --heading: #f1ebdd;
  --gold: #e8c781;
  --gold-label: #c9a866;
  --gold-selected: #f0d6a0;
  --gold-underline: #d8ac61;
  --focus: #e6bd69;
  --error: #ffa795;
  --game-yellow: #ffd100;
  --game-green: #3ee34e;
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: Georgia, serif;
  --gutter: 31px; /* left/right padding inside cards and tab rows */
}

@media (max-width: 560px) {
  :root { --gutter: 17px; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }

.loading, .fatal { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.loading, .fatal p, .fatal button { font-size: 24px; }
.fatal button { justify-self: center; padding: 10px 20px; }

.circle-icon { display: grid; place-items: center; overflow: hidden; border: 1px solid #8c744d; border-radius: 50%; background: #e8e5dd; box-shadow: 0 0 0 4px #b9954517; }
.circle-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
