:root {
  color-scheme: dark;
  --black: #030103;
  --panel: rgba(7, 2, 4, .94);
  --panel-wine: rgba(31, 5, 13, .92);
  --gold: #d3a35b;
  --gold-bright: #f1cf83;
  --gold-dark: #6d3c18;
  --ivory: #e8ddd0;
  --muted: #b9aaa2;
  --ruby: #9c0d2c;
  --pink: #f0275e;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, #17050b 0, #060103 42%, #020102 78%),
    #020102;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -8rem;
  z-index: 9999;
  padding: .75rem 1rem;
  border: 1px solid var(--gold-bright);
  background: #050104;
}
.skip-link:focus { top: 1rem; }

.royal-canvas {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  width: 100vw;
  aspect-ratio: 1448 / 1086;
  overflow: hidden;
  background: #050104;
  box-shadow: 0 0 8cqw #000 inset;
}

.salon-art,
.salon-vignette,
.spark-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.salon-art {
  z-index: -5;
  background: url("../images/royal-salon-v24.webp") center / 100% 100% no-repeat;
  filter: saturate(1.06) contrast(1.03) brightness(.88);
}

.salon-vignette {
  z-index: -4;
  background:
    radial-gradient(ellipse at 50% 43%, transparent 0 25%, rgba(2, 0, 2, .08) 42%, rgba(1, 0, 1, .7) 100%),
    linear-gradient(90deg, rgba(19, 0, 6, .28), transparent 17% 83%, rgba(19, 0, 6, .3)),
    linear-gradient(180deg, rgba(0, 0, 0, .16), transparent 13% 80%, rgba(0, 0, 0, .28));
}

.spark-field { z-index: 8; overflow: hidden; }
.spark-field span {
  position: absolute;
  width: .18cqw;
  height: .18cqw;
  border-radius: 50%;
  background: #ffd4df;
  box-shadow: 0 0 .55cqw #ff1f5c, 0 0 1.25cqw #a80032;
  animation: ember-rise linear infinite;
}

/* Header — 1448 × 72 design coordinates. */
.site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  height: 4.972cqw;
  border-bottom: .07cqw solid rgba(206, 148, 66, .45);
  background:
    linear-gradient(90deg, rgba(11, 1, 5, .96), rgba(2, 1, 2, .93) 21% 77%, rgba(12, 1, 5, .97)),
    repeating-linear-gradient(100deg, transparent 0 .45cqw, rgba(100, 14, 38, .07) .5cqw .57cqw);
  box-shadow: 0 .45cqw 1.65cqw rgba(0, 0, 0, .78), inset 0 -.16cqw .4cqw rgba(120, 10, 35, .15);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 44%;
  right: 25%;
  bottom: -.13cqw;
  height: .2cqw;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold-bright), var(--gold-dark), transparent);
  filter: drop-shadow(0 0 .3cqw var(--pink));
}

.brand {
  position: absolute;
  left: 2.90cqw;
  top: .25cqw;
  width: 11.75cqw;
  height: 4.35cqw;
  display: grid;
  place-items: center;
}
.brand img { width: 100%; height: 100%; object-fit: contain; }

