/*
 * NimJar.
 *
 * Design direction, fixed before any of this was written:
 *   material     printed toy packaging: thick navy outlines, a hard shadow under
 *                everything you can press, soft gradient card stock
 *   composition  one big card leads — the total, a bar showing where your NIM
 *                is, and the actions. Everything else sits calmly below it
 *   structure    a wallet statement: one hero number, three buckets, a short
 *                list of what happened, each linked to the chain
 *   feeling      friendly and in hand. Nothing flashes; the mascot does the
 *                emoting so the numbers don't have to
 *
 * Colours are Nimiq's own (nimiq-style), fonts are Nimiq's own (Mulish, Fira Mono).
 */

:root {
  --screen: #FFFFFF; --surface: #FFFFFF;
  --text: #1F2348; --muted: #6E7191; --rule: #ECECF2;
  --outline: #1F2348; --pill: #1F2348; --pill-text: #FFFFFF;
  --gold: #E9B213; --gold-soft: #FDF1C7;
  --blue: #0582CA; --blue-soft: #D9ECF8;
  --green: #21BCA5; --green-soft: #D4F3EE;
  --red: #D94432; --red-soft: #FBE3DF; --red-text: #B8321F; --gain: #127A6B;
  --card: linear-gradient(165deg, #FDF1C7 0%, #FCE9D6 48%, #DCEBFA 100%);
  --dim: rgba(14, 16, 48, .45);
  --stage: #E9B213; --stage-text: #1F2348; --bezel: #0E1030;
  --page: #E9B213; --band: #FFF9EA; --band-text: #1F2348;
  --display: "Mulish", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fira Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --screen: #1F2348; --surface: #282D5A;
    --text: #F4F4F8; --muted: #A3A6C4; --rule: #343A6E;
    --outline: #07081A; --pill: #F4F4F8; --pill-text: #1F2348;
    --gold-soft: #4A3D17; --blue-soft: #16395A; --green-soft: #134744; --red-soft: #4D2230; --red-text: #FF7B69; --gain: #6FE3CF;
    --card: linear-gradient(165deg, #4B3E1F 0%, #3A3050 50%, #1E3F66 100%);
    --dim: rgba(0, 0, 0, .55);
    --stage: #151833; --stage-text: #F4F4F8; --bezel: #05061A;
    --page: #151833; --band: #1F2348; --band-text: #F4F4F8;
  }
}
:root[data-theme="dark"] {
  --screen: #1F2348; --surface: #282D5A;
  --text: #F4F4F8; --muted: #A3A6C4; --rule: #343A6E;
  --outline: #07081A; --pill: #F4F4F8; --pill-text: #1F2348;
  --gold-soft: #4A3D17; --blue-soft: #16395A; --green-soft: #134744; --red-soft: #4D2230; --red-text: #FF7B69; --gain: #6FE3CF;
  --card: linear-gradient(165deg, #4B3E1F 0%, #3A3050 50%, #1E3F66 100%);
  --dim: rgba(0, 0, 0, .55);
  --stage: #151833; --stage-text: #F4F4F8; --bezel: #05061A;
  --page: #151833; --band: #1F2348; --band-text: #F4F4F8;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
/* hidden must win over any display rule (.earn is flex) */
[hidden] { display: none !important }
html { background: var(--screen) }
body {
  margin: 0; background: var(--screen); color: var(--text);
  font: 600 16px/1.45 var(--display); -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
.app { max-width: 460px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(150px + env(safe-area-inset-bottom)) }
button { font: inherit; color: inherit }
button:focus-visible, a:focus-visible, input:focus-visible, .agree:focus-within { outline: 3px solid var(--blue); outline-offset: 2px }

/* header */
.top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 18px 12px; border-bottom: 1.5px solid var(--rule) }
.top .name { font-size: 22px; font-weight: 900; letter-spacing: -.02em; flex: 1 }
.mode { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--outline); border-radius: 999px; padding: 3px 10px 3px 8px; display: flex; align-items: center; gap: 6px; background: var(--surface) }
.mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted) }
.mode.live { background: var(--green-soft) }
.mode.live i { background: var(--green) }
.albie { flex: none; display: block }

