/* Character Defects: candlelit, celestial theme. Mobile first. */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --bg-0: #07060d;
  --bg-1: #0e0b1a;
  --line: rgba(226, 194, 125, .2);
  --line-strong: rgba(226, 194, 125, .5);
  --gold: #e2c27d;
  --gold-bright: #f6e3b0;
  --gold-deep: #b08c50;
  --text: #efe6d4;
  --muted: #bdb19a;
  --violet: #8b6cff;
  --ink: #1b1305;
  --radius: 18px;
  --display: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --body: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-bright); }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ the night sky */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 680px at 50% -10%, rgba(124, 92, 230, .32), transparent 62%),
    radial-gradient(760px 520px at 100% 100%, rgba(226, 160, 80, .11), transparent 60%),
    radial-gradient(680px 520px at -10% 65%, rgba(70, 52, 160, .18), transparent 60%),
    linear-gradient(180deg, #110c25 0%, #09070f 62%, #07060d 100%);
}
.sky__stars { position: absolute; inset: -40%; background-repeat: repeat; will-change: transform, opacity; }
.sky__stars--far {
  background-image:
    radial-gradient(1px 1px at 7% 12%, rgba(255, 255, 255, .9), transparent),
    radial-gradient(1px 1px at 23% 64%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 38% 31%, rgba(246, 227, 176, .9), transparent),
    radial-gradient(1px 1px at 52% 83%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 61% 18%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 74% 52%, rgba(200, 190, 255, .8), transparent),
    radial-gradient(1px 1px at 86% 9%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 93% 71%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 15% 90%, rgba(246, 227, 176, .7), transparent),
    radial-gradient(1px 1px at 46% 50%, rgba(255, 255, 255, .5), transparent);
  background-size: 320px 320px;
  opacity: .6;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky__stars--near {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 255, 255, .95), transparent),
    radial-gradient(1.5px 1.5px at 33% 76%, rgba(246, 227, 176, .9), transparent),
    radial-gradient(2px 2px at 58% 40%, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1.5px 1.5px at 79% 85%, rgba(210, 200, 255, .9), transparent),
    radial-gradient(1.5px 1.5px at 90% 22%, rgba(255, 255, 255, .8), transparent);
  background-size: 540px 540px;
  animation: twinkle 9s ease-in-out -4s infinite alternate, drift 240s linear infinite;
}
@keyframes twinkle { from { opacity: .3; } to { opacity: .85; } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-540px, -270px, 0); } }

