/* ===== เรดาร์ฝนเรียลไทม์ ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;overflow:hidden;font-family:'Sarabun',sans-serif}
#map{position:fixed;inset:0;z-index:1;background:#0a0e14}
.leaflet-container{background:#0a0e14;font-family:'Sarabun',sans-serif}

/* ===== แถบบน ===== */
.top-bar{
  position:fixed;top:16px;left:16px;right:16px;z-index:1000;
  display:flex;gap:10px;align-items:flex-start;pointer-events:none;
}
.top-bar>*{pointer-events:auto}
.back-btn{
  padding:11px 16px;background:rgba(20,30,45,.85);color:#fff;text-decoration:none;
  border-radius:12px;font-size:14px;font-weight:600;backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.15);white-space:nowrap;transition:background .15s;
}
.back-btn:hover{background:rgba(30,50,75,.95)}
.search-box{flex:1;max-width:420px;position:relative}
.search-box input{
  width:100%;padding:11px 16px;font-size:15px;font-family:'Sarabun',sans-serif;
  background:rgba(20,30,45,.85);color:#fff;border:1px solid rgba(255,255,255,.15);
  border-radius:12px;outline:none;backdrop-filter:blur(10px);
}
.search-box input::placeholder{color:rgba(255,255,255,.55)}
.search-box input:focus{border-color:#4fc3f7}
.icon-btn{
  padding:11px 14px;font-size:16px;background:rgba(20,30,45,.85);color:#fff;
  border:1px solid rgba(255,255,255,.15);border-radius:12px;cursor:pointer;
  backdrop-filter:blur(10px);transition:background .15s;
}
.icon-btn:hover{background:rgba(30,50,75,.95)}
.icon-btn.loading{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* คำแนะนำ */
.suggestions{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:1001;
  background:rgba(20,30,45,.97);border:1px solid rgba(255,255,255,.15);
  border-radius:12px;backdrop-filter:blur(14px);display:none;overflow:hidden;
}
.suggestions.show{display:block}
.suggestion{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 16px;cursor:pointer;font-size:14px;transition:background .12s;
}
.suggestion:hover,.suggestion.active{background:rgba(79,195,247,.18)}
.suggestion .country{font-size:12px;color:rgba(255,255,255,.6);white-space:nowrap}

/* ===== ป้ายเรดาร์สด ===== */
.radar-badge{
  position:fixed;top:76px;left:16px;z-index:999;display:none;
  align-items:center;gap:9px;padding:9px 16px;background:rgba(20,30,45,.9);
  border:2px solid rgba(79,195,247,.5);border-radius:20px;font-size:13px;font-weight:600;
  backdrop-filter:blur(10px);color:#4fc3f7;box-shadow:0 4px 16px rgba(0,0,0,.4);
}
.radar-badge.show{display:flex}
.pulse{width:9px;height:9px;background:#ff5252;border-radius:50%;animation:pulse 1.5s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,82,82,.7)}70%{box-shadow:0 0 0 9px rgba(255,82,82,0)}100%{box-shadow:0 0 0 0 rgba(255,82,82,0)}}

/* ===== แผนภูมิสี ===== */
.legend{
  position:fixed;bottom:110px;right:16px;z-index:999;width:180px;
  background:rgba(20,30,45,.85);border:1px solid rgba(255,255,255,.15);
  border-radius:14px;padding:14px;backdrop-filter:blur(10px);font-size:12px;
}
.legend-title{font-weight:700;margin-bottom:8px;font-size:13px}
.legend-bar{height:10px;border-radius:5px;background:linear-gradient(90deg,#3b82f6,#22d3ee,#a3e635,#facc15,#f97316,#ef4444)}
.legend-labels{display:flex;justify-content:space-between;margin-top:5px;font-size:11px;color:rgba(255,255,255,.75)}
.legend-unit{margin-top:5px;font-size:10px;color:rgba(255,255,255,.5)}

/* ===== ปุ่มตั้งค่า ===== */
.settings{position:fixed;top:76px;right:16px;z-index:999;display:flex;flex-direction:column;gap:8px}
.settings button{
  padding:9px 12px;font-size:12px;font-family:'Sarabun',sans-serif;font-weight:600;
  background:rgba(20,30,45,.85);color:#fff;border:1px solid rgba(255,255,255,.15);
  border-radius:10px;cursor:pointer;backdrop-filter:blur(10px);transition:background .15s;
}
.settings button:hover{background:rgba(30,50,75,.95)}

/* ===== แถบควบคุมล่าง ===== */
.controls{
  position:fixed;bottom:16px;left:16px;right:16px;z-index:1000;
  display:flex;align-items:center;gap:14px;padding:12px 18px;
  background:rgba(20,30,45,.9);border:1px solid rgba(255,255,255,.15);
  border-radius:16px;backdrop-filter:blur(14px);max-width:760px;margin:0 auto;
}
.play-btn{
  flex-shrink:0;width:46px;height:46px;font-size:16px;color:#fff;
  background:linear-gradient(135deg,#0ea5e9,#2563eb);border:none;border-radius:50%;
  cursor:pointer;box-shadow:0 4px 14px rgba(37,99,235,.4);transition:transform .12s;
}
.play-btn:hover{transform:scale(1.08)}
.play-btn:active{transform:scale(.95)}
.timeline{flex:1;position:relative;padding:10px 0}
.timeline input[type=range]{
  width:100%;-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;
  background:rgba(255,255,255,.2);outline:none;cursor:pointer;
}
.timeline input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:20px;height:20px;background:#4fc3f7;border:3px solid #fff;
  border-radius:50%;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.5);
}
.timeline input[type=range]::-moz-range-thumb{
  width:20px;height:20px;background:#4fc3f7;border:3px solid #fff;border-radius:50%;cursor:pointer;
}
.timeline-marks{position:absolute;left:0;right:0;top:50%;display:flex;justify-content:space-between;pointer-events:none;transform:translateY(-50%)}
.mark{width:2px;height:12px;background:rgba(255,255,255,.3);border-radius:1px}
.mark.now{background:#4fff4f;box-shadow:0 0 6px rgba(79,255,79,.7)}
.mark.future{background:rgba(250,204,21,.5)}
.time-info{text-align:right;flex-shrink:0;min-width:110px}
.time-main{font-size:16px;font-weight:700;font-family:'Prompt',sans-serif}
.time-rel{font-size:11px;color:rgba(255,255,255,.65)}
.time-rel.forecast{color:#facc15}

/* จอเล็ก */
@media(max-width:600px){
  .top-bar{flex-wrap:wrap;top:10px;left:10px;right:10px}
  .search-box{max-width:none;order:3;flex-basis:100%}
  .legend{display:none}
  .controls{flex-wrap:wrap;left:10px;right:10px;bottom:10px;padding:10px 14px}
  .time-info{min-width:auto;flex-basis:100%;text-align:center;order:3}
  .timeline{order:2;flex-basis:100%}
  .radar-badge{top:auto;bottom:120px}
  .settings{top:auto;bottom:170px}
}

/* ===== พยากรณ์ฝนล่วงหน้า (Open-Meteo) ===== */
.forecast-panel{
  position:fixed;top:76px;right:16px;z-index:1000;width:310px;max-width:calc(100vw - 32px);
  background:rgba(20,30,45,.92);border:1px solid rgba(255,255,255,.15);
  border-radius:14px;backdrop-filter:blur(14px);box-shadow:0 8px 28px rgba(0,0,0,.45);
  display:none;overflow:hidden;
}
.forecast-panel.show{display:block}
.fp-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.12);
}
.fp-title{font-size:13px;font-weight:700;color:#a5d8ff}
.fp-close{
  background:none;border:none;color:rgba(255,255,255,.6);font-size:20px;
  line-height:1;cursor:pointer;padding:0 2px;
}
.fp-close:hover{color:#fff}
.fp-body{max-height:46vh;overflow-y:auto;padding:6px 10px}
.fp-loading,.fp-empty{padding:18px 8px;text-align:center;font-size:12px;color:rgba(255,255,255,.55)}
.fp-day{
  font-size:11px;font-weight:700;color:rgba(255,255,255,.6);
  padding:10px 4px 6px;position:sticky;top:0;
  background:rgba(20,30,45,.96);backdrop-filter:blur(4px);
}
.fp-day:first-child{padding-top:4px}
.fp-row{
  display:grid;grid-template-columns:46px 22px 1fr auto;align-items:center;gap:8px;
  padding:6px 4px;border-radius:8px;font-size:12px;
}
.fp-row.now{background:rgba(79,195,247,.18);box-shadow:inset 0 0 0 1px rgba(79,195,247,.35)}
.fp-row:hover{background:rgba(255,255,255,.06)}
.fp-h{color:rgba(255,255,255,.7);font-size:11px}
.fp-icon{font-size:15px;text-align:center}
.fp-bar{height:7px;background:rgba(255,255,255,.1);border-radius:4px;overflow:hidden}
.fp-bar>i{
  display:block;height:100%;border-radius:4px;
  background:linear-gradient(90deg,#38bdf8,#6366f1,#a855f7);
}
.fp-val{font-size:11px;color:rgba(255,255,255,.85);min-width:42px;text-align:right}
.fp-val.dim{color:rgba(255,255,255,.35)}
.fp-foot{
  padding:8px 14px;font-size:10px;color:rgba(255,255,255,.45);
  border-top:1px solid rgba(255,255,255,.12);
}
@media (max-width:640px){
  .forecast-panel{top:auto;bottom:96px;right:12px;left:12px;width:auto}
  .fp-body{max-height:34vh}
}

/* ===== ชั้นข้อมูลลม ===== */
.wind-box{
  position:fixed;top:190px;right:16px;z-index:999;display:flex;flex-direction:column;gap:8px;
}
.wind-box button{
  padding:9px 12px;font-size:12px;font-family:'Sarabun',sans-serif;font-weight:600;
  background:rgba(20,30,45,.85);color:#fff;border:1px solid rgba(255,255,255,.15);
  border-radius:10px;cursor:pointer;backdrop-filter:blur(10px);transition:all .15s;
}
.wind-box button:hover{background:rgba(30,50,75,.95)}
.wind-box button.active{
  background:linear-gradient(135deg,#0ea5e9,#2563eb);
  border-color:#4fc3f7;box-shadow:0 0 0 2px rgba(79,195,247,.3);
}
@media (max-width:640px){
  .wind-box{top:auto;bottom:200px;right:12px;flex-direction:row}
}

/* ===== พยากรณ์ ณ จุดที่คลิก (ข้อ 3) ===== */
.point-panel{
  position:relative;width:250px;
  background:rgba(20,30,45,.92);border:1px solid rgba(255,255,255,.15);
  border-radius:14px;backdrop-filter:blur(14px);padding:12px 14px;
  box-shadow:0 8px 28px rgba(0,0,0,.5);color:#fff;
}
.point-panel .pp-close{
  position:absolute;top:6px;right:8px;background:none;border:none;
  color:rgba(255,255,255,.55);font-size:18px;line-height:1;cursor:pointer;
}
.point-panel .pp-close:hover{color:#fff}
.pp-title{font-size:11px;font-weight:700;color:#a5d8ff;margin-bottom:8px;padding-right:16px}
.pp-loading{font-size:11px;color:rgba(255,255,255,.55);padding:12px 0;text-align:center}
.pp-sum{font-size:12px;margin-bottom:8px;display:flex;flex-direction:column;gap:2px}
.pp-sum small{font-size:10px;color:rgba(255,255,255,.5)}
.pp-warn{color:#fca5a5;font-weight:700}
.pp-ok{color:#86efac;font-weight:700}
.pp-hours{display:flex;flex-direction:column;gap:3px}
.pp-h{display:grid;grid-template-columns:38px 1fr 40px;align-items:center;gap:6px;font-size:10px}
.pp-t{color:rgba(255,255,255,.7)}
.pp-bar{height:5px;background:rgba(255,255,255,.12);border-radius:3px;overflow:hidden}
.pp-bar>i{display:block;height:100%;border-radius:3px}
.pp-v{text-align:right;color:rgba(255,255,255,.85)}
@media (max-width:640px){
  .point-panel{width:200px}
}

/* ============================================================
   คอลัมน์ขวา — รวมทุกกล่องเครื่องมือไว้ที่เดียว
   ============================================================
   เดิมแต่ละกล่อง position:fixed แยกกัน (top:76 / top:190 / bottom:110)
   พอเพิ่มปุ่ม ความสูงกล่องแรกโตจนไปชนกล่องถัดไป
   ตอนนี้ใช้ flex column เดียว เรียงลงมาให้อัตโนมัติ ไม่มีวันทับ
   ถ้าจอเตี้ยเกินไปจะเลื่อนแถบได้ */
.right-rail{
  position:fixed;top:76px;right:16px;bottom:104px;z-index:999;
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;
  overflow-y:auto;overflow-x:hidden;pointer-events:none;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent;
  /* ห้ามยืดเกินขอบเขตตัวเอง — เนื้อหาที่เกินให้เลื่อนด้านในแทนที่จะล้นทับแถบล่าง */
  max-height:calc(100vh - 76px - 104px);
}
.right-rail::-webkit-scrollbar{width:5px}
.right-rail::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:3px}
.right-rail>*{pointer-events:auto;flex-shrink:0}

/* กล่องทุกอันได้ขนาดตามธรรมชาติ — ไม่ย่อ/ขยายอัตโนมัติ
   ถ้าไม่พอที่ คอลัมน์ขวาจะเลื่อนได้เอง (overflow-y:auto ด้านบน)
   แบบนี้แผงพยากรณ์จะไม่ถูกบีบจนเห็นแค่ 128px เหมือนเดิม */
.forecast-panel{
  flex-shrink:0;display:none;
  max-height:min(50vh,440px);
}
.forecast-panel.show{display:flex;flex-direction:column;overflow:hidden}
.forecast-panel .fp-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;
  max-height:none;   /* ให้ flex จัดขนาดแทนการกำหนด px ตายตัว */
}
.forecast-panel .fp-head,.forecast-panel .fp-foot{flex:0 0 auto}
.legend{flex-shrink:0}

/* ===== แผงเฝ้าสภาพอากาศรุนแรง ===== */
.hazard-panel{
  flex-shrink:0;display:none;
  position:static;top:auto;right:auto;bottom:auto;left:auto;
  width:310px;max-width:calc(100vw - 32px);
  max-height:min(46vh,400px);
  border-radius:12px;overflow:hidden;
  display:none;flex-direction:column;
  background:rgba(12,18,32,.92);
  border:1px solid rgba(248,113,113,.35);
  backdrop-filter:blur(8px);
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.hazard-panel.show{display:flex}
.hz-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 10px;border-bottom:1px solid rgba(248,113,113,.25);
  flex:0 0 auto;
}
.hz-title{font-size:13px;font-weight:700;color:#fda4af}
.hz-close{
  background:none;border:none;color:rgba(255,255,255,.6);
  font-size:18px;cursor:pointer;line-height:1;padding:0 4px;
}
.hz-close:hover{color:#fff}
.hz-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;padding:8px 10px;
}
.hz-loading,.hz-ok{padding:16px 8px;text-align:center;font-size:12px;color:rgba(255,255,255,.55)}
.hz-ok{color:#86efac}
.hz-item{
  display:flex;gap:9px;align-items:flex-start;
  padding:7px 0;border-bottom:1px solid rgba(255,255,255,.07);
}
.hz-item:last-of-type{border-bottom:none}
.hz-badge{
  flex:0 0 auto;font-size:11px;font-weight:700;
  padding:3px 8px;border-radius:999px;
  background:var(--hz);color:#0b1220;white-space:nowrap;
}
.hz-detail{font-size:11.5px;line-height:1.5;color:rgba(255,255,255,.82);min-width:0}
.hz-pos{display:block;color:rgba(255,255,255,.4);font-size:10.5px}
.hz-summary{
  margin-top:8px;padding-top:7px;border-top:1px solid rgba(255,255,255,.1);
  font-size:11px;color:rgba(255,255,255,.55);text-align:center;
}

/* ===== บล็อกคำเตือนจริงจากกรมอุตุนิยมวิทยา ===== */
.hz-tmd{
  flex:0 0 auto;
  border-top:1px solid rgba(248,113,113,.25);
  padding:8px 10px;font-size:11.5px;line-height:1.5;
}
.hz-tmd:empty{display:none}
.hz-tmd-title{font-weight:700;color:#fda4af;margin-bottom:5px;font-size:11.5px}
.hz-tmd-body{color:rgba(255,255,255,.75)}
.hz-tmd-body a{color:#7dd3fc;text-decoration:underline}
.hz-tmd-body code{
  background:rgba(255,255,255,.1);padding:1px 4px;border-radius:3px;
  font-size:10.5px;color:#a5d8ff;
}
.hz-tmd-body ol,.hz-tmd-body p{margin:3px 0;padding-left:16px}
.hz-tmd.key-needed{
  background:rgba(251,146,60,.10);border-left:3px solid #fb923c;
}
.hz-tmd.tmd-ok{background:rgba(134,239,172,.08);border-left:3px solid #86efac}
.hz-tmd.tmd-error{background:rgba(248,113,113,.10);border-left:3px solid #f43f5e}
.hz-tmd.tmd-has{background:rgba(248,113,113,.08);border-left:3px solid #f87171}
.hz-tmd-list{display:flex;flex-direction:column;gap:5px}
.hz-tmd-item{
  display:flex;gap:7px;align-items:flex-start;text-decoration:none;
  color:inherit;padding:5px 6px;border-radius:6px;
  background:rgba(255,255,255,.05);transition:background .15s;
}
.hz-tmd-item:hover{background:rgba(255,255,255,.12)}
.hz-dot{
  flex:0 0 auto;width:8px;height:8px;border-radius:50%;
  background:var(--hz,#fde047);margin-top:4px;
  box-shadow:0 0 7px var(--hz,#fde047);
}
.hz-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
.hz-txt b{color:rgba(255,255,255,.92);font-size:11.5px;line-height:1.35}
.hz-txt small{color:rgba(255,255,255,.55);font-size:10.5px;line-height:1.4}
.hz-txt em{color:rgba(255,255,255,.35);font-size:10px;font-style:normal}
.hz-tmd-foot{
  margin-top:6px;font-size:10px;color:rgba(255,255,255,.4);
}
.hz-foot{
  padding:7px 10px;border-top:1px solid rgba(248,113,113,.2);
  font-size:10px;line-height:1.45;color:rgba(255,255,255,.5);
  flex:0 0 auto;
}
.hz-foot b{color:#fda4af}
.suggestion small{color:rgba(255,255,255,.45);font-size:11px}

@media (max-width:640px){
  .hazard-panel{width:100%;max-height:34vh}
}

/* ยกเลิก position:fixed เดิม — ให้ไหลตามคอลัมน์แทน */
.settings,
.wind-box,
.forecast-panel,
.legend{
  position:static;top:auto;right:auto;bottom:auto;left:auto;
}
.forecast-panel,.legend{width:180px;max-width:calc(100vw - 32px)}
.forecast-panel{width:310px}
.wind-box,.settings{display:flex;flex-direction:column;gap:8px}
/* กลุ่มปุ่มต้องกว้างพอให้ป้ายภาษาไทยอ่านออก — ไม่ให้หดเหลือแค่ไอคอน
   (ไม่งั้นข้อความจะชิดขอบจอจนดูเหมือนถูกตัด) */
.wind-box,.settings{width:172px;max-width:100%}
.wind-box>button,.settings>button{width:100%;justify-content:flex-start}

@media (max-width:640px){
  .right-rail{
    top:auto;bottom:96px;right:12px;left:12px;
    flex-direction:row;flex-wrap:wrap;justify-content:flex-end;
    align-items:flex-end;
  }
  .wind-box,.settings{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
  .legend{width:auto;flex:1 1 100%}
  .forecast-panel{width:100%}
}

/* ===== พื้นหลังโทนมืด =====
   ใช้ World Topo (รองรับซูมถึง z19) แล้วย่อสีให้เข้มแบบ Dark Gray Canvas
   ทำไมไม่ใช้ Dark Gray Canvas ตรงๆ: มันมีข้อมูลแค่ถึง z16
   พอซูมเกิน Esri จะตอบภาพ "Zoom Level Not Supported" (สถานะ 200)
   → เบราว์เซอร์ถือว่าสำเร็จ tileerror ไม่ยิง → ภาพพังหลุดถึงหน้าจอผู้ใช้ */
.leaflet-tile-pane .base-dark {
  filter: invert(1) hue-rotate(185deg) brightness(0.82) contrast(1.05) saturate(0.55);
}

/* ป้องกันซ้ำ: ถ้ามี tile พังหลุดเข้ามาจริงๆ ให้ซ่อนทิ้งแบบไม่ต้องรอ Leaflet แจ้ง
   (Leaflet จะไม่แจ้งเพราะ Esri ตอบสถานะ 200) */
.leaflet-tile-pane img[src*="basemap"] {
  /* ไม่ต้องทำอะไร — เซิร์ฟเวอร์กรองไบต์ให้แล้ว บรรทัดนี้กันไว้ให้เห็นชัดว่าจัดการฝั่งเซิร์ฟเวอร์ */
}

/* ปรับความเข้มขั้นต่ำ */
.threshold-box{margin-top:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.12)}
.thr-title{font-size:10px;color:rgba(255,255,255,.6);margin-bottom:5px;text-align:left}
.thr-val{font-size:9px;color:rgba(255,255,255,.45);margin-top:3px;line-height:1.3}
.threshold-box input[type=range]{width:100%;height:14px;cursor:pointer}

/* ===== โหมดจอเต็ม (wall view) ===== */
.wall-info{
  position:fixed;inset:0;z-index:2000;display:none;
  pointer-events:none;font-family:'Sarabun',sans-serif;color:#fff;
}
body.wall-mode .wall-info{display:block}

/* ซ่อนเครื่องมือทั้งหมดในโหมดจอเต็ม */
body.wall-mode .top-bar,
body.wall-mode .right-rail,
body.wall-mode .controls,
body.wall-mode .radar-badge,
body.wall-mode .leaflet-control-container,
body.wall-mode .point-panel{display:none !important}

/* เข้มขึ้นทั้งจอ ให้เห็นชัดจากระยะไกล */
body.wall-mode .leaflet-container{filter:brightness(1.12) contrast(1.06)}

.wall-clock{
  position:absolute;top:5vh;left:0;right:0;text-align:center;
  font-size:clamp(64px,13vw,190px);font-weight:700;line-height:1;
  letter-spacing:-2px;text-shadow:0 4px 30px rgba(0,0,0,.85),0 1px 3px rgba(0,0,0,.9);
}
.wall-date{
  position:absolute;top:calc(5vh + clamp(64px,13vw,190px));left:0;right:0;text-align:center;
  font-size:clamp(16px,2.4vw,30px);font-weight:400;
  text-shadow:0 2px 16px rgba(0,0,0,.9);
}
.wall-city{
  position:absolute;bottom:7vh;left:0;right:0;text-align:center;
  font-size:clamp(20px,3.4vw,44px);font-weight:700;
  text-shadow:0 3px 22px rgba(0,0,0,.9);
}
.wall-time{
  position:absolute;bottom:calc(7vh + clamp(20px,3.4vw,44px));left:0;right:0;text-align:center;
  font-size:clamp(13px,1.7vw,22px);
  text-shadow:0 2px 14px rgba(0,0,0,.9);
}
.wall-exit{
  position:absolute;top:20px;right:20px;pointer-events:auto;
  padding:9px 15px;font-size:13px;font-family:inherit;cursor:pointer;
  background:rgba(20,30,45,.8);color:#fff;
  border:1px solid rgba(255,255,255,.2);border-radius:10px;
  backdrop-filter:blur(10px);opacity:.35;transition:opacity .2s;
}
.wall-exit:hover{opacity:1}
.wall-info:hover .wall-exit{opacity:1}

/* เมาส์นิ่ง 3 วินาทีจึงซ่อนปุ่มออก */
@media (prefers-reduced-motion:no-preference){
  .wall-exit{transition:opacity .4s}
}
