/* Roofing Giant 3D Alpha31 — Storm Damage Detective.
   Three real-scene inspection cases, no static image replacing Three.js.
   Mobile viewport retains an unobstructed view of the actual 3D roof. */
.storm31-screen{
  position:absolute;inset:0;z-index:58;overflow:hidden;
  pointer-events:none;background:linear-gradient(100deg,#041a2415,#04162228);
}
.storm31-scene-title{
  position:absolute;left:clamp(10px,3.2vw,38px);
  top:clamp(65px,10vh,91px);padding:14px 18px;
  border-left:3px solid #b7dbb9;border-radius:0 10px 10px 0;
  background:linear-gradient(100deg,#0b2438ed,#143b45b3);
  color:#f3fff5;box-shadow:0 11px 29px #04151fa0;
  max-width:min(450px,53%);backdrop-filter:blur(9px)
}
.storm31-scene-title small{display:block;color:#98f4de;font-size:9px;
  letter-spacing:.18em;font-weight:920}
.storm31-scene-title strong{display:block;margin:5px 0;color:#fff0da;
  font-size:clamp(18px,2.5vw,32px);font-weight:980;letter-spacing:-.045em}
.storm31-scene-title>span{display:block;color:#c2ded5;font-size:9px;
  font-weight:850;letter-spacing:.07em}
.storm31-card{
  position:absolute;right:clamp(8px,3vw,42px);
  top:clamp(65px,9vh,91px);bottom:clamp(10px,2.7vw,30px);
  width:min(448px,43vw);padding:clamp(17px,2.2vw,26px);
  background:linear-gradient(145deg,#092434fa,#081c30fc);
  color:#eafff9;border:1px solid #83c6b9aa;border-radius:19px;
  box-shadow:0 26px 90px #000b;overflow-y:auto;overscroll-behavior:contain;
  pointer-events:auto;backdrop-filter:blur(15px);
}
.storm31-head{display:flex;align-items:center;justify-content:space-between;
  gap:10px;border-bottom:1px solid #63968a87;padding-bottom:12px}
.storm31-head span{font-size:10px;letter-spacing:.15em;font-weight:900;color:#8be9d3}
.storm31-head button{
  color:#f3fffc;font-size:22px;background:#16465a;border:1px solid #7fa49f8a;
  border-radius:10px;min-width:38px;min-height:38px;cursor:pointer}
.storm31-cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;margin:16px 0 18px}
.storm31-cases button{
  font-size:10px;letter-spacing:.06em;font-weight:950;min-height:40px;
  border-radius:9px;border:1px solid #68a0a09a;color:#bdddd4;
  background:#123d4a;cursor:pointer
}
.storm31-cases button[aria-pressed=true]{
  border-color:#ffe0a6;background:linear-gradient(120deg,#385854,#49684c);
  color:#fff4d9;box-shadow:inset 0 0 0 1px #f9c68466
}
.storm31-kicker{font-size:10px;color:#e4c69a;font-weight:940;letter-spacing:.12em}
.storm31-card h2{font-size:clamp(22px,3vw,32px);font-weight:960;
  letter-spacing:-.04em;line-height:1.06;margin:8px 0}
.storm31-card h3{font-size:clamp(15px,2.2vw,18px);line-height:1.32;
  font-weight:940;color:#f1fff7;margin:13px 0 10px}
.storm31-card p{font-size:12px;line-height:1.52;color:#c1dcd8;margin:8px 0}
.storm31-weather{
  background:#193d4b90;border:1px solid #588c878a;
  padding:11px 12px;margin:14px 0;border-radius:11px
}
.storm31-weather small{font-size:9px;color:#8ed9c8;font-weight:890;letter-spacing:.13em}
.storm31-weather p{font-size:11px;margin:5px 0 0;color:#b5d6d2}
.storm31-controls{display:grid;grid-template-columns:39px 39px 1fr 1fr;
  gap:7px;margin:14px 0}
.storm31-controls button{min-height:40px;font-size:10px;font-weight:910;
  background:#225360;color:#ddfaf1;border:1px solid #7cb8aeb3;
  border-radius:9px;cursor:pointer}
.storm31-controls button:nth-child(-n+2){font-size:21px}
.storm31-evidence{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid #7bd5b8ba;background:linear-gradient(110deg,#1b524c,#183c51);
  border-radius:11px;padding:12px 13px
}
.storm31-evidence>div{min-width:0}
.storm31-evidence span:first-child{display:block;font-size:9px;
  font-weight:900;letter-spacing:.14em;color:#95ead4}
.storm31-evidence strong{display:block;font-size:12px;color:#fff2d8;
  font-weight:950;margin:6px 0;line-height:1.27}
.storm31-evidence small{display:block;font-size:9px;color:#9bc5bd;font-weight:880}
.storm31-progress{flex:none;font-size:14px;color:#ffe4bb;font-weight:950}
#storm31Observation{font-size:12px;line-height:1.55;margin:14px 0}
#storm31Record{width:100%;min-height:48px;padding:10px;border-radius:10px;
  color:#0c3037;border:0;background:linear-gradient(112deg,#a7ebca,#80d2c9);
  font-weight:950;font-size:11px;cursor:pointer}
#storm31RecordZone small{display:block;margin:8px 0;color:#98b8b4;font-size:10px}
.storm31-choices{display:grid;gap:8px}
.storm31-choices button{min-height:49px;text-align:left;padding:11px 12px;
  cursor:pointer;border-radius:9px;border:1px solid #74a7a492;
  color:#eafff7;background:#153f4e;font-size:11.5px;line-height:1.4;font-weight:760}
.storm31-choices button:hover,.storm31-choices button:focus-visible{
  background:#216071;border-color:#f7c9a1}
.storm31-feedback{min-height:32px;color:#ffdbaf!important;
  font-size:11px!important;font-weight:740}
.storm31-next,.storm31-summary button{width:100%;min-height:47px;
  cursor:pointer;border-radius:9px;border:0;padding:12px 10px;
  background:linear-gradient(110deg,#fbdca7,#eeb576);
  color:#092b35;font-size:11px;font-weight:940;letter-spacing:.04em;margin:5px 0}
.storm31-footer{border-top:1px solid #638e8987;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  color:#99d0c2;font-size:10px;font-weight:880;
  letter-spacing:.045em;margin-top:18px;padding-top:11px}
.storm31-disclaimer{font-size:10px!important;color:#9fb9b4!important;
  border-top:1px solid #638c8b80;padding-top:11px;margin-top:20px!important;
  line-height:1.45!important}
.storm31-summary>strong{display:block;color:#ffe0ad;
  font-size:clamp(24px,3.4vw,34px);font-weight:980;line-height:1.14;
  margin:25px 0 9px;letter-spacing:-.04em}
.storm31-summary p{font-size:13px;line-height:1.6}
.storm31-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;margin:23px 0}
.storm31-stats div{padding:13px 9px;background:#21505c9c;
  border:1px solid #70b5aa8d;border-radius:9px}
.storm31-stats small{display:block;font-size:8px;color:#8bd8c2;letter-spacing:.055em}
.storm31-stats b{display:block;font-size:18px;color:#ffdda9;margin-top:8px}
#storm31Replay,#storm31Back{background:#204a58;color:#ebfcf5;border:1px solid #91bcaf}
.storm31-launch{border-color:#a9ddc6a4!important}
.storm31-screen button:focus-visible{outline:3px solid #fceab9;outline-offset:3px}
body[data-storm-detective31="on"] #hud,
body[data-storm-detective31="on"] .mobile-controls,
body[data-storm-detective31="on"] .touch-controls{visibility:hidden!important}
@media(max-width:760px){
 /* Keep the observation action close to the first visible 3D evidence marker.
    The full weather explanation remains available through panel scrolling. */
 .storm31-weather{padding:7px 9px;margin:7px 0}
 .storm31-weather p{display:-webkit-box;-webkit-box-orient:vertical;
   -webkit-line-clamp:2;overflow:hidden;line-height:1.42}
 .storm31-evidence{padding:9px 11px}
 #storm31RecordZone{margin:8px 0}
 #storm31Record{min-height:42px}

 .storm31-scene-title{top:58px;left:9px;padding:8px 11px;
   max-width:calc(100% - 20px)}
 .storm31-scene-title strong{font-size:19px;margin:4px 0}
 .storm31-scene-title small,.storm31-scene-title span{font-size:8px}
 .storm31-card{top:auto;left:7px;right:7px;bottom:7px;width:auto;
   max-height:min(63vh,560px);border-radius:16px;padding:15px 15px}
 .storm31-cases{margin:9px 0 12px}
 .storm31-card h2{font-size:21px}
 .storm31-weather{padding:8px;margin:9px 0}
 .storm31-card p{font-size:11px;line-height:1.44}
 .storm31-controls{margin:9px 0}
 .storm31-controls button{min-height:36px}
 .storm31-choices button{font-size:11px;min-height:42px;padding:9px}
 .storm31-summary>strong{font-size:24px}
}
@media(max-width:345px){
 .storm31-card{padding:11px 12px}
 .storm31-scene-title strong{font-size:16px}
 .storm31-head span{font-size:9px}
 .storm31-evidence strong{font-size:11px}
 .storm31-cases button{font-size:9px;min-height:38px}
}
@media(prefers-reduced-motion:reduce){.storm31-card{scroll-behavior:auto}}
