:root {
  --bg: #07070a;
  --surface-1: #0d0e12;
  --surface-2: #12131a;
  --fg: #f4f0e6;
  --fg-soft: #d8d2c6;
  --gold: #d7b86e;
  --gold-light: #f1dca6;
  --gold-dark: #9c7d3b;
  --violet: #6b4eff;
  --violet-soft: #b7a9ff;
  --success: #34d399;
  --alert: #fbbf24;
  --danger: #f87171;
  --hairline: rgba(244, 240, 230, 0.1);
  --glow-border: rgba(215, 184, 110, 0.35);
  --radius-card: 16px;
  --radius-control: 14px;
  --shadow-gold-soft: 0 14px 38px rgba(156, 125, 59, 0.22);
  --shadow-gold-strong: 0 18px 50px rgba(156, 125, 59, 0.35);
  --transition-fast: 180ms ease;
  --transition-main: 220ms ease;
  --card-back-url: url("/assets/back.webp");
  --tarot-card-ratio: 15 / 28;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: "Manrope", "Inter", sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(107, 78, 255, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(215, 184, 110, 0.14) 0%, transparent 43%),
    linear-gradient(180deg, #07070a 0%, #08090f 48%, #07070a 100%);
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(244, 240, 230, 0.05) 0 1px,
      transparent 1px 4px
    );
  z-index: -1;
}

a {
  color: inherit;
}

.startup-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 16% 0%, rgba(107, 78, 255, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(215, 184, 110, 0.14) 0%, transparent 43%),
    linear-gradient(180deg, #07070a 0%, #08090f 48%, #07070a 100%);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.startup-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(244, 240, 230, 0.05) 0 1px,
      transparent 1px 4px
    );
}

.startup-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-loader-inner {
  width: clamp(96px, 13vw, 146px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  perspective: 900px;
  filter: drop-shadow(0 20px 30px rgba(7, 7, 10, 0.58));
}

.startup-loader-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: startupCoinSpin 1.3s linear infinite;
  transform-style: preserve-3d;
}

.startup-loader-progress {
  margin: 12px 0 0;
  position: relative;
  z-index: 1;
  color: rgba(244, 240, 230, 0.78);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-align: center;
}

@keyframes startupCoinSpin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 10, 0.84);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(215, 184, 110, 0.42);
  display: grid;
  place-items: center;
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(241, 220, 166, 0.2);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.title {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(16px, 3.4vw, 22px);
}

.eyebrow {
  margin: 0 0 3px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--gold);
}

.top-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  min-height: 40px;
  min-width: 40px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg-soft);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-main);
}

.icon-button:hover {
  border-color: var(--glow-border);
  color: var(--fg);
  box-shadow: 0 0 0 3px rgba(215, 184, 110, 0.12);
}

.link-button {
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--fg-soft);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 13px;
  transition: var(--transition-main);
}

.link-button:hover {
  border-color: var(--glow-border);
  color: var(--fg);
  background: rgba(244, 240, 230, 0.05);
}

.app-root {
  padding: 20px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  background: rgba(7, 7, 10, 0.72);
}

.footer-row {
  padding: 12px 0 16px;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-row p {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}

.admin-footer-link {
  text-decoration: none;
  font-size: 12px;
  color: var(--violet-soft);
}

.admin-footer-link:hover {
  text-decoration: underline;
}

.card-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 18px;
  position: relative;
}

.card-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 62px;
  height: 62px;
  border-top: 1px solid rgba(215, 184, 110, 0.42);
  border-right: 1px solid rgba(215, 184, 110, 0.42);
  border-top-right-radius: var(--radius-card);
  pointer-events: none;
  opacity: 0.85;
}

.screen-shell {
  display: grid;
  gap: 16px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.screen-main,
.screen-visual {
  display: grid;
  gap: 14px;
}

.landing-shell {
  display: grid;
  gap: 16px;
}

.landing-hero {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3.2vw, 36px);
  background:
    radial-gradient(circle at 12% 12%, rgba(107, 78, 255, 0.24), transparent 35%),
    radial-gradient(circle at 84% 82%, rgba(215, 184, 110, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--surface-1);
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.landing-stars {
  inset: -2%;
}

.landing-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--gold);
}

.landing-title {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(46px, 5vw, 112px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-lead {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(20px, 2.3vw, 34px);
  color: rgba(241, 220, 166, 0.92);
  font-style: italic;
}

.landing-copy {
  margin: 0;
  color: rgba(216, 210, 198, 0.9);
  max-width: 950px;
  font-size: clamp(15px, 1.25vw, 19px);
}

.landing-card-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  align-items: end;
  width: min(1060px, 100%);
  margin: 8px auto 0;
}

.landing-card {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(156, 125, 59, 0.52);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 9, 18, 0.16), rgba(7, 7, 10, 0.32)),
    #11121a;
  box-shadow: none;
  aspect-ratio: var(--tarot-card-ratio);
  position: relative;
}

.landing-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-card figcaption {
  display: none;
}

.landing-card.sample-1 {
  transform: rotate(-8deg) translateY(8px);
}

.landing-card.sample-2 {
  transform: rotate(-3deg) translateY(2px);
}

.landing-card.sample-3 {
  transform: rotate(3deg) translateY(2px);
}

.landing-card.back-card {
  transform: rotate(8deg) translateY(10px);
}

.landing-actions {
  margin-top: 8px;
}

.landing-resume-note {
  margin: 0 0 20px;
  color: var(--fg-soft);
  font-size: 14px;
}

.landing-resume-actions {
  align-items: center;
}

.landing-start {
  min-width: 210px;
  box-shadow:
    0 0 0 1px rgba(241, 220, 166, 0.28) inset,
    0 14px 34px rgba(156, 125, 59, 0.44);
  animation: landingGlow 2.8s ease-in-out infinite;
}

