.fl-main {
  --fl-ink: #f4e8d5;
  --fl-gold: #e6c68c;
  --fl-muted: #b5b8c4;
  --fl-line: rgba(219, 188, 133, 0.32);
  --fl-panel: #101e30;
  color: var(--fl-ink);
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
  text-align: left;
  min-height: 65vh;
  font-family: inherit;
  overflow-wrap: anywhere;
}
.fl-main * {
  box-sizing: border-box;
}
.fl-main :where(h1, h2, h3, p, ol, fieldset, figure) {
  margin: 0;
}
.fl-main h1,
.fl-main h2,
.fl-main h3,
.fl-summary,
.fl-price,
.fl-orbit {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
.fl-main h1 {
  color: var(--fl-ink);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0.48rem 0 1rem;
  text-wrap: balance;
}
.fl-main h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.fl-main h3 {
  font-size: 1.35rem;
  line-height: 1.24;
}
.fl-main p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fl-muted);
}
.fl-main a {
  color: var(--fl-gold);
}
.fl-main :where(button, input, select, textarea) {
  font: inherit;
}
.fl-main :where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #f6ce83;
  outline-offset: 4px;
}
.fl-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.fl-back span {
  font:
    1.45rem Georgia,
    serif;
  line-height: 1;
}
.fl-eyebrow {
  display: block;
  color: var(--fl-gold);
  font:
    500 0.78rem/1.45 system-ui,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fl-two,
.fl-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin: 0 0 2.5rem;
}
.fl-single-back {
  justify-self: center;
  width: min(100%, 320px);
  height: auto;
}
.fl-stage,
.fl-result-board,
.fl-reading-board {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 325px;
  padding: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid var(--fl-line);
  border-radius: 18px;
  background: radial-gradient(ellipse at 52% 46%, #1c2e42 0%, #112033 45%, #0c1828 85%);
  overflow: hidden;
}
.fl-stage::before,
.fl-result-board::before,
.fl-reading-board::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(75%, 345px);
  aspect-ratio: 1;
  border: 1px solid rgba(208, 173, 112, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(219, 188, 133, 0.025),
    0 0 0 36px rgba(219, 188, 133, 0.025);
}
.fl-copy h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.45rem;
}
.fl-meta,
.fl-lead {
  margin-bottom: 1.25rem !important;
}
.fl-meta b {
  color: var(--fl-gold);
  margin: 0 0.38rem;
}
.fl-price {
  font-size: 2.1rem;
  color: var(--fl-gold);
  margin: 1.25rem 0 0.8rem;
}
.fl-main .fl-note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--fl-muted);
  margin: 0.8rem 0;
}
.fl-narrow {
  width: min(100%, 680px);
  margin-inline: auto;
}
.fl-payment-note {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
}
.fl-payment-note p + p {
  margin-top: 1.5rem;
}
.fl-panel {
  border: 1px solid var(--fl-line);
  border-radius: 16px;
  padding: clamp(1.15rem, 3.5vw, 2.2rem);
  background: linear-gradient(120deg, rgba(24, 40, 59, 0.94), rgba(13, 27, 43, 0.94));
  margin-top: 1rem;
}
.fl-panel > h2,
.fl-panel > h3 {
  margin-bottom: 0.55rem;
}
.fl-panel > p + .fl-btn,
.fl-panel > p + .fl-actions {
  margin-top: 1rem;
}
.fl-positions,
.fl-actions,
.fl-heading-actions,
.fl-form-row,
.fl-check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fl-actions {
  margin: 0.9rem 0 0.2rem;
}
.fl-btn,
.fl-main button.fl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.74rem 1.25rem;
  border: 1px solid var(--fl-line);
  background: transparent;
  color: var(--fl-ink);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: normal;
  text-align: center;
}
.fl-btn:hover,
.fl-main button.fl-btn:hover {
  border-color: var(--fl-gold);
  background: #233146;
}
.fl-btn.primary,
.fl-main button.fl-btn.primary {
  background: #e6c68c;
  color: #1c1b20;
  border-color: #e6c68c;
  font-weight: 650;
}
.fl-btn.primary:hover,
.fl-main button.fl-btn.primary:hover {
  background: #f7dba6;
  border-color: #f7dba6;
}
.fl-main button:disabled {
  opacity: 0.5;
  cursor: default;
}
.fl-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--fl-line);
  margin: 1.2rem 0 0.8rem;
  padding: 1rem 0 0;
}
.fl-total strong {
  font:
    500 1.75rem/1.15 Georgia,
    serif;
  color: var(--fl-gold);
}
.fl-state,
.fl-chip {
  display: inline-block;
  width: fit-content;
  padding: 0.28rem 0.68rem;
  border: 1px solid var(--fl-line);
  border-radius: 999px;
  color: var(--fl-gold) !important;
  font-size: 0.83rem !important;
}
.fl-panel > .fl-state {
  margin: 0 0 0.9rem;
}
.fl-slip {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  border-bottom: 1px solid var(--fl-line);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}
.fl-slip img {
  width: 62px;
  height: 100px;
  object-fit: contain;
  border-radius: 4px;
}
.fl-slip h2 {
  margin: 0.28rem 0;
}
.fl-field {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.15rem;
}
.fl-field small {
  margin-left: 0.25rem;
  color: var(--fl-muted);
}
.fl-field :where(input, textarea, select) {
  display: block;
  width: 100%;
  font: inherit;
  line-height: 1.45;
  margin-top: 0.35rem;
  padding: 0.75rem 0.86rem;
  border: 1px solid rgba(203, 188, 156, 0.4);
  border-radius: 8px;
  background: #0b1829;
  color: var(--fl-ink);
  resize: vertical;
  min-width: 0;
}
.fl-field select {
  color-scheme: dark;
}
.fl-field textarea::placeholder,
.fl-field input::placeholder {
  color: #9ca7b8;
}
.fl-form-row {
  align-items: start;
}
.fl-form-row .fl-field {
  flex: 1 1 180px;
}
.fl-main input[type='checkbox'],
.fl-main input[type='radio'] {
  accent-color: #dfbe85;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.fl-main button[data-act='overview'] {
  margin: -0.35rem 0 1rem;
}
.fl-position-list {
  columns: 2;
  column-gap: 2.2rem;
  line-height: 1.65;
  padding-left: 1.4rem;
  margin: 1rem 0 0;
}
.fl-position-list li {
  break-inside: avoid;
  margin: 0 0 0.35rem;
}
.fl-position-list li::marker {
  color: var(--fl-gold);
}
.fl-error {
  color: #ffbdb6 !important;
  margin: 0.85rem 0 !important;
}
.fl-loading {
  padding: 4rem;
  text-align: center;
}
.fl-board {
  width: min(100%, 390px);
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.48rem;
}
.fl-board.single {
  max-width: 145px;
}
.fl-board.cross {
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  max-width: 245px;
}
.fl-board.cross .fl-cell:nth-child(1) {
  grid-area: 2/1;
}
.fl-board.cross .fl-cell:nth-child(2) {
  grid-area: 2/3;
}
.fl-board.cross .fl-cell:nth-child(3) {
  grid-area: 1/2;
}
.fl-board.cross .fl-cell:nth-child(4) {
  grid-area: 3/2;
}
.fl-board.cross .fl-cell:nth-child(5) {
  grid-area: 2/2;
}
.fl-board.row {
  display: flex;
  justify-content: center;
}
.fl-board.row .fl-cell {
  flex: 1 1 0;
}
.fl-cell {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  color: var(--fl-ink);
}
.fl-cell-image {
  display: block;
  background:
    var(--face) center/cover no-repeat,
    #1c2a3d;
  border-radius: 4px;
  border: 1px solid #b89b6f;
  aspect-ratio: 4/7;
  width: 100%;
  box-shadow: 0 4px 15px #03091280;
}
.fl-cell .fl-index {
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #ddbf88;
  border-radius: 99px;
  background: #101e30ed;
  color: #ffdc9e;
  font:
    500 0.74rem/1 Georgia,
    serif;
}
.fl-cell.shown:not(button) .fl-index,
button.fl-cell .fl-index {
  bottom: -0.35rem;
}
button.fl-cell {
  cursor: pointer;
}
.fl-board.zodiac {
  position: relative;
  display: block;
  width: min(100%, 370px);
  aspect-ratio: 1;
  background: repeating-conic-gradient(from -15deg, transparent 0deg 29.6deg, rgba(229, 193, 131, 0.23) 29.8deg 30deg);
  border: 1px solid var(--fl-line);
  border-radius: 50%;
}
.fl-board.zodiac .fl-cell {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 11.8%;
}
.fl-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 53%;
  aspect-ratio: 1;
  border: 1px solid #ae9465;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #263e53, #13273b 58%);
  color: #dfc093;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}
