:root {
  --fortune-navy: #152638;
  --fortune-navy-2: #0d1c2a;
  --fortune-red: #d94a3b;
  --fortune-amber: #d98b2b;
  --fortune-cream: #f8f3e9;
  --fortune-paper: #fffdf8;
  --fortune-ink: #1f2d3d;
  --fortune-muted: #687483;
}

.akiya-house-fortune-page .article-body { max-width: 1180px; padding: 0; overflow: hidden; background: var(--fortune-paper); }
.akiya-house-fortune-page .article-body > header { display: none; }
.akiya-house-fortune-page .article-content { margin: 0; }
.akiya-house-fortune-page .article-content > p:empty { display: none; }
.house-fortune { color: var(--fortune-ink); min-height: 720px; font-feature-settings: "palt"; }
.house-fortune button, .house-fortune a { -webkit-tap-highlight-color: transparent; }
.house-fortune [hidden] { display: none !important; }

.fortune-cover { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.fortune-cover-image { position: absolute; inset: 0; z-index: -2; background: url("../images/fortune/house-fortune-hero.png") center / cover no-repeat; transform: scale(1.01); }
.fortune-cover-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 19, 31, .92) 0%, rgba(12, 29, 43, .82) 38%, rgba(12, 29, 43, .24) 67%, rgba(12, 29, 43, .08) 100%), linear-gradient(0deg, rgba(8, 19, 29, .44), transparent 45%); }
.fortune-cover-copy { width: min(600px, 54%); padding: 88px 72px; color: #fff; }
.fortune-eyebrow { margin: 0 0 20px; color: #eebc72; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fortune-cover h1 { margin: 0; color: #fff; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(3.3rem, 6vw, 5.7rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.fortune-cover h1 span { display: block; margin-bottom: 13px; font-size: .53em; letter-spacing: .04em; }
.fortune-subtitle { margin: 30px 0 34px; color: rgba(255,255,255,.9); font-size: 1.16rem; line-height: 1.75; letter-spacing: .06em; }
.fortune-start { display: inline-flex; gap: 36px; align-items: center; justify-content: space-between; min-width: 270px; border: 0; border-radius: 4px; padding: 18px 22px; background: var(--fortune-red); box-shadow: 0 12px 28px rgba(0,0,0,.25); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.fortune-start:hover { transform: translateY(-2px); background: #e15445; }
.fortune-cover-note { max-width: 440px; margin: 22px 0 0; color: rgba(255,255,255,.67); font-size: .75rem; line-height: 1.7; }

.fortune-stage { min-height: 720px; padding: 58px clamp(24px, 7vw, 92px) 54px; background: radial-gradient(circle at 80% 10%, rgba(217,139,43,.1), transparent 28%), var(--fortune-cream); }
.fortune-progress-wrap { max-width: 900px; margin: 0 auto 56px; }
.fortune-progress-copy { display: flex; justify-content: space-between; color: var(--fortune-muted); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.fortune-progress-copy strong { color: var(--fortune-navy); }
.fortune-progress { height: 3px; margin-top: 13px; overflow: hidden; background: #ddd6c9; }
.fortune-progress span { display: block; width: 14.2%; height: 100%; background: linear-gradient(90deg, var(--fortune-red), var(--fortune-amber)); transition: width .35s ease; }
.fortune-scene { position: relative; max-width: 900px; margin: auto; }
.fortune-scene-number { position: absolute; top: -45px; right: 0; color: rgba(21,38,56,.07); font-family: Georgia, serif; font-size: 9rem; font-weight: 700; line-height: 1; }
.fortune-scene-lead { position: relative; max-width: 720px; margin: 0 0 28px; color: #765f42; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.05rem; line-height: 2; }
.fortune-scene h2 { position: relative; max-width: 760px; margin: 0 0 32px; color: var(--fortune-navy); font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.45; letter-spacing: -.025em; }
.fortune-answers { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fortune-answer { display: flex; gap: 16px; align-items: center; min-height: 82px; border: 1px solid #ded5c6; border-radius: 8px; padding: 16px 20px; background: rgba(255,255,255,.85); color: var(--fortune-ink); text-align: left; cursor: pointer; transition: border .2s, transform .2s, box-shadow .2s; }
.fortune-answer span { flex: 0 0 34px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #edf0f2; color: var(--fortune-navy); font-family: Georgia, serif; font-weight: 700; }
.fortune-answer strong { font-size: .98rem; line-height: 1.55; }
.fortune-answer:hover, .fortune-answer:focus-visible { border-color: var(--fortune-red); box-shadow: 0 8px 22px rgba(35,42,49,.08); transform: translateY(-2px); outline: none; }
.fortune-answer:hover span, .fortune-answer.selected span { background: var(--fortune-red); color: #fff; }
.fortune-back { margin: 34px auto 0; display: block; border: 0; background: none; color: var(--fortune-muted); font-size: .86rem; text-decoration: underline; cursor: pointer; }

.fortune-result { padding-bottom: 64px; background: var(--fortune-cream); }
.fortune-result:focus { outline: none; }
.fortune-result-hero { display: flex; min-height: 330px; align-items: center; justify-content: space-between; gap: 40px; padding: 60px clamp(28px, 8vw, 100px); background: radial-gradient(circle at 78% 30%, rgba(217,139,43,.28), transparent 18%), linear-gradient(135deg, #0d1c2a, #203a52); color: #fff; }
.fortune-result-label { margin: 0 0 6px; color: rgba(255,255,255,.67); }
.fortune-result-hero h2 { max-width: 720px; margin: 0; color: #fff; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.25; }
.fortune-result-catch { margin: 22px 0 0; color: #f4d6a4; font-size: 1.08rem; font-weight: 700; letter-spacing: .04em; }
.fortune-emblem { flex: 0 0 150px; display: grid; width: 150px; height: 150px; place-items: center; border: 1px solid rgba(238,188,114,.5); border-radius: 50%; box-shadow: inset 0 0 0 9px rgba(255,255,255,.035); color: #f1c37e; font-family: "Yu Mincho", serif; font-size: 2.2rem; }
.fortune-result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; max-width: 980px; margin: 0 auto; padding: 54px 26px 22px; }
.fortune-result-summary { margin: 0 0 26px; font-size: 1.04rem; line-height: 1.95; }
.fortune-insight { margin-top: 13px; border-left: 3px solid var(--fortune-amber); padding: 14px 18px; background: #fff; }
.fortune-insight span { color: #9a641f; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.fortune-insight p { margin: 5px 0 0; font-size: .9rem; line-height: 1.75; }
.fortune-insight.caution { border-left-color: #758291; }
.fortune-insight.caution span { color: #596674; }
.fortune-insight.next { border-left-color: var(--fortune-red); }
.fortune-insight.next span { color: var(--fortune-red); }
.fortune-radar-card { border: 1px solid #e1d9cc; border-radius: 10px; padding: 22px; background: rgba(255,255,255,.76); }
.fortune-radar-card h3 { margin: 0; color: var(--fortune-navy); font-size: 1rem; text-align: center; }
.fortune-radar { display: block; width: 100%; max-width: 340px; margin: 8px auto 0; overflow: visible; }
.radar-grid { fill: none; stroke: #d9d3c9; stroke-width: 1; }
.radar-line { stroke: #e5dfd5; stroke-width: 1; }
.radar-result { fill: rgba(217,74,59,.22); stroke: var(--fortune-red); stroke-width: 3; stroke-linejoin: round; }
.radar-label { fill: #5f6c79; font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.fortune-share-card, .fortune-route { max-width: 930px; margin: 32px auto 0; padding: 34px; }
.fortune-share-card { border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 12px 36px rgba(35,42,49,.07); }
.fortune-share-card > p { margin: 0 0 8px; color: var(--fortune-muted); font-size: .82rem; }
.fortune-share-card h3 { margin: 0 0 22px; color: var(--fortune-navy); font-family: "Yu Mincho", serif; font-size: 1.45rem; }
.fortune-share-actions { display: flex; justify-content: center; gap: 10px; }
.fortune-share-actions button { border: 1px solid var(--fortune-navy); border-radius: 4px; padding: 13px 20px; background: var(--fortune-navy); color: #fff; font-weight: 800; cursor: pointer; }
.fortune-share-actions button + button { background: #fff; color: var(--fortune-navy); }
.fortune-share-card small { display: block; min-height: 1.5em; margin-top: 10px; color: #56705d; }
.fortune-route { text-align: center; }
.fortune-route h3 { margin: 0 0 8px; color: var(--fortune-navy); font-size: 1.7rem; }
.fortune-route > p:not(.fortune-eyebrow) { margin: 0 0 24px; color: var(--fortune-muted); font-size: .88rem; }
.fortune-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.fortune-route-grid a, .fortune-route-grid button { display: grid; grid-template-columns: 42px 1fr; column-gap: 13px; border: 1px solid #ddd6ca; border-radius: 7px; padding: 17px; background: #fff; color: var(--fortune-ink); text-decoration: none; cursor: pointer; font: inherit; }
.fortune-route-grid span { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--fortune-cream); color: var(--fortune-red); font-family: Georgia, serif; font-weight: 700; }
.fortune-route-grid strong { font-size: .94rem; }
.fortune-route-grid small { margin-top: 4px; color: var(--fortune-muted); }
.fortune-route-grid a:hover, .fortune-route-grid button:hover { border-color: var(--fortune-red); }
.fortune-disclaimer { max-width: 880px; margin: 34px auto 0; padding: 0 24px; color: #77766f; font-size: .72rem; line-height: 1.8; text-align: center; }
.fortune-retry { display: block; margin: 22px auto 0; border: 0; background: none; color: var(--fortune-muted); text-decoration: underline; cursor: pointer; }

@media (max-width: 760px) {
  .akiya-house-fortune-page .article-body { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .fortune-cover { min-height: 700px; align-items: end; }
  .fortune-cover-image { background-position: 64% center; }
  .fortune-cover-shade { background: linear-gradient(0deg, rgba(7,19,31,.97) 0%, rgba(7,19,31,.86) 45%, rgba(7,19,31,.12) 85%); }
  .fortune-cover-copy { width: auto; padding: 270px 26px 46px; }
  .fortune-cover h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .fortune-subtitle { margin: 22px 0 25px; font-size: 1rem; }
  .fortune-start { width: 100%; }
  .fortune-stage { min-height: 720px; padding: 36px 20px; }
  .fortune-progress-wrap { margin-bottom: 42px; }
  .fortune-scene-number { top: -24px; font-size: 6.5rem; }
  .fortune-scene-lead { font-size: .92rem; line-height: 1.85; }
  .fortune-scene h2 { font-size: 1.48rem; }
  .fortune-answers { grid-template-columns: 1fr; }
  .fortune-answer { min-height: 72px; }
  .fortune-result-hero { min-height: 420px; align-items: flex-start; flex-direction: column; padding: 48px 25px; }
  .fortune-emblem { width: 100px; height: 100px; flex-basis: 100px; align-self: flex-end; font-size: 1.6rem; }
  .fortune-result-grid { grid-template-columns: 1fr; padding: 36px 18px 14px; }
  .fortune-share-card, .fortune-route { margin-left: 16px; margin-right: 16px; padding: 26px 18px; }
  .fortune-share-actions { flex-direction: column; }
  .fortune-route-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .house-fortune *, .house-fortune *::before, .house-fortune *::after { scroll-behavior: auto !important; transition: none !important; }
}
