:root {
  --ink: #25384a;
  --muted: #668196;
  --aqua: #bfe8f3;
  --sky: #dceff5;
  --sky-2: #a9d6e4;
  --cream: #fff8e9;
  --sun: #f5a33a;
  --sun-2: #ffd061;
  --coral: #e77747;
  --navy: #274c62;
  --glass: rgba(249, 253, 255, .62);
  --line: rgba(64, 101, 122, .18);
  --shadow: 0 24px 70px rgba(53, 86, 103, .14), 0 3px 10px rgba(47, 70, 82, .08);
  --inner: inset 0 1px 0 rgba(255, 255, 255, .88), inset 0 -1px 0 rgba(44, 90, 112, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 218, 127, .38), transparent 25rem),
    radial-gradient(circle at 12% 28%, rgba(105, 197, 216, .24), transparent 29rem),
    radial-gradient(circle at 70% 78%, rgba(223, 151, 111, .16), transparent 25rem),
    linear-gradient(150deg, #edf8f8 0%, #d9eef3 47%, #f8eee1 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(55, 104, 123, .22) 0 1px, transparent 1.5px),
    linear-gradient(115deg, rgba(255,255,255,.32), transparent 42%);
  background-size: 38px 38px, auto;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  opacity: .32;
  z-index: -1;
}

