/* app.css: how the site looks. Brass and Slate. No wording lives here. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F7F8F8; --surface: #EDEFEF; --deep: #E1E5E6;
  --ink: #171A21; --muted: #5C6270; --slate: #232F4F;
  --brass: #A8741A; --wash: #EDE0C6; --hair: #D7DBDD; --clay: #8A5A5F;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.big { font-size: 120%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1.09375rem/1.62 var(--sans); }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--slate); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { max-width: 68rem; margin: 0 auto; padding: 0 1rem 3rem; }
.page-narrow { max-width: 30rem; }

/* ---- top line */
.mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 0; }
.mast-name { font: 500 1.2rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.controls { display: flex; gap: .5rem; }
.chip-btn { font: 500 .875rem/1 var(--sans); min-height: 2.5rem; padding: 0 .9rem; border: 0; border-radius: 999px; background: var(--deep); color: var(--ink); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--slate); color: var(--paper); }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.4rem; border: 0; border-radius: 999px; background: var(--slate); color: var(--paper); font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.btn-quiet { background: var(--deep); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--slate); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.stack { display: grid; gap: .6rem; }

/* ---- the maker */
.intro { padding: 1.25rem 0 1.75rem; max-width: 40rem; }
.intro h1 { font-size: clamp(2.1rem, 6.4vw, 3.4rem); letter-spacing: -.012em; }
.intro p { margin: .9rem 0 0; color: var(--muted); max-width: 34rem; }
.maker { display: grid; gap: 1.5rem; }
.stage-inner { max-width: 26rem; margin: 0 auto; }
.stage-play { margin-top: .75rem; display: flex; justify-content: center; }
@media (min-width: 60rem) {
  .maker { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .stage { position: sticky; top: 1.25rem; }
}
.panel { background: var(--paper); border-radius: 18px; padding: 1.5rem 1.25rem; }
@media (min-width: 40rem) { .panel { padding: 2rem; } }
.field { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; font-weight: 600; margin: 0 0 .4rem; }
.opt { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: .94rem; line-height: 1.5; margin: .4rem 0 0; }
.field input[type="text"], .field textarea, .field select, .linkbox {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid var(--hair); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; }
.field textarea { min-height: 6.5rem; resize: vertical; }
.with-button { display: flex; gap: .6rem; align-items: stretch; }
.with-button select { flex: 1 1 auto; min-width: 0; }
.with-button .btn { flex: none; }
.counter { text-align: right; }
.error { color: var(--clay); font-weight: 500; margin: .5rem 0 0; }
.note-line { background: var(--surface); border-radius: 14px; padding: .8rem 1rem; margin: .8rem 0 0; font: italic 400 1.1rem/1.45 var(--serif); }
.note-line[hidden] + .hint { margin-top: 0; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; background: var(--surface); cursor: pointer; }
.pill input:checked + span { background: var(--slate); color: var(--paper); }
.pill input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.more { margin-top: .75rem; }
.textlink { border: 0; background: none; padding: .5rem 0; font: inherit; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 40rem) { .scenes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scene { position: relative; display: block; cursor: pointer; }
.scene input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.thumb { display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--slate); }
.thumb svg { display: block; width: 100%; height: 100%; }
.scene-name { display: block; margin-top: .35rem; font-size: .94rem; }
.scene input:checked + .thumb { outline: 3px solid var(--slate); outline-offset: 2px; }
.scene input:checked ~ .scene-name { font-weight: 600; }
.scene input:focus-visible + .thumb { outline: 3px solid var(--brass); outline-offset: 2px; }

.check, .field > label.check { display: flex; gap: .7rem; align-items: flex-start; margin: .7rem 0 0; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--slate); }
.result { margin-top: 1rem; }
.result h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.result .subscribe { max-width: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; background: none; border-radius: 0; border-top: 1px solid var(--hair); }
.result .subscribe h2 { font-size: 1.45rem; }
.result .stack { margin: 1rem 0; }
.linkbox { font-size: .94rem; }