/* ------------------------------------------------------------------ header + footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: .7rem; line-height: 1.15; letter-spacing: .2em; text-transform: uppercase;
}
.brand .icon { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgba(226, 194, 125, .45)); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 10px 10px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--line); }

.site-footer {
  max-width: 720px; margin: 72px auto 0; padding: 0 20px calc(36px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 1rem;
}
.site-footer p { margin: 0 0 12px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 20px; font-family: var(--display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__nav a { text-decoration: none; padding: 6px 0; }
.site-footer__crisis { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 11, 26, .65); color: var(--text); }
.site-footer__fine { font-size: .92rem; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-bottom: 24px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider::after { transform: scaleX(-1); }

/* ------------------------------------------------------------------ type + buttons */
.eyebrow { margin: 0 0 .7rem; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.foil {
  color: var(--gold);
  background: linear-gradient(176deg, #fff4d2 0%, #ecd08f 38%, #c69c54 70%, #f3dea6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-title { margin: 0 0 .6rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 6.4vw, 2.4rem); letter-spacing: .04em; line-height: 1.15; }
.text-link { display: inline-block; padding: 8px 0; color: var(--gold); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--gold {
  color: var(--ink);
  background: linear-gradient(135deg, #fbecc0 0%, #e2c27d 45%, #b88f4a 100%);
  box-shadow: 0 12px 32px -12px rgba(226, 194, 125, .7), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.btn--gold:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(226, 194, 125, .85), inset 0 1px 0 rgba(255, 255, 255, .65); }
.btn--gold:active { transform: translateY(1px); }
.btn--ghost { color: var(--gold); border-color: var(--line-strong); background: rgba(14, 11, 26, .45); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(40, 30, 72, .5); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .ic-fill { fill: currentColor; stroke: none; }
.icon .ic-dot { stroke-width: 2.6; }
.icon .ic-thin { stroke-width: 1.2; }
.icon--brand { stroke-width: 1.3; }

/* ------------------------------------------------------------------ home */
.hero { position: relative; max-width: 720px; margin: 0 auto; padding: 4px 22px 28px; text-align: center; }
.hero__title { margin: 0 0 1.1rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 11.5vw, 4.4rem); line-height: 1.04; letter-spacing: .03em; }
.hero__lead { max-width: 34ch; margin: 0 auto 1rem; font-size: 1.24rem; line-height: 1.5; }
.hero__sub { max-width: 38ch; margin: 0 auto 1.7rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero--small { padding-top: 48px; }
.hero__today {
  display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto 26px;
  padding: 22px 20px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: radial-gradient(120% 100% at 50% 0%, rgba(139, 108, 255, .2), transparent 70%), rgba(14, 11, 26, .6);
  box-shadow: 0 0 60px -20px rgba(139, 108, 255, .5);
}
.hero__today .eyebrow { margin: 0; }
.hero__today-text { margin: 0 0 6px; font-size: 1.2rem; }
.hero__today-text strong { color: var(--gold-bright); font-weight: 500; }

.deck { position: relative; width: 220px; height: 214px; margin: 6px auto 22px; }
.deck::before {
  content: ""; position: absolute; inset: 12% -10% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 108, 255, .5), rgba(139, 108, 255, 0));
}
.deck__card {
  position: absolute; left: 50%; bottom: 0; width: 118px; aspect-ratio: 3 / 5; margin-left: -59px; border-radius: 11px;
  background: url("../img/card-back.svg") center / 100% 100% no-repeat, radial-gradient(120% 80% at 50% 40%, #2d2160, #160f2e 60%, #0b0818);
  box-shadow: 0 0 0 1px rgba(226, 194, 125, .45), 0 18px 40px -14px rgba(0, 0, 0, .9);
  transform-origin: 50% 110%;
}
.deck__card--l { transform: rotate(-15deg) translateX(-8px); }
.deck__card--r { transform: rotate(15deg) translateX(8px); }
.deck__card--c { animation: levitate 6s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(226, 194, 125, .6), 0 22px 50px -14px rgba(0, 0, 0, .95), 0 0 50px -6px rgba(139, 108, 255, .65); }
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.steps { max-width: 980px; margin: 0 auto; padding: 18px 20px 8px; }
.steps__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps__item {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 11, 26, .5);
}
.steps__num {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold); font-family: var(--display); font-weight: 600; font-size: .9rem;
  box-shadow: inset 0 0 14px rgba(226, 194, 125, .15);
}
.steps__item h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }
.steps__item p { margin: .2rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.45; }

.choose { max-width: 980px; margin: 0 auto; padding: 48px 20px 0; }
.choose__head { max-width: 640px; margin: 0 auto 18px; text-align: center; }
.choose__head p { margin: 0; color: var(--muted); }
.picker__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker__tools { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.picker__count { margin: 0 auto 0 0; color: var(--muted); font-size: 1.02rem; }
.picker__count span, .picker__bar-count span { color: var(--gold-bright); font-weight: 500; }
.chip {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 11, 26, .55);
  color: var(--gold); font-family: var(--display); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); color: var(--gold-bright); }

.tiles { display: grid; gap: 10px; }
.tile {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  padding: 16px 16px 16px 15px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(33, 25, 60, .62), rgba(15, 11, 28, .62));
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: border-color .25s, box-shadow .3s, background .3s, transform .15s;
}
.tile:hover { border-color: var(--line-strong); }
.tile:active { transform: scale(.992); }
.tile input { position: absolute; top: 18px; left: 18px; width: 20px; height: 20px; margin: 0; opacity: 0; pointer-events: none; }
.tile__mark {
  display: grid; place-items: center; width: 20px; height: 20px; margin: 5px 0 0 3px;
  border: 1px solid var(--line-strong); border-radius: 4px; transform: rotate(45deg); transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.tile__mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--gold-bright);
  transform: scale(0); transition: transform .3s var(--ease); box-shadow: 0 0 10px rgba(246, 227, 176, .9);
}
.tile input:checked + .tile__mark { border-color: var(--gold); background: rgba(226, 194, 125, .14); box-shadow: 0 0 14px rgba(226, 194, 125, .35); }
.tile input:checked + .tile__mark::after { transform: scale(1); }
.tile input:focus-visible + .tile__mark { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
.tile:has(input:checked) {
  border-color: rgba(226, 194, 125, .62);
  background: linear-gradient(180deg, rgba(62, 46, 108, .62), rgba(24, 18, 46, .72));
  box-shadow: 0 0 0 1px rgba(226, 194, 125, .18), 0 14px 34px -18px rgba(226, 194, 125, .55);
}
.tile:has(input:focus-visible) { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.tile:has(input:focus-visible) .tile__mark { outline: none; }
.tile__name { display: block; font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); line-height: 1.3; }
.tile__name { padding-right: 2.6rem; }
.tile__num { position: absolute; top: 18px; right: 16px; color: var(--gold-deep); font-size: .68rem; letter-spacing: .12em; }
.tile__desc { display: block; margin-top: 4px; color: var(--muted); font-size: 1.04rem; line-height: 1.45; }

.picker__bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 16px -20px 0; padding: 22px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 6, 13, 0) 0%, rgba(7, 6, 13, .9) 34%, rgba(7, 6, 13, .97) 100%);
}
.picker__bar-count { margin: 0; color: var(--muted); font-size: 1rem; white-space: nowrap; }
.picker__bar .btn { flex: 1 1 auto; max-width: 340px; padding-left: 1rem; padding-right: 1rem; }
.form-error {
  margin: 12px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 150, 130, .5);
  background: rgba(90, 20, 30, .45); color: #ffd9cf; text-align: center;
}

