/*
 * Valdremor: plum-obsidian realm UI with rose and molten-gold light, a
 * serif display face in small caps, rune-framed panels and a hotbar dock.
 * System fonts only; no external requests.
 */

/* ---------- tokens ---------- */

:root {
  --vd-bg: #120b16;
  --vd-bg2: #190f1f;
  --vd-panel: #1e1428;
  --vd-panel2: #281b35;
  --vd-line: #3d2c4e;
  --vd-line2: #5b4270;
  --vd-ink: #f7effa;
  --vd-mut: #c3b5d1;
  --vd-dim: #9a8bab;
  --vd-rose: #ff3d8b;
  --vd-rose2: #ff86b6;
  --vd-gold: #ffc94d;
  --vd-gold2: #ffe4a1;
  --vd-jade: #3fe3a6;
  --vd-ice: #93d9ff;
  --vd-up: #6cf0ad;
  --vd-down: #ff9c9c;
  --vd-acc: var(--vd-rose);
  --vd-acc2: var(--vd-rose2);

  --vd-s1: 4px;
  --vd-s2: 8px;
  --vd-s3: 12px;
  --vd-s4: 16px;
  --vd-s5: 24px;
  --vd-s6: 32px;
  --vd-s7: 48px;
  --vd-s8: 64px;
  --vd-r: 14px;
  --vd-r2: 22px;
  --vd-wrap: 1220px;
  --vd-dock: 92px;

  --vd-display: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --vd-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vd-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --vd-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

.vd-body--library {
  --vd-acc: var(--vd-jade);
  --vd-acc2: #9af2cf;
}

/* ---------- base ---------- */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

html.vd-locked,
html.vd-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--vd-dock) + var(--vd-s5));
  background-color: var(--vd-bg);
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(255, 61, 139, .16), transparent 62%),
    radial-gradient(900px 600px at 102% 18%, rgba(255, 201, 77, .09), transparent 60%),
    radial-gradient(1200px 800px at 50% 120%, rgba(120, 60, 170, .18), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 22px);
  background-attachment: fixed;
  color: var(--vd-ink);
  font-family: var(--vd-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--vd-acc2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .16s ease-out;
}

a:hover {
  color: var(--vd-gold2);
}

:focus-visible {
  outline: 2px solid var(--vd-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--vd-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 var(--vd-s3);
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
  font-variant: small-caps;
  letter-spacing: .03em;
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem);
  font-variant: small-caps;
  letter-spacing: .025em;
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0 0 var(--vd-s4);
}

ul,
ol {
  margin: 0 0 var(--vd-s4);
  padding-left: 1.25em;
}

li + li {
  margin-top: var(--vd-s1);
}

button {
  font: inherit;
  color: inherit;
}

.vd-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--vd-gold);
  color: #1b1020;
  padding: 8px 14px;
  border-radius: 8px;
}

.vd-skip:focus {
  left: 12px;
}

.vd-ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vd-wrap,
.vd-main {
  width: min(var(--vd-wrap), calc(100% - 32px));
  margin-inline: auto;
}

.vd-main {
  padding-top: var(--vd-s5);
}

.vd-fine {
  font-size: .86rem;
  color: var(--vd-dim);
}

.vd-lead {
  font-size: 1.12rem;
  color: var(--vd-mut);
  max-width: 64ch;
}

.vd-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vd-gold2);
}

.vd-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--vd-acc);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--vd-acc);
}

/* ---------- compliance strip and top bar ---------- */

.vd-strip {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  padding: 8px 16px;
  line-height: 1.5;
  background: linear-gradient(90deg, #2a0f24, #3a1230 50%, #2a0f24);
  border-bottom: 1px solid rgba(255, 201, 77, .28);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--vd-gold2);
  text-align: center;
}

.vd-strip b {
  background: var(--vd-gold);
  color: #24101c;
  padding: 0 8px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.vd-strip span::before {
  content: "◆";
  color: var(--vd-rose);
  margin-right: 10px;
  font-size: .6rem;
  vertical-align: 2px;
}

.vd-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 11, 22, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--vd-line);
}

.vd-top__in {
  width: min(var(--vd-wrap), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vd-s4);
  min-height: 64px;
}

.vd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--vd-ink);
}

.vd-brand img {
  filter: drop-shadow(0 0 10px rgba(255, 61, 139, .45));
}

.vd-brand__word {
  font-family: var(--vd-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: .1em;
  background: linear-gradient(180deg, var(--vd-gold2), var(--vd-gold) 55%, #e09a2b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vd-hud {
  display: flex;
  align-items: center;
  gap: var(--vd-s3);
}

.vd-hud__clock,
.vd-hud__shards {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--vd-line2);
  border-radius: 999px;
  background: var(--vd-panel);
  font-size: .92rem;
  line-height: 1.2;
}

.vd-hud small {
  color: var(--vd-dim);
  font-size: .76rem;
}

.vd-hud__clock .vd-ico {
  color: var(--vd-ice);
}

.vd-hud__shards {
  text-decoration: none;
  color: var(--vd-ink);
  border-color: rgba(255, 61, 139, .55);
  box-shadow: 0 0 0 1px rgba(255, 61, 139, .12), 0 0 18px rgba(255, 61, 139, .18);
}

.vd-hud__shards .vd-ico {
  color: var(--vd-rose);
}

.vd-hud__n {
  font-family: var(--vd-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- hotbar dock ---------- */

.vd-hotbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 45;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 7px;
  background: rgba(24, 14, 30, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--vd-line2);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.vd-hotbar__slots {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-hotbar__slots li + li {
  margin: 0;
}

.vd-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 84px;
  height: 64px;
  border: 1px solid var(--vd-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #2a1c37, #1c1226);
  color: var(--vd-mut);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--vd-ease), border-color .16s ease-out, color .16s ease-out, box-shadow .16s ease-out;
}

.vd-slot .vd-ico {
  width: 22px;
  height: 22px;
}

.vd-slot__label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.1;
}

.vd-slot__short {
  display: none;
}

.vd-slot__key {
  position: absolute;
  top: 4px;
  left: 7px;
  font-family: var(--vd-mono);
  font-size: .66rem;
  color: var(--vd-dim);
}

.vd-slot:hover {
  color: var(--vd-ink);
  border-color: var(--vd-line2);
  transform: translateY(-2px);
}

.vd-slot.is-on {
  color: var(--vd-ink);
  border-color: var(--vd-gold);
  background: linear-gradient(180deg, #46203f, #2a1430);
  box-shadow: 0 0 0 1px rgba(255, 201, 77, .25), 0 0 22px rgba(255, 61, 139, .35);
}

.vd-slot.is-on .vd-ico {
  color: var(--vd-gold);
}

.vd-slot--pause {
  width: 74px;
  border-color: rgba(255, 61, 139, .6);
  background: linear-gradient(180deg, #4a1530, #2c0f20);
  color: var(--vd-rose2);
}

.vd-slot--pause:hover {
  color: #fff;
}

/* ---------- buttons ---------- */

.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--vd-line2);
  border-radius: 999px;
  background: var(--vd-panel2);
  color: var(--vd-ink);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s var(--vd-ease), box-shadow .16s ease-out, border-color .16s ease-out, background-color .16s ease-out;
}

.vd-btn:hover {
  color: var(--vd-ink);
  transform: translateY(-1px);
  border-color: var(--vd-gold);
}

.vd-btn:active {
  transform: scale(.97);
}

.vd-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.vd-btn--rose {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4d93, #d61f74);
  box-shadow: inset 0 0 0 1px rgba(255, 228, 161, .45), 0 8px 24px rgba(255, 61, 139, .32);
  color: #fff;
}

.vd-btn--rose:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 228, 161, .8), 0 10px 30px rgba(255, 61, 139, .45);
}

