@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{--bg:#f7f8f2;--paper:#fff;--green:#445b34;--dark:#263425;--muted:#7a8175;--line:#e6e9df;--gold:#f3ce85;--soft:#edf1e5;--red:#a14535;font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--dark);background:#e7eadd;font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b89441;outline-offset:3px}button{border:0}a{color:var(--green)}.app-shell{max-width:520px;min-height:100dvh;margin:auto;background:var(--bg);position:relative;overflow-x:clip;box-shadow:0 0 70px #2634250b}main{padding:12px 22px 112px;min-height:75dvh}.topbar{height:82px;padding:22px 22px 12px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--dark);font-size:17px;font-weight:800;letter-spacing:.4px}.brand-icon{width:42px;height:42px;border-radius:14px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:23px}.brand small{display:block;font-size:8px;letter-spacing:2px;font-weight:600;margin-top:2px;color:var(--muted)}.icon-button{border-radius:50%;width:44px;height:44px;background:white;display:grid;place-items:center;font-size:28px;flex-shrink:0;border:1px solid var(--line)}.add-main{background:var(--soft);border:0}.mode-notice{margin:0 22px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:12px;background:#fcf0d8;color:#84672a;font-size:10px;line-height:1.7}.mode-notice button{background:transparent;text-decoration:underline;font-size:11px;padding:6px 0;font-weight:700;white-space:nowrap}.eyebrow{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:1.3px;margin:0 0 8px}.intro{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin:6px 0 20px}.intro h1{font-size:29px;letter-spacing:-1.2px;line-height:1.38;margin:0 0 8px;font-weight:800}.intro p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.location-chip{display:flex;gap:4px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:20px;background:#fff;font-size:10px;white-space:nowrap;margin-top:6px;max-width:130px}.location-chip svg{width:12px;height:12px;flex-shrink:0}.hero{background:var(--green);border-radius:23px;padding:22px;color:#fff;position:relative;overflow:hidden;min-height:158px;margin-bottom:22px}.hero:before{content:'';position:absolute;width:220px;height:220px;border:1px solid #ffffff1b;border-radius:50%;right:-53px;top:-31px}.hero:after{content:'';position:absolute;width:180px;height:180px;border:1px solid #ffffff1b;border-radius:50%;right:-33px;top:-11px}.hero .eyebrow{color:#e1e7d2;font-size:9px}.hero h2{font-size:23px;line-height:1.4;margin:8px 0 5px;max-width:210px;position:relative;z-index:1}.hero p{font-size:11px;color:#d9e0d1;margin:0 0 15px}.hero button{position:relative;z-index:2;padding:9px 14px;border-radius:12px;background:var(--gold);color:#33422b;font-size:11px;font-weight:700;display:flex;align-items:center;gap:9px}.hero-art{position:absolute;right:-12px;top:15px;width:132px;height:132px;border-radius:50%;object-fit:cover;border:8px solid #ffffff1c;transform:rotate(-12deg);box-shadow:0 15px 25px #15201030;opacity:.96}.search-wrap{height:47px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 14px;margin-bottom:18px}.search-wrap svg{width:18px;color:var(--muted)}.search-wrap input{border:0;outline:0;min-width:0;width:100%;background:transparent;font-size:12px;color:var(--dark)}.search-wrap input::placeholder{color:#9ca293}.categories{display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;margin:0 -22px;padding:0 22px 12px}.categories::-webkit-scrollbar{display:none}.category{flex-shrink:0;border:1px solid var(--line);background:#fff;border-radius:13px;padding:10px 13px;display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}.category.active{background:var(--green);border-color:var(--green);color:white}.category span{font-size:17px}.section-row{display:flex;align-items:center;justify-content:space-between;margin:8px 0 15px;gap:8px}.section-row h2{font-size:17px;font-weight:700;margin:0}.section-row small{font-size:11px;color:var(--muted)}.text-btn{background:transparent;color:var(--green);font-size:11px;padding:8px 0;display:flex;gap:5px;align-items:center}.text-btn svg{width:14px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 13px}.food-card{position:relative;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-width:0;box-shadow:0 4px 12px #26342503}.card-open{padding:0;background:none;width:100%;display:block;text-align:left}.card-image{height:149px;position:relative;background:#e8eddc;overflow:hidden;display:grid;place-items:center}.card-image img{width:100%;height:100%;object-fit:cover}.card-image .placeholder{font-size:46px}.image-label{position:absolute;bottom:7px;left:8px;background:#0006;color:#fff;font-size:8px;padding:3px 5px;border-radius:5px}.favorite{position:absolute;top:9px;right:9px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#fffc;box-shadow:0 2px 8px #0001;color:#67725d}.favorite svg{width:17px;height:17px}.favorite.on{color:#c06a42}.favorite.on svg{fill:currentColor}.card-body{padding:12px 11px}.card-category{font-size:9px;color:#8b956b;margin-bottom:5px;display:block}.card-body h3{font-size:14px;margin:0 0 6px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-body p{font-size:10px;line-height:1.5;color:var(--muted);margin:0 0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:10px}.price{font-size:12px;font-weight:700}.price small{font-size:8px;font-weight:400;color:var(--muted)}.route-badge{font-size:8px;padding:4px 5px;background:var(--soft);color:var(--green);border-radius:6px;white-space:nowrap}.route-badge.far{color:#9b6a40;background:#faf0e4}.route-badge.unknown{background:#f3f4ef;color:#80877a}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);height:calc(76px + env(safe-area-inset-bottom));padding:9px 15px calc(9px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:800;backdrop-filter:blur(16px)}.nav-item{display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;font-size:10px;color:#909887}.nav-item .nav-icon{height:30px;width:49px;display:grid;place-items:center;border-radius:13px}.nav-item svg{width:21px;height:21px}.nav-item.active{color:var(--green);font-weight:700}.nav-item.active .nav-icon{background:var(--soft)}.empty{text-align:center;padding:40px 18px;background:#fff;border:1px dashed #cbd3bf;border-radius:20px}.empty .empty-art{font-size:43px}.empty h3{font-size:18px;margin:14px 0 8px}.empty p{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 18px}.primary,.secondary,.danger{min-height:46px;border-radius:13px;padding:12px 17px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.primary{background:var(--green);color:white}.secondary{background:var(--soft);color:var(--green)}.danger{background:#fcf0e9;color:var(--red)}.full{width:100%}.subtle{font-size:11px;line-height:1.9;color:var(--muted)}.map-wrap{height:calc(100dvh - 355px);min-height:315px;border-radius:21px;overflow:hidden;border:1px solid var(--line);position:relative;margin:0 0 10px}.map{height:100%;width:100%;background:#e9eddc}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:8px!important}.map-tools{position:absolute;z-index:500;left:12px;top:12px;display:flex;gap:6px}.map-tools button{background:white;box-shadow:0 3px 10px #0002;border-radius:10px;padding:10px;font-size:11px}.pin{width:33px;height:33px;border-radius:50% 50% 50% 5px;background:var(--green);transform:rotate(-45deg);border:3px solid white;box-shadow:0 2px 8px #0004;display:grid;place-items:center}.pin span{transform:rotate(45deg);font-size:16px}.home-pin{background:#bf8740}.map-status{font-size:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;line-height:1.7}.map-summary{display:flex;align-items:center;justify-content:space-between;background:white;border:1px solid var(--line);border-radius:14px;padding:14px;font-size:12px;margin-top:12px}.map-summary small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.wheel-header{text-align:center;margin:10px 0 15px}.wheel-header h1{font-size:28px;margin:0 0 9px}.wheel-header p{font-size:12px;color:var(--muted);margin:0;line-height:1.8}.limit-badge{display:inline-flex;gap:6px;align-items:center;background:var(--soft);color:var(--green);padding:7px 12px;font-size:10px;border-radius:20px;margin-top:14px}.wheel-frame{position:relative;width:100%;aspect-ratio:1;max-width:350px;margin:15px auto}.wheel-container{position:absolute;inset:0}.wheel-pointer{position:absolute;top:-3px;left:calc(50% - 12px);width:24px;height:32px;clip-path:polygon(0 0,100% 0,50% 100%);background:var(--dark);z-index:3}.wheel-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:66px;height:66px;background:var(--bg);border:5px solid #fff;border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 15px #0002;font-weight:800;color:var(--green);font-size:19px;pointer-events:none}.wheel-frame.no-candidates{background:repeating-conic-gradient(#e5e9dc 0deg 45deg,#f1f2eb 45deg 90deg);border:10px solid white;border-radius:50%;max-width:290px;margin:25px auto;box-shadow:0 5px 30px #26342510}.spin-button{width:100%;min-height:52px;font-size:15px;border-radius:17px;background:var(--green);color:white;font-weight:700;box-shadow:0 5px 15px #445b3420}.spin-info{text-align:center;font-size:10px;color:var(--muted);margin:12px 0 18px;line-height:1.8}.candidate-line{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:13px 0}.candidate-line>span:first-child{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--soft)}.candidate-line strong{font-size:12px;flex:1}.note-box{border-radius:14px;background:#fff4df;color:#84672a;padding:12px 14px;font-size:11px;line-height:1.8;margin:12px 0}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.stat{padding:18px;background:white;border:1px solid var(--line);border-radius:18px}.stat .stat-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}.stat .stat-label svg{width:15px}.stat b{display:block;font-size:30px;font-weight:700;margin-top:8px;letter-spacing:-1px}.stat small{font-size:10px;color:var(--muted)}.stat.accent{background:var(--green);color:#fff;border-color:var(--green)}.stat.accent .stat-label,.stat.accent small{color:#dce4d2}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:17px;margin-bottom:15px}.panel h2{font-size:14px;margin:0 0 16px}.bar-row{display:grid;grid-template-columns:65px 1fr 22px;align-items:center;gap:10px;font-size:10px;margin:14px 0}.bar-track{height:7px;background:var(--soft);border-radius:8px;overflow:hidden}.bar-track i{height:100%;display:block;background:#84976c;border-radius:8px}.manage-row{width:100%;padding:12px 0;display:flex;align-items:center;gap:12px;background:none;text-align:left;border-bottom:1px solid var(--line)}.manage-row:last-child{border:0}.manage-thumb{width:46px;height:46px;border-radius:12px;object-fit:cover;background:var(--soft);display:grid;place-items:center;font-size:24px}.manage-row strong{font-size:12px;font-weight:600;display:block}.manage-row small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.manage-row .grow{flex:1;min-width:0}.manage-row .grow strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-row{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:49px;background:none;text-align:left;font-size:12px;border-bottom:1px solid var(--line);gap:10px}.settings-row:last-child{border:0}.settings-row svg{width:18px}.settings-row span{flex:1}.settings-row small{color:var(--muted);font-size:10px}.sheet{border:0;padding:0 0 max(20px,env(safe-area-inset-bottom));width:min(100%,520px);max-width:520px;max-height:91dvh;border-radius:25px 25px 0 0;background:var(--bg);color:var(--dark);position:fixed;bottom:0;top:auto;margin:0 auto;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -10px 60px #0002}.sheet::backdrop{background:#19221975;backdrop-filter:blur(3px)}.sheet-top{height:37px;position:sticky;top:0;background:var(--bg);z-index:700;border-radius:25px 25px 0 0}.sheet-handle{display:block;width:36px;height:4px;border-radius:5px;background:#d7ddcd;position:absolute;left:calc(50% - 18px);top:11px}.close-sheet{width:32px;height:32px;font-size:22px;position:absolute;right:16px;top:9px}.sheet-content,#sheet-content{padding:8px 24px 10px}.sheet h2{font-size:23px;margin:8px 0 10px;letter-spacing:-.7px}.sheet .subtitle{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:22px}.field{display:block;margin:15px 0;font-size:12px;font-weight:600}.field input,.field select,.field textarea{display:block;margin-top:8px;width:100%;border:1px solid #dce2d2;border-radius:12px;background:white;color:var(--dark);padding:12px;min-height:46px;font-size:14px}.field textarea{resize:vertical;min-height:90px}.field input[type=file]{font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .field{margin:0}.form-actions{display:flex;gap:10px;margin-top:20px}.form-actions>*{flex:1}.form-error{color:var(--red);font-size:12px;line-height:1.7}.detail-photo{width:100%;height:200px;border-radius:18px;object-fit:cover;margin:10px 0 7px}.detail-tags{display:flex;gap:7px;margin:10px 0;flex-wrap:wrap}.tag{background:var(--soft);color:var(--green);padding:6px 9px;font-size:10px;border-radius:8px}.detail-dish{padding:16px;background:white;border:1px solid var(--line);border-radius:15px;margin:18px 0}.detail-dish small{font-size:10px;color:var(--muted)}.detail-dish p{font-size:14px;margin:8px 0 0;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.origin-choice{display:flex;gap:10px;margin:15px 0}.origin-choice button{flex:1}.edit-map-wrap{height:225px;border:1px solid var(--line);border-radius:15px;overflow:hidden;margin:12px 0;position:relative}.map-crosshair{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%);z-index:550;pointer-events:none;font-size:32px}.mode-toggle{display:flex;background:#e9eddf;padding:4px;border-radius:12px;gap:4px;margin:12px 0 20px}.mode-toggle button{flex:1;padding:9px;border-radius:9px;background:none;font-size:11px}.mode-toggle button.active{background:white;box-shadow:0 2px 4px #0001}.result-label{text-align:center;font-size:11px;color:var(--green);letter-spacing:2px;margin-top:15px}#toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);max-width:calc(100% - 40px);width:max-content;background:#263425;color:white;box-shadow:0 5px 20px #0002;border-radius:13px;padding:12px 18px;font-size:12px;line-height:1.7;z-index:2000;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.storage-warning{margin:0 22px;padding:12px;background:#fde7da;color:#8c3d29;font-size:12px;line-height:1.7}.footer-note{text-align:center;font-size:9px;line-height:1.9;color:#99a08e;margin-top:24px}.map-error{position:absolute;bottom:22px;left:10px;right:10px;z-index:550;background:#fff5e4;padding:9px;border-radius:9px;font-size:10px}.mini-rule{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.mini-rule span{color:var(--muted)}svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}
@media(max-width:360px){main{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.mode-notice{margin-left:16px;margin-right:16px}.intro h1{font-size:25px}.location-chip{padding:8px;font-size:9px}.card-image{height:125px}.cards{gap:10px}.card-body{padding:10px 8px}.card-body h3{font-size:12px}.hero-art{width:110px;height:110px;right:-24px;top:27px}.hero{padding:20px}.categories{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.hero h2{font-size:22px}.card-bottom{flex-wrap:wrap}.sheet-content,#sheet-content{padding-left:18px;padding-right:18px}.wheel-center{width:58px;height:58px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
