/* ✧ Moonbound Grimoire ✧ */
:root {
  --th-a: #6d2a78; --th-b: #1f0724; --th-c: #e07df0; --th-dust: #f2b0ff;
  --gold: #d8b25c; --gold-2: #f5dfa0;
  --ink: #f4ecdf; --ink-dim: #cbbfd2; --ink-faint: #9a8fa6;
  --parch: #f3ead8; --parch-ink: #35262a; --parch-dim: #6e5a52; --parch-label: #8a6230;
  --f-display: 'Cinzel Decorative', 'Cinzel', serif;
  --f-head: 'Cinzel', 'Cormorant Garamond', serif;
  --f-body: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --f-script: 'Parisienne', cursive;
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --line: color-mix(in srgb, var(--gold) 38%, transparent);
  --line-soft: color-mix(in srgb, var(--gold) 18%, transparent);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--th-b); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: transparent;
  font-family: var(--f-body); font-size: 19px; line-height: 1.5; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; display: block; }
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#stars i {
  position: absolute; display: block; opacity: .0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20%, transparent 0);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: linear-gradient(#fff8e0, var(--th-dust));
  animation: twinkle 5s ease-in-out infinite, drift 40s linear infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) } 50% { opacity: .9; transform: scale(1) } }
@keyframes drift { from { translate: 0 0 } to { translate: 12px -40px } }
.calm #stars i { animation: none; opacity: .5; }

