/* Flora CEO: base design system. The black card: Glow's glass and glow, near-black ground, one sharp green.
   Every tab reuses these tokens and primitives; css/<tab>.css only adds what the tab needs. */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #050706; --bg-top: #080B0A; --bg-bottom: #030404;
  --card: rgba(255, 255, 255, .042); --solid: #0E1311; --inset: rgba(255, 255, 255, .065);
  --ink: #F4F7F5; --ink-2: #A9B3AD; --ink-3: #7D8781;
  --line: rgba(255, 255, 255, .085); --line-2: rgba(255, 255, 255, .17);
  --green: #00E27C; --green-2: #00BE68; --green-bg: rgba(0, 226, 124, .13); --green-deep: #2CF09A; --on-green: #02170C;
  --amber: #F5A524; --amber-bg: rgba(245, 165, 36, .13);
  --coral: #FF5C50; --coral-bg: rgba(255, 92, 80, .14); --coral-deep: #FF8F86;
  --gold: #C9B37A; --gold-deep: #DCCB9B; --gold-bg: rgba(201, 179, 122, .12); --gold-line: rgba(201, 179, 122, .32);
  --handle: rgba(255, 255, 255, .22); --slab: #0B0F0D; --slab-2: #171D1A; --on-slab: #FFFFFF;
  --sheen: transparent;
  --scrim: rgba(0, 0, 0, .68);
  --shadow-1: 0 24px 48px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .055);
  --shadow-2: 0 30px 60px -28px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .1);
  --glow: 0 0 18px rgba(0, 226, 124, .36);
  --tabbar-bg: rgba(20, 25, 22, .68);
  --sheet-bg: #0B0F0D;

  /* shape + type */
  --r-xl: 26px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino", "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-num: var(--font-ui);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* layout */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --page-x: 18px;
  --tabbar-h: 66px;
  --tabbar-gap: max(12px, calc(var(--safe-b) - 6px));
  --kb: 0px;

  /* one accent for the whole app */
  --a1: var(--green); --a2: var(--green-2); --a-ink: var(--green-deep);
  --grad: linear-gradient(180deg, #14EE8C, #00D672);
  --grad-soft: var(--green-bg);
  --fill: rgba(255, 255, 255, .06); --fill-2: rgba(255, 255, 255, .11);
  --glass: var(--card); --glass-2: rgba(30, 37, 33, .62); --glass-border: rgba(255, 255, 255, .09);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --success: var(--green); --danger: var(--coral);
  --gold-1: #F3DFA2; --gold-2: #C9B37A; --gold-3: #8F7A44;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); font-synthesis: none; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.42 var(--font-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
.ic { width: 20px; height: 20px; flex: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in srgb, var(--green) 30%, transparent); }

.serif { font-family: var(--font-display); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- the glow behind everything ---------- */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.aura i:nth-child(1) { width: 120vmax; height: 120vmax; left: -66vmax; top: -82vmax; background: radial-gradient(closest-side, rgba(0, 226, 124, .2), transparent); animation: drift-a 26s ease-in-out infinite alternate; }
.aura i:nth-child(2) { width: 100vmax; height: 100vmax; right: -62vmax; top: -44vmax; background: radial-gradient(closest-side, rgba(0, 150, 110, .16), transparent); animation: drift-b 32s ease-in-out infinite alternate; }
.aura i:nth-child(3) { width: 110vmax; height: 110vmax; left: -40vmax; bottom: -88vmax; background: radial-gradient(closest-side, rgba(0, 120, 80, .12), transparent); animation: drift-c 36s ease-in-out infinite alternate; }
.aura::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 6, .35) 50%, var(--bg) 100%); }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.06); } }
@keyframes drift-b { to { transform: translate3d(-7vmax, 9vmax, 0) scale(.95); } }
@keyframes drift-c { to { transform: translate3d(6vmax, -7vmax, 0) scale(1.08); } }