.vd-body--library .vd-btn--rose {
  background: linear-gradient(135deg, #3fe3a6, #17a978);
  color: #072217;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 24px rgba(63, 227, 166, .25);
}

.vd-btn--gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--vd-gold2), var(--vd-gold));
  color: #2a1606;
}

.vd-btn--line {
  background: transparent;
}

.vd-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--vd-mut);
}

.vd-btn--even {
  min-width: 140px;
  background: var(--vd-panel2);
  border-color: var(--vd-line2);
}

.vd-btn--wide {
  width: 100%;
}

.vd-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--vd-acc2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- panels ---------- */

.vd-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(40, 27, 53, .92), rgba(28, 19, 38, .92));
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-r);
  padding: var(--vd-s5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.vd-panel::before,
.vd-panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--vd-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 201, 77, .6);
}

.vd-panel::before {
  top: -5px;
  left: 22px;
}

.vd-panel::after {
  bottom: -5px;
  right: 22px;
}

.vd-panel > :last-child {
  margin-bottom: 0;
}

.vd-section {
  margin: var(--vd-s7) 0;
}

.vd-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--vd-s3);
  margin-bottom: var(--vd-s5);
}

.vd-section__head p {
  margin: 0;
  color: var(--vd-mut);
  max-width: 60ch;
}

.vd-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vd-s5);
}

.vd-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vd-s5);
}

.vd-pagehead {
  margin: var(--vd-s5) 0 var(--vd-s6);
  max-width: 820px;
}

.vd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--vd-s3);
  padding: 0;
  list-style: none;
  font-size: .86rem;
  color: var(--vd-dim);
}

.vd-crumbs li + li {
  margin: 0;
}

.vd-crumbs li + li::before {
  content: "◆";
  font-size: .55rem;
  margin-right: 6px;
  vertical-align: 2px;
  color: var(--vd-line2);
}

.vd-crumbs a {
  color: var(--vd-mut);
}

/* ---------- home: realm map ---------- */

.vd-realm {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: var(--vd-s5);
  align-items: start;
}

.vd-realm__intro {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--vd-s4);
}

.vd-realm__intro h1 {
  margin: 0;
}

.vd-realm__intro p {
  margin: 0;
  max-width: 54ch;
  color: var(--vd-mut);
}

.vd-map {
  position: relative;
  border-radius: var(--vd-r2);
  overflow: hidden;
  border: 1px solid var(--vd-line2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 201, 77, .05);
  background: #0c0710;
}

.vd-map > img {
  width: 100%;
  aspect-ratio: 1600 / 870;
  object-fit: cover;
}

.vd-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(12, 7, 16, .55));
}

.vd-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  text-decoration: none;
  color: #2a1606;
}

.vd-pin__gem {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--vd-gold2), var(--vd-gold));
  border: 2px solid #2a1606;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(255, 201, 77, .3), 0 6px 14px rgba(0, 0, 0, .6);
  transition: transform .18s var(--vd-ease), box-shadow .18s ease-out;
}

.vd-pin__gem b {
  transform: rotate(-45deg);
  font-family: var(--vd-display);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}

.vd-pin--library .vd-pin__gem {
  background: linear-gradient(135deg, #b5f7dc, var(--vd-jade));
}

.vd-pin--care .vd-pin__gem,
.vd-pin--keep .vd-pin__gem {
  background: linear-gradient(135deg, #ffd0e3, var(--vd-rose2));
}

.vd-pin__label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 11, 22, .92);
  border: 1px solid var(--vd-line2);
  color: var(--vd-ink);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease-out, transform .16s var(--vd-ease);
}

.vd-pin:hover .vd-pin__gem,
.vd-pin:focus-visible .vd-pin__gem,
.vd-pin.is-on .vd-pin__gem {
  transform: rotate(45deg) scale(1.15);
  box-shadow: 0 0 0 4px rgba(255, 61, 139, .55), 0 0 26px rgba(255, 61, 139, .7);
}

.vd-pin:hover .vd-pin__label,
.vd-pin:focus-visible .vd-pin__label,
.vd-pin.is-on .vd-pin__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vd-pin--colossus-gate { left: 23%; top: 24%; }
.vd-pin--mirror-runes { left: 44%; top: 10%; }
.vd-pin--drake-hoard { left: 72.5%; top: 26%; }
.vd-pin--gapwatch { left: 30%; top: 49%; }
.vd-pin--iron-warden { left: 21%; top: 68%; }
.vd-pin--three-moons { left: 50%; top: 82%; }
.vd-pin--watchfire-75 { left: 76.5%; top: 43%; }
.vd-pin--library { left: 83%; top: 70%; }
.vd-pin--care { left: 60.5%; top: 69%; }
.vd-pin--keep { left: 54%; top: 42%; }