a { color: var(--gold-2); text-decoration-color: var(--line); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ——— typography ——— */
.label { font-family: var(--f-head); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; font-weight: 500; line-height: 1.5; }
.display { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 7.5vw, 40px); line-height: 1.1; margin: 2px 0 10px; letter-spacing: .01em; color: #fff7ea; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.display.sm { font-size: clamp(21px, 5.6vw, 27px); }
.script-title { font-family: var(--f-script); font-weight: 400; font-size: clamp(30px, 8vw, 40px); line-height: 1.15; margin: 0 0 6px; color: var(--gold-2); }
.script-title.big { font-size: clamp(40px, 11vw, 56px); }
.script-link { font-family: var(--f-script); font-size: 1.35em; font-weight: 400; color: var(--gold-2); text-decoration: none; }
.center { text-align: center; } .left { text-align: left; }
.muted { color: var(--ink-faint); }
.small { font-size: 15.5px; line-height: 1.45; }
.italic, em { font-style: italic; }
.sym { font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', serif; }
.gold-t { color: var(--gold-2); }
.danger-t { color: #ff9a9a !important; }
h1, h2, h3 { margin-top: 0; }
p { margin: 0 0 10px; }
.divider { display: block; margin: 14px auto; color: var(--gold); opacity: .85; }
.spark { color: var(--gold); vertical-align: middle; }
.ink-opal .label, .ink-opal .script-title { background: linear-gradient(90deg, #d7c3ff, #bff5ea, #ffd3ec); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ——— layout ——— */
#app { min-height: 100vh; }
#topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--safe-t)) 16px 8px; max-width: 760px; margin: 0 auto;
  background: color-mix(in srgb, var(--th-b) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); border-radius: 0 0 18px 18px;
}
#topbar:empty { display: none; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--gold-2); font-family: var(--f-script); font-size: 27px; line-height: 1; }
.brand-moons { width: 44px; height: 9px; color: var(--gold); }
.top-r { display: flex; align-items: center; gap: 10px; }
.streak-pill { display: flex; align-items: center; gap: 2px; text-decoration: none; color: var(--gold-2); font-family: var(--f-head); font-size: 15px; padding: 0 10px 0 4px; height: 38px; border: 1px solid var(--line-soft); border-radius: 20px; background: rgba(0,0,0,.25); }
.streak-pill .s-candle { transform: scale(.72); }
.lv-ring { position: relative; width: 40px; height: 40px; display: grid; place-items: center; text-decoration: none; color: var(--gold-2); }
.lv-ring svg { position: absolute; inset: 0; }
.lv-ring b { position: relative; font-family: var(--f-head); font-size: 15px; }
#view { max-width: 720px; margin: 0 auto; padding: 4px 14px calc(104px + var(--safe-b)); outline: none; }
#view.turn { animation: pageTurn .55s cubic-bezier(.2,.7,.2,1); transform-origin: 0 50%; }
@keyframes pageTurn { from { opacity: 0; transform: perspective(1400px) rotateY(-9deg) translateX(14px); } to { opacity: 1; transform: none; } }
.calm #view.turn { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
body.onboarding #view { padding-bottom: 40px; padding-top: calc(20px + var(--safe-t)); }

/* ——— pages ——— */
.page {
  position: relative; margin: 14px 0; padding: 22px 18px; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(20,12,28,.66), rgba(9,6,14,.74));
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  overflow: hidden;
}
.page::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line-soft); border-radius: calc(var(--r) - 5px); pointer-events: none; }
.page > * { position: relative; }
.page.parchment, .parchment {
  color: var(--parch-ink);
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(247,182,210,.55), transparent 70%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(201,182,255,.5), transparent 70%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(168,227,220,.45), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255,208,168,.5), transparent 70%),
    radial-gradient(ellipse at 50% 50%, #faf4e8, #efe3cc);
  border-color: color-mix(in srgb, var(--gold) 70%, #fff 0%);
}
.parchment .label { color: var(--parch-label); }
.parchment .display { color: #2d1d24; text-shadow: none; }
.parchment .script-title, .parchment .script-link { color: #5a2c3c; }
.parchment .muted { color: var(--parch-dim); }
.parchment a { color: #6a3a4c; }
.parchment .divider, .parchment .spark { color: #b08642; }
.parchment::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.night-inset { background: linear-gradient(160deg, #1b1224, #0e0a14); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 14px 0; position: relative; }
.night-inset .label { color: var(--gold); }
.night-inset .muted { color: var(--ink-faint); }

.vine { position: absolute; width: 150px; height: 150px; color: var(--gold); opacity: .8; pointer-events: none; z-index: 0; }
.vine.sm { width: 104px; height: 104px; opacity: .55; }
.vine.tl { top: -6px; left: -6px; transform: rotate(90deg) scaleX(-1); }
.vine.tr { top: -6px; right: -6px; transform: rotate(180deg); }
.vine.bl { bottom: -6px; left: -6px; }
.vine.br { bottom: -6px; right: -6px; transform: scaleX(-1); }
.vine.pale { color: #b08642; opacity: .7; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 > .page { margin: 0; }
.grid-2 + .page, .page + .grid-2 { margin-top: 14px; }
.grid-2.tight, .grid-3.tight { gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.pad { padding: 10px 20px; }
.crumbs { margin: 8px 2px 0; font-family: var(--f-head); font-size: 13px; letter-spacing: .08em; }
.crumbs a, .crumbs .btn.text { text-decoration: none; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.page-no { text-align: center; font-family: var(--f-head); color: var(--gold); font-size: 14px; letter-spacing: .2em; margin: 24px 0 6px; opacity: .8; }
.err { white-space: pre-wrap; font-size: 12px; color: #ffb3b3; }

/* ——— buttons & chips ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--gold-2);
  font-family: var(--f-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, color-mix(in srgb, var(--gold) 70%, #6b4a1c)); color: #22140a; border-color: transparent; box-shadow: 0 6px 22px color-mix(in srgb, var(--gold) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.5); font-weight: 600; }
.btn.gold:hover { box-shadow: 0 8px 30px color-mix(in srgb, var(--gold) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.ghost-dark { color: #5a2c3c; border-color: rgba(120,80,60,.35); background: rgba(255,255,255,.35); }
.btn.text { background: none; border: none; min-height: 36px; padding: 6px 8px; text-transform: none; letter-spacing: .03em; font-family: var(--f-body); font-size: 16px; color: var(--gold); }
.parchment .btn.text { color: #6a3a4c; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn.danger { background: #8a2233; color: #fff; border-color: transparent; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-soft); background: rgba(0,0,0,.2); color: var(--gold-2); cursor: pointer; font-size: 20px; line-height: 1; }
.parchment .icon-btn { color: #5a2c3c; background: rgba(255,255,255,.4); border-color: rgba(120,80,60,.3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(0,0,0,.22); color: var(--ink-dim); font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip.on { border-color: var(--gold); color: #21130b; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.chip.own { border-color: color-mix(in srgb, #9be37a 60%, transparent); color: #d8f7c6; }
.chip[disabled] { opacity: .45; }
.parchment .chip { background: rgba(255,255,255,.45); color: var(--parch-ink); border-color: rgba(120,80,60,.3); }
.parchment .chip.on { color: #21130b; }
.chip.ink i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--i2), var(--i1)); }
.script-chip { font-size: 22px; }
.scroll-x { overflow-x: auto; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .chips { flex-wrap: nowrap; }

/* ——— forms ——— */
.field { display: block; margin: 14px 0; }
.field > .label { display: block; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: rgba(0,0,0,.3);
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
textarea { resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
select option { background: #1a1220; color: var(--ink); }
input[type=date] { min-height: 48px; }
.parchment input, .parchment textarea, .parchment select { background: rgba(255,255,255,.5); color: var(--parch-ink); border-color: rgba(120,80,60,.3); }
::placeholder { color: var(--ink-faint); opacity: .8; font-style: italic; }
.parchment ::placeholder { color: #9a8478; }
.script-input { font-family: var(--f-script); font-size: 30px !important; padding: 6px 13px !important; color: var(--gold-2); }
.parchment .script-input { color: #5a2c3c; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 0 14px; background: rgba(0,0,0,.28); margin: 12px 0 4px; color: var(--gold); }
.search input { border: 0; background: none; box-shadow: none !important; padding: 11px 0; }

/* ——— today ——— */
.hero { padding-top: 26px; }
.greet { margin-top: 4px; }
.hero-moon { display: block; margin: 6px auto 0; background: none; border: 0; padding: 0; cursor: pointer; }
.hero-moon .moon { filter: drop-shadow(0 0 30px rgba(255,240,210,.25)); animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px) } }
.calm .hero-moon .moon { animation: none; }
.phase-name { margin: 6px 0 2px; }
.moon-meta { color: var(--ink-dim); margin: 0; }
.moon-row { display: flex; justify-content: center; gap: 8px; margin: 12px 0; color: var(--gold); }
.moon-row span { opacity: .55; transition: .3s; }
.moon-row span.on { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 6px var(--gold-2)); }
.energy { color: var(--ink-dim); }
.season { font-family: var(--f-script); font-size: clamp(27px, 7vw, 34px); color: var(--th-c); margin: 0; line-height: 1.2; filter: brightness(1.25); }
.parchment .season { color: #7a3a5c; filter: none; }

.familiar-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.fam-wrap { background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
.fam-wrap.hop .familiar { animation: hop .6s ease; }
@keyframes hop { 30% { transform: translateY(-10px) rotate(-3deg) } 60% { transform: translateY(0) rotate(2deg) } }
.bubble { position: relative; flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; }
.bubble::before { content: ''; position: absolute; left: -7px; top: 40%; width: 12px; height: 12px; background: inherit; border-left: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); transform: rotate(45deg); background: #1c1424; }
.bubble p:last-child { margin: 0; font-style: italic; }
.familiar { overflow: visible; }
.fam-eye { animation: blink 6s infinite; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1) } 48% { transform: scaleY(.1) } }
.fam-star { animation: twinkle2 3s ease-in-out infinite; }
@keyframes twinkle2 { 50% { opacity: .2 } }
.fam-aura { animation: spin 60s linear infinite; transform-origin: 100px 112px; }
@keyframes spin { to { transform: rotate(360deg) } }
.tongue { animation: tongue 3.5s infinite; transform-origin: 138px 56px; }
@keyframes tongue { 0%, 80%, 100% { transform: scaleX(0) } 85%, 95% { transform: scaleX(1) } }
.calm .fam-eye, .calm .fam-star, .calm .fam-aura, .calm .tongue { animation: none; }

.sabbat-banner { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--th-a) 50%, #140c1a), #0e0914); }
.mini-card { padding: 18px 14px; text-align: center; }
.planet-sym { font-size: 44px; line-height: 1; color: var(--gold-2); margin: 6px 0; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', serif; text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 60%, transparent); }
.affirm { font-style: italic; font-size: 19px; line-height: 1.4; margin: 6px 0 0; }

.draw-wrap { display: flex; gap: 16px; align-items: center; }
.card-draw, .card-mini { background: none; border: 0; padding: 0; cursor: pointer; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; perspective: 800px; }
.card-draw svg, .card-mini svg { width: 118px; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px var(--line-soft); transition: transform .5s; }
.card-draw:hover svg { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 26px color-mix(in srgb, var(--gold) 30%, transparent); }
.card-draw.flipping svg { transform: rotateY(90deg) scale(1.05); }
.card-draw { animation: glowPulse 3s ease-in-out infinite; border-radius: 10px; }
@keyframes glowPulse { 50% { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--gold) 55%, transparent)); } }
.drawn .card-mini svg { animation: flipIn .6s ease; }
@keyframes flipIn { from { transform: rotateY(-90deg) } to { transform: none } }
.draw-copy { flex: 1; min-width: 0; }
.draw-copy p { font-size: 17px; }
.ask { color: var(--gold-2); font-style: italic; display: flex; gap: 6px; align-items: flex-start; }
.oc-num { font-family: var(--f-head); font-size: 7px; letter-spacing: .1em; }
.oc-name { font-family: var(--f-head); font-size: 5.6px; letter-spacing: .18em; }
.oracle .t { font-family: var(--f-head); font-size: 6px; fill: #f4ead6; stroke: none; }
.oc-art .f { fill: var(--gold-2); stroke: none; }
.oc-art .f2 { fill: rgba(245,223,160,.12); }
.oc-art .bolt { stroke: var(--gold-2); stroke-width: 1.4; }

.candles { display: flex; justify-content: space-between; margin: 12px 0 4px; }
.cd { display: flex; flex-direction: column; align-items: center; font-family: var(--f-head); font-size: 11px; color: var(--ink-faint); gap: 2px; }
.cd.today span { color: var(--gold-2); }
.s-candle .flame, .altar-item-svg .flame, .ritual-candle .flame { animation: flicker 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.s-candle .flame { animation-duration: 1.3s; }
@keyframes flicker { 0%, 100% { scale: 1 1; rotate: 0deg } 25% { scale: .92 1.06; rotate: -2deg } 50% { scale: 1.04 .95; rotate: 1.5deg } 75% { scale: .97 1.04; rotate: -1deg } }
.calm .flame { animation: none !important; }
.cycle-bar { margin-top: 12px; }
.cyc-track { display: flex; gap: 3px; margin-bottom: 6px; }
.cyc-track i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.cyc-track i.on { background: linear-gradient(var(--gold-2), var(--gold)); box-shadow: 0 0 6px color-mix(in srgb, var(--gold) 60%, transparent); }
.cyc-track i.now { outline: 1px solid var(--gold-2); outline-offset: 1px; }

.rem { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.rem:first-of-type { border-top: 0; }
.quest-list { list-style: none; padding: 0; margin: 8px 0 0; }
.quest { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.quest:first-child { border-top: 0; }
.q-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); }
.quest.done .q-ic { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #22140a; }
.quest.done b { text-decoration: line-through; text-decoration-color: var(--gold); opacity: .8; }
.q-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-body small { color: var(--ink-faint); font-size: 15px; }
.bar { display: block; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px; transition: width .6s; }
.q-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--f-head); font-size: 12px; color: var(--ink-dim); }
.q-r .xp { color: var(--gold); }

.journal-card .ok { color: #3f7a3f; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; border: 1px solid rgba(120,80,60,.25); background: rgba(255,255,255,.4); font-size: 14px; cursor: pointer; color: var(--parch-ink); }
.mood span { font-size: 22px; }
.mood.on { background: linear-gradient(135deg, #fff5dc, #f0d69a); border-color: #b08642; box-shadow: 0 2px 10px rgba(176,134,66,.35); }
.energy-moons { display: flex; gap: 10px; margin-bottom: 4px; }
.en { background: none; border: 0; padding: 2px; cursor: pointer; opacity: .35; color: #6a4a3a; transition: .2s; }
.en.on { opacity: 1; transform: scale(1.08); }
.en svg circle { fill: #3b2a45; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: 16px; border: 1px solid var(--line-soft); text-decoration: none; color: var(--gold-2); background: rgba(255,255,255,.03); font-family: var(--f-head); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; text-align: center; transition: .2s; }
.q-act:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.horizon { list-style: none; padding: 0; margin: 0; }
.horizon li { border-top: 1px solid var(--line-soft); }
.horizon li:first-child { border: 0; }
.horizon li > a, .horizon li { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: inherit; }
.horizon li > a { padding: 0; width: 100%; }
.horizon span:last-child { display: flex; flex-direction: column; }
.horizon small { color: var(--ink-faint); font-size: 14.5px; }
.cat-dot { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 60%, transparent); background: color-mix(in srgb, var(--cc) 12%, transparent); }
.h-moon { width: 36px; display: grid; place-items: center; color: var(--gold); flex: none; }

/* ——— spells ——— */
.head-page { padding-bottom: 12px; }
.stats3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; text-align: center; }
.stats3 div { padding: 8px 2px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); }
.stats3 b { display: block; font-family: var(--f-display); font-size: 24px; color: var(--gold-2); font-weight: 400; line-height: 1.2; }
.stats3 span { font-family: var(--f-head); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.spell-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.spell-tile { position: relative; display: block; padding: 16px 18px 14px; border-radius: 16px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 8px 28px rgba(0,0,0,.35); overflow: hidden; transition: transform .2s; }
.spell-tile:active { transform: scale(.985); }
.spell-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cc); opacity: .8; }
.tile-cat { font-family: var(--f-head); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--parch-label); display: inline-flex; align-items: center; gap: 5px; }
.spell-tile h3 { margin: 2px 0 2px; font-size: 32px; }
.tile-int { font-size: 16px; color: var(--parch-dim); margin: 0 0 10px; font-style: italic; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--parch-dim); }
.tile-date { display: inline-flex; align-items: center; gap: 5px; }
.st { font-family: var(--f-head); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(90,44,60,.1); color: #5a2c3c; }
.st-manifested { background: linear-gradient(135deg, #fff1c6, #eed08a); color: #6b4410; box-shadow: 0 0 10px rgba(238,208,138,.6); }
.st-waiting, .st-cast { background: rgba(95,70,160,.14); color: #4a3690; }
.st-planned { background: rgba(60,120,120,.12); color: #2d6464; }
.seed-tag { position: absolute; top: 12px; right: 14px; font-family: var(--f-head); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--parch-dim); opacity: .8; }
.empty { text-align: center; }
.fab { position: fixed; right: max(18px, calc(50vw - 340px)); bottom: calc(88px + var(--safe-b)); z-index: 25; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #22140a; box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 22px color-mix(in srgb, var(--gold) 45%, transparent); text-decoration: none; }

.spell-page { padding: 34px 20px 24px; }
.spell-name { font-family: var(--f-script); font-weight: 400; font-size: clamp(42px, 12vw, 60px); line-height: 1.1; margin: 4px 0 10px; color: #3e1f2c; }
.intent { font-style: italic; color: var(--parch-dim); font-size: 19px; }
.small-caps { font-family: var(--f-head); font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--parch-label); display: block; }
.stepper { display: flex; justify-content: space-between; margin: 20px 4px 8px; position: relative; }
.stepper::before { content: ''; position: absolute; left: 12%; right: 12%; top: 8px; height: 2px; background: rgba(120,80,60,.25); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-family: var(--f-head); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--parch-dim); }
.step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b08642; background: var(--parch); }
.step.past i { background: #b08642; }
.step.now i { background: radial-gradient(#fff4cc, #d9a94a); box-shadow: 0 0 0 4px rgba(217,169,74,.25), 0 0 14px rgba(217,169,74,.8); }
.step.now span { color: #5a2c3c; font-weight: 600; }
.status-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 4px; }
.result-row { width: 100%; }
.spell-sigil { text-align: center; color: var(--gold-2); }
.chant { text-align: center; margin: 18px 0; }
.chant p { font-style: italic; font-size: 20px; line-height: 1.55; color: #3a2530; margin: 10px 0; }
.sec-title { font-family: var(--f-head); font-weight: 500; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--parch-label); margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(176,134,66,.6), transparent); }
.sec-title.row::after { display: none; }
.page:not(.parchment) .sec-title { color: var(--gold); }
.page:not(.parchment) .sec-title::after { background: linear-gradient(90deg, var(--line), transparent); }

.corr-chart { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--gold); border-radius: 4px; margin-top: 6px; }
.cc-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 12px 4px 10px; min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cc-cell:nth-child(4n) { border-right: 0; }
.cc-cell:nth-child(n+5) { border-bottom: 0; }
.cc-g { height: 34px; display: grid; place-items: center; color: var(--gold-2); }
.cc-g .planet { font-size: 30px; line-height: 1; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', serif; }
.cc-g .num { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.cc-g .swatch { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); box-shadow: 0 0 10px rgba(0,0,0,.4); }
.cc-v { font-size: 14px; line-height: 1.2; margin-top: 6px; color: var(--ink); font-weight: 600; overflow-wrap: normal; hyphens: auto; max-width: 100%; }
@media (max-width: 400px) { .cc-v { font-size: 13px; } .cc-cell { padding: 12px 2px 10px; } }
.cc-l { font-family: var(--f-head); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: auto; padding-top: 4px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.ck { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 18px; color: inherit; line-height: 1.4; }
.ck .box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #b08642; display: grid; place-items: center; margin-top: 1px; color: #fff; font-family: var(--f-head); font-size: 12px; }
.ck .box.num { border-radius: 50%; color: #8a6230; }
.ck.on .box { background: #b08642; color: #fff; }
.ck.on { color: var(--parch-dim); }
.ck.on:not(.rites .ck) { text-decoration: line-through; text-decoration-color: rgba(176,134,66,.6); }
.page:not(.parchment) .ck .box { border-color: var(--gold); color: var(--gold); }
.page:not(.parchment) .ck.on .box { background: var(--gold); color: #22140a; }
.page:not(.parchment) .ck.on { color: var(--ink-dim); }
.ck small { margin-left: auto; color: var(--gold); font-family: var(--f-head); font-size: 11px; }
.notes-2 { display: grid; gap: 4px; }
.note { font-style: italic; }
.signs { list-style: none; padding: 0; margin: 0; }
.signs li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(176,134,66,.35); font-size: 17px; }
.sd { flex: none; font-family: var(--f-head); font-size: 11px; letter-spacing: .1em; color: var(--parch-label); padding-top: 4px; min-width: 52px; text-transform: uppercase; }
.spell-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }

.cat-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.cat-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.25); cursor: pointer; color: var(--cc); font-family: var(--f-head); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.cat-opt span { color: var(--ink-dim); text-align: center; }
.cat-opt.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 18%, rgba(0,0,0,.3)); box-shadow: 0 0 16px color-mix(in srgb, var(--cc) 35%, transparent); }
.cat-opt.on span { color: #fff; }
.best-box .chips { margin-bottom: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.sw { width: 36px; height: 36px; border-radius: 50%; background: var(--sw); border: 2px solid rgba(255,255,255,.2); cursor: pointer; box-shadow: inset 0 -4px 8px rgba(0,0,0,.25); }
.sw.on { border-color: var(--gold-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 40%, transparent), 0 0 14px var(--sw); }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 8px; }
.sugg .chip { min-height: 32px; font-size: 14.5px; padding: 4px 11px; }
.edit-list { padding: 0; margin: 0 0 8px; list-style: none; counter-reset: s; }
.edit-list li { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
ol.edit-list li::before { counter-increment: s; content: counter(s); font-family: var(--f-head); color: var(--gold); width: 18px; text-align: center; font-size: 14px; }
.save-bar { position: sticky; bottom: calc(80px + var(--safe-b)); margin-top: 18px; z-index: 5; }
.italic { font-style: italic; }

/* ——— moon calendar ——— */
.cal-page { padding: 22px 12px 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.month-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 10vw, 52px); letter-spacing: .04em; margin: 0; line-height: 1; color: #fff7ea; text-shadow: 0 0 24px color-mix(in srgb, var(--mth) 60%, transparent); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1.5px solid var(--gold); margin-top: 16px; background: rgba(0,0,0,.18); }
.cal-dow { font-family: var(--f-head); font-size: 10px; letter-spacing: .08em; text-align: center; padding: 7px 0; color: var(--gold-2); border-bottom: 1.5px solid var(--gold); border-right: 1px solid var(--line); background: color-mix(in srgb, var(--mth) 12%, transparent); }
.cal-dow .long { display: none; }
.cal-dow:nth-child(7) { border-right: 0; }
.cal-cell { position: relative; min-height: 66px; background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); font: inherit; overflow: hidden; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.empty { cursor: default; }
.cd-n { align-self: flex-start; font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1; padding-left: 2px; }
.cd-moon { margin-top: 2px; color: var(--gold); opacity: .6; }
.cal-cell.ev .cd-lbl { margin-top: 1px; }
.cal-cell.sab .cd-lbl { display: none; }
.cal-cell.ev .cd-moon { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,240,200,.6)); }
.cd-lbl { font-family: var(--f-head); font-size: 7.5px; letter-spacing: .04em; color: var(--gold-2); text-transform: uppercase; line-height: 1.1; text-align: center; }
.cd-sab { position: absolute; bottom: 2px; left: 0; right: 0; font-family: var(--f-head); font-size: 7.5px; color: #1d120a; background: linear-gradient(90deg, var(--gold-2), var(--gold)); line-height: 1.5; text-transform: uppercase; letter-spacing: .03em; }
.cal-cell.sab { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.cd-dots { position: absolute; top: 4px; right: 3px; display: flex; flex-direction: column; gap: 2px; }
.cd-dots i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 4px currentColor; }
.cal-cell.today { background: color-mix(in srgb, var(--mth) 22%, transparent); box-shadow: inset 0 0 0 2px var(--gold-2); }
.cal-cell.today .cd-n { color: var(--gold-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 12px; color: var(--ink-dim); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-sab { width: 14px; height: 8px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); display: inline-block; }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--th-c); display: inline-block; }
.moon-events, .best-list { list-style: none; padding: 0; margin: 0; }
.moon-events li, .best-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--gold); }
.moon-events li:first-child, .best-list li:first-child { border: 0; }
.moon-events span, .best-list span { display: flex; flex-direction: column; flex: 1; color: var(--ink); }
.moon-events small, .best-list small { color: var(--ink-faint); font-size: 14.5px; }
.now-moon .row { align-items: center; }
.cat-pick.sm .cat-opt { padding: 8px 2px 6px; }
.best-why p { margin-bottom: 4px; }
.wheel { display: block; width: 100%; max-width: 360px; margin: 6px auto; overflow: visible; }
.wh-m { font-family: var(--f-head); font-size: 7px; fill: var(--ink-faint); letter-spacing: .1em; }
.wh-t { font-family: var(--f-head); font-size: 9px; fill: var(--ink-dim); letter-spacing: .05em; }
.wh-s.on .wh-t { fill: var(--gold-2); font-size: 10.5px; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35 } }
.day-sheet .row { align-items: center; margin-bottom: 10px; }
.sab-inline { display: flex; gap: 12px; align-items: center; }

/* ——— altar ——— */
.lv-head { display: flex; gap: 16px; align-items: center; }
.lv-head .medal { flex: none; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--gold) 50%, transparent)); }
.lv-head > div:last-child { flex: 1; min-width: 0; }
.xpbar { height: 9px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin: 6px 0 6px; border: 1px solid var(--line-soft); }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); background-size: 200% 100%; animation: sheen 3s linear infinite; }
@keyframes sheen { to { background-position: -200% 0 } }
.altar-page { padding: 18px 12px; }
.altar-stage { position: relative; width: 100%; aspect-ratio: 4 / 3.2; margin: 12px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; background: #120a18; }
.altar-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.altar-moon { position: absolute; left: 50%; top: 11%; transform: translateX(-50%); pointer-events: none; opacity: .95; }
.altar-item { position: absolute; transform: translate(-50%, -85%) scale(var(--s)); background: none; border: 0; padding: 0; cursor: grab; touch-action: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); transition: filter .2s; }
.altar-item svg { width: clamp(52px, 17vw, 84px); height: auto; display: block; }
.altar-item.dragging { cursor: grabbing; filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)) drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 60%, transparent)); z-index: 99 !important; }
.altar-item.sel { filter: drop-shadow(0 0 3px var(--gold-2)) drop-shadow(0 0 10px var(--gold)); }
.altar-tools { padding: 6px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.3); flex-wrap: wrap; }
.smoke { animation: smoke 4s ease-in-out infinite; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(4px) } 40% { opacity: 1 } 100% { opacity: 0; transform: translateY(-8px) } }
.orb-glow { animation: pulse 4s ease-in-out infinite; }
.calm .smoke, .calm .orb-glow, .calm .pulse, .calm .xpbar i { animation: none; }
.fam-page { text-align: center; }
.fam-show { display: flex; justify-content: center; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--th-c) 30%, transparent)); }
.evo { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: space-between; gap: 4px; }
.evo li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1.2; color: var(--ink-faint); }
.evo li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--f-head); font-size: 12px; }
.evo li.on { color: var(--ink); }
.evo li.on span { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #22140a; border-color: transparent; }
.evo small { font-family: var(--f-head); font-size: 9px; color: var(--gold); letter-spacing: .1em; }
.sounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.snd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.25); cursor: pointer; color: var(--gold); font-size: 13.5px; line-height: 1.2; text-align: center; }
.snd span { color: var(--ink-dim); }
.snd.on { background: color-mix(in srgb, var(--gold) 18%, rgba(0,0,0,.3)); border-color: var(--gold); box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 30%, transparent); }
.snd.on svg { animation: pulse 2s ease-in-out infinite; }
.link-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); padding: 20px 12px; }
.link-card svg { color: var(--gold); }
.link-card small { color: var(--ink-faint); font-size: 14px; line-height: 1.3; }
.drawer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); cursor: pointer; font-size: 13.5px; line-height: 1.2; text-align: center; }
.drawer-item small { font-family: var(--f-head); font-size: 9.5px; color: var(--gold); letter-spacing: .05em; }
.drawer-item.locked svg { filter: grayscale(1) brightness(.35); }
.drawer-item.locked { opacity: .75; cursor: default; }
.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.fam-opt { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.25); cursor: pointer; font-size: 14.5px; }
.fam-opt.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, rgba(0,0,0,.3)); box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 30%, transparent); }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 12px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; font-size: 14.5px; line-height: 1.25; }
.ach b { font-weight: 600; }
.ach small { color: var(--ink-faint); font-size: 12.5px; }
.ach:not(.on) b { color: var(--ink-faint); }
.ach.on .badge { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 50%, transparent)); }
.badge.locked { opacity: .65; }
.levels { list-style: none; padding: 0; margin: 0; }
.levels li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); opacity: .6; }
.levels li:first-child { border: 0; }
.levels li.on { opacity: 1; }
.levels li.now { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent); border-radius: 10px; }
.levels span { display: flex; flex-direction: column; }
.levels small { color: var(--ink-faint); font-size: 14px; }
.timer-page { text-align: center; }
.candle-stage { height: 300px; display: flex; justify-content: center; margin: 4px 0; }
.ritual-candle { height: 100%; width: auto; overflow: visible; }
.halo { animation: pulse 3s ease-in-out infinite; }
.timer-num { font-family: var(--f-display); font-size: 48px; color: var(--gold-2); margin: 0 0 10px; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px color-mix(in srgb, var(--gold) 50%, transparent); }