.faq { max-width: 720px; margin: 0 auto; padding: 64px 20px 0; }
.faq .section-title { text-align: center; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 18px 36px 18px 2px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .06em; color: var(--gold-bright);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✦"; position: absolute; right: 6px; top: 50%; color: var(--gold); transform: translateY(-50%); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.faq__more { text-align: center; margin-top: 18px; }
.home-share { max-width: 640px; margin: 56px auto 0; padding: 0 20px; }
.home-share .share { text-align: center; border-color: var(--line-strong); background: radial-gradient(120% 100% at 50% 0%, rgba(139, 108, 255, .2), transparent 70%), linear-gradient(180deg, rgba(34, 26, 62, .7), rgba(14, 11, 26, .7)); }
.home-share .panel__title { justify-content: center; }

/* ------------------------------------------------------------------ cards */
.card-face {
  position: relative; display: flex; flex-direction: column; align-items: center; height: 100%;
  padding: 30px 26px 24px; padding: 9cqi 8cqi 7.5cqi; border-radius: var(--radius); overflow: hidden; text-align: center;
  background: radial-gradient(130% 78% at 50% 30%, #35286f 0%, #1c1539 52%, #0d0a1d 100%);
  box-shadow: 0 0 0 1px rgba(226, 194, 125, .55), 0 34px 80px -28px rgba(0, 0, 0, .95), 0 0 90px -12px rgba(139, 108, 255, .55);
}
.card-face::before {
  content: ""; position: absolute; inset: 10px; inset: 3.2cqi; border-radius: 11px; pointer-events: none;
  border: 1px solid rgba(226, 194, 125, .6);
  outline: 1px solid rgba(226, 194, 125, .22); outline-offset: -6px; outline-offset: -1.9cqi;
}
.card-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 240, 205, .32) 46%, transparent 60%);
  transform: translateX(-130%);
}
.card-face__corner { position: absolute; color: var(--gold); font-size: 13px; font-size: 4cqi; line-height: 1; opacity: .9; }
.card-face__corner--tl { top: 17px; left: 18px; top: 5.4cqi; left: 5.6cqi; }
.card-face__corner--tr { top: 17px; right: 18px; top: 5.4cqi; right: 5.6cqi; }
.card-face__corner--bl { bottom: 17px; left: 18px; bottom: 5.4cqi; left: 5.6cqi; }
.card-face__corner--br { bottom: 17px; right: 18px; bottom: 5.4cqi; right: 5.6cqi; }
.card-face__numeral {
  display: flex; align-items: center; gap: 10px; gap: 3cqi; margin: 0;
  font-family: var(--display); font-weight: 600; font-size: 17px; font-size: 5.2cqi; letter-spacing: .3em; color: var(--gold);
}
.card-face__numeral::before, .card-face__numeral::after { content: ""; width: 40px; width: 12cqi; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.card-face__numeral::after { transform: scaleX(-1); }
.card-face__numeral span[aria-hidden] { margin-right: -.3em; }
.card-face__art {
  display: grid; place-items: center; width: 70%; aspect-ratio: 1; margin: 14px 0 12px; margin: 4.4cqi 0 3.6cqi; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 108, 255, .3), rgba(139, 108, 255, .06) 70%, transparent);
}
.card-face__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(226, 194, 125, .7), 0 0 0 8px rgba(13, 10, 29, .7), 0 0 0 9px rgba(226, 194, 125, .3), 0 0 40px rgba(226, 194, 125, .25);
}
.sigil { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(226, 194, 125, .45)); }
.sigil .sg-thin { stroke-width: .8; opacity: .65; }
.sigil .sg-star { stroke: var(--gold-bright); stroke-width: 1.3; }
.sigil .sg-dash { stroke-dasharray: 2 5; }
.sigil .sg-fill { fill: var(--gold-bright); stroke: none; }
.sigil .sg-soft { fill: rgba(226, 194, 125, .14); }
.card-face__name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; font-size: 10.2cqi; line-height: 1.08; letter-spacing: .08em; text-transform: uppercase; }
.card-face__name.is-long { font-size: 26px; font-size: 8.3cqi; letter-spacing: .05em; }
.card-face__name.is-xlong { font-size: 24px; font-size: 7.5cqi; letter-spacing: .03em; }
.card-face__name:focus { outline: none; }
.card-face__desc { margin: 9px 0 0; margin: 2.8cqi 0 0; color: var(--muted); font-style: italic; font-size: 16px; font-size: 5cqi; line-height: 1.36; }
.card-face__opp { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin: auto 0 0; padding-top: 10px; padding-top: 3cqi; }
.card-face__rule { display: flex; align-items: center; gap: 10px; gap: 3cqi; width: 70%; margin-bottom: 8px; margin-bottom: 2.6cqi; color: var(--gold); font-size: 12px; font-size: 3.6cqi; line-height: 1; }
.card-face__rule::before, .card-face__rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 194, 125, .6)); }
.card-face__rule::after { transform: scaleX(-1); }
.card-face__opp-label { font-family: var(--display); font-size: 11px; font-size: 3.3cqi; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--gold-deep); margin-right: -.36em; }
.card-face__opp-name { font-family: var(--display); font-weight: 600; font-size: 20px; font-size: 6.2cqi; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); text-shadow: 0 0 18px rgba(226, 194, 125, .45); }

