.source-picker {
  min-width: 0;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

.source-picker legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
}

.source-picker legend span {
  color: #4d392c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.source-picker legend small {
  color: #8e7a65;
  font-size: 10px;
  font-weight: 400;
}

.source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.source-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  gap: 11px;
  align-items: center;
  min-height: 94px;
  padding: 15px 14px;
  border: 1px solid rgba(120, 83, 47, 0.18);
  border-radius: 17px;
  text-align: left;
  color: #4d392c;
  background: rgba(255, 252, 246, 0.68);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.source-option:hover {
  border-color: rgba(135, 87, 46, 0.42);
  background: rgba(255, 252, 245, 0.95);
}

.source-option.is-selected {
  border-color: rgba(153, 96, 48, 0.72);
  background:
    radial-gradient(circle at 100% 0, rgba(225, 183, 112, 0.15), transparent 8rem),
    rgba(255, 250, 241, 0.97);
  box-shadow:
    0 12px 30px rgba(100, 62, 29, 0.08),
    inset 0 0 0 1px rgba(178, 119, 58, 0.14);
}

.source-option__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(147, 95, 50, 0.22);
  border-radius: 50%;
  color: #86563a;
  background: rgba(255, 249, 238, 0.68);
}

.source-option__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.source-option__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.source-option__copy strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.source-option__copy small {
  margin-top: 4px;
  color: #927b63;
  font-size: 9px;
  line-height: 1.5;
}

.source-option__arrow {
  color: #927b63;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.source-option__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf1;
  background: #80553a;
  font-size: 9px;
}

.source-option.is-selected .source-option__check {
  display: grid;
}

.upload-card-preview {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(146, 96, 52, 0.23);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.74);
}

.upload-card-preview[hidden] {
  display: none;
}

.upload-card-preview img {
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
}

.upload-card-preview div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.upload-card-preview span {
  color: #8b735c;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.upload-card-preview strong {
  margin-top: 3px;
  overflow: hidden;
  color: #463327;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card-preview button {
  padding: 7px 10px;
  border: 1px solid rgba(112, 76, 45, 0.22);
  border-radius: 999px;
  color: #745841;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

body.flow-open {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.tarot-flow {
  --flow-paper: #f5eddf;
  --flow-paper-deep: #e9dcc8;
  --flow-ink: #34261e;
  --flow-muted: #786554;
  --flow-gold: #b68a4f;
  --flow-wine: #6e2637;
  --flow-dark: #0b0c10;
  --flow-line: rgba(109, 78, 51, 0.18);
  --tarot-ratio: 244 / 419;
  position: fixed;
  z-index: 850;
  inset: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  color: var(--flow-ink);
  background:
    radial-gradient(circle at 50% 0, rgba(186, 133, 68, 0.14), transparent 35rem),
    rgba(11, 10, 13, 0.62);
  backdrop-filter: blur(14px);
}

.tarot-flow__shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--flow-paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.tarot-flow__shell::-webkit-scrollbar {
  display: none;
}

.tarot-flow[data-stage="matching"] .tarot-flow__shell {
  color: #f3e8d4;
  background:
    radial-gradient(circle at 50% 35%, rgba(218, 169, 84, 0.14), transparent 23rem),
    linear-gradient(155deg, rgba(11, 12, 16, 0.97), rgba(21, 15, 19, 0.98)),
    url("./assets/textures/velvet-soft.jpg") center / cover;
}

.flow-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(68px + env(safe-area-inset-top, 0px));
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 10px;
  border-bottom: 1px solid rgba(122, 91, 57, 0.12);
  color: inherit;
  background: rgba(245, 237, 223, 0.9);
  backdrop-filter: blur(16px);
}

.tarot-flow[data-stage="matching"] .flow-header {
  border-bottom-color: rgba(239, 205, 145, 0.12);
  background: rgba(12, 13, 17, 0.76);
}

.flow-header__close,
.flow-header__back {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--flow-line);
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.tarot-flow[data-stage="matching"] .flow-header__close,
.tarot-flow[data-stage="matching"] .flow-header__back {
  border-color: rgba(239, 208, 151, 0.16);
}

.flow-header__close svg,
.flow-header__back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.35;
}

.flow-header__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.flow-header__brand span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(151, 99, 48, 0.28);
  border-radius: 50%;
  color: #6e2637;
  font-family: var(--serif);
  font-size: 12px;
}

.tarot-flow[data-stage="matching"] .flow-header__brand span {
  border-color: rgba(238, 204, 142, 0.25);
  color: #e6c582;
}

.flow-header__brand div {
  display: flex;
  flex-direction: column;
}

.flow-header__brand strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.flow-header__brand small {
  margin-top: 2px;
  color: var(--flow-muted);
  font-size: 6px;
  letter-spacing: 0.18em;
}

