/* trap.css: Duck Trap (trap-app.js, trap-art.js). Built on the site's tokens (site.css), the arcade entry screen
   (arcade.css) and the pieces the party games and Same Pond already share (party.css, pond.css: .zp-second, .zp-inp,
   .sp-depth, .sp-duo, dialogs and toasts), so it reads as the same arcade in both tones. Containers stay quiet
   (charcoal or off-white, thin neutral borders); a selection gets a solid outline. Gold is only for coins. Every rule
   is scoped to Duck Trap's own containers. */

/* ---------- entry ---------- */
#trapSetup .zp-acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
#trapSetup .zp-acts .start{margin-top:0}
#trapSetup .zp-acts .zp-second{min-height:58px;border-radius:16px;padding:0 30px;font-size:17px}
@media (max-width:900px){#trapSetup .zp-acts{flex-direction:column}#trapSetup .zp-acts>*{width:100%}}
#trapSetup .sp-rounds{display:flex;align-items:center}
#trapSetup .sp-rounds .zp-second{width:48px;min-height:46px;padding:0;flex:none;display:inline-flex;align-items:center;justify-content:center}
/* the demonstration comes first and gets the wider column; then Play, Rounds, the course and Create room; the rest
   waits under More options */
@media (min-width:901px){#trapSetup.entry.show{grid-template-columns:minmax(0,40fr) minmax(0,60fr)}#trapSetup .e-demo{align-self:start;margin-top:8px}}
@media (max-width:900px){#trapSetup.entry.show{grid-template-areas:"head" "demo" "ctl"}}
.dt-main{display:flex;flex-wrap:wrap;gap:0 28px}
.dt-main .grp{flex:1 1 220px}
.dt-main .e-small{margin:8px 0 0}
.dt-course{display:flex;align-items:center;gap:14px;margin-top:20px;padding:10px 14px 10px 10px;border:1px solid var(--g2);border-radius:14px;background:var(--surf2)}
.dt-coursemap{flex:none;width:120px;color:var(--fg)}
.dt-coursemap svg{display:block;width:100%;height:auto}
.dt-course small{display:block;font:500 11.5px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--g5)}
.dt-course b{display:block;font:700 16px var(--font-sans);color:var(--fg)}
.dt-course span span{display:block;font:500 13px/1.35 var(--font-sans);color:var(--g6)}
#trapSetup .dt-course+.zp-acts{margin-top:20px}
.dt-more{margin-top:22px;border-top:1px solid var(--g2);padding-top:6px}
.dt-more>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:44px;padding:10px 0;font:600 16px var(--font-sans);color:var(--fg);cursor:pointer;list-style:none}
.dt-more>summary::-webkit-details-marker{display:none}
.dt-more>summary::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-right:4px;transition:transform .15s;align-self:center}
.dt-more[open]>summary::before{transform:rotate(45deg)}
.dt-more>summary .e-small{margin:0;font-weight:500}
.dt-more .grp:first-of-type{margin-top:8px}
.dt-timers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:520px){.dt-timers{grid-template-columns:1fr}}
.dt-timerrow{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--g2);border-radius:12px;background:var(--surf2)}
.dt-trtop{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.dt-trname{font:600 14.5px var(--font-sans);color:var(--fg)}
.dt-trval{font:700 15px var(--font-mono);color:var(--fg)}
.dt-timerrow input[type=range]{width:100%;accent-color:var(--fg)}
.dt-timerrow.off input[type=range]{opacity:.3;filter:grayscale(1);cursor:not-allowed}
.dt-timerrow.off .dt-trval{font-family:var(--font-sans)}
.dt-timerrow .dt-nolimit{min-height:32px;font-size:14px}
.dt-nolimit{display:inline-flex;align-items:center;gap:8px;min-height:44px;font:500 14.5px var(--font-sans);color:var(--fg);cursor:pointer}
.dt-nolimit input{width:20px;height:20px;margin:0;accent-color:var(--fg)}
.dt-trnum{display:inline-flex;align-items:center;gap:6px;font:600 14px var(--font-sans);color:var(--g6)}
.dt-trnum .zp-inp{width:68px;min-height:36px;padding:4px 8px;text-align:right;font:700 15px var(--font-mono)}
.dt-timerrow.off .dt-trnum .zp-inp{opacity:.45}
.dt-steprow,.dt-growrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0}
.dt-step{display:inline-flex;align-items:center;gap:8px}
.dt-stepval{min-width:96px;text-align:center;font:700 16px var(--font-sans);color:var(--fg)}
.dt-stepval small{font-weight:500;color:var(--g6)}
/* hidden traps on one keyboard: the look-away card covers the whole course */
.dt-over .dt-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--bg);pointer-events:auto;z-index:6}
.dt-covercard{max-width:420px;width:100%;padding:24px 20px;border:1px solid var(--g3);border-radius:16px;background:var(--surf2);text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.dt-covercard h2{margin:4px 0 0;font:700 22px var(--font-sans);color:var(--fg)}
.dt-covercard p{margin:0 0 6px;font:500 15.5px/1.5 var(--font-sans);color:var(--fg)}
.dt-exphelp{margin-top:10px}

/* the demonstration */
.dt-demo{display:flex;flex-direction:column;gap:12px;width:100%;max-width:820px;margin:0 auto}
.dt-demo-cv{display:block;width:100%;aspect-ratio:16/8.2;border-radius:16px;background:var(--bg);touch-action:manipulation;cursor:pointer}
.dt-demo-cap{min-height:2.8em;margin:0;font:600 clamp(15px,1.3vw,18px)/1.4 var(--font-sans);text-align:center;color:var(--fg)}
.dt-demo-cap.big{font:700 clamp(22px,2.4vw,30px)/1.2 var(--font-sans);letter-spacing:-.01em;animation:dtPop .35s ease}
.dt-demo-row .start.sm{margin-top:0;min-height:46px;padding:0 22px;font-size:16px;width:auto}
.dt-demo-acts{display:flex;flex-direction:column;align-items:center;gap:8px}
.dt-demo-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;align-items:center}
.dt-pad-demo{display:flex;justify-content:space-between;gap:12px}