.fl-reading-board {
  margin-top: 1.2rem;
}
.fl-reading-board .fl-board.cross {
  max-width: 185px;
}
.fl-last {
  color: var(--fl-gold) !important;
  text-align: center;
  margin-top: 1rem !important;
}
.fl-wait {
  text-align: center;
}
.fl-moon-icon {
  font: 4.5rem/1 Georgia;
  color: var(--fl-gold);
  margin: 0.8rem 0 1.4rem;
}
.fl-result-head {
  max-width: 850px;
  margin-bottom: 2rem;
}
.fl-result-head .fl-state {
  margin: 0 0 1.1rem;
}
.fl-result-head .fl-summary {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  color: var(--fl-ink);
  white-space: pre-line;
}
.fl-result-grid {
  align-items: start;
  gap: clamp(1rem, 3vw, 2.25rem);
}
.fl-result-single {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
}
.fl-result-single .fl-board.single {
  width: 100%;
  max-width: 640px;
}
.fl-result-single .fl-cell-image {
  width: min(100%, calc((100svh - 3rem) * 2 / 3));
  aspect-ratio: 2 / 3;
  margin-inline: auto;
  background-size: contain;
  background-color: transparent;
  border: 0;
  border-radius: 4.2% / 2.8%;
  box-shadow: none;
}
.fl-result-single .fl-index {
  position: static;
  translate: none;
  width: fit-content;
  margin: 0.4rem auto 0;
}
.fl-results h2 {
  margin-bottom: 0.85rem;
}
.fl-position {
  border: 1px solid var(--fl-line);
  border-radius: 10px;
  background: var(--fl-panel);
  margin-bottom: 0.55rem;
  overflow: hidden;
}
.fl-position > summary,
.fl-admin-detail summary {
  list-style: none;
  cursor: pointer;
}
.fl-position > summary::-webkit-details-marker,
.fl-admin-detail summary::-webkit-details-marker {
  display: none;
}
.fl-position > summary {
  display: grid;
  grid-template-columns: 1.6rem 2.5rem minmax(0, 1fr) 0.65rem;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
}
.fl-position.fl-house-description > summary {
  grid-template-columns: 1.6rem minmax(0, 1fr) 0.65rem;
}
.fl-position > summary::after {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid var(--fl-gold);
  border-bottom: 1px solid var(--fl-gold);
  transform: rotate(45deg);
}
.fl-position[open] summary::after {
  transform: rotate(225deg);
}
.fl-position > summary img {
  width: 2.5rem;
  height: 3.45rem;
  object-fit: cover;
  border: 1px solid var(--fl-line);
  border-radius: 3px;
}
.fl-no {
  font-family: Georgia, serif;
  color: var(--fl-gold);
  text-align: center;
}
.fl-position > summary strong,
.fl-position > summary small {
  display: block;
}
.fl-position > summary small {
  font-size: 0.88rem;
  color: var(--fl-muted);
  margin-top: 0.15rem;
}
.fl-position-body {
  border-top: 1px solid var(--fl-line);
  padding: 1rem;
}
.fl-position-body h3 {
  margin: 0.65rem 0 0.25rem;
}
.fl-position-body p,
.fl-result-sections p {
  white-space: pre-line;
}
.fl-result-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.fl-result-sections .fl-panel {
  margin-top: 0;
}
.fl-house-offer,
.fl-heading-actions,
.fl-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.fl-house-offer > div {
  flex: 1 1 320px;
}
.fl-house-offer h2 {
  margin: 0.3rem 0;
}
.fl-main fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
  margin-bottom: 1.2rem;
}
.fl-main legend {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.fl-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 0.5rem;
}
.fl-packs label {
  display: block;
  position: relative;
  cursor: pointer;
}
.fl-packs input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}
.fl-packs span {
  height: 100%;
  display: block;
  padding: 0.65rem 0.6rem;
  border: 1px solid var(--fl-line);
  border-radius: 7px;
  background: #102033;
  color: var(--fl-ink);
}
.fl-packs strong {
  color: var(--fl-gold);
  display: block;
  font:
    500 1.4rem/1 Georgia,
    serif;
}
.fl-packs small {
  display: block;
  margin-top: 0.45rem;
  color: var(--fl-muted);
  font-size: 0.8rem;
}
.fl-packs input:checked + span {
  border-color: var(--fl-gold);
  background: #293346;
}
.fl-packs input:focus-visible + span {
  outline: 2px solid var(--fl-gold);
  outline-offset: 2px;
}
.fl-house-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
}
.fl-house-list label,
.fl-check-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  line-height: 1.45;
}
.fl-house-list b {
  color: var(--fl-gold);
}
.fl-selected {
  margin: 0.5rem 0 1rem !important;
}
.fl-records {
  margin: 1.7rem 0;
}
.fl-records h2 {
  margin-bottom: 0.75rem;
}
.fl-record {
  padding: 1rem 1.2rem;
  border: 1px solid var(--fl-line);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  background: var(--fl-panel);
  color: var(--fl-ink) !important;
}
.fl-record > div {
  flex: 1 1 65%;
}
.fl-record h3 {
  margin-top: 0.3rem;
}
.fl-record:hover {
  border-color: var(--fl-gold);
}
.fl-moderation,
.fl-admin-detail {
  border-top: 1px solid var(--fl-line);
  padding: 1rem 0;
}
.fl-moderation .fl-hash {
  font: 0.8rem/1.5 monospace;
  word-break: break-all;
  margin: 0.3rem 0;
}
.fl-admin-detail summary {
  font-size: 1.1rem;
  color: var(--fl-gold);
  padding: 0.3rem;
}
.fl-admin-detail summary small {
  font-size: 0.8rem;
  color: var(--fl-muted);
  margin-left: 0.5rem;
}
.fl-admin-detail form {
  margin: 0.8rem 0;
}
.fl-check-row {
  margin: 0 0 1rem;
}
@media (max-width: 720px) {
  .fl-two,
  .fl-result-grid {
    grid-template-columns: 1fr;
  }
  .fl-stage {
    min-height: 220px;
  }
  .fl-two {
    gap: 1.3rem;
  }
  .fl-result-board {
    min-height: 240px;
  }
  .fl-board.cross {
    max-width: 175px;
  }
  .fl-single-back {
    max-width: min(60vw, 220px);
  }
  .fl-result-single {
    margin-inline: -0.5rem;
  }
  .fl-position-list {
    columns: 1;
  }
  .fl-heading-actions {
    align-items: start;
  }
  .fl-main h1 {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
  }
}
@media (max-width: 450px) {
  .fl-house-list {
    grid-template-columns: 1fr;
  }
  .fl-back {
    margin-bottom: 1.3rem;
  }
  .fl-main .fl-field {
    font-size: 1rem;
  }
  .fl-slip {
    gap: 0.7rem;
  }
  .fl-stage,
  .fl-result-board {
    padding: 1rem;
  }
  .fl-results .fl-position > summary {
    gap: 0.4rem;
    padding: 0.65rem;
  }
  .fl-state {
    white-space: normal;
  }
  .fl-actions .fl-btn {
    flex: 1 1 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl-main * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Rotate only the card face: position numbers remain upright. */
.fl-card-reversed {
  rotate: 180deg;
}
/* The card table replaces all site chrome only while cards are being chosen. */
body:has(.fl-drawing-table) > :is(.site-header, .site-footer, .skip-link),
#main-content:has(.fl-drawing-table) ~ .site-footer {
  display: none;
}
.fl-main:has(.fl-drawing-table) {
  max-width: none;
  padding: 0;
}
.fl-drawing-table {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: clamp(12px, 2dvh, 28px);
  padding: max(12px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
           max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 37%, #1b2d41, #111d2b 66%, #101923);
}
.fl-drawing-table .fl-board.row { width: min(94%, 81dvh, 760px); }
.fl-drawing-table .fl-board.cross { max-width: min(80vw, 27dvh, 330px); }
.fl-drawing-table .fl-board.single { max-width: min(42vw, 22dvh, 240px); }
/* Zodiac drawing: the ring gets most of the viewport; the compact fan stays below. */
.fl-drawing-table:has(.fl-zodiac-stage) {
  height: 100dvh;
  grid-template: minmax(128px, 1fr) auto / minmax(0, 1fr);
  gap: 0;
}
.fl-zodiac-stage {
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
  container-type: size;
}
.fl-drawing-table .fl-zodiac-stage .fl-board.zodiac {
  width: min(810px, calc(100cqw - 24px), calc((100cqh - 16px) / 1.07));
}
.fl-zodiac-stage .fl-board.zodiac .fl-cell { width: 11.4%; }
.fl-zodiac-stage .fl-orbit {
  width: 54%;
  font-size: clamp(1.8rem, 13cqh, 6.5rem);
}
.fl-card-reveal {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(7 15 26 / 72%);
}
.fl-card-reveal img {
  box-sizing: border-box;
  display: block;
  width: min(80vw, 41dvh, 450px);
  aspect-ratio: 4/7;
  border: 1px solid #bba476;
  border-radius: clamp(5px, 1vw, 12px);
  box-shadow: 0 18px 65px #030912d9;
  object-fit: cover;
}
.fl-drawing-table:has(.fl-zodiac-stage) .fl-deck-area { max-width: 1240px; }
.fl-drawing-table:has(.fl-zodiac-stage) .fl-deck-fan {
  --card: clamp(43px, min(9vw, 6.8dvh), 92px);
  --edge: calc(var(--card) * 1.12);
  --head: 20px;
  --bend: clamp(17px, 3.1dvh, 38px);
  --angle: 23deg;
  --lift: 15px;
}
.fl-draw-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.fl-drawing-table .fl-draw-target .fl-cell-image {
  outline: 2px solid var(--fl-gold);
  outline-offset: 3px;
}
.fl-drawing-table .fl-deck-area { width: 100%; max-width: 1800px; }
.fl-deck-fan {
  --card: clamp(72px, min(14vw, 19dvh), 216px);
  --height: calc(var(--card) * 1.66);
  --edge: calc(var(--card) * 1.12);
  --head: 34px;
  --bend: clamp(28px, 8dvh, 100px);
  --angle: 30deg;
  --lift: 28px;
  --stride: 0px;
  --rows: 1;
  --per-row: var(--count);
  position: relative;
  isolation: isolate;
  height: calc(var(--head) + var(--height) + var(--bend) + 20px + (var(--rows) - 1) * var(--stride));
  touch-action: pan-y;
  user-select: none;
}
.fl-fan-card {
  --active-x: var(--x);
  --active-row: var(--row);
  --active-sag: var(--sag);
  --active-turn: var(--turn);
  position: absolute;
  left: calc(var(--edge) + (100% - 2 * var(--edge)) * var(--active-x));
  top: calc(var(--head) + var(--stride) * var(--active-row) + var(--bend) * var(--active-sag));
  width: calc((100% - 2 * var(--edge)) / max(1, var(--per-row) - 1));
  height: var(--hit-height, var(--height));
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  outline: none;
  pointer-events: none;
}
.fl-fan-card::before,
.fl-fan-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card);
  height: var(--height);
  max-width: none;
  transform: translateX(-50%) rotate(calc(var(--angle) * var(--active-turn)));
  transform-origin: center 82%;
}
.fl-fan-card::before {
  content: '';
  pointer-events: auto;
  cursor: pointer;
}
.fl-fan-card img {
  object-fit: cover;
  border: 1px solid #bba476;
  border-radius: 6px;
  box-shadow: 0 5px 10px #03091294;
  transition: transform 150ms ease, filter 150ms ease;
  pointer-events: none;
  -webkit-user-drag: none;
}
.fl-fan-card:focus-visible img,
.fl-fan-card.fl-lifted img {
  transform: translate(-50%, calc(-1 * var(--lift))) rotate(calc(var(--angle) * var(--active-turn) * .35));
  z-index: 3;
  filter: brightness(1.22);
  outline: 2px solid var(--fl-gold);
}
@media (hover:hover) {
  .fl-fan-card:hover img {
    z-index: 4;
    transform: translate(-50%, calc(-1 * var(--lift))) rotate(calc(var(--angle) * var(--active-turn) * .35));
    filter: brightness(1.22);
  }
}
.fl-fan-card.fl-pick-pending img { opacity: .45; }
.fl-draw-feedback:not(:empty) {
  position: fixed;
  z-index: 10;
  inset: auto 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  margin-inline: auto;
  padding: 0 1em;
  border: 1px solid var(--fl-line);
  border-radius: 0.5rem;
  background: var(--fl-panel);
}
.fl-flying-card {
  position: fixed;
  z-index: 1000;
  margin: 0;
  border: 1px solid #bba476;
  border-radius: 6px;
  object-fit: cover;
  transform-origin: top left;
  pointer-events: none;
}
@media (max-width: 880px) {
  .fl-drawing-table:has(.fl-zodiac-stage) .fl-deck-fan {
    --card: clamp(38px, 7.7dvh, 76px);
    --stride: clamp(43px, 8.3dvh, 72px);
    --bend: 16px;
    --edge: calc(var(--card) * .95);
  }
  .fl-deck-fan {
    --card: clamp(65px, 12dvh, 118px); --edge: calc(var(--card) * .92); --head: 26px; --bend: 32px; --angle: 21deg; --lift: 19px;
    --stride: clamp(65px, 13dvh, 112px); --rows: 2; --per-row: var(--count-mid);
  }
  .fl-fan-card {
    --active-x: var(--x-mid); --active-row: var(--row-mid);
    --active-sag: var(--sag-mid); --active-turn: var(--turn-mid);
  }
}
@media (max-width: 540px) {
  .fl-drawing-table .fl-board.single { max-width: min(42vw, 19dvh); }
  .fl-drawing-table:has(.fl-zodiac-stage) .fl-deck-fan {
    --card: clamp(31px, min(11vw, 5.6dvh), 47px);
    --edge: calc(var(--card) * .83);
    --head: 16px;
    --lift: 11px;
    --bend: 10px;
    --angle: 12deg;
    --stride: clamp(31px, 5.5dvh, 49px);
  }
  .fl-deck-fan {
    --card: clamp(42px, min(15vw, 8dvh), 73px); --edge: calc(var(--card) * .83); --head: 21px; --bend: 14px; --angle: 13deg; --lift: 14px;
    --stride: clamp(45px, 7.75dvh, 74px); --rows: var(--rows-small); --per-row: var(--count-small);
  }
  .fl-fan-card {
    --active-x: var(--x-small); --active-row: var(--row-small);
    --active-sag: var(--sag-small); --active-turn: var(--turn-small);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl-fan-card img { transition: none; }
}

@media (orientation: landscape) and (max-height: 550px) and (min-width: 541px) {
  .fl-drawing-table {
    grid-template: 1fr / minmax(0, 29%) minmax(0, 1fr);
  }
  .fl-drawing-table:has(.fl-zodiac-stage) .fl-deck-fan {
    --rows: 1;
    --stride: 0px;
    --per-row: var(--count);
    --card: clamp(32px, 10dvh, 52px);
  }
  .fl-drawing-table:has(.fl-zodiac-stage) .fl-fan-card {
    --active-x: var(--x); --active-row: var(--row);
    --active-sag: var(--sag); --active-turn: var(--turn);
  }
  .fl-drawing-table .fl-board.row { width: 100%; }
  .fl-drawing-table .fl-board.cross { max-width: min(95%, 35dvh); }
  .fl-drawing-table .fl-board.single { max-width: min(65%, 30dvh); }
}

/* Multi-card results: a stable spread and a reading pane that scrolls on its own. */
.fl-main:has(.fl-result-split) {
  max-width: 1760px;
  padding-inline: clamp(1rem, 2.8vw, 3rem);
}
.fl-result-split .fl-result-copy {
  min-width: 0;
  padding: 0.75rem;
}
.fl-result-split .fl-summary {
  margin: 0 0 1.4rem;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.4;
  color: var(--fl-ink);
  white-space: pre-line;
}
.fl-result-split .fl-result-sections {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}
.fl-result-split .fl-house-offer {
  align-items: flex-start;
  flex-direction: column;
}
.fl-result-split .fl-position { scroll-margin-top: 0.75rem; }
.fl-result-split .fl-cell.is-selected .fl-cell-image {
  outline: 2px solid var(--fl-gold);
  outline-offset: 3px;
}
@media (min-width: 861px) {
  .fl-result-split {
    --fl-result-height: clamp(22rem, 74dvh, 57rem);
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(0.8rem, 2vw, 1.75rem);
  }
  .fl-result-split .fl-result-board { height: var(--fl-result-height); }
  .fl-result-split .fl-board.row { width: min(100%, 760px); }
  .fl-result-split .fl-board.cross {
    width: min(90%, calc((var(--fl-result-height) - 5.5rem) / 1.75));
    max-width: 540px;
  }
  .fl-result-split .fl-board.zodiac {
    width: min(90%, calc(var(--fl-result-height) - 5.25rem), 670px);
  }
  .fl-result-split .fl-result-copy {
    height: var(--fl-result-height);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-color: #947d5e #182536;
    border: 1px solid var(--fl-line);
    border-radius: 18px;
    background: #101e30;
    padding: clamp(0.75rem, 1.4vw, 1.4rem);
  }
}
@media (max-width: 860px) {
  .fl-result-split { grid-template-columns: minmax(0, 1fr); }
  .fl-result-split .fl-result-copy { padding-inline: 0; }
}

.fl-result-tarot-single .fl-board.single{max-width:18rem}
.fl-result-tarot-single .fl-result-board{min-height:0}
