.experience-directory { padding: 40px 0 48px; }
.experience-directory h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 45px); }
.experience-directory-grid { display: grid; gap: 12px; margin-top: 20px; }
.directory-all .experience-directory-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.directory-tool .experience-directory-grid, .directory-assessment .experience-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.experience-directory-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--white); }
.experience-directory-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.experience-directory-card > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; padding: 12px 14px; font: 700 clamp(16px, 1.5vw, 21px) / 1.2 var(--serif); }
.experience-directory-card > span > span { color: var(--red-dark); }
.experience-directory-card:hover { border-color: var(--red); background: #faf2e9; }

.experience-page { max-width: 1080px; min-height: 440px; margin: 0 auto; padding: 28px 0 60px; }
.experience-page .tool-back { margin-bottom: 16px; }
.experience-page h1 { margin: 0 0 16px; font-size: clamp(42px, 5.8vw, 72px); line-height: .99; letter-spacing: -.052em; text-wrap: balance; }
.experience-page h2 { margin: 0 0 12px; font-size: clamp(27px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.experience-page h3 { font-size: clamp(20px, 2.6vw, 25px); }
.experience-page p { color: var(--muted); line-height: 1.62; }
.experience-page :focus-visible, .experience-directory :focus-visible { outline-offset: 3px; }
.experience-page [tabindex="-1"] { scroll-margin-top: 16px; }
.experience-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.experience-page .shared-result { margin-bottom: 16px; }
.experience-load-error { padding: 16px; background: var(--white); border: 1px solid var(--line); }
.experience-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; border: 1px solid var(--line); background: var(--white); }
.experience-cover-copy { padding: clamp(24px, 4vw, 50px); }
.experience-cover-copy > p { margin-bottom: 16px; font-size: clamp(15px, 1.5vw, 17px); }
.experience-cover-art, .experience-cover-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.experience-cover-art img { object-fit: contain; }
.experience-page p.experience-detail { color: var(--muted); font-size: 14px; }
.experience-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.experience-actions .btn { min-height: 46px; white-space: normal; text-align: left; }
.experience-compact-heading { padding: 10px 0 22px; }
.experience-page .experience-compact-heading h1 { margin-bottom: 0; font-size: clamp(30px, 4.6vw, 54px); }
.experience-kicker, .experience-page .experience-kicker { margin: 0 0 6px; color: var(--red-dark); font-size: 12px; letter-spacing: .065em; font-weight: 700; }
.reflection-note { margin: 16px 0 0; padding: 12px 14px; border-left: 2px solid var(--red); background: var(--paper); }

.casting-desk { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .7fr); gap: 16px; }
.casting-workspace, .casting-diagram { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: var(--white); }
.casting-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.casting-header > span { color: var(--red-dark); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.casting-stage { height: clamp(160px, 27vw, 240px); position: relative; display: grid; place-items: center; overflow: hidden; container-type: size; }
.casting-stage, .last-cast > .settled-coins { background: radial-gradient(ellipse at center, var(--green-dark), #20372f); }
.casting-stage::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(216, 187, 124, .42); pointer-events: none; }
.coin-legend, .casting-fallback, .last-cast-faces { display: flex; align-items: center; }
.coin-legend { flex-wrap: wrap; gap: 8px clamp(14px, 3vw, 25px); }
.coin-face { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coin-face img { display: block; width: clamp(38px, 6.2vw, 54px); height: auto; }
.casting-fallback { min-height: 100%; justify-content: center; gap: clamp(10px, 4.8vw, 42px); }
.casting-fallback .coin-face, .last-cast-faces .coin-face { flex-direction: column; }
.casting-fallback .coin-face { color: #f8e6bd; }
.casting-fallback .coin-face img { width: clamp(54px, 16vw, 98px); filter: drop-shadow(0 3px 0 #32281c) drop-shadow(0 6px 7px #162b22); }
.coin-renderer { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-coin-renderer :is(.casting-fallback, .settled-coins) { visibility: hidden; }
.settled-coins { position: relative; }
.settled-coins canvas { display: block; width: 100%; height: auto; }
.settled-coins .coin-face-label { position: absolute; left: 50%; top: var(--coin-label-top); transform: translateX(-50%); color: #f8e6bd; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.settled-coins .coin-face-label:first-of-type { left: calc(50% - var(--coin-offset)); }
.settled-coins .coin-face-label:last-of-type { left: calc(50% + var(--coin-offset)); }
.casting-stage > .settled-coins { width: min(100%, calc(100cqh * var(--coin-aspect))); }
.experience-page .casting-summary { min-height: 24px; margin: 13px 0 0; color: var(--green-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.cast-equation { white-space: nowrap; }
.last-cast { display: flex; flex-wrap: wrap; gap: 12px clamp(18px, 3vw, 32px); align-items: center; padding: 13px 16px; border: 1px solid var(--line); background: var(--white); }
.last-cast p { margin: 0; color: var(--green-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.last-cast-faces { gap: clamp(10px, 3vw, 23px); }
.last-cast-faces .coin-face { gap: 4px; }
.last-cast > .settled-coins { width: min(100%, 300px); }
.last-cast .settled-coins .coin-face-label { font-size: 12px; }
.casting-diagram { display: flex; flex-direction: column; justify-content: center; }
.casting-diagram .experience-kicker { margin-bottom: 16px; }
.iching-lines { display: flex; flex-direction: column-reverse; gap: 8px; margin: 0; padding: 0; list-style: none; }
.iching-lines li { display: flex; align-items: center; gap: 9px; min-height: 13px; }
.iching-line-number { width: 12px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.iching-line { display: flex; width: 100%; height: 7px; color: var(--green-dark); }
.iching-line span { flex: 1; background: currentColor; }
.iching-line.moving { color: var(--red); }
.iching-line.yin { gap: 12%; }
.iching-line.pending { color: var(--line); }
.iching-line.pending span { opacity: .5; }
.reading-cards { display: grid; gap: 12px; }
.reading-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reading-card { display: grid; align-content: start; gap: 15px; min-width: 0; padding: clamp(15px, 3vw, 27px); border: 1px solid var(--line); background: var(--white); }
.reading-card-heading { display: grid; grid-template-columns: clamp(65px, 10vw, 116px) minmax(0, 1fr); align-items: center; gap: clamp(13px, 2.3vw, 23px); }
.reading-card h3 { margin: 0; font-size: clamp(24px, 3.1vw, 38px); line-height: 1.15; overflow-wrap: anywhere; }
.reading-card .reading-explanation, .reading-card .reading-prompt { margin: 0; color: var(--ink); }
.reading-card .reading-explanation { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }
.reading-prompt strong { display: block; margin-bottom: 4px; color: var(--red-dark); font-size: 13px; }
.reading-source { justify-self: start; color: var(--green-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.reading-diagram { padding: 12px 7px; background: var(--paper); }
.reading-diagram .iching-lines { gap: 3px; }
.reading-diagram .iching-line { height: 6px; }
.reading-changes { margin: 12px 0; padding: 14px clamp(15px, 3vw, 27px); border: 1px solid var(--line); background: var(--paper); }
.reading-changes h3 { margin: 0 0 5px; }
.reading-changes p { margin: 0; font-size: 14px; }
.reading-changes ul { display: grid; gap: 4px; margin: 8px 0 0; padding-inline-start: 1.15em; font-size: 14px; }
.reading-changes strong { margin-inline-end: 5px; }
.experience-finish > .experience-detail { margin-top: 11px; }

.experience-search { margin-top: 18px; }
.experience-search label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.experience-search > div { display: flex; align-items: stretch; gap: 8px; }
.experience-search input { min-width: 0; flex: 1; min-height: 48px; padding: 9px 12px; color: var(--ink); border: 1px solid var(--line); background: var(--paper); }
.experience-search button { min-height: 48px; }
.dream-library { margin-top: 29px; }
.dream-library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.dream-library-head h2 { min-width: 0; overflow-wrap: anywhere; }
.dream-library-head span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.dream-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.dream-filters .btn { min-height: 44px; }
.dream-filters [aria-pressed="true"] { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.dream-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dream-symbol { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; justify-content: center; min-height: 60px; text-align: left; border: 1px solid var(--line); padding: 9px 12px; background: var(--white); }
.dream-symbol > span:first-child { font-weight: 700; }
.dream-symbol > span + span { color: var(--muted); font-size: 11px; }
.dream-symbol:hover, .dream-symbol[aria-pressed="true"] { border-color: var(--red); background: #f9eee5; }
.dream-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .4fr); gap: 22px; margin-top: 16px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: var(--white); }
.dream-result h3 { margin-bottom: 8px; }
.dream-source { font-size: 13px; }
.dream-source a { text-decoration: underline; text-underline-offset: 3px; }
.dream-suggestions { display: grid; gap: 6px; }
.dream-empty { padding: 16px; border: 1px dashed var(--line); }

.assessment-panel, .assessment-result { max-width: 820px; margin: 0 auto; padding: clamp(19px, 4.4vw, 43px); background: var(--white); border: 1px solid var(--line); }
.assessment-progress { display: flex; justify-content: space-between; gap: 10px; color: var(--red-dark); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.assessment-panel progress, .compatibility-measures meter { display: block; width: 100%; border: 0; appearance: none; }
.assessment-panel progress { height: 5px; margin: 8px 0 23px; color: var(--red); accent-color: var(--red); background: var(--paper-deep); }
.assessment-panel progress::-webkit-progress-bar { background: var(--paper-deep); }
.assessment-panel progress::-webkit-progress-value { background: var(--red); }
.assessment-panel progress::-moz-progress-bar { background: var(--red); }
.assessment-panel #experience-question { margin-bottom: 19px; font-size: clamp(23px, 3.7vw, 37px); }
.assessment-options { display: grid; gap: 8px; }
.assessment-option { display: flex; gap: 12px; align-items: center; min-height: 51px; width: 100%; padding: 9px 12px; text-align: left; border: 1px solid var(--line); background: #fcf9f1; }
.assessment-option > span { display: grid; flex: 0 0 18px; height: 18px; place-content: center; border: 1px solid var(--muted); border-radius: 50%; }
.assessment-option:hover { border-color: var(--red); }
.assessment-option[aria-pressed="true"] { background: var(--green-light); border-color: var(--green); }
.assessment-option[aria-pressed="true"] > span { border-color: var(--green-dark); }
.assessment-option[aria-pressed="true"] > span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-dark); }
.assessment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.assessment-actions .btn { min-height: 44px; }
.assessment-handoff p { margin-bottom: 0; }
.assessment-handoff .btn { white-space: normal; }
.assessment-result-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .5fr); align-items: center; gap: clamp(10px, 2.4vw, 24px); }
.assessment-result-top h2 { font-size: clamp(36px, 7vw, 68px); color: var(--red-dark); font-variant-numeric: tabular-nums; }
.assessment-score-label { display: block; margin-top: 6px; font-size: .45em; color: var(--ink); letter-spacing: -.02em; }
.assessment-result-top .assessment-age { font-weight: 700; color: var(--green-dark); }
.assessment-result-top p:last-child { margin-bottom: 0; }
.assessment-result-art { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.assessment-report-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.compatibility-measures { display: grid; gap: 8px; margin-bottom: 0; }
.compatibility-measures dt { margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.compatibility-measures dd { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.compatibility-measures dd strong { width: 38px; }
.compatibility-measures meter { height: 6px; background: var(--paper-deep); }
.compatibility-measures meter::-webkit-meter-bar { border: 0; background: var(--paper-deep); }
.compatibility-measures meter::-webkit-meter-optimum-value { background: var(--green); }
.compatibility-measures meter::-moz-meter-bar { background: var(--green); }
.report-prompts { padding: 12px; background: var(--paper); }
.report-prompts strong { display: block; color: var(--ink); }
.report-prompts p { margin-bottom: 12px; font-size: 14px; }
.report-prompts p:last-child { margin-bottom: 0; }
.assessment-insight { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.assessment-insight > p:last-child { margin-bottom: 0; }
.report-example { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); }
.report-example > p { margin-bottom: 10px; }
.report-example dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px 16px; margin: 0; }
.report-example dt, .animal-traits dt { margin-bottom: 3px; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.report-example dd, .animal-traits dd { margin: 0; line-height: 1.5; }
.animal-traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.animal-traits > div { padding: 10px 12px; background: var(--green-light); }
.animal-traits small { display: block; margin-top: 4px; color: var(--muted); }
.trait-note { margin: 8px 0 0; font-size: 13px; }

.manual-display-ad { width: min(850px, 90vw); margin: 6px auto 34px; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; }
.manual-display-ad ins { display: block; width: 100%; min-height: 90px; margin-top: 5px; }
.guide-sources { color: var(--muted); font-size: 13px; line-height: 1.7; }
.guide-sources a, .ad-disclosure a { text-decoration: underline; text-underline-offset: 3px; }
.ad-disclosure { padding-top: 28px; }

@media (max-width: 920px) {
  .directory-all .experience-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 790px) {
  .experience-cover { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .experience-page { padding-top: 15px; padding-bottom: 34px; }
  .experience-directory { padding: 26px 0 33px; }
  .directory-all .experience-directory-grid, .directory-assessment .experience-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dream-result, .assessment-report-body, .animal-traits, .reading-pair { grid-template-columns: minmax(0, 1fr); }
  .casting-desk { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .casting-diagram { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; justify-content: stretch; gap: 8px; }
  .casting-diagram .experience-kicker { margin: 0; }
  .casting-diagram .iching-lines { gap: 4px; }
  .dream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dream-suggestions { display: flex; flex-wrap: wrap; }
  .assessment-result-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .assessment-result-top h2 { font-size: clamp(29px, 8.8vw, 53px); }
  .assessment-result-art { width: min(62%, 208px); }
  .experience-page .share-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .experience-page button, .experience-directory-card { transition: none; }
  .experience-page .btn:hover, .experience-page button:active { transform: none; }
}
