* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --st-bg: #14112a;
  --st-bg-raised: #1c1836;
  --st-border: rgba(255,255,255,0.1);
  --st-border-strong: rgba(255,255,255,0.22);
  --st-text: #f3f1fb;
  --st-muted: #8377ab;
  --st-muted-dim: #6f6394;
  --st-accent: #7c6cf0;
  --st-accent-dark: #16112b;
  --st-star: #ffc857;
  --st-danger: #ff9a8a;
  --st-danger-bg: rgba(255,80,80,0.1);
  --st-danger-border: rgba(255,80,80,0.25);
}

html, body.st-root {
  margin: 0;
  min-height: 100vh;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

h1, h2, h3, .st-heading { font-family: 'Space Grotesk', 'Manrope', sans-serif; margin: 0; }

a { color: inherit; }

.hidden { display: none !important; }

/* Nav */
.st-nav {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px; border-bottom: 1px solid var(--st-border);
  flex-wrap: wrap;
}
.st-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--st-text); }
.st-nav-links { display: flex; gap: 4px; flex: 1; }
.st-navlink {
  text-decoration: none; color: var(--st-muted); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 10px; transition: background 0.15s ease, color 0.15s ease;
}
.st-navlink:hover { background: rgba(255,255,255,0.05); color: var(--st-text); }
.st-navlink.active { color: var(--st-text); background: rgba(124,108,240,0.18); }
.st-userchip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--st-muted); }
.st-userchip a { color: var(--st-muted); text-decoration: underline; }

.st-lang-toggle { display: flex; gap: 4px; }
.st-lang-toggle .lang-btn {
  background: transparent; border: 1px solid var(--st-border-strong); color: var(--st-muted);
  font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 7px;
  cursor: pointer; font-family: inherit; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.st-lang-toggle .lang-btn:hover { color: var(--st-text); }
.st-lang-toggle .lang-btn.active { background: rgba(124,108,240,0.18); color: #cabdff; border-color: rgba(124,108,240,0.4); }

/* Layout */
.st-wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 20px; }
.st-wrap-wide { max-width: 980px; }

.st-card {
  background: var(--st-bg-raised); border: 1px solid var(--st-border);
  border-radius: 16px; padding: 22px 24px;
}
.st-card-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.st-muted { color: var(--st-muted); font-size: 13.5px; }

.st-banner {
  background: rgba(255,200,87,0.12); border: 1px solid rgba(255,200,87,0.3);
  color: var(--st-star); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 600;
}

/* Controls / forms */
.st-controls { display: flex; gap: 16px; flex-wrap: wrap; }
.st-field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 160px; }
.st-field label { font-size: 12.5px; font-weight: 700; color: var(--st-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.st-input, .st-select {
  border: 1px solid var(--st-border-strong); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--st-text);
  background-color: rgba(255,255,255,0.05); font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.st-input:hover, .st-select:hover { background-color: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }
.st-input:focus, .st-select:focus {
  outline: none; border-color: var(--st-accent); background-color: rgba(124,108,240,0.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15), 0 0 0 3px rgba(124,108,240,0.25);
}

.st-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238377ab' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.st-select option { background: var(--st-bg-raised); color: var(--st-text); }

.st-input[type="date"] { cursor: pointer; letter-spacing: 0.02em; }
.st-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(56%) sepia(84%) saturate(1000%) hue-rotate(213deg) brightness(1.15);
  cursor: pointer; padding: 3px; border-radius: 6px; margin-left: 6px;
  transition: background-color 0.15s ease;
}
.st-input[type="date"]::-webkit-calendar-picker-indicator:hover { background-color: rgba(124,108,240,0.2); }

/* Buttons */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  border-radius: 10px; padding: 10px 16px; border: 1px solid var(--st-border-strong);
  background: transparent; color: var(--st-text); text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.st-btn:hover { background: rgba(255,255,255,0.06); }
.st-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.st-btn-primary { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-accent-dark); }
.st-btn-primary:hover { background: #8f81f5; }
.st-btn-danger { color: var(--st-danger); border-color: var(--st-danger-border); }
.st-btn-danger:hover { background: var(--st-danger-bg); }
.st-btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }

