/* AstroArc — night-observatory palette: aubergine ink, parchment, brass. */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/cormorant-garamond-cyrillic-500-italic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('/fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #120B1F; --ink-2: #1D1432; --ink-3: #2A1E47; --line: #3D3063;
  --parchment: #F2E9D8; --soft: #D6CBE6; --muted: #A89EC6;
  --brass: #D2AE66; --brass-hi: #EBD398; --rose: #E0789A; --verdigris: #86C2B1;
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px; --pad: 20px; --col: 560px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--parchment); font: 400 16px/1.55 var(--body); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
#view { overflow-x: clip; }
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(1100px 620px at 80% -10%, rgba(74, 44, 120, .55) 0%, rgba(74, 44, 120, 0) 62%), radial-gradient(900px 560px at -12% 108%, rgba(96, 40, 98, .4) 0%, rgba(96, 40, 98, 0) 62%); }
h1, h2, h3, .price, .prose, .lead { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 8.4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
h3 { font-size: 1.36rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font: 500 1.32rem/1.42 var(--display); color: var(--soft); }
.prose { font: 500 1.24rem/1.56 var(--display); color: var(--parchment); max-width: 34em; }
.prose p { margin: 0 0 .9em; }
.prose h2 { font-size: 1.5rem; font-weight: 600; color: var(--brass-hi); margin: 1.5em 0 .45em; }
.prose strong { font-weight: 600; color: var(--brass-hi); }
.prose em { color: var(--soft); }

/* ---------- layout ---------- */
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.screen { padding: 22px 0 calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
.screen > .wrap > * + * { margin-top: 26px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--pad); max-width: 1080px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 1.38rem var(--display); color: var(--parchment); text-decoration: none; }
.brand-logo { width: 38px; height: 38px; margin: -4px 0; }
.brand span, .gold { background: linear-gradient(180deg, #F7E6B5 8%, #D9B66C 58%, #B4853F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand { font-size: 1.55rem; }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.center { text-align: center; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--brass); color: #1D1633; font-weight: 600; text-decoration: none; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--brass-hi); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.line { background: transparent; color: var(--parchment); border-color: var(--line); }
.btn.line:hover { border-color: var(--brass); background: rgba(210, 174, 102, .08); }
.btn.quiet { background: transparent; color: var(--brass-hi); padding: 0 10px; min-height: 44px; }
.btn.quiet:hover { background: rgba(210, 174, 102, .1); }
.btn.danger { background: transparent; color: var(--rose); border-color: rgba(224, 120, 154, .45); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .93rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass-hi); text-decoration: underline; text-underline-offset: 3px; }
label.field { display: block; }
label.field > span { display: block; font-size: .875rem; color: var(--soft); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; background: rgba(19, 14, 38, .82); border: 1px solid var(--line); border-radius: 16px; color: var(--parchment); font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(210, 174, 102, .18); }
.input::placeholder { color: #7F759F; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D2AE66' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brass); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--rose); font-size: .93rem; min-height: 1.3em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: .93rem; }
.chip[aria-pressed='true'], .chip.on { background: var(--brass); border-color: var(--brass); color: #1D1633; font-weight: 600; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 9, 28, .35); }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); }
.seg button[aria-selected='true'] { background: var(--parchment); color: #1D1633; font-weight: 600; }
.seg.full { display: flex; }
.seg.full button { flex: 1; padding: 0 8px; }
.suggest { position: relative; }
.suggest ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: rgba(43, 33, 80, .97); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px rgba(8, 5, 20, .6); max-height: 260px; overflow: auto; animation: pop .18s cubic-bezier(.2, .8, .2, 1); transform-origin: top center; }
.suggest li button { width: 100%; text-align: left; background: none; border: 0; padding: 11px 14px; border-radius: 14px; }
.suggest li button:hover, .suggest li button:focus { background: rgba(210, 174, 102, .14); }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid rgba(210, 174, 102, .45); border-radius: 14px; background: rgba(210, 174, 102, .08); font-size: .94rem; } .banner { flex-wrap: wrap; } .banner > span:first-child { flex: 1 1 200px; } .banner .row { flex-wrap: nowrap; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; color: var(--muted); vertical-align: middle; }
.tag.brass { border-color: rgba(210, 174, 102, .6); color: var(--brass-hi); }

/* ---------- bottom navigation ---------- */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: rgba(16, 10, 30, .9); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--col); margin: 0 auto; padding: 0; list-style: none; height: var(--nav-h); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--muted); text-decoration: none; font-size: .7rem; -webkit-tap-highlight-color: transparent; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current='page'] { color: var(--brass-hi); }

