/* Noodle's Wagon Code (/play/wagon-code/). Cut paper look from site.css; no background-blend-mode (iPad Safari). */
.wg-hero .ph-art{position:relative}
.wg-hero-art{min-height:240px}
.wg-hero-noodle{width:min(380px,74vw)!important;filter:drop-shadow(0 12px 10px rgba(40,30,20,.34));transform:rotate(-3deg);display:block;margin:0 auto 6px}

.wg-cab{position:relative}
.wg-hud{font-size:15px;letter-spacing:.5px;color:var(--yellow)}
.wg-screen{background-color:var(--paper);color:var(--navy);border-radius:18px;padding:clamp(10px,2vw,22px);min-height:480px;position:relative}
.wg-noodle{display:flex;align-items:center;gap:12px;margin:12px 4px 2px;min-height:64px}
.wg-noodle img{width:58px;height:auto;flex:0 0 auto;filter:drop-shadow(0 4px 4px rgba(0,0,0,.3))}
.wg-noodle p{background:var(--butter);color:var(--navy);font-family:var(--voice);font-size:21px;line-height:1.2;padding:8px 14px;border-radius:14px;position:relative;box-shadow:0 4px 0 rgba(0,0,0,.18)}
.wg-noodle p::before{content:"";position:absolute;left:-9px;top:50%;margin-top:-8px;border:8px solid transparent;border-right-color:var(--butter);border-left:0}
.wg-pop p{animation:wgPop .35s ease}
@keyframes wgPop{0%{transform:scale(.92)}60%{transform:scale(1.04)}100%{transform:none}}
.wg-foot{text-align:center;margin:22px 0 80px;font-weight:800}