.landing-warning {
  margin: 6px 0 0;
  border-radius: 14px;
  border: 1px solid rgba(156, 125, 59, 0.62);
  background: linear-gradient(120deg, rgba(215, 184, 110, 0.18), rgba(241, 220, 166, 0.13));
  color: #f5e9c8;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

@keyframes landingGlow {
  0%,
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

.onboarding-card-preview {
  display: block;
  min-width: 0;
  width: min(100%, clamp(160px, 22vh, 260px));
  margin: 6px auto 0;
  aspect-ratio: var(--tarot-card-ratio);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(156, 125, 59, 0.52);
  box-shadow: none;
  background: rgba(9, 10, 18, 0.36);
}

.onboarding-flow {
  position: relative;
  isolation: isolate;
}

.onboarding-flow::before,
.onboarding-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.onboarding-flow::before {
  opacity: 0.035;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 65%),
    radial-gradient(1px 1px at 81% 22%, #fff, transparent 65%),
    radial-gradient(1px 1px at 26% 78%, #fff, transparent 65%),
    radial-gradient(1px 1px at 72% 64%, #fff, transparent 65%);
  background-size: 220px 220px, 260px 260px, 240px 240px, 280px 280px;
}

.onboarding-flow::after {
  background:
    radial-gradient(circle at 20% 14%, rgba(107, 78, 255, 0.08), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(215, 184, 110, 0.05), transparent 30%);
}

.onboarding-grid {
  gap: 16px;
  align-items: stretch;
}

.onboarding-panel,
.onboarding-showcase {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(244, 240, 230, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    var(--surface-1);
}

.onboarding-panel::before,
.onboarding-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.onboarding-panel > *,
.onboarding-showcase > * {
  position: relative;
  z-index: 1;
}

.onboarding-panel {
  padding: clamp(18px, 2vw, 28px);
  gap: clamp(16px, 1.5vw, 22px);
  background:
    radial-gradient(circle at 14% 10%, rgba(107, 78, 255, 0.08), transparent 34%),
    radial-gradient(circle at 86% 90%, rgba(215, 184, 110, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    var(--surface-1);
}

.onboarding-showcase {
  padding: clamp(18px, 2vw, 30px);
  gap: 14px;
  background:
    radial-gradient(circle at 18% 14%, rgba(107, 78, 255, 0.07), transparent 36%),
    radial-gradient(circle at 84% 76%, rgba(215, 184, 110, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0.006)),
    var(--surface-1);
  transition: border-color var(--transition-main), transform var(--transition-fast), box-shadow var(--transition-main);
}

.onboarding-showcase:hover {
  border-color: rgba(215, 184, 110, 0.16);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(215, 184, 110, 0.05);
}

.onboarding-flow .flow-header {
  gap: 8px;
}

.onboarding-flow .step-counter {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(216, 210, 198, 0.82);
}

.onboarding-flow .stepper {
  gap: 8px;
  align-items: center;
}

.onboarding-flow .step-dot {
  height: 2px;
  border-radius: 999px;
  border: 0;
  background: rgba(244, 240, 230, 0.12);
  position: relative;
}

.onboarding-flow .step-dot.active {
  background: linear-gradient(90deg, rgba(215, 184, 110, 0.95), rgba(241, 220, 166, 0.85));
}

.onboarding-flow .step-dot.active:nth-child(1)::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(215, 184, 110, 0.14);
}

.onboarding-flow .flow-header .screen-title {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(34px, 3.15vw, 54px);
  line-height: 0.94;
  letter-spacing: 0.018em;
}

.onboarding-flow .flow-header .screen-subtitle {
  margin-top: 2px;
  color: rgba(216, 210, 198, 0.72);
  font-family: "Manrope", "Rubik", sans-serif;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.35;
}

.onboarding-form {
  gap: 14px;
}

.onboarding-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.onboarding-section + .onboarding-section {
  border-top: 1px solid rgba(244, 240, 230, 0.06);
  padding-top: 14px;
}

.onboarding-section-kicker {
  margin: 0;
  color: rgba(216, 210, 198, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.onboarding-section-head {
  display: grid;
  gap: 2px;
}

.onboarding-helper-inline {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(216, 210, 198, 0.66);
}

.onboarding-label {
  margin-bottom: 2px;
  color: rgba(244, 240, 230, 0.9);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-panel .input {
  border-radius: 14px;
  border-color: rgba(244, 240, 230, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    rgba(13, 14, 18, 0.92);
  padding: 14px 15px;
  font-size: 16px;
  font-family: "Manrope", "Rubik", sans-serif;
}

.onboarding-panel .input::placeholder {
  color: rgba(244, 240, 230, 0.42);
}

.onboarding-panel .input:hover {
  border-color: rgba(244, 240, 230, 0.14);
}

.onboarding-panel .input:focus {
  border-color: rgba(215, 184, 110, 0.38);
  box-shadow:
    0 0 0 3px rgba(215, 184, 110, 0.12),
    0 0 18px rgba(215, 184, 110, 0.08);
}

.onboarding-panel .input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.onboarding-panel .field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #fca5a5;
}

.onboarding-segmented {
  gap: 8px;
}

.seg-option {
  position: relative;
}

.seg-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.seg-option-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0)),
    rgba(18, 19, 26, 0.76);
  color: rgba(216, 210, 198, 0.92);
  font-family: "Manrope", "Rubik", sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-main);
  cursor: pointer;
}

.seg-option:hover .seg-option-pill {
  border-color: rgba(215, 184, 110, 0.2);
  box-shadow: 0 0 0 2px rgba(215, 184, 110, 0.05);
  color: var(--fg);
}

.seg-option input:checked + .seg-option-pill {
  border-color: rgba(215, 184, 110, 0.35);
  background:
    linear-gradient(180deg, rgba(215, 184, 110, 0.12), rgba(255, 255, 255, 0)),
    rgba(18, 19, 26, 0.82);
  color: rgba(244, 240, 230, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(241, 220, 166, 0.08),
    0 0 0 2px rgba(215, 184, 110, 0.06);
}

.seg-option input:focus-visible + .seg-option-pill {
  outline: none;
  border-color: rgba(215, 184, 110, 0.34);
  box-shadow: 0 0 0 3px rgba(215, 184, 110, 0.12);
}

.seg-option input:disabled + .seg-option-pill {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboarding-options {
  gap: 12px;
}

.onboarding-switch-block {
  padding: 13px 14px;
  border-radius: 16px;
  border-color: rgba(244, 240, 230, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0)),
    rgba(18, 19, 26, 0.74);
  gap: 0;
}

.onboarding-switch-head {
  align-items: flex-start;
  gap: 12px;
}

.switch-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.onboarding-switch-block .switch-label {
  color: rgba(244, 240, 230, 0.94);
  font-family: "Manrope", "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.onboarding-switch-block .helper-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(216, 210, 198, 0.68);
}

.switch-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: 0 0 auto;
}

.switch-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.08);
  background: rgba(13, 14, 18, 0.72);
  color: rgba(216, 210, 198, 0.7);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.switch-status-badge.is-on {
  border-color: rgba(215, 184, 110, 0.22);
  color: rgba(241, 220, 166, 0.9);
  background: rgba(215, 184, 110, 0.06);
}

.switch-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-premium input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-premium-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.08);
  background: #1a1b24;
  position: relative;
  transition: var(--transition-main);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03);
}

.switch-premium-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(244, 240, 230, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), background var(--transition-main);
}

.switch-premium:hover .switch-premium-ui {
  border-color: rgba(215, 184, 110, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.03),
    0 0 0 2px rgba(215, 184, 110, 0.05);
}

.switch-premium input:checked + .switch-premium-ui {
  background: rgba(215, 184, 110, 0.18);
  border-color: rgba(215, 184, 110, 0.26);
}

.switch-premium input:checked + .switch-premium-ui .switch-premium-thumb {
  transform: translateX(20px);
  background: linear-gradient(180deg, rgba(241, 220, 166, 0.98), rgba(215, 184, 110, 0.94));
}

.switch-premium input:focus-visible + .switch-premium-ui {
  outline: none;
  border-color: rgba(215, 184, 110, 0.28);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.03),
    0 0 0 3px rgba(215, 184, 110, 0.1);
}

.switch-premium input:disabled + .switch-premium-ui {
  opacity: 0.45;
}

.onboarding-cta {
  margin-top: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(244, 240, 230, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0)),
    rgba(10, 11, 15, 0.76);
}

.onboarding-cta-main {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.onboarding-start-button {
  min-height: 52px;
  padding-inline: 22px;
  min-width: 180px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 24px rgba(156, 125, 59, 0.22);
}

.onboarding-start-button:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 28px rgba(156, 125, 59, 0.26);
}

.onboarding-start-button.is-loading {
  position: relative;
  color: rgba(10, 10, 13, 0.9);
}

.onboarding-cta-note {
  margin: 0;
  color: rgba(216, 210, 198, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.onboarding-cta-secondary {
  margin-top: 10px;
}

.onboarding-showcase-copy {
  display: grid;
  gap: 8px;
}

.onboarding-showcase .section-subtitle {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.onboarding-showcase-title {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.98;
  letter-spacing: 0.012em;
  color: rgba(244, 240, 230, 0.98);
}

.onboarding-showcase-text {
  margin: 0;
  color: rgba(216, 210, 198, 0.72);
  font-size: 14px;
  line-height: 1.45;
  max-width: 34ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.onboarding-card-stage {
  position: relative;
  min-height: clamp(260px, 42vh, 440px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(244, 240, 230, 0.06);
  background:
    radial-gradient(circle at 50% 46%, rgba(215, 184, 110, 0.08), transparent 34%),
    radial-gradient(circle at 50% 46%, rgba(107, 78, 255, 0.07), transparent 48%),
    rgba(10, 11, 16, 0.45);
  overflow: hidden;
}

.onboarding-card-stage::before {
  content: "";
  position: absolute;
  width: min(62%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 184, 110, 0.14), rgba(215, 184, 110, 0.02) 44%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.onboarding-card-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 64%, rgba(7, 7, 10, 0.24) 100%);
}

.onboarding-card-frame {
  position: relative;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(156, 125, 59, 0.26);
  background: rgba(7, 7, 10, 0.18);
  transition: transform var(--transition-main), border-color var(--transition-main), box-shadow var(--transition-main);
}

.onboarding-card-frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 14px;
  border: 1px solid rgba(241, 220, 166, 0.12);
  pointer-events: none;
}

.onboarding-card-frame::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 38px;
  height: 38px;
  border-top: 1px solid rgba(215, 184, 110, 0.35);
  border-right: 1px solid rgba(215, 184, 110, 0.35);
  border-top-right-radius: 18px;
  opacity: 0.7;
  pointer-events: none;
}

.onboarding-showcase:hover .onboarding-card-frame {
  transform: translateY(-4px);
  border-color: rgba(215, 184, 110, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), 0 0 24px rgba(215, 184, 110, 0.05);
}

.onboarding-showcase .onboarding-card-preview {
  width: min(100%, clamp(180px, 22vw, 290px));
  border-radius: 14px;
  border: 1px solid rgba(156, 125, 59, 0.42);
  background: rgba(9, 10, 18, 0.2);
}

.screen-title {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 34px);
  font-weight: 600;
  font-family: "Bodoni Moda", serif;
  letter-spacing: 0.03em;
}

.screen-subtitle {
  margin: 7px 0 0;
  font-size: 15px;
  color: var(--fg-soft);
}

.flow-header {
  display: grid;
  gap: 4px;
}

.flow-header .screen-title {
  font-size: clamp(24px, 2.25vw, 36px);
  line-height: 0.98;
}

.flow-header .screen-subtitle {
  margin-top: 1px;
  font-size: clamp(12px, 0.85vw, 15px);
  line-height: 1.15;
}

.flow-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.step-dot {
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 240, 230, 0.14);
  border: 1px solid transparent;
}

