:root{color-scheme:light;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#174137;background:#f6f8ef;line-height:1.55}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header,main,footer{width:min(calc(100% - 32px),720px);margin:auto}header{height:68px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:inherit;font-size:24px;font-weight:850;letter-spacing:-.06em}.brand span{color:#287858;margin-right:5px}.brand small{font-size:14px;letter-spacing:0;margin-left:6px}h2{font-size:22px;margin:0 0 14px}h3{margin:0;font-size:17px}p{margin:0 0 10px}.card{background:#fffefa;border:1px solid #e2e9dc;border-radius:20px;padding:20px;margin:14px 0}.task{padding:13px 0;border-top:1px solid #e2e9dc}.task:first-of-type{border-top:0}.task p{margin:3px 0 8px}.fields{display:grid;gap:12px}label{display:grid;gap:5px;font-size:14px;font-weight:650}input,textarea,select,button{font:inherit}input,textarea,select{width:100%;min-width:0;border:1px solid #aebfb3;border-radius:11px;background:white;color:#174137;padding:10px 12px}button{border:0;border-radius:12px;background:#235d4c;color:#fff;padding:10px 14px;min-height:44px;font-weight:700;cursor:pointer}button.secondary,#logout{background:#e8f2e9;color:#174137}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:3px solid #ab6a33;outline-offset:2px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tag{background:#e6f3e8;border-radius:99px;padding:4px 10px;font-size:13px;font-weight:700;display:inline-block}.hint,footer{font-size:13px;color:#4a635a}.error{background:#fae5dc;color:#83341f}.success{background:#e2f6e8;color:#174137}#notice{margin:14px 0;padding:11px 14px;border-radius:12px;overflow-wrap:anywhere}footer{padding:12px 0 24px}
@media (max-width: 520px) {
  header,main,footer { width:calc(100% - 24px); }
  header { height:58px; }
  .card { padding:16px; }
  input,textarea,select { font-size:16px; }
}

.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: clamp(12px, 2.8vh, 24px);
  padding: 120px 0 max(24px, calc(env(safe-area-inset-bottom) + 12px));
  background: #cae9d8;
}
.welcome::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -60px;
  background: linear-gradient(to bottom, #c6e8d500 28%, #d9f0df 92%),
    url("pipnori.png") center / cover;
  filter: blur(48px);
}
.welcome-mascot {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  display: block;
  margin-inline: auto;
  width: min(100%, 720px, calc((100vh - 80px) * .75));
  width: min(100%, 720px, calc((100svh - 80px) * .75));
  height: auto;
  mask-image: linear-gradient(#000 82%, transparent);
}
@media (min-width: 541px) {
  .welcome-mascot {
    mask-image: linear-gradient(#000 82%, transparent),
      linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
  }
}
.welcome h1 {
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(20px, 5.5vw, 36px);
  line-height: 1.2;
}
.welcome-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(calc(100% - 36px), 360px);
}
.account-link {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: #235d4c;
  color: #fff;
  font-weight: 700;
}
.account-link.secondary {
  box-shadow: inset 0 0 0 1px #79a792;
  background: #f6faf1;
  color: #174137;
}
.welcome-actions .account-link {
  box-shadow: 0 6px 18px #17413724;
}
.welcome-actions .account-link.secondary {
  background: #f9fff0c9;
  box-shadow: inset 0 0 0 1px #79a792, 0 6px 18px #17413724;
}
.actions .account-link { min-height: 44px; }

.invite-code {
  margin-block: 12px;
  font: 750 clamp(1.65rem, 7vw, 2.25rem)/1.25 ui-monospace, monospace;
  letter-spacing: .07em;
  color: #174137;
}

.pet-preview { display: grid; justify-items: center; gap: 14px; text-align: center; }
.pet-preview h2 { margin: 0; font-size: clamp(19px, 5.4vw, 25px); }
.pet-stage {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  background: #d5edda;
}
.pet-portrait { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 51% 65%; }
.pet-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 50px 12px #f5df8c;
  opacity: 0;
}
.pet-food {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 83%;
  font-size: clamp(34px, 12vw, 50px);
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pet-sparkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pet-sparkles span {
  position: absolute;
  top: 50%;
  left: calc(13% + var(--particle) * 12%);
  opacity: 0;
  color: #f17e8d;
  font-size: 25px;
}
.pet-sparkles span:nth-child(even) { color: #d6a432; font-size: 22px; }
.pet-reaction {
  position: absolute;
  z-index: 4;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 99px;
  background: #fffdf0;
  color: #235d4c;
  box-shadow: 0 4px 16px #17413718;
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
  opacity: 0;
}
.pet-preview .pet-speech { margin: 0; min-height: 3.1em; max-width: 320px; display: grid; place-items: center; }
.pet-feed { min-width: 170px; box-shadow: 0 5px 13px #235d4c20; }
.pet-adopt { min-width: 170px; }
.pet-adopt-ready { background: #e5f1db !important; }
.feeding .pet-food { animation: offer-berry .8s ease-in forwards; }
.chewing .pet-character { animation: munch .36s ease-in-out 5; }
.celebrating .pet-character { animation: happy-wiggle .9s ease-in-out; }
.celebrating::after { animation: warm-glow 1.1s ease-out; }
.celebrating .pet-sparkles span { animation: float-heart .9s ease-out both; animation-delay: calc(var(--particle) * .025s); }
.celebrating .pet-reaction, .contented .pet-reaction { opacity: 1; }
@keyframes offer-berry {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(-20deg) scale(.8); top: 83%; }
  35% { opacity: 1; transform: translate(-90%, -50%) rotate(12deg) scale(1.2); top: 67%; }
  75% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(.85); top: 48%; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.12); top: 47%; }
}
@keyframes munch { 50% { transform: scale(1.025, .98); } }
@keyframes happy-wiggle {
  22% { transform: translateY(-7px) rotate(-2deg) scale(1.02); }
  48% { transform: translateY(-3px) rotate(2deg); }
  72% { transform: translateY(-5px) rotate(-1deg); }
}
@keyframes warm-glow { 25%, 60% { opacity: .7; } }
@keyframes float-heart {
  0% { opacity: 0; transform: translateY(0) scale(.5) rotate(-12deg); }
  25% { opacity: 1; }
  65% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-110px) scale(1.25) rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pet-stage *, .pet-stage::after { animation: none !important; }
  .feeding .pet-food { top: 48%; opacity: 1; }
  .celebrating::after { opacity: .35; }
  .celebrating .pet-sparkles span { top: 25%; opacity: 1; }
}