.tarot-flow[data-stage="matching"] .flow-header__brand small {
  color: rgba(241, 218, 177, 0.45);
}

.flow-header__step {
  min-width: 42px;
  color: var(--flow-muted);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: right;
}

.tarot-flow[data-stage="matching"] .flow-header__step {
  color: rgba(241, 218, 177, 0.48);
}

.flow-stage {
  position: relative;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
}

/* Spread matching */
.flow-matching {
  padding: 36px 18px calc(34px + env(safe-area-inset-bottom, 0px));
}

.flow-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #d4ad6c;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.flow-eyebrow::before {
  font-size: 12px;
  content: "✦";
}

.flow-question-pill {
  margin: 19px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(227, 193, 129, 0.25);
  border-radius: 18px;
  background: rgba(255, 250, 238, 0.035);
  text-align: center;
}

.flow-question-pill span {
  display: block;
  color: rgba(242, 226, 199, 0.45);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.flow-question-pill strong {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #f2e4ca;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-match-status {
  min-height: 22px;
  margin: 20px 0 12px;
  color: rgba(244, 230, 203, 0.62);
  font-size: 11px;
  text-align: center;
  transition: color 0.25s ease;
}

.flow-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.flow-match-option {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 15px 13px 12px;
  border: 1px solid rgba(230, 197, 135, 0.14);
  border-radius: 16px;
  color: rgba(244, 231, 207, 0.66);
  background: rgba(22, 22, 28, 0.68);
  text-align: center;
  transition:
    border-color 0.24s ease,
    color 0.24s ease,
    background 0.24s ease,
    transform 0.24s var(--ease),
    box-shadow 0.24s ease;
}

.flow-match-option.is-comparing {
  border-color: rgba(230, 190, 116, 0.48);
  color: #f4e6cc;
  background: rgba(91, 68, 37, 0.26);
  transform: translateY(-2px);
}

.flow-match-option.is-selected {
  border-color: #d3aa69;
  color: #fff0d4;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 183, 108, 0.17), transparent 8rem),
    rgba(87, 61, 33, 0.57);
  box-shadow:
    inset 0 0 0 1px rgba(229, 187, 111, 0.2),
    0 0 28px rgba(208, 161, 83, 0.12);
}

.flow-match-option__icon {
  display: block;
  margin-bottom: 8px;
  color: #d8b674;
  font-family: Georgia, serif;
  font-size: 20px;
}

.flow-match-option strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.flow-match-option small {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 9px;
  line-height: 1.55;
  opacity: 0.72;
}

.flow-match-option em {
  display: block;
  margin-top: 7px;
  color: #cda75f;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.flow-match-option.is-selected em {
  color: #ecd399;
}

.flow-spread-selected {
  margin-top: 22px;
  padding: 22px 19px;
  border-top: 1px solid rgba(229, 194, 127, 0.18);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s var(--ease);
}

.flow-spread-selected.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-spread-selected > span {
  color: rgba(242, 224, 191, 0.45);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.flow-spread-selected h2 {
  margin: 7px 0 5px;
  color: #f0d18e;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-shadow: 0 0 28px rgba(221, 169, 77, 0.22);
}

.flow-spread-selected p {
  margin: 0;
  color: rgba(242, 226, 198, 0.56);
  font-size: 10px;
  line-height: 1.7;
}

.flow-spread-selected__positions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.flow-spread-selected__positions div {
  padding: 0 8px;
}

.flow-spread-selected__positions div + div {
  border-left: 1px solid rgba(234, 202, 142, 0.14);
}

.flow-spread-selected__positions strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.flow-spread-selected__positions small {
  display: block;
  margin-top: 3px;
  color: rgba(242, 226, 198, 0.38);
  font-size: 8px;
}

.flow-match-progress {
  width: 190px;
  height: 2px;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(234, 204, 147, 0.14);
}

.flow-match-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d8b36d;
  box-shadow: 0 0 12px rgba(221, 181, 108, 0.5);
  transition: width 1.25s var(--ease);
}

.flow-upload-recognition-note {
  margin: 14px 0 0;
  color: rgba(241, 220, 182, 0.38);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

/* Card choosing */
.flow-choice {
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.18), rgba(245, 237, 223, 0.98) 300px),
    url("./assets/textures/witch-room.webp") center top / cover;
}

.flow-choice__hero {
  position: relative;
  padding: 30px 18px 22px;
  text-align: center;
}

.flow-choice__hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 110px;
  background: linear-gradient(transparent, var(--flow-paper));
  content: "";
  pointer-events: none;
}

.flow-choice__hero > * {
  position: relative;
  z-index: 1;
}