.step-dot.active {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-color: rgba(241, 220, 166, 0.35);
}

.step-counter {
  font-size: 10px;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.label {
  display: block;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 6px;
}

.helper-text {
  margin: 6px 0 0;
  color: var(--fg-soft);
  font-size: 12px;
  opacity: 0.9;
}

.ritual-count {
  margin: 0;
  font-size: 12px;
  color: var(--fg-soft);
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

.hidden {
  display: none !important;
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: var(--radius-control);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  color: var(--fg);
  padding: 12px 13px;
  font-size: 15px;
  transition: var(--transition-main);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(244, 240, 230, 0.45);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(215, 184, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(215, 184, 110, 0.18);
}

.textarea {
  min-height: 114px;
  resize: vertical;
}

.radio-group,
.switch-group,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.switch-item {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-soft);
  cursor: pointer;
  transition: var(--transition-main);
}

.switch-item:hover {
  border-color: var(--glow-border);
  color: var(--fg);
}

.switch-item input {
  accent-color: var(--gold);
}

.switch-block {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.switch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.switch-label {
  font-size: 14px;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-main);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.button {
  color: #07070a;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: var(--shadow-gold-soft);
}

.button:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-strong);
}

.button.secondary {
  color: var(--fg);
  background: transparent;
  border-color: var(--hairline);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(244, 240, 230, 0.06);
  border-color: var(--glow-border);
}

.button.ghost {
  color: var(--violet-soft);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  font-weight: 100;
}

.button.ghost:hover {
  color: #d3caff;
}

.button.period {
  min-height: 38px;
  font-size: 12px;
  padding: 9px 11px;
}

.button.period.active {
  color: #07070a;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  border-color: transparent;
}

.notice {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  color: var(--fg-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

.notice.error {
  border-color: rgba(248, 113, 113, 0.65);
  color: #fecaca;
}

.notice.success {
  border-color: rgba(52, 211, 153, 0.55);
  color: #bbf7d0;
}

.preparation-flow {
  display: grid;
  gap: 12px;
}

.preparation-flow .flow-header {
  gap: 8px;
}

.preparation-flow .step-counter {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: rgba(216, 210, 198, 0.9);
  text-transform: uppercase;
}

.preparation-flow .stepper {
  gap: 8px;
  align-items: center;
}

.preparation-flow .step-dot {
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 240, 230, 0.12);
  border: 0;
  position: relative;
}

.preparation-flow .step-dot.active {
  background: linear-gradient(90deg, rgba(215, 184, 110, 0.95), rgba(241, 220, 166, 0.85));
}

.preparation-flow .step-dot.active:nth-child(3)::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(215, 184, 110, 0.14);
}

.preparation-flow .flow-header .screen-title {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(34px, 3.5vw, 58px);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.preparation-flow .flow-header .screen-subtitle {
  font-family: "Manrope", "Rubik", sans-serif;
  color: rgba(216, 210, 198, 0.9);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.35;
  margin-top: 3px;
}

.ritual-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(16px, 1.6vw, 22px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
    linear-gradient(116deg, rgba(19, 15, 46, 0.42), rgba(9, 10, 16, 0.8) 44%, rgba(17, 14, 9, 0.44));
}

.ritual-shell::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 18% 26%, rgba(107, 78, 255, 0.16), transparent 52%),
    radial-gradient(circle at 82% 74%, rgba(215, 184, 110, 0.1), transparent 44%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.ritual-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(215, 184, 110, 0.04), transparent 42%),
    radial-gradient(circle at 50% 58%, transparent 58%, rgba(7, 7, 10, 0.28) 100%);
}

.ritual-shell > * {
  position: relative;
  z-index: 1;
}

.ritual-content {
  gap: 12px;
}

.ritual-meta {
  display: grid;
  gap: 7px;
}

.ritual-lead {
  margin: 0;
  color: rgba(244, 240, 230, 0.92);
  font-family: "Manrope", "Rubik", sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.ritual-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.ritual-count {
  margin: 0;
  color: rgba(216, 210, 198, 0.72);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.ritual-state-caption {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(216, 210, 198, 0.72);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ritual-state-caption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(241, 220, 166, 0.75);
  box-shadow: 0 0 0 2px rgba(215, 184, 110, 0.08);
  flex: 0 0 auto;
}

.ritual-state-caption.is-busy::before {
  background: rgba(241, 220, 166, 0.95);
  box-shadow: 0 0 0 2px rgba(215, 184, 110, 0.14);
}

.shuffle-stage {
  position: relative;
  height: clamp(360px, 52vh, 620px);
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(244, 240, 230, 0.09);
  background:
    radial-gradient(circle at 50% 58%, rgba(18, 35, 92, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(10, 12, 20, 0.96), rgba(7, 8, 12, 0.98));
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(156, 125, 59, 0.06),
    inset 0 1px 0 rgba(244, 240, 230, 0.03);
}

.shuffle-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(215, 184, 110, 0.18), transparent 26%),
    radial-gradient(circle at 50% 58%, rgba(107, 78, 255, 0.09), transparent 48%),
    radial-gradient(1px 1px at 12% 22%, rgba(241, 220, 166, 0.22), transparent 60%),
    radial-gradient(1px 1px at 68% 36%, rgba(241, 220, 166, 0.18), transparent 60%),
    radial-gradient(1px 1px at 38% 74%, rgba(215, 184, 110, 0.16), transparent 60%),
    radial-gradient(1px 1px at 84% 64%, rgba(241, 220, 166, 0.18), transparent 60%);
  opacity: 0.95;
  animation: galaxyDrift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.shuffle-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at 18% 28%, rgba(107, 78, 255, 0.14), transparent 36%),
    radial-gradient(circle at 82% 72%, rgba(215, 184, 110, 0.09), transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 64%, rgba(7, 7, 10, 0.34) 100%);
  animation: nebulaShift 16s ease-in-out infinite alternate;
}

.ritual-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.ritual-watermark-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(215, 184, 110, 0.06);
}

.ritual-watermark-ring.ring-1 {
  width: min(42vw, 340px);
  aspect-ratio: 1;
  box-shadow: 0 0 0 14px rgba(215, 184, 110, 0.015);
}

.ritual-watermark-ring.ring-2 {
  width: min(52vw, 430px);
  aspect-ratio: 1;
  border-color: rgba(107, 78, 255, 0.05);
}

.ritual-watermark-glyph {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 1;
  color: rgba(241, 220, 166, 0.045);
  text-shadow: 0 0 18px rgba(215, 184, 110, 0.025);
  transform: translateY(2%);
}

.shuffle-stage-label {
  position: absolute;
  left: 18px;
  top: 14px;
  margin: 0;
  color: rgba(241, 220, 166, 0.88);
  font-family: "Manrope", "Rubik", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 3;
}

.shuffle-stage-subtitle {
  position: absolute;
  right: 18px;
  top: 14px;
  margin: 0;
  color: rgba(216, 210, 198, 0.52);
  font-family: "Manrope", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  z-index: 3;
}

.shuffle-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(52px, 12.7vw, 166px);
  aspect-ratio: var(--tarot-card-ratio);
  border-radius: 12px;
  background: var(--card-back-url) center / cover no-repeat;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 14px;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s));
  transform-origin: center center;
  box-shadow: none;
  transition:
    left 140ms cubic-bezier(0.32, 0.72, 0, 1),
    top 140ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 140ms cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: var(--delay, 0ms);
  will-change: left, top, transform;
  z-index: 2;
}

.shuffle-stage.is-running .shuffle-card {
  box-shadow: none;
  transition: none;
}

.ritual-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 14px;
  margin-top: 2px;
}

.ritual-cta-stack {
  display: grid;
  gap: 7px;
  justify-items: center;
  grid-column: 2;
}

.ritual-actions #start-focus-button {
  min-height: 58px;
  min-width: clamp(260px, 28vw, 380px);
  padding-inline: 28px;
  border-radius: 999px;
  border: 1px solid rgba(241, 220, 166, 0.28);
  background: linear-gradient(135deg, rgba(215, 184, 110, 0.96), rgba(241, 220, 166, 0.94));
  color: #0a0a0d;
  font-family: "Manrope", "Rubik", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.25vw, 22px);
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 22px rgba(215, 184, 110, 0.12);
}

.ritual-actions #start-focus-button:hover:not(:disabled) {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.ritual-actions #start-focus-button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  filter: brightness(0.98);
}

