:root {
  --ink: #1c2421;
  --muted: #5b6562;
  --paper: #f7f4ee;
  --card: #ffffff;
  --accent: #0f6e68;
  --accent-hover: #0b5853;
  --accent-soft: #dcefec;
  --hero: #e7f4f1;
  --warm: #e2a21a;
  --line: #e4ddd2;
  --shadow: 0 12px 40px rgba(28, 36, 33, 0.06);
  --radius: 18px;
  --max: 1160px;
  --page-pad: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(calc(-100% - 16px));
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  transform: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--page-pad);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 650;
  font-size: 14px;
}

.btn:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: var(--card); }

.hero, .wrap, .legal, .band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--page-pad) 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 12px;
}

.hero-devices {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  justify-self: center;
}

.hero-devices .phone { min-width: 0; }

.hero-devices .kid-label { display: none; }

.phone.is-pulse {
  box-shadow:
    0 0 0 3px rgba(255, 159, 28, 0.55),
    0 22px 48px rgba(43, 45, 66, 0.18);
}

.demo-hint {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.demo-toast {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) translateY(6px);
  background: #2b2d42;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(43, 45, 66, 0.22);
}

.demo-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.install-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.install-get {
  display: flex;
  align-items: center;
  min-width: 0;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  overflow: hidden;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

.store-badge:hover {
  opacity: 0.88;
}

.store-badge.is-soon {
  flex-direction: column;
  height: auto;
  gap: 4px;
  cursor: pointer;
}

.store-soon-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 88, 83, 0.52);
}

.site-modal-card {
  position: relative;
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(11, 88, 83, 0.22);
  padding: 28px 24px 22px;
  text-align: center;
}

.site-modal-mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(28, 36, 33, 0.16);
  object-fit: cover;
}

.site-modal-pill {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(226, 162, 26, 0.16);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-modal-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.site-modal-lead {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 650;
}

.site-modal-note {
  margin: 0 0 20px;
  padding: 10px 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
  font-weight: 650;
}

.site-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-modal-actions .btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  font-size: 16px;
  box-sizing: border-box;
}

.site-modal-dismiss {
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  border-radius: 12px;
}

.site-modal-dismiss:hover {
  background: var(--paper);
  color: var(--ink);
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.store-badge-play img {
  height: 72px;
}

.install-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.02em;
  background: transparent;
  box-sizing: border-box;
  white-space: nowrap;
}

.install-web:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.install-browser {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.install-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

.install-qr[hidden] {
  display: none !important;
}

.install-qr img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background: #fff;
}

@media (min-width: 861px) {
  .install-panel {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px 24px;
    box-shadow: var(--shadow);
  }

  .install-qr {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .install-get,
  .install-get .store-row {
    flex: 1;
    flex-wrap: nowrap;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 10px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.define {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 16px;
}

.phone {
  --app-orange: #ff9f1c;
  --app-green: #2ec4b6;
  --app-ink: #2b2d42;
  --app-gray: #6b7280;
  --app-bg: #f6f4f0;
  position: relative;
  background: #2b2d42;
  border-radius: 36px;
  padding: 11px 10px 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 22px 48px rgba(43, 45, 66, 0.18),
    0 8px 18px rgba(28, 36, 33, 0.12);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
  border-radius: 26px;
  overflow: hidden;
  color: var(--app-ink);
  min-height: 520px;
}

.phone-status {
  padding: 8px 16px 0;
  font-size: 11px;
  font-weight: 650;
  color: var(--app-gray);
  background: rgba(255, 255, 255, 0.92);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-width: 0;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--app-orange);
  background: #2e7d4f;
  flex: none;
}

.app-user strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.star-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff7ed;
  color: var(--app-orange);
  border: 1px solid #ffedd5;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.star-pill b { font-weight: 700; }

.star-pill svg { display: block; }

.kid-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 159, 28, 0.12);
  color: var(--app-orange);
  border: 1px solid rgba(255, 159, 28, 0.35);
  border-radius: 22px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  flex: none;
}

