:root{--night:#0b1730;--panel:#12213f;--line:#2c3e63;--text:#f4f1ea;--soft:#b9c3d8;--warm:#ffc35c;--ink:#1a1405;--r:14px;--pad:16px;
 --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;height:100dvh;overflow:hidden;background:var(--night);color:var(--text);font:16px/1.4 "DM Sans",system-ui,sans-serif;display:flex;flex-direction:column}
h1{font-size:20px!important}h1,h2{font:600 22px/1.2 Lora,Georgia,serif;margin:0;text-wrap:balance}p{margin:0}
button,input{font:inherit;color:inherit}button{cursor:pointer;min-height:44px;background:none;border:0;padding:0 8px}
a{color:inherit}:focus-visible{outline:3px solid var(--warm);outline-offset:2px}
#map{position:fixed!important;inset:0;z-index:0}
/* billboard: an invitation to the snow globe, from Joey and Whipple. The whole banner is the button. */
#billboard{position:relative;z-index:2;background:linear-gradient(#22386a,#182a50);padding:calc(7px + var(--safe-t)) 12px 0;display:grid;grid-template-columns:76px 1fr auto;column-gap:14px;border-bottom:2px solid var(--warm);box-shadow:0 4px 18px rgb(0 0 0/.45)}
.id{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;font-size:min(4.6vw,19px);line-height:1.25;white-space:nowrap;padding-bottom:2px}
.face{position:relative;align-self:end}.face img{width:100%;height:auto;display:block}.face .award{position:absolute;width:29px;right:-4px;bottom:6px}
/* the headline grows with the screen, the button is as wide as it, and both sit midway between the award logo and the globe */
.ask{display:grid;align-content:end;gap:8px;justify-self:center;margin:0 -3px 0 3px;padding-bottom:7px}.ask strong{font:600 clamp(17px,(100vw - 222px)/8.95,19px)/1.2 Lora,Georgia,serif;text-wrap:balance}
#billboard button{min-height:0;padding:0;font-weight:700;font-size:15px}#billboard button{display:flex;align-items:center;gap:8px;white-space:nowrap}.play{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;background:var(--warm);color:var(--ink);border-radius:9px;padding:4px 9px 4px 8px}.play svg{width:10px;height:12px}#playHint{font-size:13px;font-weight:500;color:var(--soft)}#billboard button::after{content:"";position:absolute;inset:0}
#playGlobe{pointer-events:none;align-self:end;transform-origin:50% 100%;animation:nudge 9s 1.5s 3}#playGlobe svg{display:block;width:88px;height:97px;margin-bottom:-1px}
/* the globe gets a little shake, three times, so it reads as something to play with. While it moves it sits above the banner's button, so taps must pass through it */
@keyframes nudge{0%,9%,to{transform:none}1.5%{transform:rotate(-5deg)}3%{transform:rotate(4.5deg)}4.5%{transform:rotate(-3deg)}6%{transform:rotate(2deg)}7.5%{transform:rotate(-1deg)}}
#strip{display:none;position:relative;z-index:2;background:#1d3160;border-bottom:2px solid var(--warm);text-decoration:none;padding:calc(6px + var(--safe-t)) 12px 6px;align-items:center;white-space:nowrap;justify-content:space-between;gap:12px;line-height:1.3}
#strip b,#strip span{display:block}#strip b{font-size:18px}#strip span{font-size:16px}#strip svg{flex:0 1 140px;min-width:0;height:46px}
#turn{display:none;position:relative;z-index:2;background:#0d5c3f;margin:10px;border-radius:var(--r);padding:12px 16px;gap:14px;align-items:center;box-shadow:0 8px 24px rgb(0 0 0/.45)}
#turn svg{width:52px;height:52px;flex:none}#arrow{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
#turn div{display:flex;flex-direction:column;min-width:0}#turnDist{font-size:30px;line-height:1.05;font-variant-numeric:tabular-nums}#turnText{font-size:18px;line-height:1.25}
/* not fully opaque on purpose: Chrome stops painting the map behind a solid scrolling panel */
#sheet{position:relative;z-index:3;margin-top:auto;background:rgb(18 33 63/.98);border-radius:20px 20px 0 0;padding:16px var(--pad) calc(12px + var(--safe-b));max-height:66dvh;overflow:auto;box-shadow:0 -10px 40px rgb(0 0 0/.5)}
#sheet>*{display:none}
[data-screen=plan] #plan{display:grid;gap:8px}[data-screen=route] #route,[data-screen=arrive] #arrive,[data-screen=done] #done{display:grid;gap:12px}
[data-screen=drive] #drive{display:grid;gap:10px}
[data-screen=route] #strip,[data-screen=drive] #strip,[data-screen=arrive] #strip{display:flex}
[data-screen=route] #billboard,[data-screen=drive] #billboard,[data-screen=arrive] #billboard{display:none}
[data-screen=drive] #turn{display:flex}#turn.note{min-height:76px}#turn.note :is(svg,#turnDist){display:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* home drawer. --drop is how far it is pulled down; the buttons above it move with it */
body{--drop:0px}body.down{--drop:calc(var(--sheet,400px) - 56px - var(--safe-b))}
[data-screen=plan] #grab{display:grid}#grab{position:sticky;top:0;z-index:6;width:100%;min-height:44px;place-content:center;justify-items:center;gap:5px;background:var(--panel);color:var(--soft);font-size:13px;line-height:1.2;touch-action:none}
#grab i{width:40px;height:4px;border-radius:2px;background:#5d6f97}body.down #grab{min-height:56px;font-size:17px;font-weight:700;color:var(--warm)}
[data-screen=plan] #sheet{padding-top:0;max-height:calc(100dvh - 228px - var(--safe-t))}
.where{background:var(--night);border:1px solid var(--line);border-radius:12px}.field{position:relative;display:grid;grid-template-columns:52px 1fr auto;align-items:center;min-height:48px;padding:0 4px 0 12px}.field+.field{border-top:1px solid var(--line)}
.field:focus-within{box-shadow:0 0 0 2px var(--warm);border-radius:11px}.field label{font-size:14px;color:var(--soft)}.field input{background:none;border:0;outline:0;min-width:0;width:100%;height:46px;font-size:16px;text-overflow:ellipsis}.field input::placeholder{color:#93a1bf}.field button{color:var(--warm);font-weight:500;font-size:14px;white-space:nowrap}
.field input[type=range]{accent-color:var(--warm);cursor:pointer;margin:0}.field output{font-weight:700;min-width:92px;text-align:right;padding-right:8px;white-space:nowrap}
.count{display:flex;align-items:center;min-height:44px}.count span{flex:1}.count button{width:48px;border:1px solid var(--line);border-radius:10px;color:var(--warm);display:grid;place-items:center;padding:0}.count button:disabled{opacity:.4}.count svg{width:22px;height:22px}.count output{width:44px;text-align:center;font-weight:700;font-size:20px;font-variant-numeric:tabular-nums}#loopNote{color:var(--soft);font-size:15px}
.sugg{position:absolute;z-index:5;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:#1b2d52;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgb(0 0 0/.5)}
.sugg button{width:100%;text-align:left}.sugg button:hover{background:#263b68}
.field:focus-within{z-index:2;border-radius:0}.field:first-child:focus-within{border-top-left-radius:11px;border-top-right-radius:11px}.field:focus-within:not(:has(~ .field:not([hidden]))){border-bottom-left-radius:11px;border-bottom-right-radius:11px}
.field+.field:focus-within{border-top-color:transparent}
.sugg .here{display:flex;align-items:center;gap:10px}.sugg svg{width:20px;height:20px;flex:none}
#short{background:#1b2d52;border-radius:10px;padding:10px 12px}.head span{white-space:nowrap}[data-screen=route] #sheet{max-height:52dvh}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--night);border-radius:12px}.seg input,.chips input{position:absolute;opacity:0;width:1px;height:1px}
.seg label,.chips label{cursor:pointer;position:relative}.seg span{display:grid;place-items:center;min-height:44px;font-size:15px;border-radius:12px;color:var(--soft)}.seg input:checked+span{background:var(--text);color:var(--night);font-weight:700}
.seg input:focus-visible+span,.chips input:focus-visible+span{outline:3px solid var(--warm);outline-offset:2px}
.chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}.chips span{display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:10px;font-size:14px;color:var(--soft);white-space:nowrap}
.chips span::before{content:"";width:18px;height:18px;flex:none;border:2px solid #6d7fa8;border-radius:5px}.chips input:checked+span{color:var(--text)}.chips input:checked+span::before{border-color:var(--warm);background:var(--warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3.500 3.500L12 4' fill='none' stroke='%231a1405' stroke-width='2.500'/%3E%3C/svg%3E") center/14px no-repeat}
#find{position:sticky;bottom:0;box-shadow:0 0 0 8px var(--panel);z-index:1}
.go{background:var(--warm);color:var(--ink);font-weight:700;font-size:18px;min-height:54px;border-radius:12px;width:100%;transition:transform .12s}.go:active{transform:scale(.98)}.go:disabled{opacity:.6}
.links{display:flex;justify-content:space-between}.links button{display:grid;justify-items:center;gap:2px;padding:2px 0;font-size:13px;line-height:1.3;color:var(--text);white-space:nowrap}.links svg{width:22px;height:22px;color:var(--warm)}#plan .fine a{padding:8px 0}.two{display:flex;gap:8px}.two button{flex:1;border:1px solid var(--line);border-radius:10px}#saveSteps{display:grid;gap:10px;padding-left:22px;font-size:17px}.plain,.head button{color:var(--soft);text-decoration:underline;text-underline-offset:3px}
.fine{font-size:13px;color:var(--soft)}#err,#startErr{background:#5a1f25;padding:10px 12px;border-radius:10px}
#err ol,#startErr ol{text-align:left;margin:8px 0 0;padding-left:22px;display:grid;gap:4px}#err div,#startErr div{display:flex;gap:8px;margin-top:10px}#startErr div{justify-content:center}#err button,#startErr button{border:1px solid currentColor;border-radius:10px;padding:0 14px}
.head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.stops{list-style:none;margin:0;padding:0}.stops li{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.stops strong{display:block;line-height:1.25}.stops small{color:var(--soft);font-size:14px}.stops li>span:last-child{display:flex}.stops button{width:44px;padding:0;display:grid;place-items:center;color:var(--warm)}.stops button:last-child{color:var(--soft)}.stops button:disabled{opacity:.3}.stops button svg{width:24px;height:24px}
.addstop{width:100%;border:1px solid var(--line);border-radius:10px;color:var(--warm);font-weight:700}#stopsErr,#hereErr{background:#5a1f25;padding:10px 12px;border-radius:10px}
/* on a drive the list opens under the turn box, which keeps showing */
#stopsDlg[open]{display:grid;gap:10px}:is(#stopsDlg,#lightsDlg) .head{position:sticky;top:-16px;z-index:1;margin:-16px 0 0;padding:8px 0 0;background:var(--panel)}:is(#stopsDlg,#lightsDlg) .head button{color:var(--warm);font-weight:700;text-decoration:none}:is(#stopsDlg,#lightsDlg)>p{color:var(--soft);font-size:15px}
[data-screen=drive] :is(#stopsDlg,#lightsDlg){margin:calc(var(--turn,180px) + 10px) auto auto;max-height:calc(100dvh - var(--turn,180px) - 20px - var(--safe-b))}[data-screen=drive] :is(#stopsDlg,#lightsDlg)::backdrop{background:linear-gradient(transparent var(--turn,180px),rgb(3 8 20/.75) 0)}
#lights{list-style:none;margin:10px 0 0;padding:0}#lights li{border-top:1px solid var(--line)}#lights button{width:100%;min-height:56px;display:flex;gap:12px;align-items:center;text-align:left;padding:8px 0}#lights small{display:block;color:var(--soft);font-size:14px}
.bulb{width:24px;height:36px;flex:none;filter:drop-shadow(0 0 6px currentColor)}.no{position:relative;width:24px;height:36px}.no b{position:absolute;inset:11px 0 auto;text-align:center;color:#fff;font-size:14px;line-height:1.3;text-shadow:0 1px 3px #000,0 0 2px #000}
.night{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:30px}#lit{display:flex;gap:7px;align-items:center;background:linear-gradient(#2f6b4a,#2f6b4a) 0 5px/100% 2px no-repeat;padding:0 4px}#lit{min-width:0}#lit:has(svg:nth-child(8)){gap:2px}#lit svg{flex:0 1 auto;min-width:0;width:15px;height:23px;color:#4a5d88}#lit .on{color:var(--c);filter:drop-shadow(0 0 5px var(--c))}#lit .now{width:20px;height:30px;color:var(--text);filter:drop-shadow(0 0 6px var(--warm))}#drive #doneBy{font-size:15px;color:var(--text);white-space:nowrap}
.next{display:flex;gap:12px;align-items:center}.next div{flex:1;min-width:0;display:flex;flex-direction:column}#drive small,#drive div span{color:var(--soft);font-size:14px}#nextName{font-size:19px;line-height:1.2}
#edge{display:none;position:fixed;z-index:2;right:10px;bottom:calc(var(--sheet,110px) + 10px);gap:10px;align-items:center;text-align:left;background:rgb(11 23 48/.94);border:2px solid var(--warm);border-radius:10px;padding:2px 12px 2px 10px;min-height:48px;font-weight:700;line-height:1.2;box-shadow:0 4px 16px #000a}[data-screen=drive] #edge{display:flex}
#edge svg{width:26px;height:26px;color:var(--warm);flex:none}#edge small{display:block;font-size:13px;font-weight:400}body:not([data-screen=drive]) #nearPop{display:none}
.pin.offer{opacity:1!important;width:34px;height:51px;z-index:3}.pin.offer svg{animation:glow 1s ease-in-out infinite alternate}@keyframes glow{to{filter:drop-shadow(0 0 16px var(--c)) brightness(1.3)}}
.private{display:flex;gap:8px;align-items:center;justify-content:center;font-size:14px;color:#a9e3c3}.private svg{width:18px;height:18px;flex:none}
.startbar{position:sticky;bottom:0;background:var(--panel);box-shadow:0 0 0 14px var(--panel);display:grid;gap:8px;text-align:center;font-size:14px}
#welcome[open]{display:grid;gap:10px;max-height:94dvh}#welcome h2{font-size:20px;outline:0}#welcome h3{margin:0;font:700 19px/1.2 "DM Sans"}#welcome .warn{background:var(--warm);color:var(--ink);border-radius:12px;padding:12px 14px;display:grid;gap:4px}#welcome ul{margin:0;padding-left:20px;display:grid;gap:8px;font-size:15px}
.acts{display:grid;grid-auto-flow:column;gap:8px}.acts button{border:1px solid var(--line);border-radius:10px}#drive button:disabled,#nearPop button:disabled{opacity:.5}
#view{display:none;position:fixed;z-index:2;left:10px;bottom:calc(var(--sheet,110px) + 10px);background:var(--text);color:var(--night);font-weight:700;border-radius:10px;padding:0 14px}[data-screen=drive] #view{display:block}
#saw{min-height:68px;font-size:24px}[data-screen=arrive] #arrive{gap:8px}[data-screen=arrive] #sheet{max-height:70dvh}#hereMeta{color:var(--soft)}
.tally{display:flex;flex-wrap:wrap;gap:5px}.tally svg{width:14px;height:21px}
#sim{display:none;position:fixed;z-index:2;right:10px;bottom:calc(var(--sheet,110px) + 64px);font-size:13px;background:rgb(11 23 48/.88);border:1px dashed var(--line);border-radius:10px;padding:0 4px 0 12px;align-items:center}#sim button{color:var(--warm)}[data-screen=drive] #sim{display:flex}
#hint{position:fixed;z-index:4;bottom:calc(24px + var(--safe-b));left:50%;transform:translateX(-50%);background:var(--warm);color:var(--ink);font-weight:700;padding:4px 6px 4px 18px;border-radius:12px;white-space:nowrap}#hint button{text-decoration:underline;text-underline-offset:3px;margin-left:8px}
.tip{position:fixed;z-index:4;left:10px;right:10px;bottom:calc(var(--sheet,110px) - var(--drop) + 10px);background:var(--text);color:var(--night);border-radius:14px;padding:12px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;box-shadow:0 10px 30px #000b}.tip strong,.tip div span{display:block;line-height:1.3}.tip div span{font-size:14px}.tip svg:not(.bulb){width:22px;height:22px;display:block}.tip .x{margin:-8px -6px 0 0;padding:0 11px}
.tip .two{grid-column:1/-1}.tip .two button{border-color:#a9b1c2;font-weight:700}.tip .yes{background:var(--night);color:var(--text)}#seenSpot[aria-pressed=true]{background:#1f7a4d;color:#fff}
#nearPop .two{flex-wrap:wrap}#nearPop .two button{flex:1 1 auto;font-size:15px;padding:0 4px}
/* Near me: a round button above the map credit, only while the map is open */
#near{display:none;position:fixed;z-index:1;right:10px;bottom:calc(var(--sheet,110px) - var(--drop) + 100px);width:48px;height:48px;padding:0;place-items:center;background:rgb(11 23 48/.94);border:2px solid var(--warm);border-radius:50%;box-shadow:0 4px 16px #000a}body.down[data-screen=plan] #near{display:grid}body.picking #near{display:none!important}#near svg{width:30px;height:30px;color:#4aa8ff}#near:disabled svg{animation:seek 1s linear infinite}@keyframes seek{to{transform:rotate(1turn)}}
#nearCard{grid-template-columns:1fr auto;overflow:hidden}#nearCard>ol{grid-column:1/-1;margin:0;padding:0;list-style:none;overflow:auto;max-height:calc(46dvh - 92px)}#nearCard>ol li{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;border-top:1px solid #c9ced9;padding:6px 0}#nearCard>ol button{background:var(--night);color:var(--text);border-radius:10px;font-weight:700;min-width:64px}
.me{width:20px;height:20px;border-radius:50%;background:#4aa8ff;border:3px solid #fff;box-shadow:0 0 0 0 rgb(74 168 255/.6),0 2px 8px #000a;animation:me 2s infinite;pointer-events:none}@keyframes me{to{box-shadow:0 0 0 22px rgb(74 168 255/0),0 2px 8px #000a}}[data-screen=drive] .me,[data-screen=arrive] .me{display:none}
body:has(:is(#nearCard,#spot):not([hidden])) #near{visibility:hidden}@media(max-width:799px){body:has(#nearCard:not([hidden])) #fun{visibility:hidden}}
#nearNote ol{margin:8px 0 0;padding-left:22px}#nearNote button{margin-top:10px;border:1px solid #a9b1c2;border-radius:10px;padding:0 14px;font-weight:700}
@media(min-width:800px){#near{left:452px;right:auto;bottom:16px}[data-screen=plan] #near{display:grid}#nearCard{bottom:72px}}
body.picking #sheet{display:none}
@media(max-width:374px){#fun svg{display:none}#billboard{grid-template-columns:60px 1fr auto;column-gap:10px;padding-inline:8px}.ask strong{font-size:clamp(15px,(100vw - 180px)/8.95,16.5px)}.ask{gap:6px;padding-bottom:6px}#billboard button{gap:7px}.play{padding:3px 10px 3px 8px;gap:5px;font-size:14px}#playHint{font-size:12.5px}#playGlobe svg{width:74px;height:81px}.field{grid-template-columns:42px 1fr auto;padding-left:8px}.field button{font-size:13px;padding:0 4px}.chips span{font-size:13px;gap:5px}.links button{font-size:12px}}
@media(max-height:700px){[data-screen=route] #sheet{max-height:60dvh}}
@media(max-width:374px){.acts{gap:5px}.acts button{font-size:14px;padding:0 4px}.stops li{grid-template-columns:24px 1fr auto;gap:4px}#stopsDlg{padding-inline:10px}}
#playDrive{display:none;position:fixed;z-index:2;left:10px;bottom:calc(var(--sheet,110px) + 66px);width:56px;height:56px;padding:0;place-items:center;border-radius:50%;background:rgb(11 23 48/.94);border:2px solid var(--warm);box-shadow:0 4px 16px #000a}#playDrive svg{width:34px;height:34px}[data-screen=drive] #playDrive{display:grid}
/* the snow globe takes the room under the names strip and, on a drive, the turn box */
body.playing #strip{display:flex}body.playing :is(#billboard,#fun,#sheet,#view,#edge,#sim,#nearPop,#spot,#playDrive){display:none!important}
/* map bulbs */
.pin::after{content:"";position:absolute;inset:-9px -13px}.pin{width:17px;height:26px;color:var(--c);cursor:pointer;transition:opacity .3s}.pin svg{width:100%;height:100%;display:block;filter:drop-shadow(0 0 6px var(--c))}
.pin.off{opacity:.35}.pin.off svg{filter:none}.pin.seen{color:#8a7a50}.pin.seen svg{filter:none}
.pin.stop{width:38px;height:57px;z-index:2}.pin b{display:none;position:absolute;inset:19px 0 auto;text-align:center;color:#fff;font-size:17px;text-shadow:0 1px 3px #000,0 0 2px #000}.pin.stop b{display:block}
body.many:is([data-screen=route],.far) .pin.stop{width:25px;height:38px}body.many:is([data-screen=route],.far) .pin b{top:11px;font-size:13px}
body:not([data-screen=plan]) .pin:not(.stop){opacity:.35}
.car{width:46px;height:46px;filter:drop-shadow(0 4px 8px #000)}.maplibregl-ctrl-bottom-right{bottom:var(--sheet,0)!important}.flag{font-family:"DM Sans",sans-serif;background:var(--text);color:var(--night);font-weight:700;font-size:13px;padding:3px 9px;border-radius:7px}
dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;width:min(520px,calc(100vw - 24px));max-height:86dvh;padding:16px}dialog::backdrop{background:rgb(3 8 20/.75)}
#all input{width:22px;height:22px;flex:none;accent-color:var(--warm)}#againRow{display:flex;gap:10px;align-items:center;min-height:44px}#all{list-style:none;padding:0;margin:10px 0 0}#all li{display:grid;grid-template-columns:1fr auto auto;border-top:1px solid var(--line)}#all li button{color:var(--warm);font-weight:700;min-width:48px}#all li a{display:grid;align-items:center;padding:0 4px 0 14px;font-size:14px;color:var(--soft)}.report{min-height:44px;display:grid;place-items:center;font-size:14px;text-underline-offset:3px}#sign{grid-template-columns:auto auto;justify-content:center;gap:10px}#reportHere{color:var(--soft);margin-top:-8px}.tip .report{grid-column:1/-1;margin:-6px 0 -10px}#all label{display:flex;gap:12px;align-items:center;min-height:52px}#all small{display:block;color:var(--soft)}
#addForm{display:grid;gap:12px;margin-top:10px}#addForm label{display:grid;gap:4px;font-size:15px}#addForm input:not([type=checkbox]){background:var(--night);border:1px solid var(--line);border-radius:10px;height:46px;padding:0 12px}#addForm .ck{display:flex;gap:10px;align-items:center;min-height:44px}.ck input{width:22px;height:22px;flex:none;accent-color:var(--warm)}
/* photo card, vote, email: a row on the home and arrival screens, full size on the finished screen */
#fun{display:none;position:relative;z-index:2;margin:auto 10px 8px;gap:8px;flex:none}[data-screen=plan] #fun,[data-screen=arrive] #fun{display:flex}[data-screen=plan] #fun~#sheet,[data-screen=arrive] #fun~#sheet{margin-top:0}[data-screen=arrive] #fun :is(#openMail,[data-play]),body.picking #fun{display:none}
#fun button{flex:auto;display:flex;gap:6px;align-items:center;justify-content:center;background:#2a5fb0;color:#fff;font-weight:700;font-size:15px;min-height:50px;border-radius:12px;white-space:nowrap;box-shadow:0 4px 16px #000a}#fun svg{width:20px;height:20px;flex:none}[data-screen=plan] #fun{gap:6px}[data-screen=plan] #fun button{flex:1 1 auto;gap:4px;padding:0 2px;font-size:14px}[data-screen=plan] #fun svg{width:17px;height:17px}#fun [data-photo]{background:#c62f28}#fun [data-vote],#fun [data-play],.vote{background:#1f7a4d}
[data-screen=drive] .maplibregl-ctrl-bottom-right,[data-screen=plan] .maplibregl-ctrl-bottom-right,[data-screen=arrive] .maplibregl-ctrl-bottom-right{bottom:calc(var(--sheet,0px) - var(--drop) + 56px)!important}
.vote{color:#fff;font-weight:700;border-radius:12px;min-height:48px}.send{border:1px solid var(--text);border-radius:12px;min-height:48px;font-weight:700}#endDlg[open]{display:grid;gap:12px}#welcome .fine a{padding:13px 0}#photoErr{background:#5a1f25;padding:10px 12px;border-radius:10px}
.mail{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}#done .mail{border-top:1px solid var(--line);padding-top:12px}.mail label{display:contents;font-weight:700}.mail label span{grid-column:1/-1}.mail input{min-width:0;background:var(--night);border:1px solid var(--line);border-radius:10px;height:46px;padding:0 12px;font-weight:400}.mail input::placeholder{color:#93a1bf}.mail button{background:var(--text);color:var(--night);font-weight:700;border-radius:10px;padding:0 16px;height:46px}.mail p{grid-column:1/-1}.mailMsg:empty{display:none}#mailDlg .mail{margin-top:8px}
[data-screen=done] #sheet{max-height:76dvh}
#photoDlg[open],#voteDlg[open]{display:grid;gap:12px;max-height:94dvh}#card{display:block;max-width:100%;max-height:max(240px,min(52dvh,94dvh - 440px));margin:auto;border-radius:10px}a.go{display:grid;place-items:center;text-decoration:none}.paste{display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:15px}.paste p{grid-column:1/-1}.paste span{color:var(--warm);font-weight:700;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis}.paste button{border:1px solid var(--warm);border-radius:10px;padding:0 10px;font-weight:700}#photoDlg.bad :is(#card,.go,.paste,.private,.sample){display:none}
.sample{font-size:13px;border:1px dashed var(--warm);border-radius:10px;padding:8px 12px;color:var(--warm)}#vh{outline:0}
#votes{list-style:none;margin:0;padding:0}#votes li{border-top:1px solid var(--line)}#votes .sub{color:var(--soft);font-size:14px;padding:12px 0 6px}#votes button{width:100%;min-height:56px;display:flex;gap:12px;align-items:center;text-align:left;font-weight:500}#votes .row{display:grid;grid-template-columns:24px 1fr auto;gap:4px 10px;padding:10px 0;font-variant-numeric:tabular-nums}#votes .row i{grid-column:2/-1;height:6px;border-radius:3px;background:var(--warm);width:var(--w)}#votes .mine{color:var(--warm);font-weight:700}
@media(min-width:800px){#billboard,#sheet,#strip,#turn{width:420px}#billboard{margin:16px 0 0 16px;border-radius:16px 16px 0 0}#strip{margin:16px 0 0 16px;border-radius:12px}#turn{margin:10px 0 0 16px}
 #sheet{margin:0 0 auto 16px;border-radius:0 0 16px 16px;max-height:none}[data-screen=route] #sheet{max-height:calc(100dvh - 80px);margin-top:10px;border-radius:16px}[data-screen=drive] #sheet,[data-screen=arrive] #sheet{margin:auto 0 16px 16px;border-radius:16px}#fun{order:1;width:420px;margin:10px 0 16px 16px!important}#sheet{min-height:0}#sim{bottom:72px}#edge{bottom:16px;right:16px}#view{left:452px;bottom:16px}#playDrive{left:452px;bottom:72px}.maplibregl-ctrl-bottom-right{bottom:0!important}}
@media(max-width:799px){body:has(#spot:not([hidden])) #fun{visibility:hidden}[data-screen=plan] :is(#sheet,#fun){transform:translateY(var(--drop));transition:transform .28s cubic-bezier(.2,.8,.2,1)}body.pulling :is(#sheet,#fun){transition:none!important}body.down #sheet{overflow:hidden}}
@media(min-width:800px){body.down{--drop:0px}#grab{display:none!important}[data-screen=plan] #sheet{padding-top:12px;max-height:none}.tip{left:452px;right:auto;width:360px;bottom:24px}#hint{left:calc(50% + 210px)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