/* ---------- the arc ---------- */
.arcfig { display: block; width: 100%; height: auto; overflow: visible; }
.arcfig .path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.arcfig .path.lit { stroke: var(--brass); stroke-width: 2; }
.arcfig .node { fill: var(--ink); stroke: var(--muted); stroke-width: 1.5; cursor: pointer; transition: r .15s; }
.arcfig .node.past { fill: var(--brass); stroke: var(--brass); opacity: .7; }
.arcfig .node.now { fill: var(--brass-hi); stroke: var(--brass-hi); }
.arcfig .node.sel { stroke: var(--parchment); stroke-width: 2.5; }
.arcfig .halo { fill: none; stroke: var(--brass-hi); stroke-width: 1; opacity: .5; }
.arcfig text { fill: var(--muted); font: 400 11px var(--body); text-anchor: middle; pointer-events: none; }
.arcfig text.on { fill: var(--parchment); font-weight: 600; }
.arcfig text.in-small { font-size: 12.5px; fill: var(--muted); }
.arcfig text.in-big { font: 500 23px var(--display); fill: var(--parchment); }
.arcfig .hit { fill: transparent; cursor: pointer; }
.draw-in .path.lit { stroke-dashoffset: 1; animation: draw 1.9s .15s cubic-bezier(.5, 0, .2, 1) forwards; }
.draw-in .node, .draw-in text, .draw-in .halo { opacity: 0; animation: appear .5s forwards; animation-delay: calc(.25s + var(--i, 0) * .13s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: var(--o, 1); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--brass-hi); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapters li { border-top: 1px solid var(--line); }
.chapters a { display: grid; grid-template-columns: 2.2rem 1fr; gap: 4px 10px; padding: 15px 0; color: inherit; text-decoration: none; }
.chapters .n { font: 500 1.5rem/1 var(--display); color: var(--muted); padding-top: 2px; }
.chapters li.now .n, .chapters li.now h3 { color: var(--brass-hi); }
.chapters p { grid-column: 2; margin: 0; color: var(--soft); font-size: .95rem; }
.chapters h3 { font-size: 1.24rem; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.dates b { font: 600 1.1rem var(--display); color: var(--brass-hi); }

/* ---------- tarot cards ---------- */
.tcard { width: var(--cw, 150px); aspect-ratio: 3 / 5; perspective: 1100px; flex: none; }
.tcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, .7, .2, 1); }
.tcard.is-up .tcard-inner { transform: rotateY(180deg); }
.tcard-face, .tcard-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6% / 3.6%; overflow: hidden; box-shadow: 0 14px 30px rgba(8, 5, 20, .55), 0 2px 5px rgba(8, 5, 20, .4); }
.tcard-face { transform: rotateY(180deg); }
.tcard.is-reversed .tcard-face { transform: rotateY(180deg) rotate(180deg); }
.tcard svg, .tcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gen { position: relative; width: 100%; height: 100%; container-type: inline-size; }
.gen span { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 600; line-height: 1.1; padding: 0 6%; color: #F2E9D8; text-shadow: 0 1px 6px rgba(10, 6, 24, .85); }
.gen-mark { top: 5.4%; font-size: 9cqw; letter-spacing: .06em; }
.gen-name { bottom: 5.8%; font-size: 8cqw; }
.gen::before, .gen::after { content: ''; position: absolute; left: 0; right: 0; height: 15%; pointer-events: none; }
.gen::before { top: 0; background: linear-gradient(rgba(16, 11, 34, .7), rgba(16, 11, 34, 0)); }
.gen::after { bottom: 0; background: linear-gradient(rgba(16, 11, 34, 0), rgba(16, 11, 34, .74)); }
.gen span { z-index: 1; }
.gen-frame { position: absolute; inset: 3%; z-index: 1; pointer-events: none; border: 1px solid rgba(232, 200, 130, .9); border-radius: 4.5% / 2.7%; box-shadow: inset 0 0 0 2px rgba(16, 11, 34, .35), inset 0 0 0 3px rgba(232, 200, 130, .45); }
.gen-aurora .gen-frame { border-color: rgba(255, 248, 235, .9); box-shadow: none; }
.gen-linocut .gen-frame { border: 3px solid #221C35; box-shadow: none; }
.gen-linocut span { color: #221C35; text-shadow: none; }
.gen-linocut::before { background: linear-gradient(rgba(239, 228, 207, .92), rgba(239, 228, 207, 0)); }
.gen-linocut::after { background: linear-gradient(rgba(239, 228, 207, 0), rgba(239, 228, 207, .92)); }
button.tcard { background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button.tcard:not(.is-up) .tcard-inner { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-5px) rotate(-.6deg); } }
.spread { display: flex; justify-content: center; gap: 12px; }
.spread figure { margin: 0; flex: 1 1 0; max-width: 170px; min-width: 0; }
.spread .tcard { width: 100%; }
.spread figcaption { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.spread figcaption b { display: block; color: var(--parchment); font: 600 1.02rem/1.2 var(--display); min-height: 2.45em; }
.spread.five { flex-wrap: wrap; }
.spread.five figure { flex: 0 0 calc(33.33% - 8px); }
.dealt .tcard { animation: deal .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * .16s); }
@keyframes deal { from { transform: translate(0, -46vh) rotate(-16deg) scale(.6); opacity: 0; } }
.deckstack { position: relative; width: 132px; aspect-ratio: 3 / 5; margin: 6px auto 0; }
.deckstack .tcard { position: absolute; inset: 0; width: 100%; --r: 0deg; transform: rotate(var(--r)) translate(var(--x, 0), var(--y, 0)); }
.deckstack.shuffling .tcard { animation: shuffle .62s ease-in-out 2; animation-delay: calc(var(--i) * .05s); }
@keyframes shuffle { 0%, 100% { transform: rotate(var(--r)) translate(var(--x, 0), var(--y, 0)); } 40% { transform: rotate(calc(var(--r) + var(--d) * 7deg)) translate(calc(var(--d) * 58px), -10px); } 70% { transform: rotate(calc(var(--r) - var(--d) * 3deg)) translate(calc(var(--d) * -12px), 4px); } }
.daily { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 18px; align-items: center; }
.daily .tcard { width: 100%; }
.fan { display: flex; justify-content: center; padding: 10px 0 38px; }
.fan .tcard { --cw: clamp(92px, 27vw, 150px); margin: 0 -14px; transition: transform .25s; }
.fan .tcard:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.fan .tcard:nth-child(3) { transform: rotate(9deg) translateY(10px); }
.fan .tcard:nth-child(2) { z-index: 2; }
.decks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.decks button { background: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px 9px; color: var(--soft); font-size: .85rem; }
.decks button[aria-pressed='true'] { border-color: var(--brass); color: var(--parchment); background: rgba(210, 174, 102, .08); }
.decks .tcard { --cw: 100%; max-width: 86px; margin: 0 auto 8px; pointer-events: none; }
.decks .tcard-face, .decks .tcard-back { box-shadow: 0 6px 14px rgba(8, 5, 20, .5); }

/* ---------- lists and panels ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list a, .list .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: inherit; text-decoration: none; }
.list a:hover b { color: var(--brass-hi); }
.list b { font-weight: 600; }
.list small { display: block; color: var(--muted); font-size: .84rem; }
.panel { border: 1px solid var(--line); border-radius: 22px; padding: 20px; background: rgba(30, 21, 52, .66); backdrop-filter: blur(6px); }
.panel.brass { border-color: rgba(210, 174, 102, .55); background: linear-gradient(160deg, rgba(210, 174, 102, .16), rgba(30, 21, 52, .62) 60%); box-shadow: 0 0 40px rgba(210, 174, 102, .07); }
.price { font: 600 2rem/1 var(--body); color: var(--parchment); letter-spacing: -.01em; }
.price small { font: 400 .9rem var(--body); color: var(--muted); }
.plans { display: grid; gap: 14px; }
.ticks { list-style: none; margin: 14px 0 18px; padding: 0; color: var(--soft); font-size: .95rem; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 7px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.sky { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .88rem; color: var(--soft); }
.sky span { white-space: nowrap; }
.glyph { font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Apple Symbols', 'DejaVu Sans', sans-serif; color: var(--brass-hi); }
.moon { width: 46px; height: 46px; flex: none; }
.bars { display: grid; gap: 9px; }
.bars div { display: grid; grid-template-columns: 5.2rem 1fr 1.6rem; gap: 10px; align-items: center; font-size: .9rem; color: var(--soft); }
.bars i { display: block; height: 8px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.bars i b { display: block; height: 100%; border-radius: 99px; background: var(--brass); }
table.pos { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.pos td { padding: 9px 4px; border-top: 1px solid var(--line); }
table.pos td:first-child { width: 1.8rem; }
table.pos td:last-child { text-align: right; color: var(--muted); white-space: nowrap; }
.wheel { display: block; width: 100%; max-width: 380px; margin: 0 auto; height: auto; }
.loader { display: grid; place-items: center; gap: 14px; padding: 46px 0; color: var(--muted); text-align: center; }
.loader svg { width: 54px; height: 54px; animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 28px 0; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--brass); border-radius: 99px; transition: width .4s; }

/* ---------- soft dropdowns ---------- */
.sel { position: relative; }
.sel-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; bottom: 0; }
.sel-btn { text-align: left; cursor: pointer; padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23D2AE66' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.sel-btn.is-empty { color: #8E84AE; }
.sel.open .sel-btn { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(210, 174, 102, .18); }
.sel.right .sel-list { left: auto; right: 0; }
.sel-list { position: absolute; z-index: 30; left: 0; min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 40px)); top: calc(100% + 6px); margin: 0; padding: 8px; list-style: none; background: rgba(43, 33, 80, .97); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px rgba(8, 5, 20, .6); max-height: 268px; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top center; transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1), visibility 0s .2s; }
.sel.up .sel-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; transform: translateY(8px) scale(.97); }
.sel.open .sel-list { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.sel-list li { position: relative; padding: 11px 38px 11px 14px; border-radius: 14px; cursor: pointer; color: var(--soft); }
.sel-list li:hover, .sel-list li:focus { background: rgba(210, 174, 102, .14); outline: none; color: var(--parchment); }
.sel-list li.none { color: var(--muted); }
.sel-list li[aria-selected='true'] { color: var(--brass-hi); font-weight: 600; }
.sel-list li[aria-selected='true']::after { content: ''; position: absolute; right: 16px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* ---------- motion ---------- */
.enter .wrap > *, .enter .hero-grid > *, .enter .authbox > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.enter .wrap > *:nth-child(2), .enter .hero-grid > *:nth-child(2) { animation-delay: .07s; }
.enter .wrap > *:nth-child(3) { animation-delay: .14s; } .enter .wrap > *:nth-child(4) { animation-delay: .21s; }
.enter .wrap > *:nth-child(5) { animation-delay: .28s; } .enter .wrap > *:nth-child(n+6) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.section { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.section.seen { opacity: 1; transform: none; }
.enter .wheel { animation: wheel-in 1.2s cubic-bezier(.2, .7, .2, 1) backwards; transform-origin: 50% 50%; }
@keyframes wheel-in { from { opacity: 0; transform: rotate(-50deg) scale(.86); } }
.enter .bars i b, .enter .progress b { animation: grow 1s .25s cubic-bezier(.2, .7, .2, 1) backwards; transform-origin: left center; }
@keyframes grow { from { transform: scaleX(0); } }
.arcfig .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-in-out infinite; }
.draw-in .halo { animation: appear .5s forwards, halo 2.8s 1s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.35); opacity: .15; } }
.tabbar a svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.tabbar a[aria-current='page'] svg { transform: translateY(-3px) scale(1.08); }
.tabbar a { position: relative; }
.tabbar a::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--brass-hi); opacity: 0; transform: scale(0); transition: opacity .2s, transform .25s; }
.tabbar a[aria-current='page']::after { opacity: 1; transform: none; }
.tabbar a span { transform: translateY(-2px); }
.tcard.tilting .tcard-inner { transition: transform .14s ease-out; animation: none !important; }
.tcard.tilting:not(.is-up) .tcard-inner { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.tcard.tilting.is-up .tcard-inner { transform: rotateY(calc(180deg + var(--ty, 0deg))) rotateX(calc(var(--tx, 0deg) * -1)); }
.tcard.is-up .tcard-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 65%); background-size: 260% 100%; background-position: 130% 0; animation: sheen 1.1s .55s ease-out 1 both; pointer-events: none; }
@keyframes sheen { to { background-position: -40% 0; } }
.moon { filter: drop-shadow(0 0 8px rgba(235, 211, 152, .28)); }
.btn:not(.line):not(.quiet):not(.danger) { box-shadow: 0 6px 22px rgba(210, 174, 102, .2); }
.btn:not(.line):not(.quiet):not(.danger):hover { box-shadow: 0 8px 28px rgba(210, 174, 102, .36); transform: translateY(-1px); }
.panel { transition: border-color .25s, transform .25s; }
.signs button, .chip, .decks button { transition: border-color .2s, background .2s, transform .15s; }
.signs button:hover { transform: translateY(-2px); border-color: var(--brass); }
.cusp { border: 1px solid rgba(210, 174, 102, .5); border-radius: 20px; padding: 16px; background: rgba(210, 174, 102, .07); }
.cusp .chips { margin-top: 12px; }
.cusp .chip { min-height: 46px; padding: 0 20px; font-size: 1rem; }