.vd-quest {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--vd-s4);
}

.vd-quest__art {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--vd-s4);
  align-items: center;
}

.vd-quest__art img {
  border-radius: 12px;
  border: 1px solid var(--vd-line2);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.vd-quest h2 {
  margin: 4px 0 0;
}

.vd-quest__pitch {
  color: var(--vd-mut);
  margin: 0;
}

.vd-meters {
  display: grid;
  gap: 8px;
  margin: 0;
}

.vd-meters div {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 10px;
}

.vd-meters dt {
  font-size: .82rem;
  color: var(--vd-dim);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vd-meters dd {
  margin: 0;
  display: flex;
  gap: 5px;
}

.vd-meters i {
  width: 14px;
  height: 14px;
  transform: rotate(45deg) scale(.8);
  background: var(--vd-line);
  border-radius: 2px;
}

.vd-meters i.is-on {
  background: var(--vd-rose);
  box-shadow: 0 0 8px rgba(255, 61, 139, .6);
}

.vd-quest__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vd-s2);
}

.vd-travel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--vd-s4);
  margin-top: var(--vd-s5);
}

.vd-stat {
  padding: var(--vd-s4) var(--vd-s5);
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-r);
  background: rgba(30, 20, 40, .75);
}

.vd-stat b {
  display: block;
  font-family: var(--vd-mono);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--vd-gold2);
}

.vd-stat span {
  font-size: .86rem;
  color: var(--vd-dim);
}

/* districts */

.vd-district {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--vd-s5);
  padding: var(--vd-s5);
  margin-bottom: var(--vd-s5);
}

.vd-district__name {
  border-right: 1px solid var(--vd-line);
  padding-right: var(--vd-s5);
}

.vd-district__name p {
  color: var(--vd-mut);
  font-size: .95rem;
}

.vd-hallrows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--vd-s3);
}

.vd-hallrows li + li {
  margin: 0;
}

.vd-hallrow {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: var(--vd-s4);
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--vd-ink);
  transition: border-color .16s ease-out, background-color .16s ease-out;
}

.vd-hallrow:hover {
  color: var(--vd-ink);
  border-color: var(--vd-line2);
  background: rgba(255, 255, 255, .03);
}

.vd-hallrow img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.vd-hallrow b {
  font-family: var(--vd-display);
  font-size: 1.2rem;
  font-variant: small-caps;
  letter-spacing: .03em;
}

.vd-hallrow span {
  display: block;
  color: var(--vd-mut);
  font-size: .93rem;
}

.vd-hallrow em {
  font-style: normal;
  font-size: .8rem;
  color: var(--vd-gold2);
  border: 1px solid rgba(255, 201, 77, .35);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* house rules */

.vd-rules {
  counter-reset: rule;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vd-s4);
}

.vd-rules li + li {
  margin: 0;
}

.vd-rules li {
  counter-increment: rule;
  position: relative;
  padding: var(--vd-s5) var(--vd-s5) var(--vd-s4) 64px;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-r);
  background: rgba(30, 20, 40, .65);
}

.vd-rules li::before {
  content: counter(rule, upper-roman);
  position: absolute;
  left: 18px;
  top: 22px;
  width: 32px;
  font-family: var(--vd-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--vd-gold);
  text-align: center;
}

.vd-rules b {
  display: block;
  margin-bottom: 4px;
}

.vd-rules p {
  margin: 0;
  font-size: .95rem;
  color: var(--vd-mut);
}

/* teasers */

.vd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vd-s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-cards li + li {
  margin: 0;
}

.vd-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--vd-s5);
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-r);
  background: rgba(30, 20, 40, .7);
  color: var(--vd-ink);
  text-decoration: none;
  transition: border-color .16s ease-out, transform .16s var(--vd-ease);
}

.vd-card-link:hover {
  color: var(--vd-ink);
  border-color: var(--vd-acc);
  transform: translateY(-2px);
}

.vd-card-link img {
  border-radius: 10px;
  margin-bottom: var(--vd-s4);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vd-card-link strong {
  font-family: var(--vd-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.vd-card-link span {
  color: var(--vd-mut);
  font-size: .95rem;
}

.vd-libband {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--vd-s6);
  align-items: center;
  padding: var(--vd-s6);
  border-radius: var(--vd-r2);
  border: 1px solid rgba(63, 227, 166, .35);
  background: linear-gradient(120deg, rgba(20, 60, 48, .55), rgba(30, 20, 40, .9));
}

.vd-libband img {
  border-radius: var(--vd-r);
}

.vd-libband .vd-tag::before {
  background: var(--vd-jade);
  box-shadow: 0 0 10px var(--vd-jade);
}

/* FAQ */

.vd-faq {
  display: grid;
  gap: var(--vd-s3);
  max-width: 900px;
}

.vd-faq details {
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-r);
  background: rgba(30, 20, 40, .7);
  padding: 0 var(--vd-s5);
}

.vd-faq summary {
  cursor: pointer;
  padding: var(--vd-s4) 0;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--vd-s4);
}

.vd-faq summary::-webkit-details-marker {
  display: none;
}

.vd-faq summary::after {
  content: "+";
  font-family: var(--vd-mono);
  color: var(--vd-gold);
}

.vd-faq details[open] summary::after {
  content: "−";
}

.vd-faq details p {
  color: var(--vd-mut);
}

/* ---------- halls index ---------- */

.vd-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.vd-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-r);
  background: rgba(30, 20, 40, .7);
}

.vd-compare th,
.vd-compare td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--vd-line);
  vertical-align: top;
}

.vd-compare thead th {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vd-dim);
}

.vd-compare tbody tr:last-child > * {
  border-bottom: 0;
}

.vd-compare td.is-num,
.vd-compare th.is-num {
  font-family: var(--vd-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.vd-hallgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--vd-s5);
  margin: 0 0 var(--vd-s5);
  padding: 0;
  list-style: none;
}