/* the flip */
.tarot { position: relative; width: min(80vw, 330px); aspect-ratio: 3 / 5; margin: 0 auto; perspective: 1700px; }
.tarot__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.15s var(--ease); }
.tarot.is-revealed .tarot__inner { transform: rotateY(180deg); }
.tarot.is-instant .tarot__inner { transition: none; }
.tarot__back, .tarot__face { position: absolute; inset: 0; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; container-type: inline-size; }
.tarot__back { transform: rotateY(0deg); }
.tarot__face { transform: rotateY(180deg); }
.tarot__reveal {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); cursor: pointer;
  background: url("../img/card-back.svg") center / 100% 100% no-repeat, radial-gradient(120% 80% at 50% 40%, #2e2263, #160f2e 60%, #0b0818);
  box-shadow: 0 0 0 1px rgba(226, 194, 125, .6), 0 34px 80px -28px rgba(0, 0, 0, .95), 0 0 90px -10px rgba(139, 108, 255, .6);
  animation: levitate 5.5s ease-in-out infinite; -webkit-tap-highlight-color: transparent;
}
.tarot__reveal:hover { box-shadow: 0 0 0 1px rgba(226, 194, 125, .85), 0 34px 80px -28px rgba(0, 0, 0, .95), 0 0 110px -6px rgba(139, 108, 255, .75); }
.tarot__reveal:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 6px; }
.tarot__cta {
  position: absolute; left: 0; right: 0; bottom: 6.6%; display: block;
  font-family: var(--display); font-weight: 700; font-size: 12px; font-size: 3.9cqi; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(226, 194, 125, .8); animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.tarot.is-revealed .tarot__reveal { animation: none; }
.tarot.is-revealed:not(.is-instant) .card-face::after { animation: sheen 1.5s .9s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(130%); } }
.card-static { width: min(72vw, 300px); aspect-ratio: 3 / 5; container-type: inline-size; }

