/* Starnote · Daily Tarot — glass materials over a Milky Way night sky.
   Apple-style layering: content at the bottom, controls on translucent glass; gold is only the tint. */
:root {
  --label: rgba(255, 255, 255, .94);
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .36);
  --sep: rgba(255, 255, 255, .09);
  --fill: rgba(150, 160, 200, .16);
  --fill-2: rgba(150, 160, 200, .1);
  --glass: rgba(30, 36, 72, .44);
  --glass-thick: rgba(20, 24, 50, .78);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05);
  --tint: #ebc57c;
  --tint-soft: rgba(235, 197, 124, .16);
  --cinnabar: #c4513f;
  --fire: #ff9f5a; --water: #5ab0ff; --air: #d4dcf0; --earth: #9bd17a;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --r-xl: 28px; --r-l: 22px; --r-m: 14px;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(.22, .8, .25, 1);
  --side: 248px;
  --gutter: clamp(18px, 3.4vw, 44px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--label); font: 16px/1.55 var(--text); background: #070b1c; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tint); color: #000; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 10px; }
.moon-dark { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .3); stroke-width: .8; }
.moon-lit { fill: #f3e7c6; }

/* Materials and press feedback */
.glass { background: var(--glass); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); box-shadow: var(--glass-edge); }
.pressable { transition: transform .35s var(--spring), background-color .2s, opacity .2s; }
.pressable:active { transform: scale(.96); transition-duration: .1s; }

/* Night sky */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; }
.twinkle { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff6df; box-shadow: 0 0 6px 1px rgba(255, 236, 200, .7); animation: twinkle var(--d) ease-in-out var(--o) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.meteor { position: absolute; top: 12%; right: 8%; width: 160px; height: 1px; background: linear-gradient(90deg, rgba(255, 246, 223, .9), transparent); transform: rotate(-32deg); transform-origin: left center; opacity: 0; animation: meteor 19s linear 4s infinite; }
@keyframes meteor { 0% { opacity: 0; translate: 0 0; } 1% { opacity: 1; } 4% { opacity: 0; translate: -420px 260px; } 100% { opacity: 0; translate: -420px 260px; } }

/* ───── Frame ───── */
.sidebar { position: fixed; top: 14px; bottom: 14px; left: 14px; width: calc(var(--side) - 28px); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 26px; border-radius: var(--r-xl); z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-seal { display: grid; place-items: center; width: 40px; height: 40px; font: 600 20px/1 var(--serif); letter-spacing: 2px; color: #fff1e8; background: var(--cinnabar); border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 241, 232, .2); }
.brand-text { font: 700 20px/1.1 var(--text); }
.brand-text small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--label-2); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--label-2); font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--fill-2); color: var(--label); }
.nav a.active { background: var(--fill); color: var(--label); }
.nav a.active .icon { color: var(--tint); }
.nav-count { margin-left: auto; font-size: 13px; color: var(--label-3); }
.side-settings { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--label-2); font-size: 14px; }
.side-settings:hover { background: var(--fill-2); color: var(--label); }
.app-shell { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 8; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); transition: background .25s, box-shadow .25s; }
.topbar-title { font-size: 16px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); }
.topbar.condensed { background: rgba(14, 18, 40, .6); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); box-shadow: 0 1px 0 var(--sep); }
.topbar.condensed .topbar-title { opacity: 1; transform: none; }
.topbar .icon-button { display: none; position: absolute; right: 12px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--label-2); background: var(--fill-2); }
main { flex: 1; width: 100%; max-width: 1240px; padding: 0 var(--gutter) 64px; outline: none; }
.footer { padding: 24px var(--gutter) 34px; font-size: 12px; color: var(--label-3); }
.boot-state { min-height: 50vh; display: grid; place-items: center; color: var(--label-2); }
.tabbar { display: none; }
.large-title { padding: 2px 0 18px; }
.lt-sub { font-size: 13px; font-weight: 600; color: var(--label-2); }
.large-title h1 { margin-top: 2px; font-size: 34px; line-height: 1.2; letter-spacing: .5px; }

