:root {
  --brand: #0f6b5c;
  --brand-mid: #17806e;
  --brand-deep: #0a4f44;
  --brand-soft: #d8efe9;
  --accent: #f0a202;
  --accent-deep: #c47f00;
  --accent-soft: #fff0c2;
  --coral: #e76f51;
  --ink: #14241f;
  --muted: #5a726a;
  --paper: #f4faf7;
  --line: rgba(15, 107, 92, 0.14);
  --shadow: 0 18px 50px rgba(10, 60, 50, 0.12);
  --radius: 22px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 8% -5%, #9fd9c8 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 5%, #ffd98a 0%, transparent 48%),
    radial-gradient(ellipse 50% 40% at 70% 100%, #b7dcec 0%, transparent 50%),
    linear-gradient(165deg, #e7f6f0 0%, #f4faf7 42%, #fff6e4 100%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
  flex: 1 0 auto;
}

.brand-mark,
a.brand-mark,
a.brand-mark:link,
a.brand-mark:visited,
a.brand-mark:hover,
a.brand-mark:active {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--brand-deep);
}

.brand-mark .logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(15, 107, 92, 0.28);
}

.brand-mark .logo img {
  width: 100%;
  height: 100%;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.12rem;
}

.brand-quest {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.brand-kudos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.brand-mark--lg .logo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
}