/* ------------------------------------------------------------------ today */
.today { max-width: 720px; margin: 0 auto; padding: 0 20px; text-align: center; }
.today__date { margin: 6px 0 4px; }
.today__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text); }
.rotation { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0 22px; }
.rotation__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 250px; margin: 0; padding: 0; list-style: none; }
.rotation__dots li { width: 7px; height: 7px; border: 1px solid var(--line-strong); transform: rotate(45deg); }
.rotation__dots li.is-done { background: var(--gold-deep); border-color: var(--gold-deep); }
.rotation__dots li.is-today { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px var(--gold); }
.rotation__label { margin: 0; color: var(--muted); font-size: .98rem; font-style: italic; }
.today__hint { margin: 22px 0 0; color: var(--muted); font-style: italic; }

.today__content { display: grid; gap: 14px; max-width: 640px; margin: 30px auto 0; padding: 0 20px; }
.panel {
  position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left;
  background: linear-gradient(180deg, rgba(34, 26, 62, .66), rgba(14, 11, 26, .66));
}
.panel p { margin: 0; }
.panel__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-family: var(--display); font-weight: 600; font-size: .84rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.panel__title .icon { width: 22px; height: 22px; flex: none; }
.panel__big { font-size: 1.3rem; line-height: 1.45; }
.panel__note { margin-top: 12px !important; color: var(--muted); font-size: 1rem; font-style: italic; }
.panel--action {
  border-color: rgba(226, 194, 125, .48);
  background: radial-gradient(130% 120% at 0% 0%, rgba(226, 194, 125, .16), transparent 55%), linear-gradient(180deg, rgba(34, 26, 62, .72), rgba(14, 11, 26, .72));
}
.panel--evening {
  border-color: rgba(139, 108, 255, .42);
  background: radial-gradient(130% 120% at 100% 0%, rgba(139, 108, 255, .24), transparent 55%), linear-gradient(180deg, rgba(34, 26, 62, .72), rgba(14, 11, 26, .72));
}
.panel--evening .panel__title { color: #cdbfff; }

.share__hint { color: var(--muted); font-size: 1.04rem; }
.share__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.share__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 76px; padding: 10px 4px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(9, 7, 18, .5); color: var(--text); cursor: pointer;
  font-family: var(--display); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s, background-color .2s, transform .15s;
}
.share__btn .icon { width: 24px; height: 24px; color: var(--gold); }
.share__btn:hover { color: var(--gold-bright); border-color: var(--line-strong); background: rgba(44, 33, 80, .55); }
.share__btn:active { transform: scale(.97); }
.share__btn--native { grid-column: 1 / -1; flex-direction: row; min-height: 54px; gap: 10px; border: 0; color: var(--ink); font-size: .78rem; background: linear-gradient(135deg, #fbecc0 0%, #e2c27d 45%, #b88f4a 100%); box-shadow: 0 12px 30px -14px rgba(226, 194, 125, .7); }
.share__btn--native .icon { color: var(--ink); }
.share__btn--native:hover { color: var(--ink); background: linear-gradient(135deg, #fff1c8 0%, #e8ca88 45%, #c29a54 100%); }
.share__field {
  width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong);
  background: rgba(7, 6, 13, .6); color: var(--muted); font: 500 1rem/1.3 var(--body); text-overflow: ellipsis;
}
.share__field:focus { color: var(--text); }

.tomorrow { margin-top: 10px; text-align: center; }
.tomorrow__text { margin: 8px 0 16px; color: var(--muted); font-style: italic; }
.tomorrow__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.rise > * { opacity: 0; transform: translateY(16px); animation: rise .75s var(--ease) forwards; }
.rise > :nth-child(2) { animation-delay: .12s; }
.rise > :nth-child(3) { animation-delay: .24s; }
.rise > :nth-child(4) { animation-delay: .36s; }
.rise > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.fade-out { animation: fadeOut .4s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; } }

/* ------------------------------------------------------------------ defect page */
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; max-width: 1080px; margin: 4px auto 18px; padding: 0 20px; list-style: none;
  font-family: var(--display); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-deep); }