.kid-chip svg { display: block; }

.app-body {
  position: relative;
  padding: 10px 12px 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.app-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

[data-demo-page] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

[data-demo-page][hidden] { display: none !important; }

.app-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
}

.app-panel[hidden] { display: none !important; }

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.panel-head button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--app-orange);
  cursor: pointer;
  padding: 6px 4px;
}

.panel-head strong {
  font-size: 14px;
}

.sheet {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 8px;
}

.sheet-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sheet-lead {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
}

.tool-group {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 800;
  color: #374151;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 10px 8px;
  appearance: none;
  border: 1px solid #f3f4f6;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tool-card:hover { background: #fffdf9; }

.tool-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
}

.tool-card em {
  position: absolute;
  top: 8px;
  right: 8px;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: var(--app-orange);
  border-radius: 8px;
  padding: 2px 6px;
}

.tool-card strong {
  font-size: 13px;
  font-weight: 800;
}

.tool-card small {
  font-size: 10px;
  line-height: 1.3;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.points-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background-color: #ff9f1c;
  background-image: linear-gradient(135deg, #ff9f1c, #f97316);
  color: #fff;
  margin-bottom: 10px;
}

.points-card > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.points-hist {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.92;
  cursor: pointer;
  justify-self: end;
  padding: 0;
}

.points-card > b {
  grid-column: 1 / -1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.points-sum {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.points-sum span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.95;
  text-transform: none;
  letter-spacing: 0;
}

.points-sum b {
  font-size: 13px;
  font-weight: 800;
}

.reward-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.reward-head strong { font-size: 15px; }

.mini-add,
.mini-link {
  appearance: none;
  border: 0;
  background: var(--app-orange);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.mini-link {
  background: transparent;
  color: var(--app-orange);
  padding: 6px 4px;
}

.reward-head .mini-add { margin-left: auto; }

.wish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wish-grid[hidden],
.hist[hidden] { display: none !important; }

.wish {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 108px;
  padding: 8px;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55)), var(--wish, #fb923c);
  border-radius: 14px;
  color: #fff;
  overflow: hidden;
}

.wish-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border-radius: 6px;
  padding: 2px 6px;
}

.wish-ico { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.wish strong { font-size: 13px; font-weight: 800; }

.wish-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.wish small {
  font-size: 10px;
  font-weight: 800;
  background: #ffb020;
  color: #fff;
  border-radius: 7px;
  padding: 3px 7px;
}

.wish button {
  margin-left: auto;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--app-orange);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 7px;
  cursor: pointer;
}

.wish button.is-broke {
  background: rgba(255, 255, 255, 0.72);
  color: #6b7280;
}

.wish button.is-shake { animation: pet-shake 0.28s ease; }

.wish.is-got button {
  background: #d1fae5;
  color: #047857;
}

.hist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.hist li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
}

.hist b { color: #d97706; }
.hist small { color: #6b7280; font-size: 10px; }

.fam-plus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background-color: #0f6e68;
  background-image: linear-gradient(135deg, #0f6e68, #2ec4b6);
  color: #fff;
  margin-bottom: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 110, 104, 0.28);
}

.fam-plus.is-static { cursor: default; }

.fam-plus-mark {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 4px;
}

.fam-plus strong { font-size: 18px; font-weight: 800; }
.fam-plus span { font-size: 12px; opacity: 0.92; }
.fam-plus small { font-size: 11px; opacity: 0.8; }

.fam-menu {
  display: grid;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
}

.fam-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.fam-menu button:last-child { border-bottom: 0; }
.fam-menu button:hover { background: #fffdf9; }
.fam-menu button.is-static { cursor: default; }
.fam-menu i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  color: #fff;
  flex: none;
}
.fam-menu em {
  margin-left: auto;
  font-style: normal;
  color: #9ca3af;
}
.fam-menu b {
  margin-left: auto;
  font-size: 11px;
  color: var(--app-orange);
}

.fam-ver {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  color: #9ca3af;
}

.flip-card {
  width: 100%;
  min-height: 132px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font: inherit;
  padding: 16px;
}

.flip-face {
  display: grid;
  place-items: center;
  min-height: 100px;
  font-size: 28px;
  font-weight: 800;
}

.flip-face.is-back { color: var(--app-orange); }

.flip-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.flip-nav button,
.ask-chips button {
  appearance: none;
  border: 1px solid #f3f4f6;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ask-chips button.on {
  background: var(--app-orange);
  color: #fff;
  border-color: var(--app-orange);
}

.read-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.read-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
}