.vd-hallgrid li + li {
  margin: 0;
}

.vd-hallcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--vd-r);
  overflow: hidden;
  border: 1px solid var(--vd-line);
  background: var(--vd-panel);
  color: var(--vd-ink);
  text-decoration: none;
  transition: transform .18s var(--vd-ease), border-color .18s ease-out, box-shadow .18s ease-out;
}

.vd-hallcard:hover {
  color: var(--vd-ink);
  transform: translateY(-3px);
  border-color: var(--vd-gold);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 61, 139, .2);
}

.vd-hallcard img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.vd-hallcard__body {
  padding: var(--vd-s4) var(--vd-s4) var(--vd-s5);
}

.vd-hallcard strong {
  display: block;
  font-family: var(--vd-display);
  font-size: 1.25rem;
  font-variant: small-caps;
}

.vd-hallcard span {
  display: block;
  font-size: .92rem;
  color: var(--vd-mut);
}

/* ---------- hall page ---------- */

.vd-hallhead {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--vd-s5);
  align-items: end;
  padding: var(--vd-s6);
  margin-bottom: var(--vd-s5);
  border-radius: var(--vd-r2);
  overflow: hidden;
  border: 1px solid var(--vd-line2);
  background-color: var(--vd-panel);
  background-size: cover;
  background-position: center;
}

.vd-hallhead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 11, 22, .92), rgba(18, 11, 22, .55));
}

.vd-hallhead > * {
  position: relative;
}

.vd-hallhead > img {
  border-radius: 12px;
  border: 1px solid rgba(255, 228, 161, .4);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .5);
}

.vd-hallhead h1 {
  margin: 6px 0 8px;
}

.vd-hallhead p {
  margin: 0;
  color: var(--vd-mut);
  max-width: 62ch;
}

.vd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--vd-s3) 0 0;
  padding: 0;
  list-style: none;
}

.vd-chips li + li {
  margin: 0;
}

.vd-chips li {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--vd-line2);
  background: rgba(18, 11, 22, .6);
  font-size: .84rem;
  color: var(--vd-ink);
}

.vd-bg--colossus-gate { background-image: url("../img/stage/colossus-gate.webp"); }
.vd-bg--mirror-runes { background-image: url("../img/stage/mirror-runes.webp"); }
.vd-bg--drake-hoard { background-image: url("../img/stage/drake-hoard.webp"); }
.vd-bg--gapwatch { background-image: url("../img/stage/gapwatch.webp"); }
.vd-bg--iron-warden { background-image: url("../img/stage/iron-warden.webp"); }
.vd-bg--three-moons { background-image: url("../img/stage/three-moons.webp"); }
.vd-bg--watchfire-75 { background-image: url("../img/stage/watchfire-75.webp"); }

.vd-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--vd-s5);
  align-items: start;
}

.vd-stage {
  position: relative;
  padding: var(--vd-s5);
  border-radius: var(--vd-r2);
  border: 1px solid var(--vd-line2);
  background-color: #170e1c;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.vd-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 11, 22, .45), rgba(18, 11, 22, .82));
}

.vd-stage.is-up {
  box-shadow: 0 0 0 1px rgba(108, 240, 173, .35);
}

.vd-feature {
  min-height: 1.4em;
  margin: 0 0 var(--vd-s2);
  text-align: center;
  font-weight: 650;
  color: var(--vd-gold2);
}

.vd-verdict {
  min-height: 3.2em;
  margin: var(--vd-s4) 0;
  padding: var(--vd-s3) var(--vd-s4);
  border-radius: 12px;
  background: rgba(18, 11, 22, .78);
  border: 1px solid var(--vd-line);
  font-size: .98rem;
}

.vd-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--vd-s3);
}

.vd-stake {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--vd-line2);
  background: rgba(18, 11, 22, .85);
}

.vd-stake button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--vd-line2);
  background: var(--vd-panel2);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .12s var(--vd-ease), border-color .14s ease-out;
}

.vd-stake button:hover:not(:disabled) {
  border-color: var(--vd-gold);
}

.vd-stake button:active:not(:disabled) {
  transform: scale(.94);
}

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

.vd-stake output {
  min-width: 92px;
  text-align: center;
  font-family: var(--vd-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vd-stake small {
  display: block;
  font-family: var(--vd-sans);
  font-weight: 400;
  font-size: .7rem;
  color: var(--vd-dim);
}

.vd-btn--go {
  min-width: 170px;
  min-height: 52px;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.vd-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vd-s3);
  justify-content: center;
}

.vd-lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: var(--vd-s5);
  background: rgba(18, 11, 22, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
}

.vd-lock[hidden] {
  display: none;
}

.vd-lock > div {
  max-width: 420px;
}

.vd-lock .vd-ico {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--vd-s3);
  color: var(--vd-rose2);
}

.vd-paused .vd-slot--pause {
  border-color: var(--vd-gold);
  color: var(--vd-gold2);
}

/* reels */

.vd-grid {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 6, 14, .72);
  border: 1px solid rgba(255, 201, 77, .28);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .6);
}

.vd-grid--5x3 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
}

.vd-grid--5x4 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
}

.vd-reel {
  display: contents;
}

.vd-cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(80, 52, 104, .7), rgba(30, 20, 40, .85));
  border: 1px solid rgba(255, 255, 255, .05);
}

.vd-cell img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: opacity .18s ease-out, transform .22s var(--vd-ease);
}

.vd-reel.is-spinning > .vd-cell img {
  opacity: .12;
  transform: translateY(14%) scale(.9);
}

.vd-cell.is-hit {
  border-color: var(--vd-gold);
  box-shadow: 0 0 0 1px var(--vd-gold), 0 0 18px rgba(255, 201, 77, .45);
}

.vd-cell.is-mirror {
  border-color: rgba(147, 217, 255, .6);
}

.vd-cell.is-colossal img {
  opacity: 0;
}

.vd-colossal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 2px solid var(--vd-gold);
  background: radial-gradient(circle at 50% 40%, rgba(120, 60, 120, .85), rgba(30, 20, 40, .95));
  box-shadow: 0 0 28px rgba(255, 201, 77, .4);
}