/* ---------- app shell ---------- */
#app { position: relative; z-index: 1; }
.view {
  display: none; width: 100%; max-width: 560px; margin: 0 auto; min-height: 100dvh;
  padding: calc(var(--safe-t) + 10px) var(--page-x) calc(var(--tabbar-gap) + var(--tabbar-h) + 34px);
}
.view.active { display: block; animation: view-in .4s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* every tab opens the same way: the date, your rank, settings */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-date { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top-date .d-s { display: none; }
@media (max-width: 380px) { .top-date .d-l { display: none; } .top-date .d-s { display: inline; } }
.eyebrow { font: 600 11px/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow.gold, .eyebrow.green { color: var(--green-deep); }
.rank-pill {
  position: relative; height: 40px; padding: 0 13px 0 5px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass-2); border: 1px solid var(--glass-border); box-shadow: var(--hi);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  font: 600 14px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink); transition: transform .18s var(--ease);
}
.rank-pill::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; }
.rank-pill:active { transform: scale(.96); }
.rank-pill small { font: 600 10.5px/1 var(--font-ui); letter-spacing: .1em; color: var(--ink-3); margin-right: -3px; }

.title { font: 400 46px/1 var(--font-display); letter-spacing: -.012em; margin: 12px 0 8px; text-wrap: balance; }
.title em { font-style: italic; color: var(--green); padding-right: .04em; }
.subtitle { color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* ---------- sections ---------- */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; min-height: 32px; }
.section-head .link-btn { margin: -8px -2px -8px 0; }
.section-title { font: 400 27px/1.1 var(--font-display); letter-spacing: -.006em; }
.section-meta { font-size: 13.5px; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.link-btn { font: 600 14px/1 var(--font-ui); color: var(--green-deep); padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; gap: .3em; }
.link-btn:active { opacity: .6; }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
}
.card + .card { margin-top: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.card.solid { background: var(--solid); }
/* the black metal card */
.card.hero, .metal {
  color: #fff; overflow: hidden; border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(120% 90% at 88% -12%, rgba(0, 226, 124, .17), transparent 56%),
    radial-gradient(90% 70% at 0% 112%, rgba(255, 255, 255, .055), transparent 60%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #1B211E 0%, #0C100E 44%, #151A18 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 30px 60px -28px #000, 0 0 70px -34px rgba(0, 226, 124, .5);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.card.hero > * { position: relative; }
.card.tappable { cursor: pointer; transition: transform .18s var(--ease); }
.card.tappable:active { transform: scale(.985); }

/* list rows inside a card */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 15.5px; letter-spacing: -.004em; }
.row-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; font-weight: 400; }
.row-end { color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; border-radius: 999px; height: 54px; padding: 0 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16.5px/1 var(--font-ui); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background-color .2s, opacity .2s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 12px 30px -12px rgba(0, 226, 124, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-dark { background: var(--slab); color: var(--on-slab); border: 1px solid var(--line-2); }
.btn-white { background: #fff; color: #06100B; }
.btn-soft { background: var(--fill-2); color: var(--ink); }
.btn-gold { background: var(--gold-bg); color: var(--gold-deep); }
.btn-glass { background: var(--glass-2); color: var(--ink); border: 1px solid var(--glass-border); box-shadow: var(--hi); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn-danger { background: var(--coral-bg); color: var(--coral-deep); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; box-shadow: none; }

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--glass-border); box-shadow: var(--hi); color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); transition: transform .16s var(--ease);
}
.icon-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.plain { background: var(--fill); border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- chips, pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--fill); color: var(--ink-2); border: 1px solid transparent; font: 600 13.5px/1 var(--font-ui); transition: background .2s, color .2s;
}
.chip.on { background: var(--green-bg); color: var(--green-deep); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font: 600 12px/1 var(--font-ui); white-space: nowrap; }
.pill.accent { background: var(--green-bg); color: var(--green-deep); }
.pill.gold { background: var(--gold-bg); color: var(--gold-deep); }
.pill.coral { background: var(--coral-bg); color: var(--coral-deep); }
.pill.on-hero { background: rgba(255, 255, 255, .13); color: #fff; }

/* ---------- forms ---------- */
.field {
  width: 100%; height: 50px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--fill);
  padding: 0 15px; font: 400 16px/1.3 var(--font-ui); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { border-color: color-mix(in srgb, var(--green) 70%, transparent); box-shadow: 0 0 0 4px rgba(0, 226, 124, .12); }
textarea.field { height: auto; min-height: 112px; padding: 13px 15px; line-height: 1.5; resize: none; display: block; }
.label { display: block; font: 600 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 20px 4px 9px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: 16px; background: var(--fill); }
.seg button { height: 40px; border-radius: 12px; font: 600 13.5px/1 var(--font-ui); color: var(--ink-2); transition: background .2s, color .2s; }
.seg button.on { background: rgba(255, 255, 255, .13); color: var(--ink); }

.switch { position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px; background: var(--fill-2); transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- progress ---------- */
.bar { position: relative; height: 5px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--green); box-shadow: 0 0 10px rgba(0, 226, 124, .6); transition: width .7s var(--ease); }
.bar.thin { height: 3px; }
.hero .bar { background: rgba(255, 255, 255, .13); }
.ring .ring-track { stroke: var(--fill-2); }
.ring .ring-fill { stroke: var(--green); transition: stroke-dashoffset .9s var(--ease), stroke-opacity .2s; }

/* the check every tab shares */
.check {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  border: 1.5px solid var(--line-2); background: transparent; transition: background .18s, border-color .18s, box-shadow .25s, transform .3s var(--spring);
}
.check::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.check svg { width: 15px; height: 15px; color: var(--on-green); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .3s var(--spring); }
.check.on { background: var(--green); border-color: var(--green); box-shadow: var(--glow); }
.check.on svg { opacity: 1; transform: none; }
.check:active { transform: scale(.9); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 26px 18px 24px; }
.empty-mark { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green-deep); }
.empty-mark .ic { width: 24px; height: 24px; }
.empty-title { font: 400 24px/1.15 var(--font-display); }
.empty-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; line-height: 1.45; }