/* ---------- the match: the game fills the browser. The course is drawn edge to edge; the scores, the instruction,
   the tray and the buttons float over it ---------- */
#trapGame{display:none;overflow-wrap:anywhere}
#trapGame.show{display:block}
html.dt-lock,html.dt-lock body{overflow:hidden;overscroll-behavior:none}
html.dt-lock .wrap{z-index:60}
html.zf-quiet #peek{visibility:hidden}
.dt-game{position:fixed;inset:0;z-index:70;overflow:hidden;background:var(--bg)}
.dt-stage{position:absolute;inset:0}
.dt-cv{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}
.dt-game[data-stage="build"] .dt-cv{cursor:crosshair}

/* the top strip and the one instruction under it */
.dt-hud{position:absolute;top:0;left:0;right:0;z-index:4;display:flex;flex-direction:column;align-items:center;gap:8px;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));pointer-events:none}
.dt-top{position:relative;width:100%;max-width:1180px}
.dt-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:center;gap:8px;pointer-events:auto}
.dt-chip{display:flex;align-items:center;gap:7px;min-width:0;padding:4px 12px 4px 4px;border-radius:999px;background:var(--surf2);border:1px solid var(--g3)}
.dt-bar .dt-chip{justify-self:start;max-width:100%}
.dt-bar .dt-round~.dt-chip{justify-self:end;flex-direction:row-reverse;padding:4px 4px 4px 12px}
.dt-chip .pd-sm{width:32px;height:auto;flex:none}
.dt-nick{font:600 15px var(--font-sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dt-nick small{font:500 12px var(--font-sans);color:var(--g5)}
.dt-score{display:inline-flex;align-items:center;gap:4px;font:700 17px var(--font-mono);color:var(--fg)}
.dt-score.bump{animation:dtBump .35s ease}
.dt-coin{width:18px;height:18px;flex:none;vertical-align:-3px}
.dt-round{display:flex;flex-direction:column;align-items:center;text-align:center;padding:4px 14px;border-radius:14px;background:var(--surf2);border:1px solid var(--g3)}
.dt-round b{font:700 15px var(--font-sans);white-space:nowrap}
.dt-round span{font:600 12.5px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--g6);white-space:nowrap}
.dt-round i{font-style:normal;color:var(--fg)}
.dt-tools{display:flex;gap:6px}
.dt-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid var(--g3);border-radius:13px;background:var(--surf2);color:var(--fg);cursor:pointer}
.dt-iconbtn:hover{background:var(--surf3)}
.dt-iconbtn:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
.dt-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:220px;padding:14px;border-radius:16px;background:var(--surf2);border:1px solid var(--g3);box-shadow:0 8px 24px rgba(0,0,0,.18);pointer-events:auto}
.dt-menuhead{margin:0 0 2px;font:700 16px var(--font-sans);color:var(--fg)}
.dt-menu .danger{color:var(--g6);font-size:14px;text-align:center}
/* attempts: three little ducks, filled while left, an outline once used; the one just lost pops out */
.dt-atts{display:inline-flex;align-items:center;gap:2px;flex:none}
.dt-atts svg{width:24px;height:20px;fill:var(--fg);stroke:var(--fg);stroke-width:1.4;stroke-linejoin:round;transition:fill .2s}
.dt-atts svg.used{fill:none;stroke:var(--g4)}
.dt-atts svg.lost{animation:dtLost .9s ease}
.dt-atts.sm svg{width:18px;height:15px}
.dt-say{display:flex;justify-content:center;max-width:min(640px,100%)}
.dt-say>*{pointer-events:auto}
.dt-saybox{display:inline-flex;align-items:center;gap:10px;margin:0;padding:9px 18px;border-radius:14px;background:var(--surf2);border:1px solid var(--g3);font:600 17px/1.35 var(--font-sans);color:var(--fg);text-align:center}
.dt-saywho{display:inline-flex;align-items:center;gap:6px;color:var(--g6)}
.dt-saywho .pd-xs{width:26px;height:auto}
.dt-turn{text-align:left}
.dt-turn .pd-sm{width:40px;height:auto;flex:none;animation:dtThink 1.6s ease-in-out infinite}
.dt-turn span{display:flex;flex-direction:column}
.dt-turn small{font:500 14px var(--font-sans);color:var(--g6)}