.flow-choice__spread {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #795f45;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.flow-choice__spread::before,
.flow-choice__spread::after {
  color: #ae7c4c;
  content: "✦";
}

.flow-choice__hero h1 {
  margin: 10px 0 7px;
  color: #423127;
  font-family: var(--serif);
  font-size: clamp(29px, 8.2vw, 38px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.flow-choice__hero p {
  margin: 0;
  color: #755f4c;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.flow-choice__body {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom, 0px));
}

.flow-selection-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.flow-slot {
  position: relative;
  min-width: 0;
  text-align: center;
}

.flow-slot__card {
  position: relative;
  width: 100%;
  aspect-ratio: var(--tarot-ratio);
  overflow: hidden;
  border: 1px dashed rgba(123, 86, 50, 0.24);
  border-radius: 11px;
  color: rgba(116, 82, 50, 0.42);
  background: rgba(255, 251, 244, 0.5);
  box-shadow: inset 0 0 22px rgba(116, 83, 50, 0.035);
}

.flow-slot__card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #b88b59;
  font-size: 20px;
  content: "✦";
  transform: translate(-50%, -50%);
}

.flow-slot__card.is-filled {
  border-style: solid;
  border-color: rgba(151, 96, 48, 0.48);
  background: #eee3d1;
  box-shadow: 0 12px 28px rgba(74, 48, 27, 0.16);
}

.flow-slot__card.is-filled::before {
  display: none;
}

.flow-slot__label {
  display: block;
  margin-top: 8px;
  color: #49372a;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.4;
}

.flow-slot__desc {
  display: block;
  margin-top: 2px;
  color: #907965;
  font-size: 8px;
  line-height: 1.45;
}

.flow-slot__remove {
  position: absolute;
  z-index: 5;
  top: 4px;
  right: 4px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff8ec;
  background: rgba(50, 34, 24, 0.66);
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.flow-selection-status {
  margin: 17px 0 5px;
  color: #6f5947;
  font-size: 10px;
  text-align: center;
}

.flow-selection-status strong {
  margin: 0 4px;
  color: #753144;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}

.flow-deck-stage {
  position: relative;
  margin: 0 -16px;
  padding: 18px 0 12px;
  overflow: hidden;
}

.flow-deck-stage::before {
  position: absolute;
  right: -16%;
  bottom: 36px;
  left: -16%;
  height: 230px;
  border-top: 1px solid rgba(103, 77, 51, 0.12);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(235, 202, 147, 0.22), transparent 55%),
    rgba(239, 228, 209, 0.62);
  content: "";
}

.flow-deck-track {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 15px 31px 30px;
  scroll-padding-inline: 31px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.flow-deck-track::-webkit-scrollbar {
  display: none;
}

.flow-deck-card {
  position: relative;
  flex: 0 0 87px;
  width: 87px;
  aspect-ratio: var(--tarot-ratio);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(219, 190, 135, 0.36);
  border-radius: 9px;
  color: #dfc38c;
  background:
    radial-gradient(circle at 50% 38%, rgba(224, 183, 103, 0.14), transparent 25%),
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(231, 199, 141, 0.045) 11px 12px),
    linear-gradient(145deg, #2a2447, #10172e 72%);
  box-shadow: 0 12px 24px rgba(47, 34, 25, 0.18);
  scroll-snap-align: center;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.flow-deck-card::before,
.flow-deck-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 70%;
  background: linear-gradient(transparent, rgba(225, 190, 126, 0.23), transparent);
  content: "";
  transform: translate(-50%, -50%) rotate(37deg);
}

.flow-deck-card::after {
  transform: translate(-50%, -50%) rotate(-37deg);
}

.flow-deck-card__number {
  position: absolute;
  top: 8px;
  left: 9px;
  font-family: Georgia, serif;
  font-size: 12px;
}

.flow-deck-card__moon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(227, 193, 130, 0.56);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  transform: translate(-50%, -50%);
}

.flow-deck-card__moon::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(227, 193, 130, 0.15);
  border-radius: inherit;
  content: "";
}

.flow-deck-card__brand {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  font-family: var(--serif);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-align: center;
}

.flow-deck-card.is-pending {
  border-color: #d7b16a;
  color: #f2d695;
  box-shadow:
    0 16px 30px rgba(59, 41, 25, 0.24),
    0 0 0 2px rgba(214, 174, 101, 0.24);
  transform: translateY(-8px);
}

.flow-deck-card.is-confirmed {
  opacity: 0.18;
  pointer-events: none;
}

.flow-deck-card.is-flipping {
  animation: flow-card-confirm 0.52s var(--ease);
}

@keyframes flow-card-confirm {
  0% {
    transform: translateY(-8px) rotateY(0deg) scale(1);
  }
  60% {
    transform: translateY(-18px) rotateY(95deg) scale(1.04);
    border-color: #f2d696;
  }
  100% {
    transform: translateY(-8px) rotateY(180deg) scale(1);
  }
}

.flow-deck-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(99, 73, 49, 0.18);
  border-radius: 50%;
  color: #765d48;
  background: rgba(255, 250, 241, 0.84);
  box-shadow: 0 8px 18px rgba(61, 42, 24, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.flow-deck-nav--prev {
  left: 8px;
}

.flow-deck-nav--next {
  right: 8px;
}

.flow-choice__current {
  margin: 3px 0 0;
  color: #594438;
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
}

.flow-choice__hint {
  min-height: 18px;
  margin: 5px 0 17px;
  color: #927b66;
  font-size: 9px;
  text-align: center;
}

.flow-choice__actions {
  display: grid;
  gap: 10px;
}

.flow-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff8ed;
  background: #6e2637;
  box-shadow: 0 14px 28px rgba(97, 32, 46, 0.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 0.24s var(--ease),
    background 0.24s ease;
}

.flow-primary:hover {
  background: #5b1e2b;
  transform: translateY(-1px);
}

.flow-primary:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}

.flow-secondary {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(111, 78, 48, 0.17);
  border-radius: 999px;
  color: #765d47;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

/* Uploaded physical cards */
.flow-upload-reading {
  padding: 28px 17px calc(34px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% 8%, rgba(222, 183, 112, 0.2), transparent 21rem),
    linear-gradient(180deg, #f8f1e5, #eee1cd);
}

.flow-upload-reading__hero {
  text-align: center;
}

.flow-upload-reading__hero > p {
  margin: 0;
  color: #936d46;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.flow-upload-reading__hero h1 {
  margin: 12px auto 8px;
  color: #3e2e24;
  font-family: var(--serif);
  font-size: clamp(27px, 7.5vw, 37px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.flow-upload-reading__hero > span {
  display: block;
  max-width: 350px;
  margin: 0 auto;
  color: #826d59;
  font-size: 10px;
  line-height: 1.75;
}

.flow-upload-photo {
  position: relative;
  display: flex;
  min-height: 178px;
  max-height: 320px;
  align-items: center;
  justify-content: center;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid rgba(112, 76, 45, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(222, 185, 120, 0.12), transparent 45%),
    #17151a;
  box-shadow: 0 18px 34px rgba(60, 41, 24, 0.15);
}

.flow-upload-photo img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.flow-upload-photo > small {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.8);
  background: rgba(18, 15, 19, 0.66);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.flow-upload-photo__scan {
  position: absolute;
  right: 8%;
  left: 8%;
  display: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e6bd75 22%, #fff0c6 50%, #e6bd75 78%, transparent);
  box-shadow: 0 0 16px 3px rgba(229, 183, 100, 0.42);
}

.flow-upload-photo.is-scanning .flow-upload-photo__scan {
  display: block;
  animation: flow-scan-photo 2.4s ease-in-out infinite;
}

@keyframes flow-scan-photo {
  0%,
  100% {
    top: 14%;
    opacity: 0.35;
  }
  50% {
    top: 86%;
    opacity: 1;
  }
}

.flow-recognition-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 21px;
}

.flow-recognition-heading div {
  display: flex;
  flex-direction: column;
}

.flow-recognition-heading span {
  color: #9b8065;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.flow-recognition-heading strong {
  margin-top: 3px;
  color: #4b382b;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.flow-recognition-heading em {
  color: #8a6b49;
  font-size: 8px;
  font-style: normal;
}

.flow-recognition-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.flow-recognition-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(112, 76, 45, 0.16);
  border-radius: 13px;
  background: rgba(255, 251, 243, 0.68);
  box-shadow: 0 10px 24px rgba(73, 49, 27, 0.08);
}

.flow-recognition-card__position {
  display: block;
  min-height: 28px;
  color: #7d624b;
  font-size: 8px;
  line-height: 1.4;
  text-align: center;
}

.flow-recognition-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: var(--tarot-ratio);
  overflow: hidden;
  border: 2px solid #f8f2e8;
  border-radius: 6px;
  background: #19171b;
  box-shadow: 0 6px 15px rgba(56, 38, 23, 0.16);
}

.flow-recognition-card__visual > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(219, 177, 106, 0.7);
  background:
    radial-gradient(circle, rgba(217, 176, 103, 0.12), transparent 45%),
    linear-gradient(145deg, #2d2028, #111217);
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: normal;
}

.flow-recognition-card label {
  display: block;
  margin-top: 7px;
}

.flow-recognition-card label > span {
  display: block;
  margin-bottom: 3px;
  color: #a18b76;
  font-size: 7px;
}

.flow-recognition-card select {
  width: 100%;
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid rgba(107, 76, 46, 0.18);
  border-radius: 7px;
  outline: none;
  color: #533f31;
  background: rgba(255, 253, 247, 0.86);
  font-size: 8px;
}

.flow-recognition-card select:focus {
  border-color: rgba(129, 77, 39, 0.55);
  box-shadow: 0 0 0 2px rgba(129, 77, 39, 0.08);
}

.flow-recognition-card > small {
  display: block;
  margin-top: 6px;
  color: #9a7a59;
  font-size: 7px;
  text-align: center;
}

.flow-recognition-status,
.flow-recognition-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 3px 0;
  color: #7e6957;
  font-size: 9px;
  line-height: 1.65;
  text-align: left;
}

.flow-recognition-status i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #b3854c;
  box-shadow: 0 0 0 0 rgba(179, 133, 76, 0.34);
  animation: flow-report-pulse 1.2s ease-in-out infinite;
}

.flow-recognition-error {
  padding: 11px 12px;
  border: 1px solid rgba(129, 60, 52, 0.18);
  border-radius: 11px;
  color: #803e38;
  background: rgba(143, 70, 58, 0.055);
}

.flow-upload-reading__actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

/* Result */
.flow-result {
  padding: 32px 18px calc(34px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% 30%, rgba(232, 200, 142, 0.2), transparent 20rem),
    linear-gradient(180deg, #f6efe2, #eee1cd);
}

.flow-result__heading {
  text-align: center;
}

.flow-result__heading p {
  margin: 0;
  color: #7a6049;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.flow-result__heading h1 {
  margin: 12px 0 7px;
  color: #3e2d24;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.flow-result__heading small {
  display: block;
  color: #89715b;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.75;
}

.flow-result__spread {
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid rgba(107, 73, 43, 0.18);
  border-radius: 18px;
  color: #584436;
  background: rgba(255, 251, 242, 0.62);
  text-align: center;
}

.flow-result__spread strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.flow-result__spread span {
  display: block;
  margin-top: 4px;
  color: #8b7460;
  font-size: 9px;
  line-height: 1.65;
}

.flow-result__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  margin-top: 25px;
  perspective: 1200px;
}

.flow-result-card {
  min-width: 0;
  opacity: 0;
  transform: translateY(18px) rotateY(-8deg);
  animation: flow-result-reveal 0.72s calc(var(--i) * 0.16s) var(--ease) forwards;
}

@keyframes flow-result-reveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateY(0);
  }
}

