/* The end of each game is composed from its own field, tools and collected art. */
.roadside-sign-copy{left:18%;right:18%;top:22%;height:31%;gap:calc(var(--sign-size)*.016)}
.roadside-sign-pillars{gap:calc(var(--sign-size)*.012);font-size:calc(var(--sign-size)*.062);letter-spacing:.16em;color:#475134;text-shadow:0 1px 0 #ffe8b7,0 -1px 0 #71532755}
.roadside-sign-pillars>span:last-child{color:#6f512e}
.roadside-sign-caption{position:relative;padding-top:calc(var(--sign-size)*.013);font-size:calc(var(--sign-size)*.032);letter-spacing:.06em;color:#685332}
.roadside-sign-caption::before{content:'';position:absolute;top:0;left:16%;right:16%;height:1px;background:linear-gradient(90deg,transparent,#95734399 25%,#95734399 75%,transparent)}
.sign-grain-engraving{position:absolute;left:3%;top:6%;width:17%;height:72%;color:#8d713b;stroke:currentColor;stroke-width:2;stroke-linecap:round;opacity:.72;transform:rotate(-12deg)}
.sign-grain-engraving.is-right{left:auto;right:3%;transform:scaleX(-1) rotate(-12deg)}

/* A flowering field and a pollen trail surround lettering on a paper ribbon. */
#gameDialog.rope-game .rope-success{display:block;width:91%;height:84%;top:54%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;isolation:isolate}
#gameDialog.rope-game .rope-success::before{content:'';position:absolute;inset:-10% -5%;z-index:-2;background:radial-gradient(ellipse,#fff7ceaa 0%,#fff5cd44 48%,transparent 72%)}
.rope-pollen-path{position:absolute;inset:0;width:100%;height:100%;overflow:visible;stroke:#fff2ae;stroke-width:2;stroke-dasharray:3 10;filter:drop-shadow(0 1px 2px #80794066)}
.rope-pollen-path g{stroke:none;fill:#fff7c6}
#gameDialog.rope-game .rope-finish-rice{position:absolute;bottom:4%;width:27%;height:87%;object-fit:contain;filter:drop-shadow(0 6px 5px #415b3d40);transform-origin:50% 95%;z-index:1}
.rope-finish-rice.is-left{left:0;transform:rotate(-20deg)}
.rope-finish-rice.is-right{right:0;transform:scaleX(-1) rotate(-20deg)}
#gameDialog.rope-game .rope-finish-seal{position:absolute;left:50%;top:1%;display:grid;place-items:center;width:clamp(44px,13cqh,98px);height:clamp(44px,13cqh,98px);border:3px double #af873a;border-radius:50%;background:#f8e6ad;color:#756128;transform:translateX(-50%) rotate(-9deg);box-shadow:0 3px 0 #60723825;z-index:3}
.rope-finish-seal::before{content:'';position:absolute;inset:5px;border:1px dashed #a98a47;border-radius:50%}
#gameDialog.rope-game .rope-finish-seal b{font-size:clamp(11px,3.6cqh,21px);line-height:1.1;letter-spacing:.13em;padding-left:.13em}
#gameDialog.rope-game .rope-success .rope-success-copy{position:absolute;left:50%;top:35%;width:94%;transform:translateX(-50%) rotate(-1.5deg);display:flex;align-items:center;gap:3cqh;z-index:4;letter-spacing:.02em}
#gameDialog.rope-game .rope-success-copy>span:first-child{position:relative;display:block;padding:3cqh 3.4cqw 3.5cqh;color:#42623d;font-size:clamp(15px,3.65cqw,34px);line-height:1.25;filter:drop-shadow(0 4px 3px #4e614b33)}
.rope-success-copy>span:first-child::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,#f7e8bb,#fff9e4 45%,#f4e4ac);clip-path:polygon(0 8%,6% 10%,5% 0,22% 5%,43% 0,65% 4%,93% 0,94% 10%,100% 7%,96% 52%,100% 94%,92% 90%,93% 100%,70% 95%,51% 100%,30% 96%,6% 100%,7% 91%,0 94%,4% 50%)}
#gameDialog.rope-game .rope-success-copy>span:last-child{font-size:clamp(20px,5cqw,44px);line-height:1.25;color:#fff9df;text-shadow:0 2px 0 #547341,1px 0 #547341,-1px 0 #547341,0 4px 10px #3b582d99;transform:rotate(1.5deg)}
.rope-finish-knot{position:absolute;left:50%;bottom:5%;width:35%;height:8%;transform:translateX(-50%);border-bottom:3px double #c0a256;border-radius:0 0 50% 50%;z-index:2}
.rope-finish-knot i{position:absolute;left:50%;bottom:-4px;width:28px;height:15px;border:2px solid #bf9b48;border-radius:50% 50% 0 50%;transform:translateX(-100%) rotate(20deg);background:#fff0ba44}
.rope-finish-knot i:last-child{transform:rotate(-20deg) scaleX(-1)}
.rope-finish-pollen{position:absolute;inset:0;pointer-events:none;z-index:5}
.rope-finish-pollen i,.harvest-falling-grain{position:absolute;left:var(--gx);top:var(--gy);display:block;width:5px;height:9px;border-radius:75% 20% 70% 25%;background:#ffe9a2;box-shadow:0 0 5px #ffffde;rotate:calc(var(--grain)*31deg)}
.game-win .rope-finish-pollen i{animation:field-pollen-float 2.4s calc(var(--grain)*55ms) both}
.game-win .rope-finish-rice.is-left{animation:field-bloom-left .9s .15s both}
.game-win .rope-finish-rice.is-right{animation:field-bloom-right .9s .2s both}
.game-win .rope-pollen-path>path{animation:field-trail-reveal 1.3s .2s both}
@keyframes field-pollen-float{from{opacity:0;translate:0 25px;scale:.4}35%{opacity:1}to{opacity:.8;translate:10px -8px;scale:1}}
@keyframes field-bloom-left{from{opacity:0;transform:rotate(-38deg) translateY(12%)}to{opacity:1;transform:rotate(-20deg)}}
@keyframes field-bloom-right{from{opacity:0;transform:scaleX(-1) rotate(-38deg) translateY(12%)}to{opacity:1;transform:scaleX(-1) rotate(-20deg)}}
@keyframes field-trail-reveal{from{opacity:0;stroke-dashoffset:50}to{opacity:1;stroke-dashoffset:0}}

/* The captured images open into a field report, with the drone still in view. */
.drone-outcome{background:linear-gradient(90deg,#12372bea,#14382bc4 40%,#193d2b77 80%,#193d2b99);overflow:hidden}
.drone-success{position:relative;display:grid;grid-template-columns:37% 63%;align-items:center;width:min(86%,1170px);height:70%;gap:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:left;color:#fff8de}
.drone-report-copy{position:relative;z-index:2;padding-left:1cqw;align-self:center}
.drone-report-eyebrow{display:flex;align-items:center;gap:10px;font-size:clamp(11px,2.7cqh,18px);letter-spacing:.14em;color:#dddfa6}
.drone-report-eyebrow i{width:19px;height:19px;border:1px solid #e6d798;border-radius:50%;box-shadow:0 0 0 5px #e6d79815;position:relative}
.drone-report-eyebrow i::after{content:'';position:absolute;inset:5px;background:#e6d798;border-radius:50%}
.drone-success .drone-report-copy>strong{display:block;margin:4cqh 0 3cqh;font-size:clamp(27px,5.2cqw,68px);letter-spacing:.03em;line-height:1.15;color:#fff6ce;white-space:nowrap;text-shadow:0 3px 10px #082c2566}
.drone-report-count{display:flex;align-items:center;gap:12px;margin-bottom:3cqh}
.drone-report-count b{font-size:clamp(37px,10cqh,82px);line-height:1;color:#e8d18d;font-variant-numeric:tabular-nums}
.drone-report-count>span{font-size:clamp(10px,2.5cqh,17px);line-height:1.8;color:#d0dbc0;letter-spacing:.08em;border-left:1px solid #d9d5a455;padding-left:12px}
.drone-success .drone-report-copy p{margin:0 0 2cqh;font-size:clamp(12px,3cqh,20px);line-height:1.5;color:#f4f0d6;white-space:nowrap}
.drone-report-pending{display:flex;align-items:center;gap:7px;font-size:clamp(10px,2.5cqh,16px);color:#d2d7b6;letter-spacing:.05em}
.drone-report-pending i{width:5px;height:5px;border:1px solid #d8dcaf;border-radius:50%}
.drone-report-photos{position:relative;width:100%;height:80%;isolation:isolate}
.drone-success .drone-report-route{position:absolute;inset:-5% -5%;width:110%;height:110%;padding:0;border:0;border-radius:0;stroke:#e6dba4;stroke-width:1.5;opacity:.65;overflow:visible}
.drone-success .drone-report-route path{stroke-dasharray:4 8;stroke-dashoffset:0;animation:field-trail-reveal 1.4s .2s both}
.drone-success .drone-report-route circle{fill:#e6dba4;stroke:#f4ebbf;stroke-width:3}
.drone-report-aircraft{position:absolute;z-index:5;right:18%;top:-21%;width:42%;height:45%;object-fit:contain;rotate:-12deg;filter:drop-shadow(0 13px 9px #082d2a80);animation:drone-aircraft-return 1.2s .1s both}
.drone-report-photo{--turn:-10deg;position:absolute;left:calc(2% + var(--photo)*29%);top:calc(15% + var(--photo)*5%);width:40%;height:72%;margin:0;padding:9px 9px 6px;background:#f8f0d9;color:#4e6345;transform:rotate(var(--turn));box-shadow:0 8px 18px #072d2780;animation:drone-report-photo-in .75s calc(.15s + var(--photo)*.13s) both}
.drone-report-photo:nth-of-type(2){--turn:3deg;z-index:2;top:28%}
.drone-report-photo:nth-of-type(3){--turn:11deg;z-index:3;top:17%}
.drone-report-photo::after{content:'';position:absolute;inset:3px;border:1px solid #a69d7326;pointer-events:none}
.drone-report-photo>img{display:block;width:100%;height:calc(100% - 36px);object-fit:cover;filter:saturate(.8)}
.drone-photo-tape{position:absolute;z-index:4;left:31%;top:-9px;width:38%;height:22px;background:repeating-linear-gradient(90deg,#e5cc948c 0 2px,#ecd8a7aa 2px 4px);clip-path:polygon(0 7%,9% 0,18% 8%,39% 0,68% 7%,90% 0,100% 9%,96% 95%,78% 100%,55% 93%,25% 100%,5% 93%);rotate:-3deg}
.drone-report-photo figcaption{display:flex;align-items:center;gap:6px;height:36px;white-space:nowrap;font-size:clamp(9px,1.1cqw,15px)}
.drone-report-photo figcaption b{font-size:clamp(14px,1.8cqw,23px);color:#9d8954}
.drone-success .drone-report-check{margin-left:auto;flex:none;width:20px;height:20px;padding:3px;border:1px solid #7b926b;border-radius:50%;stroke:#52734b;stroke-width:2.5;fill:none}
.drone-success .drone-report-check path{stroke-dashoffset:0;animation:none}
#gameDialog.drone-game .game-win :is(.drone-evidence,.drone-map-panel,.drone-telemetry,.drone-camera-info){opacity:0;transition:opacity .35s}
#gameDialog.drone-game .game-win .drone-hud.top{opacity:.45}
@keyframes drone-report-photo-in{from{opacity:0;translate:20px 70px;rotate:10deg;scale:.75}to{opacity:1;translate:0 0;rotate:0deg;scale:1}}
@keyframes drone-aircraft-return{from{opacity:0;translate:60px -25px}to{opacity:1;translate:0 0}}

/* The harvest comparison becomes three paper ledger tags hung over the farm. */
#gameDialog.harvest-game .farm-completion{padding:3cqh 6cqw 19cqh;background:linear-gradient(#253a1466,#41532539 45%,#29351280);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);isolation:isolate}
#gameDialog.harvest-game .farm-completion::before{display:none}
.harvest-celebration-art{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.harvest-border-rice{position:absolute;bottom:-15%;width:25%;height:60%;object-fit:contain;filter:drop-shadow(0 5px 6px #3b421b55)}
.harvest-border-rice.is-left{left:-6%;rotate:18deg}
.harvest-border-rice.is-right{right:-6%;transform:scaleX(-1);rotate:-18deg}
.harvest-falling-grain{width:5px;height:10px;background:linear-gradient(90deg,#ba8b34,#f5d17c);box-shadow:0 2px 2px #5d4b2533;animation:harvest-grain-celebrate 2.6s calc(var(--grain)*45ms) both}
.harvest-results{width:min(100%,1240px);margin:auto}
.harvest-results-heading{position:relative;gap:1.4cqw;margin:0 auto 3cqh;width:max-content;max-width:100%;align-items:center}
.harvest-heading-emblem{position:relative;display:grid;place-items:center;width:clamp(50px,15cqh,125px);height:clamp(50px,15cqh,125px);isolation:isolate}
.harvest-heading-emblem::before{content:'';position:absolute;inset:-8%;z-index:-1;background:repeating-conic-gradient(from 5deg,#f8e4a330 0 4deg,transparent 4deg 20deg);border-radius:50%;mask-image:radial-gradient(circle,transparent 38%,#000 40%,transparent 71%)}
.harvest-heading-emblem img{width:100%;height:100%;object-fit:contain;rotate:-8deg;filter:drop-shadow(0 5px 3px #41492355)}
.harvest-heading-copy{display:flex;flex-direction:column;gap:1cqh}
.harvest-heading-copy>span{font-size:clamp(10px,2cqh,15px);letter-spacing:.35em;color:#efe3b4}
.harvest-results-heading h3{font-size:clamp(28px,8.4cqh,65px);line-height:1.15;letter-spacing:.06em;color:#fff0b8;text-shadow:0 3px 0 #6a7139,0 6px 15px #334b2a66;transform:rotate(-2deg)}
.harvest-results-heading .harvest-complete-stamp{position:relative;align-self:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;margin:0 0 0 1cqw;width:clamp(43px,12cqh,86px);height:clamp(43px,12cqh,86px);border:3px double #f3d78b99;border-radius:50%;color:#ffe9a7;transform:rotate(12deg);box-shadow:inset 0 0 0 4px #f3d78b19}
.harvest-complete-stamp b{font-size:clamp(13px,3.5cqh,25px);line-height:1.1}
.harvest-complete-stamp>span{font-size:clamp(8px,2cqh,12px);letter-spacing:.08em}
.harvest-result-panels{position:relative;gap:2.5cqw;padding-top:2cqh}
.harvest-ledger-rope{position:absolute;left:-3%;top:-1cqh;width:106%;height:5cqh;stroke:#ddbf75;stroke-width:2;filter:drop-shadow(0 2px 1px #464e2355);overflow:visible}
.harvest-ledger-rope path:last-child{stroke:#f8e2a7;stroke-width:1}
.harvest-result-panel{position:relative;isolation:isolate;overflow:visible;min-width:0;padding:3cqh 1.8cqw 2.7cqh;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 7px 5px #21391c55);transform:rotate(-1deg)}
.harvest-result-panel:nth-child(3){transform:rotate(1deg)}
.harvest-result-panel::before{content:'';position:absolute;inset:0;z-index:-1;clip-path:polygon(0 1%,10% 0,28% 1%,55% 0,72% .7%,98% 0,100% 18%,99.3% 38%,100% 63%,99% 85%,100% 99%,79% 98.4%,60% 100%,39% 99%,21% 100%,1% 99%,0 81%,.7% 56%,0 32%);background:radial-gradient(ellipse at 10% 0,#fffbee,transparent 70%),repeating-linear-gradient(0deg,#b3a46a06 0 1px,transparent 1px 4px),#f5eacb}
.harvest-panel-cost::before{background:radial-gradient(ellipse at 10% 0,#fffae4,transparent 70%),#eee1b9}
.harvest-panel-loss::before{background:radial-gradient(ellipse at 10% 0,#fffdf1,transparent 70%),#f5ecd4}
.harvest-result-panel::after{content:'';position:absolute;top:-2.2cqh;left:47%;width:clamp(7px,.8cqw,12px);height:5cqh;min-height:14px;max-height:34px;background:linear-gradient(90deg,#96713f,#d2ad6c 40%,#b79056 45%,#d2ad6c 65%,#9e7944);border:1px solid #9a733c88;border-radius:2px;box-shadow:1px 2px 2px #6a582533;rotate:4deg;z-index:3}
.harvest-result-panel h4{justify-content:flex-start;gap:.55em;font-size:clamp(13px,2.8cqh,23px);margin-bottom:1cqh;line-height:1.3;letter-spacing:.02em}
.harvest-metric-index{display:inline-grid;place-items:center;flex:none;width:1.7em;height:1.7em;border:1px solid #a79d6e70;border-radius:50%;font-size:.65em;color:#998553;letter-spacing:0}
.harvest-result-picture{height:23cqh;margin-bottom:1.5cqh;border-bottom:1px dashed #b7ab7566}
.harvest-result-pair{gap:1.4cqw}
.harvest-result-side dt{font-size:clamp(10px,1.8cqh,15px)}
.harvest-result-side dd{font-size:clamp(16px,2.85cqw,38px)}
.harvest-panel-output .harvest-result-side dd{font-size:clamp(13px,2.4cqw,32px)}
.harvest-result-side dd small{font-size:clamp(8px,.95cqw,13px)}
.harvest-data-track{height:5px;margin-top:1.3cqh;border-radius:0;background:#c9c2a34d}
.harvest-data-track i{border-radius:0;background:repeating-linear-gradient(100deg,#527442 0 7px,#729357 7px 9px,transparent 9px 11px)}
.harvest-result-side.is-manual .harvest-data-track i{background:repeating-linear-gradient(100deg,#b2a47b 0 7px,#c9bd97 7px 9px,transparent 9px 11px)}
.harvest-panel-output .harvest-result-side:not(.is-manual) .harvest-data-track i{background:repeating-linear-gradient(100deg,#527442 0 7px,#729357 7px 9px,transparent 9px 11px)}
@keyframes harvest-grain-celebrate{from{opacity:0;translate:0 -35px;rotate:0deg}25%{opacity:1}to{opacity:.7;translate:12px 12px;rotate:calc(var(--grain)*31deg)}}
@container (max-height:450px){
 #gameDialog.harvest-game .farm-completion{padding-top:2cqh;padding-bottom:21cqh}
 .harvest-results-heading{margin-bottom:2cqh}
 .harvest-result-panel{padding-top:3cqh;padding-bottom:2.5cqh}
 .harvest-result-panel h4{font-size:clamp(11px,3.8cqh,16px)}
 .harvest-result-picture{height:23cqh;min-height:50px}
 .harvest-result-side dd{font-size:clamp(16px,2.85cqw,26px)}
 .harvest-panel-output .harvest-result-side dd{font-size:clamp(13px,2.4cqw,23px)}
 .harvest-result-side dt{font-size:clamp(9px,2.7cqh,12px)}
 .harvest-result-side dt::before{width:4px;height:4px;margin-right:4px}
}
@container (max-width:650px){
 .drone-report-photo{padding:5px 5px 3px;height:68%}
 .drone-report-photo>img{height:calc(100% - 24px)}
 .drone-report-photo figcaption{height:24px;gap:3px;font-size:8px}
 .drone-report-photo figcaption b{font-size:12px}
 .drone-success .drone-report-check{width:15px;height:15px;padding:2px}
 .drone-photo-tape{height:15px;top:-6px}
 .drone-report-eyebrow{gap:7px;font-size:10px;letter-spacing:.06em}
 .drone-report-eyebrow i{width:12px;height:12px}
 .drone-report-eyebrow i::after{inset:3px}
 .drone-success .drone-report-copy p{font-size:11px}
 .drone-report-pending{font-size:10px}
 .drone-report-count{gap:8px}
 .drone-report-count>span{padding-left:8px;font-size:9px}
 .harvest-result-panel h4{gap:.4em;font-size:11px}
 .harvest-result-panel{padding-left:1.5cqw;padding-right:1.5cqw}
 .harvest-result-pair{gap:1.2cqw}
}
@media(prefers-reduced-motion:reduce){
 .game-win .rope-finish-pollen i,.game-win .rope-finish-rice,.game-win .rope-pollen-path>path,
 .drone-report-photo,.drone-report-aircraft,.drone-success .drone-report-route path,.harvest-falling-grain{animation:none!important}
}

/* A little field tag sits beside the harvester's hand gesture. */
#gameDialog.harvest-game .farm-drag-copy{position:relative;isolation:isolate;padding:11px 17px 11px 38px;border:0;border-radius:0;background:none;box-shadow:none;color:#45623b;font-size:clamp(12px,2.3cqh,17px);filter:drop-shadow(0 3px 3px #304b3540)}
.farm-drag-copy::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,#f0dfae,#fff8df 60%,#f4e6bc);clip-path:polygon(0 12%,6% 0,47% 3%,97% 0,100% 15%,99% 72%,100% 96%,60% 100%,5% 97%,0 83%)}
.farm-drag-copy::after{content:'';position:absolute;left:7px;top:50%;width:26px;height:32px;transform:translateY(-50%) rotate(-8deg);background:var(--media-843a3de9b4) center/contain no-repeat}
