/* Family Playroom. All components and layout states belong to the two lobby pages. */
html:has(.play-home-page){scroll-padding-top:76px}
body.play-home-page{margin:0;background:#fbf8f2}
.play-home{
 --ph-ink:#332b35;--ph-muted:#645c62;--ph-plum:#603858;--ph-plum-dark:#4a2944;
 --ph-paper:#fbf8f2;--ph-white:#fffdfa;--ph-border:#ded5cc;--ph-focus:#184ea2;
 --ph-mint:#dcebdf;--ph-pink:#f8ded5;--ph-lilac:#e7e3f1;--ph-header:69px;
 color:var(--ph-ink);background:var(--ph-paper);font-family:var(--ui2-font-family),system-ui,sans-serif;
 padding:30px clamp(20px,4vw,64px) 42px;
}
.play-home *,.play-home *::before,.play-home *::after{box-sizing:border-box}
.play-home [hidden]{display:none!important}
.play-home h1,.play-home h2,.play-home h3,.play-home p{margin:0}
.play-home h1,.play-home h2,.play-home h3{font-style:normal;overflow-wrap:anywhere;color:var(--ph-ink)}
.play-home h2{font-size:clamp(21px,2.4vw,29px);font-weight:760;letter-spacing:-.035em;line-height:1.3}
.play-home h3{line-height:1.25}
.play-home a{color:inherit;text-decoration:none}
.play-home button,.play-home input{font:inherit}
.play-home button,.play-home a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.play-home button{cursor:pointer}
.play-home button:disabled,.play-home input:disabled{cursor:default;opacity:.6}
.play-home :focus-visible,.ph-skip:focus-visible{outline:3px solid var(--ph-focus,#184ea2);outline-offset:3px}
.play-home :where(a,button,input,[tabindex]){scroll-margin-block:calc(var(--ph-header) + 16px) 28px}
.ph-inner{max-width:1160px;margin:auto}
.ph-welcome,.ph-section-heading,.ph-results-bar,.ph-find-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ph-welcome{padding-bottom:21px;border-bottom:1px solid var(--ph-border)}
.ph-welcome h1{font:700 clamp(30px,4.3vw,53px)/1.14 Georgia,"Songti TC","PMingLiU",serif;letter-spacing:-.045em;color:var(--ph-plum-dark)}
.ph-library-jump,.ph-recent-empty a{display:inline-flex;align-items:center;gap:8px;min-height:44px;background:var(--ph-white);border:1px solid var(--ph-border);border-radius:15px;padding:8px 13px;color:var(--ph-plum)!important;font-size:14px;line-height:1.2;font-weight:720}
.ph-library-jump{flex-shrink:0}.ph-library-jump svg{width:17px;height:17px}
.ph-picks{padding:24px 0 30px}
.ph-section-heading{margin-bottom:14px}
.ph-section-heading>p,.ph-recent-note,.ph-results-bar>p{font-size:13px;line-height:1.5;color:var(--ph-muted)}
.ph-picks-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:14px}
.ph-pick{position:relative;min-width:0;display:grid;isolation:isolate;overflow:hidden;border-radius:22px;
 box-shadow:inset 0 0 0 1px #39273815;transition:box-shadow .16s,transform .16s}
.ph-pick:active,.ph-recent-link:active,.ph-replay-link:active,.ph-library-jump:active,.ph-dock a:active{transform:scale(.985)}
.ph-pick-art{overflow:hidden;min-width:0;min-height:0;background:var(--ph-pink)}
.ph-pick-art img{display:block;width:100%;height:100%;object-fit:cover}
.ph-pick-copy{min-width:0;align-self:center}
.ph-pick-copy h3{font-weight:760;letter-spacing:-.035em}
.ph-pick-copy p{font-size:14px;line-height:1.45;color:#53464e}
.ph-pick-lead{grid-row:span 2;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);background:#f9e1d5}
.ph-pick-lead .ph-pick-art{grid-column:2;grid-row:1}
.ph-pick-lead .ph-pick-copy{grid-column:1;grid-row:1;padding:clamp(18px,2.4vw,34px)}
.ph-pick-lead h3{font:700 clamp(29px,3.1vw,46px)/1.1 Georgia,"Songti TC","PMingLiU",serif;color:var(--ph-plum-dark);letter-spacing:-.045em}
.ph-pick-lead p{margin:12px 0 18px}
.ph-lead-cta{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;background:var(--ph-plum);color:white;border-radius:999px;padding:11px 15px;font-size:14px;font-weight:720;line-height:1.35}
.ph-lead-cta svg{width:16px;height:16px}
.ph-pick-side{grid-template-columns:42% minmax(0,1fr);min-height:118px;background:#f2e6c6}
.ph-pick-side:last-child{background:#ddebdf}
.ph-pick-side .ph-pick-art{position:relative;min-height:120px}
.ph-pick-side .ph-pick-art img{position:absolute;inset:0}
.ph-pick-side .ph-pick-copy{padding:15px 42px 15px 16px}
.ph-pick-side h3{font-size:clamp(18px,2vw,26px);margin:0 0 6px}
.ph-pick-side p{font-size:13px}
.ph-round-arrow{display:grid;place-items:center;width:29px;height:29px;position:absolute;bottom:13px;right:12px;background:#fffcf1b8;color:var(--ph-plum);border-radius:50%}
.ph-round-arrow svg{width:17px;height:17px}
.ph-replay{margin:0 0 16px}
.ph-replay-link{display:flex;align-items:center;gap:12px;min-height:58px;padding:6px 12px 6px 7px;border:1px solid #c7d9c9;border-radius:16px;background:#e6f1e8}
.ph-replay-link img{display:block;flex:none;width:46px;height:46px;border-radius:10px;object-fit:cover;background:white}
.ph-replay-copy{min-width:0;flex:1;display:grid;gap:2px}
.ph-replay-copy small{color:#415b49;font-size:12px;line-height:1.2}
.ph-replay-copy strong{font-size:15px;line-height:1.25}
.ph-replay-cta{color:#244b36;font-size:13px;font-weight:750;display:flex;align-items:center;gap:4px}
.ph-replay-cta svg{width:16px;height:16px}
.ph-recent{padding:22px 0;border-top:1px solid var(--ph-border)}
.ph-recent .ph-section-heading{margin-bottom:4px}
.ph-clear-recent,.ph-clear{min-height:44px;min-width:44px;border:0;background:transparent;color:var(--ph-plum)}
.ph-clear-recent{text-decoration:underline;text-underline-offset:3px;font-size:13px}
.ph-recent-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.ph-recent-link{display:flex;align-items:center;gap:10px;padding:8px;font-weight:680;border:1px solid var(--ph-border);border-radius:15px;background:var(--ph-white);min-width:0}
.ph-recent-link img{width:52px;height:52px;object-fit:cover;border-radius:9px}
.ph-recent-link span{min-width:0;line-height:1.35;overflow-wrap:anywhere}
.ph-recent-empty,.ph-empty{padding:30px 18px;text-align:center;border-radius:20px;background:#eee8f2}
.ph-recent-empty>svg,.ph-empty>svg{color:var(--ph-plum);width:32px;height:32px;margin-bottom:10px}
.ph-recent-empty h3,.ph-empty h3{font-size:21px}
.ph-recent-empty p,.ph-empty p{margin:8px auto 16px;max-width:32em;color:var(--ph-muted);font-size:15px;line-height:1.55}
.ph-library{scroll-margin-top:calc(var(--ph-header) + 8px)}
.ph-find{background:var(--ph-paper);padding:20px 0;border-top:1px solid var(--ph-border)}
.ph-find-row{margin-bottom:14px}
.ph-search-wrap{display:flex;align-items:center;gap:9px;background:var(--ph-white);border:1px solid #c8bac2;border-radius:14px;padding:0 4px 0 13px;width:370px;min-height:46px;max-width:100%}
.ph-search-wrap:focus-within{border-color:var(--ph-plum);box-shadow:0 0 0 2px var(--ph-plum)}
.ph-search-wrap>svg{color:var(--ph-muted);flex:none}
.ph-search-wrap input{width:100%;min-width:0;font-size:16px;line-height:1.45;min-height:44px;border:none;background:transparent;outline:none;color:var(--ph-ink);padding:8px 0;appearance:none}
.ph-search-wrap input::-webkit-search-cancel-button{display:none}
.ph-search-wrap input::placeholder{color:var(--ph-muted);opacity:1}
.ph-clear{display:grid;place-items:center;border-radius:10px}
.ph-filters{display:flex;gap:7px;flex-wrap:wrap}
.ph-filters button{min-height:44px;line-height:1.32;border:1px solid #d7cdcf;border-radius:14px;padding:8px 14px;color:#4e424f;font-size:13px;font-weight:670;background:var(--ph-white)}
.ph-filters button:nth-child(2){background:#f1e7f5}.ph-filters button:nth-child(3){background:#e6ecf6}.ph-filters button:nth-child(4){background:#f9e6db}.ph-filters button:nth-child(5){background:#e2efe4}.ph-filters button:nth-child(6){background:#f6e4e8}.ph-filters button:nth-child(7){background:#f4edcc}
.ph-filters button[aria-pressed=true]{background:var(--ph-plum);color:white;border-color:var(--ph-plum);box-shadow:inset 0 -2px #3e263e}
.ph-results-bar{padding:5px 0 13px}
.ph-results-bar h2{font-size:19px}
.ph-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ph-card{position:relative;min-width:0;display:flex;flex-direction:column;background:var(--ph-white);border:1px solid var(--ph-border);border-radius:16px;transition:border-color .15s,box-shadow .15s;scroll-margin-top:calc(var(--ph-header) + 12px)}
.ph-card:target{outline:3px solid var(--ph-focus);outline-offset:3px}
.ph-card-art{position:relative;aspect-ratio:1.95;border-radius:15px 15px 0 0;overflow:hidden;background:#f1eee5}
.ph-card-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.ph-card-body{padding:13px 14px 9px;display:flex;flex:1;flex-direction:column;min-width:0}
.ph-card-category{display:none}
.ph-card h3{font-size:18px;line-height:1.3;letter-spacing:-.028em}
.ph-description{margin:5px 0 7px!important;color:var(--ph-muted);font-size:13px;line-height:1.5}
.ph-card-bottom{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-top:auto}
.ph-card-bottom>span{font-size:12px;color:#65595e;line-height:1.4}
.ph-open{display:inline-flex;align-items:center;justify-content:center;gap:4px;color:var(--ph-plum)!important;font-size:13px;font-weight:750;min-height:44px;min-width:44px}
.ph-open svg{width:15px;height:15px}
.ph-open::after{content:"";position:absolute;inset:0;z-index:1;border-radius:16px}
.ph-types{position:relative;z-index:2;align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;text-decoration:underline!important;font-size:13px;text-underline-offset:3px}
.ph-more-wrap{display:flex;justify-content:center}
.ph-more,.ph-reset{min-height:46px;padding:10px 18px;border:1px solid #c9bac6;border-radius:14px;font-weight:700;font-size:14px}
.ph-more{margin-top:22px;background:var(--ph-white);color:var(--ph-plum)}.ph-reset{background:var(--ph-plum);color:white}
.ph-practical{margin-top:34px;padding:24px 0 0;border-top:1px solid var(--ph-border)}
.ph-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ph-guide{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:10px 0}
.ph-guide-icon{background:var(--ph-pink);padding:10px;width:44px;height:44px;border-radius:13px;flex:none}
.ph-guide:nth-child(2) .ph-guide-icon{background:var(--ph-lilac)}.ph-guide:nth-child(3) .ph-guide-icon{background:var(--ph-mint)}
.ph-guide h3{font-size:17px}.ph-guide p{color:var(--ph-muted);font-size:13px;line-height:1.5;margin:6px 0}
.ph-guide-go{color:var(--ph-plum);font-size:13px;font-weight:700;display:inline-flex;gap:5px;align-items:center}
.ph-guide-go svg{width:15px;height:15px}
.ph-closing{color:var(--ph-muted);font-size:12px;line-height:1.6;padding-top:28px}
.ph-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ph-skip{position:fixed;left:10px;top:-100px;z-index:2000;padding:12px;background:white;color:#184ea2;border-radius:8px}.ph-skip:focus{top:8px}
.ph-dock{display:none}
@media(hover:hover){.ph-pick:hover,.ph-card:hover{box-shadow:0 4px 13px #50354714,inset 0 0 0 1px #ab8f9d}.ph-pick-lead:hover .ph-lead-cta{background:var(--ph-plum-dark)}.ph-library-jump:hover,.ph-more:hover,.ph-recent-link:hover,.ph-guide:hover .ph-guide-go{text-decoration:underline}.ph-filters button:hover{border-color:var(--ph-plum)}}
@media(min-width:768px){.play-home:not([data-view=recent]) .ph-recent:has(.ph-recent-empty:not([hidden])){display:none}}
@media(min-width:768px) and (max-width:1000px){.ph-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ph-pick-lead{grid-template-columns:1fr 1fr}.ph-pick-side .ph-pick-copy{padding-right:18px}.ph-round-arrow{display:none}.ph-recent-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 html:has(.play-home[data-view]){scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 body:has(.play-home[data-view]){padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
 .play-home{padding:15px clamp(12px,4vw,23px) 24px;min-height:calc(100svh - var(--ph-header) - 10px)}
 .ph-welcome{padding-bottom:12px;gap:8px}
 .ph-welcome h1{font-size:clamp(26px,6.6vw,34px);line-height:1.1;letter-spacing:-.045em}
 .ph-library-jump{font-size:12px;gap:6px;padding:7px 10px;border-radius:13px}
 .ph-library-jump svg:first-child{width:14px;height:14px}.ph-library-jump svg:last-child{display:none}
 .ph-picks{padding:14px 0 10px}
 .ph-section-heading{margin-bottom:10px}
 .ph-section-heading h2,.ph-find h2{font-size:21px}
 .ph-picks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .ph-pick{border-radius:17px}
 .ph-pick-lead{display:flex;flex-direction:column;grid-column:1/-1;grid-row:auto}
 .ph-pick-lead .ph-pick-art{width:100%;height:clamp(138px,42vw,210px)}
 .ph-pick-lead .ph-pick-art img{object-position:50% 53%}
 .ph-pick-lead .ph-pick-copy{width:100%;padding:15px 16px 16px}
 .ph-pick-lead h3{font-size:clamp(26px,7.5vw,36px)}
 .ph-pick-lead p{margin:6px 0 12px;max-width:38em;line-height:1.42}
 .ph-lead-cta{font-size:13px;min-height:44px;padding:10px 16px}
 .ph-pick-side{display:flex;flex-direction:column;min-height:0}
 .ph-pick-side .ph-pick-art{position:relative;width:100%;min-height:0;aspect-ratio:1.95}
 .ph-pick-side .ph-pick-copy{align-self:stretch;padding:10px 12px 13px;flex:1}
 .ph-pick-side h3{font-size:clamp(16px,4.4vw,21px);margin:0 0 4px}
 .ph-pick-side p{font-size:12px;line-height:1.38}
 .ph-round-arrow{right:7px;top:7px;bottom:auto;width:26px;height:26px;background:#fffdf4e6}
 .ph-round-arrow svg{width:15px;height:15px}
 .ph-replay{margin:0 0 12px}
 .ph-replay-copy strong{font-size:14px}
 .ph-replay-link{gap:9px}
 .ph-recent{border:0;padding:16px 0}
 .ph-recent-list{grid-template-columns:1fr}
 .ph-recent-list:empty{margin:0}
 .ph-recent-empty{margin-top:14px}
 .ph-find{padding:15px 0 13px;border:0}
 .ph-find-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:10px}
 .ph-search-wrap{width:100%}
 .ph-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .ph-filters button{padding:7px 4px;font-size:12px;border-radius:11px;min-height:44px}
 .ph-results-bar{padding:5px 0 9px}.ph-results-bar h2{font-size:17px}.ph-results-bar>p{font-size:12px}
 .ph-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .ph-card{border-radius:13px}.ph-card-art{border-radius:12px 12px 0 0}
 .ph-card-body{padding:9px 9px 4px}.ph-card h3{font-size:16px}.ph-description{font-size:12px;line-height:1.42;margin:5px 0!important}
 .ph-card-bottom{gap:4px;flex-wrap:wrap}.ph-card-bottom>span{font-size:11px}.ph-open{font-size:12px;margin-left:auto}
 .ph-practical .ph-section-heading{display:block}.ph-practical .ph-section-heading p{margin-top:4px}.ph-guide-grid{grid-template-columns:1fr;gap:0}.ph-guide+.ph-guide{border-top:1px solid var(--ph-border)}
 .play-home[data-view=picks] :is(#ph-view-library,#ph-view-recent,.ph-practical,.ph-closing),
 .play-home[data-view=library] :is(#ph-view-picks,#ph-view-recent,.ph-library-jump),
 .play-home[data-view=recent] :is(#ph-view-picks,#ph-view-library,.ph-practical,.ph-closing){display:none}
 .play-home[data-view] .ph-dock{display:flex;align-items:stretch;justify-content:center;gap:3px;position:fixed;inset:auto 0 0;z-index:15;background:#fffcf7;border-top:1px solid #d9cfd5;box-shadow:0 -4px 20px #46313e0a;padding:5px max(9px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom,0px)) max(9px,env(safe-area-inset-left))}
 .ph-dock a{display:flex;flex:1 1 0;max-width:170px;min-height:51px;align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#625761;font-size:12px;line-height:1.2;font-weight:620;border-radius:13px}
 .ph-dock a[aria-current=page]{background:#f1e6ed;color:var(--ph-plum-dark);font-weight:780}
 .ph-dock a[aria-current=page] svg{stroke-width:2.2}
 .play-home[data-view] :where(a,button,input,[tabindex]){scroll-margin-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:374px) and (max-height:650px){
 .ph-welcome{padding-bottom:8px}.ph-welcome h1{font-size:23px}.ph-library-jump{padding:6px 8px}
 .ph-picks:has(.ph-replay:not([hidden])){padding-top:8px}
 .ph-picks:has(.ph-replay:not([hidden])) .ph-pick-lead .ph-pick-art{height:96px}
 .ph-picks:has(.ph-replay:not([hidden])) .ph-pick-lead .ph-pick-copy{padding:10px 14px}
 .ph-picks:has(.ph-replay:not([hidden])) .ph-pick-lead p{margin:4px 0 8px}
 .ph-picks:has(.ph-replay:not([hidden])) .ph-replay{margin-bottom:7px}
}
@media(prefers-reduced-motion:reduce){.play-home *{scroll-behavior:auto!important;transition:none!important;animation:none!important}.play-home a:active,.play-home button:active{transform:none}}