.crumbs a { text-decoration: none; }
.defect { display: grid; grid-template-areas: "head" "card" "body"; gap: 26px; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.defect__head { grid-area: head; text-align: center; }
.defect__title { margin: 0 0 .6rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 11vw, 3.8rem); line-height: 1.04; letter-spacing: .05em; }
.defect__lead { max-width: 36ch; margin: 0 auto 1rem; font-size: 1.28rem; font-style: italic; line-height: 1.45; }
.defect__opposite {
  display: inline-flex; align-items: baseline; gap: 10px; margin: 0; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(14, 11, 26, .55); font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.defect__opposite strong { color: var(--gold-bright); font-size: .92rem; font-weight: 600; letter-spacing: .12em; }
.defect__card { grid-area: card; display: flex; justify-content: center; }
.defect__body { grid-area: body; display: grid; gap: 14px; min-width: 0; }
.cta {
  padding: 26px 22px; border-radius: var(--radius); text-align: center; border: 1px solid var(--line-strong);
  background: radial-gradient(120% 100% at 50% 0%, rgba(139, 108, 255, .22), transparent 70%), rgba(14, 11, 26, .6);
}
.cta__title { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; color: var(--gold-bright); }
.cta p { margin: 0 0 16px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pager__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(14, 11, 26, .5); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.pager__link small { display: block; color: var(--gold-deep); font-size: .62rem; letter-spacing: .16em; }
.pager__link--next { margin-left: auto; text-align: right; }
.pager__link .icon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ list page */
.list-hero { max-width: 760px; margin: 0 auto; padding: 4px 20px 26px; text-align: center; }
.list-hero__title { margin: 0 0 1rem; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 8.6vw, 3.3rem); line-height: 1.08; letter-spacing: .03em; }
.list-hero p { max-width: 40ch; margin: 0 auto; color: var(--muted); }
.list-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.list-hero__note { margin-top: 12px !important; font-style: italic; }
.deck-list { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; padding: 0 20px; list-style: none; }
.deck-list__item { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(33, 25, 60, .6), rgba(15, 11, 28, .6)); transition: border-color .2s, box-shadow .3s; }
.deck-list__item:hover { border-color: var(--line-strong); box-shadow: 0 12px 30px -18px rgba(226, 194, 125, .5); }
.deck-list__link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 16px 18px 4px; color: inherit; text-decoration: none; }
.deck-list__num { width: 2.6em; color: var(--gold-deep); font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; }
.deck-list__name { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.deck-list__opp { color: var(--gold); font-style: italic; font-size: 1.08rem; }
.deck-list__desc { margin: 0; padding: 0 18px 16px calc(18px + 2.6em * .72 + 10px); color: var(--muted); font-size: 1.02rem; line-height: 1.45; }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 640px) {
  .brand { font-size: .76rem; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: .74rem; padding: 10px 14px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .steps__item { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 8px; padding: 22px 18px; }
  .steps__num { grid-row: auto; }
  .share__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .picker__bar {
    bottom: 16px; max-width: 560px; margin: 22px auto 0; padding: 8px 8px 8px 24px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: rgba(16, 12, 30, .88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .9), 0 0 40px -18px rgba(139, 108, 255, .6);
  }
  .deck { width: 260px; height: 250px; margin-bottom: 34px; }
  .deck__card { width: 138px; margin-left: -69px; }
}
@media (min-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .deck-list { grid-template-columns: 1fr 1fr; }
  .panel { padding: 26px 26px; }
}
@media (min-width: 920px) {
  .defect { grid-template-columns: 330px minmax(0, 1fr); grid-template-areas: "card head" "card body"; column-gap: 56px; row-gap: 22px; align-items: start; }
  .defect__head { text-align: left; }
  .defect__lead { margin-left: 0; }
  .defect__card { position: sticky; top: 24px; }
  .card-static { width: 330px; }
}

/* ------------------------------------------------------------------ toast, motion, print */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 60; padding: 12px 22px; border-radius: 999px;
  background: rgba(28, 21, 52, .96); border: 1px solid var(--line-strong); color: var(--gold-bright); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9);
  font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast:empty { padding: 0; border: 0; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .foil { -webkit-text-fill-color: CanvasText; background: none; }
  .tile input { opacity: 1; position: static; pointer-events: auto; }
  .tile__mark { display: none; }
}

