:root{--bg:#FFF8F0;--ink:#4A3B35;--soft:#7A6A62;--line:#F1E4D8;--pink:#F4A7B9;--butter:#FBE29A;--sage:#CFE3B8;--lav:#DCCFF0;--sky:#C9E1F2;--blush:#FBD9E0;--nav:88px}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font:700 15px/1.4 Nunito,system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
h1,.h2{font-family:Fredoka,sans-serif;margin:0}
h1{font-size:28px;font-weight:700}
.h2{font-size:18px;font-weight:600}
.sub{margin:0;font-size:13px;color:var(--soft)}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid var(--ink);outline-offset:2px}

main{height:100%;padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom))}
.page{display:none;height:100%;overflow:auto;padding:calc(20px + env(safe-area-inset-top)) 20px 24px}
.page.on{display:block}
.page>*+*{margin-top:16px}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.row{display:flex;justify-content:space-between;align-items:baseline}
.col{display:flex;flex-direction:column;gap:10px}
.card{background:#fff;border-radius:24px;padding:14px 16px;box-shadow:0 8px 20px #4a3b3514}
.soon{color:var(--soft)}

.bar{height:16px;border-radius:8px;background:#F6ECE3;overflow:hidden;margin-top:10px}
.bar i{display:block;height:100%;background:var(--pink);border-radius:8px;transition:width .4s}

.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stamp{min-height:108px;border-radius:24px;border:3px dashed #E8D8CB;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;position:relative;font-size:12px;font-weight:800;line-height:1.15;text-align:center}
.stamp.done{border:0;background:#fff;box-shadow:0 6px 14px #4a3b3514}
.stamp.done::after{content:"";position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#7CB87A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat}
.dot{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#F6ECE3}
.done .dot{background:var(--c)}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}

.avatar{width:52px;height:52px;flex:none;border-radius:50%;border:4px solid #fff;box-shadow:0 4px 10px #4a3b3526;font:700 20px Fredoka,sans-serif}
.btn{height:52px;padding:0 20px;border-radius:26px;border:0;background:#fff;box-shadow:inset 0 0 0 2px var(--line);font-weight:800}
.pink{background:var(--pink);box-shadow:0 4px 0 #4a3b3526}
.butter{background:var(--butter);box-shadow:none}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.chips button{flex:none;height:44px;padding:0 16px;border-radius:22px;border:2px solid var(--line);background:#fff;font-weight:800;font-size:13px}
.chips button.on{background:var(--ink);border-color:var(--ink);color:#fff}

/* Map */
#map{padding:0;position:relative}
#gmap{position:absolute;inset:0}
.float{position:absolute;left:16px;right:16px;z-index:1}
#map header{top:calc(16px + env(safe-area-inset-top));background:#fffffff0;border-radius:24px;padding:10px 14px}
#map .chips{top:calc(100px + env(safe-area-inset-top))}
.sticker{background:var(--butter);border-radius:20px;padding:8px 14px;transform:rotate(3deg);font:600 13px/1.1 Fredoka,sans-serif;text-align:center;box-shadow:0 4px 0 #4a3b351f}
.sticker b{font-size:22px;display:block}
.fab{position:absolute;right:16px;bottom:20px;z-index:1}
.pin{display:flex;flex-direction:column;align-items:center;transform:translateY(4px)}
.pin span{width:40px;height:40px;border-radius:50%;background:var(--c);border:4px solid #fff;display:grid;place-items:center;box-shadow:0 4px 0 #4a3b3526,0 8px 14px #4a3b352e}
.pin svg{width:18px;height:18px;stroke-width:2.2}
.pin::after{content:"";width:16px;height:5px;margin-top:3px;border-radius:50%;background:#4a3b3533}
.pin.done span{outline:3px solid #7CB87A}
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:2;background:#fff;border-radius:30px 30px 0 0;box-shadow:0 -8px 24px #4a3b351a;padding:12px 20px 20px;display:flex;flex-direction:column;gap:10px}
.sheet .x{position:absolute;right:12px;top:10px;width:44px;height:44px;border:0;border-radius:50%;background:#F6ECE3}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tags span{background:var(--blush);border-radius:12px;padding:3px 10px;font-size:12px;font-weight:800}
.sheet .btns{display:flex;gap:10px}
.sheet .btns>*{flex:1;display:grid;place-items:center;text-decoration:none;color:inherit}

/* Nav */
#tabs{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav) + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -6px 20px #4a3b3514;display:flex;justify-content:space-around;align-items:center;z-index:5}
#tabs button{width:64px;height:60px;border:0;border-radius:20px;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:800;color:var(--soft)}
#tabs button svg{width:26px;height:26px}
#tabs button.on{background:var(--blush);color:var(--ink)}

/* Dialogs */
dialog{border:0;border-radius:28px;padding:20px;width:min(92vw,420px);background:var(--bg);color:var(--ink);box-shadow:0 20px 50px #4a3b3540}
dialog::backdrop{background:#4a3b3566}
dialog .grid button{border:0;border-radius:22px;background:#fff;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800}
dialog .grid .avatar{width:48px;height:48px;font-size:18px;display:grid;place-items:center}
input{height:52px;border-radius:26px;border:2px solid var(--line);background:#fff;padding:0 18px;font:700 16px Nunito,sans-serif;color:var(--ink)}
.result{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;border-radius:18px;padding:8px 8px 8px 14px;text-align:left;border:0}
.result small{display:block;color:var(--soft);font-weight:700}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}
[hidden]{display:none!important}
#map>*{margin:0}