.ritual-actions #start-focus-button:disabled {
  opacity: 0.52;
  box-shadow: none;
  cursor: not-allowed;
}

.ritual-cta-note {
  margin: 0;
  color: rgba(216, 210, 198, 0.72);
  font-size: 13px;
  line-height: 1.25;
  font-family: "Manrope", "Rubik", sans-serif;
  text-align: center;
}

.ritual-actions #back-menu-from-prep {
  grid-column: 3;
  justify-self: end;
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: auto;
  color: rgba(183, 169, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: "Manrope", "Rubik", sans-serif;
  font-weight: 500;
}

.ritual-actions #back-menu-from-prep:hover:not(:disabled) {
  color: rgba(215, 184, 110, 0.92);
}

.ritual-actions #back-menu-from-prep:active:not(:disabled) {
  transform: translateY(1px);
}

.ritual-actions #back-menu-from-prep:disabled {
  opacity: 0.42;
}

@keyframes galaxyDrift {
  from {
    transform: translate3d(-2%, -1%, 0);
  }
  to {
    transform: translate3d(2%, 1%, 0);
  }
}

@keyframes nebulaShift {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -2%, 0) scale(1.05);
  }
}

.meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface-2);
}

.meter > span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--transition-main);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(156, 125, 59, 0.4);
  color: var(--gold-light);
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(215, 184, 110, 0.08);
}

.menu-shell {
  position: relative;
}

.menu-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.menu-hero::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 10% 20%, rgba(107, 78, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(215, 184, 110, 0.12), transparent 35%);
  pointer-events: none;
}

.menu-hero > * {
  position: relative;
  z-index: 1;
}

.menu-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.menu-ambient .star {
  position: absolute;
  color: rgba(241, 220, 166, 0.5);
  font-size: 12px;
  animation: menuTwinkle 4.8s ease-in-out infinite;
}

.menu-ambient .s1 { top: 10%; left: 20%; animation-delay: 0ms; }
.menu-ambient .s2 { top: 22%; left: 74%; animation-delay: 900ms; }
.menu-ambient .s3 { top: 54%; left: 8%; animation-delay: 1600ms; }
.menu-ambient .s4 { top: 66%; left: 86%; animation-delay: 2400ms; }
.menu-ambient .s5 { top: 80%; left: 42%; animation-delay: 3200ms; }
.menu-ambient .s6 { top: 36%; left: 50%; animation-delay: 4100ms; }

@keyframes menuTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.16);
  }
}

.menu-stepline {
  display: grid;
  gap: 8px;
}

.menu-greeting {
  margin: 4px 0 0;
  color: var(--gold);
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 32px);
  text-align: center;
}

.menu-title {
  margin: 0;
  text-align: center;
  color: var(--fg);
  font-family: "Bodoni Moda", serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(46px, 8.6vw, 102px);
  line-height: 0.96;
}

.menu-subtitle {
  margin: 0;
  text-align: center;
  color: rgba(216, 210, 198, 0.72);
  font-size: clamp(18px, 2.1vw, 34px);
  font-family: "Bodoni Moda", serif;
  font-weight: 400;
}

.menu-notice {
  max-width: 980px;
  margin: 8px auto 0;
}

.menu-notice-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.menu-notice-edit {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: rgba(216, 210, 198, 0.74);
  font-family: "Manrope", "Rubik", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.menu-notice-edit:hover {
  color: rgba(244, 240, 230, 0.92);
}

.menu-notice-edit:active {
  opacity: 0.8;
}

.tirage-grid {
  display: grid;
  gap: 16px;
}

.tirage-grid-luxe {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.tirage-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--surface-1);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  padding: 14px 15px;
  display: grid;
  gap: 8px;
  transition: var(--transition-main);
}

.tirage-card:hover {
  border-color: var(--glow-border);
  transform: translateY(-2px);
  box-shadow: none;
}

.tirage-card-luxe {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    linear-gradient(100deg, rgba(7, 7, 10, 0.92), rgba(12, 13, 18, 0.92)),
    var(--surface-1);
}

.tirage-card-luxe:focus-visible {
  outline: none;
  border-color: rgba(241, 220, 166, 0.6);
  box-shadow: 0 0 0 4px rgba(215, 184, 110, 0.18);
}

.tirage-icon-luxe {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(215, 184, 110, 0.3);
  background: radial-gradient(circle at 40% 30%, rgba(241, 220, 166, 0.18), rgba(215, 184, 110, 0.08));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: inset 0 0 0 1px rgba(215, 184, 110, 0.06);
}

.tirage-icon-luxe .material-symbols-rounded {
  font-size: inherit;
  line-height: 1;
}

.tirage-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tirage-name {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  letter-spacing: 0.03em;
  font-size: 17px;
  color: var(--fg);
}

.tirage-desc {
  margin: 0;
  color: var(--fg-soft);
  font-size: 13px;
}

.tirage-card-luxe .tirage-name {
  margin: 0;
  font-size: clamp(24px, 2.9vw, 40px);
  text-transform: uppercase;
  line-height: 1.02;
}

.tirage-card-luxe .tirage-desc {
  margin: 0;
  color: rgba(216, 210, 198, 0.8);
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.25;
}

.tirage-count {
  color: var(--gold);
  font-size: clamp(20px, 1.8vw, 30px);
  font-family: "Bodoni Moda", serif;
  letter-spacing: 0.02em;
}

.tirage-arrow {
  color: rgba(216, 210, 198, 0.5);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1;
  transform: translateX(0);
  transition: transform var(--transition-main), color var(--transition-main);
}

.tirage-card-luxe:hover .tirage-arrow {
  color: var(--gold-light);
  transform: translateX(5px);
}

.menu-actions {
  justify-content: center;
}

.selection-flow {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
  padding-bottom: 6px;
}

.selection-flow::before,
.selection-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.selection-flow::before {
  opacity: 0.04;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent 65%),
    radial-gradient(1px 1px at 67% 38%, #fff, transparent 65%),
    radial-gradient(1px 1px at 29% 71%, #fff, transparent 65%),
    radial-gradient(1px 1px at 83% 61%, #fff, transparent 65%);
  background-size: 220px 220px, 260px 260px, 240px 240px, 280px 280px;
}

.selection-flow::after {
  background: radial-gradient(circle at 50% 54%, transparent 36%, rgba(7, 7, 10, 0.42) 100%);
}

.selection-head-panel {
  padding-top: 9px;
  padding-bottom: 9px;
}

.reveal-head-panel {
  padding-top: 9px;
  padding-bottom: 9px;
}

.reveal-flow {
  min-height: 0;
}

.fan-panel {
  padding-top: 14px;
  padding-bottom: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(107, 78, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(241, 220, 166, 0.03), transparent),
    var(--surface-1);
}

.fan-panel.is-mobile-picker {
  padding-bottom: 14px;
}

.selection-main-grid {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.selection-flow .card-panel {
  border-color: rgba(244, 240, 230, 0.07);
}

.selection-flow .card-panel::after {
  opacity: 0.45;
}

.selection-flow .sticky-cta {
  position: static;
  margin-top: 2px;
}

.positions-grid {
  display: grid;
  gap: 12px;
  align-content: start;
}

.positions-grid.slots-1 {
  grid-template-columns: minmax(160px, 220px);
  justify-content: center;
}

.positions-grid.slots-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 0 auto;
}

.positions-grid.slots-5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(78px, 1fr));
  max-width: 640px;
  margin: 0 auto;
}

.positions-grid.slots-5 .slot-1 {
  grid-column: 2;
  grid-row: 1;
}

.positions-grid.slots-5 .slot-2 {
  grid-column: 1;
  grid-row: 2;
}

.positions-grid.slots-5 .slot-3 {
  grid-column: 3;
  grid-row: 2;
}

.positions-grid.slots-5 .slot-4 {
  grid-column: 2;
  grid-row: 3;
}

.positions-grid.slots-5 .slot-5 {
  grid-column: 2;
  grid-row: 2;
}

/* Tirage en croix classique:
   3 (haut)
   1 (gauche) 5 (centre) 2 (droite)
   4 (bas) */
.positions-grid.slots-5.spread-cross .slot-1 {
  grid-column: 1;
  grid-row: 2;
}

.positions-grid.slots-5.spread-cross .slot-2 {
  grid-column: 3;
  grid-row: 2;
}

.positions-grid.slots-5.spread-cross .slot-3 {
  grid-column: 2;
  grid-row: 1;
}

.positions-grid.slots-5.spread-cross .slot-4 {
  grid-column: 2;
  grid-row: 3;
}

.positions-grid.slots-5.spread-cross .slot-5 {
  grid-column: 2;
  grid-row: 2;
}

.slots-panel {
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--surface-1);
}

