/* v18 kid surfaces: big taps, no punitive red, no hamburger, no ads. */
.kid-shell .choice.wrong,
.kid-shell .choice.soft-try{background:#FFF6D0 !important;color:#141428 !important}
.feedback.no{color:#141428 !important}
.result-card.fail{background:#FFF6D0 !important}
.v18-home,.v18-screen{display:flex;flex-direction:column;gap:12px;padding-bottom:8px}
.v18-stars{display:flex;align-items:center;gap:8px;min-height:48px;font-weight:800;font-size:1.1rem}
.v18-stars img,.v18-stars .star{font-size:1.4rem}
.gabe-row{display:flex;align-items:flex-end;gap:8px;min-height:88px}
.gabe-coach{width:96px;flex:none;position:relative}
.gabe-coach img{width:96px;height:112px;object-fit:contain;display:block}
.gabe-caption{flex:1;background:#fff;border:3px solid #141428;border-radius:18px;padding:10px 12px;font-weight:700;min-height:48px;display:none}
.gabe-caption.on{display:block}
.cap-toggle,.v18-icon-btn{
  min-width:48px;min-height:48px;padding:8px;border:3px solid #141428;border-radius:14px;
  background:#fff;font-weight:800;cursor:pointer
}
.cap-toggle[aria-pressed="true"]{background:#FFE600}
.mission-card,.v18-card{
  display:flex;align-items:center;gap:12px;width:100%;
  min-height:72px;padding:14px 16px;border:4px solid #141428;border-radius:24px;
  background:#FFE600;color:#141428;text-decoration:none;font:inherit;text-align:left;
  box-shadow:5px 5px 0 #141428;cursor:pointer
}
.mission-card h2,.v18-card h2{margin:0;font-size:1.25rem;line-height:1.2}
.mission-card p,.v18-card p{margin:4px 0 0;font-weight:700}
.mission-card .go{margin-left:auto;font-size:1.6rem}
.mission-card.is-pulse,.coach-target.is-pulse{
  animation:v18pulse 1s ease-in-out infinite;
  box-shadow:5px 5px 0 #141428,0 0 0 6px rgba(43,184,168,.45)
}
@keyframes v18pulse{50%{transform:scale(1.03)}}
.gabe-coach.pointing img{animation:v18nudge 1s ease-in-out infinite}
@keyframes v18nudge{50%{transform:translateX(6px)}}
.v18-map{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 0}
.v18-map .node{
  width:28px;height:28px;border-radius:50%;border:3px solid #141428;background:#fff;flex:none
}
.v18-map .node.on{background:#2BB8A8}
.v18-map .node.ok{background:#FFE600}
.v18-map .line{height:4px;flex:1;background:#141428;border-radius:2px;max-width:28px}
.pic-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pic-choice{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:120px;padding:10px;border:4px solid #141428;border-radius:22px;
  background:#fff;cursor:pointer;font-weight:800
}
.pic-choice img{width:86px;height:86px;object-fit:contain}
.pic-choice .lbl{margin-top:4px;font-size:.95rem;text-align:center}
.pic-choice.right{background:#D9FFE6}
.pic-choice.soft-try{background:#FFF6D0;opacity:.85}
.pic-choice[hidden],.pic-choice.is-hide{display:none}
.text-choices{display:flex;flex-direction:column;gap:10px}
.text-choices .choice{
  min-height:56px;padding:12px 14px;border:4px solid #141428;border-radius:16px;
  background:#fff;font-weight:800;text-align:left;cursor:pointer
}
.text-choices .choice.right{background:#D9FFE6}
.v18-ask{font-size:1.2rem;font-weight:800;margin:8px 0}
.v18-hint{background:#FFF6D0;border:3px solid #141428;border-radius:16px;padding:10px 12px;font-weight:700;min-height:48px}
.done-hero{text-align:center;padding:12px 8px 20px}
.done-hero h1{font-size:1.7rem;margin:8px 0}
.done-hero .gabe-coach{width:140px;margin:0 auto}
.done-hero .gabe-coach img{width:140px;height:164px}
.room-wrap{position:relative;border:4px solid #141428;border-radius:24px;overflow:hidden;background:#CDEEFF;min-height:280px}
.room-wrap .room-bg{width:100%;display:block}
.room-item{position:absolute;pointer-events:none}
.room-item.rug{left:12%;bottom:8%;width:76%}
.room-item.bed{left:8%;bottom:14%;width:62%}
.room-item.lamp{right:6%;bottom:18%;width:18%}
.room-item.plant{left:4%;bottom:18%;width:20%}
.room-item.poster{right:12%;top:10%;width:28%}
.room-item.mobile{left:36%;top:2%;width:28%}
.room-item.shelf{right:6%;top:28%;width:32%}
.room-item.curtains{left:6%;top:6%;width:40%}
.room-av{position:absolute;left:36%;bottom:16%;width:28%;z-index:2}
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shop-item{
  min-height:72px;padding:10px;border:3px solid #141428;border-radius:16px;background:#fff;
  display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;cursor:pointer
}
.shop-item img{height:48px;width:auto}
.shop-item.on{background:#D9FFE6}
.shop-item[disabled]{opacity:.55}
.story-grid,.idea-grid,.listen-list{display:flex;flex-direction:column;gap:10px}
.story-tile,.idea-tile,.listen-tile{
  display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;
  border:4px solid #141428;border-radius:18px;background:#fff;text-align:left;
  font-weight:800;cursor:pointer;width:100%
}
.story-tile .soon,.idea-tile .soon,.listen-tile .soon{
  margin-left:auto;background:#E8EEF6;border-radius:999px;padding:6px 10px;min-height:32px
}
.story-art{
  width:100%;border:4px solid #141428;border-radius:20px;overflow:hidden;background:#9BD7FF;
  min-height:200px;display:flex;align-items:center;justify-content:center;cursor:pointer
}
.story-art img{width:100%;height:auto;display:block}
.story-art.is-on .floaty{animation:v18float 1.2s ease-in-out infinite}
.story-art.is-on .wiggle{animation:v18wiggle .7s ease-in-out infinite}
.story-art.is-on .twinkle{animation:v18twinkle .8s ease-in-out infinite}
.story-art.is-on .rain path{animation:v18rain .7s linear infinite}
.story-art.is-on .spin-slow{transform-origin:center;animation:v18spin 4s linear infinite}
.story-art.is-on .toss{animation:v18toss .9s ease-in-out infinite}
.story-art.is-on .draw-in{stroke-dasharray:400;stroke-dashoffset:400;animation:v18draw 1.2s forwards}
.story-art.is-on .cheer-up{animation:v18nudge .8s ease-in-out infinite}
@keyframes v18float{50%{transform:translateY(-8px)}}
@keyframes v18wiggle{50%{transform:rotate(-6deg)}}
@keyframes v18twinkle{50%{opacity:.3;transform:scale(1.15)}}
@keyframes v18rain{to{transform:translateY(18px)}}
@keyframes v18spin{to{transform:rotate(360deg)}}
@keyframes v18toss{50%{transform:translate(-10px,-16px)}}
@keyframes v18draw{to{stroke-dashoffset:0}}
.v18-actions{display:flex;gap:10px}
.v18-actions button,.v18-cta{
  flex:1;min-height:52px;border:4px solid #141428;border-radius:16px;background:#7CFFF0;
  font-weight:800;cursor:pointer;padding:8px 12px
}
.v18-cta.secondary{background:#fff}
.idea-stage{border:4px solid #141428;border-radius:20px;overflow:hidden;background:#071430}
.idea-stage img{width:100%;display:block}
.listen-now{text-align:center;padding:8px}
.listen-timer{font-weight:800;font-size:1.2rem;min-height:48px}
.hold-progress{
  position:absolute;inset:-5px;border-radius:50%;pointer-events:none;
  background:conic-gradient(#2BB8A8 var(--hold,0%), transparent 0);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 5px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 5px))
}
.kid-icon-btn.grownup,.kid-icon-btn[data-hold-parent]{position:relative;overflow:visible}
.kid-icon-btn.holding{outline:none}
.v18-shortcuts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.v18-shortcuts button,.v18-shortcuts a{
  min-height:56px;border:3px solid #141428;border-radius:16px;background:#fff;
  font-weight:800;display:flex;align-items:center;justify-content:center;flex-direction:column;
  text-decoration:none;color:inherit;cursor:pointer;padding:6px
}
.kid-dock{gap:4px !important}
.kid-dock .dock-btn{flex:1;min-height:52px;min-width:48px;padding:6px 2px;font-size:.72rem;line-height:1.1}
.skills-table{width:100%;border-collapse:collapse}
.skills-table th,.skills-table td{text-align:left;padding:8px 6px;border-bottom:1px solid #d5dceb;font-size:.95rem}
.ws-list{display:flex;flex-direction:column;gap:8px;max-height:280px;overflow:auto}
.ws-list a,.ws-list button{
  min-height:48px;padding:8px 12px;border:2px solid #141428;border-radius:12px;
  background:#fff;text-decoration:none;color:inherit;display:flex;align-items:center;font-weight:700
}
.timer-picks{display:flex;gap:8px;flex-wrap:wrap}
.timer-picks button{min-height:48px;min-width:56px;padding:8px 12px;border:3px solid #141428;border-radius:12px;background:#fff;font-weight:800;cursor:pointer}
.timer-picks button.on{background:#7CFFF0}
.fs-banner.v18-hide,.kid-home-wrap .fs-banner{display:none}
.mode-kid .pz-lobby.locked h1{font-size:1.3rem}
/* parent skills highlight */
#v18-skills,#v18-worksheets,#v18-audio-set{scroll-margin-top:12px}

/* v18 QA fixes: hide parent leftovers already handled by mode-kid; compact dock; hide story chips */
body.mode-kid .story-chip{display:none !important}
body.mode-kid .kid-dock{
  gap:4px !important;
  margin:6px 8px calc(8px + env(safe-area-inset-bottom,0px)) !important;
  padding:6px !important;
}
body.mode-kid .kid-dock .dock-btn,
body.mode-kid .grade-k2 .dock-btn{
  flex:1 1 0 !important;
  min-width:0 !important;
  min-height:52px !important;
  font-size:.62rem !important;
  padding:4px 1px !important;
  gap:0 !important;
  flex-direction:column !important;
}
body.mode-kid .kid-dock .dock-ico{font-size:1.05rem}
.v18-home,.v18-screen{padding-left:4px;padding-right:4px;box-sizing:border-box}
.v18-shortcuts{width:100%;box-sizing:border-box}
.v18-shortcuts button,.v18-shortcuts a{min-width:0}
.v18-screen .gabe-row{min-height:72px}
.v18-screen .gabe-coach{width:76px}
.v18-screen .gabe-coach img{width:76px;height:90px}
.room-wrap{min-height:210px;max-height:230px}
.shop-grid{grid-template-columns:repeat(4,1fr);gap:8px}
.shop-item{min-height:64px;padding:6px;font-size:.7rem}
.shop-item img{height:36px}
.skills-table th,.skills-table td{padding:6px 4px;font-size:.82rem;vertical-align:top}
.skills-table td:first-child{white-space:nowrap;width:5.5rem}
.pic-choices{margin-bottom:8px}

html,body,.app,#app,.kid-shell,.kid-shell .view{overflow-x:hidden !important;max-width:100%}
body.mode-kid .story-banner,body.mode-kid .story-strip{display:none !important}
body.mode-kid .kid-topbar{display:flex;align-items:center;gap:6px;min-height:56px}
body.mode-kid .kid-chrome-actions{flex:0 0 auto;margin-left:auto;display:flex;align-items:center;gap:6px}
body.mode-kid .kid-topbar .who{flex:0 1 auto;min-width:0;max-width:34vw}
body.mode-kid .who a span span{display:none !important}
body.mode-kid .kid-chrome-actions [data-fullscreen]{display:none !important}
body.mode-kid .kid-icon-btn.grownup{
  flex:none;min-width:48px;min-height:48px;width:48px;height:48px;position:relative;z-index:6
}
body.mode-kid .kid-dock{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  width:calc(100% - 16px) !important;
  max-width:100% !important;
  margin-left:8px !important;
  margin-right:8px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.room-av{width:22%;left:36%;bottom:12%;z-index:2}
.room-av .avatar,.room-av svg,.room-av img{width:100% !important;height:auto !important;max-height:88px}

/* Keep the 390px phone width from expanding (topbar brand was the usual culprit). */
body.mode-kid .kid-shell,
body.mode-kid .kid-shell .view,
body.mode-kid .kid-scroll,
body.mode-kid .v18-home,
body.mode-kid .v18-screen,
body.mode-kid .kid-topbar{
  min-width:0 !important;
  max-width:100% !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body.mode-kid .kid-topbar .brand{min-width:0;overflow:hidden;flex:1 1 auto}
body.mode-kid .kid-topbar .brand-name,
body.mode-kid .kid-topbar .brand-sub{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%
}
body.mode-kid .kid-icon-btn{
  width:48px !important;height:48px !important;min-width:48px !important;min-height:48px !important;flex:none
}
body.mode-kid .kid-topbar .av-hit,
body.mode-kid .who .av-hit{
  min-width:48px !important;min-height:48px !important;width:48px !important;height:48px !important;
  display:grid;place-items:center;flex:none;padding:0;
}
body.mode-kid .kid-topbar .who .avatar,
body.mode-kid .kid-topbar .who .avatar svg,
body.mode-kid .kid-topbar .av-hit .avatar,
body.mode-kid .kid-topbar .av-hit .avatar svg{
  width:48px !important;height:48px !important;
}

body.mode-kid .mission-card,
body.mode-kid .v18-card,
body.mode-kid .v18-shortcuts,
body.mode-kid .shop-grid,
body.mode-kid .pic-choices,
body.mode-kid .story-art,
body.mode-kid .idea-stage,
body.mode-kid .room-wrap{max-width:100%;box-sizing:border-box}
.family-pass{
  min-height:52px;margin:8px 0;padding:10px 14px;border:4px solid #141428;border-radius:16px;
  background:#7CFFF0;font-weight:800;text-align:center
}
.family-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.family-chip{
  min-height:48px;padding:8px 14px;border:3px solid #141428;border-radius:999px;
  background:#fff;font-weight:800;cursor:pointer
}
.family-chip.on{background:#FFE600}
.family-scores{list-style:none;padding:0;font-weight:800;text-align:left;display:inline-block}
#v18-privacy p{max-width:40rem;line-height:1.45}