/* in the middle: the countdown, a short flash, the replay bar, the round card and the result */
.dt-over{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:84px 12px 96px;pointer-events:none}
.dt-cdwrap{display:flex;flex-direction:column;align-items:center;gap:10px}
.dt-cdwrap.dt-growcap{align-self:flex-start;margin-top:6px}
.dt-count{min-height:1em;font:700 clamp(60px,11vw,110px)/1 var(--font-sans);color:var(--fg);animation:dtPop .45s ease}
.dt-count.dt-blank{animation:none}
.dt-count.go{letter-spacing:-.02em}
.dt-countmsg{margin:0;padding:8px 16px;border-radius:12px;background:var(--surf2);border:1px solid var(--g3);font:600 16px/1.4 var(--font-sans);color:var(--fg);text-align:center;max-width:440px}
.dt-flash{position:absolute;left:50%;top:28%;z-index:5;transform:translate(-50%,-6px);padding:8px 16px;border-radius:999px;background:var(--fg);color:var(--bg);font:700 16px var(--font-sans);white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s,transform .2s}
.dt-flash.on{opacity:1;transform:translate(-50%,0);animation:dtWobble .5s ease .1s}
.dt-replaybar{position:absolute;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:6px 6px 6px 16px;border-radius:999px;background:var(--surf2);border:1px solid var(--g3);pointer-events:auto}
.dt-rptag{display:inline-flex;align-items:center;gap:8px;font:700 13px var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--fg)}
.dt-rptag i{width:9px;height:9px;border-radius:50%;background:var(--fg);animation:dtBlink 1.2s ease-in-out infinite}
.dt-skip{min-height:42px;padding:0 18px;border:0;border-radius:999px;background:var(--fg);color:var(--bg);font:700 15px var(--font-sans);cursor:pointer}
.dt-skip:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
.dt-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:12px;width:min(480px,100%);max-height:100%;overflow:auto;padding:18px 20px;border-radius:20px;background:var(--surf2);border:1px solid var(--g3);box-shadow:0 12px 32px rgba(0,0,0,.2);text-align:center;pointer-events:auto;animation:dtRise .3s ease}
.dt-cardkick{margin:0;font:600 12.5px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--g6)}
.dt-card h3{margin:0;font:700 22px/1.2 var(--font-sans)}
.dt-rows{display:flex;flex-direction:column;gap:6px}
.dt-row{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 12px 6px 6px;border-radius:14px;background:var(--surf3);text-align:left}
.dt-row .pd-sm{width:34px;height:auto}
.dt-row b{font:700 15px var(--font-sans)}
.dt-whys{font:500 14px var(--font-sans);color:var(--g6)}
.dt-plus{font:700 18px var(--font-mono);color:var(--fg)}
.dt-cardacts{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}
.dt-cardacts .start{margin-top:0}
.dt-auto{margin:0;color:var(--g6)}
.dt-result h2{margin:0 36px;font:700 clamp(28px,4.6vw,38px)/1.1 var(--font-sans);letter-spacing:-.02em}
.dt-fscore{font-family:var(--font-mono);white-space:nowrap}
.dt-podium{display:flex;justify-content:center;align-items:flex-end;gap:28px}
.dt-pod{display:flex;flex-direction:column;align-items:center;gap:4px}
.dt-podduck{position:relative;display:block}
.dt-pod .pd-lg{width:64px;height:auto}
.dt-pod.win .pd-lg{width:92px}
.dt-pod b{font:700 16px var(--font-sans)}
.dt-podscore{display:inline-flex;align-items:center;gap:5px;font:700 17px var(--font-mono)}
.dt-trophy{position:absolute;right:-16px;bottom:4px;width:36px;height:36px}
.dt-rematch{margin:0;font:600 15px var(--font-sans);color:var(--fg)}
.dt-quote{margin:0;color:var(--g6)}
.dt-x{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid var(--g3);border-radius:12px;background:transparent;color:var(--fg);cursor:pointer}
.dt-x:hover{background:var(--surf3)}
.dt-leave{align-self:center;font-size:14px;color:var(--g6)}
.dt-reopen .zp-second{display:inline-flex;align-items:center;gap:8px}
.dt-reopen .dt-trophy{position:static;width:22px;height:22px}