button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.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;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}
.ambient-one { width: 440px; height: 440px; top: 16%; left: -240px; background: rgba(66, 191, 211, .18); }
.ambient-two { width: 360px; height: 360px; right: -190px; top: 48%; background: rgba(246, 157, 54, .16); }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.glass-bar,
.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow), var(--inner);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(780px, calc(100% - 28px));
  margin: 12px auto 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 9px 7px 13px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(42, 82, 96, .12), var(--inner);
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; letter-spacing: -.025em; white-space: nowrap; }
.brand strong { font-weight: 760; }
.brand-orbit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff9e9;
  background: linear-gradient(145deg, #6ca7b6, #315f77);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.72), 0 5px 15px rgba(49,95,119,.23);
}
.brand-orbit::after { content: ""; position: absolute; width: 42px; height: 13px; border: 1px solid rgba(245, 184, 93, .58); border-radius: 50%; transform: rotate(-17deg); }
.brand-orbit span { font-size: 21px; line-height: 1; transform: translateX(-1px); }
.brand-orbit i { position: absolute; right: 4px; top: 3px; color: #ffd985; font: normal 8px/1 var(--sans); }
.site-header nav { display: flex; align-items: center; gap: 3px; margin-left: auto; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.45); }
.site-header nav a { text-decoration: none; font-size: 12px; font-weight: 690; color: var(--muted); padding: 8px 12px; border-radius: 11px; transition: color .2s, background .2s, transform .2s; }
.site-header nav a:hover { color: var(--ink); background: rgba(255,255,255,.68); transform: translateY(-1px); }
.sound-button,
.icon-button {
  border: 1px solid rgba(52, 94, 117, .13);
  background: rgba(255,255,255,.56);
  box-shadow: var(--inner);
  border-radius: 13px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.sound-button[aria-pressed="false"] { opacity: .48; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 82px;
  padding-block: 96px 72px;
}
.eyebrow,
.mini-label {
  margin: 0 0 11px;
  color: #47758a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.library h2,
.dialog-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
  margin: 0;
  color: #2a4354;
}
.hero h1 { font-size: clamp(50px, 6.4vw, 82px); line-height: .96; max-width: 790px; text-wrap: balance; }
.hero h1 em { color: #d8773f; font-weight: 400; text-shadow: 0 10px 28px rgba(215,119,63,.12); }
.hero-text { color: #59778a; font-size: 17px; line-height: 1.75; max-width: 590px; margin: 28px 0 0; }
.hero-actions, .question-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta { min-height: 51px; padding-inline: 23px; border-radius: 18px; }
.button {
  border: 1px solid rgba(48, 91, 113, .17);
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 730;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--inner), 0 7px 18px rgba(55, 87, 101, .08);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--inner), 0 11px 24px rgba(55, 87, 101, .14); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button.primary { color: white; background: linear-gradient(180deg, #eea04c 0%, #db7137 100%); border-color: rgba(168, 84, 38, .28); text-shadow: 0 1px rgba(97,45,24,.3); }
.button.ghost { background: rgba(255,255,255,.5); }
.button.quiet { background: rgba(255,255,255,.32); min-height: 40px; }
.button.small { min-height: 38px; border-radius: 12px; }
.button.shuffle { background: linear-gradient(180deg, #fffdf5, #f6dfb8); color: #915228; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 24px; color: #5f7d8c; margin-top: 28px; font-size: 12px; font-weight: 650; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #65b694; box-shadow: 0 0 0 4px rgba(101,182,148,.13); }

.hero-deck { min-height: 500px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-deck::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(255,247,210,.72), rgba(132,205,220,.18) 52%, transparent 70%); filter: blur(5px); z-index: -1; animation: breathe 5s ease-in-out infinite; }
.hero-deck::after { content: ""; position: absolute; width: 335px; height: 335px; border: 1px solid rgba(74,127,145,.16); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.05), 0 0 0 58px rgba(255,255,255,.04); z-index: -1; }
.hero-spark { position: absolute; color: #db7d42; text-shadow: 0 0 18px rgba(244,178,84,.65); animation: twinkle 2.7s ease-in-out infinite; }
.spark-one { left: 7%; top: 23%; font-size: 20px; }
.spark-two { right: 5%; top: 18%; font-size: 26px; animation-delay: .8s; }
.spark-three { right: 14%; bottom: 17%; font-size: 13px; animation-delay: 1.5s; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .78; } }
@keyframes twinkle { 0%, 100% { opacity: .28; transform: scale(.75) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(22deg); } }
.showcase-card {
  position: absolute;
  width: 254px;
  aspect-ratio: 11 / 18;
  border: 8px solid #fffaf0;
  border-radius: 5px;
  box-shadow: 0 30px 50px rgba(45, 76, 91, .22), inset 0 0 0 1px rgba(51,71,80,.2);
}
.showcase-back { transform: translate(-62px, 24px) rotate(-11deg); background: #6da4b5; }
.showcase-back::before,
.tarot-card.back::before,
.fan-card::before,
.mini-deck i::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.7);
  background:
    radial-gradient(circle, transparent 0 20%, rgba(255,233,176,.9) 21% 24%, transparent 25%),
    conic-gradient(from 45deg, rgba(255,255,255,.18), transparent 25%, rgba(255,255,255,.18) 50%, transparent 75%, rgba(255,255,255,.18));
  background-size: 38px 38px, 56px 56px;
  border-radius: 2px;
}
.showcase-sun { transform: translate(44px, -8px) rotate(5deg); background: #d5edf4; display: flex; flex-direction: column; align-items: center; padding: 14px 11px 10px; }
.card-roman, .card-name { font-family: var(--serif); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; z-index: 2; }
.card-name { margin-top: auto; border-top: 1px solid rgba(52,70,81,.22); width: 100%; text-align: center; padding-top: 8px; }
.sun-art { width: 100%; flex: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.sun-rays { position: absolute; width: 165px; aspect-ratio: 1; background: repeating-conic-gradient(from 5deg, #f6a337 0 7deg, transparent 7deg 15deg); border-radius: 50%; }
.sun-face { width: 92px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 88px; color: #f1a13f; background: #ffd262; line-height: 1; z-index: 2; }
.cloud { position: absolute; width: 56px; height: 20px; border: 2px solid #596c74; background: #fff8e9; border-radius: 20px; z-index: 3; }
.cloud::before, .cloud::after { content: ""; position: absolute; border: 2px solid #596c74; background: #fff8e9; border-radius: 50%; border-bottom-color: transparent; }
.cloud::before { width: 22px; height: 22px; left: 8px; top: -15px; }
.cloud::after { width: 28px; height: 28px; right: 6px; top: -20px; }
.cloud-left { left: 5px; bottom: 52px; }
.cloud-right { right: -17px; top: 62px; }
.orbit-badge { position: absolute; right: 5px; bottom: 64px; width: 94px; height: 94px; border-radius: 50%; background: rgba(255,255,255,.65); border: 1px solid white; backdrop-filter: blur(15px); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(7deg); }
.orbit-badge strong { font-family: var(--serif); font-size: 34px; line-height: .9; }
.orbit-badge span { font-size: 10px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }

.studio { padding-block: 70px 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .library h2, .dialog-head h2 { font-size: clamp(34px, 4vw, 52px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 14px; }
.steps li { color: #78909e; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; }
.steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.48); border: 1px solid rgba(76,111,128,.16); }
.steps li.active { color: #ab5c2e; background: rgba(255,250,236,.65); }
.steps li.complete { color: #4a7d6c; }
.workbench { border-radius: 30px; overflow: hidden; }
.workbench > section { padding: 30px; border-bottom: 1px solid var(--line); }
.workbench > section:last-child { border-bottom: 0; }
.panel-title { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.step-index { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #9c603b; font: 700 12px var(--serif); background: linear-gradient(145deg, #fff8e4, #f2c584); border: 1px solid rgba(174,105,51,.18); box-shadow: var(--inner); }
.panel-title h3 { margin: 0; font: 400 25px/1.2 var(--serif); letter-spacing: -.02em; }
.panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.question-field { position: relative; display: block; }
.question-field textarea { width: 100%; resize: vertical; min-height: 104px; padding: 18px 52px 18px 18px; border: 1px solid rgba(56,103,124,.18); border-radius: 18px; background: rgba(255,255,255,.5); box-shadow: inset 0 2px 8px rgba(53,80,94,.06), 0 1px 0 white; color: var(--ink); outline: none; line-height: 1.6; }
.question-field textarea:focus { border-color: rgba(224,133,70,.55); box-shadow: 0 0 0 4px rgba(236,155,82,.12), inset 0 2px 8px rgba(53,80,94,.05); }
.question-field textarea::placeholder { color: #8ca0ac; }
.question-count { position: absolute; right: 14px; bottom: 12px; color: #90a1aa; font-size: 10px; }
.suggestion { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,246,220,.8), rgba(222,244,247,.74)); border: 1px solid rgba(213,140,70,.2); }
.suggestion strong { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 5px; }
.suggestion p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.suggestion button { margin-top: 11px; }

.method-panel { background: radial-gradient(circle at 92% 8%, rgba(255,220,151,.18), transparent 28%), linear-gradient(145deg, rgba(227,246,249,.28), rgba(255,255,255,.13)); }
.filter-row, .dialog-filters { display: flex; gap: 6px; overflow-x: auto; padding: 5px; margin-bottom: 16px; scrollbar-width: none; border-radius: 17px; width: max-content; max-width: 100%; background: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.52); box-shadow: inset 0 1px rgba(255,255,255,.64); }
.filter-row::-webkit-scrollbar, .dialog-filters::-webkit-scrollbar { display: none; }
.filter-chip { white-space: nowrap; border: 0; color: #68808f; background: transparent; border-radius: 12px; padding: 8px 13px; font-size: 11px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.filter-chip:hover { color: var(--ink); background: rgba(255,255,255,.45); }
.filter-chip.active { color: #315d72; background: rgba(255,255,255,.78); box-shadow: 0 6px 16px rgba(69,116,136,.11), inset 0 0 0 1px rgba(77,126,145,.1); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method-card { position: relative; min-height: 186px; text-align: left; border-radius: 24px; padding: 20px; border: 1px solid rgba(76,118,135,.13); background: linear-gradient(145deg, rgba(255,255,255,.61), rgba(218,240,244,.38)); box-shadow: var(--inner), 0 16px 30px rgba(49,85,100,.07); cursor: pointer; overflow: hidden; transition: transform .25s, border-color .25s, background .25s, box-shadow .25s; }
.method-card:nth-child(3n+2) { background: linear-gradient(145deg, rgba(255,251,235,.64), rgba(228,244,246,.39)); }
.method-card:nth-child(3n+3) { background: linear-gradient(145deg, rgba(242,251,252,.68), rgba(245,232,220,.34)); }
.method-card::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: radial-gradient(circle, rgba(63,111,128,.5) 0 1px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(135deg, transparent 8%, black, transparent 78%); pointer-events: none; }
.method-card::after { content: ""; position: absolute; right: -49px; bottom: -55px; width: 144px; height: 144px; border-radius: 50%; border: 1px solid rgba(76,129,147,.12); box-shadow: 0 0 0 18px rgba(255,255,255,.1), 0 0 0 37px rgba(255,255,255,.07); }
.method-card:hover { transform: translateY(-6px) rotate(-.25deg); border-color: rgba(219,128,68,.31); background-color: rgba(255,255,255,.72); box-shadow: var(--inner), 0 23px 40px rgba(49,85,100,.13); }
.method-card.selected { border-color: rgba(218,112,52,.53); background: linear-gradient(145deg, rgba(255,248,221,.89), rgba(226,246,248,.76)); box-shadow: 0 0 0 3px rgba(235,150,78,.12), 0 20px 38px rgba(60,91,102,.12), var(--inner); }
.method-card .method-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding-right: 48px; color: #6e8793; font-size: 9px; font-weight: 760; text-transform: uppercase; letter-spacing: .11em; }
.method-card h4 { position: relative; z-index: 2; font: 400 24px/1.08 var(--serif); margin: 45px 0 9px; letter-spacing: -.025em; }
.method-card p { position: relative; z-index: 2; font-size: 11px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 88%; }
.method-card .method-shape { display: none; }
.method-sigil { position: absolute; z-index: 2; top: 17px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #d17942; font: 400 22px var(--serif); background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 8px 18px rgba(64,100,115,.1), inset 0 0 0 1px rgba(62,105,123,.08); }
.text-button { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.34); border: 1px solid rgba(65,105,122,.12); color: #4f778a; cursor: pointer; padding: 10px 14px; margin-top: 16px; border-radius: 14px; font-weight: 760; font-size: 12px; box-shadow: var(--inner); }

.deck-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button.cut-random { color: #456d7e; background: rgba(255,255,255,.48); }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-left: 6px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { width: 40px; height: 23px; border-radius: 999px; background: #b6c7ce; padding: 2px; transition: .2s; box-shadow: inset 0 2px 4px rgba(38,67,80,.17); }
.toggle-track span { display: block; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(41,66,79,.25); transition: .2s; }
.toggle input:checked + .toggle-track { background: #6ca9a0; }
.toggle input:checked + .toggle-track span { transform: translateX(17px); }
.counter { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.counter strong { font: 400 26px var(--serif); }
.counter span { color: var(--muted); font-size: 10px; max-width: 50px; line-height: 1.1; }
.deck-stage { position: relative; min-height: 230px; margin-top: 20px; border-radius: 25px; background: radial-gradient(circle at 50% 44%, rgba(255,248,218,.6), transparent 30%), linear-gradient(180deg, rgba(184,221,232,.46), rgba(111,174,194,.24)); border: 1px solid rgba(58,99,118,.12); overflow: hidden; display: grid; place-items: center; }
.deck-stage::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; pointer-events: none; box-shadow: inset 0 0 35px rgba(73,127,145,.06); }
.deck-stage::after { content: "✦"; position: absolute; inset: 50% auto auto 50%; color: rgba(224,131,65,.0); font-size: 24px; transform: translate(-50%,-50%) scale(.2); pointer-events: none; }
.deck-stage.is-shuffling::after { animation: shuffleGlow 1.1s ease both; }
.deck-placeholder { text-align: center; color: var(--muted); }
.deck-placeholder p { font: 400 18px var(--serif); margin: 14px 0 3px; }
.deck-placeholder span { font-size: 11px; }
.mini-deck { width: 54px; height: 78px; position: relative; margin: auto; }
.mini-deck i { position: absolute; inset: 0; border: 4px solid white; background: #6c9fb0; border-radius: 4px; box-shadow: 0 6px 12px rgba(47,78,92,.15); }
.mini-deck i:nth-child(1) { transform: translate(-10px,4px) rotate(-8deg); }
.mini-deck i:nth-child(2) { transform: translate(9px,5px) rotate(8deg); }
.mini-deck i:nth-child(3) { transform: translate(0,-2px); }
.mini-deck i::before { inset: 4px; background-size: 16px 16px, 20px 20px; }
.shuffle-animation { position: relative; width: 250px; height: 145px; perspective: 800px; }
.shuffle-animation i { --side: calc((var(--shuffle-index) % 2) * 2 - 1); position: absolute; left: calc(50% - 28px); top: 27px; width: 56px; aspect-ratio: 11/18; border: 4px solid var(--cream); border-radius: 5px; background: #6b9fb1; box-shadow: 0 11px 20px rgba(43,74,88,.2); animation: shuffleDance 1.05s cubic-bezier(.32,.7,.2,1) both; animation-delay: calc(var(--shuffle-index) * 22ms); }
.shuffle-animation i::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.72); background: radial-gradient(circle, transparent 0 20%, rgba(255,233,176,.9) 21% 24%, transparent 25%), conic-gradient(from 45deg, rgba(255,255,255,.18), transparent 25%, rgba(255,255,255,.18) 50%, transparent 75%, rgba(255,255,255,.18)); background-size: 18px 18px, 22px 22px; }
@keyframes shuffleDance { 0% { transform: translateX(0) rotate(0); } 28% { transform: translateX(calc(var(--side) * 74px)) rotate(calc(var(--side) * 10deg)) translateY(calc(var(--shuffle-index) * -1px)); } 58% { transform: translateX(calc(var(--side) * -46px)) rotate(calc(var(--side) * -7deg)) translateY(8px); } 100% { transform: translateX(0) rotate(calc((var(--shuffle-index) - 5) * .65deg)); } }
@keyframes shuffleGlow { 0% { color: rgba(224,131,65,0); transform: translate(-50%,-50%) scale(.2) rotate(0); } 48% { color: rgba(224,131,65,.9); transform: translate(-50%,-50%) scale(2.2) rotate(80deg); text-shadow: 0 0 28px #ffd687; } 100% { color: rgba(224,131,65,0); transform: translate(-50%,-50%) scale(3.2) rotate(150deg); } }
.card-fan { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: clamp(16px, 3vw, 30px); overflow: visible; }
.fan-card { flex: 0 0 min(40px, calc((100% - 114px) / 20)); width: min(40px, calc((100% - 114px) / 20)); min-width: 0; aspect-ratio: 11/18; position: relative; border: clamp(2px, .35vw, 3px) solid var(--cream); background: #6b9fb1; border-radius: 4px; box-shadow: 0 6px 12px rgba(43,74,88,.16); cursor: pointer; transform: rotate(var(--rotation, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .18s, opacity .3s; }
.fan-card:hover, .fan-card:focus-visible { transform: translateY(-6px) rotate(0deg) scale(1.08) !important; outline: 2px solid #e98d48; outline-offset: 2px; box-shadow: 0 12px 20px rgba(43,74,88,.24); z-index: 5; }
.fan-card::before { inset: 4px; background-size: 18px 18px, 22px 22px; }
.fan-card.entering { animation: fanReveal .48s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--enter-delay, 0ms); }
.card-fan.cutting .fan-card:nth-child(-n+39) { transform: translateX(-20px) rotate(-2deg); opacity: .74; }
.card-fan.cutting .fan-card:nth-child(n+40) { transform: translateX(20px) rotate(2deg); opacity: .74; }
@keyframes fanReveal { from { opacity: 0; transform: translateY(28px) rotate(var(--rotation, 0deg)) scale(.78); } to { opacity: 1; transform: translateY(0) rotate(var(--rotation, 0deg)) scale(1); } }
.fan-card.drawn { opacity: 0; transform: translateY(50px) scale(.8) !important; pointer-events: none; }
.deck-note { text-align: center; color: var(--muted); font-size: 11px; margin: 10px 0 0; }

.reading-table { min-height: 510px; border-radius: 24px; overflow: auto; position: relative; padding: 34px; background: radial-gradient(circle at 50% 45%, rgba(229,246,248,.72), rgba(102,161,177,.19)), linear-gradient(135deg, rgba(51,109,126,.1), rgba(255,247,222,.55)); border: 1px solid rgba(55,94,111,.14); }
.constellation { position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(circle, rgba(69,113,131,.5) 0 1px, transparent 1.5px); background-size: 32px 32px; mask-image: radial-gradient(circle, black, transparent 72%); }
.spread-grid { --cols: 5; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(92px, 122px)); grid-auto-rows: minmax(158px, auto); justify-content: center; align-items: center; gap: 20px 18px; min-width: max-content; }
.spread-slot { width: 112px; min-height: 158px; position: relative; display: grid; place-items: center; }
.slot-placeholder { width: 86px; aspect-ratio: 11/18; border: 1px dashed rgba(63,106,124,.38); border-radius: 6px; background: rgba(255,255,255,.24); display: grid; place-items: center; color: #6e8996; font: 400 22px var(--serif); }
.slot-label { position: absolute; left: 50%; top: calc(50% + 83px); transform: translateX(-50%); width: 140px; text-align: center; color: #557482; font-size: 9px; font-weight: 760; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }
.tarot-card { width: 108px; aspect-ratio: 11/18; position: relative; border: 5px solid #fffaf0; border-radius: 5px; background: #d7edf4; box-shadow: 0 13px 20px rgba(44,74,87,.23), inset 0 0 0 1px rgba(66,83,92,.2); padding: 7px; display: flex; flex-direction: column; align-items: center; animation: dealCard .55s cubic-bezier(.2,.8,.2,1) both; }
.tarot-card.reversed { transform: rotate(180deg); }
.tarot-card .mini-roman { font: 400 8px var(--serif); letter-spacing: .08em; }
.tarot-card .card-art { position: relative; width: 100%; flex: 1; margin: 5px 0; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(64,89,101,.18); background: linear-gradient(155deg, rgba(255,255,255,.5), rgba(169,218,231,.42)); }
.tarot-card .card-art::before { content: ""; position: absolute; width: 78px; height: 78px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(245,163,58,.58) 0 4deg, transparent 4deg 13deg); }
.tarot-card .card-symbol { position: relative; z-index: 2; width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; background: #ffd16b; border: 1px solid rgba(128,74,38,.27); color: #954d2d; font: 400 29px var(--serif); box-shadow: 0 3px 0 rgba(151,83,42,.12); }
.tarot-card .pip-field { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; gap: 4px; max-width: 66px; }
.tarot-card .pip { color: #d9793e; font-size: 17px; line-height: 1; }
.tarot-card.swords .pip, .tarot-card.swords .card-symbol { color: #4f7184; background: #e9f3f5; }
.tarot-card.cups .pip, .tarot-card.cups .card-symbol { color: #397c9d; background: #d9eef5; }
.tarot-card.pentacles .pip, .tarot-card.pentacles .card-symbol { color: #9d782f; background: #f7dc72; }
.tarot-card.wands .pip, .tarot-card.wands .card-symbol { color: #a75431; background: #f5b557; }
.tarot-card .mini-name { width: 100%; padding-top: 4px; border-top: 1px solid rgba(59,81,91,.2); text-align: center; font: 400 8px/1 var(--serif); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reading-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 16px; }
.progress-copy { display: flex; flex-direction: column; }
.progress-copy strong { font: 400 17px var(--serif); }
.progress-copy span { color: var(--muted); font-size: 11px; margin-top: 3px; }
@keyframes dealCard { from { opacity: 0; transform: translateY(-45px) rotate(-7deg) scale(.8); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
.tarot-card.reversed { animation-name: dealReversed; }
@keyframes dealReversed { from { opacity: 0; transform: translateY(-45px) rotate(172deg) scale(.8); } to { opacity: 1; transform: translateY(0) rotate(180deg) scale(1); } }

.interpretation { padding-block: 50px 90px; }
.interpretation-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }
.interpretation-grid > article { border-radius: 26px; padding: 28px; }
.general-reading h3 { font: 400 30px/1.15 var(--serif); margin: 0 0 18px; }
.general-reading #generalReading { color: #4f6877; line-height: 1.72; font-size: 14px; }
.general-reading #generalReading p:first-child::first-letter { float: left; font: 400 54px/.8 var(--serif); color: #d8793f; padding: 8px 7px 0 0; }
.reading-signature { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.reading-signature span { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 730; color: #5b7887; background: rgba(255,255,255,.48); border: 1px solid rgba(65,101,118,.12); }
.reading-footnote { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: #8396a0; font-size: 10px; line-height: 1.5; }
.accordion-list { display: grid; gap: 8px; }
.card-reading { border: 1px solid rgba(61,101,120,.14); border-radius: 16px; background: rgba(255,255,255,.36); overflow: hidden; }
.card-reading summary { list-style: none; cursor: pointer; padding: 13px 14px; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; }
.card-reading summary::-webkit-details-marker { display: none; }
.card-reading .reading-number { width: 32px; height: 32px; border-radius: 10px; background: #d9edf2; display: grid; place-items: center; color: #547685; font: 400 13px var(--serif); }
.card-reading .reading-title { min-width: 0; }
.card-reading .reading-title strong { display: block; font: 400 17px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-reading .reading-title span { color: var(--muted); font-size: 10px; }
.card-reading summary::after { content: "+"; font-size: 20px; color: #6b8591; }
.card-reading[open] summary::after { content: "−"; }
.card-reading-body { padding: 0 14px 15px 59px; color: #536d7b; font-size: 12px; line-height: 1.65; }
.card-reading-body p { margin: 0; }
.card-reading-body .keywords { margin-top: 9px; color: #9c603b; font-weight: 750; }

.principles { padding-block: 42px 92px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.principle-grid article { position: relative; padding: 22px; border-top: 1px solid rgba(56,96,114,.2); }
.principle-grid article > span { color: #d4753d; font: italic 400 30px var(--serif); }
.principle-grid h3 { font: 400 19px var(--serif); margin: 14px 0 7px; }
.principle-grid p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }

.library { padding-block: 30px 90px; }
.library-card { border-radius: 30px; padding: 34px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; }
.library-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; max-width: 660px; font-size: 13px; }
.library-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-self: center; }
.library-metrics div { min-height: 112px; border-radius: 19px; border: 1px solid rgba(61,103,121,.13); background: rgba(255,255,255,.38); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.library-metrics strong { font: 400 34px var(--serif); color: #cb6e39; }
.library-metrics span { color: var(--muted); font-size: 9px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.bibliography { grid-column: 1/-1; column-count: 2; column-gap: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.bibliography p { break-inside: avoid; margin: 0 0 8px; color: #5e7784; font-size: 11px; line-height: 1.45; }
.bibliography p span { color: #d17842; margin-right: 6px; }

footer { padding-block: 34px 48px; border-top: 1px solid rgba(62,99,115,.11); display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
footer .brand { color: var(--ink); }
footer .brand.small .brand-orbit { width: 29px; height: 29px; }
footer p { margin: 0 auto; }
footer > a { text-decoration: none; font-weight: 750; }

.catalog-dialog { width: min(920px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 28px)); color: var(--ink); border: 1px solid rgba(255,255,255,.85); border-radius: 30px; padding: 28px; background: radial-gradient(circle at 84% 8%, rgba(255,221,151,.3), transparent 22rem), rgba(226,244,247,.94); box-shadow: 0 40px 90px rgba(32,54,66,.35), var(--inner); backdrop-filter: blur(28px); }
.catalog-dialog::backdrop { background: rgba(37,56,68,.34); backdrop-filter: blur(6px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.dialog-head h2 { font-size: 39px; }
.icon-button { font-size: 27px; }
.catalog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.catalog-item { border: 1px solid rgba(58,97,115,.15); background: rgba(255,255,255,.42); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; text-align: left; cursor: pointer; }
.catalog-item strong { font: 400 18px var(--serif); }
.catalog-item > span { color: #d07840; font-weight: 750; font-size: 10px; }
.catalog-item p { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

:focus-visible { outline: 3px solid rgba(229,131,68,.65); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 75px; gap: 18px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-deck { min-height: 440px; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .interpretation-grid, .library-card { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 22px, 1180px); }
  .site-header { top: 6px; margin-top: 6px; width: calc(100% - 12px); padding-left: 11px; }
  .site-header nav { display: none; }
  .sound-button { margin-left: auto; }
  .hero { min-height: auto; padding-block: 76px 42px; }
  .hero h1 { font-size: 45px; }
  .hero-text { font-size: 15px; line-height: 1.68; }
  .hero-deck { transform: scale(.82); margin-block: -46px -28px; }
  .trust-row { font-size: 10px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 36px; }
  .steps { grid-template-columns: repeat(4, auto); }
  .steps li { padding: 7px; justify-content: center; }
  .steps li:not(.active) { font-size: 0; }
  .steps li span { font-size: 10px; }
  .workbench { border-radius: 23px; }
  .workbench > section { padding: 22px 16px; }
  .panel-title { gap: 11px; }
  .panel-title h3 { font-size: 22px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 166px; padding: 18px; }
  .method-card h4 { font-size: 23px; margin-top: 38px; }
  .method-card p { font-size: 11px; }
  .toggle { width: 100%; margin: 5px 0; }
  .counter { margin-left: auto; }
  .card-fan { gap: 3px; padding: 14px 10px; }
  .fan-card { flex-basis: calc((100% - 57px) / 20); width: calc((100% - 57px) / 20); }
  .reading-table { min-height: 440px; padding: 24px; }
  .spread-grid { grid-template-columns: repeat(var(--cols), 88px); grid-auto-rows: 145px; gap: 18px 9px; }
  .spread-slot { width: 86px; min-height: 140px; }
  .tarot-card { width: 82px; }
  .slot-placeholder { width: 70px; }
  .slot-label { width: 98px; top: calc(50% + 67px); font-size: 7px; }
  .reading-actions { align-items: stretch; flex-direction: column; }
  .interpretation-grid > article { padding: 22px 18px; }
  .principle-grid { grid-template-columns: 1fr; }
  .library-card { padding: 24px 18px; }
  .library-metrics { gap: 5px; }
  .library-metrics div { min-height: 96px; }
  .bibliography { column-count: 1; }
  footer { flex-wrap: wrap; justify-content: space-between; }
  footer p { order: 3; width: 100%; text-align: center; }
  .catalog-dialog { padding: 20px 14px; }
  .catalog-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
