/* Shared navigation, sound controls, and touch layouts. */
.fg-sound-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:114px;width:auto!important;height:auto!important;padding:9px 12px!important;border:1px solid #82998044!important;border-radius:10px!important;background:#eef2e620!important;color:inherit;font:500 13px 'DM Sans',system-ui,sans-serif;white-space:nowrap;cursor:pointer;flex-shrink:0}.fg-sound-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.fg-game-home{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 10px;border-radius:9px;font:500 13px 'DM Sans',system-ui,sans-serif;white-space:nowrap;color:inherit;flex-shrink:0}.fg-game-home svg,.fg-completion-home svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.fg-completion-nav{margin:16px 0 20px;display:flex;justify-content:center}.fg-completion-home{display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;border-radius:9px;padding:12px 20px;font:500 15px 'DM Sans',system-ui,sans-serif;text-decoration:none;background:#416950;color:#fffaf0;border:1px solid #c2d1b922}.fg-completion-home:hover{filter:brightness(1.05)}[data-game="little-lighthouse"] .fg-completion-home{background:#3e6360}[data-game="starweaver"] .fg-completion-home{background:#e7c791;color:#34414f}[data-game="sunbloom"] .fg-completion-home{background:#f1c17f;color:#293448}[data-game] button:focus-visible,[data-game] a:focus-visible,[data-screen="portal"] button:focus-visible{outline:3px solid #b89453;outline-offset:4px}[data-game] .icon-button,[data-game] .help-button{min-width:44px;min-height:44px}[data-game] dialog{max-height:90dvh;scroll-padding:18px}[data-game] dialog .modal-actions>*,[data-game] dialog .modal-actions button{min-height:44px}[data-game] input,[data-game] textarea{font-size:16px!important}.fg-portal-music{margin:25px auto 0;max-width:800px;border:1px solid #d6dfcd;background:#f8faf2;border-radius:13px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left}.fg-music-copy{min-width:0}.fg-music-copy strong{display:block;font-size:14px;font-weight:500;color:#536e52}.fg-music-copy p{font-size:12px;line-height:1.7;color:#89977c;margin:5px 0 0}.fg-music-controls{display:flex;align-items:center;gap:9px;flex-shrink:0}.fg-play-music,.fg-shuffle{font:500 13px 'DM Sans',system-ui,sans-serif;background:#e8eddf;border:1px solid #d3ddc7;border-radius:9px;min-height:44px;padding:9px 13px;color:#4c684c;cursor:pointer}.fg-shuffle{width:44px;min-width:44px;font-size:22px;padding:7px}.fg-shuffle:disabled{opacity:.5}.fg-sound-description{font-size:12px;color:#92a086;text-align:center;margin:9px 0 0}.fg-play-music[hidden]{display:none}.fg-portal-music .fg-sound-toggle{color:#496448;background:#eef2e5!important}.fg-portal-music .fg-sound-toggle[aria-pressed="false"]{background:#e6e9df!important;color:#809176}.fg-sun-topbar{position:fixed;left:16px;right:16px;top:max(12px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:40;pointer-events:none}.fg-sun-topbar>*{pointer-events:auto;backdrop-filter:blur(16px);background:#1d2549cf!important;color:#f4e7cf;border:1px solid #d5be932e!important}.fg-sun-topbar .fg-sound-toggle{font-size:13px}[data-game="sunbloom"] #btn-mute{display:none}[data-game="sunbloom"] #hud{top:64px}[data-game="sunbloom"] #screen-welcome,[data-game="sunbloom"] #modal-keepsake,[data-game="sunbloom"] #modal-pause{padding-top:80px;padding-bottom:20px}[data-game="sunbloom"] .keepsake-scroll{max-height:calc(100dvh - 105px);overscroll-behavior:contain;touch-action:pan-y}[data-game="sunbloom"] #game-canvas{touch-action:none}[data-game="sunbloom"]{touch-action:manipulation}[data-game="sunbloom"] #affirmation-banner{top:155px}[data-game="sunbloom"] #modal-pause button,[data-game="sunbloom"] #modal-keepsake button,[data-game="sunbloom"] #screen-welcome button{min-height:44px}[data-game="sunbloom"] #hud>div{flex-wrap:wrap;gap:8px}
@media(max-width:650px){
 [data-screen="portal"] header{padding:17px 5%;gap:10px}[data-screen="portal"] .brand small{display:block;margin:5px 0 0;padding:0;border:0;font-size:10px;letter-spacing:1px}[data-screen="portal"] header>a:last-child{font-size:12px}[data-screen="portal"] main{padding:25px 4% 18px}[data-screen="portal"] h1{font-size:36px;letter-spacing:-1.2px;margin:15px 0 14px}[data-screen="portal"] .eyebrow{font-size:9px;letter-spacing:.8px;gap:5px}[data-screen="portal"] .intro>p{font-size:14px;line-height:1.7}[data-screen="portal"] .games{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:23px}[data-screen="portal"] .game{border-radius:12px;min-width:0}[data-screen="portal"] .game-art{aspect-ratio:1.5}[data-screen="portal"] .game-info{padding:12px;min-width:0}[data-screen="portal"] .tag{font-size:9px;letter-spacing:.6px;line-height:1.5;min-height:27px}[data-screen="portal"] .game h2{font-size:21px;line-height:1.2;min-height:51px;margin:7px 0 9px}[data-screen="portal"] .game p{font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 14px}[data-screen="portal"] .play{min-height:44px;padding:10px 9px;font-size:12px;gap:5px;line-height:1.4}[data-screen="portal"] .play svg{width:15px;min-width:15px}[data-screen="portal"] .closing{font-size:13px;line-height:1.8;margin-top:24px}[data-screen="portal"] footer{font-size:11px;line-height:1.7;flex-wrap:wrap;justify-content:center;text-align:center}.fg-portal-music{padding:13px;margin-top:19px;flex-wrap:wrap;gap:11px}.fg-music-copy{width:100%}.fg-music-copy strong{font-size:13px}.fg-music-copy p{font-size:12px}.fg-music-controls{width:100%;justify-content:space-between;gap:8px}.fg-play-music{flex:1}.fg-sound-description{font-size:11px;margin:8px 8px 0}.fg-completion-home{width:100%;font-size:14px;min-height:48px}.fg-completion-nav{margin:14px 0 18px}.fg-game-home{min-width:44px}.fg-sound-toggle{min-height:44px;font-size:13px}
 [data-game="little-wins"] .header{height:auto;min-height:116px;padding:12px 4%;flex-wrap:wrap;gap:6px 8px}[data-game="little-wins"] .brand{order:1;font-size:22px;gap:8px}[data-game="little-wins"] .brand-icon{height:32px;width:32px}[data-game="little-wins"] .navigation{order:2;margin-left:auto;gap:0;width:auto;height:40px}[data-game="little-wins"] .header-actions{order:3;width:100%;display:flex;justify-content:space-between;gap:8px}[data-game="little-wins"] #collection-nav{font-size:12px;gap:5px;min-height:40px}[data-game="little-wins"] #collection-nav svg{width:19px;height:19px}[data-game="little-wins"] .count{font-size:11px}[data-game="little-wins"] .intro-copy{font-size:15px}[data-game="little-wins"] h1{font-size:42px}[data-game="little-wins"] .game-layout{padding-top:23px}[data-game="little-wins"] .help-button>span:last-child{display:inline;font-size:12px}[data-game="little-wins"] .tools-panel{padding:14px 10px}[data-game="little-wins"] .seed-button{font-size:13px;min-height:48px}[data-game="little-wins"] .growth-meter>span{font-size:11px}[data-game="little-wins"] .garden-bottom{font-size:12px;line-height:1.6;text-align:center}[data-game="little-wins"] dialog{padding:38px 22px 24px}
 [data-game="little-lighthouse"] header{height:auto;min-height:124px;padding:14px 5%;flex-wrap:wrap;gap:10px}[data-game="little-lighthouse"] .brand{width:100%;font-size:15px}[data-game="little-lighthouse"] .brand strong{font-size:23px}[data-game="little-lighthouse"] .header-controls{width:100%;justify-content:space-between;gap:5px}[data-game="little-lighthouse"] .header-divider{display:none}[data-game="little-lighthouse"] .journal-button{min-width:44px;min-height:44px;padding:8px;font-size:0;justify-content:center}[data-game="little-lighthouse"] .journal-count{font-size:11px}[data-game="little-lighthouse"] .fg-game-home>span{display:none}[data-game="little-lighthouse"] .stage{height:590px}[data-game="little-lighthouse"] h1{font-size:38px}[data-game="little-lighthouse"] .opening-copy{top:23px}[data-game="little-lighthouse"] #opening-story{font-size:14px}[data-game="little-lighthouse"] .world-wrap{top:218px;bottom:0}[data-game="little-lighthouse"] .quest-card{min-height:127px}[data-game="little-lighthouse"] .quest-subtitle{font-size:12px}[data-game="little-lighthouse"] .palette-group{flex-wrap:wrap}[data-game="little-lighthouse"] .color-option{width:39px;height:39px}[data-game="little-lighthouse"] .shape-option{width:44px;height:44px}[data-game="little-lighthouse"] .modal-copy{font-size:15px;line-height:1.8}
 [data-game="starweaver"] header{height:auto;min-height:127px;padding:13px 5%;flex-wrap:wrap;gap:12px}[data-game="starweaver"] .brand{width:100%;font-size:24px}[data-game="starweaver"] header nav{width:100%;justify-content:space-between;gap:4px}[data-game="starweaver"] .brand small{font-size:10px}[data-game="starweaver"] .all-games{min-width:44px;min-height:44px;justify-content:center;padding:8px;margin:0}[data-game="starweaver"] .journey-hud{top:145px}[data-game="starweaver"] .welcome{margin-top:25px;padding-bottom:12px}[data-game="starweaver"] h1{font-size:43px;line-height:1.12;margin:17px 0}[data-game="starweaver"] .welcome-copy{font-size:14px;line-height:1.8;margin-bottom:24px}[data-game="starweaver"] .theme-name{font-size:12px}[data-game="starweaver"] .theme-subtitle{font-size:11px}[data-game="starweaver"] .theme-button{padding:12px 6px;min-height:120px}[data-game="starweaver"] .welcome-controls{font-size:11px;line-height:1.7;gap:6px}[data-game="starweaver"] .kind-word{top:315px}[data-game="starweaver"] .chapter-card p{font-size:12px}[data-game="starweaver"] .chapter-card h2{font-size:22px}[data-game="starweaver"] .bottom-signature{font-size:10px;line-height:1.8}[data-game="starweaver"] .play-controls{padding-bottom:env(safe-area-inset-bottom)}[data-game="starweaver"] dialog{padding:38px 22px 24px}
 [data-game="sunbloom"] .fg-sun-topbar{left:12px;right:12px;top:max(10px,env(safe-area-inset-top))}[data-game="sunbloom"] #hud{top:64px;padding:10px}[data-game="sunbloom"] #hud>div{justify-content:space-between}[data-game="sunbloom"] #hud button{min-width:44px;min-height:44px}[data-game="sunbloom"] #screen-welcome,[data-game="sunbloom"] #modal-keepsake,[data-game="sunbloom"] #modal-pause{padding:74px 12px 15px;align-items:flex-start}[data-game="sunbloom"] .keepsake-scroll{max-height:calc(100dvh - 92px);padding:20px!important;border-radius:20px}[data-game="sunbloom"] #screen-welcome h1{font-size:32px}[data-game="sunbloom"] #screen-welcome p{font-size:14px;line-height:1.8}[data-game="sunbloom"] #screen-welcome input{min-height:46px}[data-game="sunbloom"] #mood-selector{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}[data-game="sunbloom"] .mood-btn{padding:11px!important;font-size:12px!important;min-height:76px}[data-game="sunbloom"] .mood-btn>div:last-child{font-size:11px!important}[data-game="sunbloom"] #affirmation-banner{top:195px}[data-game="sunbloom"] #bottom-controls{width:94%;bottom:max(15px,env(safe-area-inset-bottom))}[data-game="sunbloom"] #bottom-controls p{text-align:center;max-width:100%;font-size:11px;line-height:1.6}[data-game="sunbloom"] #btn-pulse{min-height:46px}[data-game="sunbloom"] #modal-keepsake button{font-size:14px}[data-game="sunbloom"] #keepsake-heading{font-size:25px}[data-game="sunbloom"] #modal-pause>div{max-height:calc(100dvh - 94px);overflow:auto}[data-game="sunbloom"] #modal-keepsake .fg-completion-nav{position:sticky;top:0;padding-bottom:10px;background:#20213ff5;z-index:2;border-radius:8px}
}
@media(max-width:360px){[data-game="starweaver"] .fg-sound-toggle{min-width:44px;width:44px!important;padding:10px!important}[data-game="starweaver"] .fg-sound-label{display:none}[data-game="little-wins"] #collection-nav{font-size:0}[data-game="little-wins"] .help-button>span:last-child{display:none}[data-screen="portal"] .game-info{padding:10px}[data-screen="portal"] .game h2{font-size:19px}[data-screen="portal"] .play{font-size:11px}[data-game="sunbloom"] #mood-selector{grid-template-columns:1fr}.fg-play-music{padding:9px;font-size:12px}.fg-music-controls{gap:5px}.fg-portal-music .fg-sound-toggle{min-width:104px;font-size:12px}}
@media(max-height:680px) and (max-width:650px){[data-game="starweaver"] .kind-word{top:300px;font-size:14px}[data-game="starweaver"] .chapter-card{padding:12px 15px}[data-game="starweaver"] .control-hint{font-size:11px}[data-game="starweaver"] .pulse-button{min-height:46px}[data-game="little-lighthouse"] .stage{height:555px}}
[data-game="little-lighthouse"]{min-width:0}