/* the big card */
.card { margin: 16px 16px 0; border: 2.5px solid var(--outline); border-radius: 34px; background: var(--card); padding: 22px 16px 16px; box-shadow: 0 5px 0 var(--outline); display: grid; gap: 16px }
.total { text-align: center; display: grid; gap: 2px }
.total .label { font-weight: 800; font-size: 15px }
.total .big { font-size: 44px; font-weight: 900; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
.total .big small { font-size: 24px; color: var(--muted); letter-spacing: -.01em; font-weight: 800 }
.total .sub { font-size: 14px; font-weight: 700; color: var(--muted); text-wrap: balance }
.split { background: var(--surface); border: 2px solid var(--outline); border-radius: 22px; padding: 12px 12px 10px; display: flex; gap: 6px }
.seg { display: grid; gap: 5px; min-width: 0 }
.seg .k { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap }
.seg .bar { height: 26px; border: 2px solid var(--outline); border-radius: 9px }
.seg .v { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap }
.seg.zero .bar { border-style: dashed; background: transparent !important; border-color: var(--muted) }
.seg.zero .v { color: var(--muted) }
.pills { display: flex; gap: 8px }
.pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 999px; border: 0; background: var(--pill); color: var(--pill-text); font-weight: 800; font-size: 15.5px; cursor: pointer; white-space: nowrap }
.pill svg { width: 17px; height: 17px }
.pill:disabled { opacity: .45; cursor: default }

/* sections */
.sec { padding: 22px 20px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
.sec h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; text-wrap: balance }
.hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.45 }
.field { display: flex; align-items: baseline; gap: 8px; border: 2.5px solid var(--outline); border-radius: 20px; padding: 12px 16px; background: var(--surface); box-shadow: 0 4px 0 var(--outline) }
.field input { all: unset; flex: 1; min-width: 0; font-size: 32px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text) }
.field span { font-weight: 800; font-size: 18px; color: var(--muted) }
.field.bad { border-color: var(--red); box-shadow: 0 4px 0 var(--red) }
.chips { display: flex; gap: 8px }
.chip { flex: 1; height: 40px; border-radius: 999px; border: 2px solid var(--outline); background: var(--surface); color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer }
.chip[aria-pressed="true"] { background: var(--pill); color: var(--pill-text) }
.earn { display: flex; align-items: center; gap: 10px; background: var(--green-soft); border: 2px solid var(--outline); border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: 15px }
.earn b { font-weight: 900 }
.earn svg { width: 20px; height: 20px; flex: none }
.gain { border: 2.5px solid var(--outline); border-radius: 22px; background: var(--green-soft); padding: 14px 18px; display: grid; gap: 2px; box-shadow: 0 4px 0 var(--outline) }
.gain .k { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em }
.gain .v { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--gain); font-variant-numeric: tabular-nums }
.gain .note { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.45 }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.fact { border: 2px solid var(--outline); border-radius: 18px; padding: 10px 14px; background: var(--surface); display: grid; gap: 2px }
.fact .k { font-size: 12.5px; font-weight: 700; color: var(--muted) }
.fact .v { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums }
.link { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 800; font-size: 15px; cursor: pointer }

/* rows */
.row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit }
.dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--outline); color: var(--text) }
.dot svg { width: 22px; height: 22px }
.row .t { flex: 1; min-width: 0; display: grid; gap: 1px }
.row .t b { font-size: 16px; font-weight: 800 }
.row .t span { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.row .amt { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap }
.row .amt span { display: block; font-size: 12px; font-weight: 700; color: var(--blue) }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .02em }
.val { border: 2px solid var(--outline); border-radius: 20px; padding: 12px 14px; background: var(--surface) }

/* the way out */
.track { list-style: none; margin: 0; padding: 0; display: grid }
.track li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px }
.track li:last-child { padding-bottom: 0 }
.track li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2.5px; background: var(--rule) }
.track li.done:not(:last-child)::before { background: var(--green) }
.track .n { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--outline); display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--surface); position: relative; z-index: 1 }
.track .n svg { width: 18px; height: 18px }
.track .done .n { background: var(--green); color: #fff }
.track .now .n { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-soft) }
.track .later .n { border-color: var(--muted); color: var(--muted) }
.track b { display: block; font-size: 16px; font-weight: 800; padding-top: 5px }
.track span { font-size: 13.5px; font-weight: 600; color: var(--muted) }
.track .now span { color: var(--blue); font-weight: 800 }
.tag { font-style: normal; display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); border: 1.5px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 2px }

.warn { border: 2.5px solid var(--outline); border-radius: 22px; background: var(--red-soft); padding: 16px; display: grid; gap: 8px; box-shadow: 0 4px 0 var(--outline) }
.warn b { font-size: 18px; font-weight: 900; color: var(--red-text) }
.warn p { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45 }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 700; line-height: 1.4; cursor: pointer; border-radius: 10px }
.agree input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; border: 2.5px solid var(--outline); border-radius: 8px; background: var(--surface); display: grid; place-items: center; margin: 0; cursor: pointer }
.agree input:checked { background: var(--red) }
.agree input:checked::after { content: ""; width: 10px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-2px) rotate(-45deg) }

