@font-face{font-family:"DM Sans";src:url("fonts/dm-sans.woff2") format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("fonts/bricolage.woff2") format("woff2");font-weight:500 800;font-display:swap}
:root{--paper:#f4f1df;--ink:#193e31;--green:#215b45;--pink:#e9a7bc;--gold:#eabb4e;--line:#c3c9b4;--muted:#4d6553;--white:#fffdf2;font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}
button,a,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default;opacity:.5}
button,a,summary{outline-offset:5px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,#stage:focus-visible{outline:3px solid #9d4362}
button{color:var(--ink)}[hidden]{display:none!important}
.shell{max-width:796px;margin:auto;padding:0 clamp(12px,3.6vw,28px)}
.quiet{background:transparent;border:1px solid var(--line);border-radius:30px;padding:11px 16px;font-size:13px;font-weight:bold;min-height:44px}
.challenge-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:.5px;font-weight:bold;margin:0 2px 12px}
.game-panel{border:1.5px solid var(--ink);border-radius:16px;overflow:hidden;background:var(--white);box-shadow:0 5px 0 #d9ddc8}
.game-top{display:flex;justify-content:space-between;align-items:center;font-weight:700}
#score{font-variant-numeric:tabular-nums}
#score small{font-weight:normal;color:var(--muted)}
.timer{background:#e1e5d4}
.timer>div{height:100%;background:var(--green);width:100%;transform-origin:left}
.stage{position:relative;background:#e5ead7;overflow:hidden;cursor:crosshair;touch-action:manipulation;user-select:none}
.stage:focus-visible{outline-offset:-5px}
.sun{position:absolute;width:62px;height:62px;border-radius:50%;background:var(--gold);top:27px;right:35px}
.ground{position:absolute;top:72%;height:28%;width:100%;background:#cdd9b9;}
.horizon{position:absolute;top:72%;height:1px;width:100%;background:#9daf93}
.marker{position:absolute;bottom:28%;width:3px;height:80px;background:var(--green);transform:translateX(-50%)}
.marker span{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:var(--white);font-weight:bold;font-size:11px}
.marker.left{left:24%}
.marker.right{left:76%}
.aim{position:absolute;top:90px;bottom:28%;width:2px;background:var(--ink);left:50%;pointer-events:none}
.aim:before{content:'▼';position:absolute;top:-16px;left:-6px;font-size:15px}
.plant{position:absolute;bottom:26%;width:75px;height:110px;transform:translateX(-50%);pointer-events:none}
.plant svg{width:100%;height:100%;animation:grow .3s ease-out}
.cover{position:absolute;inset:0;background:#e5ead7eb;display:grid;place-items:center;text-align:center;padding:12px;cursor:default}
.cover p{font-family:"Bricolage Grotesque","DM Sans",system-ui,sans-serif;font-size:23px;line-height:1.25;margin:20px 0}
.pill{display:inline-block;border:1px solid var(--line);border-radius:30px;padding:7px 12px;font-size:10px;font-weight:bold;letter-spacing:1px;background:var(--paper)}
.primary,.secondary{border:1px solid var(--green);border-radius:8px;padding:15px 22px;font-weight:bold;font-size:15px;min-height:50px}
.primary{background:var(--green);color:var(--white)}
.primary span{margin-left:20px}
.primary:hover{background:#164b37}
.secondary{background:transparent}
.secondary:hover{background:#e6ead8}
.feedback{display:flex;align-items:center;justify-content:center;font-weight:700;text-align:center;border-bottom:1px solid #e0e4d6}
.garden{display:grid;grid-template-columns:repeat(12,1fr);gap:4px}
.bloom-slot{height:43px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line);color:#61735e;}
.bloom-slot svg{width:32px;height:43px}
.bloom-slot.active{border-bottom:3px solid var(--green);background:#eef0e4;border-radius:5px 5px 0 0}
.game-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}
.game-bottom p{margin:0}
.game-bottom p span{color:var(--muted)}
.invite,.notice{padding:13px 17px;border:1px solid var(--green);border-radius:8px;font-size:14px;line-height:1.5;background:#e8ecd9}
.notice{border-color:#aa7842;background:#f3e4c4}
.result{border-radius:16px;background:#f1d3dc;border:1.5px solid var(--ink);text-align:center}
.result-heading{display:flex;justify-content:center}
.result-heading .pill{background:transparent;border-color:#9c6476}
.big-score{font-weight:800;letter-spacing:-.055em}
.big-score small{font-size:20px;letter-spacing:0;font-weight:normal}
.comparison{font-weight:700}
.result-blooms{display:flex;justify-content:center;gap:5px}
.result-blooms svg{width:35px;height:50px}
.text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px}
details{border-top:1px solid var(--line);color:var(--muted)}
summary{cursor:pointer;color:var(--ink);font-weight:700}
input{width:100%;font:inherit;padding:12px;border:1px solid var(--green);border-radius:5px;background:var(--white)}
#copy-fallback label{display:block;text-align:left;margin-bottom:6px;font-size:12px}


/* Keep touch gestures on the planting area while a shot is active. */
.playing .stage:has(.cover[hidden]){touch-action:none}
.aim{transform:translateX(-50%)}
#controls .touch-hint{display:none}
@media(pointer:coarse){
 #controls .touch-hint{display:inline}
 #controls .keyboard-hint{display:none}
}

.header-actions{display:flex;align-items:center;gap:8px}
#christmas{white-space:nowrap}
#christmas[aria-pressed=true]{background:#a32f42;color:#fff9ea;border-color:#a32f42}
.snow,.tree-marker{display:none}

body.christmas{
 --paper:#f6f3e9;--ink:#193c33;--green:#23594a;--line:#b7c9be;
 --muted:#435f56;--white:#fffcf2;
 background-color:var(--paper);
 background-image:radial-gradient(ellipse at 50% 0,#f7f1df 10%,transparent 64%),linear-gradient(180deg,#d8e8e3,transparent 46rem);
}
.christmas header{border-bottom:2px solid #ae5c62}
.christmas h1 em{color:#963744}
.christmas .game-panel{box-shadow:0 5px 0 #c5d7d0}
.christmas .stage{background:linear-gradient(180deg,#c6dfdc 0%,#e4eeeb 72%)}
.christmas .sun{background:#fff1c9;box-shadow:0 0 25px #fff7db}
.christmas .ground{
 background-color:#eff7f4;
}
.christmas .horizon{background:#b0cdc3}
.christmas .snow{
 display:block;position:absolute;inset:-80px 0 0;pointer-events:none;
 background-image:radial-gradient(circle,#fff 1.5px,transparent 2px),radial-gradient(circle,#fff9 1px,transparent 1.6px),radial-gradient(circle,#fff 1px,transparent 1.5px);
 background-size:80px 80px,59px 80px,113px 80px;
 background-position:8px 10px,27px 35px,59px 51px;
 animation:snowfall 10s linear infinite;
}
@keyframes snowfall{to{transform:translateY(80px)}}
.christmas .marker{height:15px;width:5px;background:#81563e;border-radius:2px}
.christmas .marker span{bottom:-17px;width:20px;height:20px;font-size:10px;background:#244d42}
.christmas .tree-marker{
 display:block;position:absolute;bottom:10px;left:50%;transform:translateX(-50%);
 width:54px;height:83px;
 background:linear-gradient(160deg,transparent 38%,#cfe4dc 39% 42%,transparent 43% 60%,#cfe4dc 61% 64%,transparent 65%),linear-gradient(120deg,#3b8067 50%,#29664f 50%);
 clip-path:polygon(50% 0%,76% 40%,65% 40%,89% 70%,76% 70%,100% 100%,0 100%,24% 70%,11% 70%,35% 40%,24% 40%);
}
.christmas .tree-marker::before{
 content:'';position:absolute;left:24px;top:30px;width:5px;height:5px;border-radius:50%;
 background:#eac77a;box-shadow:-9px 18px #b94451,11px 21px #edc96e,-13px 39px #edc96e,15px 41px #b94451,2px 30px #f5e5bf;
}
.christmas .plant{bottom:23%;width:76px;height:46px}
.christmas .plant .yule-log{animation:drop-log .28s ease-in}
@keyframes drop-log{
 from{transform:translateY(-100px) rotate(-13deg);opacity:.5}
 72%{transform:translateY(2px) rotate(4deg);opacity:1}
 86%{transform:translateY(-5px) rotate(-2deg)}
 to{transform:translateY(0);opacity:1}
}
.christmas .cover{background:#e2eeeadb}
.christmas .cover .pill{border-color:#b98f83;background:#fcf3e0;color:#7c2837}
.christmas .cover .primary,.christmas .result .primary{background:#963744;border-color:#963744}
.christmas .cover .primary:hover,.christmas .result .primary:hover{background:#7c2837}
.christmas .result{background:#e2ece5;border-top:5px solid #9d3e4c}
.christmas .result-heading .pill{border-color:#9d626b;color:#7c2837}
.christmas .bloom-slot.active{background:#e2eee8}
.snow-drift{display:block;width:65%;height:6px;margin-bottom:4px;border-radius:50%;background:#c7d9d3}
.result-blooms .snow-drift{width:24px;align-self:flex-end}

@media(max-width:550px){
 .christmas .tree-marker{width:40px;height:68px}
 .christmas .tree-marker::before{left:18px;top:25px;box-shadow:-6px 15px #b94451,7px 18px #edc96e,-10px 31px #edc96e,10px 32px #b94451}
 .christmas .plant{width:64px}
}

.bonus-playing .game-panel{border-color:#a34b3b}
.bonus-playing .game-top{background:#f6e8cc}
.bonus-playing .timer>div{background:#a13c3c}
.bonus-ready .marker{visibility:hidden}
#bonus-result{font-weight:bold;color:var(--ink)}

.intro{margin:24px 0 19px}
.intro h1{font-size:clamp(32px,10vw,60px);margin:0 0 7px}
.intro .tagline{font-size:1rem;line-height:1.4;text-wrap:balance;color:var(--muted)}
.setup{
 display:grid;
 gap:15px;
 width:min(100%,660px);
 margin:0 auto 22px;
 padding:17px 14px 14px;
 background:var(--white);
 border:1px solid var(--line);
 border-radius:16px;
 box-shadow:0 4px 0 #dce0cb;
}
.choice-group{margin:0;padding:0;border:0;min-width:0}
.choice-group legend{padding:0;margin:0 0 6px;font-size:13px;font-weight:700}
.choices{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#ebeede}
.choices label,.choices button{min-width:0;flex:1;position:relative}
.choices label span,.choices button{
 display:flex;align-items:center;justify-content:center;gap:3px;
 width:100%;min-height:44px;padding:5px 3px;
 border:1px solid transparent;border-radius:7px;background:transparent;
 color:var(--ink);font:700 .875rem/1.15 "DM Sans",system-ui,sans-serif;
 text-align:center;cursor:pointer;
}
.choices input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.choices input:focus-visible + span,.choices button:focus-visible{outline:2px solid #963744;outline-offset:1px}
.choices input:checked + span,.choices button[aria-pressed=true]{background:var(--green);color:var(--white);box-shadow:0 1px 2px #193e3133}
.choice-help{margin:5px 0 0;color:var(--muted);font-size:.875rem;line-height:1.4}
.setup .challenge-line{margin:0;font-size:.875rem;color:var(--muted)}
.setup .challenge-line #best{color:var(--ink);text-align:right}
.setup .invite,.setup .notice{margin:0}
#play{width:100%;min-height:52px}
.setting-up .game-panel,.round-complete .game-panel,.round-complete .setup,.playing .setup,.playing .intro,.round-complete .intro{display:none}
.christmas .setup{box-shadow:0 4px 0 #c5d7d0}
.christmas .choices{background:#e4eee7}
.christmas #play{background:#963744;border-color:#963744}
.christmas #play:hover{background:#7c2837}
.aim{z-index:1;top:auto;bottom:28%;height:78px;width:3px;border-radius:2px;box-shadow:0 0 0 1px var(--white)}
.aim::before{
 content:'';top:-3px;left:50%;width:11px;height:11px;
 transform:translateX(-50%);border-radius:50%;background:var(--ink);border:1px solid var(--white);
}
.christmas .aim{top:auto;background:#963744}
.christmas .aim::before{background:#963744}
@media(min-width:680px){
 .intro{margin:30px 0 24px}
 .setup{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;padding:20px}
 .setup h2,.setup .challenge-line,.setup .invite,.setup .notice,#play{grid-column:1/-1}
}

@media(max-width:360px){
 .intro{margin:15px 0 13px}
}

.drop-score{
 position:absolute;z-index:2;bottom:49%;
 left:clamp(62px,var(--drop-x,50%),calc(100% - 62px));transform:translateX(-50%);
 display:grid;justify-items:center;gap:3px;
 min-width:112px;padding:8px 10px 9px;
 color:var(--ink);background:var(--white);
 border:1px solid var(--green);border-radius:12px;
 box-shadow:0 3px 0 #193e3133;pointer-events:none;text-align:center;
 animation:reveal-drop-score .14s ease-out .27s both;
}
.drop-score strong{font-size:clamp(32px,9vw,42px);line-height:.95;font-variant-numeric:tabular-nums;letter-spacing:-.05em}
.drop-score span{font-size:.75rem;font-weight:800;line-height:1.2;letter-spacing:.09em;text-transform:uppercase}
.drop-score.highlight{background:#f9e8a8;border-color:#886424;color:#463414;box-shadow:0 3px 0 #88642444}
.drop-score.miss{border-color:#963744;color:#842b38}
.drop-score.no-drop{animation-delay:0s}
.cover{z-index:3}
.stage:has(.cover:not([hidden])) .drop-score,.stage:has(.cover:not([hidden])) .plant svg{animation-play-state:paused}
@keyframes reveal-drop-score{
 from{opacity:0;transform:translate(-50%,7px)}
 to{opacity:1;transform:translate(-50%,0)}
}

.bonus-overlay{
 position:absolute;inset:0;z-index:3;display:grid;place-items:center;
 padding:10px;background:#d9e3d8df;cursor:default;
}
.christmas .bonus-overlay{background:#d7e7e3e8}
.bonus-card{
 width:min(100%,344px);padding:14px 13px;
 background:var(--white);border:1px solid #a34b3b;border-radius:13px;
 box-shadow:0 4px 0 #a34b3b38;text-align:center;
}
.bonus-card h2{font-size:clamp(26px,8vw,34px);line-height:1.05;margin:0 0 7px}
.bonus-card p{max-width:31ch;margin:0 auto 11px;font-size:.9375rem;line-height:1.32}
.bonus-card .primary{width:100%;min-height:48px;padding:9px 12px}
.christmas .bonus-card .primary{background:#963744;border-color:#963744}
.bonus-countdown{padding:18px 14px}
.bonus-countdown span{display:block;font-size:15px;font-weight:bold}
.bonus-countdown strong{display:block;color:#852f37;font-size:76px;line-height:1;font-variant-numeric:tabular-nums}

.visually-hidden{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;
 overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;
}
.site-header{
 min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:7px 0;border-bottom:1px solid var(--line);
}
.wordmark{
 display:inline-flex;align-items:center;gap:7px;min-height:48px;
 text-decoration:none;white-space:nowrap;color:var(--ink);
 font:800 clamp(1.0625rem,4.7vw,1.5rem)/1 "Bricolage Grotesque","DM Sans",system-ui,sans-serif;
 letter-spacing:-.045em;
}
.wordmark img{display:block;flex:none}
.header-actions{flex:none;gap:6px}
.header-actions .quiet{min-height:48px;padding:6px 10px;font-size:.875rem;border-radius:10px}
#christmas{font-weight:700}
.sound-toggle{display:grid;place-items:center;min-width:48px}
.sound-toggle[aria-pressed=true]{background:var(--green);color:var(--white);border-color:var(--green)}
.speaker{width:20px;height:18px;position:relative;color:inherit}
.speaker::before{
 content:"";position:absolute;inset:1px 9px 1px 0;background:currentColor;
 clip-path:polygon(0 32%,33% 32%,100% 0,100% 100%,33% 68%,0 68%);
}
.speaker::after{
 content:"";position:absolute;right:0;top:2px;width:10px;height:14px;
 background:linear-gradient(45deg,transparent 43%,currentColor 44% 56%,transparent 57%),
            linear-gradient(-45deg,transparent 43%,currentColor 44% 56%,transparent 57%);
 background-size:9px 9px;background-position:center;background-repeat:no-repeat;
}
.sound-toggle[aria-pressed=true] .speaker::after{
 background:none;border-right:2px solid currentColor;border-radius:50%;
 box-shadow:inset -4px 0 0 -3px currentColor;
}
h1,h2{font-family:"Bricolage Grotesque","DM Sans",system-ui,sans-serif;line-height:1.05;letter-spacing:-.04em}
h1{font-weight:800}
h1 em{font-style:normal;color:var(--green)}
.intro .tagline{margin:0}
.setup{gap:13px;padding:14px;margin-bottom:14px}
.choice-group legend{font-size:.875rem}
.choices label span,.choices button{min-height:48px}
.choices label span{overflow-wrap:anywhere}
.setup .challenge-line{min-height:1.2em;align-items:baseline}
#play{min-height:54px}
.primary,.secondary{font-size:1rem}
.game-panel{margin-top:12px}
.game-top{padding:10px 12px;gap:10px;min-height:54px;font-size:.875rem}
#score{font-size:1.375rem;text-align:right;overflow-wrap:anywhere}
#score small{font-size:.875rem}
.timer{height:5px}
.stage{height:clamp(238px,35svh,290px);scroll-margin-block:8px}
.feedback{height:auto;min-height:48px;font-size:.9375rem;line-height:1.3;padding:7px 10px}
.game-bottom{padding:6px 10px 10px}
.game-bottom p{font-size:.875rem;line-height:1.3}
#pause{min-height:48px;padding:7px 13px;font-size:.875rem}
.garden{padding:7px 9px 5px;min-height:0}
.bloom-slot{min-width:0;font-size:.75rem}
.bloom-slot svg,.result-blooms svg{min-width:0;max-width:100%}
.bonus-overlay{overflow:auto;align-items:safe center}
.bonus-card .primary{font-size:1rem}
.bonus-card h2{font-weight:750}
.result{margin-top:14px;padding:16px 11px;text-wrap:pretty}
.result-heading .pill{font-size:.75rem;letter-spacing:.05em}
#result-title:focus{outline:none}
.result h2{font-size:clamp(1.625rem,7.5vw,2.75rem);margin:12px 0 3px}
.result .big-score{font-size:clamp(2.7rem,16vw,4.5rem);overflow-wrap:anywhere;line-height:1.05}
.result p{font-size:.9375rem;line-height:1.4;margin:7px 0}
.result .big-score{margin:4px 0;font-variant-numeric:tabular-nums}
.result-blooms{margin:8px 0 12px}
.actions,.secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.actions button{min-height:52px;padding:7px 6px;font-size:.9375rem;overflow-wrap:anywhere}
.secondary-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:5px}
.text-button{min-height:48px;padding:4px 3px;font-size:.875rem;line-height:1.24}
#share-status:empty{display:none}
details{margin:0 0 14px;padding:0;font-size:.9375rem;line-height:1.55}
summary{min-height:48px;padding:12px 2px;font-size:.9375rem}
#copy-fallback label{font-size:.875rem}
@media(max-width:360px){
 .setup{gap:10px;padding:11px}
 .choices{padding:3px}
 .choice-help{line-height:1.3}
 .stage{height:238px}
}
@media(min-width:680px){
 .setup{padding:16px}
 .game-top,.game-bottom{padding-inline:16px}
 .result{padding:22px}
}
@media(max-width:550px){
 .sun{right:24px;width:48px;height:48px}
 .bloom-slot{height:35px}
 .bloom-slot svg{height:35px;width:24px}
 .result-blooms{gap:2px}
 .result-blooms svg{height:38px}
}
@media(max-height:500px) and (orientation:landscape){
 .site-header{min-height:56px;padding-block:3px}
 .intro{margin:7px 0 9px}
 .intro h1{font-size:2rem;margin-bottom:4px}
 .setup{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px}
 .setup .challenge-line,.setup .invite,.setup .notice,#play{grid-column:1/-1}
 .stage{height:225px}
}
@keyframes grow{
 from{opacity:0;transform:scale(.6) translateY(15px)}
 to{opacity:1;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
