/* Toilet Kingdom / トイレの神様 — trial-faithful theme */
:root{
  --bg:#ffffff; --card:#ffffff; --ink:#1a2b3c; --muted:#6b7c8d;
  --line:#dfe8ef; --line-soft:#eaf1f6;
  --blue:#1f9bd8; --blue-dark:#1478ab; --blue-ink:#0f6ea3;
  --sky:#eaf4fb; --sky2:#d5eaf7;
  --gold:#e8a91c; --gold-deep:#b8860b; --orange:#f09000;
  --navy:#1e3a5f; --yellow:#f7c948; --teal:#37474f;
  --route-blue:#1d5a8a;
  --danger:#c0392b;
  --radius:16px; --maxw:560px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  line-height:1.5; font-size:16px;
}
button{font:inherit; cursor:pointer; min-height:44px; background:none; border:none; padding:0; color:inherit}
input,select,textarea{font:inherit; font-size:16px}

/* ---------- splash : glossy title badge + mascot ---------- */
#splash{
  position:fixed; inset:0; z-index:2000; background:#fff;
  display:flex; align-items:center; justify-content:center; padding:24px;
  transition:opacity .45s ease; overflow:hidden;
}
#splash.done{opacity:0; pointer-events:none}
.splash-inner{text-align:center; max-width:100%}
.title-badge{
  position:relative; display:inline-block; padding:5px; border-radius:28px;
  max-width:92vw;
  background:linear-gradient(180deg,#ffe9a8,#e8a91c 55%,#b8860b);
  box-shadow:0 10px 24px rgba(184,134,11,.35), 0 2px 0 rgba(120,80,0,.25);
}
.title-badge-in{
  display:block; border-radius:23px; padding:16px 30px;
  background:linear-gradient(180deg,#63bdea 0%,#2b9fd8 45%,#187fb6 100%);
  box-shadow:inset 0 2px 5px rgba(255,255,255,.6), inset 0 -4px 8px rgba(0,50,90,.18);
  color:#fff; font-size:clamp(24px,7vw,32px); font-weight:900; letter-spacing:.08em; white-space:nowrap;
  text-shadow:0 2px 3px rgba(0,60,100,.4), 0 0 1px rgba(0,60,100,.4);
}
.spark{position:absolute; color:#f7b500; font-style:normal; font-size:24px; line-height:1;
  text-shadow:0 1px 2px rgba(160,100,0,.5); pointer-events:none}
.spark.s1{top:-14px; right:6px; font-size:30px}
.spark.s2{bottom:-12px; left:2px; font-size:26px}
.spark.s3{top:34%; right:-6px; font-size:14px}
.splash-mascot{width:128px; height:128px; object-fit:contain; display:block; margin:26px auto 0}

/* ---------- layout ---------- */
#home{max-width:var(--maxw); margin:0 auto; background:#fff; padding-bottom:34px}

/* ---------- map (top of home) ---------- */
#map-wrap{position:relative; height:62vh; min-height:380px; max-height:620px; background:#eef1f5}
#map{position:absolute; inset:0; z-index:0}
/* business banner on map */
.biz-banner{
  position:absolute; top:10px; left:10px; right:10px; z-index:500;
  display:flex; align-items:center; gap:12px; width:calc(100% - 20px);
  background:rgba(255,255,255,.97); border:1.5px solid var(--sky2); border-radius:16px;
  box-shadow:0 2px 10px rgba(20,60,90,.14); padding:10px 12px; text-align:left; min-height:0;
}
.biz-icon{width:52px; height:52px; flex:0 0 auto; border-radius:14px; background:var(--sky);
  display:flex; align-items:center; justify-content:center}
.biz-icon.sm{width:40px; height:40px; border-radius:11px}
.biz-txt{flex:1; min-width:0; transition:opacity .18s ease}
.biz-txt.fade{opacity:0}
.biz-txt b{display:block; font-size:16.5px; font-weight:800}
.biz-txt small{display:block; color:var(--muted); font-size:13px; margin-top:1px}
.biz-chev{font-size:26px; color:var(--blue-ink); font-weight:700; padding-right:4px}
/* left controls : refresh + locate, then user row */
.map-left{
  position:absolute; left:10px; bottom:12px; z-index:500;
  display:flex; flex-direction:column; gap:8px;
}
.map-left-top{display:flex; flex-direction:column; gap:8px}
.user-row{
  display:flex; gap:8px; align-items:center;
}
.gbtn{
  width:52px; height:52px; border-radius:50%; background:#e3e6ea;
  display:flex; align-items:center; justify-content:center; min-height:0;
  box-shadow:0 1px 5px rgba(0,0,0,.18);
}
.gbtn.sm{width:40px; height:40px; border:1.5px solid #3d4753}
.gbtn:active{background:#d3d7dc}
.user-pill{
  background:#e3e6ea; border-radius:99px; padding:0 22px; height:52px;
  font-size:17px; font-weight:600; color:#2b3642; min-height:0;
  max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  box-shadow:0 1px 5px rgba(0,0,0,.18);
}
.user-pill.sm{height:40px; padding:0 18px; font-size:15px; max-width:140px; border:1.5px solid #3d4753}
/* right : zoom */
.map-right{
  position:absolute; right:12px; bottom:14px; z-index:500;
  display:flex; flex-direction:column; gap:10px; align-items:center;
}
.zoombox{
  background:#fff; border:1.5px solid var(--line); border-radius:12px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:0 1px 5px rgba(0,0,0,.16); width:52px;
}
.zoombox button{height:44px; font-size:22px; font-weight:700; color:#2b3642; min-height:0;
  display:flex; align-items:center; justify-content:center}
.zoombox button + button{border-top:1px solid var(--line)}
.zoombox button:active{background:#f0f4f8}
.zoombox .gbtn.info{width:100%; border-radius:0; box-shadow:none; font-size:19px; height:44px;
  font-style:italic; font-family:Georgia,serif}

/* quick card (pin tap) : dark card */
#quickcard{position:absolute; left:10px; right:10px; bottom:12px; z-index:600}
#quickcard[hidden]{display:none}
.qc-dark{
  position:relative; background:#22303f; color:#fff; border-radius:16px;
  box-shadow:0 4px 18px rgba(0,0,0,.3); padding:14px 14px 12px;
}
.qc-x{position:absolute; top:4px; right:6px; font-size:24px; color:#aeb9c4; min-height:0; padding:6px 10px}
.qc-top{display:flex; gap:12px; align-items:center; padding-right:26px}
.qc-wc{width:52px; height:52px; flex:0 0 auto; border-radius:14px; background:#2e8b57; color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px}
.qc-id b{display:block; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:220px}
.qc-id small{color:#c3ccd5; font-size:13px}
.qc-btns{display:flex; gap:8px; margin-top:12px}
.qc-btn{flex:1; border-radius:12px; padding:11px; font-weight:800; font-size:15px}
.qc-btn.detail{background:#3a4a5a; color:#fff; border:1.5px solid #5a6e82}
.qc-btn.route{background:#c9e8d8; border:none; color:#1e5a3a}
.qc-loading{color:#c3ccd5; font-size:14px; padding:8px 26px 8px 0}

/* route bar : dark blue banner */
.route-bar{
  position:absolute; left:10px; right:10px; bottom:12px; z-index:590;
  display:flex; gap:12px; align-items:center;
  background:var(--route-blue); color:#fff; border-radius:14px; padding:12px 14px;
  box-shadow:0 4px 16px rgba(0,0,0,.28);
}
.route-bar[hidden]{display:none}
.rb-tx b{display:block; font-size:16px}
.rb-tx small{display:block; font-size:13px; color:#cfe0ee; margin-top:1px}
.rb-ic{width:44px; height:44px; flex:0 0 auto; border-radius:50%; background:#fff; color:var(--blue);
  display:flex; align-items:center; justify-content:center; font-size:22px}
.rb-spin{width:34px; height:34px; flex:0 0 auto; border-radius:50%;
  background:#fff; display:flex; align-items:center; justify-content:center;
  color:#1e3a5f; font-size:18px}
@keyframes spin{to{transform:rotate(360deg)}}
.rb-x{margin-left:auto; color:#fff; font-size:22px; min-height:0; padding:4px 10px}

/* ---------- growth card ---------- */
.growth-card{
  margin:10px 14px 0; background:var(--sky); border:1.5px solid var(--sky2);
  border-radius:16px; padding:7px 14px; cursor:pointer;
}
.gc-body{display:flex; gap:12px; align-items:center}
.gc-avatar{position:relative; width:58px; height:58px; flex:0 0 auto}
.gc-egg{width:58px; height:58px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#f6c445,#e8a91c 70%);
  display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 0 -3px 6px rgba(120,70,0,.25)}
.gc-egg svg{width:40px; height:48px}
.gc-lv{position:absolute; left:50%; bottom:-8px; transform:translateX(-50%);
  background:#1c2733; color:#fff; font-size:11px; font-weight:800; border-radius:99px; padding:1px 10px; white-space:nowrap}
.gc-info{flex:1; min-width:0}
.gc-row{display:flex; align-items:baseline; justify-content:space-between; gap:8px}
.gc-stage{font-size:17px; font-weight:800}
.gc-pts{font-size:14px; color:var(--muted)}
.gc-bar{height:8px; background:#e3d9c4; border-radius:99px; overflow:hidden; margin:6px 0 4px}
.gc-bar > i{display:block; height:100%; background:linear-gradient(90deg,#f09000,#f7b500); border-radius:99px}
.gc-next{font-size:12.5px; color:var(--muted)}

/* ---------- two big buttons : icon + two-line labels (trial style) ---------- */
.home-btns{display:flex; gap:12px; margin:14px 14px 0}
.hbtn{
  flex:1; min-width:0; border-radius:18px; padding:12px 10px; min-height:72px;
  display:flex; align-items:center; gap:10px; text-align:left;
}
.hbtn.near{background:linear-gradient(180deg,#28a4de,#1c8cc2); box-shadow:0 4px 0 #1478ab, 0 6px 14px rgba(28,140,194,.35); color:#fff}
.hbtn.near:active{box-shadow:0 1px 0 #1478ab; transform:translateY(3px)}
.hbtn.reg{background:#fff; border:2px solid var(--blue); box-shadow:0 4px 0 #bcd9ec; color:var(--ink)}
.hbtn.reg:active{box-shadow:0 1px 0 #bcd9ec; transform:translateY(3px)}
.hbtn-ic{position:relative; width:48px; height:48px; flex:0 0 auto; border-radius:12px; background:#fff;
  display:flex; align-items:center; justify-content:center}
.hbtn.reg .hbtn-ic{background:var(--sky)}
.hbtn-plus{position:absolute; right:-7px; bottom:-7px; width:24px; height:24px; border-radius:50%;
  background:var(--blue); color:#fff; font-size:17px; font-weight:800; font-style:normal; line-height:24px; text-align:center}
.hbtn-tx{min-width:0; flex:1}
.hbtn-tx b{display:block; font-size:15px; font-weight:800; line-height:1.3}
.hbtn-tx small{display:none}

/* ---------- search ---------- */
.search-row{display:flex; gap:0; margin:14px 14px 0; border:1.5px solid var(--line); border-radius:14px; overflow:hidden; background:#fff}
.search-row input{flex:1; min-width:0; border:none; padding:13px 16px; font-size:16px; outline:none}
.search-row input::placeholder{color:#9aa7b3}
#search-btn{background:var(--teal); color:#fff; font-weight:800; font-size:16px; padding:0 26px; min-height:0}

/* ---------- filter chips : 5 in one row, icons on きれい/お気に入り ---------- */
.chips{display:flex; gap:6px; margin:12px 14px 0; flex-wrap:nowrap; padding-bottom:4px}
.chips::-webkit-scrollbar{display:none}
.chip2{
  flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; gap:4px;
  border:1.5px solid var(--line); min-width:0;
  border-radius:99px; padding:7px 4px; font-size:13px; font-weight:600; color:#4a5a6a;
  background:#fff; min-height:0; white-space:nowrap; overflow:hidden;
}
.chip2 img{width:20px; height:20px}
.chip-heart{font-size:16px; line-height:1}
.chip2.on{background:var(--sky2); border-color:var(--blue); color:var(--blue-ink); font-weight:800}

/* ---------- nearby list ---------- */
.nearby{margin:18px 14px 0}
.nearby-head{display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:10px}
.nearby-head h2{margin:0; font-size:21px; font-weight:800}
.nearby-head p{margin:2px 0 0; font-size:13.5px; color:var(--muted)}
.upd{font-size:15px; font-weight:600; color:var(--ink); text-decoration:underline; text-underline-offset:4px; padding:6px 4px; min-height:0}
.tcard{
  display:flex; gap:12px; background:#fff; border:1.5px solid var(--line-soft);
  border-radius:18px; padding:14px; margin-bottom:12px; box-shadow:0 1px 4px rgba(20,50,80,.06);
  text-align:left; width:100%; align-items:flex-start;
}
.tcard:active{background:#f7fafc}
.tbadge{
  width:74px; flex:0 0 auto; background:var(--sky); border:1.5px solid var(--sky2); border-radius:14px;
  display:flex; flex-direction:column; align-items:center; padding:8px 4px 6px;
}
.tbadge img{width:30px; height:30px}
.tbadge b{font-size:13px; margin-top:2px}
.tbadge span{font-size:13px; color:var(--muted)}
.tmain{flex:1; min-width:0; display:block}
.trow1{display:flex; align-items:baseline; justify-content:space-between; gap:8px}
.tname{font-size:17px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tdate{font-size:13px; color:var(--muted); flex:0 0 auto}
.trow2{display:block; font-size:13.5px; color:var(--muted); margin-top:3px}
.trow3{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; font-size:13px; color:var(--muted)}
.pill{font-size:12px; font-weight:700; padding:3px 10px; border-radius:99px; background:var(--sky2); color:var(--blue-ink)}
.pill.clean{background:var(--sky); border:1px solid var(--sky2)}
.favbtn{
  width:46px; height:46px; flex:0 0 auto; border-radius:50%; background:var(--sky);
  display:flex; align-items:center; justify-content:center; font-size:21px; color:#5a6a7a; min-height:0;
}
.favbtn.on{color:#e05575}
.nearby-empty{color:var(--muted); font-size:14px; text-align:center; padding:18px 0}

/* ---------- generic buttons / forms ---------- */
.big-btn{
  display:block; width:100%; padding:14px; font-size:17px; font-weight:800;
  color:#fff; background:var(--blue); border:none; border-radius:14px;
}
.big-btn:active{background:var(--blue-dark)}
.big-btn.ghost{background:#fff; border:1.5px solid var(--line); color:var(--ink); margin-bottom:10px}
.big-btn.danger{background:#fff; border:1.5px solid #f0b9b2; color:var(--danger)}
.link-danger{background:none; border:none; color:#e74c3c; font-size:15px; font-weight:600;
  padding:12px; width:100%; text-align:center; cursor:pointer; min-height:0}
.tbtn{background:#eef2f6; color:#3d4753; border:1px solid #d5dbe2; border-radius:9px;
  padding:7px 12px; font-size:14px; min-height:0}
.tbtn:active{background:#dde3e9}
.sheet-head .tbtn{
  font-size:20px; font-weight:700; line-height:1;
  width:38px; height:38px; min-width:38px; min-height:38px; padding:0; border-radius:50%;
  background:#e3f2fd; border:none; color:#1e3a5f;
}
.mbtn{padding:11px 8px; border-radius:10px; font-weight:700; font-size:15px;
  background:#fff; border:1.5px solid var(--line); color:var(--ink)}
.mbtn.on{background:#e8f0fe; border-color:var(--blue); color:var(--blue-ink)}
.mbtn.warn-on{background:#fdecea; border-color:var(--danger); color:var(--danger)}
.txt{width:100%; border:1.5px solid var(--line); border-radius:10px; padding:10px; margin:8px 0}
textarea.txt{min-height:64px; resize:vertical}
select.txt{background:#fff}
#auth-cancel,#biz-cancel{font-weight:700}
.linklike{background:none; border:none; color:var(--blue-ink); padding:6px 0; font-size:15px; min-height:0}
.row2{display:flex; gap:8px; margin:10px 0}
.row2 > *{flex:1}

/* ---------- bottom sheets ---------- */
.sheet-back{position:fixed; inset:0; background:rgba(20,30,40,.42); z-index:1000; display:none}
.sheet-back.open{display:block}
.sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:1001;
  background:#fff; border-radius:18px 18px 0 0; max-height:82vh;
  transform:translateY(102%); transition:transform .22s ease-out;
  display:flex; flex-direction:column; max-width:var(--maxw); margin:0 auto;
}
.sheet.open{transform:translateY(0)}
.sheet-head{padding:10px 16px 0; display:flex; align-items:center; gap:8px}
.sheet-title{font-size:18px; font-weight:800; flex:1; min-width:0}
.sheet-title .sheet-kicker{display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:2px}
.sheet-title span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block}
.sheet-body{overflow-y:auto; padding:6px 16px 26px; -webkit-overflow-scrolling:touch}
.grab{width:44px; height:5px; border-radius:99px; background:#dfe4ea; margin:8px auto 0}
.sheet-sec{font-size:15px; font-weight:800; margin:16px 0 6px; padding-top:12px; border-top:1px solid var(--line)}
.sheet-sec:first-child{border-top:none; padding-top:0; margin-top:8px}
.sheet-sec.inline{border:none; padding:0; margin:0}
.sec-sub{font-size:13px; color:var(--muted); margin:-2px 0 4px}
.muted{color:var(--muted)}

/* detail : info card (trial style) */
.info-card{display:flex; gap:14px; align-items:center; background:var(--sky);
  border:1.5px solid var(--sky2); border-radius:16px; padding:16px; margin:8px 0}
.info-wc{width:64px; height:64px; flex:0 0 auto; border-radius:16px; background:#fff; color:#7a8894;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:20px}
.info-tx small{display:block; font-size:13px; color:var(--muted)}
.info-tx b{display:block; font-size:22px; font-weight:800; margin:1px 0}
.info-row{display:flex; justify-content:space-between; align-items:center; margin:10px 2px 0}
.info-ok{color:var(--blue-ink); font-size:14px; font-weight:700; background:var(--sky2);
  border-radius:99px; padding:4px 14px; display:inline-block}
.info-warn{color:#c0392b; font-size:14px; font-weight:700; background:#fdecea;
  border-radius:99px; padding:4px 14px; display:inline-block}
.info-upd{font-size:13.5px; margin:4px 2px 0}
.rate-btn{display:block; width:100%; margin:10px 0 4px; padding:14px; color:#fff;
  background:linear-gradient(180deg,#28a4de,#1c8cc2); border:none; border-radius:14px}
.rate-btn b{display:block; font-size:19px; font-weight:800}
.rate-btn small{display:block; font-size:13px; opacity:.9; margin-top:2px; font-weight:600}
.rate-btn:active{transform:scale(.99)}
.points-box{background:#fef6dc; border:1px solid #f0dfae; border-radius:12px; padding:10px 12px; margin:10px 0}
.points-box b{display:block; font-size:14px}
.points-box small{display:block; color:var(--muted); font-size:12.5px; margin-top:2px}
.points-note{font-size:12.5px; color:var(--muted); margin:6px 0 0}
.clean-pick{display:flex; gap:10px; margin:10px 0}
.clean-opt{flex:1; background:#fff; border:2.5px solid var(--line); border-radius:12px;
  padding:12px 6px; text-align:center; font-weight:700; position:relative; font-size:15px}
.clean-opt[data-c="2"]{background:#fef6d8; border-color:#ecd27a}
.clean-opt[data-c="3"]{background:#f3e2d3; border-color:#cfa27e}
.clean-opt .cface{width:38px; height:38px; display:flex; align-items:center; justify-content:center; margin:0 auto 4px; font-size:30px}
.clean-opt .cface img{width:34px; height:34px}
.clean-opt.sel{border-color:var(--blue); box-shadow:0 0 0 2px rgba(31,155,216,.25)}
.clean-opt .chk{display:none; position:absolute; top:6px; right:6px; width:22px; height:22px;
  border-radius:50%; background:var(--blue); color:#fff; font-size:14px; line-height:22px}
.clean-opt.sel .chk{display:block}
.review-crowd-legend{font-size:14px; font-weight:800; margin:10px 0 2px}
.review-crowd-hint{font-size:12.5px; color:var(--muted); margin:0 0 2px}
.crowd-pick{display:flex; gap:8px; margin:8px 0}
.crowd-pick > *{flex:1}
.review-confirm{border:2px solid var(--blue); border-radius:12px; padding:12px; margin:10px 0; background:#f6faff}
.review-confirm small{display:block; color:var(--muted); font-size:12.5px}
.review-confirm strong{display:block; font-size:15px; margin:2px 0}
.review-confirm .rc-crowd{display:block; font-size:13.5px; margin-top:2px}
.review-confirm .rc-q{font-size:15px; font-weight:800; margin:10px 0}
.review-confirm .row2{margin:0}
.crowd-head{display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-top:14px}
.crowd-minus{flex:0 0 auto; width:44px; height:44px; border-radius:12px; font-size:20px; background:var(--sky)}
.crowd-exp{text-align:center; font-size:12.5px; color:var(--muted); margin:6px 0 0}
.report-line{background:#f6f8fa; border:1px solid var(--line); border-radius:10px; padding:8px 12px; margin:8px 0; font-size:14px}
.floor-h{font-weight:800; margin:12px 0 4px; font-size:14px}
.spot{display:flex; justify-content:space-between; gap:8px; padding:7px 2px; border-bottom:1px solid var(--line); font-size:14px}
.chip{font-size:12px; font-weight:700; padding:2px 9px; border-radius:99px; border:1px solid var(--line); background:#f1f4f7; color:#54606e}

/* ---------- register form ---------- */
.reg-grid{display:flex; gap:8px}
.reg-grid .fld{flex:1; min-width:0}
.fld label{display:block; font-size:13px; color:var(--muted); margin:0 0 3px}
.fld input{width:100%; border:1.5px solid var(--line); border-radius:9px; padding:10px}
details.adv{margin:8px 0}
details.adv summary{color:var(--blue-ink); font-size:15px; font-weight:700; cursor:pointer; padding:8px 0}
.checkline{display:flex; align-items:center; gap:8px; font-size:15px; margin:8px 0}
.checkline input{width:20px; height:20px}
/* duplicate check sheet */
.dup-head{display:flex; gap:12px; align-items:flex-start; margin:6px 0 12px}
.dup-ic{width:52px; height:52px; flex:0 0 auto; border-radius:14px; background:var(--sky);
  display:flex; align-items:center; justify-content:center}
.dup-head b{font-size:17px}
.dup-desc{font-size:14px; color:var(--muted); margin:4px 0 0}
.dup-list{display:flex; flex-direction:column; gap:8px; margin:0 0 10px}
.dup-item{display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  background:#fff; border:1.5px solid var(--line); border-radius:10px; padding:10px 12px}
.dup-item .nm{flex:1; min-width:0}
.dup-item .nm strong{display:block; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.dup-item .nm small{display:block; color:var(--muted); font-size:12.5px; margin-top:1px}
.dup-item .dist{font-weight:800; font-size:13px; white-space:nowrap}
.dup-empty{background:var(--sky); border-radius:12px; padding:14px; font-size:14px; color:var(--ink); margin:0 0 12px}
.dup-loading{font-size:14px; color:var(--muted); margin:0 0 10px}

/* ---------- leaflet : trial-style pins ---------- */
.leaflet-container{font:inherit}
.leaflet-control-attribution{font-size:9px !important; background:rgba(255,255,255,.65) !important; padding:1px 5px !important}
.leaflet-control-attribution a{color:#8a9aa8 !important}
.pin{
  width:22px; height:22px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--navy); box-shadow:0 1px 4px rgba(0,0,0,.3);
  color:#fff; font-size:10px; font-weight:800; line-height:1; position:relative;
}
.pin.cluster{width:36px; height:36px; background:var(--navy); border:3px solid #fff; font-size:13px}
.pin.clean{background:#7ec8f7}
.pin.mid{background:var(--yellow); color:#5a4a00}
.pin.warn{background:#b7791f}
.mk-cluster{
  border-radius:50%; background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; line-height:1;
  font-weight:800; border:3px solid #fff; box-shadow:0 1px 5px rgba(0,0,0,.3);
}
.me-egg{width:44px; height:56px; transform-origin:50% 90%; animation:purupuru 2.2s ease-in-out infinite; position:relative}
.me-egg svg{width:44px; height:50px}
.me-lv{position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  background:#1c2733; color:#fff; font-size:11px; font-weight:800; border-radius:99px; padding:1px 9px; white-space:nowrap}
.me-dot{width:14px; height:14px; border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35)}
@keyframes purupuru{0%,100%{transform:scale(1,1)}20%{transform:scale(.94,1.06) skewX(1.6deg)}45%{transform:scale(1.05,.95) skewX(-1.6deg)}70%{transform:scale(.98,1.02)}85%{transform:scale(1.01,.99)}}
@media (prefers-reduced-motion:reduce){.me-egg{animation:none}}

/* ---------- modals ---------- */
.modal-back{position:fixed; inset:0; background:rgba(20,30,40,.45); z-index:1100; display:none; align-items:center; justify-content:center; padding:18px}
.modal-back.open{display:flex}
.modal-back.sheet{align-items:flex-end; justify-content:center; padding:0}
.modal-back.sheet .modal{border-radius:20px 20px 0 0; max-width:100%; width:100%; max-height:92vh}
.modal{background:#fff; border-radius:16px; width:100%; max-width:420px; max-height:88vh; overflow-y:auto; padding:20px}
.modal h2{margin:0 0 12px; font-size:17px}
.auth-desc{margin:-8px 0 12px; color:var(--muted); font-size:13.5px}
.auth-desc[hidden]{display:none}
.about-head{display:flex; align-items:center; justify-content:space-between}
.about-head h2{margin:0}
.about-body{margin:12px 0 4px; line-height:1.8; font-size:14.5px}
.modal .fld{margin:0 0 10px}
.tabs{display:flex; gap:6px; margin-bottom:12px}
.tabs button{flex:1; padding:10px; border-radius:9px; border:1.5px solid var(--line); background:#fff; font-weight:700; min-height:44px}
.tabs button.on{border-color:var(--blue); color:var(--blue-ink); background:#eef4fe}
/* profile modal */
.prof-head{display:flex; gap:12px; align-items:center; margin-bottom:12px}
.prof-avatar{width:64px; height:64px; flex:0 0 auto; border-radius:50%; background:radial-gradient(circle at 35% 30%,#f6c445,#e8a91c 70%);
  display:flex; align-items:center; justify-content:center; overflow:hidden}
.prof-avatar svg{width:44px; height:52px}
.prof-id{flex:1; min-width:0}
.prof-id b{display:block; font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.prof-id small{display:block; color:var(--muted); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.prof-title-row{display:flex; gap:8px; align-items:baseline; font-size:14px; margin-bottom:10px}
.prof-title-row span{color:var(--muted)}
.prof-title-row b{font-size:16px}
.prof-pts{margin-bottom:10px}
.prof-pts b{font-size:26px; color:#cf8f1f}
.prof-bar{display:block; margin:0}
.prof-next{text-align:right; font-size:12px; color:var(--muted); margin:6px 0 12px}
.prof-stats{display:flex; margin:8px 0 8px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:14px 0}
.prof-stat{flex:1; text-align:center}
.prof-stat+.prof-stat{border-left:1px solid var(--line)}
.prof-stat b{display:block; font-size:22px}
.prof-stat small{font-size:12px; color:var(--muted); display:block; margin-bottom:2px}
.prof-pt-line{display:block; font-size:14.5px; font-weight:700; line-height:1.55}
.prof-sub{font-size:13px; color:var(--muted); margin:6px 0 12px}
.prof-stages{display:flex; gap:6px; margin:2px 0 16px}
.pstage{flex:1; text-align:center; opacity:.45; background:#f6f8fa; border-radius:10px; padding:10px 2px}
.pstage.on{opacity:1; background:var(--sky)}
.pstage:not(.on) .pstage-ic{filter:grayscale(1)}
.pstage-ic{display:block; width:34px; height:40px; margin:0 auto}
.pstage-ic svg{width:100%; height:100%}
.pstage b{display:block; font-size:11px; margin-top:2px}
.pstage small{display:block; font-size:10px; color:var(--muted)}
.prof-type{font-size:13.5px; color:var(--muted); text-align:center; margin:0 0 12px}

/* settings sheet */
.set-app{color:var(--blue-ink); font-size:15px; font-weight:700; margin:2px 0 12px}
.set-lang-card{background:var(--sky); border-radius:14px; padding:14px; margin-bottom:6px}
.set-lang-card b{display:block; font-size:14px; margin-bottom:10px}
.set-lang-row{display:flex; gap:10px}
.lang-opt{flex:1; background:#fff; border:2px solid var(--line); border-radius:12px; padding:12px; font-size:16px; font-weight:700}
.lang-opt.on{border-color:var(--blue); color:var(--blue-ink)}
.set-row{display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:14px 2px;
  border-bottom:1px solid var(--line); font-size:15px}
.set-row b{display:block; font-size:15px}
.set-row small{display:block; color:var(--muted); font-size:13px; margin-top:1px}
.set-row i{margin-left:auto; font-style:normal; font-size:22px; color:var(--muted)}

/* ---------- language gate ---------- */
#lang-gate{position:fixed; inset:0; z-index:3000; background:rgba(255,255,255,.98);
  display:none; align-items:center; justify-content:center; padding:20px}
#lang-gate.open{display:flex}
.lang-card{background:#fff; border:1.5px solid var(--line); border-radius:18px; padding:28px 24px; text-align:center; max-width:340px; width:100%}
.lang-card h2{margin:0 0 16px; font-size:17px}
.lang-card .big-btn{margin-top:10px}
.lang-select{font-size:16px; margin:6px 0 12px}

/* ---------- toast : dark blue (trial style) ---------- */
.toast{
  position:fixed; left:12px; right:12px; bottom:26px; margin:0 auto; max-width:520px;
  background:var(--route-blue); color:#fff; padding:13px 18px; border-radius:14px; font-size:14.5px;
  opacity:0; transform:translateY(20px); transition:all .2s; z-index:4000; pointer-events:none; text-align:center;
  box-shadow:0 4px 16px rgba(0,0,0,.25); line-height:1.6;
}
.toast.show{opacity:1; transform:translateY(0)}

/* ---------- evolution celebration overlay ---------- */
.evo-back{position:fixed; inset:0; z-index:2500; background:rgba(255,251,240,.97);
  display:none; align-items:center; justify-content:center; overflow:hidden}
.evo-back.open{display:flex}
.evo-center{position:relative; text-align:center; padding:24px; z-index:2}
.evo-char{width:170px; height:170px; margin:0 auto}
.evo-char svg{width:100%; height:100%; display:block}
.evo-char.spin svg{animation:evoSpin 1.4s ease-in-out}
@keyframes evoSpin{
  0%{transform:rotate(0deg) scale(1)}
  50%{transform:rotate(360deg) scale(1.18)}
  100%{transform:rotate(720deg) scale(1)}
}
.evo-congrats{margin:14px 0 4px; font-size:30px; font-weight:800; color:#c9962e;
  opacity:0; transform:scale(.6)}
.evo-stage{margin:0; font-size:19px; font-weight:700; color:#5a4a2f;
  opacity:0; transform:translateY(8px)}
.evo-congrats.show{animation:evoPop .45s ease-out forwards}
.evo-stage.show{animation:evoRise .45s .12s ease-out forwards}
@keyframes evoPop{to{opacity:1; transform:scale(1)}}
@keyframes evoRise{to{opacity:1; transform:translateY(0)}}
.evo-confetti{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:1}
.evo-confetti i{position:absolute; top:-14px; width:9px; height:13px; border-radius:2px;
  animation:evoFall 1.8s ease-in forwards}
@keyframes evoFall{to{transform:translateY(108vh) rotate(680deg)}}