.vd-colossal img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.vd-hoard {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: var(--vd-s5);
  background: rgba(12, 18, 14, .92);
}

.vd-hoard[hidden] {
  display: none;
}

.vd-hoard__in {
  width: min(460px, 100%);
  text-align: center;
}

.vd-hoard__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--vd-s3);
  margin: var(--vd-s4) 0;
}

.vd-chest {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--vd-line2);
  background: var(--vd-panel2);
  cursor: pointer;
  transition: transform .14s var(--vd-ease), border-color .14s ease-out;
}

.vd-chest:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--vd-gold);
}

.vd-chest img {
  width: 70%;
}

.vd-chest b {
  position: absolute;
  bottom: 6px;
  font-family: var(--vd-mono);
  font-size: 1.1rem;
  color: var(--vd-gold2);
}

.vd-chest.is-open {
  border-color: var(--vd-gold);
  background: #3a2a14;
}

.vd-chest.is-shown {
  opacity: .5;
}

/* cards */

.vd-card {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 100px;
  border-radius: 9px;
  background: linear-gradient(160deg, #fffaf2, #efe3d2);
  color: #1d1424;
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  animation: vd-deal .22s var(--vd-ease);
}

.vd-card b {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--vd-display);
  font-size: 1.15rem;
  line-height: 1;
}

.vd-card i {
  font-style: normal;
  font-size: 2rem;
  line-height: 1;
}

.vd-card.is-red {
  color: #c81e5d;
}

.vd-card.is-down {
  background:
    repeating-linear-gradient(45deg, rgba(255, 201, 77, .25) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, #5a1a40, #2a0f24);
  border-color: rgba(255, 201, 77, .5);
}

@keyframes vd-deal {
  from { opacity: 0; transform: translateY(-10px) scale(.95); }
  to { opacity: 1; transform: none; }
}

.vd-table {
  display: grid;
  gap: var(--vd-s4);
  justify-items: center;
  padding: var(--vd-s5) var(--vd-s3);
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(70, 20, 60, .8), rgba(18, 11, 22, .85));
  border: 1px solid rgba(255, 201, 77, .3);
}

.vd-towers {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: var(--vd-s5);
}

.vd-towers__mid {
  padding: 10px;
  border: 1px dashed rgba(255, 201, 77, .5);
  border-radius: 14px;
}

.vd-spread {
  margin: 0;
  min-height: 1.5em;
  color: var(--vd-gold2);
  font-weight: 600;
  text-align: center;
}

.vd-ladder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-ladder li + li {
  margin: 0;
}

.vd-ladder li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--vd-line2);
  font-size: .84rem;
  color: var(--vd-mut);
}

.vd-ladder li.is-on {
  border-color: var(--vd-gold);
  color: var(--vd-ink);
  background: rgba(255, 201, 77, .15);
}

.vd-row5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.vd-rowlabel {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vd-dim);
}

.vd-readout {
  margin: 0;
  min-height: 1.5em;
  text-align: center;
  font-weight: 600;
}

/* three moons */

.vd-moons {
  display: flex;
  justify-content: center;
  gap: var(--vd-s5);
}

.vd-die {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas: "tl . tr" "ml mm mr" "bl . br";
  width: 92px;
  height: 92px;
  padding: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6fb, #e3cfe6 45%, #9d84b4);
  box-shadow: 0 0 0 2px rgba(255, 228, 161, .5), 0 10px 26px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 134, 182, .25);
  transition: transform .3s var(--vd-ease), opacity .3s ease-out;
}

.vd-die i {
  width: 14px;
  height: 14px;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6e4b86, #2f1a3d);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
}

.vd-die .at-tl { grid-area: tl; }
.vd-die .at-tr { grid-area: tr; }
.vd-die .at-ml { grid-area: ml; }
.vd-die .at-mm { grid-area: mm; }
.vd-die .at-mr { grid-area: mr; }
.vd-die .at-bl { grid-area: bl; }
.vd-die .at-br { grid-area: br; }

.vd-die.is-rolling {
  transform: rotate(160deg) scale(.9);
  opacity: .55;
}

.vd-die.is-match {
  box-shadow: 0 0 0 3px var(--vd-gold), 0 0 34px rgba(255, 201, 77, .6);
}

.vd-calls {
  display: grid;
  gap: var(--vd-s3);
}

.vd-calls__group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.vd-calls__group p {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vd-dim);
}

.vd-call {
  min-width: 52px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--vd-line2);
  background: rgba(18, 11, 22, .8);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.2;
  transition: border-color .14s ease-out, background-color .14s ease-out;
}

.vd-call small {
  display: block;
  font-size: .72rem;
  color: var(--vd-dim);
}

.vd-call[aria-pressed="true"] {
  border-color: var(--vd-gold);
  background: rgba(255, 61, 139, .22);
  box-shadow: 0 0 14px rgba(255, 61, 139, .3);
}

.vd-picked {
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: var(--vd-gold2);
}

/* watchfire 75 */

.vd-beacon {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: var(--vd-s5);
  align-items: start;
}

.vd-bcard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 10px;
  border-radius: 16px;
  background: #fff4e6;
  color: #2a1606;
  box-shadow: 0 0 0 3px rgba(255, 201, 77, .45), 0 18px 32px rgba(0, 0, 0, .5);
}

.vd-bcard__h {
  text-align: center;
  font-family: var(--vd-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #c81e5d;
}

.vd-spot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4e2c9;
  font-family: var(--vd-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color .16s ease-out, color .16s ease-out;
}

.vd-spot.is-marked {
  background: #ff5f9d;
  color: #fff;
}

.vd-spot.is-hit {
  background: #d4182f;
  box-shadow: 0 0 0 2px var(--vd-gold);
}

.vd-callboard {
  display: grid;
  gap: var(--vd-s3);
}

.vd-callboard__count {
  margin: 0;
  font-family: var(--vd-mono);
  color: var(--vd-gold2);
}

.vd-orbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 120px;
}

.vd-orbs li + li {
  margin: 0;
}

