:root {
  color-scheme: dark;
  --void: #100e19;
  --text: #fff4fa;
  --text-2: #e6d9e7;
  --text-3: #c0aec5;
  --text-4: #a095b0;
  --coral: #ffb49d;
  --gold: #ffd2a6;
  --magenta: #ffa6cc;
  --ok: #89e8c9;
  --vi: linear-gradient(123deg, #ffd1ad, #ed94bd 55%, #aba3ff);
  --vi-soft: linear-gradient(125deg, #633958, #483c71);
  --glass-card: linear-gradient(155deg, rgba(53, 42, 66, .88), rgba(28, 24, 43, .94));
  --glass-raised: linear-gradient(155deg, #49324f, #29223f);
  --edge: rgba(249, 209, 250, .29);
  --edge-soft: rgba(249, 217, 252, .14);
  --hi: inset 0 1px rgba(255,255,255,.18);
  --sh-color: 0 12px 30px -14px #f184bc6b;
  --r: 18px;
  --r-l: 24px;
  --spring: cubic-bezier(.22,1,.36,1);
  --spring-bounce: cubic-bezier(.34,1.4,.64,1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-start: env(safe-area-inset-left, 0px);
  --safe-end: env(safe-area-inset-right, 0px);
  --gutter: clamp(.875rem, 3.1vw, 2.5rem);
  --dock-height: 66px;
  --header-height: 60px;
  --visual-height: var(--visual-viewport-height, 100vh);
  --chrome-background: linear-gradient(154deg, #51375299, #30243ebf 52%, #1b192ccf);
  --chrome-solid: linear-gradient(154deg, #3b2d49, #241c34 62%, #1a1729);
  --chrome-filter: saturate(1.27) blur(6px);
  --chrome-shadow: 0 12px 29px #09061071, inset 0 1px #f9cffa49, inset 0 -1px #d39ffd23;
  --display: "Aptos Display", "Segoe UI", system-ui, sans-serif;
}
@supports (height: 100dvh) {
  :root { --visual-height: var(--visual-viewport-height, 100dvh); }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-inline-size: 0; scroll-padding-top: calc(var(--safe-top) + var(--header-height) + 22px); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font: 1rem/1.55 "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(ellipse at 16% 0%, #2e2039 0%, transparent 45%),
    radial-gradient(ellipse at 100% 14%, #251c34 0%, transparent 40%),
    var(--void);
  background-repeat: no-repeat;
  background-size: 100% 850px;
  accent-color: #ec9ec9;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .55; }
button, a, label { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
svg { vertical-align: middle; }
[hidden] { display: none !important; }
.hide { display: none !important; }
.muted { color: var(--text-3); }
.svg-defs { position: absolute; overflow: hidden; pointer-events: none; }
::selection { background: #904871; color: #fff; }
:focus-visible { outline: 2px solid #ffc4df; outline-offset: 3px; }
.skip {
  position: fixed;
  inset: max(8px, var(--safe-top)) auto auto max(8px, var(--safe-start));
  z-index: 100;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  border-radius: 11px;
  color: #261629;
  background: #ffd3e3;
}
.skip:focus { transform: none; }

.g {
  position: relative;
  min-inline-size: 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r);
  background: var(--glass-card);
  box-shadow: inset 0 1px #f6dbfc13, 0 10px 30px #07050e28;
}
.g.soft { background: #f2cefa0a; }
.g.raised { background: var(--glass-raised); }
.press { transition: transform .2s var(--spring), border-color .2s, background-color .2s; }
.press:active { transform: scale(.98); }
@media (hover: hover) {
  :is(.g.press, .chap, .collect:has(a), .settings-button):hover { border-color: #ffc1e76b; }
}

.view { min-inline-size: 0; }
.view:focus { outline: none; }
.view[data-dir="fwd"] { animation: view-in .32s var(--spring) both; }
.view[data-dir="back"] { animation: view-in .32s var(--spring) both; --enter-x: -.7rem; }
@keyframes view-in {
  from { opacity: .73; transform: translateX(var(--enter-x, .7rem)); }
  to { opacity: 1; transform: translateX(0); }
}
.bar > span::after { animation: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; }

