/* ═══════════════════════════════════════════════════════════
   納赫允正典塔羅 · 邊痕共相四十四牌
   奇幻 → 黑暗 → 夢境 → 神祕 → 王劫 → 萬界 → 無痕
   ═══════════════════════════════════════════════════════════ */

.tarot-workspace {
  --tarot-ink: #090d18;
  --tarot-night: #111b32;
  --tarot-silver: #d8deed;
  --tarot-gold: #d6b463;
  --tarot-muted: #9aa7bd;
  --tarot-phase: #9e88c5;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  color: var(--tarot-silver);
}

.tarot-workspace::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -32px -30px;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--tarot-phase) 18%, transparent), transparent 31%),
    radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--tarot-phase) 15%, transparent), transparent 34%),
    radial-gradient(circle at 50% 75%, rgba(197, 132, 67, .09), transparent 36%),
    linear-gradient(155deg, rgba(7, 11, 22, .97), rgba(13, 17, 32, .93) 46%, rgba(8, 10, 20, .98));
}

.tarot-workspace::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -32px -30px;
  opacity: .34;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 49.7%, rgba(215, 184, 107, .13) 50%, transparent 50.3%),
    radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.4px);
  background-size: 100% 100%, 41px 41px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.tarot-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid rgba(216, 190, 121, .22);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(17, 26, 47, .94), rgba(15, 14, 30, .82));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 22px 60px rgba(0,0,0,.28);
  overflow: hidden;
  position: relative;
}

.tarot-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -90px;
  top: -180px;
  border: 1px solid rgba(219, 184, 97, .28);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(125, 93, 181, .22), inset 0 0 60px rgba(95, 134, 191, .11);
}

.tarot-kicker,
.tarot-panel-eyebrow {
  display: block;
  color: #d9bc79;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.tarot-hero h1 {
  margin: 7px 0 6px;
  color: #f4e9ca;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(29px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 4px 28px rgba(220, 184, 95, .17);
}

.tarot-hero p {
  max-width: 720px;
  margin: 0;
  color: #aeb8ca;
  font-size: 13px;
  line-height: 1.8;
}

.tarot-hero-seal {
  position: relative;
  z-index: 1;
  width: 86px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(224, 191, 101, .54);
  border-radius: 50%;
  color: #f1d690;
  background: radial-gradient(circle, rgba(116, 88, 37, .24), rgba(10, 15, 28, .88) 67%);
  box-shadow: 0 0 32px rgba(202, 163, 76, .13), inset 0 0 0 5px rgba(216, 185, 100, .05);
}

