/* Augurhall placeholder — a candle-lit hall of augury. System fonts only; nothing loads from another host. */

:root {
  --night: #0c0907;
  --hall: #15100c;
  --hall-2: #1d1610;
  --stone: #2a2119;
  --brass: #c9a35a;
  --brass-hi: #ecd08e;
  --brass-lo: #7a6136;
  --ember: #e8873a;
  --ember-hi: #ffb25e;
  --parchment: #ecdfc3;
  --parchment-dim: #b9a888;
  --ink-soft: #8d7d63;
  --blood: #c4473b;
  --sage: #7fae7a;
  --party: #e0bd6e;
  --enemy: #c94a3e;

  --serif-display: "Trajan Pro", "Trajan Pro 3", Optima, "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brass-hi); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--parchment); color: var(--night); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }

/* ---------- Hero: the hall ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 55% at 70% 52%, rgba(232, 135, 58, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 8% 20%, rgba(201, 163, 90, 0.07), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, #000 10%, transparent 60%),
    linear-gradient(180deg, #120d0a 0%, var(--hall) 45%, #0f0b08 100%);
  overflow: hidden;
}

/* Faint stone arches at the back of the hall. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(201, 163, 90, 0.035) calc(25% - 1px) 25%),
    radial-gradient(ellipse 13% 60% at 12.5% 0%, rgba(0, 0, 0, 0.35), transparent 70%),
    radial-gradient(ellipse 13% 60% at 37.5% 0%, rgba(0, 0, 0, 0.35), transparent 70%),
    radial-gradient(ellipse 13% 60% at 62.5% 0%, rgba(0, 0, 0, 0.35), transparent 70%),
    radial-gradient(ellipse 13% 60% at 87.5% 0%, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  box-shadow: inset 0 0 180px 60px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.embers {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--brass); text-decoration: none;
}
.mark-eye { width: 38px; height: 38px; }
.mark-pupil { fill: var(--ember); }
.wordmark {
  font-family: var(--serif-display);
  font-size: 22px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--parchment);
}
.bar-note {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(201, 163, 90, 0.35);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(12, 9, 7, 0.55);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: 1480px; width: 100%; margin: 0 auto;
}

.eyebrow {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); }

h1 {
  margin-top: 18px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--parchment);
  text-shadow: 0 2px 30px rgba(232, 135, 58, 0.18);
}
h1 em {
  font-style: italic;
  color: var(--ember-hi);
  font-family: var(--serif);
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  color: var(--parchment-dim);
  font-size: clamp(17px, 1.25vw, 19px);
}

.omen {
  margin-top: 28px;
  padding: 18px 20px 18px 22px;
  border-left: 2px solid var(--brass);
  background: linear-gradient(90deg, rgba(201, 163, 90, 0.10), rgba(201, 163, 90, 0));
  max-width: 30em;
}
.omen-head { font-size: 14px; letter-spacing: 0.06em; color: var(--brass); font-style: italic; }
.omen-row { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.omen-big {
  font-family: var(--serif-display);
  font-size: clamp(54px, 5vw, 76px); line-height: 1;
  color: var(--brass-hi);
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 0 28px rgba(236, 208, 142, 0.25);
}
.omen-big small { font-size: 0.45em; margin-left: 2px; color: var(--brass); }
.omen-what { font-size: 20px; line-height: 1.3; color: var(--parchment); }
.omen-sub { font-size: 14px; color: var(--ink-soft); }

.seal {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 135, 58, 0.55);
  background: linear-gradient(180deg, rgba(232, 135, 58, 0.18), rgba(120, 40, 20, 0.12));
  color: var(--parchment);
  font-family: var(--serif-display);
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px;
  box-shadow: 0 0 40px rgba(232, 135, 58, 0.12);
}
.seal-ring {
  width: 30px; height: 30px; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, #e46a4d 0 18%, #a12d22 45%, #6a1812 75%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 190, 150, 0.18);
  position: relative;
}
.seal-ring::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1.5px solid rgba(255, 210, 170, 0.55);
}

/* ---------- The stage: board, round counter, ticker ---------- */

.stage { position: relative; min-width: 0; }

.hud-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; min-height: 34px;
}
.round {
  font-family: var(--serif-display);
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 15px;
  color: var(--brass);
}
.round-n {
  display: inline-block; min-width: 1.4em;
  font-size: 26px; color: var(--brass-hi); letter-spacing: 0;
  font-variant-numeric: lining-nums;
  transition: transform 0.4s ease, color 0.4s ease;
}
.round-n.flash { transform: scale(1.35); color: var(--ember-hi); }

.toggle {
  font: inherit; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--parchment-dim);
  background: rgba(12, 9, 7, 0.6);
  border: 1px solid rgba(201, 163, 90, 0.35);
  border-radius: 999px; padding: 5px 14px; cursor: pointer;
}
.toggle:hover { color: var(--parchment); border-color: var(--brass); }

