:root {
  --bg: #100f0e;
  --bg-soft: #151311;
  --surface: #1a1815;
  --surface-2: #211e1a;
  --surface-3: #29241e;
  --line: rgba(229, 207, 164, 0.16);
  --line-strong: rgba(229, 207, 164, 0.34);
  --text: #f2eadc;
  --muted: #aaa194;
  --muted-2: #7d756b;
  --gold: #d8b56d;
  --gold-soft: #ead6a8;
  --gold-dark: #8f6d31;
  --rose: #c98782;
  --blue: #7d9ba8;
  --green: #879d78;
  --danger: #d27e72;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shell: 1180px;
  --header-h: 74px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

body.light {
  --bg: #f3efe6;
  --bg-soft: #ebe4d8;
  --surface: #fbf8f1;
  --surface-2: #f1eadf;
  --surface-3: #e7ded0;
  --line: rgba(74, 58, 37, 0.14);
  --line-strong: rgba(74, 58, 37, 0.28);
  --text: #231f1a;
  --muted: #6f665a;
  --muted-2: #948a7d;
  --gold: #9f762e;
  --gold-soft: #805b20;
  --gold-dark: #c49b4d;
  --shadow: 0 24px 80px rgba(68, 55, 37, 0.15);
  --shadow-soft: 0 16px 50px rgba(68, 55, 37, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% -10%, rgba(216, 181, 109, 0.12), transparent 31rem),
    radial-gradient(circle at 96% 28%, rgba(125, 155, 168, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.modal-open, body.drawer-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: #17130c; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border: 2px solid var(--bg); border-radius: 999px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #17130c;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}
.ambient-one { left: -18rem; top: 28rem; background: #9d7130; }
.ambient-two { right: -20rem; top: 86rem; background: #47626e; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { border-color: var(--line); }
.shell.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 16px;
  box-shadow: inset 0 0 18px rgba(216, 181, 109, 0.09);
}
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-family: var(--serif); font-size: 19px; letter-spacing: 0.22em; }
.brand small { margin-top: 6px; color: var(--muted-2); font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.main-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}
.icon-button:hover { border-color: var(--line); background: var(--surface); color: var(--gold); }

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: 52px;
  padding-block: 76px 96px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .closing-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero h1 { max-width: 720px; font-size: clamp(48px, 6vw, 82px); line-height: 1.13; }
.hero h1 em { display: inline-block; color: var(--gold); font-style: normal; text-shadow: 0 0 40px rgba(216, 181, 109, 0.15); }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.5; cursor: wait; transform: none; }
.button-primary { border-color: var(--gold); background: var(--gold); color: #17130c; box-shadow: 0 12px 32px rgba(216, 181, 109, 0.16); }
.button-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.button-ghost { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 62%, transparent); }
.button-ghost:hover, .button-quiet:hover { border-color: var(--gold); color: var(--gold); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--muted); }
.button-large { width: 100%; min-height: 58px; margin-top: 28px; font-size: 15px; }
.hero-facts { display: flex; gap: 0; margin: 48px 0 0; padding: 0; list-style: none; }
.hero-facts li { min-width: 110px; display: grid; padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.hero-facts li:last-child { border: 0; }
.hero-facts strong { font-family: var(--serif); color: var(--gold-soft); font-size: 26px; font-weight: 500; line-height: 1.2; }
.hero-facts span { color: var(--muted-2); font-size: 11px; letter-spacing: 0.08em; }
.hero-visual { position: relative; min-height: 570px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit::before, .orbit::after { position: absolute; content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.orbit-one { width: 460px; height: 460px; animation: spin 42s linear infinite; }
.orbit-one::before { left: 50%; top: -3px; }
.orbit-one::after { left: 11%; bottom: 17%; }
.orbit-two { width: 570px; height: 570px; border-style: dashed; opacity: 0.5; animation: spinReverse 64s linear infinite; }
.orbit-two::before { right: 14%; top: 19%; }
.orbit-two::after { right: 50%; bottom: -2px; }
.hero-visual::after { position: absolute; content: ""; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 181, 109, 0.18), transparent 66%); filter: blur(14px); }
.hero-card {
  position: absolute;
  z-index: 2;
  width: 176px;
  aspect-ratio: 0.58;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(155deg, #29231c, #12100e 58%);
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover .hero-card-left { transform: translate(-122px, 18px) rotate(-16deg); }
.hero-visual:hover .hero-card-center { transform: translateY(-18px); }
.hero-visual:hover .hero-card-right { transform: translate(122px, 22px) rotate(15deg); }
.hero-card-left { transform: translate(-96px, 26px) rotate(-13deg); }
.hero-card-center { z-index: 4; transform: translateY(-5px); }
.hero-card-right { transform: translate(96px, 28px) rotate(12deg); }
.mini-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 12px;
  border: 1px solid rgba(216, 181, 109, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(rgba(216, 181, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 181, 109, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(216, 181, 109, 0.15), transparent 62%),
    #171411;
  background-size: 14px 14px, 14px 14px, auto, auto;
  color: var(--gold-soft);
}
.mini-card span, .mini-card small { font-family: var(--serif); font-size: 11px; letter-spacing: 0.14em; }
.mini-card b { font-size: 68px; font-weight: 400; text-shadow: 0 0 40px rgba(216, 181, 109, 0.38); }
.visual-caption { position: absolute; bottom: 8px; margin: 0; color: var(--muted-2); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.studio { padding-block: 100px 120px; scroll-margin-top: 80px; }
.section-heading { max-width: 680px; margin-bottom: 42px; }
.section-heading h2, .closing-section h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.2; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); }
.studio-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow-soft); }
.step-rail { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.step-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 21px 28px; color: var(--muted-2); transition: color 0.25s ease, background-color 0.25s ease; }
.step-item + .step-item { border-left: 1px solid var(--line); }
.step-item span { font-family: var(--serif); color: var(--muted-2); font-size: 12px; }
.step-item strong { font-size: 13px; font-weight: 550; }
.step-item.is-active { background: linear-gradient(90deg, rgba(216, 181, 109, 0.08), transparent); color: var(--text); }
.step-item.is-active::after { position: absolute; content: ""; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); }
.step-item.is-active span { color: var(--gold); }
.step-item.is-complete { color: var(--muted); }
.step-item.is-complete::before { content: "✓"; position: absolute; right: 22px; color: var(--green); }
.studio-panel { padding: 48px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.panel-kicker { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
.panel-heading h3, .result-toolbar h3 { margin: 0; font-family: var(--serif); font-size: clamp(25px, 3vw, 36px); font-weight: 500; }
.privacy-badge { display: inline-flex; align-items: center; gap: 8px; margin: 3px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.field-block { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; }
.field-block > label, .field-block > legend { display: block; margin-bottom: 13px; color: var(--text); font-size: 14px; font-weight: 650; }
.question-wrap { position: relative; }
textarea, input[type="search"] { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); outline: 0; background: var(--bg-soft); color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
textarea { min-height: 132px; resize: vertical; padding: 18px 68px 18px 18px; line-height: 1.8; }
textarea::placeholder, input::placeholder { color: var(--muted-2); }
textarea:focus, input[type="search"]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 181, 109, 0.1); }
.field-count { position: absolute; right: 15px; bottom: 13px; color: var(--muted-2); font-size: 10px; }
.field-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; color: var(--muted-2); font-size: 11px; }
.field-error { color: var(--danger); text-align: right; }
.example-questions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.example-questions button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; transition: 0.2s ease; }
.example-questions button:hover { border-color: var(--gold-dark); color: var(--gold-soft); }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.category-option { min-height: 118px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-soft); text-align: left; cursor: pointer; transition: 0.22s ease; }
.category-option > span { margin-bottom: 8px; color: var(--muted-2); font-size: 19px; }
.category-option strong { font-size: 13px; font-weight: 650; }
.category-option small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.category-option:hover, .category-option.is-selected { border-color: var(--gold-dark); background: linear-gradient(145deg, rgba(216, 181, 109, 0.1), var(--bg-soft)); }
.category-option.is-selected > span { color: var(--gold); }
.selection-help { min-height: 22px; margin: 11px 0 0; color: var(--muted-2); font-size: 11px; }
.spread-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spread-option { min-height: 150px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); text-align: left; cursor: pointer; transition: 0.22s ease; }
.spread-option:hover, .spread-option.is-selected { border-color: var(--gold-dark); transform: translateY(-2px); background: linear-gradient(145deg, rgba(216, 181, 109, 0.09), var(--bg-soft)); }
.spread-option-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spread-option strong { font-family: var(--serif); font-size: 18px; font-weight: 550; }
.spread-count { min-width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 11px; }
.spread-option p { margin: 12px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.spread-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.spread-tags span { padding: 3px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted-2); font-size: 9px; }
.reading-options { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.switch-row { display: flex; align-items: center; gap: 22px; cursor: pointer; }
.switch-copy { display: grid; }
.switch-copy strong { font-size: 13px; }
.switch-copy small { color: var(--muted-2); font-size: 10px; }
.switch-control { position: relative; flex: 0 0 auto; width: 48px; height: 27px; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control span { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); transition: 0.25s ease; }
.switch-control span::after { position: absolute; content: ""; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); transition: 0.25s ease; }
.switch-control input:checked + span { border-color: var(--gold-dark); background: rgba(216, 181, 109, 0.18); }
.switch-control input:checked + span::after { transform: translateX(21px); background: var(--gold); }
.switch-control input:focus-visible + span { box-shadow: 0 0 0 3px rgba(216, 181, 109, 0.16); }
.local-note { max-width: 420px; margin: 0; color: var(--muted-2); font-size: 10px; text-align: right; }
.draw-panel { min-height: 700px; }
.draw-progress { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.draw-progress strong { color: var(--gold); font-family: var(--serif); font-size: 18px; }
.question-echo { position: relative; margin-bottom: 24px; padding: 15px 20px 15px 25px; border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(216, 181, 109, 0.06); color: var(--muted); font-family: var(--serif); font-size: 14px; }
.position-track { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; overflow-x: auto; padding: 4px 2px 13px; scrollbar-width: thin; }
.position-slot { flex: 0 0 112px; min-height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.01); color: var(--muted-2); text-align: center; transition: 0.25s ease; }
.position-slot.is-current { border-color: var(--gold-dark); background: rgba(216, 181, 109, 0.06); box-shadow: 0 0 0 3px rgba(216, 181, 109, 0.05); }
.position-slot.is-complete { border-style: solid; border-color: var(--line-strong); }
.position-slot strong { color: var(--muted); font-size: 10px; }
.position-slot span { font-size: 9px; }
.slot-card { width: 74px; aspect-ratio: 0.58; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: radial-gradient(circle, rgba(216, 181, 109, 0.12), transparent 62%), var(--surface-2); color: var(--gold); font-size: 35px; }
.position-slot.is-complete .slot-card { border-color: var(--gold-dark); }
.deck-stage { position: relative; min-height: 380px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(ellipse at center 82%, rgba(216, 181, 109, 0.12), transparent 55%), linear-gradient(180deg, rgba(0,0,0,0.08), rgba(216, 181, 109, 0.025)); }
.deck-stage::before { position: absolute; content: ""; left: 7%; right: 7%; bottom: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.deck-glow { position: absolute; left: 50%; bottom: -100px; width: 440px; height: 210px; transform: translateX(-50%); border-radius: 50%; background: rgba(216, 181, 109, 0.17); filter: blur(60px); }
.deck-fan { position: absolute; left: 50%; bottom: 48px; width: min(900px, 94%); height: 286px; transform: translateX(-50%); }
.fan-card {
  --fan-x: 0px;
  --fan-y: 0px;
  --fan-r: 0deg;
  --lift: 0px;
  position: absolute;
  left: 50%;
  top: 16px;
  width: clamp(70px, 8.5vw, 105px);
  aspect-ratio: 0.58;
  padding: 0;
  border: 1px solid rgba(216, 181, 109, 0.45);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transform: translate(calc(-50% + var(--fan-x)), calc(var(--fan-y) + var(--lift))) rotate(var(--fan-r));
  transform-origin: 50% 125%;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease, filter 0.25s ease;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}
.fan-card:hover, .fan-card:focus-visible { z-index: 80 !important; --lift: -22px; filter: brightness(1.13); outline: 0; }
.fan-card::before { position: absolute; content: ""; inset: 5px; border: 1px solid rgba(232, 211, 170, 0.46); border-radius: 6px; background: linear-gradient(45deg, transparent 47%, rgba(216, 181, 109, 0.15) 48%, rgba(216, 181, 109, 0.15) 52%, transparent 53%), linear-gradient(-45deg, transparent 47%, rgba(216, 181, 109, 0.15) 48%, rgba(216, 181, 109, 0.15) 52%, transparent 53%), radial-gradient(circle, rgba(216, 181, 109, 0.24) 0 4%, transparent 5%), linear-gradient(145deg, #29231d, #11100e 60%); background-size: 26px 26px, 26px 26px, 100% 100%, auto; box-shadow: inset 0 0 0 5px #16130f, inset 0 0 0 6px rgba(216, 181, 109, 0.28); }
.fan-card::after { position: absolute; content: "✦"; left: 50%; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(216, 181, 109, 0.45); border-radius: 50%; color: var(--gold); font-size: 16px; box-shadow: 0 0 22px rgba(216, 181, 109, 0.12); }
.fan-card.is-used { pointer-events: none; opacity: 0; transform: translate(calc(-50% + var(--fan-x)), -120px) rotate(0deg) scale(0.7); }
.deck-instruction { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; color: var(--muted-2); font-size: 11px; text-align: center; }
.draw-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.result-panel { padding: 48px; }
.result-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.result-actions .button { min-height: 41px; padding: 8px 15px; font-size: 11px; }
.result-hero { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(115deg, rgba(216, 181, 109, 0.12), transparent 50%), var(--bg-soft); }
.result-hero::after { position: absolute; content: "✦"; right: 25px; top: -34px; color: rgba(216, 181, 109, 0.07); font-family: var(--serif); font-size: 170px; }
.result-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.result-question { max-width: 720px; }
.result-question small { display: block; margin-bottom: 8px; color: var(--gold); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.result-question h4 { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.5; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-meta span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.result-date { position: relative; z-index: 1; color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: 18px; margin-top: 18px; }
.result-grid-bottom { grid-template-columns: 1fr 1fr; }
.result-section { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.result-section > header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.result-section > header span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 9px; }
.result-section > header h4 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 550; }
.result-overview p { margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.result-overview p:last-child { margin-bottom: 0; }
.answer-callout { margin: 18px 0 0 !important; padding: 16px 18px; border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(216, 181, 109, 0.06); color: var(--text) !important; }
.pattern-list { display: grid; gap: 9px; margin-top: 22px; }
.pattern-item { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.012); }
.pattern-item strong { display: block; margin-bottom: 3px; color: var(--gold-soft); font-size: 11px; }
.pattern-item p { margin: 0; color: var(--muted-2); font-size: 11px; line-height: 1.7; }
.signal-block + .signal-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.signal-block > span { display: block; margin-bottom: 9px; color: var(--muted-2); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; }
.signal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.signal-tag { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.signal-meter { position: relative; height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--bg); }
.signal-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.signal-caption { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.card-readings { margin-top: 18px; }
.card-reading { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 25px; padding: 24px 0; border-top: 1px solid var(--line); }
.card-reading:first-child { padding-top: 0; border-top: 0; }
.card-reading:last-child { padding-bottom: 0; }
.card-reading-visual { display: grid; align-content: start; justify-items: center; gap: 10px; }
.card-reading-visual .tarot-face { width: 108px; cursor: pointer; }
.card-reading-visual small { color: var(--muted-2); font-size: 9px; text-align: center; }
.reading-position { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.reading-card-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.reading-card-title h5 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 550; }
.reading-card-title span { color: var(--muted-2); font-size: 10px; }
.reading-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.reading-keywords span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; }
.card-reading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.advice-list, .reflection-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: advice; }
.advice-list li, .reflection-list li { position: relative; padding-left: 34px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.advice-list li { counter-increment: advice; }
.advice-list li::before { content: counter(advice, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--gold); font-family: var(--serif); font-size: 11px; }
.reflection-list li::before { content: "?"; position: absolute; left: 7px; top: 0; color: var(--gold); font-family: var(--serif); font-size: 18px; }
.result-footnote { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted-2); font-size: 10px; line-height: 1.8; }
.result-footnote strong { color: var(--muted); }

.library-section { padding-block: 100px 120px; background: var(--bg-soft); scroll-margin-top: 70px; }
.library-controls { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; gap: 12px; margin-bottom: 26px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > span { position: absolute; left: 14px; color: var(--muted-2); pointer-events: none; }
.search-field input { height: 44px; padding: 0 14px 0 40px; }
.filter-group { display: flex; align-items: center; gap: 5px; }
.filter-chip { min-height: 35px; padding: 6px 11px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; white-space: nowrap; transition: 0.2s ease; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--line); background: var(--surface-2); color: var(--gold-soft); }
.library-count { grid-column: 1 / -1; margin: 0; padding: 0 4px; color: var(--muted-2); font-size: 10px; }
.card-library { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.library-card { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.library-card .tarot-face { width: 100%; transition: transform 0.28s cubic-bezier(.2,.8,.2,1), filter 0.28s ease; }
.library-card:hover .tarot-face { transform: translateY(-8px) rotate(1deg); filter: brightness(1.08); }
.library-card-meta { display: grid; gap: 1px; margin-top: 10px; text-align: center; }
.library-card-meta strong { overflow: hidden; color: var(--text); font-family: var(--serif); font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.library-card-meta span { color: var(--muted-2); font-size: 8px; letter-spacing: 0.06em; }
.tarot-face { position: relative; width: 100%; aspect-ratio: 0.58; overflow: hidden; border: 1px solid rgba(216, 181, 109, 0.48); border-radius: clamp(6px, 1vw, 11px); background: #16130f; box-shadow: 0 10px 26px rgba(0,0,0,0.25); transform-style: preserve-3d; }
.tarot-face__front { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; padding: 7%; background: linear-gradient(135deg, rgba(255,255,255,0.045), transparent 38%), radial-gradient(circle at 50% 42%, var(--card-glow, rgba(216,181,109,0.22)), transparent 45%), linear-gradient(145deg, var(--card-a, #29231d), var(--card-b, #11100e) 66%); color: var(--card-ink, #ead6a8); transition: transform 0.35s ease; }
.tarot-face__front::before, .tarot-face__front::after { position: absolute; content: ""; pointer-events: none; }
.tarot-face__front::before { inset: 5%; border: 1px solid color-mix(in srgb, var(--card-ink, #d8b56d) 48%, transparent); border-radius: 4px; }
.tarot-face__front::after { inset: 7%; background: linear-gradient(90deg, transparent 49.5%, color-mix(in srgb, var(--card-ink, #d8b56d) 13%, transparent) 50%, transparent 50.5%), linear-gradient(transparent 49.5%, color-mix(in srgb, var(--card-ink, #d8b56d) 13%, transparent) 50%, transparent 50.5%); background-size: 15px 15px; opacity: 0.55; }
.tarot-face.is-reversed .tarot-face__front { transform: rotate(180deg); }
.suit-major { --card-a: #2c261e; --card-b: #11100e; --card-glow: rgba(216, 181, 109, 0.29); --card-ink: #ecd39a; }
.suit-wands { --card-a: #3a241d; --card-b: #15100d; --card-glow: rgba(200, 103, 62, 0.30); --card-ink: #e7a471; }
.suit-cups { --card-a: #213140; --card-b: #0e141a; --card-glow: rgba(103, 158, 190, 0.31); --card-ink: #9dc6dc; }
.suit-swords { --card-a: #2c303b; --card-b: #111318; --card-glow: rgba(164, 174, 196, 0.24); --card-ink: #cdd3df; }
.suit-pentacles { --card-a: #293422; --card-b: #10140d; --card-glow: rgba(153, 183, 110, 0.27); --card-ink: #bdd69b; }
.card-corner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: clamp(7px, 0.9vw, 10px); line-height: 1; }
.card-art { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; min-height: 0; }
.card-art::before, .card-art::after { position: absolute; content: ""; border: 1px solid color-mix(in srgb, var(--card-ink) 28%, transparent); border-radius: 50%; }
.card-art::before { width: 62%; aspect-ratio: 1; }
.card-art::after { width: 44%; aspect-ratio: 1; border-style: dashed; }
.card-art-glyph { position: relative; z-index: 2; font-family: var(--serif); font-size: clamp(26px, 4.3vw, 56px); line-height: 1; text-shadow: 0 0 26px var(--card-glow); }
.card-art-number { position: absolute; z-index: 1; top: 48%; left: 50%; transform: translate(-50%, -50%); color: color-mix(in srgb, var(--card-ink) 9%, transparent); font-family: var(--serif); font-size: clamp(48px, 8vw, 96px); line-height: 1; }
.card-title { position: relative; z-index: 2; display: grid; text-align: center; line-height: 1.3; }
.card-title strong { font-family: var(--serif); font-size: clamp(9px, 1.2vw, 15px); font-weight: 550; letter-spacing: 0.08em; }
.card-title span { margin-top: 2px; opacity: 0.68; font-size: clamp(5px, 0.62vw, 7px); letter-spacing: 0.11em; text-transform: uppercase; }
.card-reading .card-title strong { font-size: 9px; }
.card-reading .card-title span { font-size: 5px; }
.empty-state { padding: 60px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

.method-section { padding-block: 110px 120px; background: radial-gradient(circle at 50% 0, rgba(216, 181, 109, 0.08), transparent 34rem), #141210; scroll-margin-top: 70px; }
body.light .method-section { background: radial-gradient(circle at 50% 0, rgba(159, 118, 46, 0.08), transparent 34rem), #e8e0d4; }
.section-heading.light { margin-inline: auto; text-align: center; }
.section-heading.light .eyebrow { justify-content: center; }
.section-heading.light > p:last-child { color: #aaa295; }
body.light .section-heading.light > p:last-child { color: #6f665a; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.method-card { position: relative; min-height: 280px; padding: 28px 24px; overflow: hidden; border: 1px solid rgba(216, 181, 109, 0.14); border-radius: 19px; background: rgba(255,255,255,0.018); }
.method-number { display: block; margin-bottom: 62px; color: var(--gold); font-family: var(--serif); font-size: 13px; }
.method-card h3 { margin: 0 0 13px; font-family: var(--serif); font-size: 21px; font-weight: 550; }
.method-card p { margin: 0; color: #9c9489; font-size: 12px; line-height: 1.8; }
body.light .method-card p { color: #70675c; }
.method-detail { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; margin-top: 54px; padding: 42px; border: 1px solid rgba(216, 181, 109, 0.17); border-radius: 24px; background: rgba(216, 181, 109, 0.035); }
.method-detail h3 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 500; line-height: 1.35; }
.ethics-list { display: grid; gap: 15px; }
.ethics-list p { margin: 0; padding-bottom: 15px; border-bottom: 1px solid rgba(216, 181, 109, 0.11); color: #968e84; font-size: 12px; }
body.light .ethics-list p { color: #6f665a; }
.ethics-list p:last-child { padding-bottom: 0; border-bottom: 0; }
.ethics-list strong { color: #ded2bf; }
body.light .ethics-list strong { color: #302920; }
.sources { margin-top: 48px; padding-top: 34px; border-top: 1px solid rgba(216, 181, 109, 0.13); }
.sources h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; font-weight: 550; }
.sources > p { max-width: 780px; margin: 0; color: #8c857b; font-size: 11px; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.source-links a { padding: 8px 12px; border: 1px solid rgba(216, 181, 109, 0.16); border-radius: 999px; color: #c8b996; font-size: 10px; transition: 0.2s ease; }
.source-links a:hover { border-color: var(--gold-dark); color: var(--gold-soft); }
.sources .source-note { margin-top: 16px; color: #6f6961; font-size: 10px; }
body.light .sources > p, body.light .sources .source-note { color: #736a5f; }
.closing-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-block: 110px; }
.closing-section h2 { max-width: 750px; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 30px; }
.brand-footer { transform: scale(0.9); transform-origin: left center; }
.footer-inner p { margin: 0; color: var(--muted-2); font-size: 10px; }
.footer-inner p:nth-of-type(1) { text-align: center; }

.modal, .history-drawer { position: fixed; inset: 0; z-index: 1000; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 4, 0.72); backdrop-filter: blur(8px); }
.modal-dialog { position: relative; width: min(900px, calc(100% - 32px)); max-height: calc(100vh - 48px); margin: 24px auto; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.modal-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--muted); font-size: 23px; line-height: 1; cursor: pointer; transition: 0.2s ease; }
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-dialog > .modal-close { position: sticky; z-index: 5; top: 14px; margin: 14px 14px -52px auto; }
.modal-card-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 42px; padding: 48px; }
.modal-card-visual { position: sticky; top: 30px; align-self: start; }
.modal-card-visual .tarot-face { width: 240px; margin-inline: auto; }
.modal-card-visual .card-title strong { font-size: 20px; }
.modal-card-visual .card-title span { font-size: 8px; }
.modal-card-visual .card-art-glyph { font-size: 66px; }
.orientation-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 240px; margin: 16px auto 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.orientation-switch button { padding: 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.orientation-switch button.is-active { background: var(--surface-3); color: var(--gold-soft); }
.modal-card-content h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); font-weight: 500; line-height: 1.2; }
.modal-card-content > small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.modal-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 24px; }
.modal-keywords span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-soft); font-size: 10px; }
.modal-meaning { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.modal-facts { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.modal-fact { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.modal-fact strong { color: var(--gold); font-size: 10px; letter-spacing: 0.12em; }
.modal-fact p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.history-drawer { visibility: hidden; pointer-events: none; }
.history-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { opacity: 0; transition: opacity 0.3s ease; }
.history-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(460px, 100%); height: 100%; padding: 28px; overflow-y: auto; border-left: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); transform: translateX(100%); transition: transform 0.34s cubic-bezier(.2,.8,.2,1); }
.history-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.drawer-panel h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.drawer-intro { margin: 18px 0 24px; color: var(--muted); font-size: 11px; }
.history-list { display: grid; gap: 10px; margin-bottom: 24px; }
.history-item { width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-soft); color: inherit; text-align: left; cursor: pointer; transition: 0.2s ease; }
.history-item:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.history-item time { color: var(--muted-2); font-size: 9px; }
.history-item strong { display: block; margin: 6px 0 7px; overflow: hidden; font-family: var(--serif); font-size: 14px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.history-item p { margin: 0; color: var(--muted-2); font-size: 10px; }
.history-empty { padding: 38px 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted-2); font-size: 11px; text-align: center; }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; min-width: 220px; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-soft); font-size: 11px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: 0.28s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .card-library { grid-template-columns: repeat(6, 1fr); }
  .library-controls { grid-template-columns: 1fr; }
  .filter-group { flex-wrap: wrap; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 68px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .hero-facts { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { min-height: 500px; }
  .spread-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid, .result-grid-bottom { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-detail { grid-template-columns: 1fr; }
  .card-library { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .hero { padding-block: 52px 72px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-visual { min-height: 410px; transform: scale(0.82); margin-inline: -44px; }
  .hero-facts { margin-top: 34px; }
  .hero-facts li { min-width: 88px; padding-right: 16px; margin-right: 16px; }
  .studio, .library-section, .method-section { padding-block: 76px; }
  .studio-frame { border-radius: 22px; }
  .step-item { justify-content: center; padding: 17px 10px; }
  .step-item strong { display: none; }
  .step-item.is-complete::before { display: none; }
  .studio-panel { padding: 28px 18px; }
  .result-panel { padding: 28px 16px; }
  .panel-heading, .result-toolbar { flex-direction: column; }
  .privacy-badge { align-self: flex-start; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .spread-grid { grid-template-columns: 1fr; }
  .spread-option { min-height: 130px; }
  .reading-options { align-items: flex-start; flex-direction: column; }
  .local-note { text-align: left; }
  .position-track { justify-content: flex-start; }
  .position-slot { flex-basis: 96px; min-height: 136px; }
  .slot-card { width: 61px; }
  .deck-stage { min-height: 330px; }
  .deck-fan { height: 235px; bottom: 42px; }
  .fan-card { width: 66px; }
  .result-hero-top { flex-direction: column; }
  .card-reading { grid-template-columns: 86px minmax(0, 1fr); gap: 17px; }
  .card-reading-visual .tarot-face { width: 80px; }
  .card-title strong { font-size: 8px; }
  .card-reading .card-title strong { font-size: 7px; }
  .card-library { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .library-controls { position: static; }
  .library-card-meta strong { font-size: 10px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 220px; }
  .method-number { margin-bottom: 38px; }
  .method-detail { padding: 28px 20px; }
  .closing-section { align-items: flex-start; flex-direction: column; padding-block: 78px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .brand-footer { margin-inline: auto; transform-origin: center; }
  .footer-inner p:nth-of-type(1) { text-align: center; }
  .modal-dialog { margin: 10px auto; max-height: calc(100vh - 20px); }
  .modal-card-layout { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px 34px; }
  .modal-card-visual { position: static; }
  .modal-card-visual .tarot-face { width: 200px; }
  .orientation-switch { width: 200px; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .brand small { display: none; }
  .header-actions { gap: 2px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-facts li { min-width: 0; flex: 1; }
  .hero-visual { transform: scale(0.7); margin-inline: -80px; }
  .category-option { min-height: 106px; padding: 13px 11px; }
  .field-meta { display: grid; }
  .field-error { text-align: left; }
  .deck-fan { width: 100%; }
  .fan-card { width: 53px; }
  .draw-actions { flex-direction: column; }
  .draw-actions .button { width: 100%; }
  .result-actions { width: 100%; }
  .result-actions .button { flex: 1; }
  .result-section { padding: 22px 16px; }
  .card-reading { grid-template-columns: 72px minmax(0, 1fr); gap: 13px; }
  .card-reading-visual .tarot-face { width: 67px; }
  .card-library { grid-template-columns: repeat(3, 1fr); }
  .filter-group { gap: 2px; }
  .filter-chip { padding-inline: 9px; }
  .source-links { display: grid; }
  .source-links a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.card-reading-visual {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hero-sequence {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.hero-sequence i { color: var(--gold); font-style: normal; }
.hero-sequence span:last-child { color: var(--gold-soft); }
html, body { overflow-x: clip; }
.history-drawer { overflow: hidden; }
@media (max-width: 720px) {
  .hero-visual { min-width: 0; overflow: hidden; margin-inline: 0; transform-origin: center; }
}
@media (max-width: 480px) {
  .hero-visual { margin-inline: 0; }
}