/* ——— grimoire ——— */
.toc-page { padding: 34px 20px 24px; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc a { display: flex; align-items: flex-end; gap: 10px; padding: 11px 0; text-decoration: none; color: inherit; }
.toc-ic { color: #a07638; flex: none; width: 24px; }
.toc-t { display: flex; flex-direction: column; min-width: 0; }
.toc-t u { font-size: 20px; text-decoration-color: #c29a52; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; color: #3a2230; }
.toc-t small { font-style: italic; color: var(--parch-dim); font-size: 14.5px; }
.toc-dots { flex: 1; border-bottom: 2px dotted rgba(176,134,66,.55); margin-bottom: 8px; min-width: 16px; }
.toc-n { font-family: var(--f-head); color: #8a6230; font-size: 15px; }
.disclaimer { margin-top: 10px; }
.bos-page { min-height: 60vh; }
.page-title { text-align: center; border: 0 !important; background: none !important; font-size: 38px !important; box-shadow: none !important; margin-top: 10px; }
.page-body { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 20px; line-height: 1.6; min-height: 260px; padding: 4px 2px !important; background-image: repeating-linear-gradient(transparent 0 31px, rgba(176,134,66,.18) 31px 32px) !important; background-attachment: local !important; line-height: 32px; }
.page:not(.parchment) .page-body { background-image: repeating-linear-gradient(transparent 0 31px, var(--line-soft) 31px 32px) !important; }
.sabbat-page { background: linear-gradient(160deg, color-mix(in srgb, var(--th-a) 45%, #140c1a), #0b0710); }
.rites { list-style: none; padding: 0; margin: 0 0 10px; }
.rites .ck { font-size: 18px; }
.big-rate { position: relative; width: 120px; height: 120px; margin: 10px auto; }
.big-rate svg { position: absolute; inset: 0; }
.big-rate div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-rate b { font-family: var(--f-display); font-size: 32px; font-weight: 400; color: var(--gold-2); line-height: 1; }
.big-rate span { font-family: var(--f-head); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.headline { font-size: 21px; font-style: italic; }
.headline b { color: var(--gold-2); font-style: normal; }
.bars { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 56px; gap: 10px; align-items: center; font-size: 15.5px; }
.bar-row.none { opacity: .45; }
.bl { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gold); }
.bl .sym { color: var(--gold-2); }
.bt { height: 10px; border-bottom: 1px solid var(--line); position: relative; }
.bt i { position: absolute; left: 0; bottom: -1px; height: 10px; border-radius: 2px 6px 6px 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 40%, transparent), var(--gold-2)); box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 40%, transparent); }
.bv { text-align: right; font-family: var(--f-head); font-size: 13px; color: var(--gold-2); }
.bv small { display: block; font-size: 10px; color: var(--ink-faint); }
.spark-line { width: 100%; height: 80px; display: block; margin: 8px 0; }
.moodbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 10px; text-align: center; }
.moodbars div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mb-bar { width: 12px; height: 70px; border-radius: 6px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.mb-bar i { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(var(--gold-2), var(--gold)); border-radius: 6px; }
.moodbars small { font-size: 10.5px; color: var(--ink-faint); }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.deck-card { background: none; border: 0; padding: 0; cursor: pointer; }
.deck-card svg { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.deck-card.unseen svg { opacity: .55; }
.card-detail { text-align: center; }
.card-detail svg { width: min(230px, 64vw); height: auto; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 40px color-mix(in srgb, var(--th-c) 25%, transparent); margin-bottom: 10px; animation: flipIn .6s ease; }
.card-detail p { text-align: left; }
.card-detail .label, .card-detail .ask { text-align: center; justify-content: center; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.theme-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font-size: 12.5px; line-height: 1.15; text-align: center; color: var(--ink-dim); padding: 4px 0; }
.theme-sw i { width: 100%; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 25% 25%, var(--c), transparent 55%), radial-gradient(circle at 75% 80%, var(--a), var(--b)); border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
.theme-sw.on i { border-color: var(--gold-2); box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 50%, transparent); }
.theme-sw.on { color: var(--gold-2); }
.theme-sw.locked i { filter: grayscale(.8) brightness(.5); }
.theme-sw small { font-family: var(--f-head); font-size: 9px; color: var(--gold); }
.about .brand-moons { width: 90px; height: 18px; color: #b08642; margin: 0 auto 8px; display: block; }

/* ——— apothecary ——— */
.low-alert { border-color: color-mix(in srgb, #ffb36b 60%, transparent); background: linear-gradient(160deg, rgba(90,48,16,.6), rgba(30,14,10,.7)); }
.low-alert .label { color: #ffc98a; }
.inv { list-style: none; padding: 0; margin: 6px 0 4px; }
.inv li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-soft); padding: 6px 0; }
.inv li:first-child { border: 0; }
.inv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; text-align: left; cursor: pointer; padding: 6px 0; }
.inv-main > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.inv-main small { color: var(--ink-faint); font-size: 14px; }
.inv-main em { color: #ffc98a; }
.inv-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-soft); color: var(--gold); }
.inv li.low .inv-ic { border-color: #ffb36b; box-shadow: 0 0 10px rgba(255,179,107,.4); }
.stepper-n { display: flex; align-items: center; gap: 6px; }
.stepper-n b { min-width: 26px; text-align: center; font-family: var(--f-head); color: var(--gold-2); }
.stepper-n .icon-btn { width: 36px; height: 36px; }
.ref-list { display: grid; gap: 12px; margin-top: 12px; }
.ref-card { position: relative; padding: 16px 16px 12px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20,12,28,.7), rgba(9,6,14,.78)); }
.ref-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ref-card header > div { flex: 1; min-width: 0; }
.ref-card h3 { margin: 0; font-size: 30px; }
.ref-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); background: radial-gradient(circle, color-mix(in srgb, var(--cc, var(--gold)) 22%, transparent), transparent 70%); }
.latin { font-style: italic; color: var(--ink-faint); font-size: 15px; margin: 0; }
.ref-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--f-head); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ref-meta span { display: inline-flex; align-items: center; gap: 4px; }
.safety { font-size: 15.5px; background: rgba(255,255,255,.04); border-left: 3px solid var(--gold); padding: 8px 10px; border-radius: 0 8px 8px 0; margin: 6px 0 0; }
.ref-card.toxic { border-color: rgba(255,110,110,.5); }
.ref-card.toxic .safety { border-left-color: #ff7070; background: rgba(255,80,80,.08); }
.own-tag { display: inline-flex; align-items: center; gap: 3px; font-family: var(--f-head); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #bff0a8; border: 1px solid rgba(160,230,130,.4); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

/* ——— sigils ——— */
.sigil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.sigil-tile { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; color: var(--gold-2); font: inherit; }
.sigil-tile span.small { color: var(--ink-dim); font-style: italic; }
.sigil-svg { overflow: visible; }
.sigil-svg.charged, .sigil-big.charged svg { filter: drop-shadow(0 0 6px var(--gold-2)) drop-shadow(0 0 16px var(--gold)); }
.sigil-big { color: var(--gold-2); margin: 6px 0 10px; }
.sigil-big svg { width: min(230px, 70vw); height: auto; }
.letters { text-align: center; }
.letter-row { font-family: var(--f-head); font-size: 22px; letter-spacing: .22em; word-break: break-all; margin: 0 0 12px; }
.letter-row s { color: var(--ink-faint); opacity: .55; text-decoration-color: #ff8f8f; }
.letter-row.final b { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 3px; border: 1px solid var(--gold); border-radius: 50%; letter-spacing: 0; color: var(--gold-2); font-weight: 500; }
.letter-row.final.small b { width: 30px; height: 30px; font-size: 16px; }
.sigil-canvas { width: 100%; max-width: 420px; margin: 10px auto; aspect-ratio: 1; }
.sigil-canvas svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.wl { font-family: var(--f-head); font-size: 4px; fill: var(--ink-faint); }
.wl.on { fill: var(--gold-2); font-size: 5px; }
.tools .btn { margin: 0; }

/* ——— sheets ——— */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(4,2,8,.6); opacity: 0; transition: opacity .3s; pointer-events: auto; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet {
  position: relative; width: 100%; max-width: 620px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(170deg, color-mix(in srgb, var(--th-a) 30%, #17101f), #0c0811 60%);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + var(--safe-b));
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: auto; box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.sheet-wrap.in .sheet { transform: none; }
.sheet-wrap.in .sheet-bg { opacity: 1; }
.sheet-grip { width: 44px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sheet-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin: 0; line-height: 1.2; }
.sheet-x { position: absolute; top: 12px; right: 14px; z-index: 2; }
.confirm-msg { font-size: 19px; margin: 8px 0 16px; }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--line); transform: translateY(30px) scale(.97); opacity: 0; transition: .3s; }
  .sheet-wrap.in .sheet { opacity: 1; }
}
.celebration { text-align: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--th-c) 30%, #1a1024), #0b0710 70%); }
.celebrate { padding: 16px 0 4px; }
.medal-big { margin: 10px auto; display: flex; justify-content: center; animation: medal 1.2s cubic-bezier(.2,1.4,.4,1); filter: drop-shadow(0 0 26px color-mix(in srgb, var(--gold) 70%, transparent)); }
@keyframes medal { from { transform: scale(.2) rotate(-40deg); opacity: 0 } }
.calm .medal-big { animation: none; }
.gift { font-style: italic; color: var(--gold-2); }
.share-prev { text-align: center; }
.share-prev img { width: min(260px, 70vw); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.6); margin-bottom: 12px; }

/* ——— toasts & fx ——— */
#toasts { position: fixed; left: 0; right: 0; top: calc(64px + var(--safe-t)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(20,12,26,.92); border: 1px solid var(--line); color: var(--ink); font-size: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.5); transform: translateY(-14px); opacity: 0; transition: .35s; max-width: 100%; }
.toast svg { color: var(--gold); flex: none; }
.toast.in { transform: none; opacity: 1; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.sp { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sp 1.2s cubic-bezier(.1,.7,.3,1) forwards; scale: var(--s); filter: drop-shadow(0 0 4px currentColor); }
@keyframes sp { 0% { transform: translate(0,0) rotate(0); opacity: 1 } 100% { transform: translate(var(--dx), var(--dy)) rotate(160deg); opacity: 0 } }
.shimmer { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--gold-2) 35%, transparent) 50%, transparent 70%); background-size: 300% 100%; animation: shimmer 1.6s ease forwards; mix-blend-mode: screen; }
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: -100% 0 } }
.xp-float { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); text-align: center; animation: xpf 2.1s ease forwards; }
.xp-float b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 400; color: var(--gold-2); text-shadow: 0 0 20px color-mix(in srgb, var(--gold) 80%, transparent), 0 2px 6px rgba(0,0,0,.6); }
.xp-float span { font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 6px #000; }
@keyframes xpf { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8) } 15% { opacity: 1; transform: translate(-50%, 0) scale(1) } 75% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, -60px) } }
.calm .xp-float { animation-duration: 1.4s; }