.nav {
  position: absolute;
  left: 19.95cqw;
  top: 0;
  height: 4.972cqw;
  display: flex;
  align-items: center;
  gap: 1.86cqw;
  white-space: nowrap;
  color: #d9ccc0;
  font-size: .82cqw;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.nav > a {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  text-shadow: 0 .14cqw .3cqw #000;
  transition: color .18s ease, filter .18s ease;
}
.nav > a:hover,
.nav > a:focus-visible { color: #f3ddb1; outline: 0; }
.nav-current {
  min-width: 6.1cqw;
  color: var(--gold-bright);
}
.nav-current::before {
  content: "";
  position: absolute;
  inset: .82cqw -.15cqw .78cqw;
  z-index: -1;
  clip-path: polygon(9% 0, 91% 0, 100% 28%, 94% 100%, 6% 100%, 0 28%);
  border: .06cqw solid rgba(190, 112, 36, .55);
  background: linear-gradient(180deg, rgba(63, 4, 18, .84), rgba(10, 2, 5, .96));
  box-shadow: inset 0 0 .65cqw rgba(200, 13, 58, .25), 0 0 .65cqw rgba(255, 27, 82, .15);
}
.nav-current::after {
  content: "◆";
  position: absolute;
  left: 50%;
  bottom: .15cqw;
  transform: translateX(-50%);
  color: var(--pink);
  font-size: .42cqw;
  text-shadow: 0 0 .5cqw #ff2c66;
}

.nav-toggle,
.mobile-nav { display: none; }

/* Reusable lacquer and engraved plaques. */
.image-button,
.plaque-button {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #ead4a6;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .115em;
  text-shadow: 0 .14cqw .28cqw #000;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.image-button:hover,
.image-button:focus-visible,
.plaque-button:hover,
.plaque-button:focus-visible {
  transform: translateY(-.12cqw);
  filter: brightness(1.2) saturate(1.08);
  outline: none;
}
.image-button:focus-visible,
.plaque-button:focus-visible { filter: drop-shadow(0 0 .55cqw #ff4676) brightness(1.17); }
.image-button:disabled,
.plaque-button:disabled { cursor: not-allowed; opacity: .42; filter: saturate(.3) brightness(.72); transform: none; }

.plaque-button {
  clip-path: polygon(7% 0, 93% 0, 100% 24%, 96% 76%, 89% 100%, 11% 100%, 4% 76%, 0 24%);
  border: .06cqw solid rgba(194, 130, 49, .64);
  background:
    linear-gradient(90deg, rgba(112, 38, 12, .55), transparent 11% 89%, rgba(112, 38, 12, .55)),
    linear-gradient(180deg, #1a090b, #080304 55%, #18080a);
  box-shadow: inset 0 0 0 .16cqw rgba(17, 5, 7, .9), inset 0 0 .75cqw rgba(123, 15, 41, .34), 0 .35cqw .8cqw rgba(0, 0, 0, .6);
}
.plaque-button::before,
.plaque-button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10%;
  height: .08cqw;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.plaque-button::before { left: 3%; }
.plaque-button::after { right: 3%; transform: rotate(180deg); }

.member-button {
  right: 3.1cqw;
  top: 1.22cqw;
  width: 9.72cqw;
  height: 2.8cqw;
  clip-path: polygon(5% 0, 95% 0, 100% 14%, 100% 86%, 95% 100%, 5% 100%, 0 86%, 0 14%);
  border: .06cqw solid rgba(220, 154, 63, .58);
  background: linear-gradient(180deg, #620b23, #23030e 55%, #4e081d);
  box-shadow: inset 0 0 .9cqw rgba(240, 28, 83, .35), 0 0 .8cqw rgba(190, 9, 50, .24);
  font-size: .68cqw;
}
.member-button .button-gem { margin-right: .55cqw; color: #ff4b78; font-size: .48cqw; text-shadow: 0 0 .5cqw #ff2b64; }

.back-button {
  left: 2.9cqw;
  top: 5.8cqw;
  width: 10.29cqw;
  height: 2.97cqw;
  font-size: .67cqw;
}
.salon-kicker {
  position: absolute;
  right: 2.35cqw;
  top: 5.43cqw;
  z-index: 4;
  margin: 0;
  color: #b3884b;
  font-size: .72cqw;
  letter-spacing: .155em;
  text-transform: uppercase;
  text-shadow: 0 .12cqw .35cqw #000;
}

/* Hero title and badges. */
.game-title {
  position: absolute;
  z-index: 20;
  left: 31.25cqw;
  top: 5.35cqw;
  width: 37.5cqw;
  height: 10.1cqw;
  padding-top: 1.35cqw;
  text-align: center;
  text-shadow: 0 .18cqw .55cqw #000;
}
.game-title::before,
.game-title::after {
  content: "";
  position: absolute;
  top: 2.18cqw;
  width: 7.8cqw;
  height: .48cqw;
  border-top: .08cqw solid rgba(210, 153, 64, .76);
  background: radial-gradient(circle at 100% 0, var(--gold-bright) 0 .1cqw, transparent .12cqw);
  opacity: .9;
}
.game-title::before { left: -3.4cqw; transform: skewX(-34deg); }
.game-title::after { right: -3.4cqw; transform: scaleX(-1) skewX(-34deg); }
.game-title > p { margin: 0; color: #d8a958; text-transform: uppercase; letter-spacing: .1em; font-size: 1.12cqw; line-height: 1; }
.game-title h1 {
  margin: -.05cqw 0 0;
  color: #ddb364;
  font-weight: 400;
  font-size: 2.75cqw;
  line-height: .98;
  letter-spacing: .015em;
  text-transform: uppercase;
  filter: drop-shadow(0 .05cqw .04cqw #6c3310);
}
.game-title h1 small { font-size: .56em; font-weight: 400; }
.title-crown {
  position: absolute;
  left: 50%;
  top: -1.6cqw;
  transform: translateX(-50%);
  color: var(--gold-bright);
  font-size: 1.45cqw;
  filter: drop-shadow(0 0 .35cqw #9a0d31);
}
.title-ornament {
  display: block;
  width: 26cqw;
  height: .08cqw;
  margin: .38cqw auto .2cqw;
  background: linear-gradient(90deg, transparent, #905321 12%, #e1b35c 48%, #ff4173 50%, #e1b35c 52%, #905321 88%, transparent);
  box-shadow: 0 0 .35cqw rgba(221, 29, 79, .28);
}
.game-title .title-tagline { color: #cfc0b6; font-size: .88cqw; letter-spacing: .03em; text-transform: none; }
.game-badges { display: flex; justify-content: center; gap: .47cqw; margin-top: .9cqw; }
.game-badges span {
  min-width: 9.35cqw;
  height: 2.2cqw;
  display: grid;
  place-items: center;
  border: .07cqw solid rgba(174, 113, 41, .58);
  background: linear-gradient(180deg, rgba(13, 4, 6, .95), rgba(5, 2, 3, .9));
  color: #b9aaa0;
  font-size: .68cqw;
  letter-spacing: .095em;
  text-transform: uppercase;
  box-shadow: inset 0 0 .45cqw rgba(102, 10, 32, .18), 0 .3cqw .6cqw #000;
}
.game-badges b { color: #e5c273; font-weight: 400; }

/* Engraved card system. */
.left-rail,
.right-rail { position: absolute; z-index: 18; top: 0; bottom: 0; }
.left-rail { left: 5.11cqw; width: 15.26cqw; }
.right-rail { left: 78.59cqw; width: 16.92cqw; }

.ornate-panel {
  position: absolute;
  border: .07cqw solid rgba(188, 126, 45, .76);
  background:
    linear-gradient(105deg, rgba(91, 19, 32, .13), transparent 34% 70%, rgba(91, 19, 32, .14)),
    radial-gradient(circle at 50% 0, rgba(96, 12, 33, .17), transparent 35%),
    linear-gradient(155deg, rgba(18, 5, 8, .97), rgba(4, 2, 3, .97));
  box-shadow:
    0 .85cqw 1.7cqw rgba(0, 0, 0, .72),
    inset 0 0 0 .21cqw rgba(2, 1, 2, .82),
    inset 0 0 0 .28cqw rgba(137, 80, 27, .3),
    inset 0 0 1.2cqw rgba(111, 8, 32, .16);
}
.ornate-panel {
  outline: .055cqw solid rgba(55, 25, 11, .82);
  outline-offset: -.24cqw;
}
.ornate-panel::before {
  content: "";
  position: absolute;
  inset: .38cqw;
  border: .055cqw solid rgba(165, 102, 34, .53);
  pointer-events: none;
}
.panel-inner { position: absolute; inset: 0; padding: 1.22cqw 1.45cqw; }
.panel-centred { text-align: center; }
.ornate-panel h2,
.mini-label {
  margin: 0;
  color: #d6aa5e;
  font-size: 1.03cqw;
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 .15cqw .28cqw #000;
}
.panel-subtitle { margin: .2cqw 0 .65cqw; color: #dcc28d; font-size: .8cqw; }
.corner {
  position: absolute;
  z-index: 2;
  width: 1.15cqw;
  height: 1.15cqw;
  background: radial-gradient(circle at 12% 12%, #f4cf76 0 .07cqw, #9c561e .08cqw .14cqw, transparent .16cqw);
  filter: drop-shadow(0 0 .16cqw rgba(230, 155, 52, .45));
  pointer-events: none;
}
.corner::before,
.corner::after { content: ""; position: absolute; background: linear-gradient(90deg, #714014, #e1b761, #714014); }
.corner::before { width: 100%; height: .08cqw; top: 0; left: 0; }
.corner::after { width: .08cqw; height: 100%; top: 0; left: 0; }
.corner-tl { left: -.18cqw; top: -.18cqw; }
.corner-tr { right: -.18cqw; top: -.18cqw; transform: rotate(90deg); }
.corner-br { right: -.18cqw; bottom: -.18cqw; transform: rotate(180deg); }
.corner-bl { left: -.18cqw; bottom: -.18cqw; transform: rotate(270deg); }
.panel-ruby {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -.7cqw;
  transform: translateX(-50%);
  width: 1.7cqw;
  height: 2.05cqw;
  color: transparent;
  font-size: 0;
  background: url("../images/pointer-royal-v24.png") center / contain no-repeat;
  filter: drop-shadow(0 0 .48cqw #f60c4b);
}
.panel-ruby-large { top: -1.5cqw; width: 2.45cqw; height: 3.15cqw; }

.ritual-card { top: 12.5cqw; width: 15.26cqw; height: 20.58cqw; }
.ritual-card h2 { margin-top: .35cqw; text-align: center; }
.ritual-card .panel-subtitle { text-align: center; }
.ritual-list { margin: 0; padding: 0; list-style: none; }
.ritual-list li {
  display: grid;
  grid-template-columns: 2.05cqw 1fr;
  gap: .65cqw;
  align-items: start;
  min-height: 2.75cqw;
  color: #c9bbb1;
  font-size: .64cqw;
  line-height: 1.35;
}
.ritual-list b {
  display: grid;
  place-items: center;
  width: 1.8cqw;
  height: 1.8cqw;
  border: .055cqw solid rgba(208, 149, 60, .58);
  border-radius: 50%;
  color: #d4a756;
  font-size: .66cqw;
  font-weight: 400;
}
.ritual-vow {
  margin: .15cqw 0 0;
  padding-top: .62cqw;
  border-top: .055cqw solid rgba(181, 120, 42, .34);
  color: #d4c3b5;
  text-align: center;
  font-size: .73cqw;
}
.ritual-vow em { display: block; margin-top: .16cqw; color: #e71d52; }

.ledger-card { top: 34.047cqw; width: 15.19cqw; height: 12.086cqw; }
.ledger-card h2 { text-align: left; }
.ledger-card p { margin: .34cqw 0; color: #bcaea6; font-size: .72cqw; line-height: 1.34; }
.ledger-card .ledger-intro { color: #dfc98f; }
.ledger-button { position: relative; width: 11.85cqw; height: 2.65cqw; margin: .75cqw auto 0; font-size: .63cqw; }

.house-card {
  top: 46.823cqw;
  width: 15.0cqw;
  height: 8.84cqw;
  display: grid;
  grid-template-columns: 4.3cqw 1fr;
  align-items: center;
  padding: .75cqw 1.1cqw .4cqw;
}
.house-card img { width: 3.7cqw; filter: drop-shadow(0 0 .35cqw rgba(223, 24, 73, .4)); }
.house-card > span { color: #d2a55a; font-size: .77cqw; letter-spacing: .13em; line-height: 1.35; text-transform: uppercase; }
.house-card > span b { font-weight: 400; }
.house-card strong {
  grid-column: 1 / -1;
  align-self: end;
  padding: .63cqw 0 .35cqw;
  border-top: .055cqw solid rgba(180, 117, 39, .42);
  color: #d8c39d;
  font-size: .65cqw;
  font-weight: 400;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.current-card { top: 12.5cqw; width: 16.99cqw; height: 14.434cqw; }
.current-card .panel-inner { padding-top: 1.35cqw; }
.gem-rule { position: relative; width: 11.2cqw; height: 1.1cqw; margin: .55cqw auto .5cqw; }
.gem-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .06cqw; background: linear-gradient(90deg, transparent, #bb7737 15% 42%, transparent 42% 58%, #bb7737 58% 85%, transparent); }
.gem-rule span { position: relative; color: #ff3a6d; font-size: .7cqw; text-shadow: 0 0 .55cqw #f51555; }
.current-card h3 {
  max-height: 5.5cqw;
  margin: .55cqw 0 .55cqw;
  overflow: auto;
  color: #e6d8ca;
  font-size: .97cqw;
  font-weight: 400;
  line-height: 1.28;
  scrollbar-width: thin;
  scrollbar-color: #7e1831 transparent;
}
.current-card p { margin: 0; color: #a99b94; font-size: .68cqw; line-height: 1.25; }
.current-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: .35cqw;
  bottom: .3cqw;
  width: 7.7cqw;
  height: 5.15cqw;
  background: url("../images/roses-royal-v24.webp") center / contain no-repeat;
  opacity: .2;
  pointer-events: none;
}

.tribute-card { top: 27.762cqw; width: 16.78cqw; height: 14.917cqw; }
.tribute-card .panel-inner { padding-top: 1.2cqw; }
.tribute-card p:not(.panel-subtitle) { margin: .45cqw 0 0; color: #c6b7ad; font-size: .74cqw; line-height: 1.25; }
.card-candles {
  position: absolute;
  left: .9cqw;
  right: .9cqw;
  bottom: 3.2cqw;
  height: 5.8cqw;
  background: url("../images/candles-royal-v24.webp") center bottom / 100% 100% no-repeat;
  opacity: .86;
}
.tribute-button {
  left: 1.05cqw;
  bottom: .8cqw;
  width: 14.65cqw;
  height: 2.95cqw;
  background-image: url("../images/cta-secondary-v24.png");
  font-size: .66cqw;
}

.rule-card { top: 43.439cqw; width: 16.92cqw; height: 14.088cqw; }
.rule-card .panel-inner { padding: 1.15cqw 1.25cqw; }
.rule-card p:not(.panel-subtitle) { margin: .55cqw 0 .65cqw; color: #b8aaa1; font-size: .72cqw; line-height: 1.27; }
.rule-card strong {
  display: block;
  padding-top: .48cqw;
  border-top: .065cqw solid rgba(159, 28, 57, .65);
  color: #c8b7a7;
  font-size: .72cqw;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.22;
  text-transform: uppercase;
}
.rule-card strong b { display: block; margin-bottom: .25cqw; color: #e3c06e; font-size: .98cqw; font-weight: 400; }

/* Wheel, pointer, CTA, and compact stat chassis. */
.wheel-zone {
  position: absolute;
  z-index: 12;
  left: 23.619cqw;
  top: 12.776cqw;
  width: 52.762cqw;
  height: 48.826cqw;
}
.wheel-glow {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 52.762cqw;
  height: 46.271cqw;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 8deg, rgba(255, 42, 94, .14) 0 .22deg, transparent .35deg 5.8deg),
    repeating-radial-gradient(ellipse, transparent 0 7.4%, rgba(237, 25, 76, .09) 7.55% 7.8%, transparent 7.95% 12.8%),
    radial-gradient(ellipse, transparent 48%, rgba(198, 14, 60, .2) 61%, transparent 76%);
  filter: drop-shadow(0 0 1cqw rgba(235, 18, 73, .38));
  animation: slow-turn 28s linear infinite;
}
.wheel-glow::before,
.wheel-glow::after {
  content: "";
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  border: .07cqw solid rgba(255, 56, 105, .35);
  box-shadow: 0 0 .6cqw rgba(255, 28, 82, .55), inset 0 0 1.1cqw rgba(198, 13, 55, .2);
}
.wheel-glow::after { inset: 11%; border-style: dotted; opacity: .65; transform: rotate(17deg); }
.wheel-shell {
  position: absolute;
  z-index: 2;
  left: 4.627cqw;
  top: 2.072cqw;
  width: 43.508cqw;
  height: 43.508cqw;
  border-radius: 50%;
  filter: drop-shadow(0 1.4cqw 1.15cqw rgba(0, 0, 0, .86)) drop-shadow(0 0 .75cqw rgba(197, 14, 55, .26));
}
.wheel-base,
.wheel-rotor-mask,
.wheel-rotor,
.wheel-rotor img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-base,
.wheel-rotor img { object-fit: contain; }
.wheel-rotor-mask {
  z-index: 3;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle farthest-corner at 50% 50%, transparent 0 29%, #000 30% 59%, transparent 60%);
  mask-image: radial-gradient(circle farthest-corner at 50% 50%, transparent 0 29%, #000 30% 59%, transparent 60%);
}
.wheel-rotor { transform-origin: 50% 50%; will-change: transform; }
.roulette-ball-track {
  position: absolute;
  z-index: 6;
  inset: 10.7%;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}
.roulette-ball {
  position: absolute;
  left: 50%;
  top: .7%;
  width: 2.65%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 18%, #eadcc5 38%, #a98555 72%, #3b2412 100%);
  box-shadow: 0 .12cqw .2cqw rgba(0, 0, 0, .9), 0 0 .24cqw rgba(255, 239, 199, .8);
}
.wheel-shell.is-spinning .wheel-base {
  filter: sepia(.12) saturate(1.02) brightness(.82) contrast(1.14);
}
.wheel-pointer {
  position: absolute;
  z-index: 8;
  left: 23.964cqw;
  top: 2.348cqw;
  width: 4.834cqw;
  height: 6.699cqw;
  object-fit: contain;
  filter: drop-shadow(0 0 .75cqw #ef1d59) drop-shadow(0 .4cqw .3cqw #000);
}
.wheel-lower-gem {
  position: absolute;
  z-index: 7;
  left: 24.72cqw;
  top: 36.4cqw;
  width: 3.25cqw;
  height: 4.5cqw;
  object-fit: contain;
  transform: rotate(180deg);
  filter: drop-shadow(0 0 .55cqw #ef1d59);
}
.spin-button {
  left: 7.182cqw;
  top: 38.812cqw;
  width: 38.743cqw;
  height: 5.18cqw;
  background-image: url("../images/cta-spin-v24.png");
  color: #edcf81;
  font-size: 1.38cqw;
  line-height: 1;
  filter: drop-shadow(0 .55cqw .55cqw rgba(0, 0, 0, .8));
}
.spin-button span { display: flex; flex-direction: column; align-items: center; }
.spin-button small { margin-top: .42cqw; color: #ff537e; font-size: .68cqw; letter-spacing: .28em; }

.stats {
  position: absolute;
  z-index: 6;
  left: 3.936cqw;
  top: 44.613cqw;
  width: 47.238cqw;
  height: 4.213cqw;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 1.2cqw;
  clip-path: polygon(3% 0, 97% 0, 100% 24%, 97% 76%, 94% 100%, 6% 100%, 3% 76%, 0 24%);
  border: .07cqw solid rgba(189, 125, 42, .75);
  background: linear-gradient(180deg, rgba(15, 6, 6, .96), rgba(3, 2, 2, .98));
  box-shadow: inset 0 0 0 .16cqw rgba(119, 69, 23, .22), inset 0 0 1cqw rgba(112, 11, 35, .2), 0 .55cqw .9cqw #000;
}
.stat {
  display: grid;
  grid-template-columns: 1.4cqw auto;
  grid-template-rows: 1.45cqw 1.2cqw;
  align-content: center;
  justify-content: center;
  border-right: .055cqw solid rgba(154, 101, 36, .33);
  color: #d5c5b6;
}
.stat:last-child { border-right: 0; }
.stat-icon { align-self: end; color: #c69342; font-size: .92cqw; text-shadow: 0 0 .3cqw rgba(216, 130, 34, .35); }
.stat strong { align-self: end; color: #e9d8b0; font-size: .82cqw; font-weight: 400; }
.stat small { grid-column: 1 / -1; color: #c4b3a7; font-size: .63cqw; letter-spacing: .11em; line-height: .95; text-transform: uppercase; }
.stat-available strong { color: #ff396c; }

/* Task console and its asymmetric action hierarchy. */
.command-deck {
  left: 4.558cqw;
  top: 60.773cqw;
  width: 91.091cqw;
  height: 7.39cqw;
  z-index: 35;
  display: grid;
  grid-template-columns: 23.5cqw 40cqw 1fr;
  align-items: center;
  overflow: visible;
}
.command-deck::after {
  content: "";
  position: absolute;
  right: .3cqw;
  bottom: .15cqw;
  width: 13cqw;
  height: 6.6cqw;
  background: url("../images/roses-royal-v24.webp") right bottom / contain no-repeat;
  opacity: .68;
  pointer-events: none;
}
.deck-crown {
  position: absolute;
  left: 49.2%;
  top: -.92cqw;
  color: #d4a350;
  font-size: 1.1cqw;
  text-shadow: 0 0 .45cqw #ef1e59;
}
.command-copy { align-self: stretch; padding: 1.05cqw 1.75cqw; }
.command-copy small { display: block; margin-top: .15cqw; color: #cfbaa7; font-size: .68cqw; }
.command-copy h2 {
  margin: .72cqw 0 0;
  max-height: 2.25cqw;
  overflow: auto;
  color: #e0d4c8;
  font-size: .69cqw;
  font-weight: 400;
  line-height: 1.28;
  scrollbar-width: thin;
}
.task-actions { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 2.9cqw; }
.accept-button {
  position: relative;
  width: 20cqw;
  height: 3.45cqw;
  background-image: url("../images/cta-secondary-v24.png");
  font-size: .86cqw;
  z-index: 3;
}
.skip-button { position: relative; width: 13.25cqw; height: 3.18cqw; font-size: .77cqw; z-index: 3; }
.action-gem {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: -.92cqw;
  width: 2.8cqw;
  height: 8.75cqw;
  transform: translateX(-50%);
  object-fit: fill;
  filter: drop-shadow(0 0 .6cqw #f21e5a);
  pointer-events: none;
}
.whisper {
  align-self: stretch;
  position: relative;
  z-index: 2;
  padding: 1.75cqw 1.4cqw 1cqw 2.2cqw;
  border-left: .055cqw solid rgba(165, 105, 36, .42);
}
.whisper blockquote { margin: .55cqw 0 0; color: #d4c3b5; font-size: .8cqw; font-style: italic; }
.accept-button:disabled { opacity: .86; filter: saturate(.92) brightness(.9); }
.skip-button:disabled { opacity: .7; filter: saturate(.28) brightness(.75); }
.image-button[aria-disabled="true"],
.plaque-button[aria-disabled="true"],
.wheel-center-button[aria-disabled="true"] { cursor: pointer; }
.accept-button[aria-disabled="true"] { opacity: .86; filter: saturate(.92) brightness(.9); }
.skip-button[aria-disabled="true"] { opacity: .7; filter: saturate(.28) brightness(.75); }

/* Footer and consent line. */
.footer-actions {
  position: absolute;
  z-index: 30;
  left: 4.55cqw;
  top: 69.199cqw;
  width: 91.1cqw;
  height: 3.384cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: .07cqw solid rgba(183, 120, 39, .55);
  border-bottom: .07cqw solid rgba(183, 120, 39, .42);
  background: linear-gradient(90deg, rgba(12, 4, 5, .96), rgba(3, 2, 2, .94), rgba(12, 4, 5, .96));
  box-shadow: 0 .5cqw 1cqw #000, inset 0 0 .8cqw rgba(102, 9, 29, .15);
}
.restart-button { position: relative; width: 16.16cqw; height: 3.25cqw; font-size: .8cqw; }
.safe-exit-button { position: relative; width: 16.1cqw; height: 3.25cqw; font-size: .8cqw; }
.footer-note { display: flex; align-items: center; justify-content: center; gap: .65cqw; text-align: center; }
.footer-note img { width: 3.45cqw; height: 3.45cqw; object-fit: contain; }
.footer-note p { margin: 0; color: #a99b92; font-size: .68cqw; line-height: 1.12; letter-spacing: .025em; }
.footer-note b { color: #d2a656; font-size: .77cqw; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.consent-note {
  position: absolute;
  z-index: 30;
  left: 20cqw;
  top: 72.77cqw;
  width: 60cqw;
  margin: 0;
  color: #7f726a;
  font-size: .68cqw;
  letter-spacing: .025em;
  text-align: center;
}

/* Ledger modal. */
.ledger-dialog {
  width: min(92vw, 560px);
  border: 1px solid #bd8540;
  padding: 2rem;
  background: radial-gradient(circle at 50% 0, #360817, #090204 50%, #030102);
  color: var(--ivory);
  text-align: center;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .84), 0 0 60px rgba(190, 12, 55, .66), inset 0 0 30px rgba(112, 10, 36, .32);
}
.ledger-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.ledger-dialog > img { width: 76px; margin: 0 auto; }
.ledger-dialog h2 { margin: .5rem 0 1rem; color: #d7aa59; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.ledger-close { position: absolute; right: .75rem; top: .35rem; border: 0; padding: .35rem .6rem; background: none; color: #e4c478; cursor: pointer; font-size: 1.8rem; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ledger-grid span { border: 1px solid rgba(204, 145, 57, .3); padding: 1rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.ledger-grid b { display: block; color: #ff4b78; font-size: 1.7rem; font-weight: 400; }
.ledger-dialog > p { color: #b5a79e; font-size: .78rem; }

.restart-dialog {
  width: min(92vw, 520px);
  border: 1px solid #bd8540;
  padding: 2rem;
  background: radial-gradient(circle at 50% 0, #360817, #090204 50%, #030102);
  color: var(--ivory);
  text-align: center;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .84), 0 0 60px rgba(190, 12, 55, .66), inset 0 0 30px rgba(112, 10, 36, .32);
}
.restart-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.restart-dialog > img { width: 76px; margin: 0 auto; }
.restart-dialog h2 { margin: .5rem 0 1rem; color: #d7aa59; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.restart-dialog > p { margin: 0 auto 1.5rem; max-width: 32rem; color: #c2b3a9; font-size: .9rem; line-height: 1.5; }
.restart-dialog-actions { display: flex; justify-content: center; gap: 1rem; }
.restart-dialog-actions .plaque-button,
.restart-dialog-actions .image-button { position: relative; width: 190px; height: 52px; font-size: .72rem; }
.restart-dialog-actions .image-button { background-image: url("../images/button-ruby-v25.webp"); }

/* Majesty Flair v25 visual rebuild — fixed to the approved 1448 × 1086 artboard. */
.salon-art {
  background-image: url("../images/salon-cathedral-v25.webp");
  filter: saturate(1.04) contrast(1.08) brightness(.72);
}

.salon-vignette {
  background:
    radial-gradient(ellipse at 50% 44%, transparent 0 29%, rgba(1, 0, 1, .05) 52%, rgba(1, 0, 1, .56) 100%),
    linear-gradient(90deg, rgba(13, 0, 5, .14), transparent 17% 83%, rgba(13, 0, 5, .14)),
    linear-gradient(180deg, rgba(0, 0, 0, .1), transparent 16% 83%, rgba(0, 0, 0, .2));
}

.site-header {
  background: linear-gradient(90deg, rgba(7, 1, 4, .94), rgba(1, 1, 1, .91) 22% 78%, rgba(7, 1, 4, .95));
  border-bottom-color: rgba(157, 101, 39, .42);
}

.brand {
  left: 2.9cqw;
  top: .18cqw;
  width: 10.55cqw;
  height: 4.35cqw;
}

.nav {
  left: 20.25cqw;
  gap: 1.75cqw;
  color: #cfbeb2;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: .78cqw;
  font-weight: 400;
  letter-spacing: .095em;
}

.nav-current { min-width: 5.6cqw; }
.nav-current::before {
  inset: 1.1cqw .1cqw .92cqw;
  clip-path: polygon(12% 0, 88% 0, 100% 28%, 94% 100%, 6% 100%, 0 28%);
  background: linear-gradient(180deg, rgba(43, 3, 15, .65), rgba(5, 2, 3, .92));
  box-shadow: inset 0 0 .5cqw rgba(188, 12, 52, .17);
}

.member-button {
  top: 1.24cqw;
  width: 9.65cqw;
  height: 2.72cqw;
  background: linear-gradient(180deg, rgba(91, 8, 31, .82), rgba(15, 2, 7, .97) 58%, rgba(56, 5, 21, .84));
  font-size: .64cqw;
}

.back-button {
  color: #d8c8b3;
  background:
    linear-gradient(90deg, rgba(90, 35, 14, .25), transparent 13% 87%, rgba(90, 35, 14, .25)),
    linear-gradient(180deg, rgba(12, 5, 5, .97), rgba(3, 2, 2, .98));
}

.game-title > p,
.game-title h1,
.ornate-panel h2,
.mini-label,
.panel-subtitle,
.salon-kicker,
.image-button,
.plaque-button {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}

.game-title h1 {
  margin-top: .04cqw;
  font-size: 2.55cqw;
  letter-spacing: .012em;
  filter: drop-shadow(0 .04cqw .03cqw #5c2d0f);
}

.game-title { padding-top: 2cqw; }
.game-title > p { font-size: 1.08cqw; }
.game-title .title-tagline { color: #c9bbb1; font-size: .86cqw; }
.game-title::before {
  content: "";
  z-index: -1;
  left: 1.1cqw;
  top: -1.55cqw;
  width: 35.3cqw;
  height: 7.1cqw;
  border: 0;
  background: url("../images/title-scrollwork-v25.webp") center / 100% 100% no-repeat;
  opacity: .63;
  transform: none;
  filter: saturate(.78) brightness(.68) drop-shadow(0 0 .25cqw rgba(197, 25, 66, .18));
}
.game-title::after { content: none; }
.title-crown { display: none; }

.game-badges span {
  color: #ad9d92;
  font-size: .64cqw;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .27cqw;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(9, 4, 4, .96), rgba(2, 2, 2, .94));
}

.ornate-panel,
.command-deck {
  background:
    radial-gradient(circle at 50% 0, rgba(75, 10, 28, .09), transparent 42%),
    linear-gradient(155deg, rgba(11, 4, 5, .965), rgba(2, 2, 2, .98));
  border-color: rgba(164, 104, 38, .72);
  box-shadow:
    0 .8cqw 1.55cqw rgba(0, 0, 0, .72),
    inset 0 0 0 .2cqw rgba(1, 1, 1, .82),
    inset 0 0 0 .27cqw rgba(114, 67, 24, .25),
    inset 0 0 1.05cqw rgba(92, 7, 26, .12);
}

.ornate-panel {
  border-color: transparent;
  outline: 0;
  background-image:
    url("../images/panel-frame-v25.webp"),
    radial-gradient(circle at 50% 0, rgba(75, 10, 28, .09), transparent 42%),
    linear-gradient(155deg, rgba(11, 4, 5, .965), rgba(2, 2, 2, .98));
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  box-shadow: 0 .8cqw 1.55cqw rgba(0, 0, 0, .72), inset 0 0 1.05cqw rgba(92, 7, 26, .12);
}

.ornate-panel::before,
.ornate-panel > .corner,
.ornate-panel > .panel-ruby { display: none; }

.panel-inner { padding-top: 1.82cqw; }
.ritual-card .panel-inner { padding-top: 1.88cqw; }
.current-card .panel-inner,
.tribute-card .panel-inner,
.rule-card .panel-inner { padding-top: 1.78cqw; }

.ornate-panel h2,
.mini-label { color: #cda257; font-size: .98cqw; }
.panel-subtitle { color: #d2b87f; }
.ritual-list li,
.ledger-card p,
.current-card p,
.tribute-card p:not(.panel-subtitle),
.rule-card p:not(.panel-subtitle) {
  color: #b9aaa1;
  font-weight: 400;
}

.wheel-zone { z-index: 22; }

.wheel-glow {
  position: absolute;
  z-index: -1;
  left: -.7cqw;
  top: -.9cqw;
  width: 54.2cqw;
  height: 48.1cqw;
  object-fit: contain;
  border-radius: 0;
  background: none;
  filter: saturate(1.32) contrast(1.34) brightness(1.02) drop-shadow(0 0 .72cqw rgba(237, 18, 73, .3));
  animation: halo-breathe 5.8s ease-in-out infinite;
  transform: none;
}

.wheel-glow::before,
.wheel-glow::after { content: none; }

.wheel-shell {
  filter: drop-shadow(0 1.25cqw 1.05cqw rgba(0, 0, 0, .9)) drop-shadow(0 0 .72cqw rgba(208, 21, 64, .22));
}

.wheel-base {
  inset: -1.35%;
  width: 102.7%;
  height: 102.7%;
  filter: sepia(.16) saturate(.96) brightness(.74) contrast(1.11);
}

.wheel-rotor-mask {
  z-index: 4;
  /* closest-side makes these stops match the wheel's true radius. The former
     farthest-corner default placed the mask outside the numbered rotor. */
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, transparent 0 59%, #000 61% 82%, transparent 84%);
  mask-image: radial-gradient(circle closest-side at 50% 50%, transparent 0 59%, #000 61% 82%, transparent 84%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.wheel-rotor img {
  filter: saturate(1.08) brightness(1.02) contrast(1.12) drop-shadow(0 0 .18cqw rgba(236, 188, 94, .32));
}

.wheel-shell.is-spinning .wheel-rotor img {
  filter: saturate(1.14) brightness(1.08) contrast(1.14) drop-shadow(0 0 .28cqw rgba(239, 187, 82, .42));
}

.wheel-center-button {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: 54%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.wheel-center-button:hover:not(:disabled) {
  box-shadow: 0 0 1.1cqw rgba(246, 34, 87, .28), inset 0 0 .8cqw rgba(239, 27, 75, .12);
}

.wheel-center-button:focus-visible {
  outline: .17cqw solid #f4ce7b;
  outline-offset: .28cqw;
  box-shadow: 0 0 1.05cqw #ec1d55;
}

.wheel-center-button:disabled { cursor: not-allowed; }

.wheel-pointer {
  width: 4.55cqw;
  height: 6.72cqw;
  filter: drop-shadow(0 0 .68cqw #ef1d59) drop-shadow(0 .35cqw .28cqw #000);
}

.spin-button {
  color: #e3c576;
  text-shadow: 0 .12cqw .22cqw #000;
}

.spin-button small { color: #ef4a73; }

.stats {
  overflow: hidden;
  clip-path: none;
  border: 0;
  background: transparent url("../images/button-dark-v25.webp") center / 100% 100% no-repeat;
  box-shadow: 0 .55cqw .9cqw rgba(0, 0, 0, .85);
}

.stat-icon {
  align-self: end;
  width: .92cqw;
  height: .92cqw;
  object-fit: contain;
  filter: sepia(1) saturate(1.35) brightness(.94) drop-shadow(0 0 .18cqw rgba(216, 130, 34, .32));
}

.command-deck { background: linear-gradient(110deg, rgba(11, 5, 5, .98), rgba(2, 2, 2, .98) 58%, rgba(24, 4, 10, .94)); }
.command-copy h2,
.current-card h3 {
  scrollbar-width: none;
  font-weight: 400;
}
.command-copy h2::-webkit-scrollbar,
.current-card h3::-webkit-scrollbar { display: none; }
.command-copy h2 { font-size: .66cqw; }
.command-copy { padding-top: 1.45cqw; }
.whisper blockquote { color: #c9b8aa; font-weight: 400; }

.footer-actions {
  left: 5.318cqw;
  width: 89.365cqw;
  background: linear-gradient(90deg, rgba(9, 4, 4, .97), rgba(2, 2, 2, .96), rgba(9, 4, 4, .97));
}

.plaque-button {
  clip-path: none;
  border: 0;
  background: transparent url("../images/button-dark-v25.webp") center / 100% 100% no-repeat;
  box-shadow: none;
}

.plaque-button::before,
.plaque-button::after { display: none; }

.member-button,
.tribute-button {
  clip-path: none;
  border: 0;
  background-color: transparent;
  background-image: url("../images/button-ruby-v25.webp");
  background-size: 100% 100%;
  box-shadow: none;
}

.command-deck {
  border: 0;
  outline: 0;
  background-image: url("../images/button-dark-v25.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 .8cqw 1.5cqw rgba(0, 0, 0, .72);
}

.command-deck::before { display: none; }

/* Decorative artwork never participates in hit-testing. */
.salon-art,
.salon-vignette,
.spark-field,
.salon-kicker,
.game-title,
.wheel-glow,
.wheel-base,
.wheel-rotor-mask,
.roulette-ball-track,
.wheel-pointer,
.wheel-lower-gem,
.stats,
.card-candles,
.deck-crown,
.action-gem,
.command-deck::after,
.footer-note,
.consent-note {
  pointer-events: none;
}

a,
button,
.image-button,
.plaque-button,
.wheel-center-button {
  pointer-events: auto;
  touch-action: manipulation;
}

.ledger-dialog.is-fallback-open,
.restart-dialog.is-fallback-open {
  position: fixed;
  z-index: 1000;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.image-button:focus-visible,
.plaque-button:focus-visible,
.brand:focus-visible,
.nav a:focus-visible,
.house-card:focus-visible {
  outline: .16cqw solid #f1c972;
  outline-offset: .16cqw;
}

@keyframes halo-breathe {
  0%, 100% { opacity: .3; transform: scale(.985); }
  50% { opacity: .48; transform: scale(1.018); }
}

@keyframes ember-rise {
  0% { transform: translateY(8cqw) scale(.45); opacity: 0; }
  18% { opacity: .7; }
  100% { transform: translate(2.2cqw, -78cqw) scale(1.15); opacity: 0; }
}
@keyframes slow-turn { to { rotate: 360deg; } }

/* Explicit mobile composition; the desktop is always uniformly scaled. */
@media (max-width: 1100px) {
  body { background: #040103; }
  .royal-canvas {
    container-type: normal;
    width: 100%;
    min-height: 100vh;
    aspect-ratio: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 24px;
    background: #050104;
  }
  .salon-art { position: fixed; background-size: cover; filter: brightness(.42) saturate(1.05); }
  .salon-vignette { position: fixed; }
  .spark-field { position: fixed; }

  .site-header {
    position: relative;
    flex: 0 0 68px;
    height: 68px;
    border-bottom: 1px solid rgba(208, 150, 63, .45);
  }
  .brand { left: 14px; top: 6px; width: 160px; height: 55px; }
  .nav, .member-button { display: none; }
  .nav-toggle {
    position: absolute;
    display: block;
    right: 14px;
    top: 14px;
    width: 44px;
    height: 40px;
    border: 1px solid rgba(205, 146, 59, .5);
    background: rgba(10, 2, 5, .96);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 1px; margin: 5px auto; background: #e2c993; }
  .mobile-nav.is-open {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
    background: rgba(4, 1, 3, .98);
    box-shadow: 0 14px 30px #000;
  }
  .mobile-nav a { min-height: 44px; display: grid; place-items: center; border: 1px solid rgba(185, 125, 45, .2); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

  .salon-kicker { display: none; }
  .back-button {
    position: relative;
    order: 1;
    left: auto;
    top: auto;
    width: 158px;
    height: 44px;
    margin: 0 14px;
    font-size: 10px;
    border-width: 1px;
  }
  .game-title {
    position: relative;
    order: 2;
    left: auto;
    top: auto;
    width: calc(100% - 24px);
    height: 148px;
    padding-top: 0;
    margin: 0 12px;
  }
  .game-title::before, .game-title::after { display: none; }
  .game-title > p { font-size: 15px; }
  .game-title h1 { font-size: clamp(28px, 8.4vw, 42px); }
  .title-crown { top: -23px; font-size: 22px; }
  .title-ornament { width: 75%; height: 1px; margin: 8px auto 4px; }
  .game-title .title-tagline { font-size: 12px; }
  .game-badges { gap: 4px; margin-top: 10px; }
  .game-badges span { min-width: 0; width: 31%; height: 34px; font-size: 9px; border-width: 1px; }

  .wheel-zone {
    position: relative;
    order: 3;
    left: auto;
    top: auto;
    width: 100%;
    height: min(119vw, 650px);
  }
  .wheel-shell { left: 50%; top: 0; width: min(92vw, 540px); height: min(92vw, 540px); transform: translateX(-50%); }
  .wheel-glow { left: 0; top: -2%; width: 100%; height: min(96vw, 570px); transform: none; }
  .wheel-pointer { left: 50%; top: 0; width: 56px; height: 78px; transform: translateX(-50%); }
  .wheel-lower-gem { left: 50%; top: min(74vw, 435px); width: 38px; height: 54px; transform: translateX(-50%) rotate(180deg); }
  .spin-button { left: 50%; top: min(78vw, 455px); width: min(92vw, 560px); height: min(12.3vw, 75px); transform: translateX(-50%); font-size: clamp(14px, 3.5vw, 20px); }
  .spin-button:hover, .spin-button:focus-visible { transform: translateX(-50%) translateY(-2px); }
  .spin-button small { margin-top: 5px; font-size: clamp(8px, 2.2vw, 12px); }
  .stats { left: 3%; top: auto; bottom: 0; width: 94%; height: 62px; padding: 0 8px; border-width: 1px; }
  .stat { grid-template-columns: 18px auto; grid-template-rows: 22px 20px; border-right-width: 1px; }
  .stat-icon, .stat strong { font-size: 12px; }
  .stat small { font-size: clamp(7px, 1.8vw, 9px); }

  .command-deck {
    position: relative;
    order: 4;
    left: auto;
    top: auto;
    width: calc(100% - 20px);
    height: auto;
    min-height: 330px;
    margin: 0 10px;
    display: grid;
    grid-template-columns: 1fr;
    border-width: 1px;
  }
  .ornate-panel::before { inset: 5px; border-width: 1px; }
  .corner { width: 14px; height: 14px; }
  .corner::before { height: 1px; }
  .corner::after { width: 1px; }
  .deck-crown { left: 50%; top: -13px; font-size: 18px; }
  .command-copy { min-height: 100px; padding: 22px; text-align: center; }
  .mini-label { font-size: 14px; }
  .command-copy small { margin-top: 3px; font-size: 10px; }
  .command-copy h2 { max-height: none; margin-top: 12px; font-size: 12px; }
  .task-actions { min-height: 120px; gap: 40px; }
  .accept-button { width: min(55vw, 300px); height: 58px; font-size: 12px; }
  .skip-button { width: min(35vw, 190px); height: 50px; font-size: 11px; border-width: 1px; }
  .action-gem { top: -8px; width: 34px; height: 136px; }
  .whisper { min-height: 95px; padding: 22px; border-left: 0; border-top: 1px solid rgba(165, 105, 36, .42); text-align: center; }
  .whisper blockquote { margin-top: 9px; font-size: 12px; }

  .right-rail, .left-rail {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 20px);
    margin: 0 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .right-rail { order: 5; }
  .left-rail { order: 6; }
  .ornate-panel:not(.command-deck) { position: relative; left: auto; top: auto; width: 100%; height: auto; min-height: 220px; border-width: 1px; }
  .panel-inner { position: relative; inset: auto; padding: 24px; }
  .ornate-panel h2 { font-size: 15px; }
  .panel-subtitle { margin: 3px 0 10px; font-size: 12px; }
  .panel-ruby { top: -14px; width: 24px; height: 30px; }
  .panel-ruby-large { top: -20px; width: 34px; height: 44px; }
  .current-card h3 { max-height: none; margin: 20px 0; font-size: 16px; }
  .current-card p, .tribute-card p:not(.panel-subtitle), .rule-card p:not(.panel-subtitle), .ledger-card p { font-size: 12px; }
  .gem-rule { width: 75%; height: 16px; margin: 8px auto; }
  .tribute-card { min-height: 275px !important; }
  .card-candles { left: 10px; right: 10px; bottom: 56px; height: 112px; }
  .tribute-button { left: 50%; bottom: 15px; width: 220px; height: 44px; transform: translateX(-50%); font-size: 10px; }
  .tribute-button:hover, .tribute-button:focus-visible { transform: translateX(-50%) translateY(-2px); }
  .rule-card strong { padding-top: 9px; font-size: 10px; border-top-width: 1px; }
  .rule-card strong b { margin-bottom: 5px; font-size: 15px; }
  .ritual-card { min-height: 390px !important; }
  .ritual-list li { grid-template-columns: 34px 1fr; gap: 10px; min-height: 62px; font-size: 12px; }
  .ritual-list b { width: 30px; height: 30px; border-width: 1px; font-size: 10px; }
  .ritual-vow { margin-top: 5px; padding-top: 12px; border-top-width: 1px; font-size: 13px; }
  .ledger-card { min-height: 220px !important; }
  .ledger-button { width: 190px; height: 44px; margin: 18px auto 0; font-size: 10px; border-width: 1px; }
  .house-card { min-height: 160px !important; grid-template-columns: 75px 1fr; padding: 18px 26px; }
  .house-card img { width: 68px; }
  .house-card > span { font-size: 12px; }
  .house-card strong { padding-top: 12px; border-top-width: 1px; font-size: 10px; }

  .footer-actions {
    position: relative;
    order: 7;
    left: auto;
    top: auto;
    width: calc(100% - 20px);
    height: auto;
    min-height: 165px;
    margin: 0 10px;
    padding: 12px;
    flex-wrap: wrap;
    gap: 12px;
    border-width: 1px;
  }
  .restart-button, .safe-exit-button { width: 46%; min-width: 140px; height: 48px; border-width: 1px; font-size: 11px; }
  .footer-note { order: 3; width: 100%; gap: 8px; }
  .footer-note img { width: 46px; height: 46px; }
  .footer-note p { font-size: 10px; }
  .footer-note b { font-size: 11px; }
  .consent-note { position: relative; order: 8; left: auto; top: auto; width: auto; margin: 0 20px; font-size: 10px; line-height: 1.4; }
}

@media (max-width: 520px) {
  .task-actions { flex-direction: column; gap: 8px; padding: 14px 0; }
  .accept-button, .skip-button { width: min(84vw, 310px); }
  .action-gem { display: none; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stat { grid-template-columns: 1fr; grid-template-rows: 20px 20px; }
  .stat-icon { display: none; }
  .restart-button, .safe-exit-button { width: 100%; }
  .restart-dialog { padding: 1.35rem; }
  .restart-dialog-actions { flex-direction: column; align-items: center; }
  .restart-dialog-actions .plaque-button,
  .restart-dialog-actions .image-button { width: min(100%, 280px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* A roulette spin remains visibly functional while being shorter and gentler. */
  .wheel-rotor,
  .roulette-ball-track { animation-duration: 1.05s !important; transition-duration: 1.05s !important; }
}

/* V30: keep the drawn command unmistakable without changing the approved composition. */
.task-signal {
  display: inline-block;
  margin-right: .38em;
  color: #ff376b;
  text-shadow: 0 0 .55cqw rgba(255, 23, 84, .95);
}
.command-deck,
.current-card {
  transition: filter .22s ease, box-shadow .22s ease;
}
@media (min-width: 1101px) {
  .command-deck {
    grid-template-columns: 31cqw 38cqw 1fr;
  }
  .command-copy {
    position: relative;
    align-self: center;
    height: calc(100% - 1.05cqw);
    margin: .52cqw .62cqw;
    padding: .72cqw 1.15cqw .64cqw;
    border: .075cqw solid rgba(223, 159, 64, .62);
    border-left-color: #f12a61;
    border-radius: .2cqw;
    background:
      linear-gradient(100deg, rgba(89, 5, 30, .48), rgba(12, 3, 7, .91) 42%, rgba(3, 2, 2, .88));
    box-shadow:
      inset 0 0 .9cqw rgba(231, 20, 76, .16),
      0 0 .65cqw rgba(231, 20, 76, .16);
  }
  .command-copy .mini-label {
    color: #f2c878;
    font-size: .78cqw;
    font-weight: 600;
    letter-spacing: .12em;
    text-shadow: 0 0 .4cqw rgba(240, 44, 93, .48);
  }
  .command-copy small {
    margin-top: .22cqw;
    color: #ead5c1;
    font-size: .72cqw;
  }
  .command-copy h2 {
    max-height: 3.15cqw;
    margin-top: .42cqw;
    color: #fff5e8;
    font-size: .88cqw;
    line-height: 1.27;
    text-shadow: 0 .08cqw .18cqw #000, 0 0 .4cqw rgba(255, 213, 151, .2);
  }
  .current-card {
    filter: brightness(1.08);
    box-shadow:
      0 .85cqw 1.7cqw rgba(0, 0, 0, .72),
      0 0 1.15cqw rgba(232, 20, 76, .26),
      inset 0 0 1.15cqw rgba(128, 11, 38, .24);
  }
  .current-card h2 {
    color: #f2ca7f;
    font-size: 1.02cqw;
    text-shadow: 0 0 .42cqw rgba(238, 30, 83, .45);
  }
  .current-card h3 {
    color: #fff2df;
    font-size: 1.06cqw;
    line-height: 1.34;
    text-shadow: 0 .08cqw .2cqw #000;
  }
}
.command-deck.task-active,
.current-card.task-active {
  animation: task-ruby-reveal 1.45s ease-out both;
}
.command-deck.is-spinning .command-copy,
.current-card.is-spinning {
  filter: brightness(1.13);
  box-shadow: 0 0 1.15cqw rgba(244, 25, 82, .38), inset 0 0 1cqw rgba(115, 8, 35, .25);
}
@keyframes task-ruby-reveal {
  0% { filter: brightness(1); box-shadow: 0 0 0 rgba(244, 25, 82, 0); }
  34% { filter: brightness(1.34); box-shadow: 0 0 2.25cqw rgba(244, 25, 82, .68), inset 0 0 1.1cqw rgba(125, 8, 36, .28); }
  100% { filter: brightness(1.08); box-shadow: 0 0 1.05cqw rgba(228, 24, 74, .3), inset 0 0 .85cqw rgba(97, 6, 30, .2); }
}
@media (max-width: 1100px) {
  .command-deck {
    min-height: 370px;
    border: 2px solid rgba(215, 150, 55, .76);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .78), 0 0 24px rgba(226, 22, 76, .22);
  }
  .command-copy {
    min-height: 154px;
    margin: 10px;
    padding: 24px 20px;
    border: 1px solid rgba(225, 165, 74, .66);
    border-left: 4px solid #ef255c;
    border-radius: 5px;
    background: linear-gradient(110deg, rgba(91, 5, 31, .55), rgba(9, 3, 6, .94) 62%);
    box-shadow: inset 0 0 22px rgba(231, 20, 76, .16), 0 0 20px rgba(231, 20, 76, .15);
  }
  .command-copy .mini-label {
    color: #f4cc7e;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
  }
  .command-copy small {
    color: #ead5c1;
    font-size: 11px;
  }
  .command-copy h2 {
    max-height: none;
    margin-top: 14px;
    color: #fff7eb;
    font-size: clamp(18px, 4.6vw, 25px);
    line-height: 1.38;
    text-shadow: 0 2px 6px #000;
  }
  .current-card {
    border: 2px solid rgba(215, 150, 55, .76) !important;
    box-shadow: 0 0 25px rgba(229, 20, 75, .28), 0 18px 40px rgba(0, 0, 0, .72);
  }
  .current-card h2 { color: #f4cc7e; font-size: 18px; }
  .current-card h3 { color: #fff4e4; font-size: clamp(18px, 4.5vw, 24px); line-height: 1.4; }
}

