/* The Hefesto look shared by every page: night background with Ricarten behind it, gold rims, one ember call to action,
   the game's window frame. Single dark theme on purpose (the game's own windows). */
:root {
  --night: #0c0a08;
  --plate: #1f1c18;
  --rim: #b59a5c;
  --rim-dark: #4d3f28;
  --line: #2f2922;
  --gold: #e6c779;
  --gold-hi: #ffd36b;
  --ember: #c8541c;
  --text: #ddd2bf;
  --title: #f1e3bd;
  --muted: #a3978a;
  --clan: #cdb27a;
  --good: #8fd16a;
  --body: Cambria, 'Crimson Pro', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.55 var(--body); }
/* Behind every page: Ricarten from the game, darkened, held still while the page scrolls. */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 10, 8, .58) 0%, rgba(12, 10, 8, .72) 55%, rgba(12, 10, 8, .84) 100%), url('../art/city.webp') center 40% / cover no-repeat; }
a { color: var(--gold); }
img { max-width: 100%; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.page[hidden] { display: none; }
.page-head { padding-block: 44px 18px; }
.page-head h1 { margin: 0; font: 700 clamp(28px, 3.2vw, 36px)/1.15 var(--body); color: var(--gold); text-shadow: 0 2px 0 #000; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.empty { color: var(--muted); padding: 16px 0; }

/* The ember call to action: a soft, rounded fire plate with one warm rim, a light top edge and a glow. */
.cta { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 30px 0 24px; border: 1px solid rgba(255, 190, 120, .55); border-radius: 10px;
  background: radial-gradient(120% 140% at 50% 0%, #f08a45 0%, #c4501b 45%, #8e2d0b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .55), inset 0 -2px 6px rgba(70, 18, 2, .45), 0 0 22px rgba(232, 119, 46, .32), 0 8px 18px rgba(0, 0, 0, .55);
  color: #fff6e6; font: 700 21px/1 var(--body); text-decoration: none; text-shadow: 0 1px 2px rgba(70, 18, 2, .8); white-space: nowrap; cursor: pointer;
  transition: filter .15s, box-shadow .15s, transform .15s; }
.cta:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 220, 180, .6), inset 0 -2px 6px rgba(70, 18, 2, .45), 0 0 30px rgba(240, 138, 69, .5), 0 10px 22px rgba(0, 0, 0, .55); transform: translateY(-1px); }
.cta:active { filter: brightness(.95); transform: translateY(1px); }
.cta:disabled { filter: grayscale(.6) brightness(.8); cursor: wait; }
.cta svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 1px 1px rgba(70, 18, 2, .8)); }
.cta.small { height: 38px; padding: 0 18px 0 14px; gap: 8px; border-radius: 8px; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, .55), inset 0 -2px 4px rgba(70, 18, 2, .4), 0 0 14px rgba(232, 119, 46, .28), 0 4px 10px rgba(0, 0, 0, .5); }
.cta.small svg { width: 15px; height: 15px; }
.link-under { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 700; text-decoration: none; }
.link-under:hover { color: var(--gold-hi); text-decoration: underline; }

/* A divider like the game's frame, with the coin in the middle. */
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 30px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 5px; border-top: 1px solid var(--rim); border-bottom: 1px solid var(--rim-dark); }
.divider img { width: 34px; height: 34px; }