.wg-h{font-family:var(--display);font-weight:800;font-size:clamp(26px,3.4vw,38px);line-height:1.1}
.wg-kicker{font-family:var(--mark);color:var(--redd);font-size:18px;transform:rotate(-1deg);display:inline-block}
.wg-sub{max-width:62ch;margin:8px 0 14px}
.wg-tip{font-size:15px;color:#3A4566;margin-top:8px}
.wg-tip.big{font-size:17px;font-weight:700;color:var(--navy);max-width:64ch}
.wg-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:10px 0}
.wg-row .chunk{font-size:18px;padding:6px 16px}.wg-row .chunk.big{font-size:22px;padding:8px 24px}
.wg-face{width:30px;height:30px;border-radius:50%;object-fit:cover;border:2px solid var(--navy);background:#fff;flex:0 0 auto}

/* stars */
.wg-stars{display:inline-flex;gap:2px;vertical-align:middle}
.wg-stars i{display:inline-block;width:18px;height:18px;background:url(/img/pr-star.webp) center/contain no-repeat;filter:grayscale(1);opacity:.3}
.wg-stars i.on{filter:none;opacity:1}

/* ---------- home ---------- */
.wg-home-top{display:flex;gap:20px;align-items:center;justify-content:space-between}
.wg-home-copy{flex:1 1 auto;min-width:0}
.wg-home-art{position:relative;flex:0 0 150px;height:170px}
.wg-home-wagon{height:160px;width:auto;transform:rotate(24deg);filter:drop-shadow(0 8px 8px rgba(40,30,20,.35));animation:wgIdle 3.6s ease-in-out infinite}
.wg-home-box{position:absolute;left:44px;top:66px;width:46px;height:auto;transform:rotate(24deg);animation:wgIdle 3.6s ease-in-out infinite}
@keyframes wgIdle{0%,84%,100%{translate:0 0}88%{translate:-2px 0}92%{translate:3px 0}96%{translate:-2px 0}}
.wg-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:8px}
.wg-day{background:var(--cream);border-radius:16px;padding:10px;box-shadow:0 4px 0 rgba(70,45,20,.16);position:relative}
.wg-day.done{background:var(--mint)}
.wg-day h3{font-size:19px}.wg-day h3 span{display:block;font-size:14px;color:var(--redd);font-family:var(--mark);font-weight:400}
.wg-day>p{font-size:13px;line-height:1.25;margin:2px 0 8px;min-height:32px}
.wg-lvs{display:flex;flex-direction:column;gap:6px}
.wg-lv{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;text-align:left;font-family:var(--display);font-weight:800;color:var(--navy);background:#fff;border:3px solid var(--navy);border-radius:12px;padding:5px 8px;box-shadow:0 4px 0 var(--navy2);cursor:pointer;min-height:56px;position:relative}
.wg-lv:active{transform:translateY(3px);box-shadow:0 1px 0 var(--navy2)}
.wg-lv b{grid-row:1/3;width:28px;height:28px;border-radius:50%;background:var(--yellow);display:flex;align-items:center;justify-content:center;font-size:16px}
.wg-lv-n{font-size:14px;line-height:1.1}
.wg-lv .wg-st{font-size:12px;color:var(--good)}.wg-lv .wg-st.lock{color:#6B7190}.wg-lv .wg-st.new{color:var(--redd)}
.wg-lv.locked{background:#E4DED0;border-color:#6B7190;box-shadow:0 4px 0 #6B7190;color:#454C6B;cursor:not-allowed}.wg-lv.locked b{background:#CFC8B8}
.wg-lv.open{background:var(--butter)}
.wg-rib{position:absolute;right:4px;top:-8px}.wg-rib img{width:22px;height:auto}
.wg-day-gift{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;margin-top:8px}.wg-day-gift img{width:26px;height:26px;object-fit:contain}
.wg-stats{display:flex;flex-wrap:wrap;gap:6px 22px;align-items:center;font-family:var(--display);font-size:17px;margin-top:14px}
.wg-stats img{width:24px;height:24px;object-fit:contain;vertical-align:-5px}.wg-stats b{font-size:21px}
.wg-resetline{margin-top:10px}

/* ---------- job board ---------- */
.wg-board{list-style:none;padding:0;margin:10px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.wg-job{background:var(--butter);border-radius:14px;padding:10px 14px;display:flex;flex-direction:column;gap:6px;transform:rotate(-.6deg)}
.wg-job:nth-child(even){transform:rotate(.8deg);background:var(--sky)}
.wg-job b{font-family:var(--display);font-size:18px}.wg-job em{font-style:normal;font-size:14px;font-weight:800;color:var(--good)}
.wg-jl{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px}.wg-jl-item{width:34px;height:34px;object-fit:contain}
.wg-wxline{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:800}.wg-wxline img{width:38px;height:38px;object-fit:contain}

/* ---------- play ---------- */
.wg-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.wg-title{font-size:clamp(20px,2.4vw,27px)}
.wg-teach{flex:1 1 100%;font-size:15px;line-height:1.3;margin:0}
.wg-jobs{list-style:none;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:8px}
.wg-jobchip{display:flex;align-items:center;gap:8px;background:var(--cream);border:2px solid #D9C79C;border-radius:12px;padding:4px 10px;font-size:14px;line-height:1.15}
.wg-jc-item{width:30px;height:30px;object-fit:contain}
.wg-jc-t{display:flex;flex-direction:column}.wg-jc-t b{font-weight:800}
.wg-by{font-style:normal;font-weight:800;color:var(--redd);display:flex;align-items:center;gap:4px}.wg-by img{width:16px;height:16px}
.wg-jc-s{font-family:var(--display);font-weight:800;color:var(--good);margin-left:4px}
.wg-jobchip.riding{background:var(--butter);border-color:#E0B93A}
.wg-jobchip.done{background:var(--mint);border-color:#7DBB8A}.wg-jobchip.done .wg-jc-item{opacity:.5}
.wg-jobchip.late{background:#F9D7D2;border-color:var(--red)}

.wg-stage{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);gap:16px;align-items:start}
.wg-mapwrap{width:100%;max-width:600px;justify-self:center}
.wg-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.wg-label{font-family:var(--display);font-weight:800;font-size:16px;margin:0 0 4px}.wg-label span{font-family:var(--body);font-weight:400;font-size:13px;color:#3A4566;margin-left:6px}
.wg-counts{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:15px;margin:0}
.wg-ct{background:var(--cream);border-radius:10px;padding:3px 10px;display:inline-block}
.wg-ct b{font-family:var(--display);font-size:18px}
.wg-ct.good{background:var(--mint)}.wg-ct.over{background:var(--butter)}
.wg-clock img{width:20px;height:20px;vertical-align:-4px;margin-right:5px}.wg-clock.over{background:#F9D7D2;color:var(--redd)}

/* the map: a square board. Every child sits on a square with --x and --y */
.wg-map{position:relative;width:100%;aspect-ratio:var(--w)/var(--h);background:#9CCB73;border:4px solid var(--navy);border-radius:18px;overflow:hidden;box-shadow:0 6px 0 var(--navy2);user-select:none;-webkit-user-select:none}
.wg-map>*,.wg-dots>i,.wg-fx>.wg-float{position:absolute;left:calc(var(--x) * 100% / var(--w));top:calc(var(--y) * 100% / var(--h));width:calc(100% / var(--w));height:calc(100% / var(--h))}
.wg-c.grass{background:#A9D680}.wg-c.grass.alt{background:#9FCF76}
.wg-c.road{background:#F4E4BF;outline:2px dashed rgba(255,255,255,.95);outline-offset:-6px;box-shadow:inset 0 0 0 1px rgba(160,125,70,.25)}
.wg-c.r-tl{border-top-left-radius:34%}.wg-c.r-tr{border-top-right-radius:34%}.wg-c.r-bl{border-bottom-left-radius:34%}.wg-c.r-br{border-bottom-right-radius:34%}
.wg-d{object-fit:contain;transform:scale(.84);pointer-events:none;filter:drop-shadow(0 2px 2px rgba(40,30,20,.28))}
.wg-d-tree{transform:scale(1.12) translateY(-6%);transform-origin:50% 100%}
.wg-d-daisies,.wg-d-grass{transform:scale(.5)}.wg-d-signpost{transform:scale(.74)}
.wg-d-stall,.wg-d-fountain{transform:scale(.98)}
.wg-b{pointer-events:none}
.wg-b img{position:absolute;left:-7%;top:-8%;width:114%;height:108%;max-width:none;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 3px 3px rgba(40,30,20,.35))}
.wg-shut{object-fit:contain;transform:scale(.84);pointer-events:none;filter:drop-shadow(0 2px 2px rgba(40,30,20,.3))}
.wg-pawsq{pointer-events:none;z-index:3}
.wg-pawsq img{position:absolute;left:20%;top:22%;width:60%;height:56%;object-fit:contain;opacity:.9}
.wg-pawsq.maybe::after{content:"?";position:absolute;right:6%;top:4%;width:36%;height:36%;border-radius:50%;background:var(--yellow);border:2px solid var(--navy);font-family:var(--display);font-weight:800;font-size:clamp(11px,1.5vw,16px);display:flex;align-items:center;justify-content:center;line-height:1}
.wg-pawsq.empty img{opacity:.4}
.wg-cat{z-index:255;object-fit:contain;scale:.86;pointer-events:none;transition:opacity .5s ease,transform .6s ease;filter:drop-shadow(0 3px 3px rgba(40,30,20,.35))}
.wg-cat.off{opacity:0;transform:translateY(-70%) scale(.7)}
.wg-cat[hidden]{display:none}
/* stops: what waits at the door (top left) and who is waiting for a delivery (top right) */
.wg-stop{z-index:270;pointer-events:none}
.wg-stop.has-wait,.wg-stop.has-want{box-shadow:inset 0 0 0 3px var(--yellow);border-radius:22%}
.wg-wait{position:absolute;left:-10%;top:-16%;display:flex;width:70%}
.wg-wait img{width:58%;height:auto;margin-right:-22%;filter:drop-shadow(0 2px 2px rgba(40,30,20,.4));animation:wgBob 1.6s ease-in-out infinite alternate}
.wg-wait img:nth-child(2){animation-delay:.4s}
@keyframes wgBob{to{translate:0 -10%}}
.wg-want{position:absolute;right:-10%;top:-16%;width:46%;aspect-ratio:1}
.wg-want+.wg-want{right:22%}
.wg-want img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid var(--navy);background:#fff;box-shadow:0 2px 0 var(--navy2)}
.wg-want.done::after{content:"";position:absolute;right:-12%;bottom:-12%;width:56%;height:56%;border-radius:50%;background:#2E9D55 linear-gradient(#2E9D55,#2E9D55);border:2px solid #fff;-webkit-mask:none}
.wg-want.done::before{content:"";position:absolute;right:2%;bottom:6%;width:18%;height:30%;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg);z-index:1}
.wg-clockdot{position:absolute;left:-18%;bottom:-14%;width:52%;height:52%;background:url(/img/pets/pt-clock.webp) center/contain no-repeat}
.wg-dots{inset:0;left:0!important;top:0!important;width:100%!important;height:100%!important;z-index:240;pointer-events:none}
.wg-dots>i::before{content:"";position:absolute;left:36%;top:36%;width:28%;height:28%;border-radius:50%;background:var(--red);border:2px solid #fff;animation:wgDot .4s ease both;animation-delay:inherit}
@keyframes wgDot{from{transform:scale(0)}60%{transform:scale(1.3)}to{transform:none}}
.wg-wagon{z-index:260;pointer-events:none;transition:left .38s linear,top .38s linear}
.wg-rot{position:absolute;inset:0;transform:rotate(var(--rot,0deg));transition:transform .3s ease}
.wg-rot>img{position:absolute;left:50%;top:50%;height:104%;width:auto;max-width:none;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 3px rgba(40,30,20,.45))}
.wg-load{position:absolute;left:50%;top:59%;width:30%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3%}
.wg-load img{width:100%;height:auto;animation:wgDrop .3s ease both}
.wg-load img+img{width:88%}
@keyframes wgDrop{from{transform:scale(1.8);opacity:0}to{transform:none;opacity:1}}
.wg-map.fast .wg-wagon{transition-duration:.17s}.wg-map.fast .wg-rot{transition-duration:.15s}
.wg-wagon.bump{animation:wgBump .55s ease}
@keyframes wgBump{0%{translate:0 0}20%{translate:-7% 3%}40%{translate:6% -3%}60%{translate:-4% 2%}80%{translate:3% 0}100%{translate:0 0}}
.wg-wagon.yay{animation:wgHop .45s ease 3}
@keyframes wgHop{50%{translate:0 -14%}}
.wg-fx{inset:0;left:0!important;top:0!important;width:100%!important;height:100%!important;z-index:300;pointer-events:none}
.wg-float{display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:800;font-size:clamp(18px,2.6vw,26px);color:var(--good);text-shadow:0 2px 0 #fff,0 -2px 0 #fff,2px 0 0 #fff,-2px 0 0 #fff;animation:wgFloat 1.4s ease-out forwards}
@keyframes wgFloat{from{transform:translateY(0);opacity:1}to{transform:translateY(-120%);opacity:0}}
.wg-bubble{position:absolute;left:3%;right:3%;bottom:3%;display:flex;align-items:center;gap:10px;background:#fff;border:3px solid var(--navy);border-radius:14px;padding:6px 12px;box-shadow:0 4px 0 var(--navy2);animation:wgToast 3.2s ease both}
.wg-bubble[hidden]{display:none}
.wg-bubble img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--navy);flex:0 0 auto}
.wg-bubble p{margin:0;font-size:15px;line-height:1.25}
@keyframes wgToast{0%{transform:translateY(120%)}8%{transform:none}88%{transform:none;opacity:1}100%{transform:translateY(120%);opacity:0}}
/* weather on Daily Routes is for looks only */
.wx-windy .wg-d-tree,.wx-windy .wg-d-bush{animation:wgSway 1.7s ease-in-out infinite alternate}
@keyframes wgSway{from{rotate:-3deg}to{rotate:4deg}}
.wx-rainy{background:#8FC07A}
.wx-rainy::after{content:"";position:absolute;inset:-40px 0 0 0;z-index:290;pointer-events:none;background-image:repeating-linear-gradient(105deg,rgba(255,255,255,0) 0 22px,rgba(255,255,255,.5) 22px 24px,rgba(255,255,255,0) 24px 46px);background-size:92px 80px;opacity:.5;animation:wgRain .5s linear infinite}
@keyframes wgRain{to{background-position:-21px 80px}}

/* step cards */
.wg-card{font-family:var(--display);font-weight:800;color:var(--navy);border:3px solid var(--navy);border-radius:12px;background:#fff;box-shadow:0 4px 0 var(--navy2);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:76px;height:66px;padding:3px;position:relative;cursor:pointer;line-height:1;flex:0 0 auto;transition:transform .08s ease}
.wg-card:active{transform:translateY(3px);box-shadow:0 1px 0 var(--navy2)}
.wg-ci{width:30px;height:30px;display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 auto}
.wg-ci svg{width:100%;height:100%;fill:var(--navy)}
.wg-ci img{width:100%;height:100%;object-fit:contain}
.wg-ci b{position:absolute;right:-14px;bottom:-4px;font-size:13px;background:var(--yellow);border:2px solid var(--navy);border-radius:8px;padding:0 3px;line-height:1.1}
.wg-ci-box i{position:absolute;right:-9px;top:2px;width:0;height:0;border:7px solid transparent}
.wg-ci-box i.up{border-bottom:11px solid var(--good);border-top:0}
.wg-ci-box i.down{border-top:11px solid var(--red);border-bottom:0;top:auto;bottom:2px}
.wg-ci-cat{width:36px}
.wg-ci-lock{background:#CFC8B8;border-radius:50%;width:24px;height:24px}
.wg-cw{font-size:12px;text-align:center;line-height:1.02}
.k-F{background:var(--mint)}.k-L,.k-R{background:var(--sky)}.k-PU,.k-DO{background:var(--butter)}.k-A2,.k-A3{background:var(--lilac)}.k-W{background:#FFD9B8}
.wg-card.locked{background:#E4DED0;border-color:#6B7190;box-shadow:0 4px 0 #6B7190;color:#454C6B;cursor:not-allowed}
.wg-card.fresh{animation:wgFresh 1.2s ease-in-out 3}
@keyframes wgFresh{50%{transform:scale(1.1) rotate(-3deg);box-shadow:0 4px 0 var(--navy2),0 0 0 5px var(--yellow)}}
.wg-shake{animation:wgShake .4s ease}
@keyframes wgShake{20%{translate:-5px 0}40%{translate:5px 0}60%{translate:-4px 0}80%{translate:3px 0}}
.wg-tray{display:flex;flex-wrap:wrap;gap:8px}
.wg-plan{list-style:none;margin:0;padding:8px;display:flex;flex-wrap:wrap;gap:7px 6px;align-content:flex-start;min-height:86px;background:var(--cream);border:3px dashed #C9A85A;border-radius:14px}
.wg-plan li{display:flex}
.wg-card.in{width:64px;height:58px;box-shadow:0 3px 0 var(--navy2)}
.wg-card.in .wg-ci{width:24px;height:24px}.wg-card.in .wg-ci-cat{width:30px}.wg-card.in .wg-cw{font-size:10.5px}
.wg-card.in em{position:absolute;left:-6px;top:-7px;min-width:18px;height:18px;border-radius:9px;background:var(--navy);color:#fff;font-style:normal;font-size:11px;display:flex;align-items:center;justify-content:center;padding:0 3px}
.wg-badge{position:absolute;right:-7px;top:-8px;background:var(--red);color:#fff;border-radius:9px;font-style:normal;font-size:11px;padding:1px 5px;border:2px solid #fff}
.wg-card.in.popin{animation:wgPop .25s ease}
.wg-card.in.now{transform:translateY(-5px) scale(1.08);box-shadow:0 3px 0 var(--navy2),0 0 0 4px var(--yellow);z-index:2}
.wg-card.in.bad{background:#F6B7B0;border-color:var(--red);box-shadow:0 3px 0 var(--redd),0 0 0 4px rgba(194,59,50,.35);animation:wgShake .4s ease}
.wg-caret{width:12px;position:relative;align-self:stretch;min-height:58px}
.wg-caret::before{content:"";position:absolute;left:4px;top:8px;bottom:2px;width:4px;border-radius:2px;background:var(--red);animation:wgBlink 1s steps(2) infinite}
.wg-caret::after{content:"";position:absolute;left:0;top:-2px;border:6px solid transparent;border-top:9px solid var(--red);border-bottom:0}
.wg-caret span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wg-caret:only-child{width:auto;flex:1}
.wg-caret:only-child span{position:static;width:auto;height:auto;clip:auto;display:block;padding:18px 0 0 22px;font-size:15px;color:#6A5A36}
@keyframes wgBlink{50%{opacity:.25}}
.wg-endslot{align-self:center;font-family:var(--display);font-weight:800;font-size:12px;color:var(--navy);background:transparent;border:2px dashed var(--navy);border-radius:10px;padding:6px 8px;min-height:48px;cursor:pointer}
.wg-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.wg-btns .chunk{font-size:17px;padding:6px 14px;min-height:48px}
.wg-btns #wg-go{min-width:120px;min-height:56px;font-size:26px;margin-left:auto;background-color:var(--green);color:var(--navy)}
.wg-map.running{box-shadow:0 6px 0 var(--navy2),0 0 0 4px var(--yellow)}

/* delivered card */
.wg-play{position:relative}
.wg-done{position:absolute;inset:-6px;background:rgba(30,43,91,.6);display:flex;align-items:center;justify-content:center;z-index:500;padding:12px;border-radius:16px}
.wg-done[hidden]{display:none}
.wg-donecard{background:var(--paper);border-radius:20px;padding:16px 22px;max-width:500px;width:100%;max-height:100%;overflow:auto;text-align:center;animation:wgPop .35s ease}
.wg-donecard .wg-row{justify-content:center}
.wg-bigstars .wg-stars{gap:8px}
.wg-bigstars .wg-stars i{width:60px;height:60px}
.wg-bigstars .wg-stars i.on{animation:wgStar .5s ease both}
.wg-bigstars .wg-stars i.on:nth-child(2){animation-delay:.25s}.wg-bigstars .wg-stars i.on:nth-child(3){animation-delay:.5s}
@keyframes wgStar{from{transform:scale(0) rotate(-90deg)}70%{transform:scale(1.25) rotate(8deg)}to{transform:none}}
.wg-used{font-size:16px;line-height:1.4;margin:6px 0}.wg-used b{font-family:var(--display);font-size:20px}
.wg-ribline{font-family:var(--display);font-weight:800;color:var(--good);display:flex;align-items:center;justify-content:center;gap:6px;margin:4px 0}.wg-ribline img{width:28px;height:auto}
.wg-payrows{list-style:none;padding:0;margin:8px auto;max-width:300px;text-align:left}
.wg-payrows li{display:flex;justify-content:space-between;gap:12px;border-bottom:2px dotted #D9C79C;padding:3px 2px;font-size:15px}
.wg-payrows li b{font-family:var(--display)}.wg-payrows li.miss{color:#6B7190}
.wg-earned{font-size:17px;margin:6px 0}.wg-earned b{font-family:var(--display);font-size:22px;color:var(--good)}.wg-earned img{width:26px;height:26px;vertical-align:-6px}

/* payday */
.wg-payday{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.wg-paygrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:640px;margin:8px 0}
.wg-paybox{background:var(--butter);border-radius:16px;padding:10px 14px;display:flex;flex-direction:column;position:relative;min-height:84px}
.wg-paybox span{font-size:14px;font-weight:800}.wg-paybox b{font-family:var(--display);font-size:30px;line-height:1.1}
.wg-paybox img{position:absolute;right:8px;bottom:6px;width:38px;height:38px;object-fit:contain}
.wg-paybox.bank{background:var(--mint)}
.wg-gift{display:flex;align-items:center;gap:14px;background:var(--lilac);border-radius:16px;padding:10px 16px;max-width:640px;animation:wgPop .4s ease}
.wg-gift img{width:84px;height:84px;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 4px 4px rgba(40,30,20,.3))}
.wg-gift h3{font-size:22px}.wg-gift p{margin:0}
.wg-grown{font-size:14px;color:#3A4566;max-width:70ch;margin-top:8px}

/* certificate */
.wg-namelab{font-weight:800;display:flex;align-items:center;gap:8px}
.wg-namelab input{font:inherit;font-weight:700;padding:6px 10px;border:3px solid var(--navy);border-radius:10px;width:170px}
.wg-cert{background:var(--paper);border:6px double var(--navy);border-radius:18px;padding:22px 26px;text-align:center;max-width:760px;margin:12px auto 0;position:relative;color:var(--navy)}
.wg-cert-rib{width:64px;height:auto;display:block;margin:0 auto 2px}
.wg-cert-k{font-family:var(--display);font-weight:800;font-size:clamp(24px,3.4vw,36px);line-height:1.1}
.wg-cert-n{font-family:var(--mark);font-size:clamp(28px,4vw,44px);color:var(--redd);min-height:1.3em;border-bottom:3px solid var(--navy);max-width:420px;margin:8px auto 6px;line-height:1.2}
.wg-cert-t{max-width:52ch;margin:0 auto;font-size:17px}
.wg-cert-s{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;font-family:var(--display);font-weight:800;margin:10px 0 6px}
.wg-cert-skills{list-style:none;padding:0;margin:6px 0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-weight:700}
.wg-cert-skills li::before{content:"";display:inline-block;width:8px;height:14px;border:solid var(--good);border-width:0 3px 3px 0;transform:rotate(45deg);margin-right:8px}
.wg-cert-sign{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.wg-cert-sign img{width:64px;height:auto}
.wg-cert-sign span{display:flex;flex-direction:column;text-align:left;font-size:14px}.wg-cert-sign b{font-family:var(--mark);font-size:24px;font-weight:400}
.wg-cert-foot{font-size:13px;margin-top:8px;color:#3A4566}
@media print{body.wg-printing *{visibility:hidden}body.wg-printing .wg-cert,body.wg-printing .wg-cert *{visibility:visible}body.wg-printing .wg-cert{position:fixed;left:4%;top:6%;width:92%;max-width:none}}

/* laptops with short screens (Chromebook 1366 x 768): keep the map and the plan on one screen */
@media (min-width:900px) and (max-height:820px){.wg-mapwrap{max-width:500px}.wg-card{width:70px;height:60px}.wg-card.in{width:60px;height:54px}}
/* tablets and phones: map on top, My Plan as a strip that scrolls sideways, buttons pinned to the bottom */
@media (max-width:899px){
  .wg-stage{grid-template-columns:1fr;gap:10px}
  .wg-mapwrap{max-width:520px}
  .wg-days{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wg-plan{flex-wrap:nowrap;overflow-x:auto;padding:10px 8px 8px;min-height:80px;scroll-behavior:smooth}
  .wg-card{width:72px;height:60px}
  .wg-btns{position:sticky;bottom:0;background:var(--paper);padding:8px 0 6px;z-index:400;border-top:2px dashed #D9C79C;min-height:56px}
  .wg-home-art{display:none}
  .wg-done{position:fixed;inset:0;border-radius:0;z-index:900}
}
@media (max-width:560px){
  .wg-days{grid-template-columns:1fr}
  .wg-day>p{min-height:0}
  .wg-tray{gap:6px}.wg-card{width:calc(25% - 5px);min-width:64px;height:58px}
  .wg-card.in{width:60px}
  .wg-paygrid{grid-template-columns:1fr 1fr}
  .wg-btns{flex-wrap:nowrap;gap:6px}.wg-btns .chunk{padding:6px 9px;font-size:15px;border-width:3px}.wg-btns #wg-go{min-width:84px;font-size:22px;padding:6px 12px}
  .wg-counts{font-size:13px;gap:4px 6px}.wg-ct{padding:2px 8px}.wg-ct b{font-size:16px}
  .wg-label{font-size:15px;margin-bottom:2px}.wg-side{gap:8px}
  .wg-noodle p{font-size:18px}
  .wg-jobchip{font-size:13px;padding:3px 8px}
}