.read-list strong { font-size: 13px; }
.read-list small { grid-column: 1; font-size: 11px; color: #6b7280; }
.read-list button {
  grid-row: 1 / 3;
  grid-column: 2;
  appearance: none;
  border: 0;
  background: var(--app-orange);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  align-self: center;
}

.read-list .is-done { background: #e8f4f2; }
.read-list .is-done small { color: #0f6e68; }

.timer-sheet { text-align: center; }
.timer-task { margin: 0; font-size: 13px; font-weight: 700; color: #6b7280; }
.timer-face {
  margin: 8px 0 12px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.timer-go {
  appearance: none;
  border: 0;
  background: var(--app-orange);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
}

.timer-go:disabled {
  background: #e5e7eb;
  color: #9ca3af;
}

.piggy-amt {
  margin: 8px 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.draw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.draw-grid span {
  display: grid;
  place-items: center;
  min-height: 64px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
}

.draw-grid span.is-on {
  border-color: var(--app-orange);
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(255, 159, 28, 0.35);
}

.draw-grid span.is-win {
  background: #d1fae5;
  border-color: #047857;
  color: #047857;
}

.feed-box {
  width: 100%;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  resize: none;
  margin-bottom: 10px;
}

.help-item {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.help-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.help-item p { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.4; }

.seg {
  display: flex;
  gap: 0;
  padding: 4px;
  background: #fafaf8;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  margin-bottom: 10px;
}

.seg > span,
.seg > button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.seg > span.on,
.seg > button.on {
  background: #fff;
  color: var(--app-orange);
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.seg svg { display: block; }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0 0 88px;
  display: grid;
  gap: 8px;
}

.plan-list[hidden] { display: none; }

.plan {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.plan.done {
  background: #e8f4f2;
  border: 2px solid rgba(46, 196, 182, 0.55);
}

.plan.next {
  background: #fff;
  cursor: pointer;
}

.plan[data-task]:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.plan:not(.done) .state.done,
.plan:not(.done) em { display: none; }

.plan.done .state.open,
.plan.done .quick { display: none; }

.plan-tag {
  width: 48px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.plan-tag small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-main {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px 10px;
}

.plan-main p {
  margin: 0 36px 0 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.25;
}

.plan-main .state { color: var(--app-green); flex: none; }

.plan-main .state.open { color: #374151; }

.plan-main em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: var(--app-green);
  background: rgba(46, 196, 182, 0.17);
  border: 1px solid rgba(46, 196, 182, 0.42);
  border-radius: 4px;
  padding: 1px 5px;
}

.coin {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 159, 28, 0.1);
  color: var(--app-orange);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
}

.quick {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid var(--app-orange);
  color: var(--app-orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.pet-float {
  position: absolute;
  right: 6px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  pointer-events: auto;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.pet-float img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(43, 45, 66, 0.16));
  animation: phone-pet-bob 2.6s ease-in-out infinite;
}

.pet-name {
  font-size: 10px;
  font-weight: 650;
  color: #7a6b5e;
  margin-top: 1px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #7a4b2a;
  white-space: nowrap;
}

.pet-stars svg { color: #f59e0b; }

.app-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding: 8px 4px 10px;
}

.app-nav > span,
.app-nav > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #bdbdbd;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.app-nav > span.on,
.app-nav > button.on {
  color: var(--app-orange);
  font-weight: 700;
}

.app-nav svg { display: block; }

.phone-home {
  width: 108px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  margin: 8px auto 4px;
}

@keyframes phone-pet-bob {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-5px); }
}

@keyframes pet-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes pet-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.phone-pet .phone-screen { background: #fff8f0; }

.pet-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 8px 0;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pet-back {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  border-radius: 10px;
}

.pet-head > strong {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #333;
}

.pet-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: #d97706;
  font-size: 14px;
  font-weight: 800;
  padding-right: 2px;
}

.pet-points em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
}

.pet-coin {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-size: 14px;
}

.pet-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 8px 10px 0;
}

.pet-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  padding: 6px 6px 6px;
  box-shadow: 0 8px 18px rgba(255, 159, 28, 0.08);
  min-height: 0;
  overflow: hidden;
}

.pet-hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  appearance: none;
  border: 0;
  background: radial-gradient(circle at 50% 42%, #efe6d4, #f7f2e8 68%);
  border-radius: 16px;
  cursor: pointer;
  padding: 4px 8px 6px;
  min-height: 0;
  overflow: hidden;
}

.pet-hero > img {
  flex: 1 1 0;
  width: 90%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(43, 45, 66, 0.16));
  pointer-events: none;
}

.pet-hero img.is-pop { animation: pet-pop 0.45s ease; }

.pet-bubble {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #fff;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pet-hud {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 2px 0;
  text-align: left;
}

.pet-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
}

.pet-meta strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.pet-meta span {
  font-size: 10px;
  font-weight: 650;
  color: #7a6b5e;
  line-height: 1.25;
}

.growth {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.growth-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.growth-track {
  flex: 1;
  min-width: 0;
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 159, 28, 0.18);
  overflow: hidden;
}

.growth-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--app-orange);
  transition: width 0.4s ease;
}