@media screen { .worksheet { display: none; } }
@media print {
  @page { margin: 13mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sky, .site-header, .site-footer, .toast, .skip-link, .share, .btn, .picker__bar, .pager, .cta, .crumbs, .rotation, .tomorrow { display: none !important; }
  .foil { -webkit-text-fill-color: #000; background: none; color: #000; }
  .panel, .card-face { box-shadow: none; background: #fff; border: 1px solid #999; color: #000; }
  .panel__title, .card-face__opp-name, .card-face__desc, .card-face__numeral { color: #000; text-shadow: none; }
  a { color: #000; }
  .page-list .list-screen { display: none !important; }
  .page-list .worksheet { display: block !important; font-family: var(--body); }
  .worksheet h1 { margin: 0 0 4pt; font: 700 15pt/1.2 var(--display); letter-spacing: .02em; }
  .worksheet__meta { display: flex; gap: 28pt; margin: 8pt 0 6pt; font-size: 11pt; }
  .worksheet__intro { margin: 0 0 10pt; font-size: 10.5pt; font-style: italic; }
  .worksheet table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .worksheet th, .worksheet td { border: 1px solid #666; padding: 4pt 6pt; vertical-align: top; text-align: left; }
  .worksheet th { font: 600 7.5pt var(--display); letter-spacing: .12em; text-transform: uppercase; }
  .worksheet tr { break-inside: avoid; }
  .worksheet strong { display: block; font: 600 9pt var(--display); letter-spacing: .08em; text-transform: uppercase; }
  .ws-desc { display: block; font-size: 8.5pt; line-height: 1.3; color: #333; }
  .ws-check { width: 30pt; text-align: center !important; }
  .ws-box { display: inline-block; width: 11pt; height: 11pt; border: 1.2px solid #000; margin-top: 2pt; }
  .ws-wide { width: 44%; }
  .ws-line { display: block; height: 15pt; border-bottom: 1px solid #999; }
  .worksheet__foot { margin-top: 10pt; font-size: 8.5pt; color: #444; }
}