/* ---------- tab bar: Glow's floating glass pill ---------- */
.tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: var(--tabbar-gap); transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px); height: var(--tabbar-h); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  border-radius: 999px; background: var(--tabbar-bg); border: 1px solid var(--glass-border); box-shadow: 0 24px 50px -18px #000, var(--hi);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  transition: transform .35s var(--ease), opacity .3s;
}
.tabbar.hide { transform: translate(-50%, calc(100% + 40px)); opacity: 0; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 999px; color: var(--ink-3); font: 600 11px/1 var(--font-ui); transition: color .2s; }
.tab svg { width: 25px; height: 25px; transition: transform .4s var(--spring); }
.tab.active { color: var(--ink); }
.tab.active svg { color: var(--green); transform: translateY(-1px) scale(1.05); }
.tab .ic-fill { fill: var(--green); opacity: 0; transition: opacity .25s; }
.tab.active .ic-fill { opacity: 1; }
.tab .ic-knock { transition: stroke .25s; }
.tab.active .ic-knock { stroke: var(--on-green); }
.tab-glow {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 999px;
  background: rgba(0, 226, 124, .13); box-shadow: inset 0 0 0 1px rgba(0, 226, 124, .16);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--spring);
}

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); opacity: 0; transition: opacity .32s var(--ease); }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 71; left: 0; right: 0; bottom: var(--kb); margin: 0 auto; width: 100%; max-width: 560px;
  max-height: calc(100dvh - var(--safe-t) - 18px - var(--kb)); display: flex; flex-direction: column;
  background: var(--sheet-bg); border-radius: 30px 30px 0 0; border-top: 1px solid var(--glass-border); box-shadow: 0 -24px 60px -20px #000;
  transform: translateY(105%); transition: transform .44s cubic-bezier(.2, .9, .2, 1); padding-bottom: var(--safe-b); overflow: hidden;
}
.sheet.open { transform: none; }
.sheet.dragging { transition: none; }
.sheet.full { top: 0; bottom: 0; max-height: none; height: 100dvh; border-radius: 0; border-top: 0; padding-bottom: 0; background: var(--bg); }
.sheet.full .sheet-head { padding-top: calc(var(--safe-t) + 8px); }
.sheet-grab { flex: none; width: 40px; height: 5px; border-radius: 3px; background: var(--handle); margin: 9px auto 0; }
.sheet.full .sheet-grab { display: none; }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px 6px; touch-action: none; }
.sheet-title { font: 400 31px/1.08 var(--font-display); letter-spacing: -.008em; }
.sheet:not(.full) > .sheet-head:not(:has(.sheet-title)) { position: relative; z-index: 2; margin-bottom: -48px; padding-bottom: 0; pointer-events: none; }
.sheet:not(.full) > .sheet-head:not(:has(.sheet-title)) .top-actions { pointer-events: auto; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 20px 26px; }
.sheet.full .sheet-body { padding-bottom: calc(var(--safe-b) + 28px); }
.sheet-foot { flex: none; padding: 10px 20px 14px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(var(--tabbar-gap) + var(--tabbar-h) + 14px); display: grid; justify-items: center; pointer-events: none; padding: 0 20px; }
.sheet-open .toasts { bottom: calc(var(--safe-b) + 24px); }
.toast {
  pointer-events: auto; max-width: 100%; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px;
  background: rgba(30, 37, 33, .92); border: 1px solid var(--glass-border); color: var(--ink); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font: 600 14.5px/1.25 var(--font-ui); opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .28s var(--ease), transform .38s var(--spring);
}
.toast.show { opacity: 1; transform: none; }
.toast-action { font-weight: 700; color: var(--green-deep); padding: 4px 6px; }