/* along the bottom: the tray (pick, build, repair), the race buttons */
.dt-panel{position:absolute;left:0;right:0;bottom:0;z-index:5;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));pointer-events:none;transition:transform .28s ease,opacity .28s ease}
.dt-panel>*{pointer-events:auto}
.dt-panel.dt-out{transform:translateY(110%);opacity:0}
.dt-tray3{width:100%;max-width:1180px;padding:10px;border-radius:18px;background:var(--surf2);border:1px solid var(--g3);box-shadow:0 -6px 20px rgba(0,0,0,.12)}
.dt-hint,.dt-wait,.dt-keys{margin:0;font:600 15px/1.45 var(--font-sans);color:var(--fg);text-align:center}
.dt-hint svg{vertical-align:middle}
.dt-hint.bad{font-weight:700}
.dt-hint.bad::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:currentColor;vertical-align:1px}
.dt-keys{font:500 13.5px var(--font-mono);color:var(--g6)}
@media (pointer:coarse){.dt-kbonly{display:none}.dt-status:has(>.dt-kbonly:only-child){display:none}}
/* pick */
.dt-pickwrap{display:flex;flex-direction:column;gap:10px}
@media (min-width:900px){.dt-pickwrap.two{flex-direction:row}.dt-pickwrap.two .dt-hand{flex:1;min-width:0}}
.dt-handname{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:600 15px var(--font-sans);color:var(--g6)}
.dt-handname b{color:var(--fg)}
.dt-handname .pd-xs{width:26px;height:auto}
.dt-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dt-pick,.dt-tool{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:8px 10px 10px;border:1.5px solid var(--g3);border-radius:14px;background:var(--bg);color:var(--fg);text-align:left;cursor:pointer;transition:border-color .12s,opacity .2s,flex-grow .2s}
.dt-pick:hover,.dt-tool:hover{border-color:var(--g5)}
.dt-pick:focus-visible,.dt-tool:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
.dt-pick.on,.dt-tool.on{border:2px solid var(--fg);background:var(--surf3);color:var(--fg)}
.dt-pick.dim{opacity:.45}
.dt-pick b,.dt-tool b{font:700 15.5px var(--font-sans);color:var(--fg)}
.dt-pick span,.dt-tool span{font:500 13.5px/1.35 var(--font-sans);color:var(--g6)}
.dt-pick.on span,.dt-tool.on span,.dt-pick.on .dt-kind{color:var(--fg)}
.dt-kind{font:500 11.5px var(--font-mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:var(--g5)}
.dt-mini{display:block;width:100%;aspect-ratio:12/5;border-radius:10px;background:var(--bg);margin-bottom:2px}
/* build: the chosen object bigger than the other two, then one big Confirm, and a quieter row of fine controls */
.dt-buildtray{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:12px;align-items:center}
.dt-tray{display:flex;gap:8px}
.dt-tool{flex:1 1 0}
.dt-tool.on{flex:1.6 1 0}
.dt-bctl{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.dt-confirm{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin-top:0;font-size:17px}
.dt-sec{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
.dt-nudge,.dt-zoom{display:inline-flex;gap:4px}
.dt-mini-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;height:40px;padding:0;border:1px solid var(--g3);border-radius:12px;background:transparent;color:var(--fg);font:600 13.5px var(--font-sans);cursor:pointer}
.dt-mini-btn.wide{padding:0 12px}
.dt-mini-btn:hover:not(:disabled){background:var(--surf3)}
.dt-mini-btn:disabled{opacity:.4;cursor:default}
.dt-mini-btn svg{width:18px;height:18px}
.dt-pass{font-size:13.5px;color:var(--g6)}
.dt-buildacts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin-top:8px}
.dt-buildacts .start{margin-top:0}
@media (max-width:760px){
  .dt-buildtray{grid-template-columns:1fr;gap:8px}
  .dt-tool span,.dt-pick span{display:none}
  .dt-pick,.dt-tool{padding:6px 6px 8px}
  .dt-pick b,.dt-tool b{font-size:13.5px}
  .dt-confirm{min-height:48px}
}
/* race: the status line, and big buttons that never select, call out or scroll the page */
.dt-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px;padding:6px 14px;border-radius:999px;background:var(--surf2);border:1px solid var(--g3)}
.dt-wait{font-size:15px}
.dt-pads{display:flex;justify-content:space-between;gap:12px;width:100%;max-width:1180px}
.dt-pads[hidden]{display:none}
.dt-pad{display:flex;justify-content:space-between;gap:12px;width:100%}
.dt-pads.two .dt-pad{width:auto;gap:6px}
.dt-padgrp{display:flex;gap:10px}
.dt-pads.two .dt-padgrp{gap:6px}
.dt-pb{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:76px;height:72px;padding:0;border:2px solid var(--g4);border-radius:20px;background:var(--surf2);color:var(--fg);font:700 15px var(--font-sans);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.dt-pb svg{width:30px;height:30px}
.dt-pb.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.dt-jump{width:118px}
.dt-pads.two .dt-pb{width:52px;height:60px}
.dt-pads.two .dt-jump{width:60px}
.dt-pads.two .dt-jump span{display:none}
.dt-pad-demo .dt-pb{width:70px;height:66px}
.dt-pad-demo .dt-jump{width:108px}
.dt-pad-demo.idle{opacity:.4}
.dt-fly{position:fixed;z-index:80;width:22px;height:22px;margin:-11px 0 0 -11px;pointer-events:none;opacity:0;transition:transform .6s cubic-bezier(.4,.1,.3,1),opacity .15s}
.dt-fly .dt-coin{width:22px;height:22px}
/* the try-it-yourself steps on the entry screen */
.dt-demo-acts{min-height:104px;justify-content:flex-start}
.dt-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0;padding:0;list-style:none}
.dt-steps li{display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 4px;border-radius:999px;border:1px solid var(--g3);font:600 14px var(--font-sans);color:var(--g5)}
.dt-steps li i{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--surf3);font:700 12px var(--font-mono);font-style:normal}
.dt-steps li i svg{width:14px;height:14px}
.dt-steps li.on{border-color:var(--fg);color:var(--fg)}
.dt-steps li.on i{background:var(--fg);color:var(--bg)}
.dt-steps li.done{color:var(--fg)}