/* ───── Components ───── */
.widget { position: relative; padding: 18px; border-radius: var(--r-l); background: var(--glass); backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%); box-shadow: var(--glass-edge); }
.w-cap { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.w-cap .icon { width: 15px; height: 15px; color: var(--tint); }
.w-text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--label-2); }
.prose { font: 17px/1.85 var(--serif); color: var(--label); }
.big-num { display: block; margin-top: 6px; font-size: 40px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 16px; font-weight: 600; color: var(--label-2); }
.capsule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--tint); color: #1d1405; font-size: 16px; font-weight: 600; }
.capsule .icon { width: 18px; height: 18px; }
.capsule.ghost { background: var(--fill); color: var(--label); }
.link-button { margin-left: auto; color: var(--tint); font-size: 15px; font-weight: 500; }
.link-button:disabled { opacity: .4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pills span { padding: 5px 12px; border-radius: 999px; background: var(--tint-soft); color: var(--tint); font-size: 14px; font-weight: 500; }
.pills.small span { padding: 3px 10px; font-size: 12px; background: var(--fill); color: var(--label-2); }
.center { justify-content: center; text-align: center; }
em.upright, em.reversed { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
em.upright { background: var(--tint-soft); color: var(--tint); }
em.reversed { background: rgba(150, 170, 255, .16); color: #b7c6ff; }
.segmented { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 3px; border-radius: 12px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--sep); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 9px; background: rgba(255, 255, 255, .17); box-shadow: 0 3px 8px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12); transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--spring); }
.segmented button { position: relative; padding: 8px 4px; font-size: 14px; font-weight: 500; color: var(--label-2); transition: color .2s; white-space: nowrap; }
.segmented button[aria-checked=true] { color: var(--label); font-weight: 600; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; margin-bottom: 14px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--fill-2); color: var(--label-2); font-size: 14px; font-weight: 500; }
.chip.selected { background: var(--label); color: #10142a; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 12px; }
.section-head h2 { font-size: 22px; }
.section-head small { margin-left: auto; color: var(--label-3); font-size: 13px; }
.round { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); }
.round:first-child .icon { transform: rotate(180deg); }
.notice { margin-bottom: 16px; color: #ffc9bd; font-size: 14px; }

/* ───── Today ───── */
.today { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.today-side { position: sticky; top: 64px; display: grid; gap: 14px; }
.topic-intro { padding: 4px 4px 2px; }
.topic-intro h2 { font: 600 24px/1.3 var(--serif); }
.topic-intro p { margin-top: 2px; font-size: 14px; color: var(--label-2); }
.question-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; }
.row-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--tint-soft); color: var(--tint); flex: none; }
.row-icon .icon { width: 18px; height: 18px; }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text small { font-size: 13px; color: var(--label-2); }
.question-row > .icon:last-child, .entry > .icon:last-child, .echo-row > .icon:last-child { color: var(--label-3); width: 16px; height: 16px; }
.widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.moon-big { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.moon-big b { display: block; font-size: 18px; line-height: 1.25; }
.moon-big span { font-size: 13px; color: var(--label-2); }
.moon-widget .w-text, .today-widget .w-text { font-size: 13px; }

.altar { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.altar-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.astrolabe { position: absolute; inset: 0; }
.astrolabe svg { width: 100%; height: 100%; overflow: visible; }
.astrolabe circle, .astrolabe line { fill: none; stroke: #f3e2b6; stroke-width: .8; opacity: .3; }
.astrolabe .ticks line { opacity: .25; } .astrolabe .ticks line.long { opacity: .55; }
.astrolabe .dash { stroke-dasharray: 2 6; opacity: .35; }
.astrolabe .moons .moon-dark { fill: rgba(10, 14, 34, .8); stroke: #f3e2b6; opacity: .6; }
.astrolabe .moons .moon-lit { fill: #f3e2b6; opacity: .65; stroke: none; }
.ring-outer, .ring-inner { transform-box: fill-box; transform-origin: center; transition: transform 1.6s var(--ease); }
.altar-stage::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(235, 197, 124, .2), transparent 70%); }
.deck { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 2 / 3; transform: translate(-50%, -50%); transition: opacity .4s, transform .5s var(--spring); }
.deck:active { transform: translate(-50%, -50%) scale(.95); }
.deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transform: translate(calc(var(--d) * -1.5px), calc(var(--d) * -2px)); }
.deck-ring { position: absolute; inset: -22%; width: 144%; height: 144%; transform: rotate(-90deg); pointer-events: none; }
.deck-ring circle { fill: none; stroke: var(--tint); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 296; stroke-dashoffset: 296; opacity: .9; filter: drop-shadow(0 0 4px rgba(235, 197, 124, .8)); transition: stroke-dashoffset .3s ease-out; }
.fan { position: absolute; inset: 0; pointer-events: none; }
.fan-card { position: absolute; left: 50%; top: 22%; width: 22%; aspect-ratio: 2 / 3; transform-origin: 50% 205%; transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg)); transition: transform .45s var(--spring), filter .3s; animation: fan-in .8s var(--spring) both; animation-delay: calc(var(--i) * 22ms); pointer-events: auto; }
.fan-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
.fan-card:hover, .fan-card:focus-visible { transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg)) translateY(-8%); }
.fan-card.chosen { z-index: 2; pointer-events: none; transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg)) translateY(-18%) scale(1.04); }
.fan-card.chosen img { box-shadow: 0 0 0 2px var(--tint), 0 0 30px rgba(235, 197, 124, .6); }
.fan-card.chosen::after { content: attr(data-order); position: absolute; left: 50%; top: -28px; transform: translateX(-50%); font: 600 15px Georgia, serif; color: var(--tint); }
@keyframes fan-in { from { transform: translateX(-50%) rotate(0deg) scale(.9); opacity: 0; } }
.ritual-dots { display: flex; gap: 6px; margin-top: 4px; }
.ritual-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--label-3); transition: width .4s var(--spring), background .3s; }
.ritual-dots i.on { width: 18px; background: var(--tint); }
.altar-title { margin-top: 14px; font-size: 22px; font-weight: 700; }
.altar-status { margin-top: 4px; min-height: 1.6em; font-size: 14px; color: var(--label-2); text-align: center; }
.hold-button { position: relative; overflow: hidden; margin-top: 18px; width: min(100%, 320px); min-height: 54px; border-radius: 999px; background: var(--glass-thick); box-shadow: var(--glass-edge), 0 8px 30px rgba(0, 0, 0, .3); color: var(--label); font-size: 17px; font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, rgba(235, 197, 124, .35), var(--tint)); transition: width .25s ease-out; }
.hold-label { position: relative; }
.altar[data-phase=shuffling] .hold-fill { width: 100%; transition: width 1.6s linear; }
.altar[data-phase=shuffling] .hold-label { color: #1d1405; transition: color .6s .8s; }
.altar[data-phase=shuffling] .deck-ring circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s linear; }
.altar[data-phase=shuffling] .ring-outer { transform: rotate(120deg); }
.altar[data-phase=shuffling] .ring-inner { transform: rotate(-60deg); }
.altar[data-phase=shuffling] .deck img { animation: riffle .38s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.08s); }
@keyframes riffle { from { transform: translateX(-36%) rotate(-5deg); } to { transform: translateX(36%) rotate(5deg); } }
.altar[data-phase=fan] .deck, .altar[data-phase=done] .deck { opacity: 0; pointer-events: none; transform: translate(-50%, -30%) scale(.9); }
.altar[data-phase=fan] .hold-button, .altar[data-phase=done] .hold-button { opacity: 0; pointer-events: none; transform: scale(.9); }
.altar[data-phase=fan] .ring-outer, .altar[data-phase=done] .ring-outer { transform: rotate(120deg); }
.altar[data-phase=done] .fan-card:not(.chosen) { filter: brightness(.4); }