.tarot-hero-seal span { font: 700 26px/1 Georgia, serif; }
.tarot-hero-seal small { margin-top: 4px; color: #a99568; font-size: 9px; letter-spacing: .16em; }

.tarot-phase-ribbon {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 1px;
  margin: 14px 0 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(3, 6, 13, .72);
  overflow-x: auto;
}

.tarot-phase-chip {
  appearance: none;
  min-height: 78px;
  min-width: 118px;
  padding: 10px 11px;
  border: 0;
  border-radius: 0;
  text-align: left;
  color: var(--phase-text, #cbd5e1);
  background:
    linear-gradient(130deg, color-mix(in srgb, var(--phase) 22%, transparent), transparent 72%),
    rgba(13, 18, 30, .85);
  border-bottom: 2px solid color-mix(in srgb, var(--phase) 62%, transparent);
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}

.tarot-phase-chip span { display: block; color: color-mix(in srgb, var(--phase) 80%, white); font-size: 10px; font-weight: 800; }
.tarot-phase-chip small { display: block; margin-top: 3px; color: #78859a; font-size: 9px; white-space: nowrap; }
.tarot-phase-chip em { display: block; max-height: 0; margin-top: 0; overflow: hidden; color: #9da8b9; font-size: 8px; font-style: normal; line-height: 1.45; opacity: 0; transition: max-height .22s ease, margin .22s ease, opacity .22s ease; }
.tarot-phase-chip:hover,
.tarot-phase-chip.active { background: linear-gradient(145deg, color-mix(in srgb, var(--phase) 28%, transparent), rgba(13,18,30,.92)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--phase) 28%, transparent); }
.tarot-phase-chip:hover em,
.tarot-phase-chip.active em { max-height: 34px; margin-top: 5px; opacity: 1; }
.tarot-phase-chip:focus-visible,
.tarot-filter:focus-visible,
.tarot-art-card:focus-visible,
.tarot-detail-nav button:focus-visible,
.tarot-question-field textarea:focus-visible,
.tarot-search-field input:focus-visible { outline: 2px solid color-mix(in srgb, var(--tarot-phase) 72%, white); outline-offset: 2px; }

.tarot-reading-layout {
  display: grid;
  grid-template-columns: minmax(255px, .72fr) minmax(0, 2fr);
  gap: 18px;
  align-items: stretch;
}

.tarot-ritual-panel,
.tarot-reading-stage,
.tarot-atlas {
  border: 1px solid rgba(199, 175, 113, .17);
  border-radius: 20px;
  background: rgba(8, 12, 23, .81);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 20px 50px rgba(0,0,0,.2);
}

.tarot-ritual-panel {
  padding: 20px;
  text-align: center;
}

.tarot-ritual-panel h2,
.tarot-atlas h2 {
  margin: 6px 0 7px;
  color: #ead9ae;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 20px;
  letter-spacing: .08em;
}

.tarot-ritual-panel > p,
.tarot-atlas-head p {
  margin: 0;
  color: #8995a9;
  font-size: 11px;
  line-height: 1.7;
}

.tarot-question-field { display: block; margin-top: 15px; text-align: left; }
.tarot-question-field > span { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: #cdbb8d; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.tarot-question-field small { color: #667389; font-size: 8px; font-weight: 500; letter-spacing: .04em; }
.tarot-question-field textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid rgba(199,175,113,.19);
  border-radius: 10px;
  color: #d8deea;
  background: rgba(3,7,14,.72);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.55;
}
.tarot-question-field textarea::placeholder { color: #596579; }
.tarot-question-field em { display: block; margin-top: 4px; color: #596579; font-size: 8px; font-style: normal; text-align: right; }

.tarot-deck {
  position: relative;
  display: block;
  width: min(184px, 78%);
  aspect-ratio: 2 / 3;
  margin: 22px auto 18px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
}

.tarot-deck-shadow,
.tarot-deck-back {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  border: 1px solid rgba(220, 186, 96, .36);
}

.tarot-deck-shadow { background: #11192b; }
.tarot-deck-shadow-one { transform: rotate(-4deg) translate(-7px, 2px); opacity: .58; }
.tarot-deck-shadow-two { transform: rotate(3deg) translate(7px, 3px); opacity: .78; }

.tarot-deck-back {
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 11, 20, .05), rgba(8, 11, 20, .28)),
    url("./assets/tarot/card-back.webp") center / cover no-repeat;
  box-shadow: 0 18px 45px rgba(0,0,0,.52), 0 0 28px rgba(157, 117, 57, .13), inset 0 0 0 4px #080d18, inset 0 0 0 5px rgba(228, 196, 112, .4);
  transition: transform .5s ease, filter .5s ease, box-shadow .5s ease;
}

.tarot-deck:hover .tarot-deck-back,
.tarot-deck:focus-visible .tarot-deck-back {
  transform: translateY(-8px) rotateY(-6deg);
  filter: saturate(1.12) brightness(1.06);
  box-shadow: 0 25px 58px rgba(0,0,0,.6), 0 0 42px rgba(191, 145, 64, .2), inset 0 0 0 4px #080d18, inset 0 0 0 5px rgba(240, 207, 118, .55);
}

.tarot-deck-prompt {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88%;
  padding: 5px 9px;
  border: 1px solid rgba(219, 189, 112, .24);
  border-radius: 999px;
  color: #d8c99f;
  background: rgba(5, 8, 16, .72);
  backdrop-filter: blur(8px);
  font-size: 9px;
  letter-spacing: .08em;
}

.tarot-ritual-actions { display: grid; gap: 8px; }
.tarot-ritual-actions .btn { justify-content: center; width: 100%; }

.tarot-reading-stage {
  min-height: 520px;
  padding: 22px;
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.tarot-reading-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(90, 109, 167, .13), transparent 46%);
}

.tarot-reading-empty {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  color: #79869b;
}

.tarot-reading-empty strong { margin-top: 14px; color: #c8c2b2; font: 600 16px "Noto Serif TC", serif; letter-spacing: .1em; }
.tarot-reading-empty p { max-width: 410px; margin: 7px 0 0; font-size: 11px; line-height: 1.7; }

.tarot-empty-orbit {
  width: 108px;
  aspect-ratio: 1;
  border: 1px solid rgba(218, 185, 100, .34);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgba(85, 109, 164, .12), 0 0 38px rgba(120, 93, 169, .13);
  position: relative;
}
.tarot-empty-orbit::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(160, 174, 207, .18); border-radius: 50%; border-right-color: transparent; }

.tarot-spread {
  position: relative;
  z-index: 1;
  width: 100%;
}

.tarot-spread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.tarot-spread-head h2 { margin: 3px 0 0; color: #eadbb7; font: 600 19px "Noto Serif TC", serif; }
.tarot-spread-head p { margin: 3px 0 0; color: #7f8ba0; font-size: 10px; }
.tarot-spread-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.tarot-spread-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
}

.tarot-reading-item { width: min(31%, 230px); min-width: 0; text-align: center; }
.tarot-spread[data-count="1"] .tarot-reading-item { width: min(290px, 78%); }
.tarot-position-label { display: inline-block; margin: 0 0 8px; color: var(--card-accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }

.tarot-art-card {
  --card-accent: #9eb8e4;
  --card-glow: rgba(93, 127, 182, .2);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--card-accent) 55%, transparent);
  border-radius: 12px;
  background: #070b13;
  color: #f1ead9;
  cursor: pointer;
  box-shadow: 0 15px 36px rgba(0,0,0,.45), 0 0 26px var(--card-glow), inset 0 0 0 4px #070b13, inset 0 0 0 5px color-mix(in srgb, var(--card-accent) 45%, transparent);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.tarot-art-card:hover,
.tarot-art-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(0,0,0,.58), 0 0 36px var(--card-glow), inset 0 0 0 4px #070b13, inset 0 0 0 5px var(--card-accent); }
.tarot-art-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tarot-art-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(4,7,13,.1), transparent 38%, rgba(4,7,13,.1) 58%, rgba(3,5,10,.94)); }

.tarot-card-number,
.tarot-card-title,
.tarot-card-dept { position: absolute; z-index: 2; }
.tarot-card-number { top: 9px; left: 10px; min-width: 27px; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent); border-radius: 999px; background: rgba(5,8,14,.68); color: #f2e5c5; font: 700 10px Georgia, serif; }
.tarot-card-title { left: 10px; right: 10px; bottom: 27px; font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(11px, 1.25vw, 15px); font-weight: 700; letter-spacing: .04em; line-height: 1.35; text-shadow: 0 2px 12px #000; }
.tarot-card-dept { left: 10px; right: 10px; bottom: 9px; color: color-mix(in srgb, var(--card-accent) 78%, #e8e3d7); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }

.tarot-reading-note { margin: 10px 2px 0; color: #8e9bb0; font-size: 10px; line-height: 1.55; }
.tarot-reading-note strong { display: block; margin-bottom: 3px; color: #d9d2c2; font-weight: 600; }

.tarot-reading-question { display: inline-flex; gap: 7px; max-width: 580px; margin-top: 9px; padding: 7px 9px; border: 1px solid rgba(198,165,86,.18); border-radius: 9px; color: #b8c1cf; background: rgba(5,8,15,.5); font-size: 10px; line-height: 1.5; }
.tarot-reading-question span { flex: 0 0 auto; color: #cfb979; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.tarot-synthesis { margin-top: 18px; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--tarot-phase) 28%, transparent); border-radius: 13px; background: linear-gradient(125deg, color-mix(in srgb, var(--tarot-phase) 10%, transparent), rgba(255,255,255,.018)); }
.tarot-synthesis span { display: block; color: color-mix(in srgb, var(--tarot-phase) 72%, #eadbb7); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.tarot-synthesis p { margin: 6px 0 0; color: #aeb8c8; font-size: 11px; line-height: 1.75; }

.tarot-group-1 { --card-accent: #8ca8d0; --card-glow: rgba(83, 118, 174, .2); }
.tarot-group-2 { --card-accent: #7187b2; --card-glow: rgba(34, 56, 104, .32); }
.tarot-group-3 { --card-accent: #9e88c5; --card-glow: rgba(99, 68, 151, .24); }
.tarot-group-4 { --card-accent: #c5ad78; --card-glow: rgba(171, 126, 54, .21); }
.tarot-group-5 { --card-accent: #c27662; --card-glow: rgba(171, 64, 39, .24); }
.tarot-group-6 { --card-accent: #af91d4; --card-glow: rgba(125, 91, 177, .26); }
.tarot-group-7 { --card-accent: #d4d8e4; --card-glow: rgba(196, 204, 223, .2); }

.tarot-reveal { animation: tarotReveal .72s cubic-bezier(.2,.72,.18,1) both; animation-delay: calc(var(--reveal-index, 0) * 120ms); }
@keyframes tarotReveal { from { opacity: 0; transform: translateY(24px) rotateY(76deg) scale(.92); } to { opacity: 1; transform: none; } }

.tarot-atlas { margin-top: 18px; padding: 20px; }
.tarot-atlas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.tarot-atlas-controls { width: min(610px, 62%); display: grid; gap: 8px; justify-items: end; }
.tarot-search-field { width: min(320px, 100%); }
.tarot-search-field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tarot-search-field input { width: 100%; min-height: 36px; padding: 8px 12px 8px 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #d5dbe7; background: rgba(4,8,16,.72) linear-gradient(90deg, transparent 31px, rgba(255,255,255,.06) 32px, transparent 33px); font-size: 10px; }
.tarot-search-field { position: relative; }
.tarot-search-field::before { content: "⌕"; position: absolute; z-index: 1; left: 12px; top: 7px; color: #8c99ae; font-size: 16px; }
.tarot-atlas-count { color: #667389; font-size: 9px; letter-spacing: .08em; }
.tarot-filter-row { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.tarot-filter {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #8490a5;
  background: rgba(10, 15, 27, .76);
  font-size: 9px;
  cursor: pointer;
}
.tarot-filter:hover,
.tarot-filter.active { color: #eee2c3; border-color: rgba(217, 183, 95, .46); background: rgba(105, 75, 28, .24); }

.tarot-atlas-groups { display: grid; gap: 24px; }
.tarot-atlas-group { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--phase) 24%, transparent); }
.tarot-atlas-group:first-child { padding-top: 0; border-top: 0; }
.tarot-atlas-group-head { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.7fr) auto; gap: 18px; align-items: center; margin-bottom: 12px; padding: 11px 13px; border-left: 2px solid color-mix(in srgb, var(--phase) 72%, white); background: linear-gradient(90deg, color-mix(in srgb, var(--phase) 12%, transparent), transparent 72%); }
.tarot-atlas-group-head span { color: color-mix(in srgb, var(--phase) 76%, white); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.tarot-atlas-group-head h3 { margin: 3px 0 0; color: #e3dac4; font: 600 16px "Noto Serif TC", serif; letter-spacing: .08em; }
.tarot-atlas-group-head p { margin: 0; color: #8e99ab; font-size: 10px; line-height: 1.65; }
.tarot-atlas-group-head strong { color: color-mix(in srgb, var(--phase) 78%, white); font: 700 11px Georgia, serif; white-space: nowrap; }
.tarot-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 13px; }
.tarot-card-grid .tarot-art-card { min-width: 0; }
.tarot-title-long .tarot-card-title { font-size: clamp(10px, 1.08vw, 13px); }
.tarot-title-very-long .tarot-card-title { font-size: clamp(9px, 1vw, 12px); line-height: 1.28; }
.tarot-atlas-empty { min-height: 220px; display: grid; place-content: center; gap: 5px; text-align: center; color: #6f7c90; }
.tarot-atlas-empty strong { color: #cbbd9d; font: 600 16px "Noto Serif TC", serif; }
.tarot-atlas-empty span { font-size: 10px; }

.tarot-detail[hidden] { display: none; }
.tarot-detail { position: fixed; z-index: 5000; inset: 0; display: grid; place-items: center; padding: 24px; }
.tarot-detail-scrim { position: absolute; inset: 0; border: 0; background: rgba(2, 4, 9, .86); backdrop-filter: blur(9px); cursor: default; }
.tarot-detail-card { position: relative; z-index: 1; width: min(880px, 96vw); max-height: min(840px, 92vh); overflow: auto; padding: 22px; border: 1px solid rgba(220, 188, 105, .3); border-radius: 22px; background: linear-gradient(145deg, #11182a, #0a0e19 62%, #121020); box-shadow: 0 35px 100px rgba(0,0,0,.7); }
.tarot-detail-close { position: sticky; z-index: 4; top: 0; float: right; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #d9dce5; background: rgba(5,8,14,.82); font-size: 22px; cursor: pointer; }
.tarot-detail-layout { display: grid; grid-template-columns: minmax(220px, 310px) 1fr; gap: 24px; align-items: start; }
.tarot-detail-image { width: 100%; }
.tarot-detail-copy { padding: 6px 8px 8px 0; }
.tarot-detail-copy .tarot-kicker { color: var(--detail-accent, #d6b463); }
.tarot-detail-copy h2 { margin: 8px 0 4px; color: #f2e7cb; font: 700 clamp(24px, 4vw, 38px) "Noto Serif TC", serif; letter-spacing: .05em; }
.tarot-detail-phase { color: var(--detail-accent, #d6b463); font-size: 11px; letter-spacing: .12em; }
.tarot-keywords { display: flex; gap: 7px; flex-wrap: wrap; margin: 15px 0; }
.tarot-keywords span { padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--detail-accent, #d6b463) 38%, transparent); border-radius: 999px; color: #c9c3b5; background: rgba(255,255,255,.025); font-size: 10px; }
.tarot-detail-block { margin-top: 13px; padding: 13px 14px; border-left: 2px solid color-mix(in srgb, var(--detail-accent, #d6b463) 55%, transparent); background: rgba(255,255,255,.025); }
.tarot-detail-block span { display: block; margin-bottom: 4px; color: #7d899e; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.tarot-detail-block p { margin: 0; color: #c3cbd9; font-size: 12px; line-height: 1.75; }
.tarot-detail-question { color: #ead9af !important; font-family: "Noto Serif TC", serif; font-size: 15px !important; }
.tarot-detail-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 16px; }
.tarot-detail-nav button { min-width: 0; padding: 9px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #c6cedb; background: rgba(255,255,255,.025); cursor: pointer; }
.tarot-detail-nav button:last-child { text-align: right; }
.tarot-detail-nav small { display: block; color: #6f7c90; font-size: 8px; }
.tarot-detail-nav span { display: block; margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tarot-detail-nav em { color: #877a5c; font: 700 10px Georgia, serif; font-style: normal; white-space: nowrap; }
body.tarot-detail-open { overflow: hidden; }

.tarot-inspector-card { border-color: rgba(198, 164, 84, .22); }
.tarot-inspector-body { display: grid; gap: 9px; }
.tarot-inspector-body div { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); color: #8d99ad; font-size: 11px; }
.tarot-inspector-body strong { color: #e0cca0; font-size: 11px; }
.tarot-inspector-copy p { color: #909bad; font-size: 11px; line-height: 1.7; }
.tarot-inspector-copy .btn { width: 100%; justify-content: center; margin-top: 7px; }

@media (max-width: 1180px) {
  .tarot-reading-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .tarot-reading-stage { min-height: 480px; padding: 17px; }
  .tarot-spread-cards { gap: 10px; }
}

@media (max-width: 820px) {
  .tarot-hero { align-items: center; padding: 20px; }
  .tarot-hero-seal { width: 70px; }
  .tarot-reading-layout { grid-template-columns: 1fr; }
  .tarot-deck { width: 154px; }
  .tarot-reading-stage { min-height: 460px; }
  .tarot-atlas-head { align-items: flex-start; flex-direction: column; }
  .tarot-atlas-controls { width: 100%; justify-items: start; }
  .tarot-filter-row { justify-content: flex-start; }
  .tarot-atlas-group-head { grid-template-columns: 1fr auto; }
  .tarot-atlas-group-head p { grid-column: 1 / -1; }
  .tarot-detail-layout { grid-template-columns: minmax(180px, 250px) 1fr; }
}

@media (max-width: 560px) {
  .tarot-hero-seal { display: none; }
  .tarot-spread-cards { flex-direction: column; align-items: center; }
  .tarot-reading-item,
  .tarot-spread[data-count="1"] .tarot-reading-item { width: min(250px, 88%); }
  .tarot-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tarot-phase-chip { min-width: 148px; }
  .tarot-filter-row { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .tarot-filter { min-height: 36px; flex: 0 0 auto; padding-inline: 12px; }
  .tarot-search-field { width: 100%; }
  .tarot-atlas-group-head { gap: 8px; padding: 10px; }
  .tarot-atlas-group-head h3 { font-size: 14px; }
  .tarot-reading-question { display: block; }
  .tarot-reading-question span { margin-bottom: 4px; }
  .tarot-detail-nav { grid-template-columns: 1fr 1fr; }
  .tarot-detail-nav em { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .tarot-detail { padding: 10px; }
  .tarot-detail-card { padding: 14px; }
  .tarot-detail-layout { grid-template-columns: 1fr; }
  .tarot-detail-image { width: min(260px, 76vw); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-reveal { animation: none; }
  .tarot-deck-back,
  .tarot-art-card { transition: none; }
}