.parent-intro { margin: 0 0 18px; padding-left: 1.5em; }
.parent-intro li { padding-left: .2em; margin-bottom: 14px; }
.parent-intro li::marker { color: #287858; font-weight: 750; }
.parent-intro li:last-child { margin-bottom: 0; }
.parent-intro strong { display: block; margin-bottom: 3px; }
.parent-intro p { margin: 0; color: #4a635a; }

.pet-character { position: absolute; inset: 0; transform-origin: 51% 65%; }
.pet-mouth {
  position: absolute;
  left: 40%;
  top: 41%;
  width: 22%;
  height: 12%;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse, #ffebc8 40%, #ffebc8ee 55%, #ffebc800 73%);
}
.pet-mouth-opening {
  position: relative;
  display: block;
  width: 60%;
  height: 57%;
  overflow: hidden;
  border-radius: 40% 40% 49% 49%;
  background: linear-gradient(#881d10, #b3341d 75%);
  box-shadow: inset 0 2px 3px #6c1a1360;
  transform-origin: 50% 45%;
}
.pet-mouth-opening::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -7%;
  height: 54%;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(#f28575, #f6a08b);
}
.feeding .pet-mouth, .chewing .pet-mouth { opacity: 1; }
.feeding .pet-mouth-opening { animation: ready-to-eat .8s ease-in-out both; }
.chewing .pet-mouth-opening { animation: chew-mouth .36s ease-in-out 5 both; }
@keyframes ready-to-eat {
  0% { transform: scale(.85, .55); }
  65%, 100% { transform: scale(1.1, 1.18); }
}
@keyframes chew-mouth {
  0%, 100% { transform: scale(.85, .18); border-radius: 50%; }
  45% { transform: scale(1.06, .86); border-radius: 40% 40% 49% 49%; }
  70% { transform: scale(.98, .55); }
}
@media (prefers-reduced-motion: reduce) {
  .feeding .pet-mouth-opening { transform: scale(1, 1.1); }
  .chewing .pet-mouth-opening { transform: scale(1, .25); }
}

.pet-filter { position: absolute; width: 0; height: 0; pointer-events: none; }
.leaf-swaying { filter: url(#pet-leaf-sway); }
@media (prefers-reduced-motion: reduce) {
  .leaf-swaying { filter: none; }
}

.child-family { padding: 8px 0 4px; }
.child-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.pet-home { margin-top: 10px; background: #f0f7eb; border-color: #dce9d4; }
.pet-supplies { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pet-home .pet-stage { width: min(100%, 310px); }
.pet-home .pet-speech { min-height: 1.55em; }
.pet-growth { width: min(100%, 310px); display: grid; gap: 5px; }
.pet-growth progress { width: 100%; height: 10px; border: 0; border-radius: 99px; overflow: hidden; accent-color: #639651; background: #dae7d4; }
.pet-growth progress::-webkit-progress-bar { background: #dae7d4; border-radius: 99px; }
.pet-growth progress::-webkit-progress-value { background: #639651; border-radius: 99px; transition: width .5s ease; }
.pet-growth progress::-moz-progress-bar { background: #639651; border-radius: 99px; }
.pet-earn { display: grid; gap: 12px; width: min(100%, 310px); padding-top: 8px; border-top: 1px solid #d5e4cd; }
.pet-home .hint { max-width: 310px; }
@media (max-width: 520px) {
  .pet-home .pet-stage { width: min(100%, clamp(180px, calc((100svh - 365px) * .75), 310px)); }
}

.parent-family{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 2px}.parent-family h2{margin:0;font-size:19px}.parent-family .tag{white-space:nowrap}.parent-overview{background:linear-gradient(125deg,#edf5e8,#fffefa)}.parent-overview h2{font-size:21px;line-height:1.45}.parent-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.parent-stats>div{display:grid;gap:3px;text-align:center;padding:10px 3px;background:#ffffffa8;border-radius:13px}.parent-stats strong{font-size:26px;line-height:1.2;color:#235d4c}.parent-stats span{font-size:12px;color:#4a635a}.parent-overview .actions button{flex:1}.parent-assignment,.parent-settings{scroll-margin-top:16px}.parent-assignment>summary,.parent-settings>summary{cursor:pointer;font-size:17px;font-weight:750}.parent-assignment[open]>summary,.parent-settings[open]>summary{margin-bottom:14px}.parent-settings .tag{white-space:normal}.parent-settings{background:#fafff7}.parent-family label{max-width:45%}

.task-templates{display:grid;gap:12px;padding:14px;background:#edf5e8;border-radius:14px;margin-bottom:16px}.task-templates .hint{margin:0}.parent-settings .task form{margin-top:8px}

.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin-top:14px}.exchange-item{display:grid;align-content:start;gap:10px;padding:15px;background:#f3f7ed;border:1px solid #e2e9dc;border-radius:16px}.exchange-item p{margin:0}.exchange-item button{margin-top:4px}.tier-guide{padding:10px;background:#edf5e8;border-radius:12px;font-size:13px;color:#315e49}.reward-editor{border-top:1px solid #e2e9dc;padding:14px 0}.reward-editor summary{cursor:pointer;font-weight:700;margin-bottom:12px}.reward-editor button.secondary{margin-top:10px}input:read-only{background:#f1f5ed;color:#4a635a}select:disabled{opacity:1;color:#315e49;background:#f1f5ed}.child-nav button{padding:10px 6px}

/* Korean launch and locale controls. Keep long labels inside mobile cards. */
:root{font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
.language-bar{width:min(calc(100% - 24px),720px);margin:auto;min-height:52px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0}
.language-bar label{font-size:14px;font-weight:500}
.language-bar select{width:auto;min-height:40px;padding:6px 28px 6px 10px;font-size:16px}
html[lang="ko-KR"]{word-break:keep-all;overflow-wrap:anywhere}
html[lang="ko-KR"] .welcome{min-height:calc(100svh - 52px)}
html[lang="ko-KR"] .welcome h1{font-size:clamp(24px,6vw,40px);padding:0 20px}
html[lang="ko-KR"] button{white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
html[lang="ko-KR"] .brand{letter-spacing:-.03em}
html[lang="ko-KR"] .hint,html[lang="ko-KR"] footer{font-size:14px}
html[lang="ko-KR"] .tag{font-size:14px}

.child-nav button:last-child:nth-child(odd){grid-column:1/-1}
.education-video{padding:16px 0;border-top:1px solid #e2e9dc}
.education-video h3{margin:10px 0 8px}.video-publisher{font-size:14px;color:#4a635a}
.video-player{width:100%;aspect-ratio:16/9;margin:12px 0;background:#15382d;border-radius:12px;overflow:hidden}
.video-player iframe{border:0;width:100%;height:100%;display:block}
 .video-attribution{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:6px 0 0;font-size:14px;line-height:1.5}
.video-attribution .video-publisher{font-size:inherit;color:#4a635a}
.video-attribution .video-source,.video-attribution .video-source:visited{display:inline-block;font-size:inherit;color:#315e4d;-webkit-text-fill-color:#315e4d;text-decoration:underline;text-underline-offset:3px;padding:6px 2px;border:0;background:transparent;overflow-wrap:anywhere}
.video-attribution .video-source:hover{color:#173f35}
.video-attribution .video-source:focus-visible{outline:2px solid #43846d;outline-offset:2px;border-radius:3px}
.education-support{padding:12px 14px;border-radius:12px;background:#e5f1e8;color:#24513e;font-size:15px}
.education-video .video-play{width:100%;min-height:54px}.task label{margin:8px 0}
textarea{font:inherit;color:#204439;background:#fff;border:1px solid #aebfb3;border-radius:12px;padding:12px;width:100%;resize:vertical;box-sizing:border-box}
textarea:focus{outline:2px solid #43846d;outline-offset:2px}
/* Parent landing page: six destinations; only the selected page is rendered. */
.parent-dashboard-overview{padding:16px 18px;background:linear-gradient(125deg,#e9f3e7,#fffefa)}
.parent-dashboard-overview h2{font-size:20px;margin-bottom:8px}
.parent-dashboard-overview .parent-stats{margin:0;gap:8px}
.parent-dashboard-overview .parent-stats>div{padding:8px 3px;background:transparent}
.parent-dashboard-overview .parent-stats strong{font-size:27px}
.parent-dashboard-overview .parent-stats span{font-size:14px;line-height:1.35}
.parent-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.account-link.parent-dashboard-tile,.account-link.parent-dashboard-tile:visited{position:relative;display:grid;align-content:start;justify-items:start;gap:7px;min-height:140px;padding:18px;text-align:left;text-decoration:none;color:#174137;-webkit-text-fill-color:#174137;background:#fffefa;border:1px solid #d9e6d8;border-radius:20px;box-shadow:0 3px 12px #235d4c05;line-height:1.35;overflow-wrap:anywhere}
.parent-dashboard-tile strong{font-size:19px;font-weight:800}
.parent-dashboard-tile .parent-tile-description{font-size:14px;font-weight:400;color:#4a635a;-webkit-text-fill-color:#4a635a}
.parent-dashboard-tile .parent-tile-icon{display:grid;place-items:center;min-width:30px;height:30px;font-size:23px;color:#34735a;-webkit-text-fill-color:#34735a}
.account-link.parent-dashboard-tile:hover{background:#edf6e9;border-color:#7ca88f}
.account-link.parent-dashboard-tile.has-pending{background:#e2f2e5;border-color:#84b696}
.parent-tile-badge{position:absolute;right:12px;top:12px;min-width:25px;padding:3px 7px;text-align:center;font-size:14px;font-weight:800;border-radius:99px;background:#235d4c;color:#fff!important;-webkit-text-fill-color:#fff!important}
.parent-section-header{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:16px 0}
.parent-section-header h2{font-size:20px;margin:0}
.account-link.parent-back,
.account-link.parent-back:visited {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  color: #fff;
  -webkit-text-fill-color: currentColor;
  background: #235d4c;
  border: 1px solid #235d4c;
  box-shadow: 0 2px 0 #174137;
  cursor: pointer;
}
@media (hover: hover) {
  .account-link.parent-back:hover { background: #1c4c3e; }
}
.account-link.parent-back:focus-visible {
  outline: 2px solid #235d4c;
  outline-offset: 3px;
}
.account-link.parent-back:active {
  background: #174137;
  box-shadow: none;
}
@media(max-width:520px){.parent-dashboard-grid{gap:10px;margin:12px 0}.account-link.parent-dashboard-tile{min-height:132px;padding:14px;gap:6px}.parent-dashboard-tile strong{font-size:18px}.parent-dashboard-tile .parent-tile-description{font-size:14px}.parent-dashboard-overview{padding:14px}.parent-family{padding-top:6px}}
@media(max-width:330px){.parent-dashboard-grid{grid-template-columns:1fr}.account-link.parent-dashboard-tile{min-height:112px}}
.goal-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;background:#e8f0e4;border-radius:15px;margin:16px 0 4px}
.goal-tabs button{min-height:46px;border-radius:11px;padding:10px 8px;font-size:16px;line-height:1.35}
.goal-tabs button[aria-selected=true]{background:#235d4c;color:#fff;-webkit-text-fill-color:#fff;box-shadow:0 2px 5px #235d4c15}
.goal-tabs button[aria-selected=false]{background:transparent;color:#315e49;-webkit-text-fill-color:#315e49}
.goal-tab-content>.card:first-child{margin-top:10px}
/* Student destinations: pet, goals and helper. Shop stays beside care controls. */
.child-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
.child-nav button:last-child:nth-child(odd){grid-column:auto}
/* Language editing uses the same calm cards and readable mobile controls. */
.language-filters{display:grid;gap:1rem;margin-top:1.5rem}
.language-filters label:has(input[type=checkbox]){display:flex;align-items:center;gap:.6rem}
.language-filters input[type=checkbox]{width:1.25rem;height:1.25rem}
.language-entry{border-bottom:1px solid var(--line,#dce3d8);padding:1rem 0;overflow-wrap:anywhere}
.language-entry small{display:block}
.language-entry p{margin:.5rem 0}
.language-entry textarea{display:block;width:100%;box-sizing:border-box;font:inherit;line-height:1.5;padding:.75rem;border:1px solid #a7bbb0;border-radius:1rem;background:#fff;color:#173f35;resize:vertical}
.language-add{margin-top:1.5rem}
.translation-preview{position:relative;background:#fff0bd;color:#244d3c;padding:1rem;display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
@media(min-width:720px){.language-filters{grid-template-columns:2fr 1fr;align-items:end}}
/* The shop renders one destination and category at a time. */
.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.shop-heading button{font-size:14px;padding:8px 12px}
.shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.shop-tabs button{font-size:16px;padding:10px 8px;min-width:0}
.shop-categories{display:flex;gap:8px;overflow-x:auto;padding:3px 3px 10px;margin:0 -3px 4px;scrollbar-width:thin}
.shop-categories button{flex:0 0 auto;font-size:14px;padding:8px 12px;white-space:nowrap;border-radius:99px}
.shop-category-content>h3{margin:8px 0 12px}
.shop-category-content>.tag{margin-bottom:10px}
.shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shop-products .exchange-item{margin:0;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0;border-radius:16px}
.shop-products h3{font-size:16px;overflow-wrap:anywhere}.shop-products p{margin:0;font-size:14px}.shop-products .shop-price{font-weight:700}
.shop-products button{margin-top:auto;width:100%;font-size:14px;padding:9px 5px}
.shop-details{border-top:1px solid #e2e9dc;padding:14px 0 0;margin-top:16px}
.shop-details summary{font-size:15px;font-weight:700;cursor:pointer}.shop-details>p{margin-top:10px}.shop-details .card{padding:14px;margin:12px 0 0}
.shop-reward-grid{display:grid;gap:10px}.shop-reward-grid .exchange-item{margin:0;padding:14px;border-radius:16px}
.shop-pagination{align-items:center;justify-content:center}
@media(min-width:560px){.shop-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.shop-reward-grid .exchange-item{min-width:0;overflow-wrap:anywhere}
.education-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.education-filters label:last-child{grid-column:1/-1}.education-filters select{font-size:14px}
.education-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.video-watch-state{font-size:14px;color:#4a635a}
.video-description{margin:8px 0 12px}.video-description summary{font-size:14px;cursor:pointer;color:#315e4d}.video-description p{margin-top:8px}
.video-card-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.education-video .video-card-actions .video-play{width:auto;min-height:44px}.video-mark{font-size:14px;max-width:150px}
.education-guide{border-top:1px solid #e2e9dc;margin-top:14px;padding-top:14px}.education-guide summary{font-size:14px;font-weight:700;cursor:pointer}.education-guide p{margin-top:10px}
.education-pagination{justify-content:center;align-items:center}
@media(min-width:560px){.education-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.education-filters label:last-child{grid-column:auto}}
.saving-goal{margin:16px 0;padding:16px;border:1px solid #d3e1d2;border-radius:20px;background:#f0f6ec;text-align:left;min-width:0}
.saving-goal>strong{display:block;font-size:14px;color:#506b53}
.saving-goal h3{margin:8px 0;font-size:18px;overflow-wrap:anywhere}
.saving-goal progress{display:block;width:100%;height:12px;accent-color:#658f50}
.saving-goal .hint,.saving-goal summary{font-size:14px;line-height:1.5;margin:8px 0}
.saving-status{font-size:15px;line-height:1.5;margin:8px 0}
.saving-goal button{font-size:14px;padding:10px 14px;margin:6px 8px 4px 0}
.pet-home>.saving-goal{width:min(100%,360px)}
/* Play sits over the pet scene; only its controls intercept touches. */
.sunshine-overlay{position:absolute;inset:0;z-index:4;pointer-events:none}
.sunshine-overlay button{pointer-events:auto;touch-action:manipulation}
.sunshine-hud{position:absolute;top:8px;left:8px;right:8px;border-radius:14px;padding:7px 10px;background:#fffdf1eb;color:#36503c;text-align:center;line-height:1.4;box-shadow:0 2px 8px #31583a12}
.sunshine-hud[hidden],.sunshine-arena[hidden],.sunshine-overlay button[hidden]{display:none}
.sunshine-guide,.sunshine-status{font-size:14px;line-height:1.4;margin:0}
.sunshine-guide{font-weight:700}
.sunshine-arena{position:absolute;inset:0;pointer-events:none}
.sunshine-target{position:absolute;width:48px;height:48px;padding:0;border:2px solid #fff6c3;border-radius:50%;background:#ffe080;color:#745819;font-size:32px;line-height:1;transform:translate(-50%,-50%);transition:left .2s ease-out,top .2s ease-out;box-shadow:0 0 18px #fff1a7}
.sunshine-target:active{transform:translate(-50%,-50%) scale(.88)}
.sunshine-start,.sunshine-stop{position:absolute;bottom:10px;font-size:14px;line-height:1.4;padding:8px 12px;border-radius:20px;background:#fffdf1ef;color:#214e3d;border:1px solid #c8d9bc;box-shadow:0 2px 8px #234f4220}
.sunshine-start{right:10px}.sunshine-stop{left:10px}
.family-notes,.family-encouragement{border:1px solid #d3e1d2;border-radius:20px;padding:14px 16px;margin:16px 0;text-align:left;min-width:0}
.pet-home>.family-notes{width:min(100%,360px)}
.family-notes summary,.family-encouragement summary{font-size:16px;font-weight:700;cursor:pointer;line-height:1.5}
.family-encouragement .hint{font-size:14px;line-height:1.5}
.family-note{margin-top:12px;padding:12px;border-radius:16px;background:#eef4e9;overflow-wrap:anywhere}
.family-note p{font-size:16px;line-height:1.6;white-space:pre-wrap;margin:6px 0 10px}
.family-note button{font-size:14px;padding:8px 14px}
.family-note .tag{font-size:14px}
.family-presets{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.family-presets button{font-size:14px;font-weight:500;line-height:1.5;text-align:left;padding:10px 14px}
@media(prefers-reduced-motion:reduce){.sunshine-target{transition:none}}
.pet-outfit{position:absolute;inset:0;pointer-events:none;z-index:1;filter:drop-shadow(0 2px 2px #5c604d30)}
.pet-outfit svg{display:block;width:100%;height:100%}
.pet-mouth{z-index:2}
.wardrobe-open{min-height:44px;position:absolute;bottom:10px;left:10px;z-index:3;font-size:14px;line-height:1.4;padding:8px 12px;border-radius:20px;background:#fffdf1ef;color:#214e3d;border:1px solid #c8d9bc;box-shadow:0 2px 8px #234f4220}
.wardrobe-preview{position:relative;width:min(100%,210px);aspect-ratio:3/4;overflow:hidden;border-radius:20px;margin:12px auto}
.wardrobe-preview>img{display:block;width:100%;height:100%;object-fit:cover}
.wardrobe-current{flex-wrap:wrap;margin:10px 0}
.wardrobe-current button{font-size:14px;padding:8px 12px}
.wardrobe-item h3{font-size:17px;margin:0;line-height:1.4}
.wardrobe-item button{font-size:14px;line-height:1.4;padding:10px 12px}

.statement-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.statement-controls label{flex:1 1 140px;font-size:14px}.statement-controls select{min-height:44px;font-size:16px;margin-top:6px;width:100%}
.statement-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.statement-stats>div{padding:14px 8px;background:#edf4e9;border-radius:16px;text-align:center}.statement-stats span{display:block;font-size:14px}.statement-stats strong{display:block;font-size:clamp(19px,5vw,28px);margin-top:6px;overflow-wrap:anywhere}
.points-statement .hint{font-size:14px;line-height:1.6}.statement-table-wrap{max-width:100%;overflow-x:auto;margin-top:16px}.points-statement table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;line-height:1.5}.points-statement th,.points-statement td{border-bottom:1px solid #dce5d7;padding:12px 8px;vertical-align:top}.points-statement th{white-space:nowrap}.points-statement td:first-child{min-width:85px}.points-statement td:nth-child(3){min-width:110px;overflow-wrap:anywhere}.points-statement td:last-child{text-align:right;white-space:nowrap;font-weight:750}.points-statement small{display:block;font-size:14px;color:#526d61;margin-top:4px}.statement-income{color:#245e4b}.statement-expense{color:#8b4d35}.statement-pages{align-items:center;margin-top:16px;justify-content:space-between;flex-wrap:wrap}

.statement-help summary{font-size:14px;cursor:pointer;padding:8px 0;font-weight:700}

.shop-content>.points-statement{margin:0;padding:0;border:0;background:transparent;box-shadow:none}

.pet-home>label{width:min(100%,360px);text-align:left;font-size:14px}.pet-home>label select{width:100%;font-size:16px;min-height:44px}.food-item h3{font-size:18px;margin:0}

.shop-categories.shop-category-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin:0 0 12px;padding:0;gap:8px}
.shop-category-menu button{min-width:0;min-height:48px;white-space:normal;overflow-wrap:anywhere;border-radius:16px;font-size:15px;padding:10px 8px;line-height:1.4}

.fruit-ripe{transform-box:view-box;transform-origin:0px 0px;animation:ripe-sway 3.5s ease-in-out infinite;filter:drop-shadow(0 0 5px #f7df8b88)}
@keyframes ripe-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.fruit-ripe{animation:none}}

.pet-photo-open{min-height:44px;position:absolute;bottom:10px;right:10px;z-index:3;font-size:14px;line-height:1.4;padding:8px 12px;border-radius:20px;background:#fffdf1ef;color:#214e3d;border:1px solid #c8d9bc;box-shadow:0 2px 8px #234f4220}
.pet-photo-dialog{box-sizing:border-box;width:min(94vw,520px);max-height:90dvh;overflow-y:auto;border:1px solid #c8d9bc;border-radius:24px;padding:24px;background:#fbfdf7;color:#214e3d}.pet-photo-dialog::backdrop{background:#102c226b}.pet-photo-dialog h2{font-size:23px;margin:0 0 12px}.pet-photo-dialog .hint{font-size:14px;line-height:1.6}.pet-photo-dialog .actions{display:flex;gap:10px;flex-wrap:wrap}.pet-photo-dialog button{min-height:44px;font-size:16px;margin:8px 0}.photo-selfie{display:block;width:160px;max-height:200px;object-fit:contain;margin:16px auto}.photo-result{display:block;width:100%;border-radius:18px;margin:16px 0}.photo-consent{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.6;margin:16px 0}.photo-consent input{width:22px;height:22px;flex:none;margin-top:2px}.pet-photo-dialog .button-link{display:block;padding:14px;background:#245d4b;color:white;text-align:center;border-radius:16px;font-weight:700}.pet-photo-dialog [hidden]{display:none!important}

.sticker-canvas{display:block;width:100%;height:auto;touch-action:none;border-radius:18px;margin:16px 0;background:#e9f1e7;outline-offset:3px}.sticker-editor label{display:block;font-size:16px;margin:12px 0}.sticker-editor input[type=range]{display:block;width:100%;min-height:44px;margin:4px 0;accent-color:#245d4b}.sticker-editor>.actions{justify-content:space-between}

.sticker-pose-label{font-size:16px;font-weight:750;margin:12px 0 8px}.sticker-pose-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pet-photo-dialog .sticker-pose{display:flex;flex-direction:column;align-items:center;min-width:0;width:100%;padding:8px 4px;margin:0;font-size:14px;line-height:1.4;border:2px solid transparent;border-radius:14px;background:#eef4e9;color:#214e3d}.pet-photo-dialog .sticker-pose[aria-pressed=true]{border-color:#2d7158;background:#dceee2;box-shadow:0 0 0 1px #2d7158}.sticker-pose-art{display:block;width:66px;max-width:100%;aspect-ratio:1;margin-bottom:4px;background-size:contain;background-repeat:no-repeat;background-position:center}.sticker-pose:focus-visible{outline:3px solid #7dab64;outline-offset:2px}

.pet-photo-dialog .album-save{display:block;width:100%;background:#245d4b;color:white;font-weight:750;padding:14px;border-radius:16px}.photo-result{-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}.photo-save-options{margin:16px 0;font-size:14px}.photo-save-options summary{cursor:pointer;padding:8px 0}

/* Keep the pose-discovery cue outside the photo scrolling area. */
.pet-photo-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0}
.photo-dialog-body{padding:24px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:16px}
.pet-photo-dialog .photo-scroll-hint{flex-shrink:0;width:100%;min-height:52px;margin:0;padding:12px 16px;border:0;border-top:1px solid #c8d9bc;border-radius:0;background:#e7f1e5;color:#214e3d;font-size:14px;font-weight:750;box-shadow:0 -8px 18px #214e3d12}

.sticker-preview{position:relative;margin:16px 0}
.sticker-preview .sticker-canvas{margin:0;touch-action:pan-y}
.sticker-drag-handle{position:absolute;touch-action:none;cursor:grab}
.sticker-drag-handle:active{cursor:grabbing}
.pet-photo-dialog .photo-scroll-hint{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 16px;font-size:16px}
.photo-scroll-arrow{display:block;font-size:28px;line-height:1;font-weight:800}

/* Four student destinations remain balanced on small screens. */
.child-nav{grid-template-columns:repeat(2,minmax(0,1fr))}

.fields label:has(> input[name="coupon"]),
.fields label:has(> input[name="checked"]) {
  display:flex;
  flex-direction:row-reverse;
  justify-content:flex-end;
  align-items:center;
  gap:.65rem;
  min-height:44px;
}
.fields input[name="coupon"],
.fields input[name="checked"] {
  width:1.25rem;
  height:1.25rem;
  flex:none;
  accent-color:#235d4c;
}