/* ---- the card */
.card-wrap { position: relative; max-width: 26rem; margin: 0 auto; border-radius: 18px; overflow: hidden; }
.card { background: var(--paper); border-radius: 18px; overflow: hidden; }
.card:focus { outline: none; }
.card-art { aspect-ratio: 3 / 2; background: var(--slate); }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-body { padding: 1.3rem 1.5rem 1.2rem; }
.card-body p { margin: 0; }
.c-greet { font-size: .94rem; font-weight: 500; color: var(--muted); }
.c-lead { font: italic 400 1.2rem/1.3 var(--serif); margin-top: .15rem !important; }
.c-virtue { font: 600 2.9rem/1.02 var(--serif); letter-spacing: -.015em; color: var(--slate); margin: .3rem 0 0 !important; overflow-wrap: anywhere; }
.c-virtue.is-long { font-size: 2.35rem; }
.c-line { font: italic 400 1.2rem/1.42 var(--serif); margin-top: 1rem !important; padding-top: .9rem; position: relative; }
.c-line::before { content: ""; position: absolute; left: 0; top: 0; width: 2.75rem; height: 3px; border-radius: 2px; background: var(--brass); }
.c-by { font-size: .875rem; font-weight: 500; color: var(--muted); margin-top: .45rem !important; }
.c-note { background: var(--surface); border-radius: 14px; padding: .85rem 1rem; margin-top: 1.1rem; }
.c-note-label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.c-note-text { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; margin-top: .2rem !important; }
.c-foot { margin-top: 1.1rem; padding-top: .75rem; border-top: 1px solid var(--hair); font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.c-foot a { color: var(--slate); }

/* the unopened card */
.seal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 2rem; background: var(--slate); color: var(--paper); text-align: center; transition: opacity .7s ease, transform .7s ease; }
.seal svg { width: 5.5rem; height: 5.5rem; }
.seal-for { font: 500 1.7rem/1.2 var(--serif); margin: 0; overflow-wrap: anywhere; }
.seal.is-open { opacity: 0; transform: scale(1.03); pointer-events: none; }

/* ---- opening and sharing */
.viewer { padding-top: .5rem; }
.caption { text-align: center; color: var(--muted); margin: .25rem 0 1rem; }
.actions { max-width: 26rem; margin: 1.25rem auto 0; }
.actions-hint { max-width: 26rem; margin: 1.1rem auto 0; text-align: center; }
.actions-hint + .actions { margin-top: .7rem; }
.subscribe { max-width: 26rem; margin: 2rem auto 0; background: var(--paper); border-radius: 18px; padding: 1.5rem; }
.subscribe h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.subscribe p { color: var(--muted); }
.message { max-width: 26rem; margin: 2rem auto 0; background: var(--paper); border-radius: 18px; padding: 2rem 1.5rem; }
.message h1 { font-size: 1.9rem; margin-bottom: .75rem; }
.sheet { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; background: rgba(23, 26, 33, .6); padding: 0; }
.sheet-panel { width: 100%; max-width: 30rem; max-height: 94vh; overflow: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 1.5rem 1.25rem 2rem; }
@media (min-width: 40rem) { .sheet { align-items: center; padding: 1rem; } .sheet-panel { border-radius: 18px; } }
.sheet-panel h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.sheet-panel .card-wrap { margin: 1rem auto; zoom: .72; }
.sheet-panel .mast { padding-top: 0; flex-wrap: nowrap; align-items: flex-start; }
.saved-image { display: block; width: 100%; max-width: 20rem; margin: 1rem auto 0; border-radius: 14px; }
.privacy { max-width: 40rem; }
.privacy h1 { font-size: 2.4rem; margin: 1rem 0 1.5rem; }
.privacy h2 { font-size: 1.35rem; margin: 1.75rem 0 .4rem; }