/* Stars-earned-today row (home page) */
.st-stars-row {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 10px; min-height: 44px;
}
.st-stars-row .st-big-star { font-size: 38px; line-height: 1; }
.st-stars-row .st-big-star.filled {
  color: var(--st-star);
  filter: drop-shadow(0 0 6px rgba(255,200,87,0.65));
  animation: st-twinkle 1.6s ease-in-out infinite;
}
.st-stars-row .st-big-star.empty {
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
  opacity: 0.8;
}
@keyframes st-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.88; filter: drop-shadow(0 0 6px rgba(255,200,87,0.55)); }
  50% { transform: scale(1.18) rotate(-4deg); opacity: 1; filter: drop-shadow(0 0 16px rgba(255,200,87,0.95)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-stars-row .st-big-star.filled { animation: none; }
}

/* Activity list (home page) */
.st-activity-list { display: flex; flex-direction: column; gap: 10px; }
.st-activity-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--st-border);
  background: rgba(255,255,255,0.02);
}
.st-activity-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.st-star-btn {
  background: none; border: none; cursor: pointer; font-size: 26px; line-height: 1;
  color: rgba(255,255,255,0.18); padding: 0; transition: color 0.15s ease, transform 0.1s ease;
}
.st-star-btn:hover { transform: scale(1.1); }
.st-star-btn.filled { color: var(--st-star); }
.st-star-btn:disabled { cursor: not-allowed; transform: none; }

/* Bonus tiers (account page) */
.st-bonus-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.st-bonus-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--st-border);
  background: rgba(255,255,255,0.02);
}
.st-bonus-row .st-bonus-icon { font-size: 18px; }
.st-bonus-row .st-bonus-name { font-weight: 700; font-size: 14.5px; }
.st-bonus-row .st-bonus-threshold {
  font-size: 12.5px; font-weight: 700; color: var(--st-accent-dark);
  background: var(--st-star); padding: 3px 10px; border-radius: 999px;
}
.st-bonus-row .st-spacer { flex: 1; }

/* Bonus banner (home page) -- flashy, animated, shown below the stars row
   for every bonus tier the day's star count has reached. */
.st-bonus-banner { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; }
.st-bonus-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: #16112b;
  padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(120deg, #ffc857, #ff8a3d, #ff5cc8, #7c6cf0, #ffc857);
  background-size: 300% 300%;
  box-shadow: 0 0 24px rgba(255,200,87,0.55), 0 6px 16px rgba(0,0,0,0.35);
  animation: st-bonus-shimmer 3s ease infinite, st-bonus-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-bonus-chip .st-bonus-chip-icon { font-size: 20px; animation: st-bonus-spin 2.2s ease-in-out infinite; }
@keyframes st-bonus-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes st-bonus-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes st-bonus-spin {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .st-bonus-chip, .st-bonus-chip .st-bonus-chip-icon { animation: none; }
}

/* Children list / cards (account page) */
.st-children-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.st-child-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--st-border);
  background: rgba(255,255,255,0.02);
}
.st-child-row .st-child-name { font-weight: 700; font-size: 14.5px; }
.st-child-row .st-child-dob { color: var(--st-muted); font-size: 12.5px; }
.st-child-row .st-spacer { flex: 1; }

.st-inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }

/* Activity template editor -- which activities an "Apply to a week/month/
   year/today" click should stamp onto the calendar. Checked by default
   (matches the old tag-list's implicit "apply everything" behavior); a
   parent unchecks the ones they don't want for that particular click. */
.st-activity-checklist { display: flex; flex-direction: column; gap: 8px; }
.st-activity-check-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--st-border);
  background: rgba(255,255,255,0.02);
}
.st-activity-check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--st-accent); flex-shrink: 0; }
.st-activity-check-row label { font-weight: 600; font-size: 14px; cursor: pointer; }
.st-activity-check-row .st-spacer { flex: 1; }

