:root {
  --navy: #0b1f3f;
  --navy-2: #15315f;
  --navy-soft: #e8edf5;
  --orange: #f47b20;
  --orange-dark: #d96510;
  --orange-soft: #fef1e6;
  --ink: #1b2433;
  --muted: #6b7483;
  --line: #e2e5ea;
  --bg: #f3f4f6;
  --card: #ffffff;
  --green: #1e8e5a;
  --green-soft: #e6f4ed;
  --red: #c0392b;
  --red-soft: #fbeae8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 63, .05), 0 6px 20px rgba(11, 31, 63, .05);
}
/* Persian font: put any .woff2 file at public/fonts/app-font.woff2 (see public/fonts/README.txt). */
@font-face { font-family: "AppFont"; src: url("/fonts/app-font.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.75 "AppFont", "Vazirmatn", "Vazir", "IRANYekan", "Yekan Bakh", "Anjoman", Tahoma, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; line-height: 1.5; }
h2 { font-size: 1.125rem; line-height: 1.6; }
h3 { font-size: 1rem; }
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; background: var(--navy); color: #fff; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.accent { background: var(--orange); }
.btn.accent:hover { background: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--navy-soft); }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c9c4; }
.btn.danger:hover { background: var(--red-soft); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
:focus-visible { outline: 3px solid rgba(244, 123, 32, .55); outline-offset: 2px; }

.field { display: block; }
.field > span { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; background: #fff; border: 1px solid #cfd4dc; border-radius: 12px;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(21, 49, 95, .14); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip.navy { background: var(--navy-soft); color: var(--navy-2); }
.chip.orange { background: var(--orange-soft); color: var(--orange-dark); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--orange-soft); border: 1px solid #fbd9bd; color: #7a3d0c; font-size: .9375rem; }
.notice .icon { color: var(--orange-dark); margin-top: 2px; }
.info { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--navy-soft); color: var(--navy-2); font-size: .9375rem; }
.error-text { color: var(--red); font-size: .875rem; }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .9375rem; box-shadow: 0 10px 30px rgba(11, 31, 63, .3); }
.toast.err { background: var(--red); }

.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(11, 31, 63, .55); padding: 16px; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; padding: 22px; }
.modal.wide { max-width: 760px; }
@media (min-width: 640px) { .overlay { align-items: center; } }

.progress { height: 8px; border-radius: 999px; background: var(--navy-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--orange); transition: width .4s; }

