/* Little Wildheart Zoo — paper, ink, and a little gold. */
:root {
  --paper: #fffaf0;
  --paper2: #f7eedb;
  --paper3: #efe2c6;
  --ink: #3c2a20;
  --ink2: #6b5646;
  --ink3: #9a8573;
  --leaf: #4f8a3c;
  --leaf2: #6fae4c;
  --gold: #e8b93a;
  --gold2: #f5d77e;
  --coral: #e46a5b;
  --sky: #5aa9e6;
  --plum: #8c66b8;
  --good: #3f8f4f;
  --warn: #c98316;
  --crit: #c8412f;
  --r: 16px;
  --sh: 0 3px 0 rgba(60, 42, 32, .9);
  --sh2: 0 10px 28px rgba(40, 28, 18, .28);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --hud-left: 52px;
  --ui: 1;
  font-size: calc(15px * var(--ui));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body.title #hud, body.title #dock, body.title #objective, body.title #toasts { visibility: hidden; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #4d6b3a; }
body {
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; }
#park { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#park.painting { cursor: crosshair; }
#park.dragging { cursor: grabbing; }

/* ---------- buttons and chips ---------- */
.btn {
  appearance: none; border: 2px solid var(--ink); background: var(--paper); border-radius: 999px;
  padding: .5em 1em; font-weight: 800; box-shadow: var(--sh); cursor: pointer; line-height: 1.15;
  transition: transform .08s ease, box-shadow .08s ease, background .15s; display: inline-flex; align-items: center; gap: .45em; justify-content: center;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--gold); }
.btn.green { background: #cfe8b8; }
.btn.red { background: #f6c9bf; }
.btn.ghost { background: transparent; box-shadow: none; border-color: rgba(60, 42, 32, .35); }
.btn.small { padding: .32em .75em; font-size: .86em; }
.btn.big { padding: .75em 1.6em; font-size: 1.08em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .cost { font-weight: 700; opacity: .75; }
.x { appearance: none; border: 2px solid var(--ink); background: var(--paper); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 26px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 var(--ink); padding: 0; }

/* ---------- HUD ---------- */
#hud {
  position: fixed; z-index: 20; top: calc(8px + var(--safe-t)); left: var(--hud-left); right: 8px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; pointer-events: none;
}
#hud > * { pointer-events: auto; }
.chip {
  background: rgba(255, 250, 240, .95); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 2px 0 var(--ink);
  padding: 4px 9px; display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 38px; font-weight: 800; white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; flex: none; }
.chip .k { font-size: .72em; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.chip .v { font-family: Fraunces, Georgia, serif; font-size: 1.06em; line-height: 1.05; }
.chip .stack { display: flex; flex-direction: column; gap: 1px; }
.chip.clock .v { font-size: 1.12em; }
.chip.clock .sub { font-size: .72em; color: var(--ink2); font-weight: 800; }
.chip.cash .v { font-size: 1.12em; }
.chip.neg .v { color: var(--crit); }
.chip .sym { font-size: .8em; }
.chip.good .sym { color: var(--good); }
.chip.warn .sym { color: var(--warn); }
.chip.crit .sym { color: var(--crit); }
.chip.crit { background: #fde7e1; }
.speed { display: flex; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 0 var(--ink); background: var(--paper); margin-left: auto; }
.speed button { appearance: none; border: 0; background: transparent; min-width: 36px; height: 38px; font-weight: 900; cursor: pointer; padding: 0 6px; display: grid; place-items: center; }
.speed button + button { border-left: 2px solid rgba(60, 42, 32, .2); }
.speed button.on { background: var(--gold); }
.speed svg { width: 16px; height: 16px; }
.hud-break { flex-basis: 100%; height: 0; }

#objective {
  position: fixed; z-index: 19; left: var(--hud-left); right: 8px; top: calc(98px + var(--safe-t));
  background: rgba(255, 250, 240, .95); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 2px 0 var(--ink);
  padding: 6px 10px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9em; cursor: pointer;
  max-width: 560px;
}
#objective .env { width: 26px; height: 20px; flex: none; }
#objective .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
#objective .p { color: var(--ink2); font-weight: 800; font-size: .88em; white-space: nowrap; }
#objective.done { background: #e2f1d4; }
#objective.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 2px 0 var(--ink); } 50% { box-shadow: 0 2px 0 var(--ink), 0 0 0 6px rgba(232, 185, 58, .45); } }

/* ---------- dock ---------- */
#dock {
  position: fixed; z-index: 20; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b));
  display: flex; justify-content: space-around; gap: 4px; padding: 6px 6px 4px; max-width: 620px; margin: 0 auto;
  background: rgba(255, 250, 240, .96); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--sh), var(--sh2);
}
#dock button {
  appearance: none; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .72em; font-weight: 900; cursor: pointer; padding: 2px 4px; position: relative; min-width: 50px; color: var(--ink);
}
#dock .ico { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--paper2); transition: transform .12s; }
#dock .ico svg { width: 24px; height: 24px; }
#dock button.on .ico { background: var(--gold); transform: translateY(-2px); }
#dock button:active .ico { transform: scale(.94); }
.badge { position: absolute; top: -2px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--ink); }
.badge.gold { background: var(--gold); color: var(--ink); }