.growth-fill.is-hot {
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.7);
}

.growth-fill.is-bump {
  animation: growth-bump 0.45s ease;
}

.growth-row b {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  color: #7a6b5e;
  white-space: nowrap;
}

.growth [data-xp-gap] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes growth-bump {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}

.pet-xp {
  display: block;
  width: 56px;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 99px;
  background: rgba(255, 159, 28, 0.22);
  overflow: hidden;
}

.pet-xp i {
  display: block;
  height: 100%;
  background: var(--app-orange);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.pet-evolve {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(26, 18, 10, 0.52);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.pet-evolve[hidden] { display: none !important; }

.pet-evolve-flash {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 200, 0.95) 0%, rgba(226, 162, 26, 0.45) 38%, transparent 72%);
  animation: pet-flash 0.55s ease-out forwards;
}

.pet-evolve-ring {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 4px solid var(--warm);
  opacity: 0.95;
  animation: pet-ring 0.95s ease-out forwards;
}

.pet-evolve-ring + .pet-evolve-ring {
  border-color: var(--accent);
  animation-delay: 0.1s;
  animation-duration: 1.15s;
}

.pet-evolve-bits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pet-evolve-old,
.pet-evolve-new {
  position: absolute;
  top: 8%;
  width: 62%;
  height: auto;
  max-height: 68%;
  aspect-ratio: 1;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.pet-evolve-old {
  animation: evolve-fly 0.55s ease-in forwards;
}

.pet-evolve-new {
  opacity: 0;
  transform: scale(0.7);
}

.pet-evolve.is-reveal .pet-evolve-new {
  animation: evolve-reveal 0.55s cubic-bezier(0.2, 1.4, 0.3, 1) forwards;
}

.pet-evolve-copy {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  margin: 0;
  text-align: center;
  color: #fff;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.pet-evolve.is-reveal .pet-evolve-copy {
  animation: evolve-copy 0.35s ease forwards;
}

.pet-evolve-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pet-evolve-copy em {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: #ffe08a;
}

@keyframes evolve-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-36px, -72px) scale(0.42); opacity: 0; }
}