/* Calendar */
.st-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.st-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.st-cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--st-muted); text-transform: uppercase; padding-bottom: 4px; }
.st-cal-day {
  min-height: 64px; border-radius: 10px; border: 1px solid var(--st-border);
  background: rgba(255,255,255,0.02); padding: 6px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; font-size: 11.5px;
}
.st-cal-day:hover { border-color: var(--st-border-strong); }
.st-cal-day.st-cal-today { border-color: var(--st-accent); }
.st-cal-day.st-cal-empty { visibility: hidden; }
.st-cal-daynum { font-weight: 700; font-size: 12px; }
.st-cal-stars { color: var(--st-star); font-size: 11px; }

/* Toast */
.st-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--st-bg-raised); border: 1px solid var(--st-border-strong);
  color: var(--st-text); padding: 12px 20px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); z-index: 100;
}
.st-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.st-toast.st-toast-error { border-color: var(--st-danger-border); color: var(--st-danger); }

/* Plan page */
.st-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .st-plans { grid-template-columns: 1fr; } }
.st-plan-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.st-plan-card.st-plan-featured { border-color: var(--st-accent); }
.st-plan-price { font-size: 30px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.st-plan-price span { font-size: 13px; font-weight: 600; color: var(--st-muted); }
.st-plan-badge {
  position: absolute; top: -10px; right: 18px; background: var(--st-accent);
  color: var(--st-accent-dark); font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.st-plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--st-muted); }
.st-plan-features li::before { content: '✓ '; color: var(--st-accent); font-weight: 700; }

/* EULA gate page */
.st-eula-box {
  background: rgba(255,255,255,0.03); border: 1px solid var(--st-border);
  border-radius: 12px; padding: 16px 18px; max-height: 320px; overflow-y: auto;
  font-size: 13.5px; line-height: 1.55; color: var(--st-text); margin-bottom: 10px;
}
.st-eula-box p { margin: 0 0 10px; }
.st-eula-box h3 { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.st-eula-box h3:first-child { margin-top: 0; }
.st-eula-box strong { color: var(--st-text); }
.st-eula-scroll-hint { font-size: 12px; color: var(--st-muted); margin-bottom: 14px; }
.st-eula-scroll-hint.hidden { display: none; }
.st-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.st-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--st-accent); }
.st-checkbox-row input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.5; }
.st-checkbox-row label { font-size: 13.5px; color: var(--st-text); cursor: pointer; }
.st-eula-decline-link { display: block; text-align: center; margin-top: 14px; color: var(--st-muted); font-size: 13px; text-decoration: none; }
.st-eula-decline-link:hover { color: var(--st-text); text-decoration: underline; }