/* ---------- painted scenes ---------- */
.scene { position: relative; margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid rgba(210, 174, 102, .35); box-shadow: 0 18px 44px rgba(6, 3, 17, .6), 0 0 50px rgba(120, 70, 170, .18); aspect-ratio: 3 / 2; background: var(--ink-2); }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.scene figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 18px 16px; background: linear-gradient(rgba(18, 11, 31, 0), rgba(18, 11, 31, .88)); }
.scene figcaption small { display: block; color: var(--soft); font-size: .84rem; }
.scene figcaption b { display: block; font: 600 1.6rem/1.15 var(--display); color: var(--parchment); }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: .5; -webkit-mask-image: linear-gradient(#000 40%, transparent 96%); mask-image: linear-gradient(#000 40%, transparent 96%); }
.hero { position: relative; }
.hero h1 { background: linear-gradient(180deg, #FBF3DF 20%, #E6CE95 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #B79CF0, #8E79DC); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- sheet, toast ---------- */
#backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 5, 20, .66); opacity: 0; pointer-events: none; transition: opacity .2s; }
#backdrop.on { opacity: 1; pointer-events: auto; }
#sheet:not(.on) { visibility: hidden; }
#sheet { background: #1E1535 !important; }
#sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-width: var(--col); margin: 0 auto; max-height: 92dvh; overflow: auto; padding: 22px var(--pad) calc(26px + env(safe-area-inset-bottom)); background: #2A2050; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
#sheet.on { transform: none; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 720px) {
  /* On wide screens the sheet is a centred dialog instead of a bottom drawer. */
  #sheet { top: 50%; bottom: auto; max-height: min(88dvh, 860px); border-bottom: 1px solid var(--line); border-radius: 22px; padding-bottom: 26px; opacity: 0; transform: translateY(-46%) scale(.98); transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s .24s; }
  #sheet.on { opacity: 1; transform: translateY(-50%); transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
}
#sheet h2 { font-size: 1.6rem; margin-bottom: 14px; padding-right: 44px; }
#sheet .close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; }
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--parchment); color: #1D1633; font-weight: 600; font-size: .94rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- landing ---------- */
.hero { padding: 30px 0 10px; }
.hero h1 { max-width: 13em; }
.hero .lead { max-width: 30em; margin: 18px 0 26px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.section { padding: 54px 0 0; }
.section > .wide > h2, .section > .wrap > h2 { margin-bottom: 10px; }
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.signs button { min-height: 62px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: .8rem; display: grid; place-items: center; gap: 0; padding: 6px 2px; }
.signs button .glyph { font-size: 1.35rem; line-height: 1.1; }
.signs button[aria-pressed='true'] { border-color: var(--brass); background: rgba(210, 174, 102, .1); color: var(--parchment); }
.levels { display: grid; gap: 0; counter-reset: lv; }
.levels > div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 5.5rem 1fr; gap: 14px; }
.levels > div > b { font: 500 1.7rem/1.1 var(--display); color: var(--brass-hi); }
.levels p { margin: 0; color: var(--soft); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font: 600 1.2rem var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font: 400 1.5rem var(--body); color: var(--brass); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--soft); max-width: 40em; }
.foot { margin-top: 64px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot a { color: var(--soft); }
.public-pad { padding-bottom: 40px; }
.authbox { max-width: 440px; margin: 0 auto; padding: 26px var(--pad) 60px; }
.authbox h1 { font-size: 2.3rem; margin-bottom: 8px; }

@media (min-width: 860px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .plans.three { grid-template-columns: repeat(3, 1fr); }
  .levels { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .levels > div { grid-template-columns: 1fr; gap: 8px; }
  .signs { grid-template-columns: repeat(6, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}
@media (max-width: 370px) {
  :root { --pad: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .daily { grid-template-columns: minmax(0, 118px) 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .draw-in .path.lit { stroke-dashoffset: 0; }
  .section { opacity: 1; transform: none; }
  .draw-in .node, .draw-in text, .draw-in .halo { opacity: var(--o, 1); }
}
@media print {
  body { background: #fff; color: #111; } body::before, .tabbar, .topbar, .noprint, #toast { display: none !important; }
  .prose, .prose strong, .prose h2, h1, h2 { color: #111 !important; } .screen { padding: 0; }
}

/* ---------- calendar (computers only; phones keep the native picker) ---------- */
.dp { position: relative; }
.dp-btn { text-align: left; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23D2AE66' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='13' height='12' rx='3'/%3E%3Cpath d='M2.5 7.5h13M6 2v3M12 2v3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.dp-btn.is-empty { color: #8E84AE; }
.dp.open .dp-btn { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(210, 174, 102, .18); }
.dp-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: 316px; max-width: calc(100vw - 40px); padding: 14px; background: rgba(43, 33, 80, .97); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 50px rgba(8, 5, 20, .65); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top left; transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s .22s; }
.dp.up .dp-pop { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
.dp.open .dp-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.dp-pop button { border: 0; background: transparent; color: var(--parchment); font: inherit; cursor: pointer; border-radius: 12px; transition: background .15s, color .15s, transform .15s; }
.dp-title { flex: 1; padding: 8px 10px; font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.dp-title:not(:disabled):hover, .dp-nav:hover { background: rgba(210, 174, 102, .14); }
.dp-title:disabled { cursor: default; color: var(--soft); }
.dp-nav { width: 38px; height: 38px; font-size: 1.3rem; color: var(--brass); }
.dp-nav[hidden] { display: block; visibility: hidden; }
.dp-grid { display: grid; gap: 4px; }
.dp-grid.days { grid-template-columns: repeat(7, 1fr); }
.dp-grid.months { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-grid.years { grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 250px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.dp-wd { text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0 6px; }
.dp-grid button { min-height: 38px; color: var(--soft); font-variant-numeric: tabular-nums; }
.dp-grid.months button, .dp-grid.years button { min-height: 44px; }
.dp-grid button:hover:not(:disabled) { background: rgba(210, 174, 102, .16); color: var(--parchment); transform: scale(1.06); }
.dp-grid button:disabled { opacity: .28; cursor: default; }
.dp-grid button.today { box-shadow: inset 0 0 0 1px rgba(210, 174, 102, .5); }
.dp-grid button[aria-pressed='true'] { background: linear-gradient(135deg, #E8C882, #C59A4A); color: #1E1535; font-weight: 700; }
.dp-body.next { animation: dp-next .22s cubic-bezier(.2, .8, .2, 1); }
.dp-body.prev { animation: dp-prev .22s cubic-bezier(.2, .8, .2, 1); }
.dp-body.zoom { animation: dp-zoom .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes dp-next { from { opacity: 0; transform: translateX(18px); } }
@keyframes dp-prev { from { opacity: 0; transform: translateX(-18px); } }
@keyframes dp-zoom { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .dp-body, .dp-pop { animation: none !important; transition: none !important; } }

/* ---------- opening splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #2A1B52 0%, #150E2A 55%, #0C0818 100%); transition: opacity .6s ease, visibility 0s .6s; }
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
#splash.gone .sp-in { transform: scale(1.08); transition: transform .6s ease; }
.sp-in { position: relative; width: min(320px, 78vw); display: grid; justify-items: center; }
.sp-arc { width: 100%; height: auto; }
.sp-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw 1.1s .15s cubic-bezier(.5, 0, .2, 1) forwards; }
.sp-dots circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-dot .5s ease-out forwards; }
.sp-dots circle:nth-child(1) { animation-delay: .2s; } .sp-dots circle:nth-child(2) { animation-delay: .27s; } .sp-dots circle:nth-child(3) { animation-delay: .34s; } .sp-dots circle:nth-child(4) { animation-delay: .41s; } .sp-dots circle:nth-child(5) { animation-delay: .48s; } .sp-dots circle:nth-child(6) { animation-delay: .55s; } .sp-dots circle:nth-child(7) { animation-delay: .62s; } .sp-dots circle:nth-child(8) { animation-delay: .69s; } .sp-dots circle:nth-child(9) { animation-delay: .76s; } .sp-dots circle:nth-child(10) { animation-delay: .83s; } .sp-dots circle:nth-child(11) { animation-delay: .9s; } .sp-dots circle:nth-child(12) { animation-delay: .97s; } .sp-dots circle:nth-child(13) { animation-delay: 1.04s; }
.sp-logo { width: 56%; height: auto; margin-top: -34%; opacity: 0; animation: sp-logo .9s .45s cubic-bezier(.2, .8, .2, 1) forwards; filter: drop-shadow(0 0 28px rgba(232, 200, 130, .35)); }
.sp-name { margin: 22px 0 0; font-family: var(--display); font-size: 2rem; font-weight: 500; letter-spacing: .14em; color: #EBD398; opacity: 0; animation: sp-name .8s .95s ease-out forwards; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-dot { from { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.7); } to { opacity: 1; transform: scale(1); } }
@keyframes sp-logo { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sp-name { from { opacity: 0; letter-spacing: .4em; } to { opacity: 1; letter-spacing: .14em; } }
@media (prefers-reduced-motion: reduce) { #splash * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ====================== personal space ====================== */
.hub > * + * { margin-top: 22px; }
.banner.follow { text-decoration: none; color: inherit; }
.banner.follow i { color: var(--soft); }
.d-moon { background: #F2E9D8; } .d-sky { background: #A99BE0; } .d-personal { background: var(--brass); } .d-own { background: var(--rose); } .d-journal { background: transparent; box-shadow: inset 0 0 0 1.5px var(--verdigris); }
.dots { display: flex; gap: 3px; justify-content: center; min-height: 6px; }
.dots i, .chip i[class^='d-'], .ev-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.chip i[class^='d-'] { width: 8px; height: 8px; margin-right: 4px; }
.chip[data-group][aria-pressed='true'] { background: rgba(210, 174, 102, .14); color: var(--parchment); border-color: rgba(210, 174, 102, .5); font-weight: 500; }
.chip[data-group][aria-pressed='false'] { opacity: .5; }

.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.strip button { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border: 1px solid var(--line); border-radius: 18px; background: rgba(30, 21, 52, .5); color: var(--soft); transition: border-color .2s, background .2s, transform .15s; }
.strip button:hover { transform: translateY(-2px); }
.strip button[aria-selected='true'] { border-color: var(--brass); background: linear-gradient(170deg, rgba(210, 174, 102, .2), rgba(30, 21, 52, .6)); color: var(--parchment); }
.strip small { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.strip button { min-width: 0; } .strip button.now small { color: var(--brass-hi); font-weight: 700; } .strip button.now b { color: var(--brass-hi); }
.strip b { font: 600 1.35rem/1 var(--display); }
.strip .moon { width: 18px; height: 18px; }

.evs { list-style: none; margin: 10px 0 0; padding: 0; }
.ev { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev-dot { margin-top: 8px; width: 8px; height: 8px; }
.ev-moon .ev-dot { background: #F2E9D8; } .ev-sky .ev-dot { background: #A99BE0; } .ev-personal .ev-dot { background: var(--brass); box-shadow: 0 0 10px rgba(210, 174, 102, .7); } .ev-own .ev-dot { background: var(--rose); } .ev-cycle .ev-dot { background: var(--verdigris); }
.ev b { font-weight: 600; } .ev small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.ev-own { cursor: pointer; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 148px; padding: 12px 14px 14px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--parchment); background: radial-gradient(120% 90% at 85% 0%, rgba(126, 87, 194, .34), rgba(30, 21, 52, .7) 60%); transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
.tile:nth-child(3n + 2) { background: radial-gradient(120% 90% at 15% 0%, rgba(210, 174, 102, .26), rgba(30, 21, 52, .7) 60%); }
.tile:nth-child(3n) { background: radial-gradient(120% 90% at 50% 0%, rgba(224, 120, 154, .22), rgba(30, 21, 52, .7) 60%); }
.tile:hover { transform: translateY(-3px); border-color: rgba(210, 174, 102, .6); box-shadow: 0 16px 34px rgba(6, 3, 17, .5); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.06); }
.tile.has-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(18, 11, 31, .05) 20%, rgba(18, 11, 31, .9)); }
.tile > :not(img) { position: relative; z-index: 1; }
.tile-ic { flex: none; margin-bottom: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(18, 11, 31, .55); color: var(--brass-hi); backdrop-filter: blur(6px); }
.tile-ic svg { width: 20px; height: 20px; }
.tile b { font: 600 1.18rem/1.15 var(--display); margin-top: 12px; overflow-wrap: anywhere; }
.tile small { color: var(--soft); font-size: .82rem; line-height: 1.3; }

.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 20px; } .rates > * { min-width: 0; }
.rate { display: flex; gap: 8px; max-width: 100%; }
.ask-mood { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .ask-mood > span { color: var(--soft); font-size: .92rem; }
.rate button { flex: none; width: 40px; height: 40px; padding: 0; font-variant-numeric: tabular-nums; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--soft); font-weight: 600; transition: transform .15s, background .2s; }
.rate button:hover { transform: scale(1.08); }
.rate button[aria-pressed='true'] { background: var(--brass); border-color: var(--brass); color: #1D1633; }
.rate.energy button[aria-pressed='true'] { background: #6B8FE8; border-color: #6B8FE8; color: #fff; }
.pips { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.pips i { width: 5px; height: 12px; border-radius: 2px; background: #43376F; }
.pips.mood i.on { background: #B98A2E; } .pips.energy i.on { background: #6B8FE8; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.cal-head h2 { font-size: 1.6rem; } .cal-head .dp-nav { display: grid; place-items: center; text-decoration: none; border-radius: 12px; width: 42px; height: 42px; font-size: 1.4rem; color: var(--brass); }
.cal-head .dp-nav:hover { background: rgba(210, 174, 102, .14); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.cal-wd { text-align: center; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal button { display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 66px; padding: 7px 0 6px; border: 1px solid transparent; border-radius: 14px; background: rgba(30, 21, 52, .45); color: var(--soft); transition: background .2s, border-color .2s, transform .15s; }
.cal button:hover { transform: translateY(-1px); background: rgba(43, 33, 80, .8); }
.cal button b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal button.now { border-color: rgba(210, 174, 102, .55); color: var(--parchment); }
.cal button[aria-pressed='true'] { background: linear-gradient(170deg, rgba(210, 174, 102, .26), rgba(30, 21, 52, .7)); border-color: var(--brass); color: var(--parchment); }
.cal .moon { width: 16px; height: 16px; } .cal .ms { font-size: .8rem; color: var(--muted); line-height: 16px; }
.next-day { margin-top: 18px; } .next-day > b { font: 600 1.15rem var(--display); color: var(--brass-hi); }

.lifemap { list-style: none; margin: 22px 0 0; padding: 0 0 0 26px; position: relative; }
.lifemap::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brass), rgba(210, 174, 102, .15)); border-radius: 2px; }
.lm-year { margin: 18px 0 6px -26px; } .lm-year span { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #1E1535; border: 1px solid var(--line); font: 600 .95rem var(--display); color: var(--brass-hi); position: relative; }
.lm-item { position: relative; margin: 8px 0; }
.lm-item::before { content: ''; position: absolute; left: -24px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #1E1535; border: 2px solid var(--brass); }
.lm-event::before { background: var(--brass); box-shadow: 0 0 12px rgba(210, 174, 102, .7); }
.lm-cycle::before { border-color: var(--verdigris); width: 8px; height: 8px; left: -22px; top: 18px; }
.lm-item > div, .lm-item > button { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(30, 21, 52, .6); color: inherit; }
.lm-item > button { cursor: pointer; transition: border-color .2s, transform .2s; } .lm-item > button:hover { border-color: rgba(210, 174, 102, .6); transform: translateX(3px); }
.lm-cycle > div { background: transparent; border-style: dashed; }
.lm-item small { display: block; color: var(--muted); font-size: .8rem; } .lm-item b { display: block; font: 600 1.2rem/1.2 var(--display); margin-top: 2px; } .lm-item p { margin: 6px 0 0; color: var(--soft); font-size: .92rem; }
.lm-item.future { opacity: .78; } .lm-birth > div { border-color: rgba(210, 174, 102, .5); }
.lm-now { margin: 16px 0 16px -26px; display: flex; align-items: center; gap: 10px; color: var(--brass-hi); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.lm-now span { padding: 3px 12px; border-radius: 999px; background: #1E1535; border: 1px solid var(--brass); box-shadow: 0 0 14px rgba(210, 174, 102, .35); font-weight: 600; }
.lm-now::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); }
.lm-touch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .lm-touch .tag { font-style: normal; }
.tag.ease { border-color: rgba(134, 194, 177, .6); color: var(--verdigris); } .tag.tension { border-color: rgba(224, 120, 154, .6); color: var(--rose); } .tag.blend { border-color: rgba(210, 174, 102, .6); color: var(--brass-hi); }
.list small.mine { color: var(--soft); }

.crit { padding: 12px 0; border-top: 1px solid var(--line); } .crit:first-child { border-top: 0; padding-top: 0; }
.rng { display: grid; grid-template-columns: 7.5rem 1fr 1.4rem; align-items: center; gap: 10px; margin-top: 8px; font-size: .9rem; color: var(--soft); }
.rng span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rng output { font-weight: 600; color: var(--parchment); text-align: right; }
input[type='range'] { width: 100%; accent-color: var(--brass); height: 28px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs small { display: block; color: var(--soft); } .vs b { display: block; font: 600 2.2rem/1.1 var(--display); color: var(--parchment); }
.vs i { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: #2B2150; overflow: hidden; } .vs u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #C59A4A, #EBD398); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
details.more { margin-top: 14px; } details.more summary { cursor: pointer; color: var(--brass-hi); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(30, 21, 52, .6); }
.stats b { display: block; font: 600 2rem/1 var(--display); color: var(--parchment); } .stats span { font-size: .8rem; color: var(--muted); }
.chart { margin: 12px 0 0; } .chart svg { display: block; width: 100%; height: auto; } .chart .hit { cursor: crosshair; }
.legend { display: flex; gap: 16px; font-size: .84rem; color: var(--soft); margin-bottom: 6px; } .legend i, .bars2 th i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: baseline; }
.bars2 { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.bars2 th { text-align: left; font-weight: 500; color: var(--soft); padding: 7px 8px 7px 0; white-space: nowrap; } .bars2 thead th { font-size: .78rem; color: var(--muted); }
.bars2 td { padding: 7px 8px 7px 0; white-space: nowrap; } .bars2 td b { margin-left: 8px; font-variant-numeric: tabular-nums; }
.bar { display: inline-block; width: min(17vw, 110px); height: 8px; border-radius: 4px; background: #2B2150; vertical-align: middle; overflow: hidden; } .bar u { display: block; height: 100%; border-radius: 4px; }

.notes { list-style: none; margin: 12px 0 0; padding: 0; } .notes li { padding: 12px 14px; border-left: 2px solid var(--brass); background: rgba(30, 21, 52, .5); border-radius: 0 14px 14px 0; margin-top: 8px; }
.notes small { color: var(--muted); } .notes p { margin: 4px 0 0; white-space: pre-wrap; }
.linkbtn { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: inherit; padding: 0 0 0 6px; cursor: pointer; }
.bt-track { margin-top: 18px; } .bt-bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 8px; }
.bt-bar span { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 10px 6px; border-radius: 12px; background: rgba(43, 33, 80, .8); border: 1px solid var(--line); overflow: hidden; }
.bt-bar span:nth-child(odd) { background: linear-gradient(170deg, rgba(210, 174, 102, .2), rgba(43, 33, 80, .8)); }
.bt-bar i { font-style: normal; font-size: 1.25rem; color: var(--brass-hi); } .bt-bar small { font-size: .84rem; color: var(--soft); white-space: nowrap; } .bt-bar em { font-style: normal; font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.kv2 { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; } .kv2 dt { color: var(--muted); font-size: .9rem; } .kv2 dd { margin: 0; font-variant-numeric: tabular-nums; }
.tap { cursor: pointer; transition: background .15s; } .tap:hover, .tap:focus-visible { background: rgba(210, 174, 102, .1); outline: none; }

/* ====================== information pages, footer, changelog ====================== */
.info .prose ul, .info .prose ol { padding-left: 22px; margin: 10px 0; } .info .prose li { margin: 5px 0; }
.info .prose h2 { margin-top: 30px; scroll-margin-top: 80px; } .info .prose h2:first-child { font-size: 2.3rem; margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(30, 21, 52, .6); }
.toc b { width: 100%; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.toc button { border: 1px solid var(--line); background: transparent; color: var(--soft); border-radius: 999px; padding: 6px 13px; font-size: .88rem; cursor: pointer; transition: border-color .2s, color .2s; } .toc button:hover { border-color: var(--brass); color: var(--parchment); }
.foot-cols { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 18px 72px; margin: 0 auto 22px; }
.foot > .wide > p { text-align: center; }
.foot .foot-cols nav { display: grid; gap: 7px; margin: 0; align-content: start; } .foot-cols b { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.foot-brand { color: var(--soft); } .foot-brand a, .foot-in a { color: var(--brass-hi); }
.foot-in { margin-top: 8px; text-align: center; color: var(--muted); font-size: .84rem; } .foot-in nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 8px; } .foot-in nav a { color: var(--soft); } .foot-in p { margin: 8px 0 0; }
.log { list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; position: relative; }
.log::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 0; width: 2px; background: linear-gradient(var(--brass), rgba(210, 174, 102, .12)); }
.log > li { position: relative; padding-bottom: 28px; }
.log > li::before { content: ''; position: absolute; left: -26px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(210, 174, 102, .18), 0 0 14px rgba(210, 174, 102, .6); }
.log-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.log-v { font: 600 .86rem ui-monospace, Consolas, monospace; color: var(--brass-hi); background: rgba(210, 174, 102, .14); border: 1px solid rgba(210, 174, 102, .4); border-radius: 8px; padding: 2px 8px; }
.log-head h2 { font-size: 1.5rem; } .log-head time { font: .82rem ui-monospace, Consolas, monospace; color: var(--muted); }
.log ul { margin: 10px 0 0; padding-left: 20px; color: var(--soft); } .log ul li { margin: 6px 0; }

/* nothing in a form or a panel may push the page wider than the screen */
.form > *, .panel > *, .grid2 > *, .wrap > * { min-width: 0; max-width: 100%; }
.chips { max-width: 100%; }
textarea.input, .input { max-width: 100%; box-sizing: border-box; }
.info .pos td:first-child, .pos td .glyph { white-space: nowrap; } .pos td:first-child .glyph { display: inline; }

/* progressions and the link to them on the chart page */
.golink { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; color: inherit; } .golink b { display: block; font: 600 1.25rem var(--display); } .golink small { display: block; color: var(--muted); margin-top: 2px; }
.pr-pair { display: grid; gap: 14px; } .pr-card .pr-big { display: block; font: 600 1.7rem/1.2 var(--display); margin-top: 2px; } .pr-card .pr-big small { font: 400 .95rem var(--body); color: var(--muted); }
table.pr-table { font-size: .92rem; } .nb { white-space: nowrap; } table.pr-table td small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; } table.pr-table td:first-child { width: auto; white-space: nowrap; padding-right: 10px; } table.pr-table td:last-child { white-space: normal; color: var(--parchment); } .pr-asp small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* page header: picture, then the lead; wide screens lay it out side by side (desktop.css) */
.pagehead .ph-dup { display: none; } .pagehead .ph-text > * + *, .pagehead .scene + .ph-text { margin-top: 12px; } .pagehead .ph-dup + .lead { margin-top: 0; } .pagehead.ph-rev .scene { margin-top: 26px; }

/* parts of the menu that only the wide-screen layout (desktop.css) shows */
.tabbar .side-brand, .tabbar .side-more, .tabbar .side-foot { display: none; }