.vd-orbs li {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe8b0, #ff9a3c 60%, #c4501a);
  color: #2a1606;
  font-family: var(--vd-mono);
  font-size: .78rem;
  font-weight: 700;
  animation: vd-orb .2s var(--vd-ease);
}

@keyframes vd-orb {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: none; }
}

.vd-legend {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.vd-legend th,
.vd-legend td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--vd-line);
  text-align: left;
}

.vd-legend td {
  text-align: right;
  font-family: var(--vd-mono);
}

.vd-legend tr.is-on {
  background: rgba(255, 201, 77, .16);
}

/* side sheet */

.vd-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--vd-s4);
}

.vd-sheet {
  display: grid;
  gap: 6px;
  margin: 0;
}

.vd-sheet div {
  display: flex;
  justify-content: space-between;
  gap: var(--vd-s3);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--vd-line);
}

.vd-sheet dt {
  color: var(--vd-mut);
  font-size: .92rem;
}

.vd-sheet dd {
  margin: 0;
  font-family: var(--vd-mono);
  font-variant-numeric: tabular-nums;
}

.vd-sheet--modal {
  margin: var(--vd-s4) 0;
  text-align: left;
}

.vd-chronicle {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}

.vd-chronicle li {
  display: flex;
  justify-content: space-between;
  gap: var(--vd-s3);
  padding: 6px 0;
  border-bottom: 1px solid var(--vd-line);
  color: var(--vd-mut);
}

.vd-chronicle li + li {
  margin: 0;
}

.vd-chronicle b {
  font-family: var(--vd-mono);
  font-weight: 600;
  color: var(--vd-ink);
}

.vd-chronicle li.is-up b {
  color: var(--vd-up);
}

.vd-chronicle li.is-down b {
  color: var(--vd-down);
}

.vd-side h2 {
  font-size: 1.15rem;
}

/* hall reading */

.vd-hallread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--vd-s5);
  margin-top: var(--vd-s6);
  align-items: start;
}

.vd-prose {
  max-width: 70ch;
}

.vd-prose h2 {
  margin-top: var(--vd-s6);
}

.vd-prose h2:first-child {
  margin-top: 0;
}

.vd-prose p,
.vd-prose li {
  color: #e6dced;
}

.vd-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 var(--vd-s4);
}

.vd-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--vd-s3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--vd-line);
}

.vd-facts dt {
  color: var(--vd-dim);
  font-size: .9rem;
}

.vd-facts dd {
  margin: 0;
}

.vd-paytable {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin-bottom: var(--vd-s4);
}

.vd-paytable caption {
  text-align: left;
  color: var(--vd-mut);
  font-size: .88rem;
  padding-bottom: 8px;
}

.vd-paytable th,
.vd-paytable td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--vd-line);
  text-align: left;
}

.vd-paytable td {
  font-family: var(--vd-mono);
  font-variant-numeric: tabular-nums;
}

.vd-paytable thead th {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vd-dim);
}

.vd-paytable img {
  display: inline-block;
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin-right: 8px;
}

.vd-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--vd-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-rail li + li {
  margin: 0;
}

.vd-rail a {
  display: block;
  text-decoration: none;
  color: var(--vd-ink);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}

.vd-rail img {
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid var(--vd-line);
  transition: transform .16s var(--vd-ease), border-color .16s ease-out;
}

.vd-rail a:hover img {
  transform: translateY(-2px);
  border-color: var(--vd-gold);
}

/* ---------- atlas ---------- */

.vd-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--vd-s5);
  align-items: start;
}

.vd-fogmap .vd-pin.is-fog .vd-pin__gem {
  background: #3a2d48;
  border-color: #5b4270;
  color: var(--vd-mut);
  box-shadow: none;
}

.vd-fogmap > img {
  filter: saturate(.55) brightness(.62);
}

.vd-renown__rank {
  font-family: var(--vd-display);
  font-size: 2.2rem;
  font-variant: small-caps;
  color: var(--vd-gold2);
  margin: 0;
}

.vd-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--vd-line);
  overflow: hidden;
  margin: var(--vd-s3) 0;
}

.vd-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--vd-rose), var(--vd-gold));
  transition: transform .4s var(--vd-ease);
}

.vd-seals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--vd-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-seals li + li {
  margin: 0;
}

.vd-seal {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--vd-line);
  background: rgba(30, 20, 40, .7);
  opacity: .55;
}

.vd-seal .vd-ico {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 50%;
  border: 1px solid var(--vd-line2);
  color: var(--vd-dim);
}

.vd-seal b {
  display: block;
  font-size: .95rem;
}

.vd-seal span {
  font-size: .8rem;
  color: var(--vd-dim);
}

.vd-seal.is-won {
  opacity: 1;
  border-color: rgba(255, 201, 77, .5);
}

.vd-seal.is-won .vd-ico {
  color: #2a1606;
  background: linear-gradient(135deg, var(--vd-gold2), var(--vd-gold));
  border-color: transparent;
}

/* ---------- player care ---------- */

.vd-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vd-s5);
}

.vd-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--vd-s3) 0;
}

.vd-choice button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--vd-line2);
  background: rgba(18, 11, 22, .7);
  cursor: pointer;
  transition: border-color .14s ease-out, background-color .14s ease-out;
}

.vd-choice button[aria-pressed="true"] {
  border-color: var(--vd-gold);
  background: rgba(255, 61, 139, .25);
}

.vd-status {
  margin: 0;
  font-size: .9rem;
  color: var(--vd-gold2);
  min-height: 1.4em;
}

.vd-quiz {
  counter-reset: q;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--vd-s3);
}

.vd-quiz li + li {
  margin: 0;
}

.vd-quiz li {
  counter-increment: q;
  padding: var(--vd-s4);
  border: 1px solid var(--vd-line);
  border-radius: 12px;
  background: rgba(30, 20, 40, .6);
}

.vd-quiz fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.vd-quiz legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
}

.vd-quiz legend::before {
  content: counter(q) ". ";
  color: var(--vd-gold);
}

.vd-quiz label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 14px 6px 0;
  font-size: .94rem;
  color: var(--vd-mut);
  cursor: pointer;
}