/* ---------- win effects ---------- */
.fx-canvas { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100vw; height: 100dvh; }
.float-pts { position: fixed; z-index: 96; pointer-events: none; font: 700 15px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--green); text-shadow: 0 0 14px rgba(0, 226, 124, .7); }
/* God: a slow light from below, and the verse */
.glory { position: fixed; inset: 0; z-index: 94; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 34px; overflow: hidden; background: rgba(2, 3, 3, 0); animation: glory-dim 3.6s ease forwards; cursor: pointer; }
.glory-rays { position: absolute; left: 50%; bottom: -100vmax; width: 200vmax; height: 200vmax; margin-left: -100vmax; border-radius: 50%; filter: blur(5px); background: repeating-conic-gradient(from 3deg, rgba(255, 238, 200, 0) 0deg, rgba(255, 238, 200, .2) 5deg, rgba(255, 238, 200, 0) 10deg, rgba(255, 238, 200, 0) 17deg); -webkit-mask-image: radial-gradient(closest-side, #000 6%, rgba(0, 0, 0, .5) 42%, transparent 88%); mask-image: radial-gradient(closest-side, #000 6%, rgba(0, 0, 0, .5) 42%, transparent 88%); animation: glory-rays 3.6s ease forwards; }
.glory-sun { position: absolute; left: 50%; bottom: -46vmax; width: 92vmax; height: 92vmax; margin-left: -46vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 248, 226, .92), rgba(255, 226, 160, .38) 42%, transparent 72%); animation: glory-sun 3.6s ease forwards; }
.glory-verse { position: relative; font: italic 400 29px/1.22 var(--font-display); color: #FFF8E8; max-width: 340px; text-wrap: balance; text-shadow: 0 2px 26px rgba(0, 0, 0, .75); animation: glory-text 3.6s ease forwards; }
.glory-ref { position: relative; font: 600 11px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: #F0DDAE; margin-top: 16px; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); animation: glory-text 3.6s ease forwards; }
@keyframes glory-dim { 0% { background: rgba(2, 3, 3, 0); } 14%, 78% { background: rgba(2, 3, 3, .92); } 100% { background: rgba(2, 3, 3, 0); } }
@keyframes glory-rays { 0% { opacity: 0; transform: rotate(-7deg) scale(.86); } 26% { opacity: 1; } 78% { opacity: .9; } 100% { opacity: 0; transform: rotate(7deg) scale(1.06); } }
@keyframes glory-sun { 0% { opacity: 0; transform: translateY(12vh) scale(.8); } 30% { opacity: 1; } 78% { opacity: .92; } 100% { opacity: 0; transform: translateY(0) scale(1.1); } }
@keyframes glory-text { 0%, 16% { opacity: 0; transform: translateY(12px); } 34%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.glory-halo { position: fixed; z-index: 95; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 240, 205, .95), 0 0 26px 6px rgba(255, 232, 180, .55), inset 0 0 18px rgba(255, 244, 214, .6); }

/* ---------- misc ---------- */
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.spacer { height: 16px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crest { display: inline-block; flex: none; position: relative; }
.crest svg { display: block; overflow: visible; }

@media (max-width: 360px) { :root { --page-x: 16px; } .title { font-size: 40px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aura i { animation: none; }
}