/* ——— bottom nav ——— */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding-bottom: var(--safe-b); background: linear-gradient(to top, color-mix(in srgb, var(--th-b) 96%, #000) 60%, color-mix(in srgb, var(--th-b) 80%, transparent)); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#nav:empty { display: none; }
.nav-inner { display: flex; max-width: 620px; margin: 0 auto; }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; text-decoration: none; color: var(--ink-faint); font-family: var(--f-head); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; position: relative; transition: color .2s; }
#nav a.on { color: var(--gold-2); }
#nav a.on::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); border-radius: 2px; }
#nav a.on .nav-ic { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gold) 70%, transparent)); }
.nav-ic { height: 26px; display: grid; place-items: center; }
.moon-tab .nav-ic { width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; background: radial-gradient(circle, #1d1528, #0c0812); border: 1px solid var(--gold); box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent); color: var(--gold); }

/* ——— onboarding ——— */
.ob { max-width: 520px; margin: 0 auto; }
.ob.page { margin-top: 20px; }
.ob-cover { position: relative; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 24px; padding: 110px 22px 96px; background: linear-gradient(170deg, rgba(20,12,28,.55), rgba(8,5,12,.75)); box-shadow: inset 0 0 0 8px rgba(0,0,0,.2), inset 0 0 0 9px var(--line-soft), 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.cover-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cover-in .brand-moons { width: 90px; height: 18px; color: var(--gold); margin-bottom: 10px; }
.cover-title { margin: 6px 0; font-weight: 400; line-height: 1; }
.cover-title span { display: block; font-family: var(--f-display); font-size: clamp(40px, 12vw, 64px); color: #fff7ea; text-shadow: 0 0 30px color-mix(in srgb, var(--th-c) 50%, transparent); }
.cover-title em { display: block; font-family: var(--f-script); font-style: normal; font-size: clamp(50px, 15vw, 80px); color: var(--gold-2); margin-top: -4px; }
.cover-moon { margin: 10px 0 0; animation: floaty 9s ease-in-out infinite; }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-soft); }
.ob-dots i.on { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.parchment .ob-dots i.on { background: #b08642; }
.ob-answers { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.ob-answers.two, .ob-answers.three { flex-direction: row; }
.ob-answers.two .ob-a, .ob-answers.three .ob-a { flex: 1; text-align: center; padding: 14px 6px; font-size: 16px; }
.ob-a { text-align: left; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 18.5px; transition: .2s; }
.ob-a:hover { background: rgba(255,255,255,.09); border-color: var(--gold); }
.ob-a.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #22140a; border-color: transparent; }
.ob-badge { display: flex; justify-content: center; margin: 10px 0; filter: drop-shadow(0 0 20px rgba(176,134,66,.6)); }
.ob-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ob-list li { display: flex; gap: 10px; align-items: center; }
.ob-list svg { color: var(--gold); flex: none; }

/* ——— larger screens ——— */
@media (min-width: 560px) {
  .spell-grid { grid-template-columns: 1fr 1fr; }
  .cal-dow .long { display: inline; } .cal-dow .short { display: none; }
  .cal-dow { font-size: 9.5px; }
  .cd-lbl, .cd-sab { font-size: 9px; }
  .cd-n { font-size: 17px; }
  .deck { grid-template-columns: repeat(4, 1fr); }
  .ach-grid { grid-template-columns: repeat(4, 1fr); }
  .drawer, .fam-grid { grid-template-columns: repeat(4, 1fr); }
  .notes-2 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .page { padding: 26px 26px; }
  .sigil-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) {
  #view { max-width: 760px; }
  .cal-cell { min-height: 84px; }
}
@media (max-width: 370px) {
  body { font-size: 18px; }
  .cat-pick { grid-template-columns: repeat(4, 1fr); }
  .quick-grid, .sounds { grid-template-columns: repeat(2, 1fr); }
  .moods { grid-template-columns: repeat(4, 1fr); }
  .mood { font-size: 12.5px; }
  .cal-cell { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { html:not(.full) * { scroll-behavior: auto !important; } }
.calm *, .calm *::before, .calm *::after { transition-duration: .01s !important; }
.ob-cover .vine { width: 118px; height: 118px; }

.hero { padding-top: 34px; }
.hero .vine { width: 112px; height: 112px; opacity: .62; }

.spell-page .vine { width: 118px; height: 118px; opacity: .5; }

.rx { border-left: 3px solid var(--gold); padding: 4px 0 2px 10px; margin: 8px 0; }
.rx small { color: var(--ink-faint); }
.planet-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 10px; text-align: center; }
.planet-strip span { display: flex; flex-direction: column; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line-soft); }
.planet-strip b { font-size: 20px; color: var(--gold-2); font-weight: 400; }
.planet-strip small { font-size: 12px; color: var(--ink-dim); }
.planet-strip .r { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* ——— v2: retrogrades, herb of month, guide, library, divination ——— */
.cd-rx { position: absolute; top: 3px; left: 50%; transform: translateX(-10%); font-size: 9px; line-height: 1; color: #ffb3c7; font-family: 'Segoe UI Symbol', serif; }
.cd-rx.direct { color: #b8f0c8; }
.cal-cell .cd-rx + .cd-rx { top: 14px; }
.rx-sym { width: 34px; text-align: center; font-size: 26px; color: var(--gold-2); }
.herb-month { padding-top: 26px; }
.herb-name { font-family: var(--f-script); font-weight: 400; font-size: clamp(44px, 12vw, 60px); color: #3e5a2c; margin: 0; line-height: 1.05; }
.latin-p { font-style: italic; color: var(--parch-dim); margin: 0 0 10px; }
.scroll-card { position: relative; margin: 16px 4px; padding: 20px 18px 14px; background: linear-gradient(160deg, #f1dfb6, #e2c78f); color: #3a2a1a; border-radius: 6px 14px 8px 16px; box-shadow: 0 8px 22px rgba(80,50,20,.3), inset 0 0 30px rgba(120,80,30,.25); transform: rotate(-1deg); }
.scroll-card ol { padding-left: 20px; margin: 8px 0 0; font-size: 17px; }
.scroll-card li { margin-bottom: 6px; }
.ritual-name { font-family: var(--f-head); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; margin: 2px 0 6px; color: #5a3a1a; }
.parchment .safety { background: rgba(255,255,255,.4); }
.guide-link { margin-top: 14px; }
.guide-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.guide-card.now { border-color: var(--gold-2); box-shadow: 0 0 40px color-mix(in srgb, var(--gold) 25%, transparent); }
.leaf-list { padding-left: 0; list-style: none; margin: 0; }
.leaf-list li { position: relative; padding: 4px 0 4px 22px; }
.leaf-list li::before { content: '✦'; position: absolute; left: 2px; top: 5px; color: var(--gold); font-size: 12px; }
.parchment .leaf-list li::before { color: #b08642; }
.num-list { padding-left: 22px; margin: 0; } .num-list li { margin-bottom: 6px; }
.prompt { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin: 6px 0; border: 1px dashed var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-style: italic; }
.lib-btn { margin: 4px 0 6px; }
.lib-tile { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.own-tag.dark { color: #3f6f2f; border-color: rgba(63,111,47,.4); }
.lib-sheet .chant p { font-style: italic; text-align: center; }
.spread { display: grid; gap: 10px; margin: 14px 0; justify-content: center; }
.spread-1 { grid-template-columns: 150px; } .spread-3 { grid-template-columns: repeat(3, 1fr); }
.spread-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.spread-5 .spread-card { width: calc(33.3% - 8px); }
.spread-card { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: dealIn .6s cubic-bezier(.2,.8,.2,1) both; }
.spread-card svg { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.55); }
.spread-card .pos { font-family: var(--f-head); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.spread-card .nm { font-size: 13.5px; line-height: 1.2; color: var(--ink-dim); text-align: center; }
@keyframes dealIn { from { opacity: 0; transform: translateY(30px) rotateY(80deg) scale(.9); } to { opacity: 1; transform: none; } }
.calm .spread-card { animation: none; }
.reading-list { padding-left: 0; list-style: none; margin: 8px 0 14px; }
.reading-list li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.reading-list b { color: var(--gold-2); font-weight: 600; }
.pendulum { position: relative; height: 250px; display: flex; justify-content: center; perspective: 500px; }
.pendulum svg { height: 230px; width: auto; overflow: visible; }
.pendulum .bob { transform-origin: 60px 10px; transform-box: view-box; }
.pendulum.idle .bob { animation: pIdle 4s ease-in-out infinite; }
.pendulum.seeking .bob { animation: pSeek 2.2s ease-in-out; }
.pendulum.swing-no .bob { animation: pNo 1.1s ease-in-out infinite; }
.pendulum.swing-yes .bob { animation: pYes 1.1s ease-in-out infinite; }
.pendulum.swing-maybe .bob { animation: pMaybe 1.6s linear infinite; }
@keyframes pIdle { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes pSeek { 0% { transform: rotate(0) } 20% { transform: rotate(-12deg) } 40% { transform: rotate(9deg) } 60% { transform: rotate(-14deg) scaleY(.94) } 80% { transform: rotate(6deg) } 100% { transform: rotate(0) } }
@keyframes pNo { 0%, 100% { transform: rotate(-22deg) } 50% { transform: rotate(22deg) } }
@keyframes pYes { 0%, 100% { transform: rotateX(35deg) scaleY(.86) } 50% { transform: rotateX(-35deg) scaleY(1.08) } }
@keyframes pMaybe { 0% { transform: rotate(-14deg) scaleY(.92) } 25% { transform: rotate(0) scaleY(1.06) } 50% { transform: rotate(14deg) scaleY(.92) } 75% { transform: rotate(0) scaleY(.82) } 100% { transform: rotate(-14deg) scaleY(.92) } }
.calm .pendulum .bob { animation-duration: 3s !important; }
.pend-legend { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; font-size: 13px; color: var(--ink-faint); font-family: var(--f-head); letter-spacing: .08em; }
.pend-answer { margin: 8px 0; }
.quick-grid { grid-template-columns: repeat(4, 1fr); row-gap: 8px; }

/* ═════════ IM FELL TYPE (brand fonts) ═════════ */
:root {
  --f-display: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --f-head: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --f-body: 'IM Fell English', Georgia, serif;
  --f-script: 'IM Fell English', Georgia, serif;
  --script-style: italic; --script-scale: .78;
}
body { font-weight: 400; font-size: 19px; line-height: 1.52; }
b, strong { font-weight: 700; }
.label { font-size: 13px; letter-spacing: .16em; font-weight: 400; }
.display { font-weight: 400; letter-spacing: .02em; }
.sec-title { font-size: 15px; letter-spacing: .14em; font-weight: 400; }
.btn { font-size: 15px; letter-spacing: .08em; font-weight: 400 !important; }
.btn.sm { font-size: 13.5px; }
.script-title, .script-link, .spell-name, .season, .herb-name, .cover-title em, .brand, .script-input, .page-title, .spell-tile h3, .greet { font-style: var(--script-style); }
.script-title { font-size: calc(clamp(30px, 8vw, 40px) * var(--script-scale) * 1.08); }
.script-title.big { font-size: calc(clamp(40px, 11vw, 56px) * var(--script-scale)); }
.spell-name { font-size: calc(clamp(42px, 12vw, 60px) * var(--script-scale)); line-height: 1.12; }
.spell-tile h3 { font-size: calc(32px * var(--script-scale) * 1.05); }
.season { font-size: calc(clamp(27px, 7vw, 34px) * var(--script-scale) * 1.05); }
.herb-name { font-size: calc(clamp(44px, 12vw, 60px) * var(--script-scale)); }
.cover-title em { font-size: calc(clamp(50px, 15vw, 80px) * var(--script-scale)); }
.brand { font-size: calc(27px * var(--script-scale) * 1.05); }
.script-input { font-size: calc(30px * var(--script-scale)) !important; }
.page-title { font-size: calc(38px * var(--script-scale)) !important; }
.script-link { font-size: calc(1.35em * var(--script-scale) * 1.1); }
.stats3 b, .big-rate b, .timer-num, .cc-g .num { font-family: var(--f-display); }
.stats3 span, .step, .tile-cat, .st, .cd-lbl, .cd-sab, .cal-dow, #nav a, .q-act, .cc-l, .ref-meta, .own-tag, .evo small { letter-spacing: .08em; }
.cal-dow { font-size: 12px; } #nav a { font-size: 12px; } .q-act { font-size: 12px; }
.cc-l { font-size: 11px; } .tile-cat, .st { font-size: 12px; } .cd-lbl, .cd-sab { font-size: 9px; }
.cc-v { font-weight: 400; }

/* ═════════ VINTAGE PAPER ═════════ */
html.paper {
  color-scheme: light; background: #e9dcbc;
  --ink: #2c1f16; --ink-dim: #574232; --ink-faint: #85705a;
  --gold: #946526; --gold-2: #6b4217;
  --line: rgba(112,76,38,.5); --line-soft: rgba(112,76,38,.24);
  --paper-card: rgba(255,249,234,.5);
}
.paper #stars { display: none; }
.paper body { color: var(--ink); }
.paper a { color: #6b3a1f; }
.paper .page {
  background: linear-gradient(170deg, rgba(255,250,238,.62), rgba(246,234,208,.5));
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 24px rgba(90,60,25,.16), 0 1px 3px rgba(90,60,25,.2);
  -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line);
}
.paper .page::before { border-color: var(--line-soft); }
.paper .display, .paper .month-title { color: #2a1c12; text-shadow: none; }
.paper .script-title, .paper .script-link { color: #5b2e1c; }
.paper .season { color: color-mix(in srgb, var(--th-a) 55%, #3a2414); filter: none; }
.paper .greet { color: #5b2e1c; }
.paper .muted { color: var(--ink-faint); }
.paper .divider, .paper .spark { color: var(--gold); }
.paper .vine { color: #8a5d27; opacity: .75; }
.paper .vine.sm { opacity: .6; }
/* the old pastel parchment becomes an older, warmer sheet */
.paper .parchment, .paper .page.parchment {
  background: radial-gradient(ellipse at 50% 40%, #fbf3df, #f0e1bd 70%, #e3cc9c);
  color: var(--parch-ink); border-color: rgba(140,95,45,.55);
}
.paper .parchment::after { opacity: .9; }
/* buttons: ink-dark with gilt edge, like a stamped book cover */
.paper .btn { color: #4a2c14; border-color: var(--line); background: rgba(255,250,236,.55); }
.paper .btn.gold, .paper .fab { background: linear-gradient(180deg, #4a3020, #2b1a10); color: #f4e4bf; border: 1px solid #a5773a; box-shadow: 0 4px 14px rgba(60,35,15,.3), inset 0 1px 0 rgba(255,230,180,.2); }
.paper .btn.gold:hover { box-shadow: 0 6px 20px rgba(60,35,15,.4), inset 0 1px 0 rgba(255,230,180,.25); }
.paper .btn.text { color: #6b3a1f; }
.paper .btn.ghost-dark { background: rgba(255,255,255,.5); color: #5b2e1c; }
.paper .icon-btn { background: rgba(255,250,236,.6); color: #4a2c14; border-color: var(--line-soft); }
.paper .chip { background: rgba(255,250,236,.55); color: var(--ink-dim); border-color: var(--line-soft); }
.paper .chip.on { background: linear-gradient(180deg, #4a3020, #2b1a10); color: #f4e4bf; border-color: #a5773a; }
.paper .chip.own { color: #3f6a2c; border-color: rgba(63,106,44,.45); }
.paper input, .paper textarea, .paper select { background: rgba(255,252,242,.7); color: var(--ink); border-color: var(--line); }
.paper select option { background: #f6ecd4; color: var(--ink); }
.paper ::placeholder { color: #9c8468; }
.paper .search { background: rgba(255,252,242,.7); color: var(--gold); border-color: var(--line); }
.paper .script-input { color: #5b2e1c; }
/* chrome */
.paper #topbar { background: rgba(239,226,196,.9); border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(90,60,25,.15); }
.paper .brand { color: #5b2e1c; } .paper .brand-moons { color: var(--gold); }
.paper .streak-pill { background: rgba(255,250,236,.6); color: #4a2c14; border-color: var(--line-soft); }
.paper .lv-ring circle:first-child { fill: rgba(255,250,236,.7); stroke: rgba(112,76,38,.2); }
.paper .lv-ring { color: #4a2c14; }
.paper #nav { background: linear-gradient(to top, #e6d5ae, rgba(236,222,190,.94)); border-top-color: var(--line); }
.paper #nav a { color: #85705a; } .paper #nav a.on { color: #3a2414; }
.paper #nav a.on::before { background: #946526; box-shadow: none; }
.paper #nav a.on .nav-ic { filter: none; }
.paper .moon-tab .nav-ic { background: radial-gradient(circle, #3a2a3f, #1a121c); border-color: #a5773a; }
.paper .sheet { background: radial-gradient(ellipse at 50% 30%, #fbf3df, #efdfbb 70%, #e2c998); border-color: var(--line); color: var(--ink); box-shadow: 0 -12px 40px rgba(60,35,15,.3); }
.paper .sheet-bg { background: rgba(50,30,12,.35); }
.paper .sheet-head h2 { color: #2a1c12; }
.paper .celebration { background: radial-gradient(circle at 50% 28%, #fff7e2, #eedcb2 60%, #dfc38f); }
.paper .toast { background: rgba(250,242,222,.97); color: var(--ink); border-color: var(--line); box-shadow: 0 6px 20px rgba(60,35,15,.25); }
.paper .xp-float b { color: #6b4217; text-shadow: 0 0 14px rgba(255,240,200,.9), 0 1px 0 #fff; }
.paper .xp-float span { color: #3a2414; text-shadow: 0 0 8px #fff6e0; }
.paper .page-no { color: var(--gold); }
/* small components */
.paper .bubble { background: rgba(255,252,240,.7); border-color: var(--line-soft); }
.paper .bubble::before { background: #fbf4e2; border-color: var(--line-soft); }
.paper .stats3 div, .paper .q-act, .paper .snd, .paper .fam-opt, .paper .drawer-item, .paper .cat-opt, .paper .ob-a, .paper .theme-sw i { background: rgba(255,250,236,.55); border-color: var(--line-soft); }
.paper .stats3 b { color: #5b2e1c; }
.paper .q-act, .paper .snd { color: #6b4217; }
.paper .cat-opt span { color: var(--ink-dim); }
.paper .cat-opt.on { background: color-mix(in srgb, var(--cc) 16%, #fff8e8); }
.paper .cat-opt.on span { color: #2a1c12; }
.paper .cat-opt { color: color-mix(in srgb, var(--cc) 60%, #3a2414); }
.paper .cat-dot { color: color-mix(in srgb, var(--cc) 55%, #3a2414); }
.paper .ob-a.on, .paper .evo li.on span, .paper .quest.done .q-ic { background: linear-gradient(180deg, #4a3020, #2b1a10); color: #f4e4bf; }
.paper .ob-a:hover { background: rgba(255,250,236,.85); }
.paper .snd.on, .paper .fam-opt.on { background: rgba(148,101,38,.14); border-color: #946526; box-shadow: none; }
.paper .xpbar, .paper .bar, .paper .cyc-track i, .paper .mb-bar { background: rgba(112,76,38,.14); }
.paper .xpbar i, .paper .bar i, .paper .cyc-track i.on, .paper .mb-bar i { background: linear-gradient(90deg, #8a5a22, #c08a3e); box-shadow: none; }
.paper .bt i { background: linear-gradient(90deg, rgba(148,101,38,.35), #8a5a22); box-shadow: none; }
.paper .planet-sym { color: #6b4217; text-shadow: none; }
.paper .planet-strip b, .paper .rx-sym { color: #6b4217; }
.paper .planet-strip .r { background: rgba(148,101,38,.12); }
.paper .cal { background: rgba(255,250,236,.35); border-color: #946526; }
.paper .cal-dow { color: #4a2c14; border-bottom-color: #946526; background: color-mix(in srgb, var(--th-a) 10%, transparent); }
.paper .cal-cell.today { background: color-mix(in srgb, var(--th-a) 14%, rgba(255,250,236,.4)); box-shadow: inset 0 0 0 2px #946526; }
.paper .cal-cell.today .cd-n { color: #5b2e1c; }
.paper .cd-moon { color: #6b4217; }
.paper .cd-lbl { color: #6b4217; }
.paper .cd-sab { background: linear-gradient(90deg, #4a3020, #2b1a10); color: #f4e4bf; }
.paper .lg-sab { background: #3a2414; }
.paper .cd-rx { color: #9a2f3f; } .paper .cd-rx.direct { color: #3f6a2c; }
.paper .moon-mini circle { fill: #2f2638; }
.paper .sabbat-banner, .paper .sabbat-page, .paper .low-alert { background: linear-gradient(170deg, rgba(255,250,238,.7), color-mix(in srgb, var(--th-a) 12%, rgba(240,226,196,.7))); color: var(--ink); }
.paper .low-alert { border-color: #b86b2a; } .paper .low-alert .label { color: #8a3f12; }
.paper .inv-main em { color: #9a4a12; }
.paper .ref-card { background: linear-gradient(170deg, rgba(255,250,238,.7), rgba(244,230,200,.6)); }
.paper .ref-card.toxic { border-color: rgba(160,50,40,.55); }
.paper .ref-card.toxic .safety { background: rgba(160,50,40,.07); border-left-color: #a03228; }
.paper .safety { background: rgba(255,255,255,.35); }
.paper .own-tag { color: #3f6a2c; border-color: rgba(63,106,44,.45); }
.paper .ob-cover { background: radial-gradient(ellipse at 50% 40%, #fbf3df, #ecdab2 70%, #dcc28f); box-shadow: 0 16px 50px rgba(60,35,15,.3), inset 0 0 0 8px rgba(255,255,255,.2), inset 0 0 0 9px var(--line-soft); }
.paper .cover-title span { color: #2a1c12; text-shadow: none; }
.paper .cover-title em { color: #6b3a1f; }
.paper .timer-num { color: #5b2e1c; text-shadow: none; }
.paper .big-rate b { color: #5b2e1c; }
.paper .medal-big, .paper .lv-head .medal, .paper .ach.on .badge { filter: drop-shadow(0 4px 10px rgba(90,60,25,.35)); }
.paper .fam-show { filter: drop-shadow(0 8px 16px rgba(60,35,15,.3)); }
.paper .hero-moon .moon { filter: drop-shadow(0 6px 18px rgba(60,35,15,.35)); }
.paper .theme-sw.on { color: #5b2e1c; }
.paper .toc-t u { color: #2c1f16; }
.paper .prompt { color: var(--ink); }
.paper .levels li.now { background: linear-gradient(90deg, rgba(148,101,38,.14), transparent); }
/* keep the dark "night inset" panels (like the black sigil pages), with their own light palette */
.paper .night-inset, .paper .altar-stage, .paper .draw-wrap .card-mini, .paper .sigil-canvas {
  --ink: #f4ecdf; --ink-dim: #cbbfd2; --ink-faint: #a89cb2; --gold: #d8b25c; --gold-2: #f5dfa0;
  --line: rgba(216,178,92,.4); --line-soft: rgba(216,178,92,.2);
}
.paper .night-inset { background: radial-gradient(ellipse at 20% 0%, rgba(120,40,110,.35), transparent 60%), linear-gradient(160deg, #1d1522, #0f0b13); color: var(--ink); box-shadow: 0 6px 18px rgba(40,20,10,.3); }
.paper .sigil-canvas svg circle:first-child { fill: #151019; }
.paper .sigil-tile, .paper .sigil-big { color: #4a2c14; }
.paper .spell-sigil { color: var(--gold-2); }
.paper .letter-row.final b { color: #5b2e1c; border-color: #946526; }
.paper .wl { fill: #a89cb2; } .paper .wl.on { fill: #f5dfa0; }
.paper .pend-legend { color: var(--ink-faint); }
.paper .spread-card .nm { color: var(--ink-dim); }
.paper .shimmer { mix-blend-mode: multiply; background: linear-gradient(115deg, transparent 30%, rgba(200,150,70,.25) 50%, transparent 70%); background-size: 300% 100%; }
.paper .sp { filter: none; }

.paper.ink-opal .label, .paper.ink-opal .script-title { background: linear-gradient(90deg, #6c55a0, #3f6d64, #9a4a7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.paper .chip.ink i { background: linear-gradient(135deg, var(--i1), var(--i2)); }

/* ═════════ REAL PAPER TEXTURE (both modes) ═════════ */
.mode-t { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-soft); background: rgba(0,0,0,.25); color: var(--gold-2); cursor: pointer; }
.paper .mode-t { background: rgba(255,250,236,.6); color: #4a2c14; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-size: 640px; }
html.paper body::before { background-image: url(../img/paper.jpg); mix-blend-mode: multiply; opacity: .9; }
html.night body::before { background-image: url(../img/paper-night.jpg); mix-blend-mode: screen; opacity: .6; }

/* light: every card is a sheet of aged paper with darkened edges */
.paper .page, .paper .ref-card, .paper .sabbat-banner, .paper .sabbat-page, .paper .low-alert, .paper .ob-cover {
  background: linear-gradient(170deg, rgba(255,251,240,.28), rgba(240,224,190,.12)), url(../img/paper.jpg);
  background-size: auto, 640px;
  box-shadow: inset 0 0 34px rgba(120,78,30,.26), inset 0 0 3px rgba(90,58,22,.35), 0 6px 22px rgba(80,50,20,.18), 0 1px 2px rgba(80,50,20,.25);
}
.paper .page:nth-child(3n+1) { background-position: 0 0, 180px 90px; }
.paper .page:nth-child(3n+2) { background-position: 0 0, 420px 310px; }
.paper .parchment, .paper .page.parchment, .paper .spell-tile {
  background: linear-gradient(170deg, rgba(255,248,228,.35), rgba(232,210,165,.2)), url(../img/paper.jpg);
  background-size: auto, 640px; background-position: 0 0, 250px 130px;
  box-shadow: inset 0 0 40px rgba(130,82,28,.32), inset 0 0 3px rgba(90,58,22,.4), 0 6px 22px rgba(80,50,20,.2);
}
.paper .parchment::after { display: none; }
.paper #topbar, .paper #nav, .paper .sheet, .paper .toast { background-image: url(../img/paper-dark.jpg); background-size: 640px; }
.paper #nav { box-shadow: inset 0 8px 16px -10px rgba(90,58,22,.35); }
.paper .sheet { box-shadow: inset 0 0 50px rgba(120,78,30,.3), 0 -12px 40px rgba(60,35,15,.3); }
.paper .celebration { background: radial-gradient(circle at 50% 28%, rgba(255,247,226,.7), rgba(238,220,178,.2) 70%), url(../img/paper.jpg); background-size: auto, 640px; }
.paper .night-inset, .paper .altar-stage { background: radial-gradient(ellipse at 15% 0%, rgba(140,40,130,.3), transparent 60%), url(../img/paper-night.jpg); background-size: auto, 640px; }
.paper .scroll-card { background: linear-gradient(160deg, rgba(241,223,182,.55), rgba(214,184,128,.55)), url(../img/paper-dark.jpg); background-size: auto, 500px; }
.paper .chip, .paper .btn:not(.gold):not(.text), .paper .stats3 div, .paper .q-act, .paper .snd, .paper .ob-a, .paper .cat-opt, .paper .mood, .paper input, .paper textarea, .paper select, .paper .search {
  background-image: linear-gradient(rgba(255,252,242,.45), rgba(255,252,242,.45)), url(../img/paper.jpg); background-size: auto, 640px;
}

/* dark: charcoal watercolour paper, like the black sigil pages */
.night .page, .night .ref-card, .night .sabbat-banner, .night .sabbat-page, .night .low-alert, .night .ob-cover {
  background: linear-gradient(165deg, rgba(40,20,48,.25), rgba(8,5,12,.35)), url(../img/paper-night.jpg);
  background-size: auto, 640px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05), 0 10px 34px rgba(0,0,0,.45);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.night .page:nth-child(3n+1) { background-position: 0 0, 200px 100px; }
.night .page:nth-child(3n+2) { background-position: 0 0, 460px 330px; }
.night .parchment, .night .page.parchment, .night .spell-tile { background-image: radial-gradient(ellipse 60% 45% at 0% 0%, rgba(247,182,210,.45), transparent 70%), radial-gradient(ellipse 55% 40% at 100% 0%, rgba(201,182,255,.4), transparent 70%), radial-gradient(ellipse 55% 45% at 0% 100%, rgba(168,227,220,.35), transparent 70%), radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255,208,168,.4), transparent 70%), url(../img/paper.jpg); background-size: auto, auto, auto, auto, 640px; box-shadow: inset 0 0 36px rgba(120,78,30,.3), 0 8px 26px rgba(0,0,0,.4); }
.night .parchment::after { display: none; }
.night #topbar, .night #nav, .night .sheet, .night .toast { background-image: linear-gradient(rgba(12,8,16,.55), rgba(12,8,16,.55)), url(../img/paper-night.jpg); background-size: auto, 640px; }
.night .night-inset { background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url(../img/paper-night.jpg); background-size: auto, 640px; }
.night .chip, .night input, .night textarea, .night select, .night .search { background-color: rgba(0,0,0,.35); }
