/* Inner pages: page head, altar form, ritual loader, results, reference. */

.icon { width: 18px; height: 18px; flex: none; }
.page-head, .tool, .reference, .reference-block, .soon-box { width: min(980px, calc(100% - 2.5rem)); margin-inline: auto; }
.page-head { padding-top: clamp(1.5rem, 4vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--gold-soft); }
.page-title { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2rem); margin-bottom: 2.4rem; }
.page-title h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .6rem; }
.page-title .lede { margin: 0; }
.sigil { display: grid; place-items: center; width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); flex: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-soft); background: radial-gradient(circle, rgba(124, 99, 230, .28), transparent 70%); box-shadow: 0 0 40px rgba(124, 99, 230, .25); }
.sigil svg { width: 52%; height: 52%; }

/* altar form */
.tool { margin-bottom: 3rem; }
.altar { position: relative; padding: clamp(1.6rem, 4vw, 3rem); border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 80px rgba(124, 99, 230, .08); }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); }
.corner.tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.corner.tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.corner.br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.altar h2 { margin-bottom: 1.8rem; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-soft); }
.field { margin-bottom: 1.5rem; }
.altar label { display: block; margin-bottom: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.req { color: var(--ember); }
.altar input, .altar select, .altar textarea {
  display: block; width: 100%; min-height: 50px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 2px; resize: vertical;
  background: rgba(255, 255, 255, .04); color: var(--parchment); font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.altar textarea { line-height: 1.6; }
.altar input:focus, .altar select:focus, .altar textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(217, 180, 108, .2), 0 0 30px rgba(124, 99, 230, .25); }
.altar input[type="date"] { color-scheme: dark; }
.altar select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23d9b46c' stroke-width='1.5'><path d='M1 1l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; }
.altar select option { background: #14112b; color: var(--parchment); }
.altar input[type="file"] { padding: .7rem 1rem; }
.altar input[type="file"]::file-selector-button { margin-right: 1rem; padding: .5rem 1rem; border: 1px solid var(--gold); background: transparent; color: var(--gold-soft); cursor: pointer; }
::placeholder { color: #8f88a6; }
.field-hint { margin: .55rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.form-error { min-height: 1.3rem; margin: .4rem 0 1rem; font-size: .9rem; color: var(--ember); }
.altar .btn { width: 100%; }
.disclaimer-line { margin: 1.6rem 0 0; font-size: .76rem; line-height: 1.6; color: var(--muted); }

/* ritual loader */
.ritual { display: grid; justify-items: center; gap: 1.4rem; padding: 3rem 1rem; text-align: center; }
.ritual-sigil { position: relative; width: 120px; height: 120px; }
.ritual-sigil::before, .ritual-sigil::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 50%; }
.ritual-sigil::before { border-style: dashed; animation: spin 14s linear infinite; }
.ritual-sigil::after { inset: 18px; border-color: var(--gold-soft); border-top-color: transparent; animation: spin 3s linear infinite reverse; }
.ritual-sigil svg { position: absolute; inset: 38px; width: 44px; height: 44px; color: var(--gold-soft); animation: pulse 2.4s ease-in-out infinite; }
.ritual-text { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--gold-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }

/* result */
.result { margin-top: 2.6rem; padding: clamp(1.6rem, 4vw, 3rem); border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(42, 33, 89, .45), rgba(13, 11, 26, .75)); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); min-width: 0; }
.result[hidden] { display: none; }
.result .eyebrow { margin-bottom: 1.8rem; }
.fade-in { animation: fade-up var(--t-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.stat-label { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1; color: var(--gold-soft); }
.stat-note { font-size: .78rem; font-weight: 600; color: var(--jade); }
.matrix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1px; margin-bottom: 2rem; border: 1px solid var(--line); background: var(--line); }
.matrix-cell { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; background: #110e24; }
.matrix-cell:first-child { background: linear-gradient(135deg, rgba(124, 99, 230, .35), #110e24); }
.matrix-cell span { font-size: .72rem; line-height: 1.35; color: var(--muted); }
.matrix-cell strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--gold-soft); }
.bio { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.bio-row { display: grid; grid-template-columns: 11rem 1fr 4.5rem; align-items: center; gap: 1rem; font-size: .9rem; }
.bio-name { font-weight: 600; }
.bio-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold-soft); }
.bio-track { position: relative; height: 10px; background: rgba(255, 255, 255, .08); }
.bio-track::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--gold); }
.bio-fill { position: absolute; top: 0; bottom: 0; transform-origin: left; animation: grow 1.1s var(--ease) both; }
.bio-fill.neg { transform-origin: right; }
.bio-fill.pos { background: linear-gradient(90deg, var(--violet), var(--gold)); }
.bio-fill.neg { background: linear-gradient(270deg, var(--violet), var(--ember)); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* tarot / rune cards: face-down, then flip one by one */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.8rem 1.1rem; margin: 0 0 2rem; padding: 0; min-width: 0; }
.tile { min-width: 0; perspective: 1000px; }
.tile-pos { display: block; margin-bottom: .6rem; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tile-card { position: relative; aspect-ratio: 2 / 3.1; transform-style: preserve-3d; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 320ms); }
.tile.flipped .tile-card { transform: rotateY(180deg); }
.tile-back, .tile-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--gold); }
.tile-back {
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 50% 50%, rgba(124, 99, 230, .5), transparent 65%), repeating-linear-gradient(45deg, rgba(217, 180, 108, .08) 0 2px, transparent 2px 10px), #120f28;
  outline: 1px solid rgba(217, 180, 108, .4); outline-offset: -8px;
}
.tile-back svg { width: 38%; height: auto; aspect-ratio: 1; }
.tile-face { display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; padding: 1rem .9rem; transform: rotateY(180deg); background: linear-gradient(165deg, #231d4d, #0d0b1a 70%); outline: 1px solid rgba(217, 180, 108, .35); outline-offset: -7px; box-shadow: 0 0 50px rgba(124, 99, 230, .25); }
.tile-face::before { content: ""; position: absolute; inset: 14% 22% auto; aspect-ratio: 1; opacity: .16; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b46c' stroke-width='.8' stroke-linejoin='round'><path d='M12 2l2 8 8 2-8 2-2 8-2-8-8-2 8-2z'/><circle cx='12' cy='12' r='9'/></svg>") center / contain no-repeat; }
.tile-face.has-art { padding: 0; background: #0d0b1a; overflow: hidden; border-radius: 4.6% / 2.7%; }
.tile-face.has-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile.is-reversed .tile-face.has-art img { transform: rotate(180deg); }
.tile-caption { margin: .7rem 0 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; text-align: center; color: var(--parchment); }
.tile-caption .tile-flag { color: var(--ember); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-family: inherit; }
.ref-head:has(.ref-art) { position: relative; min-height: 420px; padding-right: 260px; }
.ref-art { position: absolute; top: 0; right: 0; width: 230px; height: auto; border-radius: 4.6% / 2.7%; box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(217,180,108,.4); }
@media (max-width: 720px) { .ref-head:has(.ref-art) { min-height: 0; padding-right: 0; } .ref-art { position: static; display: block; margin: 0 auto 1.2rem; width: 58%; } }
.tile.is-reversed .tile-face { background: linear-gradient(165deg, #3a1630, #0d0b1a 70%); }
.tile-name { font-family: var(--font-display); font-size: clamp(1.15rem, 3.6vw, 1.5rem); line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
.tile-name a:hover { color: var(--gold-soft); }
.tile-flag { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }

.hexagram-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2.4rem; margin-bottom: 2rem; }
.hexagram { display: grid; gap: .7rem; width: 150px; }
.hex-line { display: flex; height: 12px; opacity: 0; animation: fade-up .8s var(--ease) both; }
.hex-line:nth-child(1) { animation-delay: 1s; } .hex-line:nth-child(2) { animation-delay: .8s; } .hex-line:nth-child(3) { animation-delay: .6s; }
.hex-line:nth-child(4) { animation-delay: .4s; } .hex-line:nth-child(5) { animation-delay: .2s; } .hex-line:nth-child(6) { animation-delay: 0s; }
.hex-line i { flex: 1; background: var(--gold); }
.hex-line.yin { gap: 18%; }
.hex-line.changing i { background: var(--ember); box-shadow: 0 0 16px rgba(232, 128, 143, .6); }
.hexagram-wrap .stats { flex: 1; min-width: 220px; margin-bottom: 0; }

.result-text { max-width: 44rem; }
.result-text p { margin-bottom: 1.1rem; font-size: 1.12rem; line-height: 1.85; }
.result-text.is-failed { color: var(--ember); }
.result-note { max-width: 44rem; padding: 1rem 1.2rem; border-left: 2px solid var(--gold); background: rgba(217, 180, 108, .07); font-size: .95rem; line-height: 1.65; color: var(--parchment); }
.facts { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.facts h3 { margin-bottom: 1.2rem; color: var(--gold-soft); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.facts li { padding-left: 1.1rem; border-left: 1px solid var(--gold); }
.fact-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.fact-head a, .fact-head strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; border-bottom: 1px solid var(--line-strong); }
.fact-head a:hover { color: var(--gold-soft); }
.facts p { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--muted); }
.chip { display: inline-block; padding: .15rem .65rem; border: 1px solid var(--line); font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.chip-высокая { border-color: rgba(143, 214, 196, .6); color: var(--jade); }
.chip-средняя { border-color: rgba(217, 180, 108, .6); color: var(--gold); }
.chip-низкая { border-color: rgba(232, 128, 143, .6); color: var(--ember); }
.result-actions { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2rem; }
.text-button { display: inline-block; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--gold-soft); font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.text-button:hover { border-color: var(--gold-soft); color: var(--parchment); }
.loading { color: var(--muted); }

/* reference lists */
.reference-block { margin-bottom: .9rem; }
.reference-block details { border: 1px solid var(--line); background: rgba(18, 15, 38, .55); transition: border-color var(--t-fast); }
.reference-block details[open] { border-color: var(--line-strong); }
.reference-block summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; min-height: 56px; cursor: pointer; list-style: none; }
.reference-block summary::-webkit-details-marker { display: none; }
.ref-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.reference-block summary em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--gold); }
.reference-block summary::after { content: "+"; margin-left: auto; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--gold); transition: transform var(--t-mid) var(--ease); }
.reference-block details[open] summary::after { transform: rotate(45deg); }
.ref-filter { display: block; width: calc(100% - 2.8rem); min-height: 48px; margin: 0 1.4rem 1rem; padding: .7rem 1rem; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--parchment); border-radius: 2px; }
.ref-filter:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 108, .2); }
.ref-list { list-style: none; margin: 0; padding: 0 1.4rem 1.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 2rem; }
.ref-list li[hidden] { display: none; }
.ref-list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); transition: transform var(--t-mid) var(--ease); }
.ref-list a:hover { transform: translateX(6px); }
.ref-list strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.ref-list a:hover strong { color: var(--gold-soft); }
.ref-list span { display: block; margin-top: .2rem; font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* reference page */
.reference { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; }
.ref-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.ref-head h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.trad-line { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.ref-section { max-width: 42rem; }
.ref-section h2 { margin: 2.4rem 0 .7rem; font-size: 1.7rem; color: var(--gold-soft); }
.ref-section p { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.9; color: #ddd5c3; }
.ref-lead p { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.5; color: var(--parchment); }
.cta-inline { margin-top: 2.6rem; }
.related { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.related h2 { margin-bottom: 1.1rem; font-size: 1.5rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line-strong); font-size: .9rem; color: var(--muted); transition: all var(--t-fast); }
.related a:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(217, 180, 108, .08); }
.soon-box { padding-bottom: 3rem; }
.soon-box p:not(.eyebrow) { font-size: 1.1rem; color: var(--muted); }

/* steps */
.steps { margin: 0 0 1.6rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.steps summary { padding: .9rem 1.2rem; cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.steps ol { margin: 0; padding: 0 1.4rem 1.2rem 2.4rem; font-size: .92rem; line-height: 1.7; color: #d4cdbc; }
.steps li { margin-bottom: .45rem; }

/* legal pages, footer */
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .85rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold-soft); }
.consent-line { margin: .8rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.consent-line a { color: var(--gold-soft); text-decoration: underline; }
.legal { max-width: 46rem; padding-bottom: 3rem; }
.legal h2 { margin: 2.2rem 0 .6rem; font-size: 1.6rem; color: var(--gold-soft); }
.legal p, .legal li { font-size: 1rem; line-height: 1.8; color: #ddd5c3; }
.legal ul { padding-left: 1.2rem; }
.draft-banner { margin: 0 0 1.6rem; padding: .8rem 1rem; border: 1px solid var(--ember); color: var(--ember); font-size: .9rem; }

/* beta note */
.beta-note { margin: .6rem 0 1rem; font-size: .85rem; color: var(--muted); }
.beta-note .chip { margin-right: .5rem; }

/* natal chart */
.natal-body { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 1.6rem; }
.natal-wheel { width: 100%; height: auto; max-width: 440px; }
.w-ring { fill: rgba(13, 11, 26, .55); stroke: var(--gold); stroke-width: 1; }
.w-ring.faint { fill: none; stroke: var(--line); }
.w-line, .w-cusp, .w-tick { stroke: var(--line-strong); stroke-width: 1; }
.w-cusp { stroke: rgba(176, 169, 196, .35); }
.w-cusp.strong { stroke: var(--gold); stroke-width: 1.4; }
.w-sign { fill: var(--gold-soft); font-size: 17px; }
.w-planet { fill: var(--parchment); font-size: 19px; }
.w-house { fill: var(--muted); font-size: 10px; }
.w-asc { fill: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.natal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.natal-table th, .natal-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.natal-table thead th { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.natal-table tbody th { color: var(--gold-soft); white-space: nowrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; }
.chips .chip a { color: inherit; }
/* quiz */
.quiz { display: grid; gap: 1.6rem; }
.quiz-title { margin: 0 0 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.quiz-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-q legend { margin-bottom: .8rem; padding: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-soft); }
.quiz-opt { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .5rem; padding: .75rem 1rem; border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.quiz-opt:hover { border-color: var(--line-strong); }
.quiz-opt:has(input:checked) { border-color: var(--gold); background: rgba(217, 180, 108, .1); }
.quiz-opt input { margin-top: .3rem; accent-color: var(--gold); }
.bars { display: grid; gap: .8rem; margin-bottom: 2rem; }
.bar-row { display: grid; grid-template-columns: 6rem 1fr 2rem; align-items: center; gap: 1rem; font-size: .9rem; }
.bar-track { height: 10px; background: rgba(255, 255, 255, .08); }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); animation: grow 1.1s var(--ease) both; transform-origin: left; }

@media (max-width: 700px) {
  .page-title { flex-direction: column; align-items: flex-start; }
  .bio-row { grid-template-columns: 1fr 4rem; gap: .5rem 1rem; }
  .bio-name { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
  .natal-body { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 5rem 1fr 1.6rem; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-card { transition: none; }
  .ritual-sigil::before, .ritual-sigil::after, .ritual-sigil svg, .fade-in, .hex-line, .bio-fill { animation: none; opacity: 1; }
}

/* paywall, cabinet */
.result-text.is-locked { position: relative; }
.result-text.is-locked > :last-child { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.paywall { margin: 1.4rem 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--gold); background: rgba(255, 255, 255, .03); }
.paywall-title { margin: 0 0 .6rem; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--gold-soft); }
.paywall label { display: block; margin: 1rem 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.paywall input { width: 100%; }
.paywall .btn { width: 100%; margin-top: .4rem; }
.paywall .text-button { display: block; margin: 1rem auto 0; }
.cabinet h2 { margin: 2rem 0 .8rem; font-size: 1.6rem; color: var(--gold-soft); }
.cabinet p, .cabinet li { line-height: 1.7; color: #ddd5c3; }
.cabinet .history { padding-left: 1.2rem; }
.cabinet form + form { margin-top: 1.5rem; }

.sign-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.2rem; margin-top: 1.2rem; }
.sign-links h2 { flex-basis: 100%; margin: 0 0 .3rem; font-size: 1.4rem; color: var(--gold-soft); }
.sign-sky h2 { color: var(--gold-soft); }
.sign-sky li { line-height: 1.7; color: #ddd5c3; }

.result-text ul, .result-text ol, .ref-section ul, .ref-section ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.result-text li, .ref-section li { margin-bottom: .45rem; font-size: 1.05rem; line-height: 1.75; }
.result-text strong, .ref-section strong { color: var(--gold-soft); font-weight: 600; }

.header-account { display: flex; align-items: center; gap: .9rem; margin-left: 1.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.account-link { color: var(--muted); transition: color .2s; }
.account-link:hover, .account-link:focus-visible { color: var(--gold-soft); }
.account-signup { padding: .5rem .9rem; border: 1px solid var(--gold); color: var(--gold-soft); }
@media (max-width: 760px) { .header-account { margin-left: .6rem; gap: .5rem; letter-spacing: .08em; } .account-signup { padding: .35rem .55rem; } }
@media (max-width: 520px) { .header-account .account-signup { display: none; } }

/* quiz options: override the generic .altar input/label look (full-width inputs, uppercase gold labels) */
.altar .quiz-opt { display: flex; align-items: center; gap: .9rem; margin: 0 0 .5rem; padding: .8rem 1rem; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--parchment); line-height: 1.45; min-height: 0; }
.altar .quiz-opt span { flex: 1; }
.altar .quiz-opt input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0; padding: 0; border: 1.5px solid var(--gold-deep); border-radius: 50%; background: transparent; display: grid; place-content: center; }
.altar .quiz-opt input[type="radio"]::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform var(--t-fast); }
.altar .quiz-opt input[type="radio"]:checked { border-color: var(--gold); }
.altar .quiz-opt input[type="radio"]:checked::before { transform: scale(1); }
.altar .quiz-opt input[type="radio"]:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.altar .quiz-q legend { font-size: 1.3rem; line-height: 1.35; }

/* legal pages: same column as the page head, text no wider than a comfortable line */
.legal { width: min(980px, calc(100% - 2.5rem)); max-width: none; margin-inline: auto; }
.legal > * { max-width: 46rem; }
.legal .draft-note, .legal .notice { max-width: 46rem; }
/* error pages */
.error-page { width: min(980px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--gold); opacity: .85; }
.error-page p { max-width: 34rem; }

.paywall-inside { margin: 1rem 0 .4rem; }
.paywall-inside p { margin: 0 0 .4rem; font-size: .95rem; color: var(--gold-soft); }
.paywall-inside ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
.paywall-inside li { margin-bottom: .25rem; color: #ddd5c3; line-height: 1.5; }
.paywall-hint { margin-top: .8rem; text-align: center; }
.beta-note-line .chip, .nav-beta, .tile-beta { margin-left: .5rem; padding: .08rem .45rem; border: 1px solid var(--gold-deep); color: var(--gold); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }

/* matrix: no filled leftover cells; paywall e-mail field in the site's dark style */
.matrix-grid { gap: 0; background: transparent; }
.matrix-cell { box-shadow: 0 0 0 1px var(--line); }
.paywall input[type="email"] { display: block; width: 100%; min-height: 50px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 2px; background: rgba(255, 255, 255, .04); color: var(--parchment); font-size: 1rem; }
.paywall input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 108, .2); }
.paywall input::placeholder { color: var(--muted); }