/* ---------- participant app ---------- */
.app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 92px; }
.page { padding: 18px 16px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(243, 244, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.0625rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.iconbtn:hover { background: var(--navy-soft); }

.hero { background: var(--navy); color: #fff; padding: 26px 20px 60px; border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -140px; top: -140px; width: 200px; height: 200px; border-radius: 50%; border: 34px solid var(--orange); }
.hero .eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #ffb37a; font-weight: 700; }
.hero h1 { margin-top: 6px; font-size: 1.625rem; max-width: 70%; position: relative; z-index: 1; }
.hero .meta { margin-top: 10px; max-width: 70%; color: #c5d0e3; font-size: .875rem; position: relative; z-index: 1; }
.hero .logout { position: absolute; left: 8px; top: 8px; z-index: 2; color: #fff; }
.hero .logout:hover { background: rgba(255, 255, 255, .12); }
.pull-up { margin-top: -40px; position: relative; z-index: 2; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.tile .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
.tile.accent .badge { background: var(--orange-soft); color: var(--orange-dark); }
.tile small { display: block; font-weight: 400; color: var(--muted); }
.linklist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.linklist a { display: flex; align-items: center; gap: 12px; padding: 15px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.linklist a + a { border-top: 1px solid var(--line); }
.linklist a .icon:last-child { color: var(--muted); }
.section-title { margin: 22px 4px 10px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar nav { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 8px; font-size: .6875rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a.on { color: var(--navy); }
.tabbar a.on .icon { color: var(--orange); }

.seg { display: flex; padding: 4px; background: #e6e8ec; border-radius: 12px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11, 31, 63, .15); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.timeline .time { padding-top: 16px; font-size: .8125rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline .time small { display: block; font-weight: 400; color: var(--muted); }
.timeline .body { margin-bottom: 12px; }
.timeline .plain { padding: 14px 16px; border-radius: var(--radius); border: 1px dashed #cfd4dc; color: var(--muted); font-weight: 600; }
.panel-card { padding: 16px; }
.panel-card.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 123, 32, .14), var(--shadow); }
.panel-card.dim { background: #fafbfc; box-shadow: none; }
.panel-card.dim h3 { color: var(--muted); }

.qcard { padding: 16px; }
.qcard .qn { font-size: .75rem; font-weight: 700; color: var(--orange-dark); letter-spacing: .08em; text-transform: uppercase; }
.opt { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.opt input { position: absolute; opacity: 0; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9c0cb; flex: none; }
.opt:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.opt:has(input:checked) .dot { border-color: var(--navy); background: radial-gradient(var(--navy) 45%, #fff 50%); }
.opt:has(input:focus-visible) { outline: 3px solid rgba(244, 123, 32, .55); outline-offset: 2px; }

.bar-row { margin-top: 12px; }
.bar-row .lbl { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.bar-row .lbl b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { margin-top: 6px; height: 12px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar > i { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--navy-2); transition: width .5s; }
.bar-row.top .bar > i { background: var(--orange); }
.bigstat { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }

.pdf { background: #dfe2e7; border-radius: var(--radius); padding: 8px; }
.pdf canvas, .pdf .ph { display: block; width: 100%; background: #fff; border-radius: 6px; }
.pdf canvas + canvas, .pdf .pg + .pg { margin-top: 8px; }
.pdf iframe { width: 100%; height: 70vh; border: 0; border-radius: 6px; background: #fff; }

.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5, 12, 26, .92); display: grid; place-items: center; padding: 12px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.prose p + p { margin-top: 12px; }

.auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--navy); }
.auth .brand { padding: 44px 24px 34px; color: #fff; position: relative; overflow: hidden; }
.auth .brand::after { content: ""; position: absolute; left: -145px; top: -145px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid var(--orange); }
.auth .brand h1 { font-size: 1.75rem; max-width: 68%; position: relative; z-index: 1; }
.auth .brand p { margin-top: 8px; color: #c5d0e3; max-width: 72%; position: relative; z-index: 1; }
.auth .sheet { flex: 1; background: var(--bg); border-radius: 26px 26px 0 0; padding: 26px 20px 40px; }
.auth form { max-width: 440px; margin: 0 auto; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side .logo { padding: 4px 10px 18px; font-weight: 700; font-size: 1.0625rem; }
.side .logo small { display: block; font-weight: 400; color: #9fb0cc; font-size: .75rem; }
.side button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 2px; border: 0; border-radius: 10px; background: transparent; color: #c5d0e3; font-weight: 600; cursor: pointer; text-align: right; }
.side button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side button.on { background: rgba(244, 123, 32, .18); color: #fff; }
.side button.on .icon { color: var(--orange); }
.main { padding: 28px; min-width: 0; }
.main > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat .n { font-size: 1.75rem; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.code { font: 700 1.5rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--orange-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.steps button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.steps button:hover:not(:disabled) { background: #fff; }
.steps button.on { background: var(--navy); color: #fff; }
.steps button.on.voting { background: var(--orange); }
.steps button:disabled { cursor: default; }
table.list { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.list th { text-align: right; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.qedit { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafbfc; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; display: block; }
.thumbs button { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; line-height: 1; }
@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 10px; }
  .side .logo { display: none; }
  .side button { width: auto; white-space: nowrap; margin: 0; }
  .main { padding: 18px 14px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- projector screen ---------- */
body.screen { background: var(--navy); color: #fff; min-height: 100vh; padding: 3vh 4vw; }
.screen header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 2vh; border-bottom: 2px solid rgba(255, 255, 255, .15); }
.screen .ev { color: #ffb37a; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1.1vw; }
.screen h1 { font-size: 2.6vw; margin-top: .4vw; }
.screen .count { text-align: left; white-space: nowrap; }
.screen .count b { display: block; font-size: 4.6vw; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.screen .count span { color: #c5d0e3; font-size: 1.1vw; }
.screen .grid { display: grid; gap: 2vw; margin-top: 3vh; grid-template-columns: repeat(auto-fit, minmax(38vw, 1fr)); }
.screen .q { background: rgba(255, 255, 255, .06); border-radius: 1.2vw; padding: 1.6vw 1.8vw; }
.screen .q h2 { font-size: 1.7vw; line-height: 1.3; }
.screen .bar-row { margin-top: 1.2vw; }
.screen .bar-row .lbl { font-size: 1.35vw; }
.screen .bar { height: 1.3vw; background: rgba(255, 255, 255, .12); margin-top: .5vw; }
.screen .bar > i { background: #8fa6cc; }
.screen .bar-row.top .bar > i { background: var(--orange); }
.screen .wait { margin-top: 20vh; text-align: center; font-size: 2vw; color: #c5d0e3; }

/* ---------- Persian / right-to-left ---------- */
/* Letter-spacing and uppercase break joined Persian letters, so they are switched off. */
.hero .eyebrow, .section-title, .qcard .qn, table.list th, .screen .ev { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.screen .ev { font-size: 1.2vw; }
.ltr { direction: ltr; text-align: right; }
.code { direction: ltr; unicode-bidi: isolate; }
.bigstat { line-height: 1.3; }
.tabbar a { font-size: .75rem; }
.chip { font-size: .8125rem; }
input[type="time"], input[type="password"], input[type="file"] { direction: ltr; text-align: right; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ring-in { from { transform: scale(.55) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(10px, 8px) scale(1.06); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(244, 123, 32, .45), var(--shadow); } 100% { box-shadow: 0 0 0 14px rgba(244, 123, 32, 0), var(--shadow); } }
@keyframes blink { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* page entrance: content rises in, one block after another */
.enter .page > *, .enter .timeline > li, .enter .rise > *, .fresh > *, .fresh > form > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.enter .page > :nth-child(2), .enter .timeline > li:nth-child(2), .enter .rise > :nth-child(2), .fresh > :nth-child(2), .fresh > form > :nth-child(2) { animation-delay: .06s; }
.enter .page > :nth-child(3), .enter .timeline > li:nth-child(3), .enter .rise > :nth-child(3), .fresh > :nth-child(3), .fresh > form > :nth-child(3) { animation-delay: .12s; }
.enter .page > :nth-child(4), .enter .timeline > li:nth-child(4), .enter .rise > :nth-child(4), .fresh > :nth-child(4), .fresh > form > :nth-child(4) { animation-delay: .18s; }
.enter .page > :nth-child(5), .enter .timeline > li:nth-child(5), .enter .rise > :nth-child(5), .fresh > :nth-child(5), .fresh > form > :nth-child(5) { animation-delay: .24s; }
.enter .page > :nth-child(n+6), .enter .timeline > li:nth-child(n+6), .enter .rise > :nth-child(n+6), .fresh > :nth-child(n+6), .fresh > form > :nth-child(n+6) { animation-delay: .3s; }
.enter .hero > :not(.logout), .auth .brand > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.enter .hero h1, .auth .brand p { animation-delay: .08s; }
.enter .hero .meta { animation-delay: .16s; }
.auth .sheet { animation: sheet .55s cubic-bezier(.2, .7, .2, 1) both .1s; }
.hero::after, .auth .brand::after { animation: ring-in .9s cubic-bezier(.2, .8, .2, 1) both, drift 7s ease-in-out .9s infinite alternate; }
.enter .progress > i { transform-origin: right; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both .25s; }
.enter .bigstat { animation: pop .6s cubic-bezier(.2, .7, .2, 1) both .15s; transform-origin: right center; display: inline-block; }

/* touch feedback */
.btn, .tile, .linklist a, .opt, .tabbar a, .seg button, .steps button, .chip { transition: transform .15s, background .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn:active, .tile:active, .opt:active { transform: scale(.97); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 31, 63, .06), 0 12px 28px rgba(11, 31, 63, .1); }
.linklist a .icon:last-child { transition: transform .2s; }
.linklist a:hover .icon:last-child, .linklist a:active .icon:last-child { transform: translateX(-4px); }
.btn.accent { box-shadow: 0 6px 16px rgba(244, 123, 32, .28); }
.tabbar a.on .icon { animation: pop .35s both; }
.opt:has(input:checked) .dot { animation: pop .3s both; }
.opt:has(input:checked) { box-shadow: 0 4px 14px rgba(11, 31, 63, .1); }
.bar > i { transition: width .9s cubic-bezier(.2, .7, .2, 1); }

/* live states */
.panel-card.voting { animation: halo 1.8s ease-out infinite; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
.steps button.on.voting { animation: halo 1.8s ease-out infinite; }
.fresh .info .icon { animation: pop .5s cubic-bezier(.2, .7, .2, 1) both .2s; }
.pdf .pg:empty { background: linear-gradient(100deg, #fff 30%, #eef0f3 50%, #fff 70%) 0 0 / 200% 100% !important; animation: shimmer 1.4s linear infinite; }
.pdf canvas { animation: fade .4s both; }

/* overlays */
.overlay { animation: fade .2s both; }
.modal { animation: sheet .35s cubic-bezier(.2, .7, .2, 1) both; }
.toast { animation: toast-in .3s cubic-bezier(.2, .7, .2, 1) both; }
.lightbox { animation: fade .2s both; }
.lightbox img { animation: sheet .3s both; }
.screen .count b.bump { animation: bump .5s both; transform-origin: left center; }
.screen .bar > i { transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }

/* respect the phone's "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
