:root{color-scheme:light;--ink:#29483e;--muted:#667b68;--paper:#f9faf0;--green:#527863;--rose:#bd5368;--line:rgba(61,93,67,.14);font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;background:#edf4e9;color:var(--ink)}
/* This stylesheet belongs to Love Birds: swipes and long presses should play,
   not select labels or drag the home link. Keep keyboard focus and zoom intact. */
html{-webkit-touch-callout:none}*{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{overscroll-behavior:none}button{font:inherit;color:inherit;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.36;cursor:default}button:focus-visible,canvas:focus-visible{outline:3px solid #a74863;outline-offset:-3px}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}
.app{height:100vh;height:100svh;height:100dvh;max-width:1100px;margin:auto;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;padding:env(safe-area-inset-top) max(0px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px,env(safe-area-inset-left));overflow:hidden}
.topbar{height:78px;padding:12px 26px 6px;display:flex;align-items:center;justify-content:space-between;gap:8px}.wordmark{display:flex;align-items:center;gap:10px;min-width:0}.brand-heart{font-size:31px;line-height:1;color:#d9818a;transform:rotate(-12deg);text-shadow:2px 2px 0 #fff8e7}h1{font-family:Georgia,"Times New Roman",serif;font-weight:normal;font-size:30px;letter-spacing:-1.4px;line-height:1;margin:0;white-space:nowrap}.title-dot{color:var(--rose)}.byline{font-size:8px;letter-spacing:2px;display:block;margin-top:6px;color:var(--muted);font-weight:700}.top-actions{display:flex;gap:1px}.icon-button{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;background:transparent;border-radius:50%;font-size:30px;line-height:1}.icon-button:hover{background:#dfe8dc}.sound-on{display:none}#sound[aria-pressed="true"] .sound-on{display:initial}#sound[aria-pressed="true"] .sound-off{display:none}
.level-info{display:flex;align-items:center;justify-content:space-between;padding:8px 32px 2px;width:min(100%,660px);margin:auto}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2px;color:var(--muted)}.level-title{font-family:Georgia,serif;font-size:27px;letter-spacing:-.7px;margin-top:5px;display:flex;gap:7px;align-items:baseline}.weather-label{font:11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;color:var(--muted);margin-left:9px}.heart-progress{display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center}.heart-symbol{color:#d3657a;font-size:28px;grid-row:span 2}.heart-progress strong{font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2}.count-divider{color:#7c8c7a;font-size:15px;font-weight:400}.progress-caption{font-size:10px;color:var(--muted);letter-spacing:1px}
.garden{min-height:0;position:relative;isolation:isolate;overflow:hidden;touch-action:none}.garden canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-6px}.scene-tag{position:absolute;bottom:7px;left:0;right:0;display:flex;gap:6px;align-items:center;justify-content:center;pointer-events:none;font-size:10px;letter-spacing:.4px;color:#5c7665}.bird-dot{width:10px;height:10px;border:1px solid #6c846e;display:inline-block;border-radius:50%;background:#fffdf4}.bird-dot.black{background:#354755;border-color:#354755}.loading{position:absolute;inset:0;background:#edf4e9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;z-index:2}.loading strong{font-family:Georgia,serif;font-size:24px;font-weight:400}.loading>span:last-child{font-size:12px;color:var(--muted)}.loading-heart{color:#cd6a7c;font-size:45px;animation:breathe 1.2s ease-in-out infinite}.level-banner{position:absolute;top:10%;left:5%;right:5%;pointer-events:none;text-align:center;animation:banner-in .45s both}.level-banner>span{font-size:10px;font-weight:700;letter-spacing:2px;color:#795464}.level-banner strong{display:block;font-family:Georgia,serif;font-size:clamp(24px,5vw,39px);font-weight:400;color:#654552;margin-top:7px;text-shadow:0 2px 12px #fff}
.play-panel{padding:0 26px 15px;width:min(100%,620px);margin:auto}.guidance{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:10px}.guidance p{font-size:12px;line-height:1.4;margin:0;max-width:78%;color:#526d5b}.guidance p[data-tone="stuck"]{color:#a4475b}.guidance p[data-tone="hint"]{color:#8b5738}.guidance #move-count{font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}.play-actions{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:8px}.action-button{height:54px;border-radius:17px;display:flex;align-items:center;justify-content:center;gap:8px;background:#f9faf0;border:1px solid var(--line);box-shadow:0 2px 0 rgba(60,85,64,.04);font-size:12px;font-weight:600;transition:transform .12s,background .12s}.action-button:hover:not(:disabled){background:#fffdf7}.action-button svg{width:19px;height:19px}.hint-button{background:#dce7d5;border-color:#d0deca}.hint-button:hover:not(:disabled){background:#d0dfc7}.footer-note{display:flex;justify-content:space-between;gap:10px;font-size:7px;letter-spacing:1.5px;color:#73846e;margin-top:13px;font-weight:600}.keyboard-note{display:none}
dialog{border:1px solid #d7dfce;border-radius:28px;background:#fafbef;color:var(--ink);padding:15px 24px 24px;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));box-shadow:0 24px 90px #26453430;overflow:hidden}dialog[open]{display:flex;flex-direction:column;gap:13px}dialog::backdrop{background:#294c3f72}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0}.dialog-head .icon-button{margin-right:-10px}.dialog-scroll{overflow:auto;overscroll-behavior:contain;min-height:0}.dialog-art{font-family:Georgia,serif;color:#ce7883;font-size:43px;letter-spacing:15px;text-align:center;line-height:1.2;margin-bottom:12px}.dialog-art span{font-size:27px;color:#96aa80}h2{font-family:Georgia,serif;letter-spacing:-1px;font-size:32px;line-height:1.1;font-weight:400;margin:0 0 14px}dialog p{font-size:13px;line-height:1.6;color:#647660;margin:0 0 16px}.rules{padding:0;list-style:none;counter-reset:rule;margin:0 0 20px}.rules li{position:relative;padding-left:33px;margin-bottom:17px;counter-increment:rule;font-size:12px;line-height:1.6;color:#637461}.rules li::before{content:counter(rule);position:absolute;left:0;top:0;border:1px solid #c6d3bd;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:11px;color:#52755a}.rules strong{display:block;font-size:13px;color:var(--ink);font-weight:600;margin-bottom:3px}dialog .fine-print{font-size:11px;color:#71816b}.primary-button{background:#3e6553;color:#fffaf0;border-radius:17px;min-height:54px;flex-shrink:0;padding:12px 18px;display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600}.primary-button:hover{background:#2f5544}.pause-copy{text-align:center;padding:8px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@keyframes breathe{50%{transform:scale(1.12) rotate(5deg)}}@keyframes banner-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:700px) and (min-height:600px){.topbar{padding-left:40px;padding-right:40px;height:90px}.level-info{padding-top:12px}.play-panel{padding-bottom:24px}.keyboard-note{display:block}.scene-tag{bottom:12px}.guidance{min-height:50px}.guidance p{font-size:13px}.action-button{height:58px}.footer-note{font-size:8px}}
@media(max-width:370px){.topbar{padding:7px 12px 3px;height:67px}.wordmark{gap:6px}.brand-heart{font-size:24px}h1{font-size:25px}.byline{font-size:6px;letter-spacing:1.4px}.top-actions{gap:0}.level-info{padding:8px 20px 0}.level-title{font-size:24px}.weather-label{font-size:10px;margin-left:3px}.eyebrow{font-size:8px;letter-spacing:1.5px}.play-panel{padding:0 14px 10px}.play-actions{gap:6px}.action-button{height:50px;gap:5px;font-size:11px;border-radius:15px}.guidance p{font-size:11px}.footer-note{font-size:6px;letter-spacing:1.1px;margin-top:10px}.scene-tag{font-size:9px;bottom:3px}}
@media(max-height:620px) and (orientation:portrait){.topbar{height:64px}.level-info{padding-top:4px}.level-title{font-size:24px}.eyebrow{font-size:8px}.guidance{min-height:36px}.play-panel{padding-bottom:9px}.footer-note{margin-top:8px}.action-button{height:50px}.scene-tag{bottom:1px}}
@media(orientation:landscape) and (max-height:600px){.app{grid-template-columns:minmax(0,1fr) minmax(200px,29%);grid-template-rows:58px 1fr auto;max-width:1100px}.topbar{grid-column:1/-1;height:58px;padding:4px 19px}.brand-heart{font-size:26px}h1{font-size:27px}.byline{font-size:6px;margin-top:3px}.level-info{grid-column:2;grid-row:2;align-self:start;align-items:flex-start;flex-direction:column;gap:14px;padding:12px 18px 0 4px}.level-title{font-size:27px;flex-wrap:wrap;gap:5px}.weather-label{flex-basis:100%;margin-left:0;margin-top:3px}.heart-progress{grid-template-columns:auto auto auto;gap:7px}.heart-symbol{grid-row:1;font-size:24px}.heart-progress strong{font-size:20px}.garden{grid-column:1;grid-row:2/4;margin-bottom:9px}.scene-tag{bottom:0}.play-panel{grid-column:2;grid-row:3;padding:0 17px 15px 3px}.guidance{min-height:42px;margin-bottom:8px;gap:4px;align-items:start}.guidance p{font-size:11px;max-width:78%}.guidance #move-count{font-size:8px;margin-top:3px}.play-actions{grid-template-columns:1fr 1fr;gap:6px}.action-button{height:48px;font-size:11px;gap:6px;border-radius:13px}.hint-button{grid-column:1/-1}.footer-note{display:none}.level-banner{top:3%}.level-banner strong{font-size:26px}.level-banner>span{font-size:8px}.dialog-art{display:none}dialog{padding:8px 22px 18px;gap:8px}h2{font-size:28px}.pause-copy{padding:0}.pause-copy p{margin-bottom:2px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.sr-only{position:fixed;top:0;left:0;margin:0}
@media(orientation:landscape) and (max-height:360px){
  .app{grid-template-rows:54px minmax(0,1fr) auto}
  .topbar{height:54px;padding-top:3px;padding-bottom:3px}
  .level-info{flex-direction:row;gap:6px;padding-top:8px}
  .level-info .eyebrow,.progress-caption{display:none}
  .level-title{font-size:23px;margin-top:0}
  .weather-label{font-size:10px;margin-top:2px}
  .heart-progress{display:flex;gap:4px;margin-top:2px}
  .heart-symbol{font-size:21px}.heart-progress strong{font-size:17px;white-space:nowrap}
  .play-panel{padding-bottom:10px}.guidance{min-height:39px;margin-bottom:6px}
}
/* The garden number doubles as a consistently reachable level menu. */
.level-menu-button{display:inline-flex;align-items:center;gap:6px;min-height:48px;background:transparent;padding:0;border-radius:10px;white-space:nowrap;font:inherit;letter-spacing:inherit}
.level-menu-button svg{width:15px;height:15px;flex-shrink:0;stroke-width:2}.level-menu-button:hover:not(:disabled){color:var(--rose)}
.level-title{align-items:center;margin-top:0;gap:5px}.weather-label{margin-left:3px}.garden-label{min-width:0}
#levels-dialog .dialog-head h2{font-size:29px;margin:0}#levels-dialog{gap:10px}
#levels-summary{font-size:11px;line-height:1.4;margin-bottom:13px}
#level-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:2px}
.level-choice{min-height:55px;border:1px solid #d4decb;border-radius:14px;background:#eef2e3;display:flex;align-items:center;justify-content:center;gap:6px;position:relative}
.level-choice strong{font-family:Georgia,serif;font-size:23px;font-weight:400}.level-choice span{font-size:12px;color:#b96578}
.level-choice[data-state="next"]{background:#d9e5ce;border-color:#769575}.level-choice[data-state="next"] span{color:#47694f}
.level-choice[aria-current="true"]{box-shadow:inset 0 0 0 2px #68876a}.level-choice:disabled{opacity:.5;background:transparent}
.level-choice:hover:not(:disabled){background:#f9f4de}.levels-footer{display:flex;flex-direction:column;flex-shrink:0;gap:6px}.levels-nav{display:flex;justify-content:center;align-items:center;gap:12px}.levels-nav .icon-button{font-size:23px}.levels-nav>span{min-width:38px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;color:#637560}
#continue-level{justify-content:center;font-size:13px;min-height:50px}
@media(max-width:370px){.level-menu-button{gap:4px}.level-menu-button svg{width:13px}.level-title{gap:3px}.weather-label{font-size:9px;margin-left:0}}
@media(orientation:landscape) and (max-height:600px){.level-title{gap:0}.weather-label{margin-top:-2px}.level-info{gap:9px}#levels-dialog{width:min(560px,calc(100% - 28px));padding:8px 18px 12px;gap:6px}#level-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.level-choice{min-height:50px;border-radius:12px}#levels-summary{margin-bottom:7px;font-size:10px}.levels-footer{flex-direction:row;gap:12px}.levels-nav{gap:4px;flex:0 0 140px}#continue-level{flex:1;font-size:12px;padding:9px 12px;min-height:48px}#levels-dialog .dialog-head h2{font-size:26px}}
@media(orientation:landscape) and (max-height:360px){.level-info{padding-top:0}.level-menu-button{font-size:21px;gap:2px}.level-menu-button svg{width:11px}.heart-progress{padding-top:11px;gap:3px}.heart-symbol{font-size:18px}.heart-progress strong{font-size:16px}.weather-label{font-size:9px}}
/* Season and weather colours carry through the app shell with the canvas. */
body{background:#edf4e9;transition:background-color 1.6s,color 1.6s}.topbar,.level-info,.play-panel{transition:color 1.6s}
body[data-weather="sunny"]{background:var(--scene-paper,#f6efd6)}body[data-weather="cloudy"]{background:var(--scene-paper,#ced9dc)}body[data-weather="rainy"]{background:var(--scene-paper,#aebfc6)}body[data-weather="snowy"]{background:var(--scene-paper,#e3ecf3)}
body[data-season="autumn"]{--line:#d5c4a7}body[data-season="winter"]{--line:#c8d7df}body[data-season="spring"]{--line:#c7d9bd}
.loading{background:var(--scene-paper,#f6efd6)}
.byline,.eyebrow,.weather-label,.progress-caption,.guidance p,.guidance #move-count,.scene-tag,.footer-note,.count-divider,.heart-symbol,.hint-count{transition:color 1.6s,background-color 1.6s}
.action-button{color:var(--ink);transition:transform .12s,background-color 1.6s,border-color 1.6s,color 1.6s}
body[data-weather="stormy"]{--ink:#f7f0e4;--muted:#c4d0d3;--rose:#f3a4b7;--line:#60717a;background:#283440;color:var(--ink)}
body[data-weather="stormy"] .byline,body[data-weather="stormy"] .eyebrow,body[data-weather="stormy"] .weather-label,body[data-weather="stormy"] .progress-caption,body[data-weather="stormy"] .guidance #move-count{color:var(--muted)}
body[data-weather="stormy"] .guidance p,body[data-weather="stormy"] .scene-tag{color:#e0e5df}body[data-weather="stormy"] .guidance p[data-tone="stuck"]{color:#ffb6c1}body[data-weather="stormy"] .guidance p[data-tone="hint"]{color:#ffda99}
body[data-weather="stormy"] .footer-note{color:#b8c9cc}body[data-weather="stormy"] .count-divider{color:#c4d0d3}body[data-weather="stormy"] .heart-symbol{color:#f093aa}body[data-weather="stormy"] .brand-heart{text-shadow:none}
body[data-weather="stormy"] .action-button{background:#394b59;border-color:#526a77}body[data-weather="stormy"] .hint-button{background:#536273}body[data-weather="stormy"] .action-button:hover:not(:disabled),body[data-weather="stormy"] .icon-button:hover{background:#546977}
body[data-weather="stormy"] .loading{background:#283440}body[data-weather="stormy"] .level-banner>span{color:#ffd4db}body[data-weather="stormy"] .level-banner strong{color:#fff3e5;text-shadow:0 2px 10px #172530}
body[data-weather="stormy"] dialog{--ink:#29483e;--muted:#667b68;--rose:#bd5368;color:var(--ink)}body[data-weather="stormy"] dialog .eyebrow{color:#667b68}body[data-weather="stormy"] dialog .icon-button:hover{background:#dfe8dc}
.level-title{flex-wrap:wrap}.weather-label{white-space:nowrap}body .weather-label,body[data-weather="stormy"] .weather-label{color:var(--ink)}
.hint-count{min-width:22px;height:22px;padding:0 5px;border-radius:50%;display:inline-grid;place-items:center;font-size:10px;font-variant-numeric:tabular-nums;background:#c4d7b9;color:#365840}
body[data-weather="stormy"] .hint-count{background:#718094;color:#fff7e8}
/* App navigation and compact, independent audio settings. */
::view-transition-old(root){animation:page-out .16s ease both}
::view-transition-new(root){animation:page-in .22s ease both}
@keyframes page-out{to{opacity:0;transform:translateY(-4px)}}
@keyframes page-in{from{opacity:0;transform:translateY(6px)}}
a.icon-button{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid #a74863;outline-offset:-3px}
a.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-button{margin-left:-12px}.wordmark{gap:3px}
#sound[data-active="true"] .sound-on{display:initial}#sound[data-active="true"] .sound-off{display:none}
#sound[aria-expanded="true"]{background:#dfe8dc}
.sound-popover{position:fixed;z-index:10;top:max(70px,calc(env(safe-area-inset-top) + 62px));right:max(14px,calc((100vw - 1050px)/2),env(safe-area-inset-right));width:min(330px,calc(100vw - 28px));padding:10px 16px 16px;border:1px solid #d7dfce;border-radius:24px;background:#fafbef;color:#29483e;box-shadow:0 14px 50px #172d3433;animation:banner-in .18s both}
.sound-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.sound-heading h2{font-size:23px;letter-spacing:-.6px;margin:0}.sound-heading .icon-button{margin-right:-8px;color:#29483e}
.sound-setting{display:flex;align-items:center;gap:10px;width:100%;min-height:68px;padding:10px 0;background:transparent;text-align:left;color:#29483e;border-radius:8px}
.sound-setting+.sound-setting{border-top:1px solid #29483e18;border-radius:0 0 8px 8px}
.sound-setting-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.sound-setting-copy strong{font-size:14px;font-weight:600}.sound-setting-copy>span{font-size:11px;color:#647660}
.sound-state{font-size:11px;color:#647660}.switch-track{width:40px;height:24px;flex-shrink:0;border-radius:20px;background:#d7ddce;position:relative;transition:background .18s}.switch-track::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fffdf3;box-shadow:0 1px 3px #29483e33;transition:transform .18s}
.sound-setting[aria-checked="true"] .switch-track{background:#527863}.sound-setting[aria-checked="true"] .switch-track::after{transform:translateX(16px)}
@media(max-width:370px){.wordmark{gap:0}.home-button{margin-left:-8px}.topbar h1{font-size:23px}.topbar .byline{letter-spacing:1px}}
@media(orientation:landscape) and (max-height:600px){.sound-popover{top:max(54px,calc(env(safe-area-inset-top) + 50px));padding-top:4px;padding-bottom:8px}.sound-setting{min-height:58px}.sound-heading h2{font-size:22px}}
.topbar h1{view-transition-name:love-birds-title}
body[data-weather="stormy"] #sound[aria-expanded="true"]{background:#546977}
body[data-weather="stormy"] .sound-popover .icon-button:hover{background:#dfe8dc}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