.slots-altar {
  position: relative;
  min-height: clamp(340px, 42vh, 520px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
}

.slots-altar::before {
  content: "";
  position: absolute;
  inset: 6% 10%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 52%, rgba(215, 184, 110, 0.18), transparent 33%),
    radial-gradient(circle at 50% 52%, rgba(107, 78, 255, 0.08), transparent 56%),
    radial-gradient(circle at 50% 52%, rgba(215, 184, 110, 0.1) 0 1px, transparent 1px 100%);
  filter: blur(1px);
  opacity: 0.8;
  pointer-events: none;
}

.slots-altar::after {
  content: "";
  position: absolute;
  width: min(74%, 420px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(215, 184, 110, 0.12);
  box-shadow:
    0 0 0 18px rgba(215, 184, 110, 0.03),
    0 0 0 40px rgba(107, 78, 255, 0.02);
  pointer-events: none;
}

.slots-altar > .positions-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  justify-content: center;
  align-content: center;
}

.slots-altar.is-single::before {
  inset: 14% 20%;
  opacity: 0.92;
}

.slots-altar.is-single::after {
  width: min(56%, 320px);
  border-color: rgba(215, 184, 110, 0.16);
  box-shadow:
    0 0 0 20px rgba(215, 184, 110, 0.035),
    0 0 0 46px rgba(107, 78, 255, 0.022);
}

.slots-altar.is-three::before {
  inset: 10% 12%;
  opacity: 0.88;
}

.slots-altar.is-three::after {
  width: min(66%, 400px);
  border-color: rgba(215, 184, 110, 0.14);
}

.slots-altar > .positions-grid.slots-1 {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.slots-altar > .positions-grid.slots-3 {
  width: min(100%, 620px);
  margin-inline: auto;
}

.slots-altar.is-single .position-slot {
  gap: 10px;
}

.slots-altar.is-single .slot-card-dashed,
.slots-altar.is-single .slot-card-back {
  width: clamp(94px, 8.2vw, 132px);
  border-radius: 16px;
}

.slots-altar.is-single .slot-card-dashed::before {
  font-size: clamp(58px, 4.6vw, 78px);
}

.slots-altar.is-single .position-name {
  font-size: clamp(18px, 1.35vw, 22px);
}

.slots-altar.is-three .position-slot {
  gap: 9px;
}

.slots-altar.is-three .slot-card-dashed,
.slots-altar.is-three .slot-card-back {
  width: clamp(80px, 6.5vw, 108px);
  border-radius: 15px;
}

.slots-altar.is-three .slot-card-dashed::before {
  font-size: clamp(50px, 3.7vw, 64px);
}

.slots-altar.is-three .position-name {
  font-size: clamp(15px, 1.05vw, 18px);
}

.insight-panel {
  min-height: 0;
  justify-content: start;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 184, 110, 0.45) transparent;
  background:
    radial-gradient(circle at 18% -4%, rgba(107, 78, 255, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(241, 220, 166, 0.04), transparent),
    var(--surface-1);
  position: relative;
  overflow: hidden;
}

.insight-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 6%, rgba(215, 184, 110, 0.08), transparent 42%);
  opacity: 0.9;
}

.position-slot {
  border-radius: 16px;
  border: 1px solid transparent;
  min-height: 0;
  padding: 4px 4px 2px;
  background: transparent;
  transition: var(--transition-main);
  display: grid;
  justify-items: center;
  gap: 8px;
  align-content: center;
}

.position-slot.filled {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.slot-card-dashed {
  width: clamp(66px, 5.4vw, 84px);
  aspect-ratio: var(--tarot-card-ratio);
  border-radius: 13px;
  border: 1px dashed rgba(244, 240, 230, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(18, 19, 26, 0.42);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slot-card-dashed::before {
  content: attr(data-slot-number);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(44px, 3.2vw, 56px);
  font-weight: 600;
  line-height: 1;
  color: rgba(244, 240, 230, 0.36);
  pointer-events: none;
}

.slot-card-back {
  width: clamp(66px, 5.4vw, 84px);
  aspect-ratio: var(--tarot-card-ratio);
  border-radius: 13px;
  border: 1.5px solid rgba(156, 125, 59, 0.62);
  background:
    linear-gradient(180deg, rgba(9, 9, 18, 0.14), rgba(7, 7, 10, 0.26)),
    var(--card-back-url) center / cover no-repeat;
  color: transparent;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transition: transform var(--transition-fast), border-color var(--transition-main), box-shadow var(--transition-main);
}

.slot-card-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.02));
  opacity: 0.35;
  pointer-events: none;
}

.slot-card-back::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 11px;
  border: 1px solid rgba(241, 220, 166, 0.22);
  pointer-events: none;
}

.position-slot.filled .slot-card-back {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(241, 220, 166, 0.58);
}

.position-slot.filled:hover .slot-card-back {
  transform: translateY(-6px) scale(1.1) rotate(-0.5deg);
  border-color: rgba(241, 220, 166, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38), 0 0 18px rgba(215, 184, 110, 0.14);
}

.position-slot.slot-center.filled .slot-card-back {
  transform: translateY(-4px) scale(1.12);
}

.slot-card-dashed-center {
  width: clamp(74px, 6.1vw, 96px);
  border-style: solid;
  border-color: rgba(107, 78, 255, 0.22);
  background:
    radial-gradient(circle at 50% 46%, rgba(215, 184, 110, 0.12), transparent 46%),
    radial-gradient(circle at 50% 58%, rgba(107, 78, 255, 0.12), transparent 60%),
    rgba(18, 19, 26, 0.5);
  animation: synthBreath 3.6s ease-in-out infinite;
}

.slot-card-dashed-center::before {
  content: "";
}

.slot-center-sigil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(26px, 2.1vw, 34px);
  color: rgba(241, 220, 166, 0.28);
  line-height: 1;
  transform: translateY(-6px);
  pointer-events: none;
}

.slot-center-helper {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 7px;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  color: rgba(216, 210, 198, 0.7);
  letter-spacing: 0.02em;
  text-transform: none;
}

@keyframes synthBreath {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 0 rgba(107, 78, 255, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 24px rgba(107, 78, 255, 0.12);
  }
}

.slot-plaque {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 5px 10px 4px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  min-width: min(100%, 140px);
}

.position-slot.slot-center .slot-plaque {
  border-color: transparent;
  background: transparent;
}

.position-name {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: 14px;
  line-height: 1.05;
  color: rgba(244, 240, 230, 0.92);
  text-align: center;
}

.slot-card-name {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(216, 210, 198, 0.58);
  text-transform: uppercase;
}

.card-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.deck-fan {
  position: relative;
  width: 100%;
  min-height: 136px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 50% -10%, rgba(107, 78, 255, 0.2), transparent 48%),
    rgba(18, 19, 26, 0.72);
}

.mobile-draw-panel {
  display: grid;
  gap: 10px;
}

.mobile-draw-button {
  position: relative;
  border: 1px solid rgba(244, 240, 230, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 46%, rgba(107, 78, 255, 0.08), transparent 44%),
    radial-gradient(circle at 50% 58%, rgba(215, 184, 110, 0.06), transparent 32%),
    rgba(14, 15, 22, 0.84);
  color: var(--fg);
  padding: 14px 14px 12px;
  min-height: 208px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-main);
  overflow: hidden;
}

.mobile-draw-button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 16% 22%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(1px 1px at 82% 18%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(1px 1px at 68% 78%, rgba(255, 255, 255, 0.8), transparent 70%);
}

.mobile-draw-button:hover:not(:disabled) {
  border-color: rgba(215, 184, 110, 0.2);
  transform: translateY(-1px);
}

.mobile-draw-button:active:not(:disabled) {
  transform: translateY(0);
}

.mobile-draw-button:disabled,
.mobile-draw-button.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mobile-draw-stack {
  position: relative;
  width: 96px;
  aspect-ratio: var(--tarot-card-ratio);
  display: block;
  margin-top: 2px;
}

.mobile-draw-stack::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215, 184, 110, 0.12), rgba(215, 184, 110, 0.02) 44%, transparent 70%);
  filter: blur(8px);
}

.mobile-draw-stack-layer,
.mobile-draw-card {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  border: 1px solid rgba(156, 125, 59, 0.42);
  background:
    linear-gradient(180deg, rgba(9, 9, 18, 0.14), rgba(7, 7, 10, 0.26)),
    var(--card-back-url) center / cover no-repeat;
  box-shadow: none;
}

.mobile-draw-stack-layer.layer-1 {
  transform: translate(-8px, 7px) rotate(-7deg);
  opacity: 0.72;
}

.mobile-draw-stack-layer.layer-2 {
  transform: translate(6px, 5px) rotate(6deg);
  opacity: 0.76;
}

