/* INVUNA: the look of the experience. An astronomical instrument and a star atlas: hairlines, ticks, typeset rows, one accent.
   Tokens first; the 3D labels are refined in scene.css, the daily page in today.css. */
:root {
  --night: #0e0513; --deep: #150a1c; --ink: #f6efe9; --ink-2: #dccfe3; --dim: #b3a0be;
  --line: rgba(246, 239, 233, .16); --line-2: rgba(246, 239, 233, .34);
  --gold: #f0c48a; --gold-2: #ffe2bb; --rose: #e58bc0; --on-gold: #1b0a22;
  /* lens colours: for the lines and lights of the map only, never for interface text */
  --love: #ef9a9a; --money: #93d6a4; --roots: #7fc9c1; --time: #a3bdeb; --purpose: #f1e2bd; --chakra: #ffa867; --sky: #cfdcf5;
  --serif: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Switzer", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --panel: rgba(21, 10, 28, .93); --accent: var(--gold); --plate: 448px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Larger type everywhere: every size in rem grows with this, for readers whose eyes are tired (owner, 30.11) */
html { background: var(--night); -webkit-text-size-adjust: 100%; font-size: 112.5%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 1rem/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased;
       background: radial-gradient(1100px 760px at 50% 38%, #2e1038 0%, transparent 72%), radial-gradient(900px 600px at 6% 2%, rgba(120, 44, 110, .26) 0%, transparent 65%), linear-gradient(160deg, #12061a, #1c0b26 55%, #10051a); background-attachment: fixed; }
::selection { background: var(--gold); color: var(--on-gold); }
button, input { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#sky, #gl { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#gl, #labels, #space { display: none; }
.r3d #gl { display: block; } .r3d #sky, .r3d svg#chart { display: none; }
.r3d #labels { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; --u: 100; }
.r3d #space { display: block; width: 100%; aspect-ratio: 1; max-height: calc(100vh - 190px); touch-action: pan-y; cursor: grab; }
.r3d #space:active { cursor: grabbing; }
.wrap { position: relative; max-width: 1360px; margin: 0 auto; padding: 20px 24px 48px; }
header, .rail, .card, .gate form { position: relative; z-index: 3; }

/* header: a wordmark and a row of words */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.mark { font: 500 1.2rem/1 var(--serif); letter-spacing: .4em; color: var(--ink); }
.hd { display: flex; align-items: center; gap: 26px; }
/* while the map is being born: the skip button alone, centred */
.chartbox .ctl.playing { justify-content: center; } .chartbox .ctl.playing > :not(#skip) { display: none !important; } .chartbox .ctl #skip { margin-top: 0; }
.hd .ghostbtn { border: 0; padding: 10px 0; min-height: 44px; color: var(--ink-2); font: 500 .94rem var(--sans); }
.hd .ghostbtn:hover { color: var(--ink); border: 0; }
#snd { display: inline-flex; align-items: center; gap: 8px; } #snd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
#snd .on, #snd[aria-pressed="true"] .mute { display: none; } #snd[aria-pressed="true"] .on { display: inline; } #snd[aria-pressed="false"] { color: var(--dim); }
/* toggles are words; the active one is underlined */
.seg { display: inline-flex; gap: 18px; }
.seg button { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--dim); font: 500 .94rem var(--sans); cursor: pointer; border-radius: 0;
              background: linear-gradient(var(--gold), var(--gold)) left calc(100% - 9px) / 0 1px no-repeat; transition: color .2s, background-size .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background-size: 100% 1px; }

/* buttons */
.cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; background: var(--gold); color: var(--on-gold); border: 0; border-radius: 0; padding: 16px 28px; min-height: 52px;
       font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; transition: background-color .2s; }
.cta::after { content: ""; width: 20px; height: 10px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s; }
.cta:hover { background: var(--gold-2); } .cta:hover::after { transform: translateX(4px); } .cta:active { background: #d9ab70; }
.cta.small { padding: 12px 20px; min-height: 44px; font-size: .94rem; gap: 10px; } .cta.small::after { width: 16px; height: 8px; }
.ghostbtn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 0; padding: 11px 18px; min-height: 44px;
            font: 500 .94rem/1 var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.ghostbtn:hover { border-color: var(--ink); background: rgba(246, 239, 233, .05); }
.back::before, #codexBack::before, .prev::before { content: ""; width: 16px; height: 8px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transform: scaleX(-1); }
.linkbtn { background: none; border: 0; border-radius: 0; padding: 12px 0 3px; color: var(--gold-2); font: 500 .94rem var(--sans); cursor: pointer; margin-top: 10px; transition: color .2s; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--ink); }
.err { color: var(--gold-2); min-height: 1.5em; margin-top: 12px; font-size: .94rem; } .err:not(:empty)::before { content: ""; display: inline-block; width: 1px; height: .9em; background: var(--rose); margin-right: 10px; vertical-align: -1px; }

/* gate: the date is set on hairlines, like an instrument dial */
/* the scrim is a background of the section itself: anything wider than the page would make phones zoom out */
.gate { min-height: calc(100vh - 110px); display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse 58% 56% at 50% 50%, rgba(14, 5, 19, .84), rgba(14, 5, 19, .6) 55%, transparent 100%); }
.gate form { padding: 40px 0; }
.gate h1 { font: 400 clamp(2.5rem, 6.2vw, 4.75rem)/1.03 var(--serif); letter-spacing: -.012em; margin: 0 auto 18px; text-wrap: balance; max-width: 13em; }
.gate p { color: var(--ink-2); max-width: 33em; margin: 0 auto 26px; font-size: 1.08rem; text-wrap: pretty; }
.mode { margin-bottom: 22px; gap: 28px; } .mode button { font-size: 1rem; }
.who { display: grid; justify-items: center; gap: 4px; margin-bottom: 14px; }
.wholabel { font: italic 500 1.2rem var(--serif); color: var(--ink-2); margin-bottom: 4px; }
.date { display: inline-flex; gap: 18px; align-items: flex-start; }
.date label { display: grid; gap: 8px; font: 400 .82rem var(--sans); color: var(--dim); } .date label span { order: 2; }
.date input, .btime input { background: linear-gradient(var(--line-2), var(--line-2)) left bottom / 1px 8px no-repeat, linear-gradient(var(--line-2), var(--line-2)) right bottom / 1px 8px no-repeat; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
              color: var(--ink); outline: none; transition: border-color .2s; }
.date input { width: 1.9em; font: 400 clamp(2.4rem, 10vw, 3.1rem)/1 var(--serif); font-variant-numeric: lining-nums; text-align: center; padding: 4px 2px 10px; }
.date input.y { width: 3em; }
.date input::placeholder, .btime input::placeholder { color: rgba(246, 239, 233, .22); }
.date input:focus, .btime input:focus { border-bottom-color: var(--gold); background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)); }
.date input:focus-visible, .btime input:focus-visible, #gin:focus-visible, #circleName:focus-visible { outline: none; }
.date.small { gap: 14px; } .date.small input { font-size: 2rem; padding: 2px 2px 8px; }
.gate small { display: block; margin-top: 26px; color: var(--ink-2); font-size: .84rem; text-shadow: 0 0 14px var(--night), 0 0 4px var(--night); }
.btime { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; align-items: start; margin: 12px auto 14px; max-width: 440px; text-align: left; }
.btime label { display: grid; gap: 8px; font: 400 .82rem var(--sans); color: var(--dim); position: relative; } .btime label > span:first-child { order: 2; }
.btime .hm { display: inline-flex; align-items: baseline; gap: 6px; color: var(--dim); font: 500 1.7rem var(--serif); }
.btime input { font: 500 1.7rem/1 var(--serif); font-variant-numeric: lining-nums; padding: 4px 4px 8px; min-width: 0; }
.btime .hm input { width: 1.9em; text-align: center; }
.btime .place { width: 100%; font: 400 1.06rem/1.6 var(--sans); padding: 6px 2px 8px; min-height: 44px; }
.plist { position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 30; background: var(--deep); border: 1px solid var(--line-2); border-radius: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.plist button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 .96rem var(--sans); padding: 11px 14px; min-height: 44px; cursor: pointer; }
.plist button:last-child { border-bottom: 0; } .plist button small { display: inline; color: var(--dim); margin: 0; font-size: .82rem; text-align: right; } .plist button:hover, .plist button:focus { background: rgba(240, 196, 138, .12); outline: none; }
.plist .none { padding: 12px 14px; color: var(--ink-2); font: 400 .9rem var(--sans); }

