:root {
  --night: #0c0a1d;
  --night-2: #14102e;
  --velvet: #1c1642;
  --velvet-soft: rgba(30, 24, 68, 0.66);
  --ivory: #f1e9d6;
  --muted: #a297c2;
  --gold: #d9b26a;
  --gold-bright: #eed49a;
  --gold-dim: rgba(217, 178, 106, 0.32);
  --gold-faint: rgba(217, 178, 106, 0.16);
  --wine: #c96a7c;
  --field: rgba(10, 8, 26, 0.62);
  --display: "Cinzel", "Noto Serif TC", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  line-height: 1.85;
  background:
    radial-gradient(1100px 700px at 50% -180px, rgba(84, 60, 140, 0.42), transparent 68%),
    radial-gradient(900px 620px at 88% 22%, rgba(38, 28, 88, 0.5), transparent 70%),
    radial-gradient(760px 560px at 8% 68%, rgba(66, 30, 74, 0.34), transparent 70%),
    linear-gradient(180deg, #100d26 0%, var(--night) 46%, #080615 100%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ---------- night sky ---------- */

.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.veil-a {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(238, 212, 154, 0.8) 0 1.2px, transparent 2px);
  background-size: 240px 220px, 160px 190px, 420px 380px;
  background-position: 12px 34px, 90px 120px, 200px 60px;
  opacity: 0.5;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.veil-b {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(217, 178, 106, 0.6) 0 1.4px, transparent 2.2px);
  background-size: 300px 260px, 520px 460px;
  background-position: 150px 80px, 40px 300px;
  opacity: 0.34;
  animation: twinkle 11s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to { opacity: 0.6; }
}

.halo {
  position: fixed;
  top: -260px;
  left: 0;
  right: 0;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(620px 480px at 50% 50%, rgba(238, 212, 154, 0.14), rgba(238, 212, 154, 0.04) 55%, transparent 75%);
}

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

/* ---------- layout ---------- */

.altar {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 76px) 0 48px;
}

.masthead {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 46px);
  animation: rise 900ms ease both;
}

.brand-card {
  width: 88px;
  aspect-ratio: 0.62;
  margin: 0 auto 22px;
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 10, 29, 0.15), rgba(12, 10, 29, 0.4)),
    url("assets/cards/card-back.webp") center / cover;
  box-shadow:
    inset 0 0 0 3px var(--night),
    inset 0 0 0 4px var(--gold-dim),
    0 0 34px rgba(238, 212, 154, 0.22),
    0 16px 34px rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 62px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-shadow: 0 0 42px rgba(238, 212, 154, 0.28);
}

.tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.moon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 22px;
  max-width: 420px;
  color: var(--gold);
}

.moon-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.moon-divider span:last-child {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.moon-divider i {
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-shadow: 0 0 14px rgba(238, 212, 154, 0.5);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.panel {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--velvet-soft), rgba(12, 10, 29, 0.55));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-faint);
  border-radius: 2px;
  pointer-events: none;
}

.rule-title,
.analysis h3 {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 18px;
  white-space: nowrap;
  background: var(--night-2);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 26px;
}

/* ---------- howto ---------- */

.howto {
  margin-bottom: 30px;
  animation: rise 500ms ease both;
}

.howto p,
.howto ol {
  margin: 0 0 14px;
}

.howto h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.howto ol {
  padding-left: 1.4em;
}

.howto li::marker {
  color: var(--gold);
}

.example {
  padding-top: 12px;
  border-top: 1px dashed var(--gold-faint);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- form ---------- */

.cast {
  display: grid;
  gap: 26px;
  animation: rise 900ms 120ms ease both;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: grid;
  gap: 10px;
}

.label-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}

.label-row em {
  color: var(--wine);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  background: var(--field);
  color: var(--ivory);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea::placeholder,
input::placeholder {
  color: rgba(162, 151, 194, 0.66);
}

textarea {
  min-height: 78px;
  resize: vertical;
  padding: 12px 14px;
}

input,
select {
  min-height: 56px;
  padding: 0 14px;
}

input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.14em;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 21px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 15px) 50% / 7px 7px no-repeat,
    var(--field);
  padding-right: 42px;
}

select option {
  background: var(--night-2);
  color: var(--ivory);
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--gold);
  background: rgba(10, 8, 26, 0.85);
  box-shadow: 0 0 0 3px rgba(217, 178, 106, 0.16), 0 0 24px rgba(238, 212, 154, 0.12);
}

