﻿:root {
  color-scheme: light;
  --ink: #13202f;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #fbfcf7;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-2: #ccfbf1;
  --rose: #be123c;
  --amber: #b45309;
  --sky: #0369a1;
  --lime: #4d7c0f;
  --shadow: 0 14px 34px rgba(19, 32, 47, 0.1);
  --gold: #f59e0b;
  --mint: #14b8a6;
  --berry: #db2777;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1800&q=80") center / cover fixed;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.signin-screen {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: center;
}
.signin-hero {
  min-height: 520px;
  border-radius: 8px;
  padding: 34px;
  color: white;
  display: grid;
  align-content: end;
  background:
    linear-gradient(rgba(8, 47, 73, .08), rgba(15, 23, 42, .68)),
    url("./assets/garden-eden-cover.svg") center / cover;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255,255,255,.78);
}
.signin-hero .eyebrow { color: #fde68a; }
.signin-logo { width: 128px; height: 128px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 8px; padding: 8px; margin-bottom: 16px; }
.signin-hero h1 { font-size: clamp(46px, 7vw, 82px); line-height: .95; margin-bottom: 14px; }
.signin-hero p { max-width: 560px; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.5; }
.signin-hero .church-line { font-size: 13px; color: #fde68a; font-weight: 900; }
.signin-hero .music-note { font-size: 13px; font-weight: 900; color: #ccfbf1; margin: 10px 0 0; }
.signin-name { max-width: 360px; margin-top: 18px; color: white; font-size: 13px; font-weight: 900; }
.signin-name input { margin-top: 8px; width: 100%; border: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.94); }
.emoji-picker { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 390px; }
.emoji-picker span { width: 100%; color: #fde68a; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.emoji-picker button { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(255,255,255,.16); font-size: 24px; }
.emoji-picker button.active { background: #fbbf24; border-color: #fbbf24; }
.age-picker { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.age-picker span { width: 100%; color: #fde68a; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.age-picker button { border: 2px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(255,255,255,.12); color: white; min-height: 42px; padding: 0 16px; font-weight: 900; }
.age-picker button.active { background: #fbbf24; color: #172554; border-color: #fbbf24; }
.signin-grid { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 18px; }
.signin-card {
  min-height: 220px;
  border: 3px solid rgba(255,255,255,.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 20px;
  color: var(--ink);
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 10px;
  transition: transform .16s ease, border-color .16s ease;
}
.signin-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.signin-card [data-icon] { width: 44px; height: 44px; color: var(--teal); }
.signin-card strong { font-size: 28px; line-height: 1.05; }
.signin-card small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.signin-card em { font-style: normal; background: #e0f2fe; color: #075985; border-radius: 8px; padding: 7px 9px; font-weight: 900; }
.signin-card.kid-card { background: linear-gradient(135deg, #fffbeb, #ecfeff); border-color: #fbbf24; }
.signin-card.kid-card [data-icon] { color: var(--berry); }
.subscription-card { grid-column: span 2; border: 2px solid #fbbf24; border-radius: 8px; background: #fffbeb; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.subscription-card strong, .subscription-card span, .subscription-card small { display: block; }
.subscription-card strong { font-size: 22px; }
.subscription-card span { color: #92400e; font-weight: 900; }
.subscription-card small { color: var(--muted); }
.subscription-card.free-card { border-color: #99f6e4; background: #f0fdfa; }
.free-badge { width: 112px; height: 112px; border-radius: 8px; display: grid; place-items: center; background: #0f766e; color: white; font-size: 24px; font-weight: 900; box-shadow: var(--shadow); }
.welcome-letter { grid-column: span 2; border: 2px solid #bae6fd; border-radius: 8px; background: white; display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 16px; padding: 16px; align-items: center; box-shadow: var(--shadow); }
.welcome-letter img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 28%; border-radius: 8px; }
.welcome-letter strong, .welcome-letter small { display: block; }
.welcome-letter strong { font-size: 24px; color: var(--sky); }
.welcome-letter p { margin-bottom: 8px; color: #344054; line-height: 1.5; }
.welcome-letter small { color: var(--muted); font-weight: 800; }
.qr-code { width: 112px; height: 112px; border: 8px solid white; border-radius: 8px; background: linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 22px 22px, linear-gradient(#111 10px, transparent 10px) 0 0 / 22px 22px, #f8fafc; box-shadow: inset 0 0 0 8px #111; }
.qr-code.small { width: 92px; height: 92px; border-width: 6px; }
.qr-link { display: inline-block; border-radius: 8px; }
.payment-qr { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; background: white; padding: 8px; box-shadow: 0 10px 24px rgba(15, 23, 42, .16); }
.payment-qr.small { width: 96px; height: 96px; }
.payment-qr.hero-qr { width: 172px; height: 172px; margin: 8px 0 14px; }
.inline-link { color: var(--teal); font-weight: 900; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.member-box { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.member-box p { margin: 0; color: var(--muted); line-height: 1.45; }
.pastor-card { overflow: hidden; padding: 0; }
.pastor-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 28%; display: block; }
.pastor-card div { padding: 16px; }
.pastor-card p { margin-bottom: 0; color: var(--muted); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 320px 1fr; }
.sidebar {
  background:
    radial-gradient(circle at 20% 12%, rgba(251, 191, 36, .28), transparent 26%),
    linear-gradient(170deg, #103f3d 0%, #075985 54%, #7e1d4f 100%);
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; background: white; border-radius: 8px; padding: 5px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.brand-mark { width: 58px; height: 58px; border-radius: 8px; display: grid; place-items: center; background: #fbbf24; color: #172554; font-weight: 900; font-size: 20px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.brand strong, .brand span { display: block; }
.brand span, .service-card span { color: rgba(255,255,255,.78); font-size: 13px; }
.portal-nav { display: grid; gap: 12px; }
.nav-item {
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: white;
  border-radius: 8px;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  position: relative;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.nav-item [data-icon] { width: 30px; height: 30px; }
.nav-item span:last-of-type { display: block; font-size: 19px; font-weight: 900; }
.nav-item small { display: block; color: rgba(255,255,255,.75); font-weight: 800; }
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,.2); border-color: #fde68a; transform: translateY(-2px); }
.nav-item.kid-entry { background: linear-gradient(135deg, #f59e0b, #db2777); border-color: rgba(255,255,255,.42); }
.service-card { margin-top: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 16px; display: grid; gap: 8px; background: rgba(255,255,255,.08); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; font-size: 11px; margin: 0 0 4px; }
.sidebar .eyebrow { color: #a7f3d0; }
.mini-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; display: inline-block; }
.main { padding: 26px; min-width: 0; backdrop-filter: blur(2px); }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 44px); }
h2 { margin-bottom: 0; font-size: 20px; }
h3 { font-size: 14px; margin: 0 0 10px; color: #344054; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.search-wrap { background: white; border: 1px solid var(--line); min-height: 44px; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: min(380px, 42vw); }
.search-wrap input { border: 0; outline: 0; width: 100%; color: var(--ink); }
.icon-button, .ghost-btn, .primary-btn { border-radius: 8px; border: 1px solid var(--line); min-height: 42px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 0 14px; background: white; color: var(--ink); }
.primary-btn { background: var(--teal); color: white; border-color: var(--teal); font-weight: 700; }
.ghost-btn:hover, .icon-button:hover { border-color: var(--teal); color: var(--teal); }
.full { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: 0 8px 20px rgba(19,32,47,.05); }
.stat strong { font-size: 28px; display: block; }
.stat span { color: var(--muted); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel.wide { grid-column: span 2; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.pill { background: var(--teal-2); color: #115e59; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.checkin-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; }
.checkin-form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; }
input, select { border: 1px solid var(--line); border-radius: 8px; min-height: 42px; padding: 0 11px; background: white; }
.roster-list, .pickup-list, .coverage-list, .compact-list, .activity-feed { display: grid; gap: 10px; }
.person-card, .pickup-card, .role-card, .feed-card, .lesson-card, .quest-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; }
.person-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: white; font-weight: 800; background: var(--sky); }
.meta { color: var(--muted); font-size: 12px; }
.code { font-weight: 900; color: var(--rose); letter-spacing: .08em; }
.pickup-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.role-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.progress { height: 8px; background: #edf2f7; border-radius: 999px; overflow: hidden; grid-column: span 2; }
.progress span { height: 100%; display: block; background: var(--teal); }
.segmented { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; background: white; }
.segmented button { border: 0; min-height: 36px; padding: 0 12px; background: white; }
.segmented button.active { background: #e0f2fe; color: #075985; font-weight: 800; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; max-height: 540px; overflow: auto; padding-right: 4px; }
.lesson-card { display: grid; gap: 7px; }
.lesson-card strong { line-height: 1.2; }
.lesson-card .week { color: var(--sky); font-weight: 800; font-size: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.teacher-columns { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; }
.timeline { display: grid; gap: 9px; }
.timeline-item { display: grid; grid-template-columns: 62px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.timeline-item time { color: var(--teal); font-weight: 800; font-size: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { background: #fff7ed; color: #9a3412; border-radius: 999px; padding: 7px 10px; font-weight: 700; font-size: 12px; }
.family-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.family-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #f8fafc; }
.verse-box { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 8px; padding: 16px; line-height: 1.5; }
.settings-list { display: grid; gap: 12px; }
.settings-list label { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.registration-form { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.registration-form .primary-btn { align-self: end; min-height: 42px; }
.code-result { margin-top: 12px; }
.code-card { border: 2px solid #99f6e4; border-radius: 8px; background: #f0fdfa; padding: 14px; display: grid; gap: 6px; }
.code-card strong { font-size: 18px; }
.code-card span { color: #115e59; font-weight: 900; }
.family-accounts { display: grid; gap: 10px; }
.family-account { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 12px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
.family-account strong, .family-account span, .family-account small { display: block; }
.family-account span, .family-account small { color: var(--muted); }
.family-account.empty { grid-template-columns: 1fr; background: #fffbeb; border-color: #fbbf24; }
.account-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.account-codes b { background: #e0f2fe; color: #075985; border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.signup-page { background: #f8fafc; }
.payment-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr); gap: 22px; padding: 28px; }
.payment-hero, .payment-panel { border-radius: 8px; box-shadow: var(--shadow); }
.payment-hero { color: white; padding: 28px; display: grid; align-content: end; min-height: 620px; background: linear-gradient(rgba(8,47,73,.1), rgba(15,23,42,.78)), url("./assets/garden-eden-cover.svg") center / cover; }
.payment-hero img { width: 132px; height: 132px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 8px; padding: 8px; margin-bottom: 16px; }
.payment-hero .eyebrow { color: #fde68a; }
.payment-hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: .95; margin-bottom: 12px; }
.payment-hero p, .payment-hero small { color: rgba(255,255,255,.88); line-height: 1.5; }
.payment-price { font-size: 40px; font-weight: 900; margin: 12px 0; }
.payment-price span { font-size: 18px; }
.payment-panel { background: white; padding: 22px; display: grid; gap: 18px; align-content: start; }
.payment-steps { display: grid; gap: 10px; }
.signup-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup-tabs button { border: 2px solid var(--line); border-radius: 8px; min-height: 54px; background: white; font-weight: 900; color: var(--ink); }
.signup-tabs button.active { border-color: var(--gold); background: #fffbeb; color: #92400e; }
.signup-tab-panel { display: none; }
.signup-tab-panel.active { display: block; }
.free-local-box { border: 2px solid #99f6e4; border-radius: 8px; background: #f0fdfa; padding: 16px; display: grid; gap: 8px; }
.free-local-box strong { color: #115e59; font-size: 20px; }
.free-local-box p { margin: 0; color: #344054; line-height: 1.5; }
.payment-steps div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.payment-steps strong { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #fbbf24; color: #172554; }
.payment-form { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 12px; }
.paypal-button { grid-column: span 2; border-radius: 8px; min-height: 48px; display: grid; place-items: center; background: #ffc439; color: #111827; font-weight: 900; text-decoration: none; border: 2px solid #f59e0b; }
.payment-hero .hero-qr, .paypal-button { display: none; }
.nonmember-mode .payment-hero .hero-qr, .nonmember-mode .paypal-button { display: grid; }
.nonmember-mode .payment-hero .hero-qr { display: block; }
.payment-form .primary-btn { grid-column: span 2; min-height: 48px; }
.signup-result { display: grid; gap: 10px; }
.kids-hero { margin-bottom: 18px; border-radius: 8px; padding: 24px; color: white; background: linear-gradient(110deg, #0f766e, #0369a1 52%, #be123c); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.game-hero { min-height: 230px; border: 3px solid rgba(255,255,255,.42); box-shadow: 0 18px 40px rgba(3, 105, 161, .25); position: relative; overflow: hidden; }
.game-hero::after { content: "QUEST"; position: absolute; right: 26px; bottom: -18px; font-size: 96px; font-weight: 900; color: rgba(255,255,255,.1); letter-spacing: .05em; }
.game-hero h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1; margin-bottom: 12px; }
.kids-hero .eyebrow { color: #ccfbf1; }
.kids-hero p { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.84); }
.star-score { min-width: 150px; aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; align-content: center; border: 2px solid rgba(255,255,255,.38); z-index: 1; }
.star-score strong { font-size: 42px; }
.quest-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 18px; }
.quest-tab {
  min-height: 132px;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 6px;
  color: var(--ink);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.quest-tab:hover { transform: translateY(-3px); border-color: #bae6fd; }
.quest-tab span { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: #e0f2fe; color: #075985; font-weight: 900; font-size: 20px; }
.quest-tab strong { font-size: 22px; line-height: 1.05; }
.quest-tab small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.quest-tab.active { border-color: var(--gold); background: #fffbeb; transform: translateY(-2px); }
.quest-panel { display: none; }
.quest-panel.active { display: block; }
.storybook-scene { display: grid; gap: 12px; }
.storybook-art {
  min-height: 520px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
    url("./assets/garden-eden-cover.svg") center / cover;
  border: 4px solid #fbbf24;
}
.story-sun, .story-tree, .story-river { position: absolute; cursor: pointer; border-radius: 999px; }
.story-sun { width: 130px; height: 130px; top: 40px; right: 110px; }
.story-tree { width: 190px; height: 260px; top: 170px; left: 86px; }
.story-river { width: 250px; height: 290px; bottom: 0; left: 44%; border-radius: 40%; }
.tap-spot {
  position: absolute;
  border: 4px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  min-width: 112px;
  min-height: 92px;
  font-size: 44px;
  box-shadow: var(--shadow);
  transition: transform .14s ease;
}
.tap-spot:hover { transform: translateY(-4px) scale(1.03); }
.tap-spot.animal { left: 118px; bottom: 82px; }
.tap-spot.bird { right: 190px; top: 190px; }
.tap-spot.people { right: 210px; bottom: 94px; min-width: 150px; }
.story-message {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
  color: white;
  padding: 16px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}
.sticker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sticker-row span { border-radius: 999px; background: #fffbeb; color: #92400e; border: 2px solid #fbbf24; padding: 8px 12px; font-weight: 900; }
.sticker-row .earned { background: #f0fdf4; border-color: #86efac; color: #166534; }
.storybook-activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-activity { border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; display: grid; gap: 10px; }
.mini-activity h3 { font-size: 20px; color: var(--teal); margin: 0; }
.mini-activity p { margin: 0; color: var(--muted); font-weight: 800; }
.find-grid, .choice-grid, .color-dots { display: grid; gap: 8px; }
.find-grid { grid-template-columns: repeat(2, 1fr); }
.find-grid button, .choice-grid button {
  border: 2px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  min-height: 58px;
  font-weight: 900;
  font-size: 16px;
}
.find-grid button.found, .choice-grid button.found { border-color: #86efac; background: #f0fdf4; color: #166534; }
.color-dots { grid-template-columns: repeat(4, 1fr); }
.color-dots button { min-height: 62px; border: 3px solid #cbd5e1; border-radius: 8px; background: white; }
.color-dots button:nth-child(1) { background: #fef3c7; }
.color-dots button:nth-child(2) { background: #dcfce7; }
.color-dots button:nth-child(3) { background: #e0f2fe; }
.color-dots button:nth-child(4) { background: #ffedd5; }
.color-dots button.painted { border-color: #0f766e; }
.story-map { margin-bottom: 18px; }
.story-path { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.story-node { border: 2px solid var(--line); border-radius: 8px; min-height: 118px; background: white; display: grid; place-items: center; align-content: center; gap: 4px; padding: 10px; text-align: center; }
.story-node span { font-size: 28px; }
.story-node strong { color: var(--teal); font-size: 22px; }
.story-node small { color: var(--muted); font-weight: 800; line-height: 1.2; }
.story-node.active { border-color: var(--gold); background: #fffbeb; }
.memory-game { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 10px; }
.memory-card { border: 3px solid #bae6fd; background: #f0f9ff; border-radius: 8px; min-height: 108px; padding: 10px; color: #075985; font-weight: 900; font-size: 21px; display: grid; place-items: center; text-align: center; transition: transform .14s ease, border-color .14s ease; }
.memory-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.memory-card.matched { border-color: #86efac; background: #f0fdf4; color: #166534; }
.verse-action { margin-top: 12px; width: 100%; min-height: 54px; font-size: 17px; }
.quest-card { min-height: 76px; }
.quest-card.complete { border-color: #86efac; background: #f0fdf4; }
.character-lab { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; gap: 16px; }
.character-stage {
  min-height: 360px;
  border-radius: 8px;
  padding: 20px;
  color: white;
  display: grid;
  align-content: end;
  background:
    linear-gradient(rgba(15, 118, 110, .18), rgba(3, 105, 161, .82)),
    var(--character-image, url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1200&q=80")) center / cover;
}
.character-stage h3 { color: white; font-size: 34px; margin: 0 0 8px; }
.character-stage p { margin-bottom: 0; color: rgba(255,255,255,.9); line-height: 1.5; }
.character-grid { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; }
.character-card {
  min-height: 150px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 8px;
  text-align: left;
}
.character-card strong { font-size: 21px; }
.character-card span { color: var(--teal); font-weight: 900; }
.character-card.active { border-color: var(--gold); background: #fffbeb; }
.interactive-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.interactive-choices button { border: 2px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(255,255,255,.16); color: white; min-height: 54px; padding: 8px; font-weight: 900; }
.choice-response { margin-top: 10px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.16); color: white; font-weight: 800; }
.activity-preview { display: grid; grid-template-columns: 1fr minmax(220px, .45fr); gap: 16px; align-items: start; }
.printable-sheet { border: 2px solid var(--line); border-radius: 8px; background: white; padding: 20px; display: grid; gap: 14px; }
.printable-sheet h3 { font-size: 30px; color: var(--teal); margin: 0; }
.printable-sheet h4 { margin: 0; color: var(--rose); }
.coloring-box { min-height: 240px; border: 3px dashed #94a3b8; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 16px; }
.coloring-heart { width: 180px; height: 160px; margin: auto; display: grid; place-items: center; font-weight: 900; color: #be123c; border: 5px solid #be123c; border-radius: 48% 48% 8px 8px; transform: rotate(45deg); }
.coloring-heart::first-line { transform: rotate(-45deg); }
.trace-lines, .answer-lines { display: grid; gap: 16px; }
.trace-lines span, .answer-lines span { display: block; height: 2px; background: #64748b; }
.puzzle-boxes { display: flex; gap: 8px; flex-wrap: wrap; }
.puzzle-boxes span { width: 48px; height: 48px; border: 2px solid #0f766e; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.write-line { margin: 0; font-weight: 800; }
.source-note { border-left: 4px solid var(--gold); background: #fffbeb; border-radius: 8px; padding: 14px; color: #78350f; line-height: 1.45; }
.activity-print { display: none; }
.certificate-print { display: none; }
.certificate {
  width: 9.5in;
  min-height: 7in;
  margin: 0 auto;
  border: 10px solid #0f766e;
  outline: 4px solid #f59e0b;
  padding: .55in;
  text-align: center;
  background: #fffdf5;
  color: var(--ink);
}
.certificate-logo { width: 1.2in; height: 1.2in; object-fit: contain; margin: 0 auto 10px; display: block; }
.certificate h1 { font-size: 54px; margin: 14px 0 20px; }
.certificate strong { display: block; font-size: 38px; color: var(--rose); margin: 12px 0; }
.certificate-row { display: flex; justify-content: center; gap: 12px; margin: 12px 0; font-size: 20px; }
[data-icon] { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; background: currentColor; mask-size: contain; mask-position: center; mask-repeat: no-repeat; -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; }
[data-icon="shield"] { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Z"/></svg>'); }
[data-icon="clipboard"] { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 2h6l1 2h3v18H5V4h3l1-2Zm0 7h6v2H9V9Zm0 4h6v2H9v-2Z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 2h6l1 2h3v18H5V4h3l1-2Zm0 7h6v2H9V9Zm0 4h6v2H9v-2Z"/></svg>'); }
[data-icon="users"] { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm8 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6ZM2 20c.5-4 3-6 6-6s5.5 2 6 6H2Zm12.5 0c-.2-2-.9-3.6-2-4.8 1-.8 2.2-1.2 3.5-1.2 2.7 0 4.8 2 5.5 6h-7Z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm8 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6ZM2 20c.5-4 3-6 6-6s5.5 2 6 6H2Zm12.5 0c-.2-2-.9-3.6-2-4.8 1-.8 2.2-1.2 3.5-1.2 2.7 0 4.8 2 5.5 6h-7Z"/></svg>'); }
[data-icon="sparkles"] { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 2 2.4 6.2L21 10.5l-6.6 2.3L12 20l-2.4-7.2L3 10.5l6.6-2.3L12 2Z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12 2 2.4 6.2L21 10.5l-6.6 2.3L12 20l-2.4-7.2L3 10.5l6.6-2.3L12 2Z"/></svg>'); }
[data-icon="search"] { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m21 19-5.2-5.2A7.5 7.5 0 1 0 14 15.8L19 21l2-2ZM4 9.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m21 19-5.2-5.2A7.5 7.5 0 1 0 14 15.8L19 21l2-2ZM4 9.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"/></svg>'); }
[data-icon="print"], [data-icon="plus"], [data-icon="badge"], [data-icon="calendar"], [data-icon="qr"], [data-icon="star"], [data-icon="refresh"] { mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 3h2v8h8v2h-8v8h-2v-8H3v-2h8V3Z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 3h2v8h8v2h-8v8h-2v-8H3v-2h8V3Z"/></svg>'); }
@media (max-width: 1000px) {
  .signin-screen { grid-template-columns: 1fr; }
  .signin-hero { min-height: 360px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .portal-nav { grid-template-columns: repeat(4, 1fr); }
  .nav-item { min-height: 74px; }
  .service-card { display: none; }
  .dashboard-grid, .checkin-layout, .teacher-columns, .character-lab, .activity-preview, .registration-form, .payment-shell, .payment-form, .family-account, .storybook-activities { grid-template-columns: 1fr; }
  .paypal-button, .payment-form .primary-btn { grid-column: span 1; }
  .quest-tabs { grid-template-columns: repeat(2, 1fr); }
  .panel.wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .signin-screen { padding: 16px; }
  .signin-grid, .character-grid { grid-template-columns: 1fr; }
  .subscription-card, .welcome-letter { grid-column: span 1; grid-template-columns: 1fr; }
  .signup-tabs { grid-template-columns: 1fr; }
  .interactive-choices { grid-template-columns: 1fr; }
  .signin-card { min-height: 150px; }
  .main { padding: 16px; }
  .topbar, .panel-head, .kids-hero { align-items: stretch; flex-direction: column; }
  .top-actions { width: 100%; }
  .search-wrap { min-width: 0; width: 100%; }
  .portal-nav { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .family-strip, .memory-game, .quest-tabs { grid-template-columns: 1fr; }
  .storybook-art { min-height: 460px; }
  .tap-spot { min-width: 88px; min-height: 76px; font-size: 34px; }
  .tap-spot.people { right: 24px; min-width: 120px; }
  .tap-spot.bird { right: 24px; }
  .nav-item { justify-content: center; }
}
@media print {
  .sidebar, .top-actions, .checkin-form, .segmented { display: none; }
  .app-shell, .dashboard-grid { display: block; }
  .panel { box-shadow: none; break-inside: avoid; margin-bottom: 12px; }
  body.printing-certificate { background: white; }
  body.printing-certificate .signin-screen,
  body.printing-certificate .app-shell { display: none !important; }
  body.printing-certificate .certificate-print { display: block; }
  body.printing-activity { background: white; }
  body.printing-activity .signin-screen,
  body.printing-activity .app-shell,
  body.printing-activity .certificate-print { display: none !important; }
  body.printing-activity .activity-print { display: block; }
  body.printing-activity .printable-sheet { border: 0; min-height: 10in; }
}
.video-layout { display: grid; grid-template-columns: minmax(320px, 1.2fr) .8fr; gap: 16px; align-items: start; }
.video-preview { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0f172a; color: white; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #0f172a; }
.video-body { padding: 14px; display: grid; gap: 6px; }
.video-body p { margin: 0; color: rgba(255,255,255,.78); }
.video-list { display: grid; gap: 10px; }
.video-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; display: grid; gap: 6px; text-align: left; }
.video-card.active { border-color: var(--teal); background: #f0fdfa; }
.video-card button { justify-self: start; border: 0; background: transparent; color: var(--teal); font-weight: 800; padding: 0; }
.lesson-video-btn {
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: white;
  font-weight: 900;
  min-height: 38px;
  padding: 0 12px;
  justify-self: start;
}
.kid-video-choices { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.kid-video-choice {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 46px;
  padding: 0 14px;
  font-weight: 900;
}
.kid-video-choice.active { border-color: var(--gold); background: #fffbeb; color: #92400e; }
.source-library { display: grid; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.source-head { display: grid; gap: 2px; }
.source-head strong { font-size: 16px; }
.source-card { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px; display: grid; gap: 8px; }
.source-card strong, .source-card span { display: block; }
.source-card span { color: var(--muted); font-size: 12px; }
.source-card p { margin: 0; color: #344054; font-size: 13px; line-height: 1.45; }
.source-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.source-meta span { color: var(--sky); font-weight: 800; }
.source-meta a { color: var(--teal); font-weight: 900; text-decoration: none; }
.source-meta a:hover { text-decoration: underline; }
.teacher-video { margin-top: 18px; display: grid; grid-template-columns: minmax(240px, .75fr) 1fr; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.compact-video { max-width: 860px; }
.safety-note { border-left: 4px solid var(--amber); background: #fffbeb; padding: 10px 12px; border-radius: 8px; color: #78350f; font-size: 13px; }
@media (max-width: 1000px) {
  .video-layout, .teacher-video { grid-template-columns: 1fr; }
}
