body{margin:0;font-family:var(--font);color:var(--ink);background:var(--paper)}*{box-sizing:border-box}main{max-width:56rem;margin:auto;padding:16px;text-align:center}header{display:flex;align-items:center;gap:16px;text-align:left}h1{font-size:clamp(1.35rem,4vw,2rem);margin:8px 0}h2{font-size:clamp(1.35rem,3.5vw,1.8rem);margin:0}a{color:var(--forest);display:inline-flex;align-items:center;min-height:56px;padding:12px;flex-shrink:0}nav,.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}button{font:inherit;font-weight:700;min-height:56px;padding:12px 18px;background:var(--cream);color:var(--ink);border:3px solid transparent;border-radius:16px;cursor:pointer}button[aria-pressed=true],.primary{background:var(--picked);border-color:currentColor}button:focus-visible,a:focus-visible,#task:focus-visible{outline:4px solid var(--focus);outline-offset:3px}button:disabled{opacity:.55;cursor:default}figure{margin:12px}figure img{width:100%;height:min(38vh,300px);object-fit:contain}figcaption{font-size:1.6rem;font-weight:700}#hello{min-height:2em}#save-note:empty{display:none}#save-note{padding:12px;background:var(--cream);border-radius:12px}#game[hidden],#room[hidden]{display:none}.play-heading{display:flex;justify-content:center;align-items:center;gap:18px;margin:12px 0 20px}.play-heading img{width:80px;height:110px;object-fit:contain}.play-heading p{margin:8px 0}#progress{font-weight:700}#toys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.toy{position:relative;padding:10px 6px;min-height:130px;background:var(--cream);border:3px solid transparent}.toy svg{display:block;width:100%;height:72px;overflow:visible}.toy span{display:block;margin-top:6px;font-size:1rem}.toy[aria-pressed=true]{background:var(--picked);border-color:var(--forest)}.toy[aria-pressed=true]::after{content:'✓';position:absolute;right:6px;top:3px;font-size:1.4rem;color:var(--ink)}#feedback{min-height:3em;margin:16px 0 8px;font-weight:700}dialog{max-width:min(30rem,calc(100vw - 32px));padding:24px;border:3px solid var(--forest);border-radius:20px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#172c2577}dialog p{line-height:1.5}@media(max-width:550px){main{padding:12px}header{gap:4px}#toys{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.toy{min-height:116px;padding:8px 3px}.toy svg{height:60px}.toy span{font-size:.88rem}.play-heading{gap:12px;margin:8px 0 14px}.play-heading img{width:55px;height:85px}.actions{gap:8px}.actions button{padding:10px 12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(min-width:700px) and (max-height:800px){.toy{min-height:110px}.toy svg{height:56px}.play-heading{margin:8px 0 12px}.play-heading img{height:90px}}

/* Keep the whole colour hunt and shared Help in reach on landscape iPad. */
@media(min-width:700px) and (max-height:800px){#toys{gap:8px}.toy{min-height:88px;padding:6px}.toy svg{height:44px}.toy span{font-size:.95rem;margin-top:3px}.play-heading img{height:72px}.play-heading{margin:4px 0 8px}#feedback{min-height:2em;margin:10px 0 8px}}

#friends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#friends button{display:flex;align-items:center;gap:8px;text-align:left;min-width:0;padding:8px;min-height:80px}#friends img{width:56px;height:72px;object-fit:contain;flex:none}#friends button>span{overflow-wrap:anywhere}#selected-friend{scroll-margin-top:8px}#selected-friend figure{margin:4px}#selected-friend figure img{height:150px}#selected-friend figcaption{font-size:24px}#selected-friend #hello{margin:4px;min-height:24px}#selected-friend .actions button{min-height:56px}@media(min-width:700px){#friends{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-height:450px){#selected-friend{display:grid;grid-template-columns:1fr 1fr;align-items:center}#selected-friend figure{grid-row:1/3}#selected-friend figure img{height:120px}}
#friends button>span{font-size:14px;overflow-wrap:normal;word-break:normal}#friends img{width:48px}#friends button{gap:6px}
/* A furnished playroom: the six physical play places lead the journey. */
.room-invite{margin:8px 0 12px;font-size:1.1rem;font-weight:700}.playroom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:3px solid var(--forest);border-radius:28px;background:linear-gradient(180deg,#e5eed7 0 57%,#cfaa7d 57% 59%,#efd7ac 59%);box-shadow:inset 0 -10px 0 #d6b88b}.place{display:flex;flex-direction:column;justify-content:end;min-width:0;min-height:158px;padding:8px 6px 10px;border:2px solid transparent;border-radius:18px;text-decoration:none;color:var(--ink);background:#fff9eac9;font-weight:700;box-shadow:0 4px 0 #b28f6555}.place svg{display:block;width:100%;height:110px;overflow:visible}.place span{display:block;min-height:24px;font-size:1rem}.place:hover{background:var(--cream);border-color:var(--forest)}#selected-friend{display:flex;justify-content:center;align-items:center;gap:16px;margin:14px auto 0;padding:8px;max-width:540px;background:var(--cream);border-radius:22px}#selected-friend figure{flex:0 0 110px;grid-row:auto}#selected-friend figure img{height:90px;width:110px}#selected-friend figcaption{font-size:1.1rem}.host-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;align-items:center}.host-actions button{padding:10px 12px}.host-actions #hello{width:100%;min-height:20px;margin:0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}#friend-dialog{width:min(760px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:16px}#friend-dialog #friends{grid-template-columns:repeat(4,minmax(0,1fr))}#friends button{min-height:88px;flex-direction:column;justify-content:center;text-align:center}#friends img{width:70px;height:65px}#friends button>span{font-size:14px}.art-missing{object-fit:contain}#room> .nb-help-lane{grid-column:1/-1}main{padding-bottom:90px}
@media(max-width:600px){.playroom{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border-radius:22px}.place{min-height:128px;padding:4px}.place svg{height:90px}.place span{font-size:.95rem;line-height:1.2;min-height:24px}#selected-friend{gap:4px}#selected-friend figure{flex-basis:86px}#selected-friend figure img{width:86px;height:78px}.host-actions button{font-size:.9rem}#friend-dialog #friends{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){main{padding:8px}.room-invite{margin:4px 0 8px}.playroom{gap:6px;padding:8px}.place{min-height:115px}.place svg{height:76px}.place span{font-size:.86rem}#selected-friend{margin-top:10px}}
@media(min-width:650px) and (max-height:450px){.playroom{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px;gap:8px}.place{min-height:112px;flex-direction:row;align-items:center}.place svg{width:55%;height:90px}.place span{flex:1;font-size:.95rem}header h1{margin:0}.room-invite{margin:2px 0 6px}#selected-friend{margin-top:10px}}
.nb-help-slot:empty{display:none}.nb-help-slot{min-height:64px;text-align:left}.nb-help-slot .nb-help-lane{margin:0;padding:4px 0;min-height:64px}
