:root{--site-green:#416b50;--site-ink:#35473b;--site-paper:#f8f6ef;--site-card:#fffdf7;--site-line:#dfe5d8;--site-muted:#707f69;--site-radius:18px}
body.has-site-shell{font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:var(--site-ink);background:var(--site-paper);font-size:16px}
.site-header{height:76px;padding:0 max(24px,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;align-items:center;gap:22px;background:var(--site-paper);border-bottom:1px solid var(--site-line);color:var(--site-ink);position:relative;z-index:12;box-sizing:border-box}
.site-brand{display:flex;align-items:center;gap:9px;font-size:27px;font-weight:800;letter-spacing:-1.3px;text-decoration:none;color:var(--site-ink);white-space:nowrap}.site-brand>span{color:#819574;font-size:36px}.site-brand small{font-size:11px;letter-spacing:0;font-weight:500;color:var(--site-muted);margin-left:8px}
.site-header .site-nav{display:flex;align-self:center;gap:4px;margin:0;padding:0;height:auto;width:auto;order:0}
.site-nav a{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px;min-height:46px;color:#65785d;font-size:14px;text-decoration:none;white-space:nowrap;border-radius:12px;position:relative}.site-nav a>span{font-size:21px;line-height:1}.site-nav a b{font-weight:600}.site-nav a:hover{background:#eff2e8}.site-nav a[aria-current=page]{color:var(--site-green);background:#e8efdf;font-weight:700}.site-nav a[aria-current=page]:after{display:none}
.site-account{min-height:44px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #d2ddc7;border-radius:12px;padding:8px 14px;font-size:13px;font-weight:700;color:var(--site-green);text-decoration:none;background:var(--site-card)}
.has-site-shell :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #a26649;outline-offset:3px}
.has-site-shell :is(.primary,.primary-button){background:var(--site-green);border-radius:12px;min-height:48px;box-shadow:none;font-size:16px}.has-site-shell :is(.secondary,.secondary-button){border-radius:12px;min-height:44px;box-shadow:none}.has-site-shell :is(dialog){border-radius:22px;background:var(--site-card);border:1px solid var(--site-line)}
.has-site-shell :is(.welcome-row h1,.editor-heading h1,.page-heading h1){font-size:28px;letter-spacing:-1px;font-weight:750;color:var(--site-ink)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* One page heading and action bar across the garden and family screens. */
.garden-page.has-site-shell main{max-width:1440px;padding:24px 4% 0;margin:auto}
.garden-page.has-site-shell .page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 6px}.garden-page .page-heading .eyebrow{font-size:12px;letter-spacing:.5px;margin-bottom:6px}.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.page-actions .secondary{font-size:14px;background:var(--site-card);padding:10px 14px;border:1px solid var(--site-line)}.page-actions .star-balance{font-size:16px;margin-right:9px}.page-actions .icon-button{width:44px;height:44px;font-size:21px}
.game-status-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.game-status-row .save-state{font-size:12px;margin:0;max-width:none;text-align:left;color:#718365}.game-status-row .text-button{min-height:36px;padding:5px 0;font-size:12px}
.connection-banner{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:0 0 16px;border:1px solid #dbc7a5;border-radius:12px;background:#faf0d9;padding:12px 16px;font-size:14px;line-height:1.6;color:#74603b}.connection-banner a{flex-shrink:0;font-weight:700;color:#416b50}.connection-banner button{border:1px solid #cbd7bf;background:#fff;border-radius:8px;min-height:44px;padding:6px 12px}
.play-tools{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:16px}.garden-page .activity-picker{display:flex;flex:1;gap:8px;margin:0;max-width:720px}.garden-page .activity-picker>button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;flex:1;min-height:58px;padding:10px 15px;border-radius:14px;background:var(--site-card);border:1px solid var(--site-line);text-align:left}.garden-page .activity-picker strong{font-size:16px}.garden-page .activity-picker>button>span:first-child{font-size:25px}.garden-page .activity-picker small{display:none}.panel-toggle{flex-shrink:0;font-size:13px;white-space:nowrap;padding:10px 14px}.panel-toggle span{font-size:20px;margin-left:7px}
.garden-page.has-site-shell .game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.garden-page.has-site-shell .game-layout.is-wide{grid-template-columns:minmax(0,1fr)}.garden-page.has-site-shell .world-card{height:clamp(560px,calc(100dvh - 345px),740px);border-radius:22px}.garden-page.has-site-shell .side-panel{display:flex;flex-direction:column;gap:14px;min-width:0}
.garden-page.has-site-shell .mission-card{border:1px solid var(--site-line);border-radius:var(--site-radius);padding:20px;background:var(--site-card)}.garden-page.has-site-shell .mission-card h2{font-size:21px;line-height:1.5;margin:12px 0}.garden-page .mission-description{display:none}.garden-page .card-kicker{font-size:12px}.garden-page .small-badge{font-size:10px}.garden-page .mission-detail{border-top:1px solid var(--site-line);margin-top:16px}.garden-page .mission-detail>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:54px;font-size:14px;font-weight:700;color:#58734b;padding:12px 0}.garden-page .mission-detail>summary::-webkit-details-marker{display:none}.garden-page .mission-detail>summary:after{content:'+';font-size:22px;font-weight:400}.garden-page .mission-detail[open]>summary:after{content:'−'}.garden-page .mission-detail .quest-list{margin:8px 0 20px;gap:20px;flex-direction:column}.garden-page .quest-list strong{font-size:14px}.garden-page .quest-list small{font-size:12px}.garden-page .reward-preview strong{font-size:13px}.garden-page .reward-preview small{font-size:12px}.garden-page .disclosure-body{padding-bottom:6px}.garden-page .treasure-clue{margin:14px 0}.garden-page .treasure-clue p{font-size:16px}.garden-page .treasure-map-button{margin-bottom:16px}.garden-page .treasure-collection-heading{margin-top:4px}.garden-page .treasure-collection-note{font-size:12px}.garden-page .seed-picker{margin:16px 0 0}.garden-page .seed-picker legend{font-size:16px}.garden-page .seed-options button{min-height:56px;font-size:14px}.garden-page #seed-hint{font-size:12px}
.companion-summary{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 18px;font-size:14px}.companion-summary strong{font-size:19px}.companion-summary #model-badge{padding:5px 8px;background:#edf2e5;border-radius:8px;font-size:12px}.companion-summary #companion-mood{width:100%;color:var(--site-muted);font-size:13px}
.garden-page.has-site-shell .game-footer{padding:20px 0;color:var(--site-muted);font-size:12px;justify-content:center}.garden-page.has-site-shell .world-hint{font-size:13px}.garden-page.has-site-shell .speech{width:220px;transform:translate(-50%,-100%)}
@media(max-width:1180px){.site-brand small{display:none}.site-header{padding:0 24px;gap:12px}.site-nav a{padding:12px 9px;font-size:13px}}
@media(min-width:781px) and (max-width:1000px){.site-brand{font-size:25px}.site-account{font-size:12px;padding:8px 10px}.site-nav a{padding:12px 7px;font-size:12px}.site-nav a>span{font-size:18px}.garden-page.has-site-shell .game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:14px}.garden-page.has-site-shell .mission-card{padding:17px}.garden-page .activity-picker>button{padding:10px;gap:7px}.garden-page .activity-picker strong{font-size:15px}}
@media(max-width:780px){
 .site-header{height:64px;padding:max(8px,env(safe-area-inset-top)) 16px 8px;gap:14px}.site-brand{font-size:25px}.site-brand>span{font-size:32px}.site-account{font-size:12px;padding:8px 12px}
 .site-header .site-nav{position:fixed;z-index:40;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;width:100%;height:calc(68px + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom);border-top:1px solid #dde3d2;background:#fffdf6f5;backdrop-filter:blur(14px)}.site-nav a{flex-direction:column;gap:5px;padding:8px 2px;font-size:11px;min-height:60px}.site-nav a>span{font-size:22px}.site-nav a[aria-current=page]{border-radius:12px}
 body.has-site-shell{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .garden-page.has-site-shell main{padding:18px 14px 0}.garden-page.has-site-shell .page-heading{flex-wrap:wrap;gap:12px}.garden-page.has-site-shell .page-heading h1{font-size:25px}.garden-page .page-heading .eyebrow{font-size:11px}.page-actions{gap:7px;width:100%;justify-content:flex-start}.page-actions .star-balance{margin-right:auto}.page-actions .secondary{font-size:13px;padding:9px 11px}.page-actions .icon-button{width:44px;height:44px}
 .game-status-row{margin:6px 0 12px}.game-status-row .save-state{font-size:11px}.game-status-row .text-button{font-size:12px}.connection-banner{font-size:13px;padding:12px;flex-wrap:wrap;align-items:flex-start}.connection-banner span{flex-basis:100%}
 .play-tools{flex-wrap:wrap;gap:8px;margin-bottom:12px}.garden-page .activity-picker{width:100%;flex-basis:100%;gap:6px}.garden-page .activity-picker>button{padding:9px 5px;gap:6px;min-height:54px}.garden-page .activity-picker>button:last-child{grid-column:auto}.garden-page .activity-picker strong{display:block;font-size:14px}.garden-page .activity-picker>button>span:first-child,.garden-page .activity-picker>button:last-child>span:first-child{font-size:21px}.panel-toggle{margin-left:auto;min-height:44px;font-size:12px;padding:8px 12px}
 .garden-page.has-site-shell .game-layout{grid-template-columns:minmax(0,1fr);gap:14px}.garden-page.has-site-shell .world-card{height:clamp(440px,calc(100svh - 170px),590px);border-radius:18px}.garden-page.has-site-shell .mission-card{padding:20px}.garden-page.has-site-shell .mission-card h2{font-size:20px}.garden-page.has-site-shell .speech{width:190px;max-width:190px}.garden-page.has-site-shell .world-hint{bottom:136px;font-size:12px;padding:0 12px}.garden-page .seed-options button{font-size:15px}
 .has-site-shell.garden-page dialog{max-height:calc(100dvh - 28px);width:calc(100% - 24px);padding:22px}.has-site-shell .toast{bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media(max-width:359px){.site-nav a{font-size:10px}.page-actions .secondary{font-size:12px;padding:9px 8px}.page-actions{gap:5px}.page-actions .star-balance{font-size:14px}.garden-page .activity-picker>button{gap:4px}.garden-page .activity-picker strong{font-size:13px}.garden-page .activity-picker>button>span:first-child{font-size:18px}}
@media(orientation:landscape) and (max-height:600px){.garden-page.has-site-shell .world-card{height:480px}.site-header{height:60px}}
/* Fullscreen rooms keep their edge-to-edge canvas rather than dialog card chrome. */
.has-site-shell .space-dialog{border:0;border-radius:0}
.has-site-shell .space-dialog .avatar-stage{border-radius:0}
.has-site-shell h1[tabindex="-1"]:focus{outline:none}

/* Expanded play reuses the garden surface and keeps the primary action in reach. */
.play-view-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}.garden-expand{font-size:13px;white-space:nowrap;min-height:44px;padding:10px 14px}.garden-expand span{font-size:18px;margin-right:5px}
body.garden-expanded{overflow:hidden;overscroll-behavior:none}
.garden-page.has-site-shell #garden-display-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:var(--site-paper);overflow:hidden}
#garden-display-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.garden-display-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));padding-top:max(10px,env(safe-area-inset-top));border-bottom:1px solid var(--site-line)}
.garden-display-header h2{font-size:20px;white-space:nowrap;margin:0}.garden-display-header>div{display:flex;gap:8px}.garden-display-header .secondary{min-height:44px;font-size:14px;padding:10px 14px}
#garden-display-stage{min-height:0;position:relative}.garden-page.has-site-shell #garden-display-stage .world-card{width:100%;height:100%;border:0;border-radius:0}
#garden-display-dialog .action-dock{bottom:max(18px,env(safe-area-inset-bottom));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}
#garden-display-dialog .toast{bottom:calc(145px + env(safe-area-inset-bottom))}
@media(max-width:1060px) and (min-width:781px){.play-tools{flex-wrap:wrap}.play-view-tools{margin-left:auto}}
@media(max-width:780px){.play-view-tools{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.garden-expand{font-size:12px;padding:8px 12px}.garden-display-header{gap:8px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.garden-display-header h2{font-size:16px}.garden-display-header .secondary{font-size:13px;padding:8px 10px}.garden-display-header>div{gap:6px}#garden-display-dialog .world-hint{bottom:calc(142px + env(safe-area-inset-bottom))}#garden-display-dialog .action-dock{bottom:max(12px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}}
@media(orientation:landscape) and (max-height:600px){.garden-display-header{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}.garden-display-header h2{font-size:16px}#garden-display-dialog .world-label{top:12px;left:max(14px,env(safe-area-inset-left))}#garden-display-dialog .world-label div>span{display:none}#garden-display-dialog .world-reset{top:10px;right:max(14px,env(safe-area-inset-right))}#garden-display-dialog .action-dock{flex-wrap:nowrap;gap:10px;padding:9px 12px;bottom:max(8px,env(safe-area-inset-bottom))}#garden-display-dialog .basket-icon{display:none}#garden-display-dialog .basket-copy strong{font-size:14px}#garden-display-dialog .basket-copy>span{display:none}#garden-display-dialog .action-dock .primary{width:auto;min-width:170px;min-height:48px;font-size:15px}#garden-display-dialog .world-hint{bottom:83px;font-size:12px}#garden-display-dialog .speech{padding:8px 12px;width:190px;max-width:190px}#garden-display-dialog .speech p{font-size:13px}#garden-display-dialog .speech>span{font-size:10px;margin-bottom:3px}#garden-display-dialog .toast{bottom:90px}}

/* Shared beta support remains outside the five primary destinations. */
.site-header-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}.site-help-open{min-height:44px;min-width:60px;padding:8px 12px;border:1px solid var(--site-line);border-radius:12px;background:var(--site-card);font:inherit;font-size:13px;font-weight:700;white-space:nowrap}.site-brand>.site-beta{font-size:10px;letter-spacing:.4px;color:#58754a;background:#e7eedf;padding:4px 6px;border-radius:5px;margin-left:2px}
.site-offline{padding:12px 20px;text-align:center;background:#fbebca;color:#725b37;font-size:14px;line-height:1.6}.site-offline[hidden]{display:none}
.has-site-shell #site-help-dialog{width:min(660px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:26px;color:var(--site-ink);overflow:auto;font:inherit}.site-help-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.site-help-heading p{margin:0 0 7px;color:var(--site-muted);font-size:12px}.site-help-heading h2{font-size:24px;margin:0}.site-help-heading button{width:44px;height:44px;border:1px solid var(--site-line);border-radius:12px;background:var(--site-paper);flex-shrink:0;font:inherit}.site-help-intro{font-size:15px;line-height:1.8}.site-display-settings{padding:16px;background:#edf2e5;border-radius:14px;margin:20px 0}.site-display-settings h3{font-size:17px;margin:0 0 8px}.site-display-settings label{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}.site-display-settings strong{font-size:16px}.site-display-settings small{display:block;font-size:13px;line-height:1.6;margin-top:5px}.site-display-settings input{width:24px;height:24px;flex-shrink:0;accent-color:var(--site-green)}#site-help-dialog p{line-height:1.8}#site-motion-note,#site-preference-status{font-size:13px;margin:8px 0 0}#site-preference-status:empty{display:none}#site-help-dialog details{border-top:1px solid var(--site-line)}#site-help-dialog summary{cursor:pointer;font-weight:700;min-height:56px;padding:17px 0;font-size:16px}#site-help-dialog details p{font-size:14px;margin:0 0 15px}.site-report-label{display:block;margin:0 0 10px;font-size:15px}#site-help-dialog textarea{width:100%;border:1px solid #cbd6c1;border-radius:10px;padding:12px;resize:vertical;font:inherit;line-height:1.7;margin:0 0 12px;background:white;color:var(--site-ink)}.site-help-action{min-height:48px;padding:10px 16px;border:0;border-radius:10px;color:white;background:var(--site-green);font:inherit;font-weight:700}#site-help-dialog #site-report-status{margin-top:12px}.site-help-version{font-size:12px;color:var(--site-muted);margin:24px 0 0}
@media(max-width:1180px){.site-header{gap:10px}.site-header .site-nav a{padding-left:7px;padding-right:7px}}
@media(max-width:780px){.site-header-tools{gap:6px}.site-help-open{padding:8px;font-size:12px;min-width:54px}.site-header-tools .site-account{padding:8px 10px;font-size:12px}.has-site-shell #site-help-dialog{padding:20px}.site-help-heading h2{font-size:21px}.site-brand>.site-beta{font-size:9px;padding:3px 4px}.site-help-heading p{font-size:11px}}
@media(max-width:359px){.site-brand>.site-beta{display:none}.site-header{gap:6px}.site-header-tools{gap:5px}}

html[data-reduced-motion="true"] *,html[data-reduced-motion="true"] *::before,html[data-reduced-motion="true"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Four large activity choices remain easy to read on phones. */
@media(max-width:780px){.garden-page .activity-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:8px}.garden-page .activity-picker>button{min-height:58px;padding:11px 12px;justify-content:flex-start;gap:9px}.garden-page .activity-picker strong{font-size:15px}.garden-page .activity-picker>button>span:first-child,.garden-page .activity-picker>button:last-child>span:first-child{font-size:23px}}
