:root{
  --paper:#f6f3ea;--white:#fffdf7;--ink:#1e1e1c;--mute:#65625a;--line:rgba(30,30,28,.16);
  --red:#d9282f;--red-deep:#b51d24;--brown:#b98b52;--water:#93c7de;--forest:#d3e2b8;
  --glass:rgba(250,248,240,.78);
  --sans:"IBM Plex Sans",-apple-system,system-ui,sans-serif;--mono:"IBM Plex Mono",ui-monospace,monospace;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{touch-action:manipulation;background:var(--paper)}
body{margin:0;min-height:calc(100dvh + 1px);background:var(--paper);color:var(--ink);font:400 16px/1.45 var(--sans);-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button:disabled{cursor:default}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

#map{position:fixed;inset:0;bottom:calc(-1 * var(--safe-b));background:var(--paper)}
.maplibregl-ctrl-attrib{font:400 10px/1.3 var(--sans);background:rgba(246,243,234,.7)!important}
.maplibregl-ctrl-bottom-right{bottom:calc(150px + var(--safe-b))}

/* beacons */
.beacon{width:44px;height:44px;display:grid;place-items:center}
.beacon i{display:block;width:14px;height:14px;border-radius:50%;background:var(--red);border:2px solid var(--white);box-shadow:0 1px 3px rgba(0,0,0,.35);position:relative;z-index:1}
.beacon::before,.beacon::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px;border-radius:50%;border:1.5px solid var(--red);animation:pulse 2.8s ease-out infinite;pointer-events:none}
.beacon::after{animation-delay:1.4s}
.beacon.fresh i{width:18px;height:18px}
.beacon.sel i{background:var(--ink)}
.beacon.far::before,.beacon.far::after{animation:none;opacity:0}
@keyframes pulse{from{transform:scale(1);opacity:.75}to{transform:scale(3.4);opacity:0}}
@media (prefers-reduced-motion:reduce){.beacon::before,.beacon::after{animation:none;opacity:.3;transform:scale(1.8)}}
.me-dot{width:20px;height:20px;border-radius:50%;background:var(--ink);border:3px solid var(--white);box-shadow:0 1px 6px rgba(0,0,0,.4)}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:0 18px;border-radius:4px;font-weight:500;font-size:16px;border:1px solid var(--line);background:var(--white);transition:transform .12s,background .15s}
.btn:active{transform:scale(.985)}
.btn.primary{background:var(--red);border-color:var(--red);color:#fff}
.btn.primary:active{background:var(--red-deep)}
.btn.dark{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.btn.quiet{border-color:transparent;background:none;color:var(--mute);min-height:44px}
.btn:disabled{opacity:.5}
.btn svg{width:19px;height:19px;flex:none}

/* starter */
.starter{position:fixed;inset:0;bottom:calc(-1 * var(--safe-b));z-index:40;background:#14130f;color:#fbf8ef;display:flex;flex-direction:column;justify-content:flex-end;overflow:auto}
.starter .ph{position:fixed;left:0;right:0;top:0;height:48dvh;overflow:hidden;background:#26231d url("gloves.jpg") 62% 42%/cover no-repeat}
.starter::after{content:"";position:fixed;left:0;right:0;top:0;height:48.2dvh;background:linear-gradient(180deg,rgba(15,14,11,.35) 0,rgba(15,14,11,0) 24%,rgba(15,14,11,0) 62%,#14130f 100%);pointer-events:none}
.starter .in{position:relative;z-index:1;padding:16px 24px calc(14px + var(--safe-b));max-width:520px;width:100%;margin:0 auto}
.brand{font:500 13px/1 var(--mono);letter-spacing:.02em}
.starter .brand{position:fixed;z-index:2;top:calc(20px + var(--safe-t));left:24px}
.starter h1{font-weight:500;font-size:clamp(40px,11.5vw,60px);line-height:1.02;letter-spacing:-.03em;margin-bottom:12px}
.starter p{font-size:17px;line-height:1.42;color:rgba(251,248,239,.86)}
.starter ol{list-style:none;margin:16px 0 14px;padding:0;border-top:1px solid rgba(251,248,239,.24)}
.starter li{display:flex;gap:14px;padding:9px 0;border-bottom:1px solid rgba(251,248,239,.24);font-size:15px;color:rgba(251,248,239,.86)}
.starter li span{font:400 13px/1.6 var(--mono);opacity:.65}
.starter .warn{font-size:13.5px;color:rgba(251,248,239,.66);margin:0 0 14px}
.starter .btn.quiet{color:rgba(251,248,239,.76)}

/* auth */
.auth{position:fixed;inset:0;z-index:41;background:var(--paper);overflow:auto;display:flex;flex-direction:column;justify-content:center;padding:calc(32px + var(--safe-t)) 24px calc(32px + var(--safe-b))}
.auth .in{width:100%;max-width:400px;margin:0 auto}
.auth h2{font-weight:500;font-size:36px;line-height:1.05;letter-spacing:-.025em;margin:22px 0 8px}
.auth p{color:var(--mute);margin-bottom:24px}
label.f{display:block;margin-bottom:14px;font-size:13px;color:var(--mute)}
label.f input{display:block;width:100%;height:50px;margin-top:6px;padding:0 14px;font-size:17px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:4px}
label.f input:focus{outline:2px solid var(--ink);outline-offset:-1px}
.err{color:var(--red-deep);font-size:14px;min-height:20px;margin:0 0 10px}

/* HUD */
#hud{position:fixed;z-index:10;left:0;right:0;top:0;padding:calc(12px + var(--safe-t)) 14px 0;display:flex;align-items:flex-start;gap:8px;pointer-events:none}
.pill{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border-radius:19px;background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);border:1px solid var(--line);font-size:14px;font-weight:500;white-space:nowrap}
.pill.mono{font:500 13px/1 var(--mono)}
.pill.warn{color:var(--red-deep)}
.spacer{flex:1}
.fab{pointer-events:auto;flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--glass);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line)}
.fab svg{width:20px;height:20px}

/* map actions */
#actions{position:fixed;z-index:10;left:14px;right:14px;bottom:calc(76px + var(--safe-b));display:flex;gap:8px;max-width:520px;margin:0 auto}
#actions .btn{flex:1;box-shadow:0 6px 22px rgba(30,30,28,.2)}
#actions .btn.primary{flex:1.25}
#actions .btn:not(.primary){background:var(--glass);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
#walkbar{position:fixed;z-index:10;left:14px;right:14px;bottom:calc(138px + var(--safe-b));max-width:520px;margin:0 auto;padding:12px 14px;border-radius:6px;background:var(--glass);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line);display:flex;align-items:center;gap:12px}
#walkbar b{font-weight:500;display:block}
#walkbar small{color:var(--mute);font-size:13px}
#walkbar .bar{height:3px;background:var(--line);margin-top:7px}
#walkbar .bar i{display:block;height:100%;background:var(--red);transition:width .4s}
#walkbar .grow{flex:1;min-width:0}
#walkbar button{font-size:14px;color:var(--mute);padding:8px 2px}

/* dock */
#dock{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;padding:6px 8px calc(6px + var(--safe-b));background:var(--glass);-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);border-top:1px solid var(--line)}
#dock::after{content:"";position:absolute;left:0;right:0;top:100%;height:60px;background:inherit}
#dock button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;font-size:11px;font-weight:500;color:var(--mute)}
#dock button svg{width:22px;height:22px}
#dock button.on{color:var(--ink)}
#dock button.on svg{color:var(--red)}

/* full pages */
.page{position:fixed;inset:0;bottom:calc(-1 * var(--safe-b));z-index:15;background:var(--paper);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(22px + var(--safe-t)) 20px calc(100px + var(--safe-b))}
.page .col{max-width:560px;margin:0 auto}
.eyebrow{font:400 13px/1 var(--mono);color:var(--mute);display:block;margin-bottom:12px}
.page h2{font-weight:500;font-size:38px;line-height:1.04;letter-spacing:-.028em}
.page .lede{color:var(--mute);margin:10px 0 22px}

/* routes */
.route{display:grid;grid-template-columns:96px 1fr;gap:14px;width:100%;text-align:left;padding:16px 0;border-top:1px solid var(--line)}
.route:last-child{border-bottom:1px solid var(--line)}
.route svg{width:96px;height:96px;background:var(--white);border:1px solid var(--line);display:block}
.route h3{font-weight:500;font-size:21px;line-height:1.15;letter-spacing:-.01em}
.route .sub{font:400 12.5px/1.3 var(--mono);color:var(--mute);margin:4px 0 7px}
.route p{font-size:14px;line-height:1.38;color:var(--mute)}
.route .count{display:inline-block;font-size:13px;font-weight:500;color:var(--red-deep);margin-top:7px}
.route .count.none{color:var(--mute);font-weight:400}

/* leaderboard */
.seg{display:flex;border:1px solid var(--line);border-radius:4px;margin:0 0 18px;overflow:hidden}
.seg button{flex:1;height:40px;font-size:14px;font-weight:500;color:var(--mute)}
.seg button.on{background:var(--ink);color:var(--paper)}
.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:2px solid var(--ink);margin-bottom:6px}
.podium div{padding:12px 10px 14px 0;min-width:0}
.podium div+div{padding-left:10px;border-left:1px solid var(--line)}
.podium .n{font:400 12px/1 var(--mono);color:var(--mute)}
.podium b{display:block;font-weight:500;font-size:17px;margin:12px 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.podium .p{font-weight:500;font-size:32px;line-height:1;letter-spacing:-.02em}
.podium div:first-child .p{color:var(--red)}
.podium small{display:block;color:var(--mute);font-size:12px;margin-top:5px}
.rowx{display:grid;grid-template-columns:30px 1fr auto;align-items:baseline;gap:6px;padding:12px 0;border-top:1px solid var(--line)}
.rowx .n{font:400 13px/1 var(--mono);color:var(--mute)}
.rowx b{font-weight:500}
.rowx small{color:var(--mute);font-size:13px;margin-left:6px}
.rowx .p{font-weight:500;font-variant-numeric:tabular-nums}
.rowx.me{background:var(--white);margin:0 -10px;padding-left:10px;padding-right:10px;box-shadow:inset 2px 0 0 var(--red)}
.rule{font-size:13px;color:var(--mute);line-height:1.5;margin-top:22px;padding-top:14px;border-top:2px solid var(--ink)}
.rule b{color:var(--ink);font-weight:500}
.note{font:400 12px/1.4 var(--mono);color:var(--mute);margin-top:12px}

/* you */
.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:2px solid var(--ink);margin:18px 0 26px}
.stats div{padding:12px 0}
.stats b{display:block;font-weight:500;font-size:30px;line-height:1.05;letter-spacing:-.02em}
.stats small{color:var(--mute);font-size:13px}
.set{border-top:1px solid var(--line);padding:16px 0}
.set h3{font-weight:500;font-size:16px;margin-bottom:3px}
.set p{color:var(--mute);font-size:14px;margin-bottom:12px}
.opts{display:flex;flex-wrap:wrap;gap:6px}
.opts button{height:38px;padding:0 13px;border:1px solid var(--line);border-radius:19px;font-size:14px;font-weight:500;color:var(--mute);background:var(--white)}
.opts button.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.switch{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left}
.switch i{flex:none;width:46px;height:28px;border-radius:14px;background:var(--line);position:relative;transition:background .2s}
.switch i::after{content:"";position:absolute;width:24px;height:24px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.switch[aria-checked=true] i{background:var(--red)}
.switch[aria-checked=true] i::after{transform:translateX(18px)}
.inline{display:flex;gap:8px}
.inline input{flex:1;min-width:0;height:44px;padding:0 12px;font-size:16px;background:var(--white);border:1px solid var(--line);border-radius:4px}
.inline .btn{width:auto;min-height:44px}
.tag{display:inline-block;font:500 11px/1 var(--mono);padding:4px 6px;border-radius:3px;background:var(--ink);color:var(--paper);vertical-align:2px;margin-left:6px}

/* sheet */
#sheet-back{position:fixed;inset:0;z-index:29;background:rgba(30,30,28,.24)}
#sheet{position:fixed;z-index:30;left:0;right:0;bottom:0;max-height:88dvh;overflow-y:auto;background:var(--paper);border-radius:14px 14px 0 0;padding:10px 20px calc(20px + var(--safe-b));animation:up .24s cubic-bezier(.2,.8,.2,1);box-shadow:0 -10px 40px rgba(30,30,28,.2)}
@media (min-width:600px){#sheet{left:50%;right:auto;width:520px;margin-left:-260px}}
#sheet::before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 14px}
@keyframes up{from{transform:translateY(100%)}to{transform:none}}
#sheet h3{font-weight:500;font-size:26px;line-height:1.1;letter-spacing:-.02em}
#sheet .meta{font:400 13px/1.4 var(--mono);color:var(--mute);margin:6px 0 12px}
#sheet .q{font-size:17px;margin-bottom:12px}
#sheet img{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:4px;margin-bottom:12px}
#sheet .stack{display:grid;gap:8px;margin-top:14px}
#sheet .hint{font-size:14px;color:var(--mute);margin-top:8px;text-align:center}
#sheet .warn{font-size:13px;color:var(--mute);margin-top:12px;line-height:1.4}
#sheet textarea{display:block;width:100%;height:70px;padding:10px 12px;font:inherit;font-size:16px;background:var(--white);border:1px solid var(--line);border-radius:4px;resize:none}

/* toasts */
#toasts{position:fixed;z-index:50;left:14px;right:14px;top:calc(60px + var(--safe-t));display:grid;gap:8px;justify-items:center;pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:center;gap:12px;max-width:440px;width:fit-content;padding:11px 14px;border-radius:6px;background:var(--ink);color:var(--paper);font-size:14.5px;box-shadow:0 8px 28px rgba(0,0,0,.28);animation:drop .24s ease-out}
.toast.alert{background:var(--red);cursor:pointer}
.toast button{font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
@keyframes drop{from{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}

/* score moment */
.score{position:fixed;inset:0;z-index:45;display:grid;place-items:center;background:rgba(246,243,234,.94);text-align:center;padding:24px;animation:fade .2s}
.score .big{font-weight:500;font-size:112px;line-height:1;letter-spacing:-.05em;color:var(--red)}
.score h3{font-weight:500;font-size:24px;margin:8px 0 4px}
.score p{color:var(--mute);margin-bottom:24px}
.score .btn{width:220px;margin:0 auto}
@keyframes fade{from{opacity:0}to{opacity:1}}

@media (min-width:900px){
  .starter .in{margin:0 0 0 6vw;padding-bottom:48px}
  .starter::after{height:100dvh;background:linear-gradient(90deg,#14130f 0,rgba(15,14,11,.86) 36%,rgba(15,14,11,0) 68%)}
  .starter{justify-content:center}
  .starter .ph{height:100dvh;background-position:center 40%}
}

/* language, consent, legal, moderation */
.starter .stack{display:grid;gap:8px}
.accept{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4;color:var(--mute);margin:2px 0 14px}
.accept input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--red)}
.accept button{text-decoration:underline;text-underline-offset:2px;color:var(--ink);font-size:14px}
.legal{position:fixed;inset:0;z-index:60;background:var(--paper);display:flex;flex-direction:column;padding:calc(10px + var(--safe-t)) 12px calc(10px + var(--safe-b));gap:10px}
.legal iframe{flex:1;width:100%;border:0;background:var(--paper)}
.btn.small{font-size:14px;min-height:40px}
.report{padding:12px 0;border-top:1px solid var(--line)}
.report b{font-weight:500}
.report p{margin:3px 0 10px}
.report img{display:block;width:100%;max-height:180px;object-fit:cover;border-radius:4px;margin-bottom:10px}
.proofs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:8px}
.proofs .pair{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.proofs figure{margin:0}
.proofs img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:3px;background:var(--line)}
.proofs figcaption{font-size:11.5px;color:var(--mute);margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* in-app camera with the ground check */
.cam{position:fixed;inset:0;bottom:calc(-1 * var(--safe-b));z-index:70;background:#0d0c0a;color:#fbf8ef;display:flex;flex-direction:column}
.cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cam-top{position:relative;padding:calc(18px + var(--safe-t)) 20px 0;text-align:center;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.level{position:absolute;left:50%;top:45%;width:96px;height:96px;margin:-48px;border-radius:50%;border:2px solid rgba(251,248,239,.85);box-shadow:0 0 0 1px rgba(0,0,0,.25);transition:border-color .2s}
.level span{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px;border-radius:50%;border:1.5px dashed rgba(251,248,239,.7)}
.level i{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px;border-radius:50%;background:#fbf8ef;box-shadow:0 1px 4px rgba(0,0,0,.5);transition:transform .08s linear}
.cam.ready .level{border-color:#fbf8ef;border-width:3px}
.cam.ready .level i{background:var(--red)}
.cam-label{position:absolute;left:20px;right:20px;top:calc(45% + 66px);text-align:center;font-weight:500;font-size:18px;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.cam-bar{position:absolute;left:0;right:0;bottom:0;padding:18px 24px calc(26px + var(--safe-b));display:flex;align-items:center;justify-content:space-between;background:linear-gradient(transparent,rgba(0,0,0,.55))}
.cam-cancel{color:#fbf8ef;font-size:16px;width:80px;text-align:left;padding:10px 0}
.cam-gap{width:80px}
.shutter{width:76px;height:76px;border-radius:50%;border:4px solid #fbf8ef;background:rgba(251,248,239,.25);transition:background .15s,opacity .15s}
.shutter:disabled{opacity:.35}
.cam.ready .shutter{background:var(--red)}
.shutter:active:not(:disabled){transform:scale(.94)}
.cam-top p{margin:0}
.cam-thumb{position:absolute;right:16px;top:calc(56px + var(--safe-t));width:64px;height:86px;object-fit:cover;border-radius:4px;border:2px solid #fbf8ef;box-shadow:0 2px 10px rgba(0,0,0,.4)}

/* claiming a beacon */
.claim-note{font-size:14.5px;line-height:1.4;color:var(--red-deep);font-weight:500;text-align:center;margin:2px 0}
.wheel-wrap{position:relative;height:176px;margin:6px 0 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.wheel{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;outline:none;-webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}
.wheel::-webkit-scrollbar{display:none}
.wheel-pad{height:66px}
.wheel-item{height:44px;line-height:44px;text-align:center;font-size:20px;color:var(--mute);scroll-snap-align:center;font-variant-numeric:tabular-nums;transition:color .12s,font-size .12s}
.wheel-item.on{color:var(--ink);font-size:26px;font-weight:500}
.wheel-band{position:absolute;left:0;right:0;top:66px;height:44px;border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);pointer-events:none}
.deal{font-size:15px;text-align:center;margin-bottom:4px}
#claimbar{position:fixed;z-index:11;left:14px;right:14px;bottom:calc(138px + var(--safe-b));max-width:520px;margin:0 auto;padding:12px 14px;border-radius:6px;background:var(--ink);color:var(--paper);display:flex;align-items:center;gap:12px;text-align:left;box-shadow:0 6px 22px rgba(30,30,28,.25)}
#claimbar.above{bottom:calc(214px + var(--safe-b))}
#claimbar b{font-weight:500;display:block;font-variant-numeric:tabular-nums;font-size:17px}
#claimbar small{opacity:.75;font-size:13px}
#claimbar .grow{flex:1;min-width:0}
#claimbar .bar{height:3px;background:rgba(246,243,234,.25);margin-top:7px}
#claimbar .bar i{display:block;height:100%;background:var(--red);transition:width 1s linear}
#claimbar .go{font-weight:600;color:#fff;background:var(--red);border-radius:12px;padding:3px 9px;font-size:14px}
.beacon.claimed i{background:var(--brown)}
.beacon.claimed::before,.beacon.claimed::after{border-color:var(--brown)}

/* marking trash */
.mark-photo{display:block;width:100%;max-height:180px;object-fit:cover;border-radius:4px;margin:10px 0 12px}
.kinds{margin-bottom:12px}
.kind{display:inline-block;font:500 12.5px/1 var(--mono);padding:6px 8px;border-radius:3px;background:var(--ink);color:var(--paper);margin:0 0 10px}
#sheet .err{margin:8px 0 0}
#sheet h4.sub{font-weight:500;font-size:15px;margin:2px 0 8px}

/* safety and why */
.link{display:inline;padding:0;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:2px}
.starter .warn .link{color:rgba(251,248,239,.9)}
ul.safety{list-style:none;margin:6px 0 12px;padding:0}
ul.safety li{position:relative;padding:8px 0 8px 18px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.4}
ul.safety li:last-child{border-bottom:0}
ul.safety li::before{content:"";position:absolute;left:0;top:15px;width:7px;height:7px;border-radius:50%;background:var(--red)}
.why p{font-size:17px;line-height:1.5;margin:0 0 12px}
.why p:first-child{font-weight:500;font-size:20px;line-height:1.3}
.why .sig{font:400 14px/1 var(--mono);color:var(--mute);margin-top:4px}
.why{margin-top:14px}

/* where you are */
.auth.picker{justify-content:flex-start;z-index:42}
.picker .btn.primary{margin-top:4px}
.or{text-align:center;color:var(--mute);font-size:13px;margin:12px 0 10px!important}
.pick-search{display:block;width:100%;height:48px;padding:0 14px;font-size:17px;background:var(--white);border:1px solid var(--line);border-radius:4px;margin-bottom:8px}
.picks{display:grid;border-top:1px solid var(--line);margin-bottom:12px}
.pick{text-align:left;padding:13px 2px;border-bottom:1px solid var(--line);font-size:17px}
.pick:active{background:var(--white)}

/* teams: towns or countries */
.teams{margin-top:26px;padding-top:14px;border-top:2px solid var(--ink)}
.teams h3{font-weight:500;font-size:20px;letter-spacing:-.01em}
.teams .note{margin:4px 0 10px}
.team{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line)}
.team .n{font:400 13px/1.6 var(--mono);color:var(--mute);width:22px;flex:none}
.team .grow{flex:1;min-width:0}
.team .tl{display:flex;justify-content:space-between;gap:8px}
.team b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team .p{font-weight:500;font-variant-numeric:tabular-nums}
.tbar{height:6px;background:var(--line);border-radius:3px;margin:6px 0 4px;overflow:hidden}
.tbar i{display:block;height:100%;background:var(--ink);border-radius:3px}
.team.me .tbar i{background:var(--red)}
.team small{color:var(--mute);font-size:12.5px}

/* needles and hazardous waste: no beacon, just who to call */
.hazard-btn{border-color:var(--red);color:var(--red-deep);margin:4px 0 12px}
.cam-hazard{width:80px;display:grid;justify-items:center;justify-content:center;gap:3px;color:#fff;padding:6px 0;text-align:center}
.cam-hazard span svg{width:38px;height:38px;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.45))}
.cam-hazard small{font-size:12px;font-weight:600;letter-spacing:.02em;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.hazard-head{display:flex;align-items:center;gap:10px}
.hazard-head h3{color:var(--red-deep)}
a.btn.call{justify-content:flex-start;gap:14px;text-decoration:none;color:var(--ink)}
a.btn.call b{font-weight:600;font-size:18px;min-width:84px}
a.btn.call span{font-size:14px;color:var(--mute);text-align:left;line-height:1.3;padding:6px 0}
a.btn{text-decoration:none;color:var(--ink)}

/* master */
.pill.master{background:#1e1e1c;color:#f0c83c;font:700 13px/1 var(--mono);padding:0 11px}
.tag.gold{background:#1e1e1c;color:#f0c83c}
.opts button.gold{border-color:#c9a227}
.opts button.gold.on{background:#1e1e1c;color:#f0c83c;border-color:#1e1e1c}
.master-card{background:var(--white);border:1.5px solid #c9a227;border-radius:10px;padding:16px;margin:0 0 22px}
.master-card .mhead{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.master-card .mhead .tag{margin:0}
.master-card > p{color:var(--mute);font-size:14px}
.mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}
.mgrid div{background:var(--paper);border-radius:6px;padding:9px 10px}
.mgrid b{display:block;font-weight:500;font-size:22px;letter-spacing:-.02em}
.mgrid small{color:var(--mute);font-size:12px;line-height:1.2;display:block}
.mwalk{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 10px}
.mwalk .btn{min-height:44px;font-size:14px;justify-content:flex-start;padding:0 12px}
.mark-photo.placeholder{display:grid;place-items:center;height:120px;background:#d9d4c6;color:var(--mute);border-radius:4px;font-size:14px}
/* the intro's tagline must not pick up the admin .tag style */
#intro .tag{background:none!important;color:rgba(255,255,255,.92)!important;padding:0!important;margin:0!important;vertical-align:baseline!important;font:400 15px/1.2 "IBM Plex Sans",-apple-system,system-ui,sans-serif!important}

/* (i) buttons: why each permission is needed */
.info{flex:none;width:26px;height:26px;border-radius:50%;border:1.5px solid currentColor;display:grid;place-items:center;font:600 14px/1 Georgia,"Times New Roman",serif;font-style:italic;color:var(--mute);background:none}
.perms{display:grid;border-top:1px solid var(--line);margin:8px 0}
.perm{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.perm .pi svg{width:22px;height:22px;display:block;color:var(--ink)}
.perm b{flex:1;font-weight:500}
.info-head{display:flex;align-items:center;gap:10px}
.info-head svg{width:26px;height:26px;color:var(--red)}
.cam-info{position:absolute;left:16px;top:calc(14px + var(--safe-t));color:#fbf8ef;border-color:rgba(251,248,239,.8);width:30px;height:30px;z-index:2}
.cam-panel{position:absolute;left:16px;right:16px;top:calc(56px + var(--safe-t));z-index:3;background:#fbf8ef;color:var(--ink);border-radius:10px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.cam-panel b{font-weight:600;display:block;margin-bottom:6px}
.cam-panel p{font-size:15px;line-height:1.45;margin:0 0 12px}

.hazard-btn svg{width:22px;height:22px}
.hazard-head .hz svg{width:30px;height:30px;display:block}

/* the tour */
.tour{position:fixed;inset:0;z-index:60}
.tour.dark{background:rgba(20,20,18,.62)}
.tour-hole{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(20,20,18,.62);transition:all .3s cubic-bezier(.3,.7,.2,1);pointer-events:none}
.tour-card{position:fixed;left:16px;right:16px;max-width:460px;margin:0 auto;background:var(--paper);border-radius:14px;padding:16px 18px 14px;box-shadow:0 16px 40px rgba(0,0,0,.3)}
.tour.dark .tour-card{top:50%;transform:translateY(-50%)}
.tour-card h3{font-weight:500;font-size:22px;letter-spacing:-.015em;margin:8px 0 4px}
.tour-card p{color:var(--mute);font-size:15.5px;line-height:1.45;margin:0 0 12px}
.tour-dots{display:flex;gap:5px}
.tour-dots i{width:7px;height:7px;border-radius:50%;background:var(--line)}
.tour-dots i.on{background:var(--red)}
.tour-icon svg{width:34px;height:34px;display:block;margin-top:8px}
.tour-btns{display:flex;gap:8px;justify-content:flex-end}
.tour-btns .btn{width:auto;min-height:44px;padding:0 18px}

/* the start screens: paper, with the gloves story at the top */
.starter{background:var(--paper);color:var(--ink)}
.starter .ph,.starter::after{display:none}
.starter .brand{color:var(--ink)}
.starter p{color:var(--mute)}
.starter ol:not(.gl-steps){border-top:1px solid var(--line)}
.starter ol:not(.gl-steps) li{border-bottom:1px solid var(--line);color:var(--ink)}
.starter .warn{color:var(--mute)}
.starter .warn .link{color:var(--ink)}
.starter .btn.quiet{color:var(--mute)}
.starter{justify-content:space-between}
.gl{position:relative;flex:none;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:calc(46px + var(--safe-t)) 20px 0}
.gl-stage{width:min(300px,78vw);height:min(230px,30dvh);display:grid;place-items:center}
.gl-stage svg{width:100%;height:100%;overflow:visible}
.gl-steps{list-style:none;margin:0;padding:0;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.gl-steps li{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mute);background:var(--white);border:1px solid var(--line);border-radius:99px;padding:5px 10px 5px 6px;animation:gl-step 9s infinite;animation-delay:calc(var(--i) * 2.25s - 0.2s)}
.gl-steps li span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--line);font:600 11px/1 var(--mono);color:var(--ink)}
@keyframes gl-step{0%,22%{background:var(--ink);color:var(--paper);border-color:var(--ink)}24%,100%{background:var(--white);color:var(--mute);border-color:var(--line)}}
.gl svg *{transform-box:fill-box}
.gl-g1,.gl-g2{animation:gl-fall 9s infinite}
.gl-g2{animation-delay:.12s}
.gl-bag{transform-origin:50% 100%;animation:gl-bag 9s infinite}
.gl-zip{stroke-dashoffset:150;stroke-dasharray:150;animation:gl-zip 9s infinite}
.gl-pull{animation:gl-pull 9s infinite}
.gl-load{transform-origin:50% 100%;animation:gl-load 9s infinite}
.gl-pack-back,.gl-pack-front{animation:gl-pack 9s infinite}
.gl-ready{transform-origin:center;animation:gl-ready 9s infinite}
@keyframes gl-fall{0%{opacity:0;translate:0 -120px}8%,90%{opacity:1;translate:0 0}96%,100%{opacity:0;translate:0 0}}
@keyframes gl-bag{0%,18%{opacity:0;scale:1 .1}27%,90%{opacity:1;scale:1 1}96%,100%{opacity:0}}
@keyframes gl-zip{0%,27%{stroke-dashoffset:150}34%,100%{stroke-dashoffset:0}}
@keyframes gl-pull{0%,27%{translate:-134px 0}34%,100%{translate:0 0}}
@keyframes gl-load{0%,40%{scale:1;translate:0 0;opacity:1}52%,74%{scale:.55;translate:0 6px;opacity:1}84%,91%{scale:.7;translate:0 -46px;opacity:1}97%,100%{scale:.7;translate:0 -46px;opacity:0}}
@keyframes gl-pack{0%,36%{opacity:0;translate:0 30px}44%,90%{opacity:1;translate:0 0}96%,100%{opacity:0}}
@keyframes gl-ready{0%,80%{opacity:0;scale:.3}86%,92%{opacity:1;scale:1}97%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.gl *{animation:none!important}.gl-pack-back,.gl-pack-front,.gl-ready{display:none}}
/* Trashy, the mascot: he walks the tour */
.tour-guide{position:fixed;left:0;top:0;width:210px;height:210px;pointer-events:none;z-index:2;transition:transform .55s cubic-bezier(.35,.1,.25,1),opacity .2s}
.tour-guide canvas{width:100%;height:100%;display:block}
.tour-guide.flat svg{position:absolute;left:50%;bottom:14%;width:84px;height:98px;margin-left:-42px;transform-origin:50% 92%;rotate:var(--deg,0deg);transition:rotate .5s}
.tour-hole{box-shadow:0 0 0 9999px rgba(20,20,18,.55)}
.tour.dark{background:rgba(20,20,18,.55)}
.tour-hole.round{border-radius:50%}
.tour-card{transition:opacity .26s cubic-bezier(.2,.8,.2,1),translate .26s cubic-bezier(.2,.8,.2,1)}
.tour-card.hide{opacity:0;translate:0 10px;pointer-events:none;transition-duration:.16s;transition-timing-function:ease-in}
.tour-who{font:500 12px/1 var(--mono);color:var(--red);margin-top:2px}
.tour-who + h3{margin-top:6px}
.tour-btns{align-items:center;justify-content:space-between}
.tour-skip{border:0;background:none;padding:10px 4px;font:400 15px var(--sans);color:var(--mute);cursor:pointer}
.tour-btns .tour-dots{flex:1;justify-content:center}
.tour.wait{pointer-events:none;background:none}
.tour.wait .tour-hole{display:none!important}
.tour.wait .tour-guide{opacity:0}
.tour.out{opacity:0;transition:opacity .3s}
/* Trashy peeking in, top left, the first time you meet something */
.peek{position:fixed;left:6px;top:calc(var(--safe-t) + 62px);z-index:95;display:flex;align-items:center;gap:0;max-width:calc(100vw - 16px);animation:peek-in .38s cubic-bezier(.2,.8,.2,1);transition:opacity .25s,translate .25s;cursor:pointer}
.peek.out{opacity:0;translate:-14px 0}
.peek-guy{width:116px;height:116px;flex:none;margin-right:-14px}
.peek-guy canvas{width:100%;height:100%;display:block}
.peek-guy .flat svg{width:60px;height:70px;margin:28px}
.peek-say{background:var(--paper);border-radius:14px;padding:10px 14px 11px;box-shadow:0 10px 30px rgba(0,0,0,.22);max-width:240px}
.peek-say p{margin:5px 0 0;font-size:15px;line-height:1.38}
@keyframes peek-in{from{opacity:0;translate:-24px 6px}}
.score-guy{width:150px;height:150px;margin:-40px auto -18px}
.score-guy canvas{width:100%;height:100%;display:block}
.score-guy .flat svg{width:80px;height:94px;margin:30px 35px}
@media (prefers-reduced-motion:reduce){.tour-guide,.tour-card,.peek{transition:none;animation:none}}
.beacon.tapped{animation:b-tap .45s ease-out}
@keyframes b-tap{40%{scale:.82}100%{scale:1}}
.gl.three .gl-stage canvas{width:min(360px,92vw);height:min(260px,32dvh)}
.peek{top:auto;bottom:calc(var(--safe-b) + 150px)}
.peek.top{top:calc(var(--safe-t) + 62px);bottom:auto}
.vs{font-size:20px;font-weight:500;letter-spacing:-.01em;margin:4px 0 18px}
.board-sub{font-weight:500;font-size:17px;margin:28px 0 10px}
.stoic{font-size:15px;color:var(--ink);font-style:italic;margin:14px 0 0}
/* Trashy speaking at the top of a sheet */
.say-head{display:flex;align-items:center;gap:6px;margin:-8px 0 6px -10px}
.say-guy{width:92px;height:92px;flex:none}
.say-guy canvas{width:100%;height:100%;display:block}
.say-guy .flat svg{width:52px;height:60px;margin:16px 20px}
.say-head h3{margin:4px 0 0}
#actions .btn{white-space:nowrap;font-size:16px;padding-left:12px;padding-right:12px}
#actions .btn.primary{flex:1}
/* Trash name picker */
.nick{margin:4px 0 14px}
.nick-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 4px}
.nick-name{font-weight:500;font-size:clamp(24px,7vw,30px);letter-spacing:-.02em;line-height:1.1}
.nick-shuffle{width:auto;min-height:44px;padding:0 14px;flex:none}
.nick-l{font:400 12px/1 var(--mono);color:var(--mute);margin:14px 0 6px}
.nick-row{display:flex;gap:6px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.nick-row::-webkit-scrollbar{display:none}
.nick-row button{flex:none;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:99px;padding:8px 13px;font:500 14px var(--sans);cursor:pointer}
.nick-row button.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.podium b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;hyphens:auto;font-size:16px;line-height:1.2}
/* admin */
.acct{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.acct small{display:block;color:var(--mute);font-size:13px;margin-top:2px}
.acct .opts{flex:none;margin:0}
.acct.me b{color:var(--red)}
.proofs figcaption{display:flex;justify-content:space-between;align-items:center;gap:6px}
.proofs .del{border:0;background:none;color:var(--red);font:500 13px var(--sans);padding:4px;cursor:pointer}
.fab.fab-bin{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 4px 14px rgba(217,40,47,.35)}
.score .share-btn{margin-bottom:10px}
/* height meter: right edge of the map */
#height{position:fixed;z-index:9;right:10px;top:calc(var(--safe-t) + 140px);display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;font-family:var(--sans)}
#height[hidden]{display:none}
#height .h-track{position:relative;width:6px;height:150px;border-radius:3px;background:rgba(30,30,28,.14)}
#height .h-track i{position:absolute;left:50%;transform:translate(-50%,50%)}
#height .h-now{width:16px;height:16px;border-radius:50%;background:#1e1e1c;border:2px solid #fffdf7;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:bottom .15s}
#height .h-bins{width:18px;height:3px;border-radius:2px;background:var(--red)}
#height b{font:500 12px/1 var(--mono);background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:99px;padding:5px 7px;white-space:nowrap}
#height small{font:400 10.5px/1.2 var(--sans);color:var(--mute);text-align:center;max-width:74px}
#height.above small{color:var(--red)}