.flow-result-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: var(--tarot-ratio);
  overflow: hidden;
  border: 4px solid #f7f1e6;
  border-radius: 8px;
  background: #19171b;
  box-shadow: 0 18px 30px rgba(54, 36, 23, 0.21);
}

.flow-result-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.flow-result-card__visual.is-reversed img {
  transform: rotate(180deg);
}

.flow-result-card__meta {
  margin-top: 10px;
  text-align: center;
}

.flow-result-card__meta span {
  display: block;
  color: #947b65;
  font-size: 8px;
  line-height: 1.45;
}

.flow-result-card__meta strong {
  display: block;
  margin-top: 3px;
  color: #513c2e;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.flow-result-card__meta small {
  display: block;
  margin-top: 2px;
  color: #9a7657;
  font-size: 8px;
}

.flow-result__question {
  margin: 23px 0 0;
  padding: 13px 15px;
  border-left: 2px solid #b6874f;
  border-radius: 0 10px 10px 0;
  color: #6b5542;
  background: rgba(255, 251, 243, 0.54);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.75;
}

.flow-result__actions {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.flow-trust {
  margin: 12px 0 0;
  color: #9a8775;
  font-size: 8px;
  text-align: center;
}

.flow-trust::before {
  margin-right: 5px;
  content: "◈";
}

/* Generic tarot card faces */
.tarot-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #18151b;
}