/* stage: the lenses, the map, and the reading plate */
.stage { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "chart" "card"; animation: fade .8s ease both; }
@keyframes fade { from { opacity: 0; } } /* opacity only: a transform here would trap the fixed reading plate inside the stage */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rail { grid-area: rail; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -24px; padding: 0 24px; } .rail::-webkit-scrollbar { display: none; }
.rail button { flex: none; display: flex; align-items: baseline; gap: 9px; background: none; border: 0; border-radius: 0; color: var(--dim); padding: 13px 0; min-height: 44px; font: 500 1rem var(--sans); cursor: pointer; position: relative; transition: color .2s; }
.rail button .ix { font: 400 .75rem var(--mono); color: inherit; opacity: .8; font-variant-numeric: tabular-nums; }
.rail button::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width .3s; }
.rail button:hover { color: var(--ink); }
.rail button[aria-pressed="true"] { color: var(--ink); } .rail button[aria-pressed="true"]::after { width: 100%; } .rail button[aria-pressed="true"] .ix { color: var(--gold); opacity: 1; }
.rail button.invite .ix { color: var(--rose); opacity: 1; }
.chartbox { grid-area: chart; min-width: 0; }
svg#chart { display: block; width: 100%; height: auto; max-height: calc(100vh - 190px); margin: 0 auto; overflow: hidden; touch-action: manipulation; }
svg#chart.zoomed { -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); }
.caption { min-height: 3.2em; text-align: center; font: 500 1.3rem/1.35 var(--serif); color: var(--gold-2); padding: 6px 8px 0; font-variant-numeric: lining-nums; text-shadow: 0 0 18px var(--night), 0 0 6px var(--night); }
.caption.quiet { color: var(--ink-2); font: 400 .95rem/1.5 var(--sans); } .caption .linkbtn { margin: 0 0 0 8px; padding-top: 0; }
/* the arrow of a calculation: the character stays in the text, the drawing covers it, so it looks the same in every face */
.arr { display: inline-block; width: 1.1em; height: .55em; margin: 0 .3em; vertical-align: .1em; overflow: hidden; white-space: nowrap; line-height: 0; -webkit-text-fill-color: transparent; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
/* actions under the map: a row of words */
.ctl { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.chartbox .ctl { gap: 0 26px; margin-top: 4px; } .chartbox .ctl .seg { gap: 20px; margin-right: 6px; }
.chartbox .ctl .ghostbtn { border: 0; padding: 10px 0; color: var(--ink-2); background: linear-gradient(var(--gold), var(--gold)) left calc(100% - 9px) / 0 1px no-repeat; transition: color .2s, background-size .3s; text-shadow: 0 0 14px var(--night); }
.chartbox .ctl .ghostbtn:hover { color: var(--ink); background-size: 100% 1px; }
.chartbox .ctl .ghostbtn.invite { color: var(--gold-2); } .chartbox .ctl .ghostbtn:disabled { color: var(--dim); cursor: default; background-size: 0 1px; }
.seen { text-align: center; color: var(--dim); font: 400 .78rem var(--mono); margin-top: 8px; min-height: 1.4em; text-shadow: 0 0 12px var(--night); } .seen.done { color: var(--gold-2); }
.card { grid-area: card; background: var(--panel); border-top: 1px solid var(--line-2); margin: 10px -24px 0; padding: 30px 24px 44px; min-width: 0; scrollbar-width: thin; scrollbar-color: rgba(246, 239, 233, .28) transparent; }
@media (min-width: 1080px) {
  .wrap:has(.stage:not([hidden])) { max-width: none; margin: 0 var(--plate) 0 0; padding: 20px 32px 40px; }
  .stage { grid-template-columns: 164px minmax(0, 1fr); grid-template-areas: "rail chart"; align-items: start; gap: 20px; }
  .rail { flex-direction: column; gap: 0; overflow: visible; position: sticky; top: 20px; padding: 26px 0 0; margin: 0; border-bottom: 0; }
  .rail button { padding: 9px 0 9px 0; transition: color .2s, padding-left .3s; }
  .rail button::after { left: 0; top: 50%; bottom: auto; width: 0; }
  .rail button[aria-pressed="true"] { padding-left: 34px; } .rail button[aria-pressed="true"]::after { width: 24px; }
  .chartbox { position: sticky; top: 8px; }
  .card { position: fixed; z-index: 4; top: 0; right: 0; bottom: 0; width: var(--plate); margin: 0; overflow-y: auto; overscroll-behavior: contain; padding: 44px 40px 56px; border-top: 0; border-left: 1px solid var(--line-2); }
}

/* the reading plate: typeset sections, rows on hairlines */
.posname { font: italic 500 1.12rem/1.3 var(--serif); color: var(--ink-2); margin-top: 18px; }
.card h2 { font: 400 clamp(2.4rem, 5vw, 2.9rem)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.card h3, #codex h3, #report h3, .sheet h3 { display: flex; align-items: center; gap: 12px; font: italic 500 1.22rem/1.25 var(--serif); color: var(--ink); margin: 34px 0 12px; }
.card h3::before, #codex h3::before, #report h3::before { content: ""; flex: none; width: 1px; height: 12px; background: var(--gold); }
.card h3::after, #codex h3::after, #report h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card h3 + .moonbox, .card h3 + .pm, .card h3 + .when, .card h3 + .big3, .card h3 + .elems, .card h3 + .btbox, #report h3 + .moonbox, #report h3 + .elems, #report h3 + .when { border-top: 0; padding-top: 0; }
.card p { margin: 0 0 12px; } .card .lead { color: var(--ink-2); font-size: 1.06rem; text-wrap: pretty; } .card .note { color: var(--dim); font-size: .875rem; line-height: 1.55; }
.orbs { display: grid; border-bottom: 1px solid var(--line); }
.orb { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 11px 0 10px; min-height: 44px; color: var(--ink); cursor: pointer; transition: background-color .2s, padding-left .25s; }
.orb:first-child { border-top: 0; } .orb:hover { background: rgba(246, 239, 233, .045); padding-left: 8px; }
.orb b { font: 400 2rem/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.orb span { font: 600 1rem var(--sans); } .orb small { color: var(--dim); font-size: .84rem; text-align: right; }
.bigline { display: flex; align-items: baseline; gap: 16px; margin: 2px 0 4px; }
.bigline b { font: 400 4.6rem/.95 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.bigline span { font: 500 1.6rem/1.15 var(--serif); }
.calc { font: 400 1rem/1.5 var(--mono); font-variant-numeric: lining-nums; color: var(--gold-2); }
.chips { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 7px; background: none; border: 0; border-bottom: 1px dotted var(--line-2); border-radius: 0; color: var(--ink); padding: 6px 0 2px; font: 500 .95rem var(--sans); cursor: pointer; transition: border-color .2s; }
button.chip:hover { border-bottom: 1px solid var(--gold); } .chip b { color: var(--gold); font: 500 1.1em/1 var(--serif); font-variant-numeric: lining-nums; } span.chip { cursor: default; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.bar b { font: 500 1.4rem var(--serif); color: var(--gold); text-align: right; font-variant-numeric: lining-nums; }
.bar .track { height: 1px; background: var(--line-2); overflow: visible; }
.bar .track i { display: block; height: 3px; margin-top: -1px; background: var(--gold); transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.rare { display: flex; align-items: flex-end; gap: 2px; height: 54px; margin: 6px 0 10px; border-bottom: 1px solid var(--line-2); }
.rare i { flex: 1; background: rgba(246, 239, 233, .2); min-height: 2px; }
.rare i.me { background: var(--gold); }
.stat { font: 500 1.22rem/1.4 var(--serif); color: var(--ink); } .stat b { color: var(--gold); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 8px 0 2px; background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 22px; background: var(--gold); box-shadow: 0 0 0 6px transparent; }
input[type="range"]::-moz-range-thumb { width: 2px; height: 22px; border: 0; border-radius: 0; background: var(--gold); } input[type="range"]::-moz-range-track { background: none; }
.when { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.when > div { padding: 14px 16px 14px 0; } .when > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.when b { display: block; font: 400 2.4rem/1.1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.when small { color: var(--dim); font-size: .84rem; display: block; }
.list { margin: 0; padding: 0; list-style: none; display: grid; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .95rem; }
.list li b { color: var(--gold); font: 500 1.15rem var(--serif); font-variant-numeric: lining-nums; text-align: right; }
.back { margin-bottom: 6px; border: 0; padding: 10px 0; color: var(--ink-2); } .back:hover { background: none; color: var(--ink); }
/* interpretation texts */
.read { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.read:first-of-type { border-top: 0; padding-top: 2px; }
.read .rn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); background: none; color: var(--gold); font: 500 1.35rem/1 var(--serif); font-variant-numeric: lining-nums; cursor: pointer; transition: background-color .2s, color .2s; }
.read button.rn:hover { background: var(--gold); color: var(--on-gold); }
.read strong { font: 500 1.25rem/1.25 var(--serif); display: block; } .read small { color: var(--dim); font-size: .84rem; display: block; margin-bottom: 5px; }
.read p { margin: 0 0 6px; color: var(--ink-2); font-size: .97rem; }
/* in light, in shadow: two columns and a hairline between them */
.pm { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pm > div { padding: 14px 16px 14px 0; } .pm > div + div { border-left: 1px solid var(--line); padding: 14px 0 14px 16px; }
.pm small { display: flex; align-items: center; gap: 8px; font: italic 500 1.08rem var(--serif); color: var(--ink); margin-bottom: 6px; } .pm small .gl { width: 17px; height: 17px; stroke-width: 1.3; color: var(--gold); }
.pm p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.ask { border-left: 1px solid var(--gold); padding: 2px 0 2px 16px; font: italic 500 1.32rem/1.38 var(--serif); color: var(--gold-2); margin-top: 18px !important; text-wrap: pretty; }
.ask small { display: block; font: 400 .84rem var(--sans); font-style: normal; color: var(--dim); margin-bottom: 4px; }
.ask.step { font: 400 1rem/1.55 var(--sans); color: var(--ink); border-left-color: var(--line-2); margin-top: 12px !important; } /* the one practical step for an arcana at this point */
.foot { position: relative; z-index: 3; margin-top: 30px; color: var(--ink-2); font-size: .84rem; text-align: center; max-width: 52em; margin-inline: auto; text-shadow: 0 0 12px var(--night); }
.foot p { margin: 0 0 8px; } .foot a { color: var(--ink-2); margin: 0 12px; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; } .foot a:hover { color: var(--gold-2); }
.melody { margin-top: 12px; }
.lnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-2); } .lnav .cta { margin: 0; }
.lnav .ghostbtn { border: 0; padding: 10px 0; color: var(--ink-2); } .lnav .ghostbtn:hover { background: none; color: var(--ink); }

/* the guide: a plate, questions in italics, answers in plain text */
.guidefab { position: fixed; left: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--deep); color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; padding: 12px 18px; min-height: 48px;
            font: 500 .95rem var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s; }
.guidefab:hover { border-color: var(--gold); }
.guidefab i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.guide { position: fixed; z-index: 6; inset: auto 0 0 0; height: min(76vh, 640px); display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 12px; background: var(--deep); border-top: 1px solid var(--line-2); border-radius: 0;
         padding: 22px 24px 14px; animation: rise .35s ease both; }
@media (min-width: 1080px) { .guidefab { left: 32px; bottom: 28px; } .guide { inset: 0 0 0 auto; width: var(--plate); height: auto; border-top: 0; border-left: 1px solid var(--line-2); padding: 44px 40px 20px; } }
.ghead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.ghead .gsub { font: 400 .875rem var(--sans); color: var(--dim); margin-top: 4px; }
.ghead h2 { font: 400 1.7rem/1.15 var(--serif); margin: 0; }
.ghead .ghostbtn { border: 0; padding: 8px 0; color: var(--ink-2); }
.glog { overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding-right: 6px; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(246, 239, 233, .28) transparent; }
.gm { font-size: .98rem; } .gm p { margin: 0 0 9px; } .gm p:last-child { margin: 0; }
.gm.bot { color: var(--ink); } .gm.me { font: italic 500 1.18rem/1.4 var(--serif); color: var(--gold-2); border-left: 1px solid var(--gold); padding-left: 14px; }
.gm .chip { padding: 0 0 1px; margin: 0 2px; font-size: .95em; } .gm .note { color: var(--gold-2); font-size: .9rem; }
.gm .dots { display: flex; gap: 6px; height: 1.4em; align-items: center; } .gm .dots i { width: 5px; height: 5px; background: var(--dim); animation: breathe 1.2s ease-in-out infinite; opacity: .35; } .gm .dots i:nth-child(2) { animation-delay: .2s; } .gm .dots i:nth-child(3) { animation-delay: .4s; }
.gsug { display: grid; border-top: 1px solid var(--line); } .gsug .chip { display: block; text-align: left; border-bottom: 1px solid var(--line); padding: 11px 0; min-height: 44px; color: var(--ink-2); font-size: .95rem; } .gsug button.chip:hover { color: var(--ink); border-bottom-color: var(--gold); }
#gform { display: flex; gap: 12px; align-items: flex-end; } #gform .cta { margin: 0; }
#gin, #circleName { flex: 1; min-width: 0; background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); font: 400 1rem var(--sans); padding: 10px 2px; min-height: 44px; transition: border-color .2s; }
#gin:focus, #circleName:focus { border-bottom-color: var(--gold); outline: none; } #gin::placeholder { color: var(--dim); }
.guide > .note { color: var(--dim); font-size: .8125rem; margin: 0; }
/* dialogs */
.modal { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px; background: rgba(6, 2, 9, .86); }
.sheet { background: var(--deep); border: 1px solid var(--line-2); border-radius: 0; padding: 30px 28px 24px; max-width: 480px; width: 100%; text-align: left; }
.sheet h2 { font: 400 1.8rem/1.15 var(--serif); margin: 0 0 18px; }
.sheet img { display: block; width: auto; max-width: 100%; max-height: 54vh; margin: 0 auto 18px; border-radius: 0; border: 1px solid var(--line); }
.sheet .ctl { justify-content: flex-start; } .sheet .note { color: var(--dim); font-size: .84rem; margin: 16px 0 0; }
#circleName { width: 100%; font-size: 1.2rem; }
/* chakra table */
.chk { display: grid; border-bottom: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 1fr 3.6rem 3.6rem 3.6rem; align-items: center; gap: 6px; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0; min-height: 44px; color: var(--ink);
        font: 500 1.25rem var(--serif); font-variant-numeric: lining-nums; text-align: center; }
button.crow { cursor: pointer; transition: background-color .2s, padding-left .25s; } button.crow:hover { background: rgba(246, 239, 233, .045); padding-left: 6px; } .crow.on { background: rgba(246, 239, 233, .06); padding-left: 6px; }
.crow.chead { border: 0; padding: 0 0 6px; min-height: 0; font: 400 .8125rem var(--sans); color: var(--dim); grid-template-columns: 1fr 3.6rem 3.6rem 3.6rem; white-space: nowrap; }
.crow.total { border-top: 1px solid var(--line-2); color: var(--gold-2); }
.cname { display: flex; align-items: baseline; gap: 10px; text-align: left; font: 500 .97rem var(--sans); flex-wrap: wrap; row-gap: 0; } .cname small { color: var(--dim); font-weight: 400; font-size: .82rem; }
.cname i { width: 2px; height: 15px; background: var(--cc); flex: none; align-self: center; }
.cinfo { padding: 10px 0 12px 16px; border-left: 1px solid var(--gold); margin: 2px 0 10px; } .cinfo p { margin: 0 0 8px; font-size: .95rem; color: var(--ink-2); } .cinfo .note b, .cinfo p b { color: var(--ink); } .cth { margin: 2px 0 10px !important; font-size: .9rem; color: var(--dim); }
/* glyphs drawn by us (planets, signs) and the seal of each arcana */
.gl { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.24em; flex: none; }
.sigil { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: .035; stroke-linejoin: round; }
.bsig { width: 62px; height: 62px; margin-left: auto; color: var(--gold); opacity: .9; align-self: center; }
.rn.sig { display: grid; place-items: center; padding: 8px; cursor: default; }
/* the birth sky */
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .big3 div { padding: 14px 6px; text-align: center; } .big3 div + div { border-left: 1px solid var(--line); }
.big3 .gl { width: 26px; height: 26px; color: var(--gold); stroke-width: 1.3; } .big3 strong { display: block; font: 500 1.2rem var(--serif); } .big3 small { color: var(--dim); font-size: .84rem; display: block; }
.btbox { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 8px; } .btbox p { font-size: .95rem; color: var(--ink-2); margin: 0 0 12px; } .btbox .btime { margin: 0 0 12px; max-width: none; } .btbox .err { margin: 0 0 8px; }
.hl small { display: block; color: var(--dim); font-size: .84rem; font-weight: 400; } .hl b .gl { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; color: var(--ink-2); } .bsum { margin-bottom: 14px !important; font: 400 .78rem/1.6 var(--mono) !important; }
.bsum .linkbtn { font: 500 .875rem var(--sans); margin: 0 0 0 6px !important; padding-top: 0; }
.con3 { position: absolute; left: 0; top: 0; font: italic 500 .82rem var(--serif); letter-spacing: .06em; color: #e3c9f2; white-space: nowrap; opacity: 0; transition: opacity 1.2s; pointer-events: none; text-shadow: 0 0 10px #2a0e36; } .con3.on { opacity: .85; }
.ang3 { position: absolute; left: 0; top: 0; font: 700 .62rem var(--sans); letter-spacing: .12em; color: var(--gold-2); opacity: 0; transition: opacity .8s; pointer-events: none; } .ang3.on { opacity: 1; } .ang3[data-ang="mc"] { color: var(--rose); }
.moonbox { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.moonbox strong { font: 500 1.4rem/1.15 var(--serif); display: block; } .moonbox small { color: var(--dim); font: 400 .78rem var(--mono); display: block; margin: 4px 0 6px; } .moonbox p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.srows { display: grid; border-bottom: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 1.15fr 1.2fr 3.4em 1.6em; align-items: center; gap: 6px; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0; min-height: 44px; color: var(--ink); font: 500 .95rem var(--sans); text-align: left; cursor: pointer; transition: background-color .2s, padding-left .25s; }
.srow:first-child { border-top: 0; } .srow:hover { background: rgba(246, 239, 233, .045); padding-left: 6px; } .srow.on { background: rgba(246, 239, 233, .06); padding-left: 6px; }
.srow .sb { display: flex; align-items: center; gap: 10px; color: var(--ink-2); } .srow.on .sb { color: var(--gold); } .srow .sb b { color: var(--ink); font-weight: 600; } .srow .ss { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.srow .sd { color: var(--ink-2); font: 400 .82rem var(--mono); font-variant-numeric: tabular-nums; text-align: right; } .srow .sd i { font-style: normal; color: var(--rose); margin-left: 4px; } .srow .se { display: flex; gap: 3px; justify-content: flex-end; } .srow .se i { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }
.elems { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .elems > div { padding: 12px 6px; text-align: center; } .elems > div + div { border-left: 1px solid var(--line); }
.elems b { display: block; font: 400 1.8rem/1.1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; } .elems small { color: var(--dim); font-size: .84rem; }

/* the codex: an index of the 22 arcana, ruled like an atlas page */
#codex { position: fixed; inset: 0; z-index: 9; overflow-y: auto; background: var(--night); padding: 0 24px 72px; scrollbar-width: thin; scrollbar-color: rgba(246, 239, 233, .28) transparent; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ctile { display: grid; justify-items: start; gap: 2px; background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 18px 16px; color: var(--ink); cursor: pointer; text-align: left; transition: background-color .25s; font-family: var(--sans); position: relative; }
.ctile:hover { background: rgba(246, 239, 233, .05); } .ctile:hover .csig { transform: rotate(30deg); }
.csig { width: 76px; height: 76px; color: var(--gold); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); justify-self: center; margin: 4px 0 10px; }
.ctile b { font: 400 .78rem var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; position: absolute; left: 12px; top: 10px; } .ctile span { font: 500 1.12rem/1.2 var(--serif); } .ctile small { color: var(--dim); font-size: .82rem; min-height: 1.2em; } .ctile.mine small { color: var(--gold); } .ctile.mine b { color: var(--gold); }
.chead2 { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center; margin-top: 16px; } .chead2 .csig { width: 150px; height: 150px; margin: 0; animation: spin 90s linear infinite; }
@media (max-width: 600px) { .chead2 { grid-template-columns: 1fr; justify-items: start; gap: 12px; } .chead2 .csig { width: 110px; height: 110px; } }
#codex h1, #report h1 { font: 400 clamp(2.4rem, 6vw, 3.8rem)/1.04 var(--serif); letter-spacing: -.012em; margin: 10px 0 12px; text-wrap: balance; } #codex .sub { color: var(--ink-2); margin: 0; max-width: 44em; font-size: 1.05rem; }
#codex .ctext p { margin: 0; color: var(--ink-2); }
.ctexts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; margin-top: 10px; }
.circle { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 18px; } .circle:empty { display: none; } .circle > span { display: inline-flex; align-items: baseline; }
.circle .chip small, .pick .chip small { color: var(--dim); font: 400 .75rem var(--mono); }
.circle .x { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 8px 4px 8px 8px; font: 400 1rem/1 var(--sans); } .circle .x:hover { color: var(--gold-2); }
.pick { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
/* phones: the plate sits below the map, so a tapped point first shows as a bar at the bottom */
.peek { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 16px; background: var(--deep); border: 0; border-top: 1px solid var(--gold); border-radius: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); color: var(--ink);
        text-align: left; font-family: var(--sans); cursor: pointer; animation: rise .3s ease both; }
.peek b { font: 400 2.2rem/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; } .peek strong { display: block; font: 500 1.15rem/1.2 var(--serif); } .peek small { color: var(--dim); font-size: .84rem; } .peek em { margin-left: auto; font-style: normal; color: var(--gold-2); font-weight: 500; font-size: .9rem; white-space: nowrap; }
@media (min-width: 1080px) { .peek { display: none !important; } }
@media (max-width: 1079px) { .guidefab { padding: 0; width: 48px; justify-content: center; left: auto; right: 16px; } .guidefab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* on a phone the guide is a small mark in the corner: a labelled plate would sit on top of the text being read */
  /* touch: standalone references and links get a full-height target */
  .chips button.chip, .circle .chip, .pick .chip { padding: 12px 0 9px; } .linkbtn { padding: 14px 0 8px; } .circle .x { padding: 14px 6px 14px 10px; } .card .back { min-height: 48px; } }

/* presentation sections under the gate: set on the dark, ruled like a printed page */
#landing { position: relative; z-index: 3; }
#landing::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -200px; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(transparent, rgba(14, 5, 19, .93) 16vh, rgba(14, 5, 19, .975) 40vh); pointer-events: none; }
.ls { min-height: 100vh; display: grid; align-content: center; gap: 30px; padding: 84px 0; max-width: 1120px; margin: 0 auto; }
.ls h2 { font: 400 clamp(2.3rem, 5.4vw, 4rem)/1.04 var(--serif); letter-spacing: -.012em; margin: 0; text-wrap: balance; max-width: 16em; }
.lsub { color: var(--ink-2); max-width: 40em; margin: 0; font-size: 1.1rem; text-wrap: pretty; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px 0; }
.tile { border-left: 1px solid var(--line); padding: 4px 28px 6px 24px; position: relative; }
.tile::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 22px; background: var(--gold); }
.tile b .gl { width: .9em; height: .9em; stroke-width: 1.1; vertical-align: -.1em; } .tile b { display: block; font: 400 3.2rem/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.tile h3 { font: 600 1.06rem var(--sans); margin: 16px 0 6px; } .tile p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.eqs { display: grid; border-top: 1px solid var(--line-2); }
.eq { display: grid; grid-template-columns: 11em 1fr; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.eq small { font: 400 .95rem var(--sans); color: var(--dim); }
.eq span { font: 400 clamp(1.5rem, 4.2vw, 2.5rem)/1.15 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.nots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px 0; }
.nots > div { border-left: 1px solid var(--line); padding: 2px 28px 4px 24px; }
.nots h3 { font: 400 1.8rem/1.15 var(--serif); margin: 0 0 10px; color: var(--ink); } .nots p { margin: 0; color: var(--ink-2); }
.faq { display: grid; max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 500 1.1rem/1.4 var(--sans); padding: 18px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .2s; } .faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-2); }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat; transition: transform .25s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }
@media (max-width: 600px) {
  .wrap { padding: 12px 20px 40px; } .rail { margin: 0 -20px; padding-left: 20px; padding-right: 20px; } .card { margin: 10px -20px 0; padding: 28px 20px 110px; }
  .mark { font-size: 1rem; letter-spacing: .3em; } .hd { gap: 16px; } .hd .seg { gap: 12px; } .hd .ghostbtn, .hd .seg button { font-size: .9rem; } #snd span { display: none; }
  #replay { display: none; } .eq { grid-template-columns: 1fr; gap: 2px; } .ls { padding: 60px 0; min-height: 0; } .tile, .nots > div { padding-left: 18px; }
  .date { gap: 12px; } .btime { grid-template-columns: 1fr; } .chartbox .ctl { gap: 0 20px; } .orb small { display: none; } .sheet { padding: 24px 20px 20px; }
}
@media (max-width: 380px) { .pm, .when { grid-template-columns: 1fr; } .pm > div + div, .when > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* full report */
#report { position: fixed; inset: 0; z-index: 9; overflow-y: auto; background: var(--night); padding: 0 24px 72px; scrollbar-width: thin; scrollbar-color: rgba(246, 239, 233, .28) transparent; }
.rwrap { max-width: 820px; margin: 0 auto; }
.rtools { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 18px; background: var(--night); border-bottom: 1px solid var(--line); }
.rtools .cta { margin: 0; } .rtools .ctl { gap: 6px 22px; } .rtools .ghostbtn { border: 0; padding: 10px 0; color: var(--ink-2); } .rtools .ghostbtn:hover { background: none; color: var(--ink); }
#report .sub { color: var(--ink-2); margin: 0; }
#report .cover { display: block; max-width: min(100%, 420px); margin: 26px auto 0; border-radius: 0; border: 1px solid var(--line); }
#report section { margin-top: 40px; border-top: 1px solid var(--line-2); padding-top: 26px; }
#report h2 { font: 400 2.2rem/1.1 var(--serif); color: var(--ink); margin: 0 0 8px; }
#report .lead { color: var(--ink-2); margin: 0 0 12px; } #report .note { color: var(--dim); font-size: .875rem; }
.ri { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.ri > b { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 1.55rem/1 var(--serif); font-variant-numeric: lining-nums; }
.ri.now > b { background: var(--gold); color: var(--on-gold); }
.ri strong { font: 500 1.3rem/1.25 var(--serif); display: block; } .ri small { color: var(--dim); font-size: .84rem; display: block; margin-bottom: 4px; } .ri p { margin: 0; color: var(--ink-2); }
@media print {
  html, body { background: #fff !important; } body > *:not(#report) { display: none !important; }
  #report { position: static; overflow: visible; background: #fff; color: #1d1322; padding: 0; } .rtools { display: none; }
  #report h1, #report h2, #report h3, #report strong { color: #1d1322; } #report section { border-color: #bbb; } #report .cover { max-height: 150mm; border: 0; }
  #report h3::before { background: #8a6a2e; } #report h3::after { background: #ccc; }
  #report p, #report small, #report .lead, #report .note, #report .sub, .ri p, .pm p, .crow, #report li, #report .srow, #report .srow span { color: #33273a !important; } .ri, .pm, .pm > div + div, .crow, .list li, .srow, .moonbox, .elems, .elems > div + div, .big3, .big3 div + div, .when, .orb, .orbs, .chk, .srows { border-color: #d6d0d8 !important; }
  .ri > b { border-color: #8a6a2e; color: #6b4a12; } .ri.now > b { background: #efe2c2; } #report .gl, #report .bigline b, #report .orb b, #report .elems b, #report .list li b, #report .stat b { color: #6b4a12 !important; }
  #report .ask { color: #4a3410; border-color: #8a6a2e; } #report .crow.total { color: #6b4a12 !important; } #report .cname i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #report section, .ri, .pm, .crow { break-inside: avoid; }
}
/* flat chart (shown when 3D is not available) */
.ln { fill: none; stroke: rgba(246, 239, 233, .26); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease, opacity .4s; }
.ln.on { stroke-dashoffset: 0; } .ln.main { stroke: rgba(246, 239, 233, .5); stroke-width: 1.5; } .ln.ringline { stroke: rgba(246, 239, 233, .16); } .ln.lm { stroke: rgba(240, 196, 138, .3); }
#ticks { opacity: 0; transition: opacity 1s; } #ticks.on { opacity: 1; }
.tick { fill: rgba(246, 239, 233, .34); } .tick.anchor { fill: var(--ink-2); }
.agelabel { fill: var(--dim); font: 400 11px var(--mono); text-anchor: middle; dominant-baseline: central; }
.pulse { fill: var(--gold-2); opacity: 0; transition: opacity 1.5s; } .live .pulse { opacity: .75; }
svg .node { cursor: pointer; outline: none; opacity: 0; transition: opacity .45s; }
svg .node.on { opacity: 1; }
svg .node .in { transform-box: fill-box; transform-origin: center; transform: scale(.25); transition: transform .65s cubic-bezier(.2, 1.5, .35, 1); }
svg .node.on .in { transform: scale(1); } svg .node.on:hover .in, svg .node.on:focus-visible .in { transform: scale(1.12); }
svg .node .halo { fill: url(#halo); opacity: 0; transition: opacity .4s; }
svg .node.main .halo, svg .node.core .halo { opacity: .55; animation: breathe 5s ease-in-out infinite; animation-delay: var(--bd, 0s); }
@keyframes breathe { 50% { opacity: .95; } }
svg .node .body { fill: var(--deep); stroke: rgba(246, 239, 233, .5); stroke-width: 1.2; transition: stroke .2s; }
svg .node text { fill: var(--ink); font: 500 15px var(--serif); font-variant-numeric: lining-nums; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
svg .node.main .body { fill: url(#goldfill); stroke: none; } svg .node.main text { fill: var(--on-gold); font-size: 23px; }
svg .node.core .body { fill: #f6efe9; stroke: none; } svg .node.core text { fill: var(--on-gold); font-size: 29px; }
svg .node.c2 .body, svg .node.c3 .body { stroke: var(--ink); } svg .node.c2 text { font-size: 19px; }
svg .node.corner .body { stroke: var(--roots); } svg .node.corner text { fill: var(--roots); font-size: 20px; }
svg .node.love .body { stroke: var(--love); } svg .node.money .body { stroke: var(--money); }
svg.focus .node.on:not(.hot):not(.sel):not(.src) { opacity: .16; } svg.focus .ln { opacity: .45; }
svg .node.hot .halo, svg .node.src .halo, svg .node.sel .halo { opacity: 1; }
svg .node.src .body { stroke: var(--gold); stroke-width: 2.4; }
svg .node.sel .body { stroke: #fff; stroke-width: 2.6; }
.selring { fill: none; stroke: var(--gold-2); stroke-width: 1.2; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.beam { fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 9; animation: flow .9s linear infinite; opacity: .95; pointer-events: none; }
@keyframes flow { to { stroke-dashoffset: -22; } }
#ghost { fill: var(--gold-2); font: 500 120px var(--serif); font-variant-numeric: lining-nums; text-anchor: middle; dominant-baseline: central; opacity: 0; pointer-events: none;
         transform-box: fill-box; transform-origin: center; }
#marker { opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); } #marker.on { opacity: 1; }
#marker circle { fill: var(--night); stroke: var(--time); stroke-width: 2; }
#marker text { fill: var(--time); font: 500 12px var(--mono); text-anchor: middle; dominant-baseline: central; }

/* 3D chart: numbers are HTML discs placed over the WebGL scene every frame */
.n3 { position: absolute; left: 0; top: 0; width: calc(var(--d) * var(--u) * 1px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: none;
      --o: 0; --e: 1; opacity: calc(var(--o) * var(--e)); transition: opacity .45s; }
.n3.on { --o: 1; pointer-events: auto; }
.n3 span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(40, 15, 47, .88); border: 1.4px solid #885f94; color: var(--ink);
           font: 600 max(13px, calc(var(--d) * var(--u) * .66px))/1 var(--serif); font-variant-numeric: lining-nums; transform: scale(.2); transition: transform .65s cubic-bezier(.2, 1.5, .35, 1), border-color .2s, box-shadow .3s; }
.n3.on span { transform: scale(1); } .n3.on:hover span, .n3.on:focus-visible span { transform: scale(1.14); }
.n3.main span { background: radial-gradient(circle at 35% 30%, #f8e3ad, #d2a352); border: 0; color: #1b1407; font-size: max(15px, calc(var(--d) * var(--u) * .52px)); }
.n3.core span { background: radial-gradient(circle at 35% 30%, #fffaf0, #e7dcc3); border: 0; color: #381542; font-size: calc(var(--d) * var(--u) * .5px); }
.n3.c2 span, .n3.c3 span { border-color: var(--ink); }
.n3.corner span { border-color: var(--roots); color: var(--roots); font-size: max(13px, calc(var(--d) * var(--u) * .56px)); }
.n3.love span { border-color: var(--love); } .n3.money span { border-color: var(--money); }
.focus .n3.on:not(.hot):not(.sel):not(.src) { --o: .16; }
.n3.src span { box-shadow: 0 0 0 2px var(--gold); } .n3.sel span { box-shadow: 0 0 0 2.5px #fff, 0 0 26px rgba(255, 255, 255, .55); }
.n3.summit span { border-color: var(--purpose); color: var(--purpose); font-size: calc(var(--d) * var(--u) * .5px); }
.n3.chk3 span { border: 2px solid var(--cc); color: #fff; background: rgba(40, 15, 47, .8); font-size: calc(var(--d) * var(--u) * .46px); box-shadow: 0 0 18px color-mix(in srgb, var(--cc) 60%, transparent); }
.n3.chk3.on { pointer-events: none; }
.n3.body span { border: 1.6px solid var(--bc); color: var(--bc); background: rgba(40, 15, 47, .82); box-shadow: 0 0 16px color-mix(in srgb, var(--bc) 45%, transparent); }
.n3.body span .gl { width: 62%; height: 62%; } .n3.body.b span { border-style: dashed; }
.sg3 { position: absolute; left: 0; top: 0; width: calc(.13 * var(--u) * 1px); aspect-ratio: 1; color: #b38dbf; --o: 0; --e: 1; opacity: calc(var(--o) * var(--e)); transition: opacity .8s; pointer-events: none; } .sg3.on { --o: 1; } .sg3 .gl { width: 100%; height: 100%; }
.n3.mark span { background: var(--night); border: 2px solid var(--time); color: var(--time); font: 700 calc(var(--d) * var(--u) * .46px)/1 var(--sans); }
.age3 { position: absolute; left: 0; top: 0; color: #a886b2; font: 600 13px var(--sans); --o: 0; --e: 1; opacity: calc(var(--o) * var(--e)); transition: opacity .8s; }
.age3.on { --o: 1; }
#ghost3, .duo3 { position: absolute; left: 0; top: 0; translate: -50% -50%; color: var(--gold-2); font: 500 clamp(64px, 14vw, 132px)/1 var(--serif); font-variant-numeric: lining-nums; opacity: 0; pointer-events: none; text-shadow: 0 0 44px rgba(230, 189, 110, .7); }
.duo3 { font-size: clamp(40px, 7vw, 76px); translate: none; } .duo3.b { color: #ffc9c4; text-shadow: 0 0 44px rgba(239, 154, 154, .7); }
@media (prefers-reduced-motion: reduce) {
  .node, .node .in, .n3, .n3 span, .ln, #marker, .stage, .guide, .peek { transition: none; animation: none; }
  .halo, .selring, .beam, .bar .track i, .gm .dots i, .chead2 .csig { animation: none !important; }
  .cta::after, .orb, .srow, button.crow, .rail button, .seg button, .linkbtn { transition: none; }
}
#nowSky { cursor: pointer; transition: color .2s; } #nowSky:hover { color: var(--gold-2); }
/* a locked part says what it holds and how to open it: one quiet line, never a blurred text */
.lock { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; line-height: 1.5; }
.lock .linkbtn { margin: 0 0 0 4px; padding: 0; color: var(--gold); font-size: .9rem; }
.brief .read:first-child { border-top: 0; }
/* the account and subscription page: the codex's sheet, with two prices set like figures in a table */
#acct { position: fixed; inset: 0; z-index: 9; overflow-y: auto; background: var(--night); padding: 0 24px 72px; scrollbar-width: thin; scrollbar-color: rgba(246, 239, 233, .28) transparent; }
#acct h1 { font: 400 clamp(2.4rem, 6vw, 3.8rem)/1.04 var(--serif); letter-spacing: -.012em; margin: 10px 0 12px; text-wrap: balance; }
#acct .sub { color: var(--ink-2); margin: 0; max-width: 44em; font-size: 1.05rem; }
#acct h3 { display: flex; align-items: center; gap: 12px; font: italic 500 1.22rem/1.25 var(--serif); color: var(--ink); margin: 34px 0 12px; }
#acct h3::before { content: ""; flex: none; width: 1px; height: 12px; background: var(--gold); } #acct h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#acct .note { color: var(--dim); font-size: .9rem; margin: 10px 0 0; max-width: 44em; } #acct .anote { margin-top: 18px; color: var(--gold-2); }
.prices { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.prices > div { padding: 16px 0; } .prices > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.prices b { display: block; font: 400 2.4rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); } .prices small { color: var(--dim); font-size: .875rem; }
.aform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin-top: 22px; }
.aform label { display: grid; gap: 6px; flex: 1 1 260px; color: var(--dim); font-size: .84rem; }
.aform input[type="email"], .aform input[type="text"], .aform select { background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); font: 400 1.1rem var(--sans); padding: 10px 2px; min-height: 44px; }
.aform input[type="email"]:focus, .aform input[type="text"]:focus, .aform select:focus { border-bottom-color: var(--gold); outline: none; } .aform select option { background: var(--night); }
.aform .cta { margin: 0; } .aform label.tick { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .95rem; flex: 1 1 100%; }
.aform .tick input { accent-color: var(--gold); width: 18px; height: 18px; }
#acct .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; } #acct .pay { margin-top: 22px; }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } .prices > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } #acct .pay .cta, #acct .pay .ghostbtn, .aform .cta { width: 100%; } }
.list.fam li { align-items: center; } .list.fam li span small { display: block; color: var(--dim); font-size: .8rem; } .list.fam li b { margin-left: auto; } .list.fam .linkbtn { margin: 0; padding: 0 0 2px; }
#acct .date { margin-top: 4px; } #acct .chips { margin-top: 8px; }
/* the header on a phone holds the mark, four words, the sound and three languages: tighter, never cut */
@media (max-width: 430px) { .mark { font-size: .92rem; letter-spacing: .2em; } .hd { gap: 11px; } .hd .seg { gap: 9px; } .hd .ghostbtn, .hd .seg button { font-size: .84rem; } }
@media (max-width: 360px) { #codexBtn { display: none; } }
/* the share box: the map (4:5) or the short reading as a story (9:16) */
#shareKind { margin: -4px 0 14px; } #shareKind button { font-size: .92rem; }
.sheet img.tall { max-height: 60vh; }
/* On a phone the actions under the map sit on one line that slides sideways, so "Pe scurt" starts on the first screen */
@media (max-width: 600px) {
  .chartbox .ctl:not(.playing) { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent); }
  .chartbox .ctl:not(.playing)::-webkit-scrollbar { display: none; }
  .chartbox .ctl:not(.playing) > * { flex: none; white-space: nowrap; }
  .chartbox .ctl .ghostbtn { font-size: .92rem; }
  .seen { margin-top: 2px; }
}
#report .rlock { margin-top: 22px; } @media print { #report .rlock .linkbtn { display: none; } }
.lprices { max-width: 640px; margin: 22px 0 8px; }
/* the sample morning email, shown as it arrives: its own ground, a hairline frame */
#acct .mailbox { margin-top: 14px; border: 1px solid var(--line-2); max-height: 70vh; overflow-y: auto; background: #1a0b22; }
/* the sample morning email, shown as it arrives: its own ground, a hairline frame */
#acct .mailbox { margin-top: 14px; border: 1px solid var(--line-2); max-height: 70vh; overflow-y: auto; background: #1a0b22; }
.big3 strong a { color: inherit; text-decoration: none; transition: color .2s; } .big3 strong a:hover { color: var(--gold-2); }
#codex .ctl { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; } #codex .ctl .linkbtn { margin: 0; padding: 10px 0 4px; }

/* the engraved arcana: no frame, no radius; the image carries its own gold */
.aimg { display: block; width: 100%; height: auto; }
.ctile .aimg { width: 78%; justify-self: center; margin: 6px 0 12px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); } .ctile:hover .aimg { transform: translateY(-3px); }
.chead2 { grid-template-columns: 300px 1fr; } .chead2 .aimg.big { width: 300px; }
@media (max-width: 600px) { .chead2 { grid-template-columns: 1fr; } .chead2 .aimg.big { width: min(78vw, 300px); justify-self: center; } }
.bigline .bimg { margin-left: auto; align-self: center; width: 104px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; } .bigline .bimg .aimg { transition: transform .4s; } .bigline .bimg:hover .aimg { transform: scale(1.04); }
/* the sign-in code: six figures, large, one field (a pasted code fills it and signs in) */
#acct .codein { display: block; width: 100%; max-width: 360px; margin: 10px 0 8px; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; color: var(--gold-2); font: 500 2.6rem/1 var(--mono); letter-spacing: .5em; text-align: left; }
#acct .codein:focus { outline: none; border-bottom-width: 2px; } #acct .codein::placeholder { color: rgba(246, 239, 233, .25); }
#acct .pay .on { box-shadow: 0 0 0 1px var(--gold-2); }
#acct .ctl { justify-content: flex-start; } #acct .ctl .cta, #acct .ctl .ghostbtn { margin: 0; } #acct p.ctl { margin-top: 4px; }

/* ================= 2.12: the logo, the tab bar and the menu, one-column reading, entrances ================= */
/* The mark: the Λ and the V of INVUNA open around the centre of the map. One colour, legible at 16 px. */
.logo { width: 34px; height: 34px; flex: none; fill: var(--gold); stroke: none; }
a.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.gate #sub { font-size: 1.12rem; color: var(--ink); }

/* the guide's button on wide screens: the gold of the one accent, so nobody misses it */
@media (min-width: 1080px) { .guidefab { background: var(--gold); color: var(--on-gold); border-color: var(--gold); font-weight: 600; } .guidefab i { background: var(--on-gold); } .guidefab:hover { background: var(--gold-2); border-color: var(--gold-2); } }

/* the tab bar: phones and tablets (every one-column screen) */
:root { --tabh: 0px; }
.tabbar, #menu { display: none; }
@media (max-width: 1079px) {
  :root { --tabh: calc(60px + env(safe-area-inset-bottom)); }
  .hd, .guidefab { display: none !important; }
  header { justify-content: center; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabh); padding-bottom: env(safe-area-inset-bottom); background: #120818; border-top: 1px solid var(--line-2); }
  .tabbar button { display: grid; justify-items: center; align-content: center; gap: 5px; background: none; border: 0; border-radius: 0; color: var(--ink-2); font: 500 .76rem/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s, transform .12s; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } .tabbar .logo { stroke-width: 2.4; stroke-linecap: butt; stroke: currentColor; } .tabbar .logo .dot { fill: currentColor; }
  .tabbar button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--gold); }
  .tabbar button.tabask { color: var(--gold-2); } .tabbar button:active { transform: scale(.94); }
  .wrap { padding-bottom: calc(28px + var(--tabh)); }
  #today, #codex, #acct, #report { bottom: var(--tabh); }
  .guide, .peek { bottom: var(--tabh); } .peek { padding-bottom: 12px; }
  .modal { z-index: 12; }
  /* the menu: large rows, one thing each */
  #menu { display: block; position: fixed; inset: 0 0 var(--tabh) 0; z-index: 9; background: rgba(6, 2, 9, .7); }
  .msheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 100%; overflow-y: auto; background: var(--deep); border-top: 1px solid var(--gold); padding: 8px 20px 18px; animation: sheetup .28s cubic-bezier(.2, .8, .2, 1); }
  .mhead { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; } .mhead h2 { font: 400 1.7rem/1 var(--serif); margin: 0; } .mhead .ghostbtn { border: 0; padding: 12px 0; color: var(--ink-2); }
  .mrow { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 500 1.12rem var(--sans); text-align: left; cursor: pointer; }
  .mrow::after { content: ""; width: 18px; height: 9px; flex: none; background: var(--gold); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; } .mrow:active { color: var(--gold-2); }
  .mlang { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; } .mlang .seg { gap: 22px; } .mlang .seg button { font-size: 1.05rem; padding: 12px 2px; }
  .mlegal { margin: 14px 0 0; color: var(--dim); font-size: .84rem; } .mlegal a { color: var(--ink-2); margin-right: 18px; text-decoration: none; }
}
@keyframes sheetup { from { transform: translateY(24px); opacity: 0; } }

/* One-column reading: no number or picture may sit in its own column and squeeze the text (owner, 2.12).
   The number shares a line with the title; every paragraph below runs the full width of the screen. */
@media (max-width: 1079px) {
  .read, .ri { grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 0; align-items: center; }
  .read > div, .ri > div { display: contents; }
  .read > .rn, .ri > b { grid-row: 1 / span 2; }
  .read > div > strong, .ri > div > strong { grid-column: 2; align-self: end; } .read > div > small, .ri > div > small { grid-column: 2; align-self: start; margin-bottom: 0; }
  .read > div > p, .read > div > .ask, .ri > div > p { grid-column: 1 / -1; } .read > div > p:first-of-type, .ri > div > p:first-of-type { margin-top: 12px; }
  .read > div:first-child > * { grid-column: 1 / -1; } /* a reading without a number (the tail read as one) */
  .ri > b { width: 44px; height: 44px; font-size: 1.3rem; }
  .bigline { flex-wrap: wrap; row-gap: 6px; } .bigline .bimg { order: -1; flex: 0 0 100%; width: auto; margin: 4px 0 10px; } .bigline .bimg .aimg { width: min(50vw, 190px); margin: 0 auto; }
}

/* entrances: the card's content rises in when its subject changes; pressed things answer the finger */
@media (prefers-reduced-motion: no-preference) {
  .card.in > * { animation: cardin .5s cubic-bezier(.2, .8, .2, 1) both; }
  .card.in > :nth-child(2) { animation-delay: .04s; } .card.in > :nth-child(3) { animation-delay: .08s; } .card.in > :nth-child(4) { animation-delay: .12s; } .card.in > :nth-child(5) { animation-delay: .16s; } .card.in > :nth-child(n+6) { animation-delay: .2s; }
  .cta:active, .ghostbtn:active, .orb:active, .mrow:active { transform: scale(.97); }
}
@keyframes cardin { from { opacity: 0; transform: translateY(14px); } }
.guide > * { min-width: 0; } #gform { min-width: 0; }
.big3 .zimg { display: block; width: min(100%, 132px); height: auto; margin: 0 auto 8px; } .big3 > div { text-align: center; }
@media (max-width: 1079px) {
  /* the Moon's picture shares a line with its name; the text below runs the full width */
  .moonbox { grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 0; } .moonbox > div { display: contents; }
  .moonbox > svg { grid-row: 1 / span 2; width: 52px; height: 52px; } .moonbox strong { grid-column: 2; align-self: end; } .moonbox small { grid-column: 2; align-self: start; margin-bottom: 0; } .moonbox p { grid-column: 1 / -1; margin-top: 12px; font-size: 1rem; }
  /* each number of the core says what it is, on a phone too */
  .orb { grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; } .orb b { grid-row: 1 / span 2; } .orb small { display: block !important; grid-column: 2; text-align: left; }
  .read p, .ri p, .pm p { font-size: 1rem; }
}

/* ---------- 3.12: what is free, what goes on with the subscription, and where to get it ---------- */
.lk { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.lock { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 20px 0 0; padding: 16px 18px 18px; border: 1px solid var(--line-2); border-left: 2px solid var(--gold); border-top: 1px solid var(--line-2); color: var(--ink); font-size: .97rem; line-height: 1.5; }
.lock .lk { margin-top: 4px; color: var(--gold); } .lock .cta { grid-column: 2; justify-self: start; margin-top: 0; }
.more { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 6px 0; min-height: 44px; background: none; border: 0; border-radius: 0; color: var(--gold); font: 500 .95rem var(--sans); cursor: pointer; text-align: left; }
.more span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; } .more:hover { color: var(--gold-2); } .more:active { transform: scale(.98); }
.rall { margin-top: 2px; }
.freenote { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 4px 0 10px; padding: 14px 16px; background: rgba(230, 189, 110, .08); border-left: 2px solid var(--gold); color: var(--ink); font-size: .97rem; line-height: 1.5; }
.freenote .lk { margin-top: 5px; color: var(--gold); }
.otitle { display: block; font: 400 1.7rem/1.12 var(--serif); color: var(--ink); margin: 0 0 14px; }
.offer { margin: 30px 0 8px; padding: 22px 20px 24px; border: 1px solid var(--gold); background: rgba(230, 189, 110, .06); }
.offer ul, .cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer li, .cmp li { position: relative; padding-left: 28px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.offer li::before, .cmp li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.oprice { margin: 18px 0 6px; color: var(--ink-2); font-size: .95rem; } .oprice b { font: 400 1.4rem var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.offer .cta { margin-top: 10px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); margin: 22px 0 6px; }
.cmp > div { padding: 22px 26px 24px 0; } .cmp > div + div { border-left: 1px solid var(--gold); padding: 22px 22px 24px 26px; background: rgba(230, 189, 110, .06); }
.cmp li p { margin: 3px 0 0; color: var(--ink-2); font-size: .93rem; } .cplus { margin: -6px 0 12px; color: var(--ink-2); font-size: .95rem; }
.freeline { margin: 14px 0 0; color: var(--ink-2); font-size: .95rem; }
.samplebox { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 34em); gap: 48px; align-items: center; }
.samplebox .simg { width: 100%; height: auto; display: block; } .samplebox .read { border: 0; padding: 0; } .samplebox .read strong { font: 400 1.9rem/1.1 var(--serif); display: block; }
.samplebox .read small { color: var(--dim); display: block; margin: 4px 0 12px; } .samplebox .read p { font-size: 1.12rem; line-height: 1.6; }
.hsub { display: none; }
@media (max-width: 1079px) {
  header { justify-content: space-between; }
  .hsub { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--gold); border-radius: 0; color: var(--gold); font: 500 .9rem var(--sans); cursor: pointer; }
  .hsub:active { transform: scale(.97); }
}
@media (max-width: 700px) {
  .cmp { grid-template-columns: 1fr; } .cmp > div { padding: 20px 0 22px; } .cmp > div + div { border-left: 0; border-top: 1px solid var(--gold); padding: 20px 16px 22px; }
  .samplebox { grid-template-columns: 1fr; gap: 24px; } .samplebox .simg { max-width: 200px; }
  .ls { min-height: 0; padding: 64px 0; }
  .tiles { gap: 26px 0; } .tile b { font-size: 2.4rem; } .tile h3 { margin-top: 10px; }
}
.offer .oprice { margin: 22px 0 8px; }
@media (max-width: 1079px) { .read > div > .more, .read > div > .rall, .ri > div > .more { grid-column: 1 / -1; justify-self: start; } }
.samplebox .read { display: block; } .samplebox .lsub { margin: 22px 0 0; font-size: .97rem; color: var(--dim); } .samplebox .ghostbtn { margin-top: 6px; }
.rtools .mark { display: inline-flex; align-items: center; gap: 11px; } .rtools .mark .logo { width: 28px; height: 28px; } .rtools .mark span { letter-spacing: inherit; }
.ls { min-height: 0; padding: clamp(64px, 9vw, 120px) 0; }
.steps { list-style: none; counter-reset: st; margin: 18px 0 4px; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.steps li { counter-increment: st; position: relative; padding-left: 30px; } .steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 500 .74rem/20px var(--mono); text-align: center; }
#acctBtn.gold { color: var(--gold); }

/* ---------- the footer (shared/footer.js): who runs the site, the legal texts, how to reach us ---------- */
.ft { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 16px; text-align: left; color: var(--ink-2); font-size: .92rem; line-height: 1.5; text-shadow: none; }
.ft a { color: var(--ink-2); text-decoration: none; margin: 0; transition: color .2s; } .ft a:hover, .ft a:focus-visible { color: var(--gold-2); } .ft p { margin: 0; max-width: none; }
.fttop, .ftmid, .ftend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 40px; }
.ft .mark { display: inline-flex; align-items: center; gap: 12px; padding: 0; color: var(--ink); font: 500 1.05rem/1 var(--serif); letter-spacing: .34em; } .ft .mark .logo { width: 30px; height: 30px; flex: none; fill: var(--gold); stroke: none; }
.ftnav { display: flex; flex-wrap: wrap; gap: 0 28px; } .ftnav a { padding: 8px 0; color: var(--ink); }
.ftmid { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.ftpay { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; font-size: .88rem; } .ftpay .lk { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.ftcards { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; } .pm { display: block; width: 40px; height: 26px; fill: var(--ink-2); }
.pm.boxed { box-sizing: border-box; padding: 0 7px; border: 1px solid var(--ink-2); border-radius: 3px; }
.ftanpc { display: block; padding: 0; line-height: 0; } .ftanpc img { display: block; width: 250px; max-width: 100%; height: auto; }
.ftabout { margin-top: 20px !important; color: var(--dim); font-size: .84rem; }
.ftend { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: .84rem; } .ftend nav { display: flex; flex-wrap: wrap; gap: 0 24px; } .ftend nav a { padding: 6px 0; } .ftby { display: inline-flex; flex-wrap: wrap; gap: 2px 18px; white-space: nowrap; } .ftby a { color: var(--dim); } .ftmail span + span { display: none; }
@media (max-width: 700px) { .ft { padding-top: 24px; } .ftnav { gap: 0 22px; } .ftnav a { padding: 9px 0; } .ftpay { width: 100%; gap: 10px; font-size: .82rem; } .ftcards { margin-left: auto; gap: 6px; } .pm { width: 34px; height: 22px; } .pm.boxed { padding: 0 6px; } .ftmid { margin-top: 14px; padding-top: 18px; } .ftabout { margin-top: 16px !important; } .ftend { gap: 2px 24px; margin-top: 14px; padding-top: 8px; } .ftend nav { gap: 0 18px; } .ftend nav a { padding: 8px 0; } .ftmail span { display: none; } .ftmail span + span { display: inline; } .ftby { gap: 2px 12px; font-size: .78rem; } }
/* 3.12, second pass (owner): the subscription is said once and quietly; nothing in the header; no underlined links */
@media (max-width: 1079px) { header { justify-content: center; } }
.lkm { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--gold); opacity: .85; } .lkm .lk { width: 13px; height: 13px; }
.freenote { margin: 2px 0 8px; padding: 0; background: none; border: 0; color: var(--ink-2); font-size: .95rem; } .freenote .lk { margin-top: 4px; }
.freenote .linkbtn, .lock .linkbtn { margin: 0; padding: 0; font-size: inherit; white-space: nowrap; }
.lock { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 22px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.lock .lk { margin-top: 4px; color: var(--gold); }
.offer { border: 1px solid var(--line-2); background: none; }
.foot { max-width: 1120px; text-align: left; margin-top: 0; }
.foot .ft { margin-top: 24px; }
.foot { background: var(--night); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax -100vmax); } /* its own ground, edge to edge, without widening the page */

/* 1.12, third pass (owner): the account has its pictogram in the header on every screen; the first page loses the tiles with big
   numerals, the three small columns, the ticked comparison and the numbered circles, and says the same things as plain lists */
.acctop { display: none; }
#acctBtn { display: inline-flex; align-items: center; gap: 8px; } #acctBtn svg, .acctop svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
#acctBtn.in svg, .acctop.in svg { stroke: var(--gold); }
@media (max-width: 1079px) { header { position: relative; }
  .acctop { display: grid; place-items: center; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .acctop svg { width: 23px; height: 23px; } .acctop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.idx, .adds { margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.idx > div, .adds > div { display: grid; grid-template-columns: minmax(9em, 17em) 1fr; gap: 4px 32px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); }
.idx dt, .adds dt { font: 400 1.5rem/1.2 var(--serif); color: var(--ink); } .idx dd, .adds dd { margin: 0; color: var(--ink-2); max-width: 44em; }
.adds > div { grid-template-columns: minmax(8em, 12.5em) 1fr; gap: 4px 24px; padding: 14px 0; } .adds dt { font-size: 1.22rem; } .adds dd { font-size: .97rem; }
.say { display: grid; gap: 16px; max-width: 46em; } .say p { margin: 0; color: var(--ink-2); font-size: 1.14rem; line-height: 1.6; } .say strong { color: var(--ink); font-weight: 600; }
.prows { display: grid; border-top: 1px solid var(--line-2); }
.prow { display: grid; grid-template-columns: 5.2em auto 1fr auto; align-items: baseline; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prow > span { color: var(--ink-2); font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; } .prow b { font: 400 2.1rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); } .prow small { color: var(--dim); font-size: .9rem; }
.prow .cta, .prow .ghostbtn { margin: 0; align-self: center; min-width: 7.5em; min-height: 44px; padding: 10px 22px; justify-content: center; }
.padds { display: grid; gap: 0; margin-top: 26px; } .padds .otitle { display: block; margin: 0 0 12px; } .stays { margin: 14px 0 0; color: var(--ink-2); font-size: .95rem; }
.lplan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: start; } .lplan > div:first-child { display: grid; gap: 22px; align-content: start; } .lplan .padds { margin-top: 12px; } .lplan .note { margin: 0; }
.ls .cta::after, #acct .cta::after, .offer .cta::after { content: none; } /* the arrow stays on the one button that starts a map */
.ah2 { font: 400 clamp(1.7rem, 4vw, 2.2rem)/1.1 var(--serif); margin: 48px 0 8px; padding-top: 30px; border-top: 1px solid var(--line-2); }
.aend { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.list.fam li { flex-wrap: wrap; } .list.fam .ctl { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 0; }
@media (max-width: 900px) { .lplan { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .idx > div, .adds > div { grid-template-columns: 1fr; padding: 15px 0; } .idx dt { font-size: 1.35rem; }
  .prow { grid-template-columns: auto 1fr; } .prow > span { grid-column: 1 / -1; } .prow .cta, .prow .ghostbtn { grid-column: 1 / -1; width: 100%; margin-top: 6px; } }
.lplan .note, #acct .prows + .note { color: var(--dim); font-size: .9rem; line-height: 1.55; } #acct .prows { margin-top: 20px; } #acct .sub + .prows { margin-top: 22px; }
/* the day in the account: today's reading, what comes next, the last days with a line of one's own, the questions kept */
.dwhen { display: block; margin-top: 4px; color: var(--dim); font: 400 .9rem/1.3 var(--sans); font-style: normal; letter-spacing: 0; }
.list.ahead li { justify-content: flex-start; color: var(--ink-2); } .list.days li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; }
.list.days .linkbtn { margin: 0; padding: 0; justify-self: start; text-align: left; color: var(--ink); font-weight: 500; } .list.days .linkbtn[aria-current] { color: var(--gold-2); } .list.days .linkbtn::first-letter { text-transform: uppercase; }
.notein { grid-column: 1 / -1; width: 100%; min-height: 40px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: var(--ink-2); font: 400 .95rem var(--sans); }
.notein::placeholder { color: var(--dim); opacity: .8; } .notein:hover, .notein:focus { border-bottom-color: var(--line-2); outline: none; color: var(--ink); } .notein.kept { border-bottom-color: var(--gold); } .notein.bad { border-bottom-color: #d98a8a; }
.faq.qs { max-width: none; } .faq.qs summary { font-size: 1rem; } .faq.qs p { white-space: pre-line; }
.dteaser { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: start; margin-top: 18px; } .dteaser > b { min-width: 54px; padding: 10px 0; border: 1px solid var(--gold); color: var(--gold); text-align: center; font: 400 1.7rem/1 var(--serif); font-variant-numeric: lining-nums; }
.dteaser strong { display: block; font: 400 1.5rem/1.2 var(--serif); color: var(--ink); } .dteaser small { display: block; margin-top: 2px; color: var(--dim); font-size: .85rem; } .dteaser p { margin: 10px 0 0; color: var(--ink-2); max-width: 40em; }
.ptrial { margin: 16px 0 0; padding: 12px 0 12px 16px; border-left: 1px solid var(--gold); color: var(--ink); font-size: 1rem; line-height: 1.5; } .otrial { color: var(--gold-2); }
