/* (c) 2026 Evan Kastor. All rights reserved. Unauthorized copying, reproduction, or reverse engineering of this site or its code is prohibited. */
@font-face {
  font-family: 'SuisseScreenMonitor';
  src: url('./fonts/SuisseScreen-Monitor-Web.woff2') format('woff2'),
       url('./fonts/SuisseScreen-Monitor-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SuisseWorks';
  src: url('./fonts/SuisseWorks-Book-Web.woff2') format('woff2'),
       url('./fonts/SuisseWorks-Book-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SuisseWorks';
  src: url('./fonts/SuisseWorks-Medium-Web.woff2') format('woff2'),
       url('./fonts/SuisseWorks-Medium-Web.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SuisseWorks';
  src: url('./fonts/SuisseWorks-Bold-Web.woff2') format('woff2'),
       url('./fonts/SuisseWorks-Bold-Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* #38 */
@font-face {
  font-family: 'FrauncesReveal';
  src: url('./fonts/Fraunces-Variable.woff2') format('woff2-variations'),
       url('./fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FrauncesReveal';
  src: url('./fonts/Fraunces-Italic-Variable.woff2') format('woff2-variations'),
       url('./fonts/Fraunces-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse';
  src: url('./fonts/SuisseIntl-Regular-Web.woff2') format('woff2'),
       url('./fonts/SuisseIntl-Regular-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse';
  src: url('./fonts/SuisseIntl-Medium-Web.woff2') format('woff2'),
       url('./fonts/SuisseIntl-Medium-Web.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse';
  src: url('./fonts/SuisseIntl-SemiBold-Web.woff2') format('woff2'),
       url('./fonts/SuisseIntl-SemiBold-Web.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Suisse';
  src: url('./fonts/SuisseIntl-Bold-Web.woff2') format('woff2'),
       url('./fonts/SuisseIntl-Bold-Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SangBleuSunrise';
  src: url('./fonts/SangBleuSunrise-Regular-Web.woff2') format('woff2'),
       url('./fonts/SangBleuSunrise-Regular-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SangBleuSunrise';
  src: url('./fonts/SangBleuSunrise-Medium-Web.woff2') format('woff2'),
       url('./fonts/SangBleuSunrise-Medium-Web.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SangBleuSunrise';
  src: url('./fonts/SangBleuSunrise-Bold-Web.woff2') format('woff2'),
       url('./fonts/SangBleuSunrise-Bold-Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RivieraNightsThin';
  src: url('./fonts/RivieraNights-Light-Web.woff2') format('woff2'),
       url('./fonts/RivieraNights-Light-Web.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RivieraNightsRegular';
  src: url('./fonts/RivieraNights-Regular-Web.woff2') format('woff2'),
       url('./fonts/RivieraNights-Regular-Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0908;
  --bg-panel: #120f0b;
  --ink: #f2e8d5;
  --ink-dim: #a19d94;
  --accent: #b08d57;
  --accent-ink: #16130e;
  --footer-1: #0c0a08;
  --footer-2: #1c1712;
  --footer-3: #241d14;
  --border: rgba(255,255,255,0.12);
  --starfield: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.55) 40%, transparent 100%),
               radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,0.55) 40%, transparent 100%),
               radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.55) 40%, transparent 100%),
               radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,0.55) 40%, transparent 100%),
               radial-gradient(1.5px 1.5px at 55% 85%, rgba(255,255,255,0.55) 40%, transparent 100%),
               radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,0.55) 40%, transparent 100%);
  --starfield-size: 560px 560px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'SuisseWorks', sans-serif;
  line-height: 1.6;
}

h1, h2 { font-family: 'SangBleuSunrise', serif; font-weight: 700; margin: 0 0 20px; }
p { color: var(--ink-dim); margin: 0 0 18px; max-width: 52ch; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'RivieraNightsThin', sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(6,6,8,0.92), rgba(6,6,8,0));
}
.site-header .logo img { height: 51.6px; display: block; }
.site-header .logo, .site-header nav, .nav-toggle {
  opacity: 1;
  transition: opacity 2s ease;
}
body.tarot-focus .site-header .logo,
body.tarot-focus .site-header nav,
body.tarot-focus .nav-toggle,
body.tarot-focus #tarot-shuffle,
body.reading-exited #tarot-shuffle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
/* #82 */
/* #206 */
#tarot-shuffle.spent {
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-header nav { display: flex; align-items: center; gap: 40px; }
.site-header nav a {
  font-family: 'RivieraNightsThin', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--accent); }
/* #207 */
.nav-tarot-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* #208 */
.nav-tarot-img { display: block; height: 16px; width: auto; }
.nav-tarot-img-accent {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-tarot-wordmark:hover .nav-tarot-img-dim { opacity: 0; }
.nav-tarot-wordmark:hover .nav-tarot-img-accent { opacity: 1; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 51;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 60% 45%, #14131c 0%, #060608 60%);
}
.hero-sparkle {
  position: absolute;
  inset: 0;
  background-image: var(--starfield);
  background-size: var(--starfield-size);
}
.twinkle-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation-name: starPulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 3;
}
@keyframes starPulse {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero-photo {
  position: absolute;
  right: 6%;
  bottom: 0;
  max-height: 92vh;
  z-index: 1;
  opacity: 0;
  animation: heroFadeIn 3s ease-out 3s both;
  filter: blur(0.9px) drop-shadow(0 0 3px var(--bg)) drop-shadow(0 0 3px var(--bg));
}
.hero-text {
  position: absolute;
  left: 30%;
  top: 50%;
  z-index: 2;
  width: min(90%, 640px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.hero .btn {
  opacity: 0;
  animation: heroFadeIn 3s ease-out 6s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-name {
  opacity: 0;
  animation: heroFadeIn 1.2s ease-out both;
}
.hero h1 {
  font-size: clamp(43px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  opacity: 0;
  animation: heroFadeIn 1.5s ease-out 1.5s both;
}
.hero-name {
  font-size: 30px;
}
.hero .btn { margin-top: 12px; }
.scroll-chevron {
  display: block;
  margin: 26px auto 0;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 1s ease;
}
.scroll-chevron::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.scroll-chevron.visible { opacity: 1; }

/* Crowd banner */
.crowd-banner {
  position: relative;
  overflow: hidden;
  height: 60vh;
  background-image: url('images/wide-shot.jpg');
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  will-change: background-position;
}
.crowd-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.crowd-banner-text {
  position: absolute;
  top: 38.2%;
  left: 16%;
  max-width: 40%;
  transform: translateY(-50%);
  text-align: left;
  font-family: 'SangBleuSunrise', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(16px, 2.4vw, 34px);
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: 'RivieraNightsThin', sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: none;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Panels */
.panel {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 100px 8%;
  background-color: var(--bg);
  background-image: var(--starfield);
  background-size: var(--starfield-size);
}
.panel-dark {
  background-image: var(--starfield), radial-gradient(circle at 60% 45%, #14131c 0%, #060608 60%);
  background-size: var(--starfield-size), auto;
}
.panel-reverse { flex-direction: row-reverse; }
.panel-media { flex: 1 1 46%; }
.panel-media img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
#philosophy .panel-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
#philosophy .panel-media img {
  width: auto;
  max-width: 100%;
  max-height: 400px;
  margin: 0 auto;
}
.panel-media-portrait img {
  max-width: 380px;
  border-radius: 50%;
  position: relative;
  top: -15px;
}
.panel-copy { flex: 1 1 54%; }
.seal-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  max-width: 52ch;
  margin: 8px 0 24px;
}
.seal-row img {
  width: 100px;
  height: auto;
}
.seal-row img:nth-child(2) {
  width: 105px;
}
.seal-row img.seal-magic-circle {
  width: 95px;
}
.story-quote {
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  color: #c7c5cf;
}
.story-quote::first-letter {
  font-family: 'SangBleuSunrise', serif;
  font-style: normal;
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.75;
  float: left;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--accent);
}
.email-link {
  font-family: 'Suisse', monospace;
  color: var(--accent);
  text-decoration: none;
}
.inline-link {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background-color: #000000;
  border-top: 1px solid rgba(176,141,87,0.25);
}
.footer-inner {
  padding: 100px 8% 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.footer-side p { max-width: 44ch; }
.footer-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 44ch;
  margin-top: 14px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: 'SuisseWorks', sans-serif;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-dim);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.footer-fine {
  margin: 60px auto 0;
  padding-bottom: 40px;
  width: 100%;
  max-width: none;
  text-align: center;
  font-family: 'RivieraNightsRegular', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: rgba(242,232,213,0.6);
}
/* #39 */
.footer-fine::after {
  content: " · css v63";
  opacity: 0.35;
  font-size: 11px;
}
.footer-brand {
  color: inherit;
}
.jinx-link {
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
}
.jinx-icon {
  height: 25.3px;
  width: auto;
  vertical-align: middle;
  opacity: 0.85;
  position: relative;
  top: -5px;
}

/* Jinx / offerings page */
.jinx-item {
  justify-content: center;
  text-align: center;
}
.jinx-item img {
  max-width: 480px;
  width: 90%;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.jinx-item a:hover img { transform: scale(1.02); }
.jinx-heading { text-align: center; max-width: none; }
.jinx-pair {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.jinx-pair img {
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
}

/* Lightbox */
.lightbox-main { cursor: zoom-in; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-images {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 90vw;
  max-height: 85vh;
  overflow: auto;
  justify-content: center;
}
.lightbox-images img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 955px) {
  /* #209 */
  .hero-photo { right: calc(50% - 420px); }
  .hero-text { left: calc(50% - 191px); }
}

@media (max-width: 860px) {
  .site-header { padding: 18px 24px; flex-wrap: wrap; row-gap: 10px; }
  .panel, .panel-reverse { flex-direction: column; padding: 70px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .seal-row { flex-wrap: wrap; }
}

@media (max-width: 840px) {
  .site-header { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .site-header nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 20px;
    padding: 24px 24px 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-header nav.open { display: flex; }
}

@media (max-width: 714px) {
  .hero-photo { display: none; }
  .hero-text { left: 50%; }
  .hero .btn { animation-delay: 2.5s; }
}

/* Tarot spread */
.tarot-panel { text-align: center; flex-direction: column; padding-bottom: 40px; }
.tarot-panel .eyebrow, .tarot-panel h2 { text-align: center; }
/* 404 page */
.notfound-panel {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}
.notfound-panel p { max-width: 52ch; margin: 0 auto 28px; }
/* #210 */
#online-reading { position: relative; z-index: 0; background-image: none; }
#online-reading::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--starfield);
  background-size: var(--starfield-size);
  opacity: 1;
  transition: opacity 2s ease;
  /* #211 */
  animation: starfieldTwinkle 7s ease-in-out 2s infinite;
}
body.tarot-focus #online-reading::before {
  opacity: 0;
  transition: opacity 0.15s ease;
  animation: none;
}
@keyframes starfieldTwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
/* #212 */
.tarot-instructions {
  max-width: 56ch;
  margin: 0 auto 32px;
  color: var(--ink-dim);
  opacity: 1;
  transition: opacity 0.7s ease;
}
/* #200 */
body.tarot-hide-intro .tarot-instructions {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.tarot-special-note {
  font-size: 13px;
  max-width: 48ch;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
/* #213 */
/* #214 */
/* #215 */
/* #216 */
/* #40 */
.tarot-stage { position: relative; width: 100vw; margin: 16px calc(50% - 50vw) 0; text-align: center; overflow-anchor: none; height: calc(100dvh + 30vh); }
/* #217 */
#online-reading { padding-top: 32px; }
@media (max-width: 860px) {
  #online-reading { padding-top: 20px; }
}
/* #201 */
#tarot-shuffle {
  position: absolute;
  /* #41 */
  bottom: 25%;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 5;
  /* #42 */
  padding: 3px 36px;
  min-width: 260px;
  text-align: center;
  /* #43 */
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  /* #218 */
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* #219 */
#tarot-shuffle.confirming {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* #220 */
/* #221 */
/* #222 */
/* #223 */
/* #224 */
/* #83 */
.tarot-viewport { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.tarot-arena { position: relative; width: 100%; height: 100%; transition: opacity 2s ease, filter 2s linear; overflow-anchor: none; }
/* #202 */
/* #225 */
/* #226 */
.tarot-arena.exiting { opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
/* #227 */
/* #228 */
/* #44 */
/* #84 */
.tarot-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.tarot-lightbox-overlay.open { opacity: 1; pointer-events: auto; cursor: pointer; }
/* #229 */
body.extinguishing .tarot-arena { filter: brightness(0.15); }
/* #45 */
.tarot-heading {
  position: absolute;
  /* #85 */
  top: 25%;
  left: 50%;
  transform: translate(-50%, 0);
  margin: 0;
  font-family: 'RivieraNightsThin', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 1;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}
.tarot-heading.faded { opacity: 0; pointer-events: none; }
/* #46 */
.tarot-advance {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 260;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink-dim);
  background: rgba(6, 6, 8, 0.4);
  color: var(--ink-dim);
  font-family: 'RivieraNightsThin', sans-serif;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.tarot-advance.visible { opacity: 0.7; pointer-events: auto; }
.tarot-advance:hover { opacity: 1; }
.tarot-fan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.tarot-fan.shuffling .tarot-card { pointer-events: none; }
.tarot-card {
  position: absolute;
  top: 0;
  left: 0;
  /* #230 */
  --card-w: clamp(60px, calc(50.7px + 2.38vw), 84px);
  --card-h: clamp(98px, calc(83.3px + 3.76vw), 136px);
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.7s ease;
  cursor: pointer;
  perspective: 1000px;
  /* #231 */
  will-change: transform;
  backface-visibility: hidden;
  /* #232 */
  scroll-margin-top: 110px;
}
.tarot-card.locked { cursor: default; }
.tarot-card.disabled { cursor: default; opacity: 0.35; filter: grayscale(0.5); }
.tarot-card.chosen { cursor: pointer; }
.tarot-card.chosen.flipped { cursor: default; }
/* #233 */
@media (hover: hover) and (pointer: fine) {
  .tarot-card:not(.chosen):not(.disabled):not(.locked):hover { filter: brightness(1.2); }
}

/* Silver plates */
.tarot-plate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6f6f8 0%, #cdd0d6 42%, #94979e 76%, #5f6167 100%);
  box-shadow: 0 3px 7px rgba(0,0,0,0.45), inset 0 1px 2px rgba(255,255,255,0.55);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.9s ease, opacity 0.9s ease;
}
.tarot-plate.retired {
  transform: translateY(40px);
  opacity: 0;
  z-index: -1;
}
.tarot-plate-left { margin-left: -258px; }
.tarot-plate-right { margin-left: 204px; }

/* Candles */
.tarot-candle {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -76px;
  width: 32px;
  height: 76px;
  transition: transform 0.8s ease;
  z-index: 3;
}
/* #234 */
.tarot-candle.above-overlay { z-index: 255; }
.tarot-candle.retired {
  transform: translateY(40px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: transform 0.9s ease, opacity 0.9s ease;
}
/* #235 */
/* #236 */
.tarot-candle-left { margin-left: -247px; }
.tarot-candle-right { margin-left: 215px; }
/* #237 */
.tarot-candle.floating {
  animation: candleFloat 9s ease-in-out infinite;
}
.tarot-candle-right.floating { animation-duration: 10s; animation-delay: -3.5s; }
@keyframes candleFloat {
  0%   { transform: translate(var(--cx, 0px), var(--cy, 0px)) translateZ(0); }
  25%  { transform: translate(calc(var(--cx, 0px) + 3px), calc(var(--cy, 0px) - 4px)) translateZ(0); }
  50%  { transform: translate(calc(var(--cx, 0px) - 2px), calc(var(--cy, 0px) + 2px)) translateZ(0); }
  75%  { transform: translate(calc(var(--cx, 0px) + 2px), calc(var(--cy, 0px) + 3px)) translateZ(0); }
  100% { transform: translate(var(--cx, 0px), var(--cy, 0px)) translateZ(0); }
}
.tarot-candle-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  /* #203 */
  width: 32px;
  height: 50px;
  background: linear-gradient(180deg, #f2e8d5, #cbb98a);
  border-radius: 6px 6px 1px 1px;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.3);
}
.tarot-candle-wick {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 9px;
  background: #2a2118;
}
.tarot-candle-flame {
  position: absolute;
  bottom: 56px;
  left: 50%;
  width: 13px;
  height: 22px;
  margin-left: -6.5px;
  background: radial-gradient(circle at 50% 32%, #fff6d8 0%, #ffb347 42%, #b08d57 78%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 95%;
  animation: candleFlicker 1.7s ease-in-out infinite;
}
.tarot-candle-glow {
  position: absolute;
  bottom: 42px;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  background: radial-gradient(circle, rgba(255,179,71,0.32), transparent 70%);
  border-radius: 50%;
  animation: candleGlow 1.7s ease-in-out infinite;
}
@keyframes candleFlicker {
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(0deg); opacity: 1; }
  25% { transform: scaleY(1.08) scaleX(0.94) rotate(-2deg); opacity: 0.92; }
  50% { transform: scaleY(0.95) scaleX(1.05) rotate(2deg); opacity: 1; }
  75% { transform: scaleY(1.05) scaleX(0.97) rotate(-1deg); opacity: 0.95; }
}
@keyframes candleGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}
/* #47 */
@keyframes tarotMagicFlash {
  0% { filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(255,201,107,0)); }
  45% { filter: brightness(2.4) saturate(0.3) drop-shadow(0 0 22px rgba(255,201,107,0.95)); }
  100% { filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(255,201,107,0)); }
}
.tarot-magic-flash { animation: tarotMagicFlash 0.7s ease; }
@keyframes tarotFlameFlash {
  0% { transform: scaleY(1) scaleX(1); opacity: 1; filter: brightness(1); }
  35% { transform: scaleY(1.7) scaleX(1.3); opacity: 1; filter: brightness(2); }
  100% { transform: scaleY(1) scaleX(1); opacity: 1; filter: brightness(1); }
}
.tarot-candle-flame.magic-flash { animation: tarotFlameFlash 0.7s ease; }
.tarot-candle-glow.magic-flash { animation: tarotFlameFlash 0.7s ease; }
.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* #238 */
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.tarot-card.flipped .tarot-card-inner { transform: rotateY(180deg); }
.tarot-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.tarot-card-back {
  border-color: rgba(176,141,87,0.45);
}
.tarot-card-back-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tarot-card-front {
  background: var(--bg-panel);
  border-color: var(--accent);
  transform: rotateY(180deg);
}
.tarot-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}
/* #239 */
.tarot-card-caption {
  position: absolute;
  top: 100%;
  left: 50%;
  /* #240 */
  margin-left: -76px;
  transform: scale(0.5);
  transform-origin: top center;
  /* #48 */
  margin-top: 4px;
  width: 152px;
  height: 32px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.tarot-card.show-name .tarot-card-caption { opacity: 0.9; }
/* #241 */
.tarot-arena.reveal-complete .tarot-card-caption { transform: scale(0.36); }
.tarot-card-label {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 32px;
  text-align: center;
  font-family: 'RivieraNightsThin', sans-serif;
  /* #242 */
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.tarot-card.show-label .tarot-card-label { opacity: 1; }
/* #243 */
/* #49 */
/* #50 */
.tarot-card.featured .tarot-card-label { font-size: 7px; margin-top: 12px; }
/* #51 */
.tarot-arena.reveal-complete .tarot-card-label { font-family: 'RivieraNightsRegular', sans-serif; }
.tarot-card-meaning {
  position: absolute;
  top: 100%;
  left: 50%;
  /* #244 */
  margin-left: -76px;
  transform: scale(0.5);
  transform-origin: top center;
  margin-top: 52px;
  width: 152px;
  text-align: center;
  /* #52 */
  font-family: var(--reveal-bodytext-font, 'FrauncesReveal'), 'SuisseWorks', serif;
  font-style: italic;
  font-weight: 480;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  /* #204 */
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 1.1s ease 0.15s;
  pointer-events: none;
}
.tarot-card.show-meaning .tarot-card-meaning { opacity: 1; }
.tarot-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  text-align: center;
  font-family: 'RivieraNightsThin', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--ink-dim);
  z-index: 5;
  transition: opacity 0.8s ease, top 0.4s ease;
}
/* #245 */
.tarot-progress.pre-shuffle { top: 77%; }
/* #246 */
.tarot-progress-emphasis { font-size: 1.45em; }
/* #247 */
/* #53 */
/* #54 */
.tarot-progress.reading-cta {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 2px;
  width: auto;
  max-width: none;
  white-space: nowrap;
  transform: translate(-50%, 0);
  cursor: pointer;
  z-index: 6;
  padding: 3px 36px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  background: transparent;
}
/* #248 */
.tarot-full-reading {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(86vw, 620px);
  text-align: center;
  font-style: italic;
  font-family: var(--reveal-bodytext-font, 'FrauncesReveal'), 'SuisseWorks', serif;
  font-weight: 480;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  /* #249 */
  font-size: clamp(17px, 2.6vw, 26px);
  line-height: 1.55;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 4;
}
.tarot-full-reading.visible { opacity: 1; }
/* #250 */
.tarot-reading {
  display: none;
  opacity: 0;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  z-index: 4;
  /* #251 */
  transition: opacity 1.2s ease;
}
/* #252 */
/* #55 */
/* #56 */
.tarot-reading.visible { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; padding: 10px 0; box-sizing: border-box; }
.tarot-reading.visible.faded-in { opacity: 1; }
/* #86 */
.tarot-reading-deck-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  /* #57 */
  margin: 0 auto 14px;
  /* #253 */
  /* #58 */
  margin-top: 165px;
  /* #254 */
  scroll-margin-top: 120px;
}
.tarot-reading-deck-photo {
  display: block;
  max-width: 460px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
/* #59 */
.tarot-deck-cards {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 104px;
  margin-bottom: 22px;
  pointer-events: none;
  z-index: 2;
}
.tarot-deck-card {
  position: absolute;
  top: 0;
  width: 64px;
  height: 104px;
  margin-left: -32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(176,141,87,0.45);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  /* #255 */
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tarot-deck-card.landed { opacity: 1; }
@keyframes deckCardFloat0 {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-7px); }
}
@keyframes deckCardFloat1 {
  0%, 100% { transform: translateY(-12px); }
  50% { transform: translateY(-19px); }
}
@keyframes deckCardFloat2 {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-7px); }
}
.tarot-deck-card-0 { left: 25%; z-index: 1; animation: deckCardFloat0 8s ease-in-out infinite; }
.tarot-deck-card-1 { left: 50%; z-index: 2; animation: deckCardFloat1 9s ease-in-out infinite; animation-delay: -2s; }
.tarot-deck-card-2 { left: 75%; z-index: 1; animation: deckCardFloat2 10s ease-in-out infinite; animation-delay: -4s; }
/* #60 */
.tarot-reading-deck-wrap .tarot-candle {
  left: auto;
  margin-left: 0;
  top: -60px;
}
/* #256 */
/* #257 */
.tarot-reading-deck-wrap .tarot-candle-left { left: -4%; }
.tarot-reading-deck-wrap .tarot-candle-right { left: auto; right: -4%; }
/* #61 */
.tarot-upsell-copy {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  /* #62 */
  margin-bottom: auto;
}
.tarot-upsell-copy p { margin: 0; }
/* #63 */
.tarot-upsell-teaser {
  margin-top: 10px !important;
  color: var(--accent);
  font-style: italic;
}
.tarot-upsell-teaser:empty { display: none; margin-top: 0 !important; }
/* #64 */
.tarot-upsell-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tarot-upsell-card { text-align: center; }
.tarot-upsell-position {
  display: block;
  font-family: 'RivieraNightsThin', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.tarot-upsell-name { display: inline-block; width: auto; max-width: 180px; height: 24px; object-fit: contain; vertical-align: middle; }
/* #65 */
.tarot-upsell-tag {
  display: inline-block;
  margin-left: 8px;
  font-family: 'RivieraNightsThin', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  vertical-align: middle;
}
.tarot-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tarot-email-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tarot-email-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: 'SuisseWorks', sans-serif;
  font-size: 15px;
  color: var(--ink);
  min-width: 240px;
}
.tarot-email-input::placeholder { color: var(--ink-dim); }
.tarot-email-input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 860px) {
  /* #258 */
  .tarot-upsell-cards { gap: 8px; }
  /* #259 */
  .tarot-upsell-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; text-align: center; }
  .tarot-upsell-position { flex: 0 0 auto; }
  .tarot-upsell-name { height: 18px; }
  /* #260 */
  .tarot-upsell-tag { flex: 0 0 auto; margin-left: 0; }
  /* #66 */
  .tarot-reading-deck-wrap { max-width: 84%; scroll-margin-top: 100px; margin-top: 135px; }
  .tarot-deck-card { width: 46px; height: 75px; margin-left: -23px; }
  .tarot-deck-cards { height: 75px; margin-bottom: 14px; }
  /* #261 */
  /* #262 */
  .tarot-reading-deck-wrap .tarot-candle { top: -40px; }
  /* #263 */
  #tarot-arena .tarot-candle { opacity: 0; pointer-events: none; }
  #tarot-arena .tarot-plate { display: none; }
  /* #264 */
  .tarot-fan { top: 50%; }
  /* #265 */
  .tarot-progress { top: 50%; }
  .tarot-progress.pre-shuffle { top: 74%; }
  /* #266 */
  .tarot-plate { width: 38px; height: 13px; margin-top: -6.5px; }
  .tarot-plate.retired { transform: translateY(28px); }
  .tarot-plate-left { margin-left: -119px; }
  .tarot-plate-right { margin-left: 81px; }
  .tarot-candle { width: 22px; height: 53px; margin-top: -53px; }
  .tarot-candle.retired { transform: translateY(28px); }
  /* #267 */
  .tarot-candle-left { margin-left: -111px; }
  .tarot-candle-right { margin-left: 89px; }
  .tarot-candle-body { width: 22px; height: 35px; border-radius: 4px 4px 1px 1px; }
  .tarot-candle-wick { bottom: 35px; }
  .tarot-candle-flame { bottom: 39px; width: 9px; height: 16px; margin-left: -4.5px; }
  .tarot-candle-glow { bottom: 29px; width: 44px; height: 44px; margin-left: -22px; }
}

/* #268 */
@media (pointer: coarse) {
  #tarot-arena .tarot-candle { opacity: 0; pointer-events: none; }
  #tarot-arena .tarot-plate { display: none; }
}

/* #269 */
@media (min-width: 861px) and (max-width: 1180px) {
  /* #270 */
  .tarot-fan { top: 50%; }
  /* #271 */
  .tarot-plate { width: 46px; height: 15.5px; margin-top: -8px; }
  .tarot-plate.retired { transform: translateY(34px); }
  .tarot-plate-left { margin-left: -189px; }
  .tarot-plate-right { margin-left: 143px; }
  .tarot-candle { width: 27px; height: 65px; margin-top: -65px; }
  .tarot-candle.retired { transform: translateY(34px); }
  /* #272 */
  .tarot-candle-left { margin-left: -179.5px; }
  .tarot-candle-right { margin-left: 152.5px; }
  .tarot-candle-body { width: 27px; height: 43px; border-radius: 5px 5px 1px 1px; }
  .tarot-candle-wick { bottom: 43px; }
  .tarot-candle-flame { bottom: 48px; width: 11px; height: 19px; margin-left: -5.5px; }
  .tarot-candle-glow { bottom: 36px; width: 54px; height: 54px; margin-left: -27px; }
}

/* #67 */
@media (max-height: 820px) and (orientation: landscape) {
  .tarot-full-reading { font-size: clamp(13px, 2vw, 17px); line-height: 1.4; }
  .tarot-progress.reading-cta { font-size: 11px; padding: 2px 22px; }
  /* #68 */
  .tarot-card.featured .tarot-card-label { margin-top: 8px; font-size: 6px; }
  .tarot-card-meaning { font-size: 11px; }
  /* #69 */
  .tarot-reading.visible { gap: 10px; padding: 6px 0; }
  .tarot-reading-deck-wrap { margin-top: 90px; margin-bottom: 8px; }
  .tarot-deck-cards { height: 75px; margin-bottom: 14px; }
  .tarot-deck-card { width: 46px; height: 75px; margin-left: -23px; }
  .tarot-reading-deck-photo { max-width: 260px; }
  .tarot-reading-deck-wrap .tarot-candle { top: -45px; }
  /* #273 */
  .tarot-upsell-copy { padding-top: 10px; font-size: 12px; }
  .tarot-upsell-cards { gap: 8px; }
  .tarot-upsell-name { height: 18px; }
  .tarot-actions { margin-top: 4px; }
}
/* #70 */
.tarot-candle.candle-reveal-landscape { width: 43px; height: 103px; margin-top: -103px; }
.tarot-candle.candle-reveal-landscape .tarot-candle-body { width: 43px; height: 68px; }
.tarot-candle.candle-reveal-landscape .tarot-candle-wick { bottom: 68px; width: 3px; height: 12px; }
.tarot-candle.candle-reveal-landscape .tarot-candle-flame { bottom: 76px; width: 18px; height: 30px; margin-left: -9px; }
.tarot-candle.candle-reveal-landscape .tarot-candle-glow { bottom: 57px; width: 86px; height: 86px; margin-left: -43px; }