@media (max-width:720px){
  .dt-over{padding:76px 10px 90px}
  .dt-chip{padding:3px 8px 3px 3px;gap:5px}.dt-bar .dt-round~.dt-chip{padding:3px 3px 3px 8px}
  .dt-chip .pd-sm{width:26px}
  .dt-round{padding:3px 10px}
  .dt-iconbtn{width:38px;height:38px}
  .dt-saybox{font-size:15.5px;padding:7px 14px}
  .dt-pb{width:68px;height:64px}.dt-jump{width:104px}
  .dt-pads.two .dt-pb{width:46px;height:56px}.dt-pads.two .dt-jump{width:52px}
  .dt-card{padding:16px}
}
/* on a wide screen the result sits to the left, so the ducks by the house stay in view */
@media (min-width:900px){.dt-game[data-stage="done"] .dt-over{justify-content:flex-start;padding-left:max(24px,6vw)}}
/* a narrow phone: both ducks on the first row with the buttons, the round and the clock in a small row under them */
@media (max-width:560px){.dt-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;row-gap:6px}.dt-bar .dt-round{grid-row:2;grid-column:1/-1;justify-self:center;flex-direction:row;gap:8px;align-items:baseline;padding:2px 12px}.dt-bar .dt-tools{grid-row:1;grid-column:3}.dt-bar .dt-round~.dt-chip{grid-row:1;grid-column:2}}
@media (max-width:520px){.dt-nick{display:none}.dt-round b{font-size:14px}.dt-round span{font-size:11.5px}.dt-tools{gap:4px}}
@keyframes dtBump{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
@keyframes dtWobble{0%,100%{rotate:0deg}30%{rotate:-4deg}60%{rotate:3deg}}
@keyframes dtPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
@keyframes dtRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes dtLost{0%{transform:scale(1.6);fill:var(--fg)}60%{transform:scale(.8)}100%{transform:none}}
@keyframes dtBlink{50%{opacity:.25}}
@keyframes dtThink{0%,100%{rotate:0deg}50%{rotate:-6deg}}
@media (prefers-reduced-motion:reduce){.dt-score.bump,.dt-count,.dt-flash.on,.dt-demo-cap.big,.dt-card,.dt-atts svg.lost,.dt-rptag i,.dt-turn .pd-sm{animation:none}.dt-fly,.dt-panel{transition:none}}