.table {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(145deg, #5c4524, #2b1e10 40%, #4a371c 70%, #1f160c);
  box-shadow:
    0 0 0 1px rgba(236, 208, 142, 0.25),
    0 30px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 120px -10px rgba(232, 135, 58, 0.22);
}
.table::before {
  /* inner brass bead */
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(236, 208, 142, 0.35);
  pointer-events: none;
}
.board {
  display: block; width: 100%; height: 100%;
  border-radius: 8px;
  background: #17120d;
}

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .table { transform: perspective(1800px) rotateX(9deg); transform-origin: 50% 70%; }
}

.play {
  position: absolute; inset: 0; margin: auto;
  width: max-content; height: max-content;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 14px 18px;
  font: inherit; font-family: var(--serif-display);
  font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--parchment);
  background: rgba(12, 9, 7, 0.82);
  border: 1px solid var(--brass);
  border-radius: 999px; cursor: pointer;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}
.play[hidden] { display: none; }
.play:hover { border-color: var(--brass-hi); }
.play-icon {
  width: 0; height: 0;
  border-left: 14px solid var(--ember-hi);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}

.verdict {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  padding: 16px 30px;
  font-family: var(--serif-display);
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
  color: var(--brass-hi);
  background: radial-gradient(ellipse at center, rgba(12, 9, 7, 0.92), rgba(12, 9, 7, 0.7) 70%, transparent);
  border-top: 1px solid rgba(236, 208, 142, 0.5);
  border-bottom: 1px solid rgba(236, 208, 142, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  white-space: nowrap;
}
.verdict small { display: block; font-size: 0.5em; letter-spacing: 0.2em; color: var(--parchment-dim); margin-top: 4px; }
.verdict.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.ticker {
  margin-top: 16px;
  min-height: calc(3 * 1.55em);
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
}
.ticker li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.ticker li:last-child { color: var(--parchment); }
.ticker .t-round { color: var(--brass); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.ticker .t-fall { color: var(--blood); }
.ticker .t-heal { color: var(--sage); }
.ticker .crit { color: var(--ember-hi); }

.stage-caption {
  margin-top: 6px; font-size: 13px; font-style: italic; color: var(--ink-soft);
}

.down {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(201, 163, 90, 0.4); border-radius: 50%;
}
.down span {
  width: 9px; height: 9px; margin-top: -4px;
  border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg);
}

/* ---------- The readings below ---------- */

main {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(201, 163, 90, 0.06), transparent 70%),
    linear-gradient(180deg, #0f0b08, var(--night) 30%);
  padding: clamp(56px, 8vw, 110px) var(--gutter) 40px;
}

.rite {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid rgba(201, 163, 90, 0.14);
}
.rite:first-child { border-top: 0; }
.rite.flip .rite-text { order: 2; }

.numeral {
  font-family: var(--serif-display);
  font-size: 15px; letter-spacing: 0.3em;
  color: var(--ember);
  display: flex; align-items: center; gap: 12px;
}
.numeral::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, var(--ember), transparent); }

h2 {
  margin: 12px 0 16px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--parchment);
}
.rite-text p { color: var(--parchment-dim); max-width: 34em; }

.ticks { margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--parchment-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px; transform: rotate(45deg);
  border: 1.5px solid var(--brass);
}
.ticks strong { color: var(--parchment); font-weight: 600; }