/* ---------- sheet ---------- */
#sheet {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-height: 74vh; height: 74vh;
  background: var(--paper); border-top: 2px solid var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(40, 28, 18, .3);
  transform: translateY(105%); transition: transform .26s cubic-bezier(.2, .8, .25, 1); display: flex; flex-direction: column;
  padding-bottom: var(--safe-b);
}
#sheet.open { transform: translateY(0); }
#sheet.half { height: 52vh; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(60, 42, 32, .3); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 8px 18px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 1.32em; flex: 1; line-height: 1.1; }
#sheet-body { overflow-y: auto; padding: 0 16px 24px; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; user-select: text; -webkit-user-select: text; }
@media (min-width: 900px) {
  #sheet { left: auto; right: 12px; top: calc(70px + var(--safe-t)); bottom: 100px; width: 410px; height: auto; max-height: none; border: 2px solid var(--ink); border-radius: 22px; transform: translateX(110%); box-shadow: var(--sh), var(--sh2); }
  #sheet.open { transform: translateX(0); }
  #sheet.half { height: auto; }
  .sheet-grip { display: none; }
  #objective { top: calc(58px + var(--safe-t)); }
  :root { --hud-left: 128px; }
  .hud-break { display: none; }
  .speed { order: 10; }
}

/* ---------- sheet content ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 10px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; border: 2px solid var(--ink); background: var(--paper2); border-radius: 999px; padding: .38em .9em; font-weight: 900; font-size: .86em; cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--ink); color: var(--paper); }
.tab .n { background: var(--coral); color: #fff; border-radius: 8px; padding: 0 5px; margin-left: 4px; font-size: .85em; }
.lead { color: var(--ink2); font-size: .93em; line-height: 1.45; margin: 0 0 12px; }
.card { background: var(--paper2); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px; margin-bottom: 10px; }
.card.flat { border-color: rgba(60, 42, 32, .25); }
.card h3 { margin: 0 0 6px; font-size: 1.06em; line-height: 1.2; }
.card p { margin: 0 0 8px; line-height: 1.42; font-size: .92em; }
.card .why { font-size: .84em; color: var(--ink2); }
.card .why b { color: var(--ink); }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink2); }
.small { font-size: .84em; }
.tiny { font-size: .76em; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sev { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: .82em; }
.sev.good { color: var(--good); } .sev.warn { color: var(--warn); } .sev.crit { color: var(--crit); } .sev.later { color: var(--ink3); }
.card.crit { border-color: var(--crit); background: #fdeee9; }
.card.warn { background: #fdf3df; }
.card.good { background: #eaf4e0; }

.needs { list-style: none; margin: 0 0 10px; padding: 0; border: 2px solid rgba(60, 42, 32, .2); border-radius: 14px; overflow: hidden; }
.needs li { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; font-size: .9em; background: var(--paper); }
.needs li + li { border-top: 1px solid rgba(60, 42, 32, .12); }
.needs .sym { width: 1.1em; flex: none; font-weight: 900; }
.needs .lab { flex: 1; font-weight: 700; }
.needs .note { color: var(--ink2); font-size: .9em; text-align: right; }
.needs li.good .sym { color: var(--good); } .needs li.warn .sym { color: var(--warn); } .needs li.crit .sym { color: var(--crit); } .needs li.later .sym { color: var(--ink3); }
.needs li.crit { background: #fdeee9; }

.bar { height: 8px; border-radius: 4px; background: rgba(60, 42, 32, .12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--good); }
.bar.warn i { background: var(--warn); } .bar.crit i { background: var(--crit); }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: .86em; margin: 6px 0 10px; }
.bars span:nth-child(3n) { color: var(--ink2); font-weight: 800; min-width: 2em; text-align: right; }

.portrait { width: 64px; height: 64px; border-radius: 16px; border: 2px solid var(--ink); background: radial-gradient(circle at 50% 70%, #f7eedb, #e6d6b4); flex: none; display: grid; place-items: center; overflow: hidden; }
.portrait img, .portrait canvas { width: 100%; height: 100%; }
.portrait.sm { width: 40px; height: 40px; border-radius: 11px; }
.live { width: 100%; height: auto; aspect-ratio: 720 / 260; border-radius: 16px; border: 2px solid var(--ink); display: block; margin-bottom: 10px; background: #86bd5c; }
.hab-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.hab-head .big { font-family: Fraunces, Georgia, serif; font-size: 2em; line-height: 1; }
.hab-head .st { font-weight: 900; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.achip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px 2px 3px; background: var(--paper); font-weight: 800; font-size: .86em; cursor: pointer; }
.achip .portrait.sm { width: 28px; height: 28px; border-radius: 50%; border-width: 1.5px; }
.achip .s { font-size: .8em; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-weight: 800; }
.toggle input { display: none; }
.toggle .sw { width: 44px; height: 26px; border-radius: 13px; border: 2px solid var(--ink); background: var(--paper3); position: relative; flex: none; transition: background .15s; }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: left .15s; }
.toggle input:checked + .sw { background: var(--leaf2); }
.toggle input:checked + .sw::after { left: 20px; }
.toggle .d { font-weight: 600; color: var(--ink2); font-size: .85em; }

.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.item { appearance: none; border: 2px solid var(--ink); background: var(--paper); border-radius: 14px; padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; box-shadow: 0 2px 0 var(--ink); }
.item:active { transform: translateY(2px); box-shadow: none; }
.item.on { background: var(--gold2); }
.item.locked { opacity: .5; }
.item img, .item canvas { width: 64px; height: 52px; object-fit: contain; }
.item .nm { font-weight: 900; font-size: .8em; line-height: 1.1; }
.item .pr { font-weight: 800; font-size: .76em; color: var(--ink2); }

.species { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sp-card { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 16px; padding: 10px; background: var(--paper); }
.sp-card.locked { opacity: .55; }
.sp-card h3 { margin: 0; font-size: 1em; }
.sp-card .meta { font-size: .8em; color: var(--ink2); font-weight: 700; margin: 2px 0 4px; }
.sp-card p { margin: 0 0 6px; font-size: .86em; line-height: 1.35; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { appearance: none; border: 0; background: transparent; width: 32px; height: 30px; font-weight: 900; font-size: 1.1em; cursor: pointer; }
.stepper span { min-width: 26px; text-align: center; font-weight: 900; }
.fit { font-weight: 800; font-size: .8em; }

.slider { width: 100%; accent-color: var(--coral); height: 28px; }
.ledger { width: 100%; border-collapse: collapse; font-size: .9em; }
.ledger td { padding: 4px 0; border-bottom: 1px dashed rgba(60, 42, 32, .18); }
.ledger td:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ledger tr.tot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 900; }
.pos { color: var(--good); } .neg { color: var(--crit); }
.spark { width: 100%; height: 70px; display: block; }
.stock { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px 8px; align-items: center; font-size: .88em; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }

/* ---------- toolbar (build mode) ---------- */
#toolbar {
  position: fixed; z-index: 25; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); max-width: 620px; margin: 0 auto;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; box-shadow: var(--sh), var(--sh2); padding: 8px 10px; display: flex; gap: 10px; align-items: center;
}
#toolbar img, #toolbar canvas { width: 52px; height: 44px; object-fit: contain; flex: none; }
#toolbar .info { flex: 1; min-width: 0; }
#toolbar .nm { font-weight: 900; }
#toolbar .hint { font-size: .8em; color: var(--ink2); line-height: 1.3; }
#toolbar .err { color: var(--crit); font-weight: 800; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 40; top: calc(142px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(92vw, 420px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 900px) { #toasts { top: calc(110px + var(--safe-t)); } body.panel-open #toasts { left: calc((100% - 430px) / 2); } }
.toast {
  pointer-events: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--sh), var(--sh2); padding: 9px 12px 9px 14px;
  display: flex; gap: 10px; align-items: flex-start; animation: tin .3s cubic-bezier(.2, .9, .3, 1.2); position: relative; overflow: hidden; cursor: pointer;
}
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.toast.crit::before { background: var(--crit); } .toast.warn::before { background: var(--warn); } .toast.good::before { background: var(--good); }
.toast.birth::before { background: #ef7a9a; } .toast.protest::before { background: var(--coral); } .toast.stamp::before { background: var(--plum); }
.toast b { display: block; font-size: .95em; }
.toast span { font-size: .84em; color: var(--ink2); line-height: 1.35; display: block; }
.toast.out { animation: tout .25s ease forwards; }
@keyframes tin { from { transform: translateY(-14px) scale(.96); opacity: 0; } }
@keyframes tout { to { transform: translateY(-10px); opacity: 0; } }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 70; background: rgba(30, 22, 14, .45); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--sh), var(--sh2); width: min(100%, 460px); max-height: 86vh; overflow-y: auto; padding: 18px 18px 16px; animation: pop .28s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.modal-card h2 { margin: 0 0 8px; font-size: 1.4em; line-height: 1.15; }
.modal-card p { line-height: 1.5; margin: 0 0 10px; }
.modal-card .choice { display: block; width: 100%; text-align: left; margin-top: 8px; border-radius: 14px; padding: .65em .9em; }
.modal-card .choice small { display: block; font-weight: 600; color: var(--ink2); margin-top: 2px; }
.letter { background: #fdf6e3 repeating-linear-gradient(0deg, transparent 0 27px, rgba(90, 130, 170, .12) 27px 28px); }
.letter .from { font-size: .8em; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); font-weight: 900; }
.letter .goal { margin-top: 10px; padding: 8px 10px; border: 2px dashed var(--ink); border-radius: 12px; font-weight: 800; background: rgba(255, 255, 255, .6); }
.stampbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.stampx { border: 2px dashed rgba(60, 42, 32, .35); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: .78em; font-weight: 800; color: var(--ink3); min-height: 92px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.stampx.got { border: 2px solid var(--plum); color: var(--ink); background: #f4ecfa; transform: rotate(-2deg); }
.stampx .seal { width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-family: Fraunces, Georgia, serif; font-size: 1.1em; }
.stampx.got .seal { color: var(--plum); }

/* the newspaper */
.paper { background: #f8f3e6; font-family: Fraunces, Georgia, serif; }
.paper .mast { text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.paper .mast .name { font-size: 1.5em; font-weight: 800; letter-spacing: .04em; }
.paper .mast .date { font-family: Nunito, system-ui; font-size: .75em; font-weight: 800; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.paper .head { font-size: 1.45em; font-weight: 800; line-height: 1.1; margin: 6px 0; }
.paper .sub { font-family: Nunito, system-ui; font-size: .95em; line-height: 1.45; margin: 0 0 8px; }
.paper .cols { columns: 2 180px; column-gap: 16px; font-family: Nunito, system-ui; font-size: .86em; line-height: 1.45; }
.paper blockquote { margin: 0 0 8px; font-style: italic; font-family: Fraunces, Georgia, serif; break-inside: avoid; }
.paper blockquote::before { content: '“'; font-size: 1.4em; color: var(--coral); }
.paper .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; font-family: Nunito, system-ui; }
.paper .stats div { border: 1.5px solid var(--ink); border-radius: 8px; padding: 4px 6px; text-align: center; font-size: .78em; font-weight: 800; color: var(--ink2); }
.paper .stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.3em; color: var(--ink); }
.paper .lease { font-family: Nunito, system-ui; font-size: .82em; border-top: 1.5px solid var(--ink); padding-top: 6px; }
.paper .lease span { display: inline-block; margin: 2px 8px 2px 0; font-weight: 800; }

/* ---------- hint bubble ---------- */
#hint { position: fixed; z-index: 45; max-width: 250px; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 9px 12px; font-weight: 800; font-size: .9em; line-height: 1.35; box-shadow: var(--sh2); pointer-events: none; animation: bob 1.4s ease-in-out infinite; }
#hint::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
#hint.below::after { bottom: auto; top: -8px; border-top: 0; border-bottom: 8px solid var(--ink); }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ---------- title ---------- */
#title-screen { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 120%, rgba(255, 220, 160, .35), rgba(40, 60, 30, .35) 70%); transition: opacity .5s; }
#title-screen.gone { opacity: 0; pointer-events: none; }
#title-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.title-card { background: rgba(255, 250, 240, .96); border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--sh), var(--sh2); padding: 24px 22px 18px; width: min(100%, 440px); text-align: center; animation: pop .5s cubic-bezier(.2, .9, .3, 1.2); }
.title-kicker { font-size: .78em; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); }
.title-card h1 { font-size: 2.5em; margin: 6px 0 8px; line-height: 1; font-weight: 800; }
.title-card h1 span { color: var(--coral); }
.title-sub { color: var(--ink2); line-height: 1.5; margin: 0 0 16px; }
.title-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.title-foot { font-size: .78em; color: var(--ink3); margin: 14px 0 0; }
.title-foot a { color: var(--ink2); font-weight: 800; }

@media (max-width: 600px) {
  #hud { gap: 5px; }
  .chip .k { display: none; }
  .chip { padding: 3px 7px; gap: 4px; }
  .chip.trust, .chip.press, .chip.welf { padding: 3px 7px; gap: 4px; }
  .chip .v { font-size: 1.12em; }
}
@media (max-width: 380px) {
  :root { font-size: calc(14px * var(--ui)); }
  .chip { padding: 3px 7px; }
  .speed button { min-width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
body.nomotion *, body.nomotion *::before, body.nomotion *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