/* Stars: a bright, playful visual system. Existing interaction hooks are preserved. */
:root {
  color-scheme: light;
  --st-bg: #f8f7fc;
  --st-bg-raised: #fff;
  --st-border: #e9e5f1;
  --st-border-strong: #d4cce3;
  --st-text: #34284d;
  --st-muted: #726782;
  --st-muted-dim: #81768e;
  --st-accent: #7452c7;
  --st-accent-dark: #fff;
  --st-star: #bd800b;
  --st-danger: #b33f59;
  --st-danger-bg: #fff0f3;
  --st-danger-border: #edbdca;
}
body.st-root { line-height: 1.6; background: radial-gradient(ellipse at 95% 25%, #eeebfa 0, transparent 45%), var(--st-bg); }
h1,h2,h3,.st-heading { letter-spacing: -.035em; }
button,a,input,select { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible { outline: 3px solid #9776df; outline-offset: 4px; }
.st-copy-en { display: none; }
html[lang="en"] .st-copy-ro { display: none; }
html[lang="en"] .st-copy-en { display: inline; }
.st-nav { min-height: 88px; padding: 18px max(24px, calc((100vw - 1160px) / 2)); gap: 28px; background: #ffffffed; }
.st-logo { font-size: 19px; white-space: nowrap; letter-spacing: -.6px; }
.st-nav-links { justify-content: center; gap: 8px; }
.st-navlink { padding: 9px 20px; border-radius: 14px; }
.st-navlink:hover { background: #f5f0fc; }
.st-navlink.active { background: #eee7fb; color: #6744b0; }
.st-userchip { flex-direction: column; align-items: flex-end; gap: 0; font-size: 11px; }
.st-userchip span { max-width: 210px; overflow-wrap: anywhere; }
.st-lang-toggle { padding: 4px; border-radius: 12px; background: #f5f2fa; }
.st-lang-toggle .lang-btn { border: 0; min-height: 32px; }
.st-lang-toggle .lang-btn.active { background: white; color: #6744b0; box-shadow: 0 2px 5px #34284d10; }
.st-wrap { max-width: 1000px; padding: 36px 28px 72px; gap: 24px; }
.st-wrap-wide { max-width: 1060px; }
.st-card { padding: 28px; border-radius: 24px; box-shadow: 0 5px 0 #eae5f340, 0 12px 35px #34284d04; }
.st-card-title { font-size: 21px; margin-bottom: 20px; }
.st-muted { line-height: 1.75; }
.st-page-heading { padding: 10px 2px 4px; }
.st-page-heading h1 { font-size: clamp(26px, 4vw, 36px); }
.st-page-heading p { color: var(--st-muted); margin: 8px 0 0; }
.st-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: #7b609f; margin-bottom: 12px; }
.st-adventure { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 32px 44px; background: #eee8fa; border: 1px solid #e2d8f3; border-radius: 30px; overflow: hidden; }
.st-adventure h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.13; color: #44305e; }
.st-adventure p { margin: 16px 0 0; font-size: 14px; color: #79678b; }
.st-mascot { flex: 0 0 auto; width: 250px; height: auto; transform: rotate(5deg); }
#mainContent { display: flex; flex-direction: column; gap: 22px; }
.st-star-collection { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #fff9e9; border: 1px solid #eee1bf; border-radius: 22px; padding: 23px 28px; }
.st-collection-label { font-size: 18px; font-weight: 800; flex-shrink: 0; }
.st-collection-label > span:last-child { display: block; color: #877650; font-size: 11px; font-weight: 500; margin-top: 3px; }
.st-stars-row { gap: 8px; justify-content: flex-end; }
.st-stars-row .st-big-star { font-size: 35px; }
.st-stars-row .st-big-star.filled { color: #efb72f; animation: st-star-arrive .4s ease-out both; filter: drop-shadow(0 3px 0 #ce9823); }
.st-stars-row .st-big-star.empty { color: #f1e6c7; -webkit-text-stroke: 1px #d4c398; opacity: 1; }
@keyframes st-star-arrive { from { transform: scale(.6) rotate(-18deg); } to { transform: scale(1) rotate(0); } }
.st-bonus-banner:empty { display: none; }
.st-bonus-chip { background: #dff4e9; color: #286951; border: 1px solid #b5deca; box-shadow: 0 4px 0 #c8e6d9; animation: st-bonus-pop .45s ease-out; font-size: 15px; }
.st-bonus-chip .st-bonus-chip-icon { animation: none; }
.st-controls { gap: 24px; }
.st-home .st-controls { padding: 0 4px; background: transparent; border: 0; box-shadow: none; }
.st-field { min-width: 0; }
.st-field label { text-transform: none; font-size: 12px; color: #776689; }
.st-input,.st-select { background-color: #fff; min-height: 48px; width: 100%; min-width: 0; box-shadow: 0 3px 0 #34284d04; border-color: #e0d9eb; border-radius: 13px; }
.st-input:hover,.st-select:hover { background-color: #fcfaff; border-color: #c7b5e2; }
.st-input:focus,.st-select:focus { background-color: white; box-shadow: 0 0 0 4px #7452c716; }
.st-input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.st-missions .st-eyebrow { margin-bottom: 5px; }
.st-activity-list { gap: 12px; counter-reset: mission; }
.st-activity-item { padding: 14px 18px; min-height: 76px; gap: 16px; border-radius: 17px; background: #faf8fd; border-color: #eee8f5; transition: background .2s, border-color .2s; }
.st-missions .st-activity-item::before { counter-increment: mission; content: counter(mission, decimal-leading-zero); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #ebe3f9; color: #8464b0; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.st-missions .st-activity-item:nth-child(3n+2)::before { background: #fce8d8; color: #a66b40; }
.st-missions .st-activity-item:nth-child(3n)::before { background: #dff0ed; color: #468575; }
.st-activity-name { font-size: 15px; overflow-wrap: anywhere; }
.st-activity-item:has(.st-star-btn.filled) { background: #f0f8f3; border-color: #cce4d4; }
.st-star-btn { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; color: #d6cce4; background: white; border: 1px solid #e4dbed; border-bottom-width: 3px; border-radius: 15px; font-size: 32px; }
.st-star-btn:hover:not(:disabled) { color: #c59220; background: #fff8df; transform: translateY(-2px); }
.st-star-btn.filled { color: #b77b08; background: #ffebae; border-color: #e7c775; }
.st-btn { min-height: 44px; border-radius: 12px; background: #f8f5fc; border-color: #e0d7ed; padding: 11px 18px; }
.st-btn:hover { background: #efe8f9; }
.st-btn-primary { color: white; background: #7452c7; border-color: #7452c7; box-shadow: 0 3px 0 #573a9f; }
.st-btn-primary:hover { background: #6543b5; }
.st-btn:disabled { opacity: .5; box-shadow: none; }
.st-btn-sm { padding: 8px 12px; font-size: 12px; }
.st-btn-danger { background: #fff5f7; }
.st-banner { color: #866317; background: #fff7df; border-color: #ecdfb5; border-radius: 16px; }
.st-child-row,.st-bonus-row,.st-activity-check-row { background: #faf8fd; border-radius: 15px; padding: 15px; flex-wrap: wrap; }
.st-bonus-row .st-bonus-threshold { color: #77551c; background: #fff0c0; }
.st-child-row::before { content: '★'; color: #8c71c1; background: #ece5f8; padding: 7px 13px; border-radius: 12px; }
.st-inline-form { gap: 14px; }
.st-inline-form .st-field { flex-basis: 160px; }
.st-cal-header { gap: 12px; }
.st-cal-day { background: #faf8fd; min-width: 0; min-height: 76px; padding: 9px; overflow-wrap: anywhere; }
.st-cal-day:hover { background: #f0e9fb; border-color: #b69bdf; }
.st-cal-day.st-cal-today { background: #eee7fa; border: 2px solid #9779cf; }
.st-toast { max-width: calc(100vw - 32px); box-shadow: 0 8px 30px #34284d18; }
.st-plan-card { padding: 32px; gap: 22px; }
.st-plan-featured { background: #f2edf9; box-shadow: 0 5px 0 #e0d5f0; }
.st-plan-price,.st-plan-price #paidPrice { font-size: 40px; font-weight: 700; color: var(--st-text); }
.st-plan-badge { background: #7452c7; padding: 5px 12px; }
.st-plan-features { gap: 14px; flex: 1; }
.st-eula-box { background: #faf8fd; }
#noChildren { text-align: center; padding: 60px 24px; }
#noChildren::before { content: '★'; display: block; font-size: 72px; color: #e8b23b; }
.st-login { display: flex; align-items: center; justify-content: center; padding: 90px 24px 40px; }
.lg-card { width: 100%; max-width: 460px; padding: 30px 40px 42px; text-align: center; background: white; border: 1px solid #e5ddef; border-radius: 32px; box-shadow: 0 10px 0 #e9e2f450, 0 25px 80px #5945770a; }
.lg-card .st-mascot { width: 200px; }
.lg-card h2 { font-size: 29px; }
.lg-tagline { font-size: 14px; color: var(--st-muted); margin: 12px 0 28px; }
.lg-oauth-btn { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid #ded4ed; border-bottom-width: 3px; border-radius: 14px; background: #faf8fd; }
.lg-oauth-btn:hover { background: #efe8fa; }
.lg-oauth-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.lg-error { display: none; color: var(--st-danger); background: var(--st-danger-bg); border: 1px solid var(--st-danger-border); border-radius: 12px; padding: 12px; margin-top: 18px; font-size: 13px; }
.lg-error.show { display: block; }
.lg-lang-toggle { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; }
.lg-lang-toggle .lang-btn { font: inherit; font-size: 12px; font-weight: 700; min-height: 36px; padding: 6px 12px; border: 1px solid #dfd6ed; border-radius: 10px; background: white; color: #726087; cursor: pointer; }
.lg-lang-toggle .lang-btn.active { background: #7452c7; color: white; border-color: #7452c7; }
@media (max-width: 900px) {
  .st-nav { gap: 12px; padding: 16px 24px; }
  .st-nav-links { order: 4; flex-basis: 100%; justify-content: flex-start; }
  .st-lang-toggle { margin-left: auto; }
}
@media (max-width: 600px) {
  .st-wrap { padding: 22px 16px 44px; gap: 18px; }
  .st-nav { padding: 14px 16px; }
  .st-logo { font-size: 16px; }
  #userChipSlot { width: 100%; }
  .st-userchip { flex-direction: row; justify-content: space-between; }
  .st-nav-links { justify-content: stretch; }
  .st-navlink { flex: 1; text-align: center; padding: 8px; }
  .st-card { padding: 20px; border-radius: 20px; }
  .st-adventure { padding: 26px 22px; border-radius: 24px; }
  .st-adventure-copy { position: relative; z-index: 1; }
  .st-adventure h1 { font-size: 32px; }
  .st-adventure p { max-width: 225px; font-size: 12px; }
  .st-adventure .st-mascot { position: absolute; width: 145px; right: -35px; top: 20px; opacity: .35; }
  .st-star-collection { flex-direction: column; align-items: flex-start; padding: 20px; gap: 12px; }
  .st-stars-row { justify-content: flex-start; }
  .st-stars-row .st-big-star { font-size: 30px; }
  .st-controls { gap: 12px; }
  .st-controls .st-field { flex-basis: 140px; }
  .st-activity-item { padding: 12px; gap: 10px; }
  .st-missions .st-activity-item::before { width: 30px; height: 34px; font-size: 11px; }
  .st-activity-name { font-size: 13px; }
  .st-cal-header { flex-wrap: wrap; }
  .st-cal-header h2 { width: 100%; order: -1; text-align: center; }
  .st-cal-grid { gap: 3px; }
  .st-cal-day { padding: 5px 3px; min-height: 62px; font-size: 10px; }
  .st-cal-stars { font-size: 9px; }
  .st-bonus-chip { max-width: 100%; border-radius: 18px; padding: 12px 18px; overflow-wrap: anywhere; }
  .lg-card { padding: 24px 24px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Illustrated controls and a little starry world. */
:root {
  --st-art-child: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2217%22%20r%3D%2211%22%20fill%3D%22%23ffe1bc%22%20stroke%3D%22%237952b6%22%20stroke-width%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M7%2012c1-8%2015-10%2018%200M13%207c-1%204%203%206%205%203%22%20fill%3D%22%23ad8be1%22%20stroke%3D%22%237952b6%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2217%22%20r%3D%221.4%22%20fill%3D%22%23513970%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2217%22%20r%3D%221.4%22%20fill%3D%22%23513970%22%2F%3E%3Cpath%20d%3D%22M13%2022q3%203%206%200%22%20fill%3D%22none%22%20stroke%3D%22%23513970%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2221%22%20r%3D%222%22%20fill%3D%22%23f4aaab%22%2F%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2221%22%20r%3D%222%22%20fill%3D%22%23f4aaab%22%2F%3E%3C%2Fsvg%3E");
  --st-art-calendar: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%2223%22%20height%3D%2222%22%20rx%3D%226%22%20fill%3D%22%23e1f5ef%22%20stroke%3D%22%23478878%22%20stroke-width%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M5%2014h23%22%20stroke%3D%22%23478878%22%20stroke-width%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M11%204v6m11-6v6%22%20stroke%3D%22%23478878%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22m16%2016%201.6%203.3%203.7.5-2.7%202.6.6%203.6-3.2-1.7-3.2%201.7.6-3.6-2.7-2.6%203.7-.5Z%22%20fill%3D%22%23e8b444%22%2F%3E%3C%2Fsvg%3E");
  --st-art-gift: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%226%22%20y%3D%2214%22%20width%3D%2221%22%20height%3D%2215%22%20rx%3D%224%22%20fill%3D%22%23f5c1d7%22%20stroke%3D%22%23a15889%22%20stroke-width%3D%221.8%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%2225%22%20height%3D%227%22%20rx%3D%222.5%22%20fill%3D%22%23eadcf9%22%20stroke%3D%22%23895db6%22%20stroke-width%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M16%2010C6%2010%207%201%2012%204c3%201%204%206%204%206Zm0%200c10%200%209-9%204-6-3%201-4%206-4%206Z%22%20fill%3D%22%23ffdb76%22%20stroke%3D%22%23b98b32%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M16%2011v18%22%20stroke%3D%22%23895db6%22%20stroke-width%3D%223%22%2F%3E%3C%2Fsvg%3E");
  --st-art-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20rx%3D%2211%22%20fill%3D%22%23e9ddfa%22%2F%3E%3Cpath%20d%3D%22m11%2014%205%205%205-5%22%20fill%3D%22none%22%20stroke%3D%22%237851b7%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  --st-art-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22240%22%20height%3D%22240%22%20viewBox%3D%220%200%20240%20240%22%3E%3Cpath%20d%3D%22m35%2029%203%207%207%203-7%203-3%207-3-7-7-3%207-3Z%22%20fill%3D%22%23c9b5e9%22%20opacity%3D%22.3%22%2F%3E%3Ccircle%20cx%3D%22178%22%20cy%3D%22100%22%20r%3D%223%22%20fill%3D%22%2374bba9%22%20opacity%3D%22.25%22%2F%3E%3Cpath%20d%3D%22m134%20195%202%205%205%202-5%202-2%205-2-5-5-2%205-2Z%22%20fill%3D%22%23e9bc57%22%20opacity%3D%22.3%22%2F%3E%3C%2Fsvg%3E");
}
body.st-root {
  background-image: var(--st-art-pattern), radial-gradient(ellipse at 0 15%, #ede3fb 0, transparent 48%), radial-gradient(ellipse at 100% 55%, #e1f3ed 0, transparent 42%), linear-gradient(155deg, #fcf9f2, #f8f5fc 55%, #fff8e9);
  background-size: 240px 240px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: scroll;
}
.st-nav { background: #ffffffd9; border-bottom-color: #e7ddf2; }
.st-logo { display: inline-flex; align-items: center; gap: 10px; }
.st-logo-mark { width: 48px; height: 48px; flex-shrink: 0; filter: drop-shadow(0 3px 0 #dacbec); }
.st-logo-type { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.st-logo-parent { font: 800 10px 'Manrope', sans-serif; letter-spacing: .09em; color: #79658e; }
.st-logo-name { font: 700 32px/.95 'Space Grotesk', sans-serif; letter-spacing: -1.7px; color: #62409f; }
.st-logo-spark { display: inline-block; color: #d9a226; font-size: 19px; margin-left: 3px; vertical-align: top; line-height: 1.3; }
.st-login-wordmark .st-logo-type { align-items: center; gap: 4px; }
.st-login-wordmark .st-logo-name { font-size: 49px; }
.st-login-wordmark .st-logo-parent { font-size: 12px; }
.st-eula-brand { display: flex; justify-content: center; align-items: center; gap: 10px; }
.st-home .st-controls { padding: 18px; background: #ffffffbd; border: 1px solid #e5dcef; border-radius: 24px; box-shadow: 0 5px 0 #e7deee55; }
.st-field label.st-label-child,.st-field label.st-label-day { display: flex; align-items: center; gap: 9px; color: #695280; font-size: 13px; font-weight: 800; }
.st-label-child::before,.st-label-day::before { content: ''; width: 32px; height: 32px; background: var(--st-art-child) center/28px no-repeat, #efe6fb; border-radius: 11px; flex-shrink: 0; }
.st-label-day::before { background-image: var(--st-art-calendar); background-color: #e4f3ed; }
.st-select { min-height: 56px; border: 2px solid #dacbec; border-bottom-width: 4px; border-radius: 18px; padding: 12px 56px 12px 17px; background-color: #faf6ff; background-image: var(--st-art-arrow); background-size: 32px; background-position: right 10px center; box-shadow: none; color: #5d4280; }
.st-select:hover { background-color: #f3eafb; border-color: #bca2da; }
.st-select:focus { background-color: #fdfaff; border-color: #9973c9; box-shadow: 0 0 0 4px #bca2da24; }
.st-select:disabled { opacity: .55; cursor: not-allowed; }
.st-select option { color: #523b70; background: #faf6ff; padding: 12px; }
.st-input[type="date"] { min-height: 56px; border: 2px solid #c6dfd5; border-bottom-width: 4px; border-radius: 18px; color: #3e7565; background: #f3fbf7; padding: 11px 13px; box-shadow: none; }
.st-input[type="date"]:hover { background: #eaf7f0; border-color: #9cc8b8; }
.st-input[type="date"]:focus { border-color: #74ae99; box-shadow: 0 0 0 4px #a3d5bf25; }
.st-input[type="date"]::-webkit-calendar-picker-indicator { background: var(--st-art-calendar) center/26px no-repeat; width: 28px; height: 28px; padding: 2px; margin-left: 2px; }
.st-bonus-row .st-bonus-icon,.st-bonus-chip .st-bonus-chip-icon { display: inline-block; width: 44px; height: 44px; flex-shrink: 0; border-radius: 15px; background: var(--st-art-gift) center/32px no-repeat, #fff3fa; border: 1px solid #efd7e7; box-shadow: 0 3px 0 #ebd9e6; }
.st-bonus-row { background: #fff8fc; border-color: #efdfeb; }
.st-bonus-chip { background: #fff5e0; border-color: #ecd8a7; color: #805d26; padding: 10px 22px 10px 12px; box-shadow: 0 4px 0 #eedebc; }
.st-child-row::before { content: ''; width: 40px; height: 40px; padding: 0; flex-shrink: 0; background: var(--st-art-child) center/31px no-repeat, #ece5f8; }
/* Progressive native select styling preserves keyboard and mobile behavior. */
@supports (appearance: base-select) {
  .st-select,.st-select::picker(select) { appearance: base-select; }
  .st-select { background-image: none; padding-right: 12px; align-items: center; }
  .st-select::picker-icon { content: ''; width: 32px; height: 32px; background: var(--st-art-arrow) center/contain no-repeat; transition: transform .18s ease; }
  .st-select:open::picker-icon { transform: rotate(180deg); }
  .st-select::picker(select) { border: 2px solid #deceef; border-radius: 18px; padding: 7px; margin-top: 6px; background: #fffcff; box-shadow: 0 10px 30px #65428c20; }
  .st-select option { font: 600 14px 'Manrope', sans-serif; padding: 12px 14px; border-radius: 11px; min-height: 44px; background: transparent; }
  .st-select option:hover,.st-select option:focus { background: #f1e7fb; }
  .st-select option:checked { background: #eee3fa; color: #6943a0; }
  .st-select option::checkmark { color: #7954c3; }
}
@media (max-width: 600px) {
  .st-logo-mark { width: 42px; height: 42px; }
  .st-logo-name { font-size: 29px; }
  .st-home .st-controls { padding: 14px; gap: 14px; }
  .st-home .st-controls .st-field { flex-basis: 100%; }
  .st-select { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .st-select::picker-icon { transition: none; } }