.tarot-card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tarot-card-face.is-reversed img {
  transform: rotate(180deg);
}

.generated-card-face {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #2f261d;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 240, 193, 0.75), transparent 35%),
    linear-gradient(160deg, #f1dfb4, #d8bb84);
}

.generated-card-face::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(51, 39, 26, 0.35);
  border-radius: 48% 48% 4px 4px;
  content: "";
}

.generated-card-face--wands {
  background: linear-gradient(160deg, #efc37a, #c77d3e);
}

.generated-card-face--cups {
  background: linear-gradient(160deg, #d6e5e2, #7fa2af);
}

.generated-card-face--swords {
  background: linear-gradient(160deg, #e5e2cd, #9aa795);
}

.generated-card-face--pentacles {
  background: linear-gradient(160deg, #e3dcae, #86a06d);
}

.generated-card-face--major {
  color: #f0dfbb;
  background:
    radial-gradient(circle at 50% 36%, rgba(220, 174, 93, 0.2), transparent 34%),
    linear-gradient(160deg, #443044, #171423);
}

.generated-card-face--major::before {
  border-color: rgba(238, 207, 151, 0.36);
}

.generated-card-face__number {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-align: center;
}

.generated-card-face__seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
  box-shadow: 0 0 0 8px rgba(65, 49, 31, 0.035);
}

.generated-card-face strong {
  position: relative;
  z-index: 1;
  max-width: 86%;
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(10px, 3.3vw, 15px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.generated-card-face small {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 5px;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0.7;
}

.generated-card-face__pips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 72%;
  gap: 2px;
  margin-top: 10px;
  font-size: 8px;
}

/* Report */
.flow-report {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 90% 5%, rgba(226, 193, 136, 0.14), transparent 18rem),
    var(--flow-paper);
}

.flow-report__header {
  padding: 28px 19px 17px;
}

.flow-report__consult-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 7px 7px 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(151, 43, 55, 0.28);
  border-radius: 13px;
  background:
    radial-gradient(circle at 0 50%, rgba(176, 47, 63, 0.1), transparent 10rem),
    rgba(255, 248, 238, 0.9);
  box-shadow: 0 7px 18px rgba(91, 44, 35, 0.07);
}

.flow-report__marquee {
  min-width: 0;
  flex: 1;
  height: 31px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #932d3d;
  background: transparent;
  text-align: left;
  cursor: pointer;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.flow-report__marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  height: 100%;
  animation: flow-report-marquee 18s linear infinite;
}

.flow-report__marquee:hover .flow-report__marquee-track,
.flow-report__marquee:focus-visible .flow-report__marquee-track {
  animation-play-state: paused;
}

.flow-report__marquee-track > span {
  flex: 0 0 auto;
  padding-right: 42px;
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes flow-report-marquee {
  to {
    transform: translateX(-50%);
  }
}

.flow-report__consult-button {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  color: #fff8ed;
  background: #713044;
  box-shadow: 0 6px 14px rgba(91, 35, 51, 0.15);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.flow-report__consult-button:active {
  transform: translateY(1px);
}

.flow-report__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7a6755;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.flow-report__eyebrow strong {
  padding: 4px 8px;
  border: 1px solid rgba(108, 79, 52, 0.18);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.flow-report__header h1 {
  margin: 19px 0 9px;
  color: #35271f;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.flow-report__question {
  margin: 0;
  color: #49372c;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

.flow-report__method {
  margin: 7px 0 0;
  color: #8a7664;
  font-size: 9px;
}

.flow-report__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid rgba(107, 77, 48, 0.15);
  border-radius: 12px;
  background: rgba(255, 251, 243, 0.58);
}

.flow-report__tabs button {
  min-height: 35px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: #786552;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.flow-report__tabs button.is-active {
  color: #4b382a;
  background: #fffaf1;
  box-shadow: 0 2px 8px rgba(75, 51, 29, 0.06);
}

.flow-report__loading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 19px 0;
  color: #88725d;
  font-size: 10px;
}

.flow-report__loading i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b58951;
  box-shadow: 0 0 0 0 rgba(181, 137, 81, 0.38);
  animation: flow-report-pulse 1.2s ease-in-out infinite;
}

@keyframes flow-report-pulse {
  65% {
    box-shadow: 0 0 0 7px rgba(181, 137, 81, 0);
  }
}

.flow-report [data-typewriter] {
  min-height: 1em;
  white-space: pre-wrap;
}

.flow-report [data-typewriter].is-typing::after {
  display: inline-block;
  width: 0.38em;
  height: 1em;
  margin-left: 0.14em;
  border-radius: 1px;
  background: rgba(139, 95, 48, 0.54);
  content: "";
  vertical-align: -0.12em;
  animation: flow-type-caret 0.72s steps(1) infinite;
}

@keyframes flow-type-caret {
  50% {
    opacity: 0;
  }
}

.flow-report__body {
  padding: 0 19px;
}

.flow-report-error {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  padding: 20px 17px;
  border: 1px solid rgba(124, 70, 49, 0.19);
  border-radius: 15px;
  background: rgba(255, 252, 245, 0.76);
}

.flow-report-error p {
  margin: 0 0 4px;
  color: #674e3f;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.flow-opening {
  margin-top: 17px;
  padding: 20px 17px;
  border: 1px solid rgba(106, 76, 49, 0.17);
  border-radius: 15px;
  background: rgba(255, 252, 245, 0.72);
}

.flow-opening > span {
  color: #856e58;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.flow-opening h2 {
  margin: 8px 0 10px;
  color: #463328;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.flow-opening p {
  margin: 0;
  color: #554236;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
}

.flow-report-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(106, 77, 50, 0.13);
}

.flow-report-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.flow-report-section__heading > div {
  min-width: 0;
}

.flow-report-section__label {
  margin: 0;
  color: #8e7864;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.flow-report-section h3 {
  margin: 7px 0 0;
  color: #3d2c22;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.flow-report-section__badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(114, 82, 53, 0.18);
  border-radius: 5px;
  color: #87715d;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  vertical-align: middle;
}

.flow-report-section__position {
  margin: 5px 0 0;
  color: #917b67;
  font-size: 9px;
}

.flow-report-thumb {
  flex: 0 0 46px;
  width: 46px;
  aspect-ratio: var(--tarot-ratio);
  overflow: hidden;
  border: 2px solid #f8f2e8;
  border-radius: 5px;
  background: #1a171b;
  box-shadow: 0 4px 10px rgba(69, 46, 27, 0.13);
}

.flow-report-thumb .tarot-card-face {
  position: relative;
}

.flow-report-section__text {
  margin: 15px 0 0;
  color: #4e3b30;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.95;
}

.flow-report-locked {
  position: relative;
  margin-top: 18px;
  padding: 20px 16px;
  overflow: hidden;
  border: 1px solid rgba(107, 76, 48, 0.14);
  border-radius: 14px;
  background: rgba(235, 223, 205, 0.52);
}

.flow-report-locked__heading span {
  color: #8d7763;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.flow-report-locked__heading h3 {
  margin: 6px 0;
  color: #47352a;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.flow-report-locked__heading h3 em {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(108, 80, 52, 0.17);
  border-radius: 5px;
  color: #88705a;
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  vertical-align: middle;
}

.flow-report-locked__heading p {
  margin: 0;
  color: #786554;
  font-size: 10px;
  line-height: 1.7;
}

.flow-lock-lines {
  position: relative;
  min-height: 82px;
  margin-top: 14px;
  overflow: hidden;
}

.flow-lock-lines i {
  display: block;
  height: 11px;
  margin: 7px 0;
  border-radius: 8px;
  background: rgba(120, 93, 64, 0.18);
  filter: blur(3px);
}

.flow-lock-lines i:nth-child(2) {
  width: 87%;
}

.flow-lock-lines i:nth-child(3) {
  width: 72%;
}

.flow-lock-lines span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 6px 10px;
  border: 1px solid rgba(111, 78, 48, 0.17);
  border-radius: 8px;
  color: #6f5947;
  background: #f8f0e4;
  font-size: 9px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.flow-report-unlock {
  margin: 22px 0 0;
  padding: 22px 17px;
  border: 1px solid rgba(118, 81, 47, 0.18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(225, 182, 111, 0.16), transparent 12rem),
    rgba(255, 250, 240, 0.78);
}

.flow-report-unlock > span {
  color: #8a715b;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.flow-report-unlock h3 {
  margin: 7px 0 8px;
  color: #402f24;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.flow-report-unlock p {
  margin: 0;
  color: #6e5948;
  font-size: 10px;
  line-height: 1.75;
}

.flow-report-unlock ul {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.flow-report-unlock li {
  display: flex;
  gap: 7px;
  margin: 7px 0;
  color: #5e4839;
  font-size: 10px;
  line-height: 1.6;
}

.flow-report-unlock li::before {
  color: #b3864f;
  content: "✓";
}

.flow-boundary {
  margin: 16px 0 0;
  color: #998776;
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
}

.flow-report__unlocked {
  animation: flow-report-in 0.6s var(--ease) both;
}

@keyframes flow-report-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Paywall */
.flow-paywall {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 0 0;
  background: rgba(16, 12, 10, 0.52);
  backdrop-filter: blur(10px);
}

.flow-paywall__sheet {
  width: min(100%, 480px);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 23px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  color: #3d2b22;
  background:
    radial-gradient(circle at 90% 0, rgba(225, 186, 119, 0.18), transparent 14rem),
    #f8f0e4;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.22);
}

.flow-paywall__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.flow-paywall__top span {
  color: #876f59;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.flow-paywall__top h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.flow-paywall__top button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(105, 74, 46, 0.16);
  border-radius: 50%;
  color: #705a47;
  background: transparent;
  cursor: pointer;
}

.flow-paywall__intro {
  margin: 9px 0 17px;
  color: #776451;
  font-size: 10px;
  line-height: 1.7;
}

.flow-paywall__plans {
  display: grid;
  gap: 9px;
}

.flow-plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(108, 77, 49, 0.16);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.55);
  cursor: pointer;
}

.flow-plan.is-selected {
  border-color: rgba(151, 96, 48, 0.62);
  box-shadow: inset 0 0 0 1px rgba(157, 102, 52, 0.15);
}

.flow-plan strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.flow-plan small {
  display: block;
  margin-top: 4px;
  color: #8d7764;
  font-size: 9px;
  line-height: 1.55;
}

.flow-plan b {
  color: #703044;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.flow-plan b em {
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
}

.flow-paywall__benefits {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
}

.flow-paywall__benefits span {
  color: #665142;
  font-size: 9px;
}

.flow-paywall__benefits span::before {
  margin-right: 7px;
  color: #a57746;
  content: "✓";
}

.flow-paywall__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.flow-pay-button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fffaf0;
  background: #3f3227;
  font-size: 11px;
  cursor: pointer;
}

.flow-pay-button--wechat {
  background: #2b6d4b;
}

.flow-paywall__buttons.is-single .flow-pay-button {
  grid-column: 1 / -1;
}

.flow-paywall__contact {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(95, 65, 39, 0.18);
  border-radius: 12px;
  color: #745841;
  background: rgba(255, 251, 243, 0.72);
  font-size: 10px;
  cursor: pointer;
}

.flow-payment-qr {
  display: grid;
  place-items: center;
  padding-top: 16px;
  text-align: center;
}

.flow-payment-qr > strong {
  color: #6d2638;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.flow-payment-qr img {
  width: min(72vw, 260px);
  aspect-ratio: 1;
  margin-top: 12px;
  border: 10px solid #fff;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(64, 42, 24, 0.14);
}

.flow-payment-qr p {
  max-width: 340px;
  margin: 13px auto 16px;
  color: #806b59;
  font-size: 9px;
  line-height: 1.7;
}

.flow-payment-qr .flow-primary,
.flow-payment-qr .flow-secondary {
  width: 100%;
  margin-top: 8px;
}

.flow-payment-loading,
.flow-payment-checkout,
.flow-payment-error {
  display: grid;
  place-items: center;
  padding: 28px 5px 8px;
  text-align: center;
}

.flow-payment-loading .flow-spinner {
  width: 26px;
  height: 26px;
}

.flow-payment-loading p,
.flow-payment-checkout > p,
.flow-payment-error p {
  max-width: 340px;
  margin: 13px auto;
  color: #806b59;
  font-size: 10px;
  line-height: 1.7;
}

.flow-payment-checkout > strong {
  color: #6d2638;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.flow-payment-checkout > img {
  width: min(72vw, 250px);
  aspect-ratio: 1;
  margin-top: 12px;
  border: 10px solid #fff;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(64, 42, 24, 0.14);
}

.flow-payment-native-qr {
  width: min(72vw, 250px);
  aspect-ratio: 1;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(64, 42, 24, 0.14);
}

.flow-payment-native-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.flow-payment-checkout .flow-primary,
.flow-payment-checkout .flow-secondary,
.flow-payment-error .flow-secondary {
  width: 100%;
  margin-top: 8px;
  text-decoration: none;
}

.flow-payment-status {
  min-height: 20px;
  color: #9a6d52 !important;
  font-size: 9px !important;
}

.flow-paywall__note {
  margin: 12px 0 0;
  color: #9a8877;
  font-size: 8px;
  line-height: 1.65;
  text-align: center;
}

.flow-toast {
  position: fixed;
  z-index: 1300;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  max-width: 448px;
  margin: auto;
  padding: 11px 14px;
  border: 1px solid rgba(235, 202, 143, 0.2);
  border-radius: 11px;
  opacity: 0;
  color: #f6ead3;
  background: rgba(33, 26, 24, 0.93);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
  backdrop-filter: blur(10px);
}

.flow-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: flow-spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes flow-spin {
  to {
    transform: rotate(360deg);
  }
}

.flow-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 370px) {
  .source-options {
    grid-template-columns: 1fr;
  }

  .source-option {
    min-height: 78px;
  }

  .source-picker legend {
    display: block;
  }

  .source-picker legend small {
    display: block;
    margin-top: 4px;
  }

  .flow-match-option {
    min-height: 108px;
    padding: 12px 9px 10px;
  }

  .flow-match-option strong {
    font-size: 14px;
  }

  .flow-choice__hero {
    padding-top: 24px;
  }

  .flow-choice__hero h1 {
    font-size: 28px;
  }

  .flow-slot__label {
    font-size: 10px;
  }

  .flow-slot__desc {
    font-size: 7px;
  }

  .flow-deck-card {
    flex-basis: 79px;
    width: 79px;
  }

  .flow-deck-track {
    gap: 7px;
  }

  .flow-report__body,
  .flow-report__header {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (min-width: 600px) {
  .flow-match-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-choice__body {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-flow *,
  .tarot-flow *::before,
  .tarot-flow *::after,
  .source-option {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .flow-report__marquee-track {
    display: block;
    transform: none !important;
    animation: none !important;
  }

  .flow-report__marquee-track > span {
    display: block;
    overflow: hidden;
    padding-right: 0;
    text-overflow: ellipsis;
  }

  .flow-report__marquee-track > span + span {
    display: none;
  }
}