.brand-mark--lg .brand-quest {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.brand-mark--lg .brand-kudos {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.brand-mark--sm .logo {
  width: 2.1rem;
  height: 2.1rem;
}

.brand-mark--sm .brand-kudos {
  font-size: 1.15rem;
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-content: center;
  gap: 1.75rem;
  padding: 1rem 0 2rem;
  animation: rise 0.7s ease both;
}

.hero-trail {
  position: absolute;
  right: -4%;
  top: 12%;
  width: min(52vw, 520px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: rise 1s ease both;
}

.hero > *:not(.hero-trail) {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
}

.hero h1 .accent {
  color: var(--accent-deep);
}

.hero .lede {
  margin: 0;
  max-width: 28rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .hero-trail {
    width: 70vw;
    top: auto;
    bottom: 4%;
    opacity: 0.55;
  }
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 107, 92, 0.28);
}

a.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-accent,
a.btn-accent,
a.btn-accent:link,
a.btn-accent:visited,
a.btn-accent:hover,
a.btn-accent:active {
  background: var(--accent);
  color: #2a1d00;
  box-shadow: 0 10px 24px rgba(240, 162, 2, 0.3);
}

a.btn-accent:hover {
  background: #ffb31a;
  color: #2a1d00;
}

.btn-ghost,
a.btn-ghost,
a.btn-ghost:link,
a.btn-ghost:visited,
a.btn-ghost:hover,
a.btn-ghost:active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn-danger,
a.btn-danger,
a.btn-danger:link,
a.btn-danger:visited {
  background: #fff;
  color: var(--coral);
  border: 1px solid rgba(231, 111, 81, 0.35);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.child-pick {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  box-shadow: var(--shadow);
  animation: pop 0.45s ease both;
}

.child-pick:nth-child(2) {
  animation-delay: 0.06s;
}

.child-pick:nth-child(3) {
  animation-delay: 0.12s;
}

.child-pick .avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}

.child-pick strong {
  font-size: 1.15rem;
}

.child-pick span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  animation: rise 0.45s ease both;
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.panel {
  display: grid;
  gap: 1.25rem;
}

.stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.stat-card.level {
  background:
    linear-gradient(145deg, rgba(15, 107, 92, 0.95), rgba(10, 79, 68, 0.98)),
    var(--brand);
  color: #fff;
  border: none;
}

.stat-card.level .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.stat-card .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card .value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.stat-card .sub {
  margin: 0.45rem 0 0;
  font-weight: 700;
  opacity: 0.9;
}

.progress {
  margin-top: 1rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6c945, #fff3c4);
  transform-origin: left center;
  animation: fillBar 0.8s ease both;
}

.section {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.section h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section .hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.list {
  display: grid;
  gap: 0.7rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 107, 92, 0.05);
  border: 1px solid transparent;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.row.done {
  opacity: 0.72;
  background: rgba(15, 107, 92, 0.08);
}

.row:hover {
  border-color: var(--line);
}

.row .title {
  margin: 0;
  font-weight: 800;
}

.row .meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.gold {
  background: #fff0c2;
  color: #7a5600;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab,
a.tab,
a.tab:link,
a.tab:visited,
a.tab:hover,
a.tab:active {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.child-grid form {
  margin: 0;
}

.child-grid .child-pick {
  width: 100%;
}

.tab.active,
a.tab.active,
a.tab.active:link,
a.tab.active:visited,
a.tab.active:hover {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 107, 92, 0.35);
  outline-offset: 1px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 30, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 40;
  animation: fade 0.2s ease both;
}

.modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  animation: pop 0.28s ease both;
}

.modal h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.modal p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--brand-deep);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 50;
  animation: toastIn 0.35s ease both;
}

.burst {
  animation: burst 0.55s ease;
}

.empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item .when {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.delta-pos {
  color: var(--brand);
}

.delta-neg {
  color: var(--coral);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes burst {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Child experience —— */
.demo-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
}

.site-footer-inner {
  width: min(36rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 1.75rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.site-footer-brand {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.site-footer-brand a,
.site-footer-brand a:link,
.site-footer-brand a:visited,
.site-footer-brand a:hover,
.site-footer-brand a:active {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.site-footer-tagline {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 28rem;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.7rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.site-footer-copy {
  margin: 0;
}

.site-footer-sep {
  color: rgba(15, 107, 92, 0.28);
  user-select: none;
}

.lang-switch {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 107, 92, 0.08);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--muted);
}

.lang-switch a,
.lang-switch a:link,
.lang-switch a:visited,
.lang-switch a:hover,
.lang-switch a:active {
  text-decoration: none;
  color: var(--brand-deep);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
}

.lang-switch a[aria-current="true"],
.lang-switch a[aria-current="true"]:link,
.lang-switch a[aria-current="true"]:visited,
.lang-switch a[aria-current="true"]:hover {
  color: #fff;
  background: var(--brand);
}

.lang-switch > span[aria-hidden] {
  display: none;
}

.child-app {
  display: grid;
  gap: 1rem;
  width: min(920px, 100%);
  margin: 0 auto;
}

.child-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.child-hud {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "who points home"
    "xp xp xp";
  gap: 0.65rem 0.75rem;
  align-items: center;
}

.child-hud-who {
  grid-area: who;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.child-hud-who strong {
  display: block;
  font-size: 1.05rem;
}

.child-hud-who span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-hud-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  color: #fff;
  flex-shrink: 0;
}

.child-hud-xp {
  grid-area: xp;
  display: grid;
  gap: 0.25rem;
}

.child-hud-points {
  grid-area: points;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.4rem 0.7rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
}

.child-hud form {
  grid-area: home;
  margin: 0;
}

.child-hud-xp .progress {
  margin-top: 0;
  height: 0.55rem;
  background: rgba(15, 107, 92, 0.12);
}

.child-hud-xp .progress > span {
  background: linear-gradient(90deg, var(--brand), #7dcfb6);
}

.child-hud-xp small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
}

.child-hud-points strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.child-hud-points span:last-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.child-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.child-nav a,
.child-nav a:link,
.child-nav a:visited,
.child-nav a:hover,
.child-nav a:active {
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.7rem 0.5rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(15, 107, 92, 0.05);
}

.child-nav a.active,
.child-nav a.active:link,
.child-nav a.active:visited,
.child-nav a.active:hover {
  background: var(--brand);
  color: #fff;
}

.child-section {
  margin: 0;
}

.child-section h2 {
  margin-top: 0;
}

.task-list {
  display: grid;
  gap: 0.85rem;
}

.task-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(10, 60, 50, 0.08);
  min-height: 5.2rem;
}

.task-card.is-done {
  opacity: 0.72;
  background: rgba(15, 107, 92, 0.08);
}

.task-card.is-done .title {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.task-card.is-pending {
  border-color: rgba(240, 162, 2, 0.45);
  background: rgba(255, 240, 194, 0.45);
}

.task-card.is-locked {
  filter: grayscale(0.55);
  opacity: 0.78;
}

.task-card.is-ready {
  animation: readyPulse 2.4s ease-in-out infinite;
}

.pending-note,
.lock-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.lock-glyph {
  display: inline-block;
  width: 0.85rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-radius: 0.25rem 0.25rem 0.2rem 0.2rem;
  position: relative;
}

.lock-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.45rem;
  width: 0.55rem;
  height: 0.45rem;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 0.4rem 0.4rem 0 0;
  transform: translateX(-50%);
}

.btn-chunky {
  min-height: 3.1rem;
  min-width: 7.5rem;
  padding: 0.85rem 1.2rem;
  font-size: 1.05rem;
  border-radius: 18px;
}

.confetti-piece {
  position: fixed;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  z-index: 80;
  pointer-events: none;
  animation: confettiFall 1.1s ease-out forwards;
}

.child-hud-points.pop {
  animation: burst 0.55s ease;
}

@keyframes readyPulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(10, 60, 50, 0.08);
  }
  50% {
    box-shadow: 0 12px 32px rgba(240, 162, 2, 0.28);
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(70vh) rotate(520deg);
    opacity: 0;
  }
}

/* Desktop / wide web: keep the good mobile composition, don't stretch into a dashboard */
@media (min-width: 860px) {
  .app-shell:has(.child-app) {
    width: min(720px, calc(100% - 3rem));
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .child-app {
    width: 100%;
    gap: 1.1rem;
  }

  .child-shell {
    padding: 1rem 1.2rem 1.05rem;
    gap: 0.85rem;
    border-radius: 26px;
  }

  .child-hud {
    gap: 0.75rem 1rem;
  }

  .child-hud-who strong {
    font-size: 1.2rem;
  }

  .child-hud-avatar {
    width: 3.35rem;
    height: 3.35rem;
    font-size: 1.7rem;
  }

  .child-hud-points {
    padding: 0.45rem 0.85rem;
  }

  .child-hud-points strong {
    font-size: 1.55rem;
  }

  .child-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 18px;
    background: rgba(15, 107, 92, 0.06);
  }

  .child-nav a {
    min-width: 0;
    padding: 0.8rem 0.6rem;
    font-size: 1rem;
    border-radius: 14px;
    background: transparent;
  }

  .child-nav a.active {
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(15, 107, 92, 0.28);
  }

  /* One chrome layer only: shell is the card, content sits below */
  .child-section {
    padding: 0.35rem 0.15rem 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .child-section h2 {
    font-size: 1.7rem;
  }

  .task-list {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .task-card {
    min-height: 5.6rem;
    padding: 1.15rem 1.25rem;
    border-radius: 22px;
  }

  .btn-chunky {
    min-width: 8.25rem;
  }

  .activity-item {
    padding: 0.85rem 0.2rem;
    font-size: 1.02rem;
  }
}