.mobile-draw-stack-layer.layer-3 {
  transform: translate(-2px, 2px) rotate(-2deg);
  opacity: 0.84;
}

.mobile-draw-card {
  border-color: rgba(241, 220, 166, 0.38);
  z-index: 2;
}

.mobile-draw-button-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(244, 240, 230, 0.96);
  font-family: "Bodoni Moda", serif;
  font-size: 20px;
  line-height: 1.05;
}

.mobile-draw-button-subline {
  position: relative;
  z-index: 1;
  color: rgba(216, 210, 198, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.mobile-draw-hint {
  margin: 0;
  color: rgba(216, 210, 198, 0.66);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.deck-card {
  min-width: 80px;
  aspect-ratio: var(--tarot-card-ratio);
  border-radius: 11px;
  border: 1px solid rgba(156, 125, 59, 0.5);
  background:
    linear-gradient(180deg, rgba(9, 9, 18, 0.14), rgba(7, 7, 10, 0.28)),
    var(--card-back-url) center / cover no-repeat;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: var(--transition-main);
}

.deck-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: none;
}

.deck-card.selected {
  opacity: 0.42;
  transform: scale(0.96);
  border-color: rgba(156, 125, 59, 0.8);
}

.fan-card {
  position: absolute;
  left: var(--left-target, 50%);
  bottom: 10px;
  transform: translateX(-50%) rotate(var(--rot-target, 0deg));
  min-width: 74px;
  width: 74px;
  transition:
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease;
  will-change: left, transform, opacity;
}

.fan-card:hover {
  transform: translateX(-50%) translateY(-18px) rotate(calc(var(--rot-target, 0deg) - 1.2deg));
}

.selection-insight-head {
  gap: 6px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(244, 240, 230, 0.08);
  background:
    radial-gradient(circle at 88% 12%, rgba(107, 78, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(13, 14, 18, 0.62);
}

.selection-insight-meta {
  margin: 0;
  color: rgba(216, 210, 198, 0.84);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selection-progress-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.selection-progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(215, 184, 110, 0.25);
  background: rgba(244, 240, 230, 0.05);
}

.selection-progress-dots .dot.is-done {
  background: linear-gradient(180deg, rgba(241, 220, 166, 0.95), rgba(215, 184, 110, 0.9));
  border-color: rgba(241, 220, 166, 0.5);
}

.selection-progress-dots .dot.is-next {
  border-color: rgba(215, 184, 110, 0.58);
  box-shadow: 0 0 0 2px rgba(215, 184, 110, 0.08);
}

.selection-insight-headline {
  margin: 0;
  color: var(--gold-light);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.12;
}

.selection-insight-subline {
  margin: 0;
  color: rgba(216, 210, 198, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.selection-insight-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.deck-fan.selection-intro .fan-card {
  transition-delay: var(--deal-delay, 0ms);
}

.deck-fan.selection-intro.is-collapsed .fan-card {
  left: 11%;
  transform: translateX(-50%) rotate(calc(-7deg + (var(--deal-delay, 0ms) / 120)));
  opacity: 0.97;
}

.fly-card {
  transform-origin: center;
}

.sticky-cta {
  position: sticky;
  bottom: 10px;
  z-index: 25;
  background: rgba(7, 7, 10, 0.78);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(8px);
}

.reveal-layout {
  display: grid;
  gap: 14px;
}

.reveal-flow {
  position: relative;
  isolation: isolate;
}

.reveal-flow::before,
.reveal-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.reveal-flow::before {
  opacity: 0.04;
  background-image:
    radial-gradient(1px 1px at 14% 18%, #fff, transparent 65%),
    radial-gradient(1px 1px at 76% 23%, #fff, transparent 65%),
    radial-gradient(1px 1px at 33% 68%, #fff, transparent 65%),
    radial-gradient(1px 1px at 86% 74%, #fff, transparent 65%);
  background-size: 220px 220px, 260px 260px, 240px 240px, 280px 280px;
}

.reveal-flow::after {
  background:
    radial-gradient(circle at 26% 36%, rgba(107, 78, 255, 0.11), transparent 34%),
    radial-gradient(circle at 72% 62%, rgba(215, 184, 110, 0.08), transparent 32%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(7, 7, 10, 0.34) 100%);
}

.reveal-flow .card-panel {
  border-color: rgba(244, 240, 230, 0.08);
}

.reveal-flow .card-panel::after {
  opacity: 0.42;
}

.reveal-head-panel {
  background:
    radial-gradient(circle at 18% 4%, rgba(107, 78, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(241, 220, 166, 0.025), rgba(255, 255, 255, 0)),
    var(--surface-1);
}

.big-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(156, 125, 59, 0.44);
  background:
    radial-gradient(circle at 50% 18%, rgba(107, 78, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(241, 220, 166, 0.03), transparent),
    var(--surface-1);
  padding: 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.big-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(215, 184, 110, 0.07), transparent 36%),
    radial-gradient(circle at 50% 44%, rgba(107, 78, 255, 0.06), transparent 58%);
}

.big-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

.big-card > * {
  position: relative;
  z-index: 1;
}

.big-card .name {
  margin: 0 0 8px;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(21px, 4.2vw, 28px);
  color: var(--gold-light);
}

.big-card .meta {
  margin: 0 0 8px;
  color: var(--fg-soft);
  font-size: 13px;
}

.reveal-card-col > .flow-topline .meta {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(20px, 1.7vw, 28px);
  color: var(--fg);
  line-height: 1.05;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.revealed-card-face {
  border-radius: 14px;
  border: 1px solid rgba(156, 125, 59, 0.42);
  background:
    radial-gradient(circle at 50% 34%, rgba(241, 220, 166, 0.08), transparent 48%),
    radial-gradient(circle at 50% 46%, rgba(107, 78, 255, 0.07), transparent 54%),
    linear-gradient(180deg, #141620, #0f1016);
  min-height: 270px;
  padding: 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.revealed-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 184, 110, 0.12), transparent 30%),
    radial-gradient(circle at 50% 42%, rgba(107, 78, 255, 0.08), transparent 54%);
}

.revealed-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(1px 1px at 15% 18%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(1px 1px at 74% 24%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(1px 1px at 62% 76%, rgba(255, 255, 255, 0.85), transparent 70%);
}

.revealed-card-face > * {
  position: relative;
  z-index: 1;
}

.reading-quote {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  border-left: 3px solid rgba(215, 184, 110, 0.55);
  padding-left: 12px;
  font-size: clamp(18px, 3.8vw, 26px);
  line-height: 1.4;
}

.result-panel {
  background:
    radial-gradient(circle at 16% 4%, rgba(107, 78, 255, 0.16), transparent 42%),
    radial-gradient(circle at 82% 10%, rgba(215, 184, 110, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(241, 220, 166, 0.04), transparent),
    var(--surface-1);
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 184, 110, 0.45) transparent;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 72%, rgba(107, 78, 255, 0.08), transparent 36%),
    radial-gradient(circle at 18% 34%, rgba(215, 184, 110, 0.08), transparent 26%);
}

.result-panel::after {
  content: none;
}

.result-panel.stack {
  gap: 7px;
  align-content: space-around;
}

.result-panel.stack > * {
  position: relative;
  z-index: 1;
}

.result-title {
  margin: 0;
  color: var(--gold-light);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.result-main {
  margin: 0;
  color: var(--gold-light);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.42;
  text-shadow: 0 0 14px rgba(215, 184, 110, 0.16);
}

.selection-result {
  font-size: 24px;
}

.reveal-preview {
  width: min(190px, 72%);
  margin: 0 auto 2px;
  perspective: 1300px;
  position: relative;
}

.reveal-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215, 184, 110, 0.12), rgba(215, 184, 110, 0.02) 42%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.reveal-preview-left {
  width: min(188px, 66%);
}

.reveal-preview-inner {
  position: relative;
  width: 100%;
  aspect-ratio: var(--tarot-card-ratio);
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.16, 0.8, 0.22, 1);
  will-change: transform;
  z-index: 1;
}

.reveal-preview-inner.is-flipped {
  transform: rotateY(180deg);
}

.reveal-preview-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(156, 125, 59, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.reveal-preview-face::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  border: 1px solid rgba(241, 220, 166, 0.14);
  pointer-events: none;
}

.reveal-preview-back {
  transform: rotateY(0deg) translateZ(0);
  background:
    linear-gradient(180deg, rgba(9, 9, 18, 0.16), rgba(7, 7, 10, 0.3)),
    var(--card-back-url) center / cover no-repeat;
  color: transparent;
}

.reveal-preview-front {
  transform: rotateY(180deg) translateZ(1px);
  background: #161720;
  z-index: 2;
  opacity: 0;
}

.reveal-preview-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.03);
  transform: rotate(0deg);
  transition: transform var(--transition-main);
}

.reveal-preview-front img.is-reversed {
  transform: rotate(180deg);
}

.reveal-preview-inner.is-flipped .reveal-preview-front {
  opacity: 1;
}

.reveal-preview-inner.is-flipped .reveal-preview-back {
  opacity: 0;
}

.revealed-card-face .meta,
.revealed-card-face .name {
  text-align: center;
}

.revealed-card-face .name {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 28px);
  color: rgba(241, 220, 166, 0.95);
  text-shadow: 0 0 12px rgba(215, 184, 110, 0.14);
}

.result-microcopy {
  display: grid;
  gap: 2px;
}

.basic-interpretation {
  margin: 0;
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.42;
}

.repeated-note {
  margin: 0;
  color: rgba(216, 210, 198, 0.84);
  font-size: 13px;
  line-height: 1.4;
  font-family: "Manrope", "Inter", sans-serif;
}

.see-more-link {
  justify-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
  color: rgba(183, 169, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.section-subtitle {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--hairline);
  padding: 5px 9px;
  font-size: 12px;
  color: var(--fg-soft);
  background: rgba(255, 255, 255, 0.02);
}

.thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 2px;
  padding-bottom: 2px;
}

.thumb {
  border: 1px solid rgba(244, 240, 230, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(18, 19, 26, 0.82);
  color: rgba(216, 210, 198, 0.82);
  min-width: 96px;
  padding: 9px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-main);
}

.thumb.active {
  border-color: rgba(215, 184, 110, 0.34);
  background:
    radial-gradient(circle at 20% 18%, rgba(107, 78, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(215, 184, 110, 0.06), rgba(255, 255, 255, 0)),
    rgba(18, 19, 26, 0.88);
  color: var(--fg);
}

.reveal-flow .sticky-cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    rgba(7, 7, 10, 0.78);
  border-color: rgba(244, 240, 230, 0.08);
  box-shadow: inset 0 1px 0 rgba(244, 240, 230, 0.03);
}

.stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.star-button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(156, 125, 59, 0.38);
  background: rgba(18, 19, 26, 0.8);
  color: var(--fg-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition-main);
}

.star-button.active {
  border-color: var(--glow-border);
  color: var(--gold-light);
  box-shadow:
    inset 0 0 0 1px rgba(241, 220, 166, 0.2),
    0 0 0 2px rgba(215, 184, 110, 0.14);
}

.star-button .material-symbols-rounded {
  font-size: 28px;
  line-height: 1;
}

.star-button:hover {
  transform: translateY(-1px);
  color: var(--gold-light);
}

.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(680px, calc(100% - 26px));
  width: auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(13, 14, 18, 0.96);
  border: 1px solid var(--hairline);
  color: var(--fg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-main);
  z-index: 70;
}

.toast.show {
  opacity: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.kpi {
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  padding: 12px;
}

.kpi p {
  margin: 0;
}

.kpi .label {
  margin: 0;
  color: var(--fg-soft);
  font-size: 12px;
}

.kpi .value {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}

.bar-row .bar-label {
  display: block;
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #0d0f16;
  overflow: hidden;
}

.bar > span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.table-wrap {
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
  font-size: 13px;
}

th {
  color: var(--fg-soft);
  font-weight: 600;
}

.muted {
  color: var(--fg-soft);
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-lg {
  display: grid;
  gap: 18px;
}

.loading-shimmer {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (min-width: 1101px) {
  .app-root {
    padding-top: 28px;
  }

  .screen-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 18px;
    align-items: start;
  }

  .onboarding-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 18px;
    align-items: stretch;
  }

  .onboarding-showcase {
    min-height: min(100%, 720px);
  }

  .onboarding-card-stage {
    min-height: clamp(300px, 46vh, 520px);
  }

  .site-shell {
    height: 100vh;
    overflow: hidden;
  }

  .app-root {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 16px 0;
  }

  .screen-shell {
    height: 100%;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  body[data-step="menu"] .site-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body.admin-page .site-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body.admin-page .app-root {
    overflow: visible;
    min-height: auto;
    padding-bottom: 24px;
  }

  body.admin-page .screen-shell {
    height: auto;
    min-height: 0;
    grid-template-rows: none;
  }

  body[data-step="menu"] .app-root {
    overflow: visible;
    padding-bottom: 24px;
  }

  body[data-step="menu"] .screen-shell {
    height: auto;
    grid-template-rows: none;
  }

  body[data-step="preparation"] .site-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body[data-step="preparation"] .app-root {
    overflow: visible;
    padding-bottom: 24px;
  }

  body[data-step="preparation"] .screen-shell {
    height: auto;
    grid-template-rows: none;
  }

  body[data-step="selection"] .site-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body[data-step="selection"] .app-root {
    overflow: visible;
    padding-bottom: 24px;
  }

  body[data-step="selection"] .screen-shell {
    height: auto;
    grid-template-rows: none;
  }

  .selection-flow {
    grid-template-rows: none;
    height: auto;
  }

  .reveal-flow {
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
  }

  .selection-main-grid {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
    gap: 12px;
    min-height: 0;
  }

  .slots-altar {
    min-height: clamp(360px, 44vh, 560px);
  }

  .positions-grid.slots-5 {
    max-width: 700px;
  }

  .selection-head-panel {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .reveal-head-panel {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .positions-grid.slots-1 {
    min-height: 100%;
    align-content: center;
  }

  .reveal-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
  }

  .deck-fan {
    min-height: 154px;
  }

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

@media (max-width: 760px) {
  .bar-row {
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .bar-row .bar-label {
    font-size: 12px;
  }

  .bar {
    height: 7px;
  }
}

@media (max-width: 1100px) {
  .container {
    width: min(1200px, 100% - 24px);
  }

  .row-between {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .app-root {
    padding: 14px 0 24px;
  }

  .card-panel {
    padding: 16px;
  }

  .screen-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-title {
    font-size: clamp(42px, 10vw, 82px);
  }

  .landing-lead {
    font-size: clamp(18px, 4.1vw, 30px);
  }

  .landing-copy {
    font-size: clamp(14px, 2vw, 17px);
  }

  .landing-card-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }

  .flow-header .screen-title {
    font-size: clamp(26px, 5.2vw, 40px);
  }

  .flow-header .screen-subtitle {
    font-size: clamp(14px, 2vw, 18px);
  }

  .selection-head-panel,
  .reveal-head-panel {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .menu-shell {
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .menu-greeting {
    font-size: clamp(20px, 3vw, 28px);
  }

  .menu-title {
    font-size: clamp(42px, 9vw, 78px);
  }

  .menu-subtitle {
    font-size: clamp(17px, 3vw, 26px);
  }

  .tirage-grid-luxe {
    width: min(980px, 100%);
  }

  .tirage-card-luxe {
    min-height: 124px;
    padding: 18px 20px;
    gap: 14px;
  }

  .tirage-icon-luxe {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .tirage-card-luxe .tirage-name {
    font-size: clamp(24px, 4.8vw, 36px);
  }

  .tirage-card-luxe .tirage-desc {
    font-size: clamp(14px, 2.2vw, 18px);
  }

  .tirage-count {
    font-size: clamp(20px, 3.2vw, 28px);
  }

  .ritual-lead {
    font-size: clamp(14px, 2vw, 18px);
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .onboarding-panel,
  .onboarding-showcase {
    padding: 16px;
  }

  .onboarding-card-stage {
    min-height: clamp(240px, 36vh, 340px);
  }

  .onboarding-showcase .onboarding-card-preview {
    width: min(100%, clamp(160px, 26vw, 240px));
  }

  .onboarding-switch-head {
    gap: 10px;
  }

  .switch-side {
    gap: 6px;
  }

  .ritual-actions {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .ritual-actions #start-focus-button {
    min-height: 54px;
    min-width: clamp(240px, 34vw, 340px);
    padding-inline: 22px;
  }

  .shuffle-stage {
    height: clamp(320px, 44vh, 460px);
  }

  .shuffle-card {
    width: clamp(52px, 9.4vw, 110px);
  }

  .selection-main-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .positions-grid.slots-1 {
    justify-content: center;
  }

  .positions-grid.slots-3 {
    max-width: 760px;
    margin: 0 auto;
  }

  .positions-grid.slots-5 {
    max-width: 560px;
    grid-template-rows: repeat(3, minmax(64px, 1fr));
  }

  .slots-altar {
    min-height: 340px;
  }

  .slot-card-dashed,
  .slot-card-back {
    width: clamp(62px, 9vw, 76px);
  }

  .slot-card-dashed-center {
    width: clamp(68px, 10vw, 86px);
  }

  .slot-plaque {
    min-width: 116px;
  }

  .position-name {
    font-size: 13px;
  }

  .selection-insight-head {
    padding: 9px 10px 10px;
  }

  .deck-fan {
    min-height: 168px;
  }

  .fan-card {
    width: clamp(58px, 8vw, 72px);
    min-width: clamp(58px, 8vw, 72px);
  }

  .insight-panel,
  .result-panel {
    max-height: none;
    overflow: visible;
  }

  .sticky-cta {
    position: static;
    bottom: auto;
    margin-top: 6px;
  }

  .reveal-flow {
    height: auto;
    grid-template-rows: none;
  }

  .reveal-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .revealed-card-face {
    min-height: 230px;
  }

  .onboarding-card-preview {
    width: clamp(140px, 28vw, 220px);
  }

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

@media (max-width: 760px) {
  .container {
    width: min(1200px, 100% - 16px);
  }

  .row-between {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .brand-wrap {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .title {
    font-size: clamp(15px, 4.4vw, 21px);
  }

  .top-links {
    margin-top: 2px;
  }

  .icon-button {
    min-height: 38px;
    min-width: 38px;
  }

  .link-button {
    padding: 9px 12px;
  }

  .app-root {
    padding: 12px 0 20px;
  }

  .card-panel {
    padding: 14px;
  }

  .sticky-cta {
    padding: 8px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .button {
    width: 100%;
  }

  .preparation-flow .flow-header .screen-title {
    font-size: clamp(26px, 10vw, 38px);
  }

  .preparation-flow .flow-header .screen-subtitle {
    font-size: 13px;
  }

  .ritual-shell {
    padding: 12px;
  }

  .ritual-content {
    gap: 8px;
  }

  .ritual-meta {
    gap: 5px;
  }

  .ritual-lead {
    font-size: 13px;
    line-height: 1.32;
  }

  .ritual-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ritual-count {
    font-size: 11px;
  }

  .ritual-state-caption {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .shuffle-stage {
    height: min(60vh, 320px);
    border-radius: 18px;
  }

  .shuffle-stage-label {
    left: 14px;
    top: 12px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .shuffle-stage-subtitle {
    right: 14px;
    top: 12px;
    font-size: 10px;
    max-width: 52%;
    text-align: right;
    line-height: 1.2;
  }

  .ritual-watermark-ring.ring-1 {
    width: min(74vw, 260px);
  }

  .ritual-watermark-ring.ring-2 {
    width: min(88vw, 320px);
  }

  .ritual-watermark-glyph {
    font-size: clamp(82px, 26vw, 130px);
  }

  .shuffle-card {
    width: clamp(60px, 24vw, 108px);
    border-radius: 10px;
  }

  .ritual-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .ritual-cta-stack {
    width: 100%;
    grid-column: auto;
  }

  .ritual-actions #start-focus-button {
    width: min(100%, 360px);
    min-height: 52px;
  }

  .ritual-cta-note {
    font-size: 11px;
    line-height: 1.2;
  }

  .ritual-actions #back-menu-from-prep {
    grid-column: auto;
    justify-self: start;
    width: auto;
    padding-top: 0;
  }

  .flow-header .screen-title {
    font-size: clamp(24px, 9.2vw, 36px);
  }

  .flow-header .screen-subtitle {
    font-size: 15px;
  }

  .onboarding-flow .flow-header .screen-title {
    font-size: clamp(28px, 10.6vw, 40px);
    line-height: 0.95;
  }

  .onboarding-flow .flow-header .screen-subtitle {
    font-size: 14px;
    line-height: 1.35;
  }

  .onboarding-grid {
    gap: 12px;
  }

  .onboarding-panel,
  .onboarding-showcase {
    padding: 14px;
    gap: 12px;
  }

  .onboarding-section + .onboarding-section {
    padding-top: 12px;
  }

  .onboarding-segmented {
    gap: 7px;
  }

  .seg-option-pill {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .onboarding-switch-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .onboarding-switch-block {
    padding: 12px;
  }

  .onboarding-switch-block .switch-label {
    font-size: 13px;
  }

  .onboarding-switch-block .helper-text {
    font-size: 11px;
  }

  .switch-status-badge {
    font-size: 9px;
  }

  .switch-premium-ui {
    width: 42px;
    height: 24px;
  }

  .switch-premium-thumb {
    width: 18px;
    height: 18px;
  }

  .switch-premium input:checked + .switch-premium-ui .switch-premium-thumb {
    transform: translateX(18px);
  }

  .onboarding-cta {
    padding: 12px;
  }

  .onboarding-start-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .onboarding-cta-main {
    justify-items: stretch;
  }

  .onboarding-cta-note {
    font-size: 11px;
  }

  .onboarding-card-stage {
    min-height: clamp(220px, 34vh, 300px);
    border-radius: 16px;
  }

  .onboarding-showcase-title {
    font-size: clamp(24px, 8vw, 34px);
  }

  .onboarding-showcase-text {
    font-size: 13px;
    line-height: 1.4;
  }

  .landing-hero {
    padding: 18px 16px;
    gap: 12px;
  }

  .landing-kicker {
    font-size: 12px;
  }

  .landing-title {
    font-size: clamp(38px, 10vw, 58px);
    line-height: 0.98;
  }

  .landing-lead {
    font-size: clamp(17px, 6vw, 24px);
  }

  .landing-copy {
    font-size: 14px;
  }

  .landing-card-showcase {
    gap: 10px;
  }

  .landing-card.sample-1,
  .landing-card.sample-2,
  .landing-card.sample-3,
  .landing-card.back-card {
    transform: none;
  }

  .landing-card figcaption {
    font-size: 11px;
  }

  .landing-start {
    width: 100%;
  }

  .selection-flow {
    padding-bottom: 0;
  }

  .menu-shell {
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .menu-greeting {
    font-size: 18px;
  }

  .menu-title {
    font-size: clamp(30px, 13vw, 48px);
    line-height: 0.98;
  }

  .menu-subtitle {
    font-size: 16px;
  }

  .tirage-grid-luxe {
    overflow: visible;
    padding-right: 0;
  }

  .tirage-card-luxe {
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: 112px;
    padding: 16px;
  }

  .tirage-icon-luxe {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .tirage-card-luxe .tirage-name {
    font-size: clamp(16px, 6.8vw, 22px);
    line-height: 0.98;
    letter-spacing: 0.015em;
  }

  .tirage-card-luxe .tirage-desc {
    font-size: 15px;
  }

  .tirage-count {
    font-size: 19px;
  }

  .tirage-arrow {
    display: none;
  }

  .ritual-meta .notice {
    font-size: 14px;
  }

  .shuffle-stage {
    height: min(60vh, 360px);
    border-radius: 18px;
  }

  .shuffle-stage-label,
  .shuffle-stage-subtitle {
    font-size: 11px;
  }

  .shuffle-stage-subtitle {
    display: none;
  }

  .shuffle-card {
    width: clamp(46px, 14vw, 70px);
  }

  .deck-fan {
    min-height: 172px;
  }

  .fan-card {
    width: 56px;
    min-width: 56px;
    bottom: 12px;
  }

  .onboarding-card-preview {
    width: min(62vw, 220px);
  }

  .positions-grid.slots-3,
  .positions-grid.slots-5 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    max-width: none;
    margin: 0;
  }

  .positions-grid.slots-5 .slot-1,
  .positions-grid.slots-5 .slot-2,
  .positions-grid.slots-5 .slot-3,
  .positions-grid.slots-5 .slot-4,
  .positions-grid.slots-5 .slot-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .slots-altar {
    min-height: auto;
    padding: 4px 0;
  }

  .slots-altar::before,
  .slots-altar::after {
    opacity: 0.45;
  }

  .position-slot {
    gap: 6px;
    padding: 2px 2px 0;
  }

  .slot-card-dashed,
  .slot-card-back {
    width: 72px;
  }

  .slot-card-dashed-center {
    width: 78px;
  }

  .slot-card-dashed::before {
    font-size: 46px;
  }

  .slot-plaque {
    min-width: 0;
    width: 100%;
    border-radius: 12px;
    padding: 7px 10px 6px;
  }

  .position-name {
    font-size: 15px;
  }

  .slot-card-name {
    font-size: 9px;
  }

  .selection-insight-meta {
    font-size: 10px;
  }

  .selection-insight-headline {
    font-size: 18px;
  }

  .selection-insight-subline {
    font-size: 11px;
  }

  .result-title,
  .result-main,
  .selection-result {
    font-size: 21px;
  }

  .basic-interpretation,
  .repeated-note {
    font-size: 12px;
  }

  .revealed-card-face {
    min-height: 204px;
  }

  .thumb {
    min-width: 84px;
  }
}