/* messages */
.mode.demo { background: var(--gold-soft) }
.mode.demo i { background: var(--gold) }
.msg .try { margin-top: 12px; width: 100% }
.demo-note .link { display: inline; padding: 0; font-size: inherit }
.msg { margin: 16px 16px 0; border: 2px solid var(--outline); border-radius: 18px; padding: 12px 14px; font-size: 14.5px; font-weight: 700; line-height: 1.45; background: var(--gold-soft) }
.msg.bad { background: var(--red-soft); color: var(--text) }
.msg.good { background: var(--green-soft) }
.msg a { color: var(--blue) }

/* ask */
.ask { display: flex; align-items: center; gap: 12px }
.ask h2 { flex: 1 }
.qs { display: flex; flex-wrap: wrap; gap: 8px }
.q { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--outline); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left }
.q[aria-pressed="true"] { background: var(--gold); color: #1F2348 }
.bubble { border: 2.5px solid var(--outline); border-radius: 22px; border-top-left-radius: 6px; background: var(--gold-soft); padding: 14px 16px; font-size: 15px; font-weight: 600; line-height: 1.5; box-shadow: 0 4px 0 var(--outline) }
.bubble b { display: block; font-weight: 900; margin-bottom: 2px }

/* the one action, always under the thumb */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--screen) 72%, transparent) }
.dock > div { max-width: 428px; margin: 0 auto; display: grid; gap: 8px; justify-items: center }
.dock:empty { display: none }
.cta { width: 100%; min-height: 62px; border-radius: 999px; border: 2.5px solid var(--outline); background: var(--gold); color: #1F2348; font-weight: 900; font-size: 18px; box-shadow: 0 5px 0 var(--outline); cursor: pointer; font-variant-numeric: tabular-nums; padding: 8px 16px }
.cta:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--outline) }
.cta.red { background: var(--red); color: #fff }
.cta.quiet { background: var(--surface); color: var(--text); min-height: 52px; font-size: 16px }
.cta:disabled { background: var(--rule); color: var(--muted); box-shadow: 0 5px 0 var(--muted); border-color: var(--muted); cursor: not-allowed }
.small { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center }
.calm { width: 100%; border: 2px dashed var(--muted); border-radius: 999px; min-height: 56px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--muted); text-align: center; padding: 6px 16px }

/* sheet, for the one question that needs a real answer before a tap */
.sheetwrap { position: fixed; inset: 0; z-index: 10; display: grid; align-items: end; background: var(--dim) }
.sheet { width: 100%; max-width: 460px; margin: 0 auto; background: var(--screen); border: 2.5px solid var(--outline); border-bottom: 0; border-radius: 34px 34px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 14px }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em }
.grab { justify-self: center; width: 44px; height: 5px; border-radius: 9px; background: var(--rule) }

/* A laptop gets a landing page: the live app in a drawn phone, with the story
   around it. Phones, and Nimiq Pay itself (html.in-pay), only see the app. */
