/* RG Stormfront Alpha30 — REAL ROOF LAB: in-world house and animated roof layers.
   Crisp accessible HUD over the actual WebGL scene, no static illustration. */
.roof30-screen{
  position:absolute;z-index:55;inset:0;overflow:hidden;pointer-events:none;
  background:linear-gradient(90deg,rgba(1,13,23,.07),rgba(1,13,23,.17));
}
.roof30-viewlabel{
  position:absolute;left:clamp(14px,3.4vw,38px);top:clamp(68px,10vh,95px);
  padding:15px 22px 14px;max-width:min(440px,55%);
  border-left:3px solid #a2ebcf;
  border-radius:0 9px 9px 0;
  background:linear-gradient(90deg,#081d2fdf,#0d3340ab);
  box-shadow:0 10px 32px #04151f8c;
  color:#ecfff4;backdrop-filter:blur(9px);
}
.roof30-viewlabel span{display:block;font-size:9px;letter-spacing:.20em;
  color:#9fe7d4;font-weight:900}
.roof30-viewlabel strong{display:block;margin:7px 0 4px;
  color:#fff4df;font-size:clamp(19px,2.5vw,33px);font-weight:960;letter-spacing:-.04em}
.roof30-viewlabel small{display:block;color:#b7d7cf;font-size:10px;font-weight:850}
.roof30-card{
  position:absolute;right:clamp(12px,3.5vw,42px);top:clamp(68px,9vh,94px);
  bottom:clamp(12px,3vw,35px);
  width:min(449px,43vw);overflow-y:auto;overscroll-behavior:contain;
  pointer-events:auto;padding:clamp(19px,2.6vw,28px);
  background:linear-gradient(155deg,#082437fa,#091d2efa);
  color:#eafff7;border:1px solid #7ec4b2ac;
  border-radius:20px;box-shadow:0 30px 90px #000b;
  backdrop-filter:blur(16px);
}
.roof30-cardtop{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-bottom:10px;border-bottom:1px solid #517a7788;
}
.roof30-cardtop span{font-size:10px;letter-spacing:.15em;font-weight:930;color:#88eed4}
.roof30-cardtop button{min-width:36px;height:36px;background:#194456;
  color:#f2fff8;border:1px solid #75b9ae8b;border-radius:10px;
  font-size:23px;cursor:pointer}
.roof30-card h2{
  color:#fff0dc;font-size:clamp(23px,3vw,35px);
  font-weight:960;line-height:1.09;letter-spacing:-.04em;margin:17px 0 12px;
}
.roof30-card p{color:#bcd7d5;font-size:13px;line-height:1.52;margin:9px 0}
.roof30-geometry-actions{
  display:grid;grid-template-columns:1.1fr 1fr 40px 40px;gap:6px;margin:18px 0 16px
}
.roof30-geometry-actions button{
  padding:8px 5px;min-height:40px;border-radius:8px;cursor:pointer;
  border:1px solid #78c8b58c;background:#184b56;color:#dafff4;
  font-size:9px;font-weight:890;letter-spacing:.01em;
}
.roof30-geometry-actions button[aria-pressed=true]{
  border-color:#f5c996;background:#395348;color:#ffedcc;
}
.roof30-geometry-actions button:nth-child(n+3){font-size:22px;line-height:1;padding:0}
.roof30-layerline{display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:13px 0;padding:10px 12px;border:1px solid #87dbc7a3;background:#244c54b0;
  border-radius:9px}
.roof30-layerline strong{color:#fff1d7;font-size:12px;letter-spacing:.08em}
.roof30-layerline small{color:#8fe4c8;font-size:9px;font-weight:860;text-align:right}
.roof30-card h3{
  margin:19px 0 11px;color:#f0fff8;
  font-size:clamp(16px,2vw,18px);line-height:1.3;letter-spacing:-.015em
}
.roof30-options{display:grid;gap:8px}
.roof30-options button{
  width:100%;text-align:left;border-radius:11px;min-height:46px;
  cursor:pointer;padding:11px 12px;line-height:1.35;
  border:1px solid #629d9a8a;background:#123849;color:#effff8;
  font-size:12px;font-weight:800;letter-spacing:.005em;
}
.roof30-options button:hover,.roof30-options button:focus-visible{
  border-color:#f3ce9d;background:#1d5660;
}
.roof30-feedback{min-height:44px;color:#ffd5a3!important;font-size:12px!important;
  font-weight:720}
.roof30-next,#roof30Replay,#roof30Back{
  width:100%;min-height:47px;padding:11px 14px;
  border:0;border-radius:10px;cursor:pointer;
  color:#082333;background:linear-gradient(115deg,#ffe0ac,#ebb16e);
  font-size:11px;letter-spacing:.055em;font-weight:940;margin:6px 0
}
.roof30-lessonfoot{display:flex;align-items:center;justify-content:space-between;
  margin:14px 0;padding-top:12px;border-top:1px solid #608c8688;
  font-size:9px;letter-spacing:.1em;font-weight:850;color:#91ccc0}
.roof30-notice{display:block;color:#a0b9b7;line-height:1.47;font-size:10px;
  margin-top:17px;padding-top:12px;border-top:1px solid #59867c88}
.roof30-summary strong{
  display:block;color:#ffe0ad;font-size:clamp(25px,3.5vw,36px);
  letter-spacing:-.04em;line-height:1.1;margin:25px 0 12px;
}
.roof30-scoregrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;margin:25px 0}
.roof30-scoregrid div{background:#1e4b58b0;border:1px solid #71a99e88;
  padding:13px 9px;border-radius:10px}
.roof30-scoregrid small{display:block;font-size:9px;font-weight:860;
  color:#8bcfbe;line-height:1.3}
.roof30-scoregrid b{display:block;font-size:17px;color:#ffd29f;margin-top:8px}
#roof30Back{background:#204b5a;color:#eafff7;border:1px solid #8ec3ad}
.roof30-screen button:focus-visible{outline:3px solid #fff2c3;outline-offset:2px}
.roof30-launch{border-color:#85f1cfb3!important}
body[data-roof-lab30="on"] #hud,
body[data-roof-lab30="on"] .mobile-controls,
body[data-roof-lab30="on"] .touch-controls{visibility:hidden!important}
@media(max-width:760px){
 .roof30-viewlabel{top:60px;left:10px;padding:8px 12px;max-width:calc(100% - 20px)}
 .roof30-viewlabel strong{font-size:19px;margin:3px 0}
 .roof30-viewlabel small{font-size:9px}
 .roof30-card{
   top:auto;left:7px;right:7px;bottom:7px;
   width:auto;max-height:min(62vh,565px);
   border-radius:16px;padding:15px 16px 15px;
 }
 .roof30-card h2{font-size:22px;margin:11px 0 8px}
 .roof30-card p{font-size:12px}
 .roof30-geometry-actions{margin:11px 0;grid-template-columns:1.1fr 1fr 34px 34px;gap:5px}
 .roof30-geometry-actions button{font-size:8.5px;min-height:35px}
 .roof30-options button{font-size:12px;min-height:42px;padding:9px}
 .roof30-card h3{font-size:15px;margin:12px 0 9px}
 .roof30-feedback{min-height:28px}
 .roof30-notice{font-size:9px}
 .roof30-scoregrid b{font-size:16px}
}
@media(max-width:345px){
 .roof30-card{padding:11px 12px}
 .roof30-viewlabel strong{font-size:16px}
 .roof30-geometry-actions{grid-template-columns:1.05fr 1fr 30px 30px}
 .roof30-layerline small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
 .roof30-card{scroll-behavior:auto}
}