.foot { max-width: 40rem; margin: 3rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--hair); color: var(--muted); font-size: .94rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 20; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; background: var(--slate); color: var(--paper); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 500; transition: opacity .25s ease, transform .25s ease; max-width: 92vw; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.vc-count { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.vc-offscreen { position: fixed; left: -9999px; top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   THE ANIMATION. One orchestrated moment: the card opening.
   Nothing moves unless the card has the class "is-playing".
   Every drawing rests in its finished position, so these rules only
   describe where things come FROM.
   ===================================================================== */
@keyframes vc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vc-fadefrom { from { opacity: 0; } }
@keyframes vc-rise { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: none; } }
@keyframes vc-pop { 0% { transform: scale(0); } 62% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes vc-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes vc-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes vc-flick { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 30% { transform: scale(.96, 1.06) skewX(-3deg); } 65% { transform: scale(1.03, .95) skewX(3deg); } }
@keyframes vc-snow { from { transform: translate(0, -700px); } to { transform: translate(26px, 700px); } }
@keyframes vc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vc-lid { from { transform: rotate(9deg) translate(0, 46px); } to { transform: none; } }
@keyframes vc-note { from { transform: translateY(44px); } to { transform: none; } }
@keyframes vc-canopy { from { transform: scale(.12, .55); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes vc-hop { 0%, 55%, 100% { transform: none; } 28% { transform: translateY(-18px); } 78% { transform: translateY(-7px); } }
@keyframes vc-needle { 0% { transform: rotate(118deg); } 22% { transform: rotate(-52deg); } 42% { transform: rotate(30deg); } 60% { transform: rotate(-16deg); } 76% { transform: rotate(8deg); } 90% { transform: rotate(-3deg); } 100% { transform: rotate(0deg); } }
@keyframes vc-beam { 0% { transform: rotate(13deg); } 28% { transform: rotate(-8deg); } 52% { transform: rotate(5deg); } 74% { transform: rotate(-2.5deg); } 100% { transform: rotate(0deg); } }
@keyframes vc-pan { 0% { transform: rotate(-13deg); } 28% { transform: rotate(8deg); } 52% { transform: rotate(-5deg); } 74% { transform: rotate(2.5deg); } 100% { transform: rotate(0deg); } }
@keyframes vc-swing { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes vc-gust { 0% { transform: skewX(-32deg) scale(1, .5); } 14% { transform: skewX(26deg) scale(1, .68); } 30% { transform: skewX(-24deg) scale(1, .58); } 48% { transform: skewX(17deg) scale(1, .8); } 66% { transform: skewX(-9deg) scale(1, .93); } 84% { transform: skewX(4deg) scale(1, 1.03); } 100% { transform: none; } }
@keyframes vc-wind { 0% { transform: translateX(-40px); opacity: 0; } 35% { opacity: .75; } 100% { transform: translateX(250px); opacity: 0; } }
@keyframes vc-tube { from { transform: rotate(44deg); } to { transform: rotate(0deg); } }
@keyframes vc-door { from { transform: scale(1, 1); } to { transform: scale(.4, 1); } }
@keyframes vc-eyelid { 0% { opacity: 1; transform: scaleY(1); } 99% { opacity: 1; transform: scaleY(.03); } 100% { opacity: 0; transform: scaleY(0); } }
@keyframes vc-blink { 0%, 5%, 100% { opacity: 0; transform: scaleY(0); } 1.4%, 3.4% { opacity: 1; transform: scaleY(1); } }
@keyframes vc-settle { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes vc-sleigh { from { transform: translate(-900px, 110px) rotate(-8deg); } to { transform: translate(560px, -80px) rotate(-8deg); } }
@keyframes vc-shimmer { 0%, 100% { opacity: .3; } 50% { opacity: .14; } }
/* three general movements. Each drawing says where it starts (art.js: st) and these bring it home. */
@keyframes vc-move { from { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1)); } }
@keyframes vc-in { from { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1)); opacity: var(--o, 0); } }

.is-playing .art-scene { animation: vc-fade .9s ease both; }
.is-playing .art-front { animation: vc-fade 1.4s ease .3s both; }
.is-playing .a-pop { animation: vc-pop .7s cubic-bezier(.2, 1.1, .4, 1) both; }
.is-playing .a-fade { animation: vc-fadefrom 1s ease both; }
.is-playing .a-glow { animation: vc-fadefrom 1.8s ease both; }
.is-playing .a-twinkle { animation: vc-twinkle 3.4s ease-in-out infinite; }
.is-playing .a-beat { animation: vc-beat 3.2s ease-in-out infinite; }
.is-playing .a-flick { animation: vc-flick 1.8s ease-in-out infinite; }
.is-playing .a-snow { animation: vc-snow 12s linear infinite; }
.is-playing .a-draw { stroke-dasharray: 1; animation: vc-draw 1.6s ease-in-out both; }
.is-playing .a-lid { animation: vc-lid 1s cubic-bezier(.3, 1.2, .5, 1) both; }
.is-playing .a-note { animation: vc-note 1s cubic-bezier(.2, .8, .2, 1) both; }
.is-playing .a-canopy { animation: vc-canopy .9s cubic-bezier(.2, 1.15, .4, 1) both; }
.is-playing .a-hop { animation: vc-hop .9s ease both; }
.is-playing .a-needle { animation: vc-needle 2.8s cubic-bezier(.4, 0, .2, 1) both; }
.is-playing .a-beam { animation: vc-beam 2.8s ease-in-out both; }
.is-playing .a-pan { animation: vc-pan 2.8s ease-in-out both; }
.is-playing .a-swing { animation: vc-swing 3.4s ease-in-out infinite alternate; }
.is-playing .a-gust { animation: vc-gust 2.8s ease-out both; }
.is-playing .a-wind { animation: vc-wind 1.1s ease-in both; }
.is-playing .a-tube { animation: vc-tube 1.4s cubic-bezier(.3, 1.15, .5, 1) both; }
.is-playing .a-door { animation: vc-door 1.3s cubic-bezier(.4, 0, .2, 1) both; }
.is-playing .a-eyelid { animation: vc-eyelid .5s ease-in 1.9s both, vc-blink 6s linear 5s infinite; }
.is-playing .a-settle { animation: vc-settle .8s cubic-bezier(.2, .8, .2, 1) both; }
.is-playing .a-sleigh { animation: vc-sleigh 30s linear -17.5s infinite; }
.is-playing .a-shimmer { animation: vc-shimmer 4s ease-in-out infinite; }
.is-playing .a-move { animation: vc-move var(--t, 1s) var(--e, cubic-bezier(.2, .8, .2, 1)) both; }
.is-playing .a-in { animation: vc-in var(--t, 1s) var(--e, ease) both; }
.is-playing .a-loop { animation: vc-move var(--t, 2s) ease-in-out var(--n, infinite) alternate both; }

/* the words arrive after the picture; the chime sounds as the virtue appears (card.js: REVEAL) */
.is-playing .card-body > * { animation: vc-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.is-playing .c-greet { animation-delay: 2.6s; }
.is-playing .c-lead { animation-delay: 3.1s; }
.is-playing .c-virtue { animation-delay: 3.8s; }
.is-playing .c-line { animation-delay: 4.8s; }
.is-playing .c-by { animation-delay: 5.2s; }
.is-playing .c-note { animation-delay: 5.9s; }
.is-playing .c-foot { animation-delay: 6.3s; }
.after-card { transition: opacity .8s ease; }
.after-card.is-waiting { opacity: 0; pointer-events: none; }

/* people who ask their device for less motion get the finished card at once */
@media (prefers-reduced-motion: reduce) {
  .is-playing *, .is-playing .card-body > * { animation: none !important; }
  .is-playing .a-draw { stroke-dasharray: none; }
  .seal, .after-card, .toast { transition: none; }
}
