/* Besotted. Every color and typeface comes from the look tokens applyLook() sets on :root.
   Defaults below are the locked look (Midnight rose, Gloock + Figtree), so the first paint already matches. */
:root {
  --bg: #100f1f; --surface: #17162b; --line: #2a2744; --text: #efeaf7; --muted: #a39fb8;
  --accent: #ec8fa8; --him: #232041; --paper: #1c1a33; --her: #ec8fa8; --her-text: #2a1020;
  --display: "Gloock", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --danger: #c2463d; --danger-text: #e8847b;
  --gutter: 16px; --max: 560px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-scheme="light"] { --danger-text: #a8322a; }

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
#app { max-width: var(--max); margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 600px) { #app { border-inline: 1px solid var(--line); } }

h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
input, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: .8; }

/* ---------------------------------------------------------------- shared */

.pad { padding: 0 var(--gutter) calc(var(--safe-bottom) + 28px); }
.stack { display: grid; gap: 14px; padding-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600;
  transition: transform .15s var(--ease), background-color .2s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--her-text); border-color: transparent; }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.danger-outline { background: transparent; border-color: var(--danger); color: var(--danger-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.linkbtn { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.danger-text { color: var(--danger-text); justify-self: start; font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px;
}
.pill .ico { width: 16px; height: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px; color: var(--text); }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn.small { width: 34px; height: 34px; }
.icon-btn.small .ico { width: 16px; height: 16px; }
.icon-btn.over {
  position: absolute; top: calc(var(--safe-top) + 8px); left: 8px; z-index: 2;
  background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ico { width: 22px; height: 22px; flex: none; }
.ico.inline { width: 18px; height: 18px; vertical-align: -3px; }
.chip {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.ai {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  padding: 2px 5px; border-radius: 4px; border: 1px solid currentColor; color: var(--muted); vertical-align: 1px;
}
.tag {
  font: 700 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px; padding: 3px 5px;
}
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 20px var(--gutter) 0; }
.center { text-align: center; }
.err { color: var(--danger-text); font-size: 14px; }
.empty { color: var(--muted); font-style: italic; margin: 0; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.section { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; }
.confirm {
  display: grid; gap: 10px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.confirm p { margin: 0; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.wordmark { font-family: var(--display); font-size: 24px; letter-spacing: .01em; color: var(--text); }
.wordmark.big { font-size: clamp(46px, 14vw, 66px); line-height: 1; }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(var(--safe-top) + 8px) 8px 8px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.settings .topbar { padding-left: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.topbar-title { font: 400 20px/1 var(--display); margin: 0; }
.topbar > span:empty { width: 44px; }

.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: var(--gutter); }
.boot p { margin: 0; color: var(--muted); max-width: 30ch; }
.noscript { padding: 24px; }
.boot[aria-busy="true"] .wordmark { animation: breathe 1.8s ease-in-out infinite; }

.toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 64px); transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: min(90vw, 420px); padding: 10px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 8px 30px rgb(0 0 0 / .3);
  animation: toast .25s var(--ease);
}

/* ---------------------------------------------------------------- portraits */

.portrait { position: relative; overflow: hidden; background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-card { aspect-ratio: 3 / 4; }
.portrait-hero { aspect-ratio: 3 / 4; width: 100%; max-height: 74dvh; }
.portrait-hero img { object-position: 50% 25%; }
.portrait-photo { aspect-ratio: 3 / 4; border-radius: 18px; margin: 0 0 10px; }
.portrait-avatar { width: 40px; height: 40px; border-radius: 50%; transition: box-shadow .4s var(--ease); }
.portrait-avatar img { object-position: 50% 20%; }
.portrait.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(110% 80% at 28% 18%, color-mix(in srgb, var(--char) 58%, var(--bg)) 0%, transparent 62%),
    radial-gradient(90% 70% at 85% 95%, color-mix(in srgb, var(--char) 30%, var(--bg)) 0%, transparent 70%),
    var(--bg);
}
.ph-initial { font-family: var(--display); font-size: clamp(56px, 18vw, 110px); line-height: 1; color: color-mix(in srgb, var(--char) 30%, var(--text)); }
.portrait-avatar .ph-initial { font-size: 19px; }
.portrait-avatar.mood-smile, .portrait-avatar.mood-tender { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 80%, transparent); }
.portrait-avatar.mood-flustered { box-shadow: 0 0 0 2px #e27d8a; }
.portrait-avatar.mood-smirk { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------------------------------------------------------------- onboarding */

.onb {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: calc(var(--safe-top) + 24px) var(--gutter) calc(var(--safe-bottom) + 24px);
  background: radial-gradient(90% 55% at 50% 16%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%);
}
.onb-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.onb-tag { font: 400 21px/1.3 var(--display); color: var(--muted); margin: 12px 0 0; }
.onb-mark { text-align: center; margin-bottom: auto; padding-top: 16px; }
.onb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px 20px; display: grid; gap: 16px; animation: rise .35s var(--ease); }
.onb-card h1 { font: 400 29px/1.15 var(--display); margin: 0; }
.onb-card p { margin: 0; color: color-mix(in srgb, var(--text) 84%, var(--muted)); }
.lead { font-size: 17px; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.facts li { padding-left: 18px; position: relative; color: color-mix(in srgb, var(--text) 84%, var(--muted)); }
.facts li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.facts b { color: var(--text); }
.heat-list { display: grid; gap: 8px; }
.heat-opt { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 2px; transition: border-color .2s, background-color .2s; }
.heat-opt b { font-weight: 600; }
.heat-opt span { font-size: 14px; color: var(--muted); }
.heat-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }

/* ---------------------------------------------------------------- cast */

.cast-screen { padding-bottom: calc(var(--safe-bottom) + 24px); }
.cast-title { font: 400 clamp(27px, 7.4vw, 36px)/1.12 var(--display); margin: 6px var(--gutter) 18px; }
.cast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--gutter); }
.cast-card {
  position: relative; display: block; text-align: left; border-radius: 18px; overflow: hidden; background: var(--surface);
  transition: transform .2s var(--ease); animation: rise .4s var(--ease) both;
}
.cast-card:nth-child(2) { animation-delay: .04s; } .cast-card:nth-child(3) { animation-delay: .08s; }
.cast-card:nth-child(4) { animation-delay: .12s; } .cast-card:nth-child(5) { animation-delay: .16s; } .cast-card:nth-child(6) { animation-delay: .2s; } .cast-card:nth-child(7) { animation-delay: .24s; }
.cast-card:active { transform: scale(.985); }
.cast-card-text {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 48px 12px 12px;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 94%, transparent) 38%, transparent);
}
.cast-card-text b { font: 400 23px/1.1 var(--display); }
.cast-role { font-size: 13px; color: var(--muted); line-height: 1.3; }
.cast-preview { font-size: 12.5px; color: color-mix(in srgb, var(--text) 78%, var(--muted)); margin-top: 5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge {
  position: absolute; top: 10px; left: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent); color: var(--her-text); font-size: 13px; font-weight: 700;
}

/* ---------------------------------------------------------------- his profile */

.profile-hero { position: relative; }
.profile-hero-text { position: absolute; inset: auto 0 0 0; padding: 72px var(--gutter) 16px; background: linear-gradient(to top, var(--bg) 16%, transparent); }
.profile-hero-text h1 { font: 400 clamp(36px, 10.5vw, 48px)/1.04 var(--display); margin: 10px 0 6px; }
.role { margin: 0; color: var(--muted); font-size: 14px; }
.tagline { font: 400 21px/1.35 var(--display); margin: 8px 0 12px; }
.bio { color: color-mix(in srgb, var(--text) 86%, var(--muted)); margin: 0 0 22px; }
.age { font-family: var(--body); font-size: .56em; font-weight: 400; color: var(--muted); margin-left: .4em; letter-spacing: 0; }
.prompt { padding: 16px 18px; margin: 0 0 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.prompt-q { margin: 0 0 6px; font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prompt-a { margin: 0; font: 400 21px/1.35 var(--display); }
.profile-cta {
  position: sticky; bottom: 0; z-index: 3; padding: 18px var(--gutter) calc(var(--safe-bottom) + 14px);
  background: linear-gradient(to top, var(--bg) 62%, transparent);
}

/* ---------------------------------------------------------------- settings */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; display: grid; gap: 14px; }
.card h2 { font: 400 21px/1.2 var(--display); margin: 0; display: flex; align-items: center; gap: 8px; }
.card p { margin: 0; }
.card textarea { background: var(--bg); }
.card input { background: var(--bg); }
.card > .btn { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: var(--bg); transition: border-color .2s, background-color .2s; }
.chipbtn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.icon-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-pick { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.icon-pick svg { width: 100%; height: 100%; display: block; }
.icon-pick.on { border-color: var(--accent); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg button { min-height: 38px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button.on { background: var(--accent); color: var(--her-text); font-weight: 600; }

/* ---------------------------------------------------------------- sheets */

.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgb(0 0 0 / .52); animation: fade .2s var(--ease);
}
.sheet {
  width: 100%; max-width: var(--max); max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding-bottom: var(--safe-bottom); animation: rise .3s var(--ease);
}
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 2px 20px; flex: none; }
.sheet-head h2 { font: 400 23px/1.2 var(--display); margin: 0; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 22px; display: grid; gap: 14px; }

.menu-list { display: grid; gap: 2px; margin: 0 -8px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px; border-radius: 12px; text-align: left; }
button.menu-item:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.menu-item .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.menu-item.rate { flex-wrap: wrap; }
.rate-btns { display: flex; gap: 6px; margin-left: auto; }

.note-group h3 { margin: 0 0 8px; font: 600 11.5px/1 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.note-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.note { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.note span { flex: 1; font-size: 15px; line-height: 1.4; }
.note.fresh { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.note-add { display: flex; gap: 8px; align-items: center; }
.note-add input { background: var(--bg); }
.summary summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.summary p { margin: 8px 0 0; font: 400 16px/1.5 var(--display); }

.paywall-lead { font: 400 21px/1.3 var(--display); margin: 0; }
.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.perks li { padding-left: 26px; position: relative; }
.perks li::before { content: "✦"; position: absolute; left: 2px; color: var(--accent); }
.price { text-align: center; font-size: 15px; color: var(--muted); }
.price b { color: var(--text); font: 400 25px/1 var(--display); }

/* ---------------------------------------------------------------- chat */

.chat { height: 100dvh; display: flex; flex-direction: column; }
.chat-head {
  flex: none; display: flex; align-items: center; gap: 4px; padding: calc(var(--safe-top) + 6px) 4px 6px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px; border-radius: 12px; }
.who-text { display: grid; min-width: 0; }
.who-text b { font: 400 20px/1.15 var(--display); }
.who-text > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.him-wrap, .her-wrap { display: flex; flex-direction: column; gap: 4px; }
.him-wrap { align-items: flex-start; }
.her-wrap { align-items: flex-end; margin: 8px 0; }
.b {
  max-width: min(84%, 420px); padding: 10px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.42; animation: pop .22s var(--ease);
}
.b.him { background: var(--him); color: var(--text); align-self: flex-start; }
.b.her { background: var(--her); color: var(--her-text); align-self: flex-end; }
.b.live { animation: none; }
.b.photo {
  display: block; width: min(62vw, 232px); aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border-radius: 18px;
  background: var(--him); border: 1px solid var(--line);
}
.b.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b.photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-view {
  position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: rgb(0 0 0 / .92);
  padding: calc(var(--safe-top) + 8px) 0 calc(var(--safe-bottom) + 8px); animation: pop .18s var(--ease);
}
.photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-close { position: absolute; top: calc(var(--safe-top) + 8px); right: 8px; color: #fff; background: rgb(0 0 0 / .4); }
[data-bubble="letter"] .b.him {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px;
  font-family: var(--display); font-size: 17.5px; line-height: 1.45; padding: 12px 16px;
}
[data-bubble="letter"] .b.her { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 18px 4px 18px 18px; }
[data-bubble="crisp"] .b { border-radius: 18px; padding: 8px 13px; line-height: 1.36; }
[data-bubble="crisp"] .him-wrap .b:last-of-type { border-bottom-left-radius: 5px; }
[data-bubble="crisp"] .her-wrap .b:last-of-type { border-bottom-right-radius: 5px; }
[data-bubble] .b.photo { padding: 0; border-radius: 18px; }

.voice-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; margin: 2px 0 6px 2px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.voice-btn .ico { width: 14px; height: 14px; }
.voice-btn.on { color: var(--accent); border-color: var(--accent); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 15px 16px; border-radius: 20px; background: var(--him); animation: pop .22s var(--ease); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

.failed { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--danger-text); }

.matched { align-self: center; margin: 6px 0 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.stamp { align-self: center; margin: 12px 0 4px; font-size: 11.5px; color: var(--muted); text-align: center; }
.sys-card { margin: 10px 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }

.quota { flex: none; margin: 0; padding: 6px 16px 0; font-size: 12px; color: var(--muted); text-align: center; background: var(--bg); }
.composer {
  flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(var(--safe-bottom) + 8px);
  border-top: 1px solid var(--line); background: var(--bg);
}
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 10px 16px; line-height: 1.4; }
.send {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--her-text); transition: transform .15s var(--ease), opacity .2s;
}
.send:active:not(:disabled) { transform: scale(.92); }
.send:disabled { opacity: .35; }

/* ---------------------------------------------------------------- motion */

@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
@keyframes toast { from { transform: translate(-50%, -10px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .45; } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