/* ───── Reading ───── */
.reading { max-width: 980px; margin: 0 auto; }
.reading > .segmented { max-width: 460px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--tint); font-size: 16px; }
.back-link .icon { transform: rotate(180deg); width: 18px; height: 18px; }
.reading-question { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--tint); font: 18px/1.7 var(--serif); color: var(--label); }
.reading-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 36px); max-width: 700px; margin: 32px auto 0; }
.slot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reading-card { width: 100%; aspect-ratio: 2 / 3; perspective: 1000px; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--spring); }
.reading-card.is-revealed .flip-inner { transform: rotateX(var(--rx, 0deg)) rotateY(calc(180deg + var(--ry, 0deg))); }
.tilting .flip-inner { transition: transform .12s linear; }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card-front { transform: rotateY(180deg); }
.reading-card.is-revealed .card-front { box-shadow: 0 0 50px rgba(235, 197, 124, .25), 0 20px 40px rgba(0, 0, 0, .5); }
img.reversed { transform: rotate(180deg); }

.reading-card:not(.is-revealed):hover .flip-inner { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.slot-pos { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.slot-name { margin-top: 2px; font: 600 17px var(--serif); color: var(--label); }
.reading-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; color: var(--label-2); font-size: 14px; }
#reading-report { margin-top: 40px; }
#reading-report.appear .widget, #reading-report.appear .section-head { animation: rise .7s var(--spring) both; }
#reading-report.appear .widget:nth-child(2) { animation-delay: .06s; } #reading-report.appear .widget:nth-child(3) { animation-delay: .12s; } #reading-report.appear .widget:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }
.verdict { padding: 22px 24px 24px; }
.verdict h2 { margin-top: 8px; font: 600 30px/1.25 var(--serif); color: var(--tint); }
.verdict .prose { margin-top: 10px; max-width: 40em; }
.seal { position: absolute; right: 20px; top: 18px; display: grid; place-items: center; width: 46px; height: 46px; font: 20px/1 var(--serif); color: #ffe9e2; background: radial-gradient(circle at 35% 30%, #d9705e, var(--cinnabar) 60%, #8e3428); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; box-shadow: inset 0 0 0 3px rgba(255, 233, 226, .18), 0 6px 14px rgba(0, 0, 0, .35); transform: rotate(8deg); animation: stamp .5s var(--spring) .3s both; }
@keyframes stamp { from { transform: rotate(8deg) scale(1.8); opacity: 0; } }
.rings { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.rings svg { width: 112px; height: 112px; transform: rotate(-90deg); flex: none; }
.rings circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.rings .track { opacity: .18; }
.rings .ring { stroke-dasharray: var(--c); stroke-dashoffset: calc(var(--c) * (1 - var(--v))); animation: ring-fill 1.2s var(--ease) both; }
@keyframes ring-fill { from { stroke-dashoffset: var(--c); } }
.el-fire { stroke: var(--fire); color: var(--fire); } .el-water { stroke: var(--water); color: var(--water); } .el-air { stroke: var(--air); color: var(--air); } .el-earth { stroke: var(--earth); color: var(--earth); }
.ring-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; flex: 1; }
.ring-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ring-legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ring-legend b { color: var(--label); font-weight: 500; }
.ring-legend span { margin-left: auto; color: var(--label-2); font-variant-numeric: tabular-nums; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-row b { display: block; font-size: 32px; line-height: 1.15; }
.stat-row span { font-size: 12px; color: var(--label-2); }
.list { list-style: none; margin: 10px 0 0; padding: 0; }
.list li { position: relative; padding: 10px 0 10px 20px; font-size: 15px; line-height: 1.65; }
.list li + li { box-shadow: 0 -1px 0 var(--sep); }
.dot { position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--label-3); }
.dot.friendly, .dot.same { background: #6fdc8c; } .dot.contrary { background: #ff8a65; } .dot.neutral { background: var(--water); }
.echo-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px; }
.echo-row img { width: 40px; border-radius: 6px; }
.echo-row span { flex: 1; } .echo-row b { display: block; font-size: 16px; } .echo-row small { color: var(--tint); font-size: 13px; }
.carousel-nav { margin-left: auto; display: flex; gap: 8px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 86%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding-bottom: 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.card-analysis { scroll-snap-align: start; padding: 20px; }
.analysis-top { display: flex; gap: 14px; align-items: center; }
.analysis-top img { width: 58px; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.analysis-top h3 { font: 700 22px/1.3 var(--serif); }
.en { margin-top: 2px; font: italic 14px Georgia, serif; color: var(--label-2); }
.card-analysis h4 { margin-top: 18px; margin-bottom: 4px; font-size: 13px; color: var(--label-2); }
.card-analysis .prose { font-size: 16px; }
.pager { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.pager i { width: 7px; height: 7px; border-radius: 50%; background: var(--label-3); transition: background .3s, transform .3s var(--spring); }
.pager i.on { background: var(--label); transform: scale(1.15); }
.group-list { padding: 4px 0; }
.todo { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; font-size: 16px; line-height: 1.6; cursor: pointer; }
.todo + .todo { box-shadow: 0 -1px 0 var(--sep); }
.todo input { position: absolute; opacity: 0; pointer-events: none; }
.todo-circle { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.6px var(--label-3); transition: background .25s, box-shadow .25s, transform .4s var(--spring); }
.todo-circle .icon { width: 14px; height: 14px; stroke-width: 2.6; color: #1d1405; transform: scale(0); transition: transform .35s var(--spring); }
.todo input:checked + .todo-circle { background: var(--tint); box-shadow: none; transform: scale(1.06); }
.todo input:checked + .todo-circle .icon { transform: scale(1); }
.todo input:checked ~ span:last-child { color: var(--label-3); text-decoration: line-through; transition: color .3s; }
.todo input:focus-visible + .todo-circle { outline: 2px solid var(--tint); outline-offset: 3px; }
.note-field { width: 100%; min-height: 140px; display: block; border: 0; resize: vertical; font: 17px/1.8 var(--serif); color: var(--label); caret-color: var(--tint); outline: none; }
.note-field::placeholder, textarea::placeholder, input::placeholder { color: var(--label-3); }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ───── Journal ───── */
.journal-widgets { grid-template-columns: repeat(4, 1fr); }
.journal-widgets .span-2 { grid-column: span 4; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; text-align: center; font-size: 11px; color: var(--label-3); }
.week i { display: block; width: 22px; height: 22px; margin: 0 auto 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fill); }
.week .lit i { background: radial-gradient(circle at 35% 35%, #ffe6a8, var(--tint)); box-shadow: 0 0 10px rgba(235, 197, 124, .55); }
.week .now { color: var(--label); font-weight: 600; }
.cal { margin-top: 10px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-head b { font-size: 11px; font-weight: 500; color: var(--label-3); padding-bottom: 4px; }
.cal-grid span { justify-self: center; width: 26px; height: 26px; font: 500 12px/26px var(--text); color: var(--label-2); border-radius: 50%; }
.cal-grid span.lit { background: var(--tint); color: #1d1405; font-weight: 700; }
.cal-grid span.now { box-shadow: inset 0 0 0 1.5px var(--label); color: var(--label); }
.cal-grid span.lit.now { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); color: #1d1405; }
.mini-fan { position: relative; height: 120px; margin-top: 12px; overflow: visible; contain: layout; }
.journal-widgets > .widget { overflow: hidden; }
.mini-fan button { position: absolute; left: 50%; top: 4px; width: 64px; transform: translateX(-50%) rotate(calc(var(--k) * 14deg)) translateX(calc(var(--k) * 34px)); transform-origin: 50% 120%; transition: transform .4s var(--spring); }
.mini-fan button:hover { transform: translateX(-50%) rotate(calc(var(--k) * 14deg)) translateX(calc(var(--k) * 34px)) translateY(-8px); }
.mini-fan img { border-radius: 7px; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.birth h3 { margin-top: 8px; font-size: 20px; }
.birth-pick { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin-top: 14px; padding: 13px 16px; border-radius: 14px; background: var(--fill); text-align: left; font-size: 16px; }
.birth-pick span { color: var(--label-2); }
.birth-pick b { margin-left: auto; font-weight: 500; color: var(--tint); }
.birth-pick .icon { width: 16px; height: 16px; color: var(--label-3); }
.wheel-preview { text-align: center; font: 600 22px/1.4 var(--serif); color: var(--tint); margin: 4px 0 14px; min-height: 1.4em; }
.wheels { position: relative; display: grid; grid-template-columns: 1.6fr .8fr 1fr; height: 200px; border-radius: 16px; background: var(--fill-2); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.wheel-band { position: absolute; left: 8px; right: 8px; top: 80px; height: 40px; border-radius: 10px; background: var(--fill); pointer-events: none; }
.wheel { position: relative; height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; scroll-padding: 80px 0; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.wheel::-webkit-scrollbar { display: none; }
.wheel:focus-visible { box-shadow: inset 0 0 0 2px var(--tint); border-radius: 12px; }
.wheel-pad { height: 80px; }
.wheel-item { height: 40px; display: grid; place-items: center; scroll-snap-align: start; font-size: 18px; color: var(--label-3); cursor: pointer; transition: color .15s, transform .2s var(--spring); font-variant-numeric: tabular-nums; }
.wheel-item.on { color: var(--label); font-weight: 600; transform: scale(1.08); }
.birth-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 18px; margin-top: 14px; }
.birth-card { text-align: left; perspective: 800px; }
.birth-card img { width: 100%; border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring); }
.birth-card.tilting img { transition-duration: .1s; }
.birth-card small { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--tint); }
.birth-card b { display: block; font: 700 18px var(--serif); }
.birth-card span { font-size: 12px; color: var(--label-2); }
.entries { padding: 0; }
.entry { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left; }
.entry + .entry { box-shadow: 0 -1px 0 var(--sep); }
.entry-cards { display: flex; flex: none; }
.entry-cards img { width: 30px; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.entry-cards img + img { margin-left: -12px; }
.entry-body { flex: 1; min-width: 0; }
.entry-body b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-body small { font-size: 13px; color: var(--label-2); }
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 6px; }
.empty .capsule { margin-top: 14px; }

/* ───── Deck ───── */
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 12px; margin-bottom: 12px; max-width: 560px; color: var(--label-2); }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; color: var(--label); }
.count-line { font-size: 13px; color: var(--label-3); margin-bottom: 12px; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 24px 18px; }
.library-card { text-align: left; perspective: 800px; }
.library-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring); }
.library-card.tilting img { transition-duration: .1s; }
.library-card b { display: block; margin-top: 10px; font: 700 15px var(--serif); }
.library-card small { font-size: 12px; color: var(--label-2); }

/* ───── Sheets ───── */
dialog { color: var(--label); }
dialog.sheet { width: min(560px, 100vw); max-height: min(86vh, 860px); margin: auto; padding: 0; border: 0; border-radius: 30px; background: var(--glass-thick); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); box-shadow: var(--glass-edge), 0 40px 100px rgba(0, 0, 0, .6); overflow: auto; overscroll-behavior: contain; transform: translateY(var(--drag, 0)); }
dialog.sheet[open] { animation: sheet-in .5s var(--spring); }
dialog.sheet.closing { animation: sheet-out .22s ease-in forwards; }
dialog.sheet.dragging { transition: none; }
@keyframes sheet-in { from { transform: translateY(40px) scale(.96); opacity: 0; } }
@keyframes sheet-out { to { transform: translateY(calc(var(--drag, 0px) + 60px)); opacity: 0; } }
dialog::backdrop { background: rgba(3, 5, 14, .5); backdrop-filter: blur(4px); }
.grabber { width: 38px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--label-3); display: none; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 14px 16px 10px; cursor: grab; }
.sheet-head h2 { text-align: center; font-size: 17px; font-weight: 600; }
.sheet-close { justify-self: end; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--label-2); }
.sheet-close .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.text-button { color: var(--tint); font-size: 17px; justify-self: start; }
.text-button.strong { font-weight: 600; justify-self: end; }
.sheet-body { padding: 4px 20px 26px; }
.group-label { margin: 22px 4px 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.group { padding: 14px 16px; border-radius: 16px; background: var(--fill-2); font-size: 15px; line-height: 1.65; }
.group .w-text:first-child, .group .pills:first-child { margin-top: 0; }
.offline-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.offline-row[aria-busy] { opacity: .6; pointer-events: none; }
.row-button { display: block; width: 100%; margin-top: 12px; padding-top: 12px; text-align: left; box-shadow: 0 -1px 0 var(--sep); font-size: 16px; }
.danger { color: #ff6b5e; }
.fine { margin: 18px 4px 0; font-size: 12px; color: var(--label-3); }
.sky-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sky-option { padding: 8px; border-radius: 16px; background: var(--fill-2); text-align: left; box-shadow: inset 0 0 0 2px transparent; }
.sky-option.selected { box-shadow: inset 0 0 0 2px var(--tint); }
.sky-swatch { display: block; height: 56px; border-radius: 10px; margin-bottom: 8px; }
.sw-galaxy { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), linear-gradient(150deg, transparent 30%, rgba(140, 120, 220, .55) 50%, transparent 70%), #0b1230; }
.sw-constellation { background: linear-gradient(28deg, transparent 49%, rgba(235, 197, 124, .7) 50%, transparent 51%), radial-gradient(2px 2px at 30% 40%, #fff, transparent), radial-gradient(2px 2px at 70% 64%, #fff, transparent), #0b1230; }
.sw-nebula { background: radial-gradient(circle at 75% 30%, rgba(170, 90, 200, .7), transparent 50%), radial-gradient(circle at 40% 70%, rgba(60, 120, 220, .5), transparent 50%), #100c2c; }
.sky-option b { display: block; font-size: 15px; } .sky-option small { font-size: 11px; color: var(--label-2); }
#question { width: 100%; min-height: 150px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--fill-2); font: 18px/1.7 var(--serif); caret-color: var(--tint); outline: none; resize: none; }
.card-detail { display: grid; gap: 14px; }
.detail-art { width: 200px; margin: 6px auto 0; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 26px 60px rgba(0, 0, 0, .55); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring); }
.detail-art.tilting { transition-duration: .1s; }
.card-detail .segmented { width: 200px; margin: 0 auto; }
.card-detail .pills { margin-top: 0; }
dialog.alert { width: 280px; padding: 20px 0 0; border: 0; border-radius: 16px; text-align: center; background: var(--glass-thick); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: var(--glass-edge); }
dialog.alert h2 { font-size: 17px; font-weight: 600; padding: 0 18px; }
dialog.alert p { margin-top: 4px; padding: 0 18px; font-size: 13px; color: var(--label-2); }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; box-shadow: 0 -1px 0 var(--sep); }
.alert-actions button { padding: 12px; font-size: 17px; color: var(--tint); }
.alert-actions button + button { box-shadow: -1px 0 0 var(--sep); }
.alert-actions .destructive { color: #ff6b5e; font-weight: 600; }
.toast { position: fixed; left: 50%; top: 64px; z-index: 40; transform: translate(-50%, -20px) scale(.9); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .45s var(--spring); }
.toast.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .journal-widgets { grid-template-columns: repeat(2, 1fr); }
  .journal-widgets .span-2 { grid-column: span 2; }
}
@media (max-width: 960px) {
  .today { grid-template-columns: 1fr; gap: 14px; }
  .today-side { display: contents; }
  .today .large-title { order: 1; } .today .segmented { order: 2; } .topic-intro { order: 3; } .altar { order: 4; } .question-row { order: 5; } .widget-row { order: 6; }
  .today .segmented { max-width: 520px; }
}
@media (max-width: 720px) {
  :root { --side: 0px; --gutter: 16px; }
  .sidebar { display: none; }
  .topbar { padding-top: env(safe-area-inset-top); height: calc(48px + env(safe-area-inset-top)); }
  .topbar .icon-button { display: grid; top: calc(6px + env(safe-area-inset-top)); }
  main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 20; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 84px); padding: 5px; border-radius: 999px; box-shadow: var(--glass-edge), 0 10px 40px rgba(0, 0, 0, .45); }
  .tab-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 84px; border-radius: 999px; background: var(--fill); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--spring); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 0 5px; font-size: 11px; font-weight: 600; color: var(--label-2); }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--tint); }
  .large-title h1 { font-size: 30px; }
  .altar-stage { width: min(100%, 340px); }
  .altar-title { font-size: 20px; margin-top: 10px; }
  .hold-button { margin-top: 14px; }
  .segmented button { font-size: 13px; }
  .widget-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .widget { padding: 16px; border-radius: 20px; }
  .reading-table { gap: 10px; margin-top: 24px; }
  .slot-pos { font-size: 11px; margin-top: 10px; }
  .slot-name { font-size: 14px; }
  .slot-name em { display: block; width: max-content; margin: 4px auto 0; }
  .widgets { grid-template-columns: 1fr; gap: 12px; }
  .span-2, .journal-widgets .span-2 { grid-column: auto; }
  .journal-widgets { grid-template-columns: 1fr 1fr; }
  .journal-widgets .streak, .journal-widgets .birth { grid-column: span 2; }
  .journal-widgets .widget:nth-child(2) { grid-column: span 2; }
  .verdict h2 { font-size: 24px; padding-right: 56px; }
  .prose { font-size: 16px; }
  .rings svg { width: 96px; height: 96px; }
  .carousel-nav { display: none; }
  .mini-fan { height: 118px; }
  .journal-widgets .rings { gap: 10px; }
  .journal-widgets .rings svg { width: 76px; height: 76px; }
  .journal-widgets .ring-legend li { gap: 5px; font-size: 13px; }
  .mini-fan button { width: 48px; transform: translateX(-50%) rotate(calc(var(--k) * 12deg)) translateX(calc(var(--k) * 22px)); }
  .entry-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .birth-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .birth-card b { font-size: 15px; }
  .library-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .library-card small { display: none; }
  dialog.sheet { width: 100vw; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
  .grabber { display: block; }
  .sky-picker { grid-template-columns: repeat(3, 1fr); }
  .toast { top: calc(10px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ───── Foil cards (holo / glitter / gold) ───── */
@property --hx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --hy { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.foil { position: relative; display: block; overflow: hidden; isolation: isolate; }
.card-face.foil { position: absolute; }
.foil > img { position: relative; z-index: 0; }
.holo, .glitter, .shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; }
.foil { --hx: var(--mx, 50%); --hy: var(--my, 50%); }
.holo {
  mix-blend-mode: color-dodge; opacity: .15;
  background-image:
    repeating-linear-gradient(110deg, #ff7773 0%, #ffed5f 7%, #a8ff5f 14%, #83fff7 21%, #7894ff 28%, #d875ff 35%, #ff7773 42%),
    repeating-linear-gradient(-45deg, #0e152e 0%, #8fa3a3 3.8%, #9fcfcf 4.5%, #8fa3a3 5.2%, #0e152e 10%, #0e152e 12%);
  background-size: 400% 400%, 300% 300%;
  background-position: var(--hx) var(--hy), calc(100% - var(--hx)) calc(100% - var(--hy));
  background-blend-mode: overlay; filter: brightness(.55) contrast(1.4) saturate(1.2);
  animation: holo-drift 7s ease-in-out infinite alternate;
}
.glitter {
  mix-blend-mode: overlay; opacity: .55;
  background-image:
    radial-gradient(circle, #fff 0 .7px, transparent 1.3px), radial-gradient(circle, #ffe9b0 0 .6px, transparent 1.2px), radial-gradient(circle, #cfe6ff 0 .5px, transparent 1px);
  background-size: 23px 29px, 31px 37px, 17px 19px; background-position: 0 0, 11px 7px, 5px 13px;
  -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), #000 0%, transparent 55%); mask-image: radial-gradient(circle at var(--hx) var(--hy), #000 0%, transparent 55%);
  animation: holo-drift 7s ease-in-out infinite alternate;
}
.shine { background: radial-gradient(circle at var(--hx) var(--hy), rgba(255, 255, 255, .45), transparent 42%); mix-blend-mode: soft-light; opacity: .45; animation: holo-drift 7s ease-in-out infinite alternate; }
.foil.major .holo { opacity: .2; background-image:
    linear-gradient(115deg, transparent 25%, rgba(255, 220, 140, .95) 44%, rgba(255, 255, 240, 1) 50%, rgba(255, 200, 110, .95) 56%, transparent 75%),
    repeating-linear-gradient(110deg, #ff7773 0%, #ffed5f 7%, #a8ff5f 14%, #83fff7 21%, #7894ff 28%, #d875ff 35%, #ff7773 42%);
  background-size: 250% 250%, 400% 400%; }
.foil.major .glitter { opacity: .8; }
.tilting .holo, .tilting .glitter, .tilting .shine { animation: none; }
.tilting .holo { opacity: .32; } .tilting .foil.major .holo, .tilting.foil.major .holo { opacity: .42; }
@keyframes holo-drift { 0% { --hx: 20%; --hy: 15%; } 50% { --hx: 70%; --hy: 45%; } 100% { --hx: 40%; --hy: 85%; } }
.reading-card:not(.is-revealed) .holo, .reading-card:not(.is-revealed) .glitter { animation-play-state: paused; }
.lib-foil { border-radius: 10px; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring); }
.library-card .lib-foil img, .birth-card .lib-foil img { box-shadow: none; transform: none; border-radius: 0; }
.tilting .lib-foil { transition-duration: .1s; }
.library-card .lib-foil .holo, .library-card .lib-foil .glitter { opacity: 0; transition: opacity .3s; animation: none; }
.library-card.tilting .lib-foil .holo { opacity: .24; } .library-card.tilting .lib-foil .glitter { opacity: .6; }
.library-card.tilting .lib-foil.major .holo { opacity: .3; }
.birth-card .lib-foil { border-radius: 10px; }
.detail-art.foil { position: relative; }
/* Reveal flash and star burst */
.slot { position: relative; }
.just-revealed .card-front::after { content: ""; position: absolute; inset: -20%; z-index: 3; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); transform: translateX(-120%); animation: sweep .9s .35s var(--ease) forwards; pointer-events: none; }
@keyframes sweep { to { transform: translateX(120%); } }
.just-revealed .card-front { animation: glow-pop 1.3s .3s ease-out; }
@keyframes glow-pop { 0% { box-shadow: 0 0 0 rgba(255, 220, 150, 0); } 30% { box-shadow: 0 0 60px 10px rgba(255, 220, 150, .75); } 100% { box-shadow: 0 0 50px rgba(235, 197, 124, .25), 0 20px 40px rgba(0, 0, 0, .5); } }
.burst { position: absolute; left: 50%; top: 38%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: #fff3cf; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px #ffd889); transform: rotate(var(--a)) translateY(0) scale(.4); opacity: 0; animation: star-out 1.1s calc(.4s + var(--d)) var(--ease) forwards; }
.burst.major i { width: 11px; height: 11px; background: #ffe39a; }
@keyframes star-out { 15% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-120px) scale(1); opacity: 0; } }
@media (max-width: 720px) { @keyframes star-out { 15% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-70px) scale(.9); opacity: 0; } } }
.reading-card.is-revealed, .library-card, .birth-card { touch-action: pan-y; }
.detail-art { touch-action: none; }
.footer a { color: var(--label-2); } .fine a { color: var(--tint); }