@keyframes evolve-reveal {
  0% { transform: scale(0.72); opacity: 0; filter: brightness(1.45); }
  45% { transform: scale(1.14); opacity: 1; filter: brightness(1.18); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

@keyframes evolve-copy {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pet-meta strong {
  font-size: 15px;
  font-weight: 800;
}

.pet-meta span {
  font-size: 11px;
  font-weight: 650;
  color: #7a6b5e;
}

.vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-top: 6px;
  flex: none;
}

.vital {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  align-items: center;
}

.vital > span {
  font-size: 9px;
  font-weight: 650;
  color: #6b7280;
}

.vital [data-vital-val] {
  font-size: 10px;
  font-weight: 800;
  color: var(--app-ink);
}

.vital-track {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #f3f4f6;
  overflow: hidden;
}

.vital-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 0.35s ease;
}

[data-vital="hunger"] .vital-fill { background: #f59e0b; }
[data-vital="mood"] .vital-fill { background: #ec4899; }
[data-vital="clean"] .vital-fill { background: #38bdf8; }
[data-vital="energy"] .vital-fill { background: #eab308; }

.pet-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0 0;
  padding: 6px 4px 5px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(255, 159, 28, 0.22);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 16px rgba(255, 159, 28, 0.08);
}

.pet-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  appearance: none;
  border: 2px solid rgba(255, 159, 28, 0.28);
  background: rgba(255, 247, 237, 0.9);
  border-radius: 12px;
  padding: 6px 2px 5px;
  cursor: pointer;
  font-family: inherit;
  color: var(--app-ink);
  min-width: 0;
}

.pet-act span { font-size: 16px; line-height: 1; }

.pet-act b {
  font-size: 9px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
}

.pet-act small {
  font-size: 10px;
  font-weight: 700;
  color: var(--app-orange);
}

.pet-act.loved { border-color: #e11d48; }

.pet-act.is-broke {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.pet-act.is-broke small { color: #9ca3af; }

.pet-act.is-shake { animation: pet-shake 0.28s ease; }

.pet-act:hover:not(.is-broke) { background: #fff; }

.plan[data-task]:focus-visible,
.pet-float:focus-visible,
.pet-act:focus-visible,
.pet-back:focus-visible,
.seg > button:focus-visible,
.app-nav > button:focus-visible,
.pet-hero:focus-visible,
.tool-card:focus-visible,
.wish button:focus-visible,
.mini-add:focus-visible,
.mini-link:focus-visible,
.fam-plus:focus-visible,
.fam-menu button:focus-visible,
.panel-head button:focus-visible,
.timer-go:focus-visible {
  outline: 2px solid var(--app-orange);
  outline-offset: 2px;
}

.pet-panel {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 6px 20px;
  background: linear-gradient(180deg, #d7efeb 0%, #fff 70%);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.pet-panel > div {
  max-width: 640px;
}

.pet-grow-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}

.pet-grow-strip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 16px;
}

.pet-grow-strip-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pet-grow-strip-row img {
  display: block;
  max-width: none;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 8px 14px rgba(28, 36, 33, 0.14));
  pointer-events: none;
}

.pet-grow-strip-row img:nth-child(1) {
  width: 72px;
  height: 72px;
}

.pet-grow-strip-row img:nth-child(2) {
  width: 108px;
  height: 108px;
  margin-left: -10px;
}

.pet-grow-strip-row img:nth-child(3) {
  width: 148px;
  height: 148px;
  margin-left: -14px;
}

.pet-grow-strip:hover img:nth-child(3) {
  transform: translateY(-3px);
}

.pet-grow-strip-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pet-panel h2, .pet-panel h3 { margin: 0 0 8px; }

.pet-panel p {
  margin: 0;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.roster {
  margin: 12px 0 36px;
  overflow-x: clip;
  scroll-margin-top: 88px;
}

.roster-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad) 10px;
}

.marquee {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  width: 100%;
}

.marquee-row {
  --fade: clamp(28px, calc((100% - min(100%, var(--max))) / 2 + var(--page-pad)), 180px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: pet-marquee 52s linear infinite;
}

.marquee-row.reverse .marquee-track {
  animation-name: pet-marquee-rev;
  animation-duration: 62s;
}

.marquee-row:hover .marquee-track,
.roster.is-frozen .marquee-track {
  animation-play-state: paused;
}

.pet-card {
  flex: 0 0 auto;
  width: 128px;
  margin: 0;
  padding: 10px 10px 8px;
  background: var(--card);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  appearance: none;
}

.pet-card:hover {
  transform: translateY(-3px);
}

.pet-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pet-card img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  pointer-events: none;
}

.pet-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.pet-grow-open { overflow: hidden; }

.pet-grow[hidden] { display: none !important; }

.pet-grow {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pet-grow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 33, 0.46);
}

.pet-grow-panel {
  position: relative;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(28, 36, 33, 0.2);
  overflow: visible;
}

.pet-grow-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.pet-grow-panel h2 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.pet-grow-stage {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 12px;
  overflow: visible;
}

.pet-grow-stage img {
  position: absolute;
  inset: 0;
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 1;
}

.pet-grow-stage img.is-on {
  opacity: 1;
  transform: scale(1);
}

.pet-grow-panel.is-celebrate .pet-grow-stage img.is-on {
  animation: pet-pop 0.55s cubic-bezier(0.2, 1.6, 0.3, 1);
}

.pet-grow-panel.is-celebrate .pet-grow-bar i {
  box-shadow: 0 0 16px rgba(226, 162, 26, 0.85);
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.pet-grow-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.pet-grow-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 200, 0.95) 0%, rgba(226, 162, 26, 0.45) 38%, transparent 72%);
  animation: pet-flash 0.55s ease-out forwards;
  z-index: 0;
}

.pet-grow-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 4px solid var(--warm);
  opacity: 0.95;
  animation: pet-ring 0.95s ease-out forwards;
}