.vd-quiz input {
  accent-color: var(--vd-rose);
  width: 18px;
  height: 18px;
}

.vd-result {
  margin-top: var(--vd-s4);
  padding: var(--vd-s4) var(--vd-s5);
  border-radius: 12px;
  border: 1px solid var(--vd-gold);
  background: rgba(255, 201, 77, .08);
}

.vd-result[hidden] {
  display: none;
}

.vd-helplist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vd-s3);
}

.vd-helplist li + li {
  margin: 0;
}

.vd-helplist li {
  padding: var(--vd-s4);
  border: 1px solid var(--vd-line);
  border-radius: 12px;
  background: rgba(30, 20, 40, .65);
}

.vd-helplist b {
  display: block;
}

.vd-helplist span {
  color: var(--vd-mut);
  font-size: .94rem;
}

/* ---------- library ---------- */

.vd-libhero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 360px;
  padding: var(--vd-s6);
  border-radius: var(--vd-r2);
  overflow: hidden;
  border: 1px solid rgba(63, 227, 166, .35);
  margin-bottom: var(--vd-s6);
}

.vd-libhero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-libhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 16, 14, .94) 10%, rgba(10, 16, 14, .5));
}

.vd-libhero > div {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.vd-libhero .vd-tag::before,
.vd-body--library .vd-tag::before {
  background: var(--vd-jade);
  box-shadow: 0 0 10px var(--vd-jade);
}

.vd-libnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--vd-s5);
  padding: 0;
  list-style: none;
}

.vd-libnav li + li {
  margin: 0;
}

.vd-libnav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(63, 227, 166, .35);
  color: var(--vd-ink);
  text-decoration: none;
  font-size: .9rem;
}

.vd-libnav a[aria-current="page"],
.vd-libnav a:hover {
  border-color: var(--vd-jade);
  background: rgba(63, 227, 166, .12);
  color: var(--vd-ink);
}

.vd-desk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vd-s5);
  margin-bottom: var(--vd-s6);
}

.vd-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vd-filter button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(63, 227, 166, .35);
  background: rgba(10, 16, 14, .6);
  cursor: pointer;
  transition: border-color .14s ease-out, background-color .14s ease-out;
}

.vd-filter button[aria-pressed="true"] {
  border-color: var(--vd-jade);
  background: rgba(63, 227, 166, .2);
}

.vd-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vd-s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-shelf > li + li {
  margin: 0;
}

.vd-shelf > li[hidden] {
  display: none;
}

.vd-index {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  height: 100%;
  border-radius: var(--vd-r);
  overflow: hidden;
  border: 1px solid rgba(63, 227, 166, .28);
  background: linear-gradient(180deg, rgba(22, 36, 31, .9), rgba(20, 22, 26, .92));
}

.vd-index > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-index__body {
  padding: var(--vd-s4) var(--vd-s5) var(--vd-s5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vd-index__no {
  margin: 0;
  font-family: var(--vd-mono);
  font-size: .78rem;
  color: var(--vd-jade);
  letter-spacing: .1em;
}

.vd-index h3 {
  margin: 0;
}

.vd-index h3 a {
  color: var(--vd-ink);
  text-decoration: none;
}

.vd-index h3 a:hover {
  color: var(--vd-jade);
}

.vd-index p {
  margin: 0;
  color: var(--vd-mut);
  font-size: .95rem;
}

.vd-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 6px 0;
  font-size: .86rem;
}

.vd-mini dt {
  color: var(--vd-dim);
}

.vd-mini dd {
  margin: 0;
}

.vd-score {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.vd-score i {
  width: 11px;
  height: 11px;
  transform: rotate(45deg) scale(.85);
  background: var(--vd-line2);
}

.vd-score i.is-on {
  background: var(--vd-jade);
}

.vd-index__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.vd-index__acts .vd-btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: .92rem;
}

.vd-slip {
  border-style: dashed;
  border-color: rgba(63, 227, 166, .45);
}

.vd-slip ol {
  margin: var(--vd-s3) 0 0;
}

.vd-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--vd-s5);
  align-items: start;
}

.vd-review__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--vd-s5);
  align-items: center;
  margin-bottom: var(--vd-s6);
}

.vd-review__head img {
  border-radius: var(--vd-r2);
  border: 1px solid rgba(63, 227, 166, .3);
}

/* ---------- forms ---------- */

.vd-form {
  display: grid;
  gap: var(--vd-s4);
}

.vd-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.vd-form input[type="text"],
.vd-form input[type="email"],
.vd-form select,
.vd-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--vd-line2);
  background: rgba(12, 7, 16, .8);
  color: var(--vd-ink);
  font: inherit;
  font-weight: 400;
}

.vd-form input:focus,
.vd-form select:focus,
.vd-form textarea:focus {
  outline: 2px solid var(--vd-gold);
  outline-offset: 1px;
}

.vd-form .vd-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--vd-mut);
}

.vd-form .vd-check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--vd-rose);
}

.vd-err {
  color: var(--vd-down);
  font-weight: 400;
  font-size: .88rem;
}

.vd-notice {
  padding: var(--vd-s3) var(--vd-s4);
  border-radius: 10px;
}

.vd-notice--ok {
  border: 1px solid var(--vd-up);
  background: rgba(108, 240, 173, .08);
}

.vd-notice--bad {
  border: 1px solid var(--vd-down);
  background: rgba(255, 156, 156, .08);
}

.vd-address {
  font-style: normal;
}

/* ---------- footer ---------- */

.vd-foot {
  margin-top: var(--vd-s8);
  border-top: 1px solid var(--vd-line);
  background: linear-gradient(180deg, rgba(25, 15, 31, .6), rgba(12, 7, 16, .95));
}

.vd-foot__notice,
.vd-foot__grid,
.vd-foot__base {
  width: min(var(--vd-wrap), calc(100% - 32px));
  margin-inline: auto;
}

.vd-foot__notice {
  padding: var(--vd-s5) 0;
  border-bottom: 1px solid var(--vd-line);
  font-size: .95rem;
}

