/* Lumin Vocab styles. Copyright (C) 2026 B7 Collective LLC. AGPL-3.0-only. */

@font-face { font-family: "Literata"; src: url("/fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #EEF2F4; --ink: #18212B; --muted: #4A5866; --line: #D3DCE2; --card: #FFFFFF; --soft: #DDE5EA;
  --accent: #F2B544; --accent-ink: #18212B; --link: #1F6F78; --good: #165860; --good-bg: #DDF0EE; --bad: #9B2C1F; --bad-bg: #FBE3DE;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --scale: 1;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-theme="sunny"]   { --bg: #FFF1D6; --ink: #18212B; --muted: #5A4A33; --line: #EED9AE; --card: #FFFFFF; --soft: #F8E2B5; --accent: #E86A4F; --accent-ink: #18212B; --link: #165860; }
[data-theme="garden"]  { --bg: #E1EBE0; --ink: #1E2B20; --muted: #45574A; --line: #C6D6C4; --card: #FFFFFF; --soft: #CFDECD; --accent: #F2B544; --link: #2E5E3A; }
[data-theme="harbor"]  { --bg: #DCEAF4; --ink: #13283A; --muted: #3F5468; --line: #BFD5E6; --card: #FFFFFF; --soft: #C9DDEC; --accent: #F2B544; --link: #1C5A8A; }
[data-theme="blossom"] { --bg: #F6E3E0; --ink: #3A1F1C; --muted: #6B4743; --line: #E8C9C4; --card: #FFFFFF; --soft: #EFD2CD; --accent: #F2B544; --link: #8A3B52; }
[data-theme="night"]   { --bg: #141A21; --ink: #E9EEF2; --muted: #A9B6C2; --line: #2C3742; --card: #1D252E; --soft: #26313C; --accent: #F2B544; --accent-ink: #18212B; --link: #7CC6CE; --good: #8FD8CF; --good-bg: #173B39; --bad: #F2A193; --bad-bg: #42231E; color-scheme: dark; }
[data-theme="dusk"]    { --bg: #2E2638; --ink: #F2ECF7; --muted: #C5B8D2; --line: #44395A; --card: #3A3047; --soft: #463A57; --accent: #F2B544; --accent-ink: #18212B; --link: #C9B2F0; --good: #A8E0C8; --good-bg: #24443A; --bad: #F2A193; --bad-bg: #4A2A2A; color-scheme: dark; }
[data-theme="forest"]  { --bg: #1F3B36; --ink: #EAF3EF; --muted: #B4CBC3; --line: #31544D; --card: #284A44; --soft: #2F554E; --accent: #F2B544; --accent-ink: #18212B; --link: #9FD9C8; --good: #A8E0C8; --good-bg: #20473F; --bad: #F2A193; --bad-bg: #4A2A2A; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: calc(17px * var(--scale)); line-height: 1.45;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); }
[hidden] { display: none !important; }

/* Theme scenes and topic colors */
:root { --scene: url("/scenes/morning.svg"); --c1: #1F6F78; --c2: #A0446A; --c3: #8A5A00; --c4: #B4432C; --c5: #2F5D9E; --c6: #3D7A4F; }
[data-theme="sunny"] { --scene: url("/scenes/sunny.svg"); } [data-theme="garden"] { --scene: url("/scenes/garden.svg"); }
[data-theme="harbor"] { --scene: url("/scenes/harbor.svg"); } [data-theme="blossom"] { --scene: url("/scenes/blossom.svg"); }
[data-theme="night"] { --scene: url("/scenes/night.svg"); } [data-theme="dusk"] { --scene: url("/scenes/dusk.svg"); } [data-theme="forest"] { --scene: url("/scenes/forest.svg"); }
[data-theme="night"], [data-theme="dusk"], [data-theme="forest"] { --c1: #7CC6CE; --c2: #F0A6C4; --c3: #F2C46B; --c4: #F5A08C; --c5: #9DB9F0; --c6: #9FD9A8; }
.app::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: min(38vh, 360px); background: var(--scene) no-repeat center bottom / cover; pointer-events: none; z-index: 0; transition: opacity .4s; }
.app > * { position: relative; z-index: 1; }
.badge { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; color: var(--tc, var(--link)); flex-shrink: 0; }
.badge.lg { width: 72px; height: 72px; border-radius: 22px; }
.badge.lg .icon { width: 36px; height: 36px; }
.topic { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px 5px 8px; border-radius: 16px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; border: 1px solid var(--line); }
.topic .icon { width: 18px; height: 18px; color: var(--tc, var(--link)); }
.card-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
@media (max-width: 719px) { .card-meta { justify-content: flex-start; } }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title .badge { width: 36px; height: 36px; border-radius: 11px; }
.sec-title .badge .icon { width: 20px; height: 20px; }
.tile .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile .top .icon { width: 18px; height: 18px; color: var(--tc, var(--muted)); }
.tile.stat { flex-direction: row; align-items: center; gap: 14px; }
.stat .num { font-family: var(--serif); font-size: 30px; line-height: 1; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 12px; color: var(--muted); }
.opt .mark { display: inline-flex; }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-width: 900px; width: 100%; text-align: left; }
.feature { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 18px; padding: 16px; }
.feature strong { display: block; }
.preview { background: var(--card); border-radius: 26px; padding: 28px 32px; max-width: 520px; width: 100%; box-shadow: 0 18px 50px rgba(24, 33, 43, .08); display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.tabs button .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }

/* Shell */
.app { min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-top); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 20px; }
.brand img, .brand svg { width: 32px; height: 32px; border-radius: 8px; }
.topnav { display: flex; gap: 6px; }
.topnav a, .topnav button { text-decoration: none; color: var(--muted); padding: 10px 16px; border-radius: 22px; display: flex; gap: 8px; align-items: center; background: none; border: 0; min-height: 44px; }
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--soft); }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 11px; font-size: 13px; font-weight: 700; padding: 1px 8px; }
.me { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); padding: 4px; border-radius: 26px; min-height: 44px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; flex-shrink: 0; color: #fff; }
.avatar.lg { width: 112px; height: 112px; font-size: 44px; }
.avatar.md { width: 56px; height: 56px; font-size: 24px; }
main { flex: 1; display: flex; flex-direction: column; width: 100%; }
.bottomnav { display: none; }

/* Phone layout */
@media (max-width: 719px) {
  .topnav, .me .me-name { display: none; }
  .topbar { padding: 12px 16px; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: sticky; bottom: 0; z-index: 5;
    border-top: 1px solid var(--line); background: var(--bg); padding: 6px 6px calc(10px + var(--safe-bottom));
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 13px; min-height: 48px; position: relative; }
  .bottomnav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .bottomnav .dot { position: absolute; top: 2px; left: 56%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 9px; padding: 0 6px; }
}
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn { min-height: 52px; padding: 0 26px; border-radius: 26px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .15s var(--ease), background-color .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.quiet { border: 1px solid var(--line); background: var(--card); font-weight: 400; min-height: 44px; padding: 0 18px; }
.btn.small { min-height: 44px; padding: 0 18px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.iconbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .15s var(--ease); }
.iconbtn:active { transform: scale(.92); }
.iconbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.iconbtn[aria-pressed="true"] .icon { fill: currentColor; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.linkbtn { background: none; border: 0; color: var(--link); text-decoration: underline; padding: 8px 4px; min-height: 44px; }

/* Word feed */
.feed { flex: 1; position: relative; overflow: hidden; touch-action: pan-x; display: flex; }
.card-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.wordcard { width: 100%; max-width: 640px; display: flex; flex-direction: column; text-align: center; align-items: center; will-change: transform, opacity; }
.wordcard.enter-up { animation: enterUp .42s var(--ease) both; }
.wordcard.enter-down { animation: enterDown .42s var(--ease) both; }
@keyframes enterUp { from { opacity: 0; transform: translateY(46px); } 60% { opacity: 1; } 80% { transform: translateY(-4px); } to { transform: none; } }
@keyframes enterDown { from { opacity: 0; transform: translateY(-46px); } 80% { transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pos { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.word { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 11vw, 108px); line-height: 1.02; overflow-wrap: anywhere; }
.say { margin-top: 14px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 18px; }
.def { margin: 36px 0 0; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.45; max-width: 34ch; }
.ex { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 38ch; }
.ex mark { background: none; color: var(--ink); font-weight: 600; }
.more { margin-top: 20px; }
.feed-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 16px 18px; }
.feed-actions .row { display: flex; gap: 12px; align-items: center; justify-content: center; width: 100%; max-width: 520px; }
.hint { font-size: 14px; color: var(--muted); }
.status { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; color: var(--good); font-weight: 700; }
.feed-top { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; max-width: 1180px; width: 100%; margin: 0 auto; }
.goal { font-size: 15px; color: var(--muted); }
.progress { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; width: 120px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
@media (max-width: 719px) {
  .card-stage { align-items: center; justify-content: flex-start; padding: 12px 28px; }
  .wordcard { text-align: left; align-items: flex-start; }
  .def, .ex { max-width: none; }
  .feed-actions .row .btn { flex: 1; }
}

/* Sheet / panel */
.scrim { position: fixed; inset: 0; background: rgba(10, 14, 20, .38); z-index: 20; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 21; background: var(--card); color: var(--ink); box-shadow: 0 -12px 40px rgba(10, 14, 20, .18); overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 720px) { .sheet { top: 0; right: 0; bottom: 0; width: min(520px, 100%); padding: 36px 40px; animation: slideIn .35s var(--ease) both; } }
@media (max-width: 719px) { .sheet { left: 0; right: 0; bottom: 0; max-height: 86dvh; border-radius: 24px 24px 0 0; padding: 12px 22px calc(24px + var(--safe-bottom)); animation: slideUp .35s var(--ease) both; } .sheet::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; flex-shrink: 0; } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideUp { from { transform: translateY(100%); } }
.sheet h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.sheet h3, .label { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pages */
.page { max-width: 920px; width: 100%; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 22px; }
.page.narrow { max-width: 720px; }
.page h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; }
.page h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.lead { margin: 0; color: var(--muted); font-size: 18px; }
.panel { background: var(--card); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tile { background: var(--card); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; border: 1px solid transparent; text-align: left; color: var(--ink); }
button.tile:hover { border-color: var(--line); }
.tile .w { font-family: var(--serif); font-size: 24px; }
.tile .m { font-size: 15px; color: var(--muted); }
.row-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { min-height: 48px; padding: 0 14px; border: 0; background: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
input[type="text"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  min-height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); padding: 0 18px; font-size: 17px; width: 100%; color: var(--ink);
}
textarea { padding: 14px 18px; min-height: 96px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .flabel { font-weight: 700; }
.field small { color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch .txt { display: flex; flex-direction: column; }
.switch .txt small { color: var(--muted); }
.switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--line); position: relative; flex-shrink: 0; transition: background-color .2s; margin: 0; }
.switch input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input[type="checkbox"]:checked { background: var(--link); }
.switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
input[type="range"] { width: 100%; accent-color: var(--link); min-height: 44px; }

/* Profiles */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; max-width: 900px; width: 100%; }
.person { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px; color: var(--ink); border-radius: 20px; transition: transform .2s var(--ease); }
.person:hover { transform: translateY(-3px); }
.person .n { font-size: 19px; font-weight: 700; }
.person .lv { font-size: 15px; color: var(--muted); }
.person .add { width: 108px; height: 108px; border-radius: 50%; border: 2px dashed var(--muted); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 32px 20px; text-align: center; }

/* Choice cards */
.choices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.choice { text-align: left; border-radius: 20px; border: 2px solid var(--line); background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-height: 44px; }
.choice[aria-pressed="true"] { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); background: var(--good-bg); }
.choice strong { font-size: 19px; }
.choice .s { font-family: var(--serif); font-size: 18px; margin-top: 4px; }

/* Review */
.review { flex: 1; display: flex; flex-direction: column; max-width: 860px; width: 100%; margin: 0 auto; padding: 16px 20px 24px; gap: 28px; }
.review-top { display: flex; align-items: center; gap: 16px; }
.bar { flex: 1; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s var(--ease); }
.q { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.prompt { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.prompt .kicker { color: var(--muted); font-size: 19px; }
.prompt .big { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.25; max-width: 28ch; }
.prompt .big .blank { display: inline-block; min-width: 4ch; border-bottom: 3px solid var(--ink); }
.options { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.options.defs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.options.kid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.opt { min-height: 72px; border-radius: 22px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--serif); font-size: 24px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .15s var(--ease), background-color .2s, border-color .2s; }
.opt.def-opt { font-family: var(--sans); font-size: 18px; text-align: left; justify-content: flex-start; }
.kidmode .opt { min-height: 88px; font-size: 28px; }
.opt:active { transform: scale(.97); }
.opt.right { border-color: var(--link); background: var(--good-bg); animation: pop .35s var(--ease); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); animation: shake .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.04); } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.feedback { min-height: 28px; text-align: center; font-weight: 700; font-size: 19px; }
.feedback.ok { color: var(--good); } .feedback.no { color: var(--bad); }
.typed { display: flex; gap: 10px; max-width: 520px; width: 100%; margin: 0 auto; }
.typed input { text-align: center; font-family: var(--serif); font-size: 26px; }

/* Themes */
.theme-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.theme { border-radius: 18px; border: 1px solid var(--line); padding: 0; overflow: hidden; background: var(--card); text-align: left; color: var(--ink); }
.theme[aria-pressed="true"] { border: 3px solid var(--ink); }
.theme .sw { height: 92px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; background-repeat: no-repeat; background-position: center bottom; background-size: cover; }
.theme .nm { display: block; padding: 10px 12px; font-size: 15px; }

/* Install */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 16px; padding: 12px 14px; }
.steps .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--link); }
.qr { width: 168px; height: 168px; background: #fff; border-radius: 14px; padding: 10px; flex-shrink: 0; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { font-weight: 700; letter-spacing: .04em; font-size: 18px; word-break: break-word; }

/* Toast */
.toast { position: fixed; left: 50%; top: calc(74px + var(--safe-top)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 10px 10px 20px; border-radius: 26px; display: flex; align-items: center; gap: 12px; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: toastIn .3s var(--ease) both; max-width: calc(100% - 32px); }
.toast button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 20px; min-height: 40px; padding: 0 16px; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -16px); } }

.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }
.footer a { color: var(--muted); }
.kbd { display: inline-block; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: 13px; background: var(--card); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } }
.calm *, .calm *::before, .calm *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
