*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#0b1016;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1A2229;-webkit-tap-highlight-color:transparent}
#c{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
[hidden]{display:none!important}
.modal{position:fixed;inset:0;z-index:20;background:rgba(16,23,29,.72);display:flex;align-items:center;justify-content:center;padding:16px}
#age{background:rgba(16,23,29,.97);z-index:40}
.box{position:relative;max-width:440px;width:100%;background:#fff;border-radius:16px;padding:26px 22px;text-align:center;border-top:6px solid #5C9598;box-shadow:0 20px 60px rgba(0,0,0,.45);max-height:calc(100% - 20px);overflow:auto}
.box h2{margin:6px 0 8px;color:#35495A;font-size:22px}
.box p{margin:6px 0 14px;line-height:1.4;color:#3b4a56}
.box small{display:block;margin-top:14px;color:#66737d;font-size:12px}
.logo{max-width:120px;height:auto;display:block;margin:0 auto 10px}
.logo.sm{max-width:70px}
.btn{display:inline-block;border:0;border-radius:999px;padding:12px 22px;font-weight:700;font-size:15px;cursor:pointer;margin:4px;text-decoration:none;font-family:inherit}
.btn.yes{background:#5C9598;color:#fff}
.btn.yes:disabled{opacity:.5;cursor:default}
.btn.no{background:#e9edf0;color:#35495A}
.btn.ghost{background:#fff;color:#35495A;border:2px solid #5C9598}
.bar{height:6px;background:#e6ecef;border-radius:6px;overflow:hidden;margin:8px 0 14px}
.bar i{display:block;height:100%;width:0;background:#5C9598;transition:width .2s}
.ctl{font-size:13px;color:#4b5963;margin:0 0 14px;line-height:1.5}
.back{display:block;margin-top:12px;font-size:13px;color:#5C9598}
#hud{position:fixed;top:max(10px,env(safe-area-inset-top));left:10px;right:10px;z-index:10;display:flex;justify-content:space-between;pointer-events:none}
.hbtn{pointer-events:auto;background:rgba(16,23,29,.7);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;text-decoration:none;cursor:pointer;font-family:inherit}
#cartn{display:inline-block;min-width:20px;padding:0 6px;margin-left:4px;border-radius:10px;background:#5C9598}
#cross{position:fixed;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:rgba(255,255,255,.85);box-shadow:0 0 0 2px rgba(0,0,0,.35);z-index:5;pointer-events:none;display:none}
body.locked #cross{display:block}
#tip{position:fixed;left:50%;top:calc(50% + 16px);transform:translateX(-50%);background:rgba(16,23,29,.82);color:#fff;font-size:13px;padding:5px 10px;border-radius:8px;z-index:6;pointer-events:none;max-width:70vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#joy{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:calc(34px + env(safe-area-inset-bottom));width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.12);border:2px solid rgba(255,255,255,.35);z-index:8;touch-action:none}
#knob{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(92,149,152,.85);border:2px solid #fff}
.box.prod{text-align:left;max-width:400px}
.pimg{background:#fff;border:1px solid #e6ecef;border-radius:12px;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;max-height:42vh;margin:0 auto}
.pimg img{max-width:100%;max-height:100%;object-fit:contain}
.pcat{margin-top:12px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#5C9598;font-weight:700}
.box h3{margin:4px 0 6px;color:#1A2229;font-size:19px;line-height:1.25}
.pprice{font-size:20px;font-weight:800;color:#35495A;margin-bottom:12px}
.pprice s{font-size:14px;color:#8a969e;font-weight:400}
.prow{display:flex;gap:6px;flex-wrap:wrap}
.prow .btn{flex:1;text-align:center;margin:0}
.pmsg{min-height:18px;font-size:13px;color:#2f7d58;margin-top:8px}
.x{position:absolute;right:10px;top:8px;border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#35495A}
.box.cart{text-align:left}
#c-list{margin:8px 0;max-height:45vh;overflow:auto}
.ci{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #eef1f3;font-size:14px}
.ci .nm{flex:1;min-width:0}
.ci .nm b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci .nm span{color:#66737d;font-size:12px}
.ci button{border:1px solid #cfd8dc;background:#fff;border-radius:8px;width:30px;height:30px;font-size:16px;cursor:pointer}
.ci button.rm{color:#b3261e;border-color:#f0c7c4}
.ci .q{min-width:18px;text-align:center;font-weight:700}
.csub{display:flex;justify-content:space-between;font-size:16px;margin:10px 0}
.soon{background:#f2f7f7;border:1px dashed #5C9598;border-radius:10px;padding:10px;font-size:13px;color:#35495A;margin-bottom:10px}
.empty{color:#66737d;padding:14px 0;text-align:center}
#legal{position:fixed;left:0;right:0;bottom:0;z-index:4;text-align:center;font-size:11px;color:rgba(255,255,255,.75);background:rgba(10,14,18,.55);padding:4px 8px calc(4px + env(safe-area-inset-bottom));pointer-events:none}
/* v27: section menu (every product in the section, scrollable, selected one on top) */
.box.menu{max-width:640px;display:flex;flex-direction:column;height:min(820px,calc(100% - 20px));overflow:hidden;padding:18px 14px 12px}
.box.menu>.pcat{margin:0 34px 8px 2px}
.msel{display:flex;gap:12px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #e6ecef;flex:none}
.msel .pimg{width:118px;height:118px;flex:none;margin:0;aspect-ratio:auto}
.minfo{flex:1;min-width:0}
.minfo .pcat{margin-top:0}
.minfo h3{font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.minfo .pprice{font-size:18px;margin-bottom:8px}
.minfo .btn{padding:9px 12px;font-size:14px}
.minfo .btn:disabled{opacity:.55;cursor:default}
.minfo .pmsg{margin-top:4px;min-height:16px}
.mgrid{position:relative;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;padding:10px 2px 6px;align-content:start}
.mt{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#fff;border:2px solid #e6ecef;border-radius:12px;padding:6px;cursor:pointer;font-family:inherit;color:#1A2229;min-width:0}
.mt.on{border-color:#5C9598;box-shadow:0 0 0 2px #5C9598;background:#f2f7f7}
.mti{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;overflow:hidden;border-radius:8px;background:#fff}
.mti img{max-width:100%;max-height:100%;object-fit:contain}
.mtn{font-size:12px;line-height:1.25;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px}
.mtp{font-size:13px;color:#35495A;margin-top:2px}
@media (max-width:480px){.msel .pimg{width:96px;height:96px}.box.menu{padding:16px 10px 10px}.mgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}}
.mstock{font-size:12px;color:#8a5a12;margin:-4px 0 8px;min-height:0}
.mstock:empty{display:none}
.mt .mto{font-size:11px;color:#b3261e}