.vd-foot__notice p:last-child {
  margin: 0;
  color: var(--vd-mut);
}

.vd-foot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  gap: var(--vd-s5);
  padding: var(--vd-s6) 0;
}

.vd-foot__h {
  font-family: var(--vd-display);
  font-variant: small-caps;
  font-size: 1.05rem;
  letter-spacing: .05em;
  color: var(--vd-gold2);
  margin-bottom: var(--vd-s3);
}

.vd-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .93rem;
}

.vd-foot li + li {
  margin-top: 6px;
}

.vd-foot a {
  color: var(--vd-mut);
}

.vd-foot a:hover {
  color: var(--vd-gold2);
}

.vd-foot__help li {
  color: var(--vd-dim);
}

.vd-foot__base {
  padding: var(--vd-s4) 0 var(--vd-s5);
  border-top: 1px solid var(--vd-line);
  font-size: .86rem;
  color: var(--vd-dim);
}

.vd-foot__base p {
  margin: 0 0 6px;
}

/* ---------- overlays ---------- */

.vd-gate,
.vd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--vd-s4);
  background: rgba(8, 4, 10, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.vd-gate[hidden],
.vd-modal[hidden],
.vd-consent[hidden] {
  display: none;
}

.vd-gate {
  z-index: 90;
}

.vd-gate__card,
.vd-modal__card {
  width: min(520px, 100%);
  padding: var(--vd-s6);
  border-radius: var(--vd-r2);
  border: 1px solid var(--vd-line2);
  background: linear-gradient(180deg, #2a1b37, #1a1022);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 201, 77, .12);
  text-align: center;
  animation: vd-rise .22s var(--vd-ease);
}

.vd-gate__card img {
  margin: 0 auto var(--vd-s3);
}

.vd-gate__t,
.vd-modal__t {
  font-family: var(--vd-display);
  font-size: 1.6rem;
  font-variant: small-caps;
  line-height: 1.2;
  margin-bottom: var(--vd-s3);
}

.vd-gate__btns,
.vd-modal__opts,
.vd-consent__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--vd-s3);
  margin: var(--vd-s4) 0;
}

@keyframes vd-rise {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.vd-consent {
  position: fixed;
  left: 50%;
  bottom: calc(var(--vd-dock) + 24px);
  z-index: 60;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  padding: var(--vd-s5);
  border-radius: var(--vd-r2);
  border: 1px solid var(--vd-gold);
  background: rgba(26, 16, 34, .97);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .55);
  font-size: .95rem;
}

.vd-consent__t {
  font-family: var(--vd-display);
  font-size: 1.25rem;
  font-variant: small-caps;
  margin-bottom: 6px;
}

.vd-consent__btns {
  justify-content: flex-start;
  margin-bottom: 0;
}

.vd-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--vd-dock) + 28px);
  z-index: 70;
  max-width: min(520px, calc(100% - 32px));
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--vd-gold);
  background: #2a1b37;
  color: var(--vd-ink);
  font-size: .92rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease-out, transform .18s var(--vd-ease);
}

.vd-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- calm mode and reduced motion ---------- */

.vd-calm *,
.vd-calm *::before,
.vd-calm *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .vd-realm,
  .vd-arena,
  .vd-hallread,
  .vd-atlas,
  .vd-review {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-quest,
  .vd-side {
    position: static;
  }

  .vd-rules,
  .vd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vd-foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .vd-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --vd-dock: 70px;
  }

  body {
    font-size: 16px;
  }

  .vd-strip {
    font-size: .74rem;
    gap: 2px 10px;
  }

  .vd-strip span::before {
    margin-right: 6px;
  }

  .vd-hud__clock small,
  .vd-hud__shards small,
  .vd-brand__word {
    display: none;
  }

  .vd-hotbar {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    border-radius: 16px 16px 0 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    gap: 4px;
  }

  .vd-hotbar__slots {
    flex: 1;
    gap: 4px;
  }

  .vd-hotbar__slots li {
    flex: 1;
    min-width: 0;
  }

  .vd-slot {
    width: 100%;
    height: 56px;
    border-radius: 12px;
  }

  .vd-slot--pause {
    width: 56px;
    flex: none;
  }

  .vd-slot__key,
  .vd-slot__long {
    display: none;
  }

  .vd-slot__short {
    display: inline;
  }

  .vd-slot__label {
    font-size: .68rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vd-grid2,
  .vd-grid3,
  .vd-rules,
  .vd-cards,
  .vd-travel,
  .vd-tools,
  .vd-helplist,
  .vd-shelf,
  .vd-desk,
  .vd-libband,
  .vd-review__head,
  .vd-beacon {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-travel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vd-district {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-district__name {
    border-right: 0;
    border-bottom: 1px solid var(--vd-line);
    padding: 0 0 var(--vd-s4);
  }

  .vd-hallhead {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: var(--vd-s4);
    gap: var(--vd-s4);
  }

  .vd-stage {
    padding: var(--vd-s3);
  }

  .vd-grid {
    padding: 6px;
    gap: 4px;
  }

  .vd-pin {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
  }

  .vd-pin__gem {
    width: 22px;
    height: 22px;
    border-width: 1px;
  }

  .vd-pin__gem b {
    font-size: .64rem;
  }

  .vd-pin__label {
    display: none;
  }

  .vd-card {
    width: 52px;
    height: 76px;
  }

  .vd-card i {
    font-size: 1.5rem;
  }

  .vd-card b {
    font-size: .95rem;
  }

  .vd-towers {
    gap: var(--vd-s3);
  }

  .vd-row5 {
    gap: 5px;
  }

  .vd-die {
    width: 74px;
    height: 74px;
    padding: 11px;
  }

  .vd-die i {
    width: 11px;
    height: 11px;
  }

  .vd-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-index > img {
    aspect-ratio: 4 / 3;
  }

  .vd-libhero {
    padding: var(--vd-s5);
    min-height: 300px;
  }

  .vd-foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vd-quest__art {
    grid-template-columns: 90px 1fr;
  }

  .vd-libband {
    padding: var(--vd-s5);
  }

  .vd-facts div {
    grid-template-columns: 110px 1fr;
  }
}