.pet-grow-ring:nth-child(2) {
  border-color: var(--accent);
  animation-delay: 0.1s;
  animation-duration: 1.15s;
}

.pet-grow-bit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size, 12px);
  height: var(--size, 12px);
  margin: calc(var(--size, 12px) / -2) 0 0 calc(var(--size, 12px) / -2);
  background: var(--bit, var(--warm));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: pet-bit 1.35s cubic-bezier(0.12, 0.7, 0.25, 1) forwards;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 1px 2px rgba(28, 36, 33, 0.18));
}

.pet-grow-bit.is-dot {
  clip-path: none;
  border-radius: 50%;
}

.pet-grow-bit.is-spark {
  clip-path: none;
  border-radius: 2px;
  width: 4px;
  height: var(--size, 14px);
  margin: calc(var(--size, 14px) / -2) 0 0 -2px;
}

@keyframes pet-pop {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.16); filter: brightness(1.18); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes pet-flash {
  0% { transform: scale(0.35); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes pet-ring {
  0% { transform: scale(0.35); opacity: 0.95; }
  100% { transform: scale(9.4); opacity: 0; }
}

@keyframes pet-bit {
  0% {
    transform: translate(0, 0) scale(0.35) rotate(0deg);
    opacity: 1;
  }
  18% { opacity: 1; }
  78% { opacity: 1; }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--spin, 140deg));
    opacity: 0;
  }
}

.pet-grow-level {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pet-grow-label {
  margin: 0 0 8px;
  color: var(--muted);
}

.pet-grow-bar {
  height: 6px;
  max-width: 220px;
  margin: 10px auto 8px;
  background: var(--accent-soft);
  border-radius: 99px;
  overflow: hidden;
}

.pet-grow-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.32s ease;
}

.pet-grow-panel .btn {
  margin-top: 8px;
}

@keyframes pet-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

@keyframes pet-marquee-rev {
  from { transform: translateX(calc(-50% - 6px)); }
  to { transform: translateX(0); }
}

.problems, .beliefs, .plus-grid, .pair {
  display: grid;
  gap: 14px;
}

.problems { grid-template-columns: 1fr 1fr; }

.beliefs, .plus-grid { grid-template-columns: repeat(3, 1fr); }

.pair { grid-template-columns: 1fr 1fr; }