.site > .nav, .site > .band, .site > .foot, .hero-copy, .buddy { display: none }
@media (min-width: 1000px) {
  html:not(.in-pay), html:not(.in-pay) body { background: var(--page) }
  html:not(.in-pay) .site { color: var(--stage-text) }
  html:not(.in-pay) .site > .nav { display: flex; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 22px 32px }
  html:not(.in-pay) .brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; color: inherit; text-decoration: none; flex: 1 }
  html:not(.in-pay) .links { display: flex; gap: 26px }
  html:not(.in-pay) .links a { color: inherit; font-weight: 800; text-decoration: none; font-size: 16px }
  html:not(.in-pay) .links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--gold) }
  html:not(.in-pay) .btn { height: 52px; padding: 0 24px; border-radius: 999px; border: 2.5px solid var(--outline); background: var(--screen); color: var(--text); font-weight: 900; font-size: 16px; box-shadow: 0 4px 0 var(--outline); cursor: pointer; white-space: nowrap }
  html:not(.in-pay) .btn.primary { background: var(--gold); color: #1F2348 }
  html:not(.in-pay) .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline) }

  html:not(.in-pay) .hero { max-width: 1180px; margin: 0 auto; padding: 24px 32px 72px; display: grid; grid-template-columns: 1fr 470px; gap: 56px; align-items: center }
  html:not(.in-pay) .hero-copy { display: grid; gap: 22px }
  html:not(.in-pay) .eyebrow { margin: 0; font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .75 }
  html:not(.in-pay) .hero h1 { margin: 0; font-size: 84px; font-weight: 900; letter-spacing: -.045em; line-height: .98 }
  html:not(.in-pay) .hl { background: linear-gradient(transparent 60%, var(--gold) 60%); padding: 0 6px }
  html:not(.in-pay) .lede { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.5; max-width: 34em; text-wrap: pretty }
  html:not(.in-pay) .ctas { display: flex; gap: 14px; flex-wrap: wrap }
  html:not(.in-pay) .how-open { margin: 0; font-size: 15px; font-weight: 700; opacity: .85 }
  html:not(.in-pay) .url { font-family: var(--mono); font-weight: 500 }
  html:not(.in-pay) .stats { display: flex; gap: 0; margin-top: 8px }
  html:not(.in-pay) .stats div { display: grid; padding: 0 28px; border-left: 2.5px solid var(--outline) }
  html:not(.in-pay) .stats div:first-child { padding-left: 0; border-left: 0 }
  html:not(.in-pay) .stats b { font-size: 30px; font-weight: 900; letter-spacing: -.02em }
  html:not(.in-pay) .stats span { font-size: 14px; font-weight: 700; opacity: .75 }

  html:not(.in-pay) .hero-app { position: relative; display: grid; justify-items: center }
  html:not(.in-pay) .buddy { all: unset; cursor: pointer; position: absolute; left: -128px; bottom: 60px; z-index: 3; display: grid; justify-items: center; gap: 6px }
  html:not(.in-pay) .buddy:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 20px }
  html:not(.in-pay) .bubble-s { background: var(--screen); color: var(--text); border: 2.5px solid var(--outline); border-radius: 18px; border-bottom-left-radius: 4px; padding: 8px 12px; font-size: 14px; font-weight: 800; box-shadow: 0 3px 0 var(--outline); max-width: 170px; text-align: left; line-height: 1.35 }
  html:not(.in-pay) .device { position: relative; transform: translateZ(0); width: 390px; height: min(820px, calc(100dvh - 140px)); min-height: 640px; flex: none;
    border: 12px solid var(--bezel); border-radius: 56px; overflow: hidden auto; background: var(--screen);
    box-shadow: 0 24px 60px rgba(14, 16, 48, .3); scrollbar-width: none }
  html:not(.in-pay) .device::-webkit-scrollbar { display: none }
  html:not(.in-pay) .device .app { min-height: 100% }
  html:not(.in-pay) .device .dock { position: sticky; bottom: 0; margin-top: -150px }
  html:not(.in-pay) .device .sheetwrap { position: absolute; top: 0; height: 100% }

  html:not(.in-pay) .band { display: block; padding: 88px 32px; background: var(--band); color: var(--band-text) }
  html:not(.in-pay) .band > * { max-width: 1116px; margin-left: auto; margin-right: auto }
  html:not(.in-pay) .band.alt { background: var(--page) }
  html:not(.in-pay) .band.navy { background: #1F2348; color: #F4F4F8 }
  html:not(.in-pay) .band h2 { margin-top: 12px; margin-bottom: 0; font-size: 52px; font-weight: 900; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance }
  html:not(.in-pay) .cards { display: grid; gap: 22px; margin-top: 40px }
  html:not(.in-pay) .cards.three { grid-template-columns: repeat(3, 1fr) }
  html:not(.in-pay) .cards.four { grid-template-columns: repeat(4, 1fr) }
  html:not(.in-pay) .tile { background: var(--surface); color: var(--text); border: 2.5px solid var(--outline); border-radius: 28px; padding: 26px; box-shadow: 0 5px 0 var(--outline); display: grid; gap: 10px; align-content: start }
  html:not(.in-pay) .tile.red { background: var(--red-soft) }
  html:not(.in-pay) .tile.gold { background: var(--gold-soft) }
  html:not(.in-pay) .tile h3 { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.015em }
  html:not(.in-pay) .tile p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--muted) }
  html:not(.in-pay) .tile .num { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--outline); display: grid; place-items: center; font-weight: 900; font-size: 20px; background: var(--surface) }
  html:not(.in-pay) .undo { justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 900; letter-spacing: .04em; border-radius: 999px; padding: 4px 12px; border: 2px solid currentColor }
  html:not(.in-pay) .undo.yes { color: #127A6B }
  html:not(.in-pay) .undo.no { color: var(--red-text) }
  html:not(.in-pay) .ledger { margin-top: 36px; border: 2.5px solid #07081A; border-radius: 26px; overflow: hidden; background: #262B57 }
  html:not(.in-pay) .ledger .lh { padding: 14px 24px; background: #1b1f45; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase }
  html:not(.in-pay) .ledger a { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 14px; padding: 16px 24px; border-top: 1.5px solid rgba(255,255,255,.12); color: #F4F4F8; text-decoration: none; font-size: 16px; font-variant-numeric: tabular-nums }
  html:not(.in-pay) .ledger a:hover { background: #2E3468 }
  html:not(.in-pay) .ledger a span { color: #A3A6C4; font-weight: 700 }
  html:not(.in-pay) .ledger a i { font-style: normal; font-family: var(--mono); color: #7FD3FF; text-align: right }
  html:not(.in-pay) .after { margin-top: 22px; font-size: 17px; font-weight: 700 }
  html:not(.in-pay) .after a { color: var(--gold) }
  html:not(.in-pay) .site > .foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 28px 32px 36px; font-size: 14px; font-weight: 700 }
  html:not(.in-pay) .foot span { display: flex; align-items: center; gap: 10px }
  html:not(.in-pay) .foot a { color: inherit }
}

/* loading */
.loading { display: grid; justify-items: center; gap: 12px; padding: 64px 20px; text-align: center; color: var(--muted); font-weight: 800 }

/* mascot motion: small, and only where it says something */
.albie .m-head, .albie .m-leaf, .albie .m-eyes, .albie .m-hop, .albie .m-z text { transform-box: fill-box }
.albie .m-leaf { transform-origin: 0% 100% }
.albie .m-eyes { transform-origin: 50% 50% }
.albie .m-hop { transform-origin: 50% 100% }
@media (prefers-reduced-motion: no-preference) {
  .albie .m-head { animation: m-breathe 3.4s ease-in-out infinite }
  .albie .m-leaf { animation: m-sway 3.4s ease-in-out infinite }
  .albie .m-eyes { animation: m-blink 4.6s infinite }
  .albie.mood-happy .m-hop { animation: m-hop 1.4s cubic-bezier(.3, 0, .3, 1) 2 }
  .albie.mood-happy .m-head { animation: none }
  .albie.mood-sleepy .m-head { animation-duration: 5.5s }
  .albie.mood-sleepy .m-leaf { animation: m-droop 5.5s ease-in-out infinite }
  .albie.mood-sleepy .m-z text { animation: m-z 3s ease-in-out infinite }
  .albie.mood-sleepy .m-z text + text { animation-delay: 1.5s }
  .albie.mood-serious .m-head, .albie.mood-serious .m-leaf { animation: none }
  .albie.mood-loading .m-head { animation: m-bob 1.1s ease-in-out infinite }
  .albie.mood-loading .m-leaf { animation-duration: 1.1s }
  .track .now .n { animation: pulse 2.4s ease-in-out infinite }
}
/* arms: hidden until there's something to say */
.albie .m-wave, .albie .m-thumb, .albie .m-point { display: none; transform-box: fill-box }
.albie .m-wave { transform-origin: 0% 100% }
.albie .m-thumb { transform-origin: 30% 100% }
.albie.g-wave .m-wave, .albie.g-thumb .m-thumb, .albie.g-point .m-point { display: inline }
@media (prefers-reduced-motion: no-preference) {
  .albie.g-wave .m-wave { animation: m-wave .42s ease-in-out 5 alternate }
  .albie.g-thumb .m-thumb { animation: m-thumb .5s cubic-bezier(.3, 1.6, .5, 1) }
}
@keyframes m-wave { from { transform: rotate(-14deg) } to { transform: rotate(16deg) } }
@keyframes m-thumb { from { transform: scale(.4) rotate(-20deg); opacity: 0 } to { transform: scale(1) rotate(0); opacity: 1 } }
.hello { all: unset; cursor: pointer; border-radius: 16px; display: block; line-height: 0 }
.hello:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px }

@keyframes m-breathe { 50% { transform: translateY(-1.8px) } }
@keyframes m-bob { 50% { transform: translateY(-4px) } }
@keyframes m-sway { 0%, 100% { transform: rotate(-5deg) } 50% { transform: rotate(6deg) } }
@keyframes m-droop { 0%, 100% { transform: rotate(8deg) } 50% { transform: rotate(14deg) } }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.12) } }
@keyframes m-hop { 0%, 100% { transform: translateY(0) scale(1) } 12% { transform: translateY(1px) scale(1.04, .95) } 40% { transform: translateY(-9px) scale(.97, 1.04) } 64% { transform: translateY(0) scale(1.03, .97) } 80% { transform: translateY(0) scale(1) } }
@keyframes m-z { 0% { opacity: 0; transform: translate(0, 4px) } 30%, 60% { opacity: 1 } 100% { opacity: 0; transform: translate(3px, -6px) } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px var(--blue-soft) } }