.hint {
  min-height: 23px;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cast-btn {
  min-width: 200px;
  min-height: 56px;
  border: 1px solid rgba(238, 212, 154, 0.65);
  border-radius: 3px;
  color: #191233;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, #b98d47);
  box-shadow: 0 0 26px rgba(238, 212, 154, 0.22), 0 12px 26px rgba(0, 0, 0, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cast-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 40px rgba(238, 212, 154, 0.34), 0 16px 30px rgba(0, 0, 0, 0.5);
}

.cast-btn.small {
  min-width: auto;
  min-height: 38px;
  padding: 0 18px;
}

.ghost-btn,
.link-btn {
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  background: transparent;
  color: var(--ivory);
  min-height: 38px;
  padding: 5px 20px;
  letter-spacing: 0.08em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ghost-btn:hover,
.ghost-btn[aria-expanded="true"] {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--gold-faint);
  box-shadow: 0 0 18px rgba(238, 212, 154, 0.14);
}

.ghost-btn.quiet {
  color: var(--muted);
}

.ghost-btn.quiet:hover {
  color: var(--gold-bright);
}

/* ---------- result ---------- */

.result {
  margin-top: 34px;
  animation: rise 600ms ease both;
}

.msg {
  padding: 16px 18px;
  border: 1px solid rgba(201, 106, 124, 0.55);
  border-radius: 4px;
  color: #f0c6cf;
  background: rgba(201, 106, 124, 0.1);
}

.verdict-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.reading-title {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.25;
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-shadow: 0 0 30px rgba(238, 212, 154, 0.22);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: var(--gold-faint);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.q-echo {
  margin: 0 0 26px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.q-echo b {
  color: var(--ivory);
  font-weight: 600;
}

/* ---------- cards ---------- */

.spread-board {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 22px auto 28px;
  perspective: 1200px;
}

.spread-board.one {
  --cols: 1;
  max-width: 340px;
}

.spread-board.cross {
  --cols: 5;
}

.tarot-card {
  min-width: 0;
  animation: reveal 700ms cubic-bezier(0.22, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--delay, 0) * 160ms);
  transition: transform 220ms ease;
}

.tarot-card:hover {
  transform: translateY(-6px);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(24deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.card-visual {
  position: relative;
  display: block;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 0.68;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ivory);
  font: inherit;
  cursor: pointer;
  perspective: 1100px;
}

.card-visual:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.3, 0.7, 0.25, 1);
}

.card-visual.revealed .card-flipper {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(238, 212, 154, 0.55);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 4px var(--night),
    inset 0 0 0 5px var(--gold-dim),
    0 0 26px rgba(238, 212, 154, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.55);
  transition: box-shadow 220ms ease;
}

.tarot-card:hover .card-face {
  box-shadow:
    inset 0 0 0 4px var(--night),
    inset 0 0 0 5px rgba(238, 212, 154, 0.6),
    0 0 44px rgba(238, 212, 154, 0.28),
    0 22px 40px rgba(0, 0, 0, 0.6);
}

.face-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 12px;
  background:
    linear-gradient(180deg, rgba(12, 10, 29, 0.18), rgba(12, 10, 29, 0.02) 40%, rgba(6, 4, 16, 0.4)),
    url("assets/cards/card-back.webp") center / cover;
}

.tap-hint {
  padding: 3px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: rgba(8, 6, 21, 0.72);
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.face-up {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #181236, #0c0a1d 70%);
}

.face-art {
  position: absolute;
  inset: 0;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-up.reversed .card-art,
.face-up.reversed .pip {
  transform: rotate(180deg);
}

.pip-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 4px 8px;
  padding: 10% 9% 34%;
}

.pip {
  width: 30%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(238, 212, 154, 0.16), inset 0 0 0 1px rgba(238, 212, 154, 0.22);
}

.pips-1 .pip { width: 56%; }
.pips-2 .pip, .pips-3 .pip { width: 40%; }
.pips-4 .pip, .pips-5 .pip, .pips-6 .pip { width: 33%; }
.pips-7 .pip, .pips-8 .pip, .pips-9 .pip, .pips-10 .pip { width: 26%; }

.court-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 30%;
}

.pip.court {
  width: 54%;
}

.court-title {
  padding: 2px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: rgba(8, 6, 21, 0.78);
  color: var(--gold-bright);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.face-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 8px 12px;
  background: linear-gradient(180deg, rgba(8, 6, 21, 0), rgba(8, 6, 21, 0.9) 46%);
}

.position-label {
  align-self: center;
  min-width: 66px;
  padding: 2px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(8, 6, 21, 0.82);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.card-name {
  display: grid;
  gap: 4px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 22px rgba(0, 0, 0, 0.5);
}

.card-name b {
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.1em;
}

.card-name span {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-bright);
}

.orientation {
  align-self: center;
  padding: 1px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(8, 6, 21, 0.82);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.face-up.reversed .orientation {
  color: #f0c6cf;
  border-color: rgba(201, 106, 124, 0.6);
}

.card-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- summary ---------- */

.summary {
  display: grid;
  margin: 20px 0;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(12, 10, 29, 0.5);
}

.row {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 48px;
  border-bottom: 1px solid var(--gold-faint);
}

.row:last-child {
  border-bottom: 0;
}

.k {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--gold-bright);
  border-right: 1px solid var(--gold-faint);
  font-weight: 700;
  letter-spacing: 0.14em;
  background: rgba(217, 178, 106, 0.05);
}

.v {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 10px 18px;
}

.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 10px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: var(--gold-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- analysis ---------- */

.analysis {
  position: relative;
  margin-top: 34px;
  padding: 30px 26px 24px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--velvet-soft), rgba(12, 10, 29, 0.5));
}