/* parchment cards */
.rite-art {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  color: #2b2015;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 250, 235, 0.6), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(120, 80, 30, 0.25), transparent 60%),
    linear-gradient(180deg, #e9dbbb, #d9c69d);
  box-shadow:
    0 0 0 1px rgba(90, 60, 25, 0.5),
    inset 0 0 60px rgba(110, 70, 20, 0.35),
    0 30px 60px -25px rgba(0, 0, 0, 0.9);
}
.reading-title {
  font-family: var(--serif-display);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 14px;
  color: #6b4a1f;
  border-bottom: 1px solid rgba(107, 74, 31, 0.35);
  padding-bottom: 10px;
}
.reading-sub {
  margin-top: 22px; margin-bottom: 8px;
  font-style: italic; font-size: 15px; color: #6b5435;
}

.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.outcome { text-align: center; padding: 10px 4px; border-radius: 10px; background: rgba(255, 250, 235, 0.35); border: 1px solid rgba(107, 74, 31, 0.2); }
.o-n { font-family: var(--serif-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-variant-numeric: lining-nums; }
.o-l { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #6b5435; }
.outcome.win .o-n { color: #355b2f; }
.outcome.withdraw .o-n { color: #7a5a1c; }
.outcome.lose .o-n { color: #8a2a20; }

.drops li, .harm li {
  display: grid; grid-template-columns: minmax(84px, auto) 1fr 44px; align-items: center; gap: 12px;
  padding: 6px 0; font-size: 16px;
}
.harm li { grid-template-columns: minmax(0, 1.2fr) 1fr 44px; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #8a6a32; object-fit: cover; background: #2b2015; }
.bar { height: 10px; border-radius: 6px; background: rgba(107, 74, 31, 0.18); overflow: hidden; }
.fill { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #8a2a20, #c4473b); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.harm .fill { background: linear-gradient(90deg, #6b4a1f, #b0802e); }
.pct { text-align: right; font-variant-numeric: lining-nums tabular-nums; color: #4a3520; }
.dropped li { padding: 4px 0 4px 20px; position: relative; color: #3d2d1c; font-size: 16px; }
.dropped li::before { content: "✕"; position: absolute; left: 0; color: #8a2a20; font-size: 12px; top: 7px; }

/* take control mock */
.reins { background: linear-gradient(180deg, #221a13, #18120d); color: var(--parchment); box-shadow: 0 0 0 1px rgba(201,163,90,0.35), 0 30px 60px -25px #000, inset 0 0 60px rgba(0,0,0,0.5); }
.reins-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; color: var(--brass-hi); }
.pips { display: inline-flex; gap: 6px; }
.pips span { width: 14px; height: 14px; transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 10px rgba(232,135,58,0.6); }
.pips span.spent { background: transparent; border: 1.5px solid var(--brass-lo); box-shadow: none; }
.reins-q { margin-top: 16px; color: var(--parchment-dim); font-style: italic; }
.reins-opts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.reins-opts span {
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid rgba(201, 163, 90, 0.45);
  background: rgba(201, 163, 90, 0.08);
  font-size: 15px;
}
.reins-opts span:first-child { border-color: var(--ember); background: rgba(232, 135, 58, 0.16); color: var(--ember-hi); }
.reins-foot { margin-top: 18px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* solo road */
.road-steps { position: relative; display: grid; gap: 18px; padding-left: 4px; }
.road-steps::before { content: ""; position: absolute; left: 22px; top: 18px; bottom: 18px; border-left: 2px dashed rgba(107, 74, 31, 0.5); }
.road-steps li { position: relative; display: flex; align-items: center; gap: 16px; font-size: 17px; }
.node {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif-display); font-size: 14px; color: #f3e6c8;
  background: radial-gradient(circle at 35% 30%, #8b6a35, #4d3517);
  box-shadow: 0 0 0 3px #e3d2ad, 0 0 0 4px rgba(107, 74, 31, 0.45);
}
.road-steps li:nth-child(3) .node { background: radial-gradient(circle at 35% 30%, #c4473b, #6a1812); }

.doors {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  border-top: 1px solid rgba(201, 163, 90, 0.14);
}
.doors p { color: var(--parchment-dim); }
.seal.big { margin-top: 30px; font-size: 16px; }

.foot {
  padding: 28px var(--gutter) 40px;
  text-align: center;
  font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid rgba(201, 163, 90, 0.12);
  background: var(--night);
}
.foot-note { margin-top: 4px; font-size: 13px; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; align-content: start; }
  .pitch { display: contents; }
  .eyebrow { order: 1; }
  h1 { order: 2; margin-top: 0; }
  .lede { order: 3; margin-top: 0; }
  .stage { order: 4; }
  .omen { order: 5; margin-top: 0; }
  .seal:not(.big) { order: 6; margin-top: 0; justify-self: start; }
  .rite { grid-template-columns: 1fr; }
  .rite.flip .rite-text { order: 0; }
  .down { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar { padding: 16px 0; }
  .wordmark { font-size: 18px; letter-spacing: 0.24em; }
  .mark-eye { width: 32px; height: 32px; }
  .bar-note { display: none; }
  .hero { padding-bottom: 40px; }
  .hero-grid { gap: 20px; }
  h1 { font-size: 38px; }
  .table { padding: 6px; border-radius: 10px; }
  .table::before { inset: 3px; border-radius: 8px; }
  .board { border-radius: 6px; }
  .ticker { font-size: 13.5px; margin-top: 10px; }
  .omen-row { gap: 14px; }
  .omen-what { font-size: 17px; }
  .drops li { grid-template-columns: minmax(84px, auto) 1fr 40px; gap: 8px; }
  .harm li { grid-template-columns: 1fr 70px 40px; gap: 8px; font-size: 15px; }
  .verdict { padding: 10px 16px; white-space: normal; width: 86%; }
}

@media (max-width: 560px) {
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .eyebrow::before { width: 20px; }
}

@media (max-width: 560px) {
  .table { aspect-ratio: 1 / 1; }
}
@media (min-width: 961px) and (max-height: 820px) {
  .table { aspect-ratio: 16 / 10; }
}