.problem h3, .belief h3, .plus-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.problem p, .belief p, .plus-card p {
  margin: 0;
  color: var(--muted);
}

.plus-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.plus-card.featured {
  background: var(--ink);
  color: #fff;
}

.plus-card h2 { margin-top: 0; }

.plus-card.featured p,
.plus-card.featured h2,
.plus-card.featured h3 { color: #fff; }

.plus-card.featured p { color: #d5ddd9; }

.plus-card ul {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: inherit;
}

.plus-card.featured ul { color: #d5ddd9; }

.plus-card li { margin: 0 0 6px; }

.plus-card.featured .btn:not(.btn-ghost) {
  background: #fff;
  color: var(--ink) !important;
}

.plus-card.featured .btn:not(.btn-ghost):hover { background: var(--hero); }

.plus-card.featured .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.plus-card .plus-price {
  display: block;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 12px 0 8px;
  color: inherit;
}

.plus-card .plus-price small {
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
}

.plus-card.featured .plus-price {
  color: #fff;
}

.plus-card.featured .plus-price small {
  color: #d5ddd9;
}

.plus-card > p:last-of-type {
  margin-bottom: 16px;
}

.plus-card .btn {
  margin-top: auto;
  align-self: stretch;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 24px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.card h2, .card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card p, .card li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.card li + li { margin-top: 6px; }

.wrap > .card { padding: 28px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  counter-increment: step;
}

.step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.panel {
  background: var(--hero);
  border-radius: 24px;
  padding: 28px 24px;
}

.panel h2 { margin-top: 0; }

.faq details {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p {
  margin: 10px 0 4px;
  color: var(--muted);
}

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta h2, .cta p { margin: 0; color: #fff; }

.cta p { color: #d5ddd9; max-width: 520px; }

.cta .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.fine {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 84px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.toc p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.toc a:last-child { border-bottom: 0; }

.legal article {
  background: var(--card);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.legal h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.03em; }
.legal h2 { margin: 28px 0 8px; font-size: 19px; scroll-margin-top: 88px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal code {
  font-size: 0.92em;
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 6px;
}
.meta { color: var(--muted); font-size: 14px; }

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.crumb a { color: inherit; }

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--page-pad) 48px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

footer a { color: inherit; }

.legal-lite {
  grid-template-columns: 1fr;
  max-width: 760px;
}

@media (min-width: 900px) {
  :root { --page-pad: 40px; }

  .legal article { padding: 40px; }
}

@media (max-width: 860px) {
  .hero, .steps, .split, .legal, .problems, .beliefs, .plus-grid, .pair, .pet-panel {
    grid-template-columns: 1fr;
  }

  .install-qr { display: none; }

  .pet-panel { justify-items: center; text-align: center; }

  .hero-devices {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 18px auto 0;
  }

  .hero-devices .phone[data-demo-phone="pet"] { display: none; }

  .hero-devices.is-pet .phone[data-demo-phone="today"] { display: none; }

  .hero-devices.is-pet .phone[data-demo-phone="pet"] { display: block; }

  .phone {
    max-width: 360px;
    margin: 18px auto 0;
  }

  .hero-devices .phone {
    max-width: none;
    margin: 0;
  }

  .hero-devices .kid-label { display: inline; }

  .toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--page-pad);
    justify-content: center;
  }

  .marquee-row {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }

  .marquee-track .clone { display: none; }

  .pet-grow-stage img {
    transition: none;
    transform: none;
  }

  .pet-grow-burst,
  .pet-grow-burst *,
  .pet-grow-panel.is-celebrate .pet-grow-stage img.is-on,
  .pet-float img,
  .pet-hero img.is-pop,
  .pet-act.is-shake,
  .pet-evolve-flash,
  .pet-evolve-ring,
  .pet-evolve-old,
  .pet-evolve-new,
  .pet-evolve.is-reveal .pet-evolve-new,
  .pet-evolve.is-reveal .pet-evolve-copy,
  .growth-fill.is-bump {
    animation: none;
  }
}