.analysis p {
  margin: 0 0 14px;
}

.analysis p:last-child {
  margin-bottom: 0;
}

.analysis strong {
  color: var(--gold-bright);
}

.card-details {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

details {
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  background: rgba(12, 10, 29, 0.5);
  transition: border-color 180ms ease;
}

details[open] {
  border-color: var(--gold);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 8px 18px;
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.05em;
}

summary::-webkit-details-marker {
  display: none;
}

.chev {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 22px;
  transition: transform 180ms ease;
}

details[open] .chev {
  transform: rotate(90deg);
}

.detail-body {
  padding: 0 18px 16px;
  color: #cfc6e2;
}

.detail-body strong {
  color: var(--gold-bright);
}

.reason {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--gold-faint);
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
}

.reason strong {
  color: var(--gold);
}

/* ---------- ai analysis ---------- */

.ai-analysis {
  position: relative;
  margin-top: 34px;
  padding: 30px 26px 24px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(238, 212, 154, 0.07), transparent 60%),
    linear-gradient(180deg, var(--velvet-soft), rgba(12, 10, 29, 0.5));
}

.ai-analysis h3 {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 18px;
  white-space: nowrap;
  background: var(--night-2);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 26px;
}

.ai-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.ai-body .ai-text {
  text-align: left;
  width: 100%;
}

.ai-text p {
  margin: 0 0 14px;
}

.ai-text p:last-child {
  margin-bottom: 0;
}

.ai-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ai-note.small {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.ai-note.error {
  color: #f0c6cf;
}

.ai-btn {
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(238, 212, 154, 0.1);
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  letter-spacing: 0.14em;
  min-height: 38px;
}

.ai-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold) 60%, transparent 75%);
  box-shadow: 0 0 14px rgba(238, 212, 154, 0.6);
  animation: orbPulse 1.4s ease-in-out infinite;
}

.ai-dots i {
  font-style: normal;
  animation: dotBlink 1.4s ease-in-out infinite;
}

.ai-dots i:nth-child(2) { animation-delay: 0.2s; }
.ai-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes orbPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- share & footer ---------- */

.share-row,
.recast-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--gold-faint);
}

.share-label {
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.22em;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-faint);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer p {
  flex: 1 1 420px;
  margin: 0;
}

footer > span {
  color: var(--gold);
}

.link-btn {
  min-height: auto;
  padding: 0;
  color: inherit;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 0;
}

.link-btn:hover {
  color: var(--gold-bright);
  background: transparent;
}

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

@media (max-width: 900px) {
  .altar {
    width: min(100% - 24px, 760px);
  }

  .spread-board.cross {
    --cols: 3;
  }
}

@media (max-width: 680px) {
  body {
    line-height: 1.7;
  }

  .altar {
    padding-top: 32px;
  }

  .brand-card {
    width: 70px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 26px 18px 22px;
  }

  .ghost-btn,
  .cast-btn {
    width: 100%;
  }

  .spread-board,
  .spread-board.cross,
  .spread-board.one {
    --cols: 1;
    max-width: 330px;
  }

  .card-visual {
    min-height: 248px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .k {
    border-right: 0;
    border-bottom: 1px solid var(--gold-faint);
    padding-bottom: 6px;
  }
}
