/* Roofing Giant Stormfront V8.4: original Roof Rescue, animated crew truck,
   earned achievements. Visual only; no gameplay boosts from IAP. */
[hidden]{display:none!important}
.rescue-promo{position:relative;overflow:hidden;border:1px solid #e0b67d;border-radius:13px;background:linear-gradient(125deg,#4b4135,#203c3b 65%);padding:15px 17px;box-shadow:inset 0 1px 0 #ffe7b31a,0 12px 27px #0004}
.rescue-promo:before{content:"";position:absolute;right:-45px;top:-55px;width:170px;height:165px;background:radial-gradient(circle,#f4a85b27,transparent 72%);pointer-events:none}
.rescue-promo-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rescue-promo-title>span{font-weight:950;color:#ffd292;letter-spacing:1.2px;font-size:11px}
.rescue-promo-title small{font-weight:900;font-size:9px;color:#b0f0d8;letter-spacing:.5px;white-space:nowrap}
.rescue-promo p{font-size:12px;line-height:1.55;color:#d2dbce;margin:9px 0 13px}
.rescue-start{position:relative;border:0;min-height:44px;width:100%;border-radius:8px;color:#1b2f2d;background:linear-gradient(110deg,#ffd195,#eea85f);font-weight:1000;font-size:12px;letter-spacing:.5px;display:flex;align-items:center;justify-content:center;gap:11px;box-shadow:0 4px 14px #0003}
.rescue-start span{font-size:17px}
.rescue-start:hover:not(:disabled){filter:brightness(1.06)}
.rescue-start:disabled{background:#31504b;border:1px solid #5b8176;color:#9fbcb0;box-shadow:none;opacity:.85}
.rescue-promo.is-complete{border-color:#76cb9c;background:linear-gradient(120deg,#244d3d,#183b3a)}
.rescue-promo.is-expired{border-color:#587d75;background:linear-gradient(120deg,#253c3a,#19343a)}
.rescue-dialog{max-width:min(485px,calc(100vw - 18px));padding:22px}
.rescue-dialog h2{margin:8px 0 5px;font-size:29px}
.rescue-dialog>p{margin:7px 0 11px;line-height:1.5}
.rescue-statline{display:flex;justify-content:space-between;gap:6px;margin:13px 0 11px;flex-wrap:wrap}
.rescue-statline span{border:1px solid #4f6a5f;background:#193c3a;color:#c8d9c9;font-size:10px;letter-spacing:.3px;font-weight:900;padding:6px 7px;border-radius:5px}
.rescue-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:11px 0}
.rescue-tool{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:78px;border:1px solid #507f75;border-radius:9px;background:linear-gradient(160deg,#214f4b,#14323b);color:#e7f3df;padding:8px 4px;font-size:11px;font-weight:900}
.rescue-tool .tool-emoji{font-size:28px;filter:drop-shadow(0 2px 3px #0007)}
.rescue-tool[aria-pressed="true"]{border:2px solid #ffca81;background:#55563d;box-shadow:0 0 0 2px #ffca8133}
.rescue-tool:disabled{opacity:.48}
.rescue-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px;border:1px solid #4f7d72;border-radius:13px;background:radial-gradient(circle at 50% 35%,#245449,#122f35 80%);box-shadow:inset 0 0 24px #051b28}
.rescue-cell{position:relative;aspect-ratio:1.45/1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;background:linear-gradient(140deg,#34635a,#1c3f45);border:1px solid #6a8c7d;border-radius:7px;padding:7px 3px;color:#e1e9df}
.rescue-cell:before{position:absolute;content:"";left:8%;right:8%;top:7px;border-top:2px solid #adc9b1;opacity:.53}
.rescue-cell .cell-symbol{font-size:22px}
.rescue-cell .cell-name{font-size:9px;font-weight:850;letter-spacing:.15px;line-height:1.18;max-width:95%;text-align:center}
.rescue-cell.broken{background:linear-gradient(145deg,#715741,#363e43);border-color:#edaf72}
.rescue-cell.broken:before{border-color:#f0ba74}
.rescue-cell.fixed{background:linear-gradient(140deg,#23664c,#1b4a40);border-color:#7cdeb1}
.rescue-cell.fixed .cell-symbol{filter:drop-shadow(0 0 6px #7ef8b0)}
.rescue-cell.sound{opacity:.55}
.rescue-cell:disabled{cursor:default}
.rescue-feedback{min-height:39px;padding:9px 12px;background:#284c47;color:#def7e5!important;border:1px solid #528a77;border-radius:8px;font-size:12px!important;line-height:1.4!important}
.rescue-feedback.warning{background:#63443e;border-color:#a67057;color:#ffdcc8!important}
.rescue-summary{border:1px solid #85d7a3;border-radius:9px;background:linear-gradient(125deg,#1a5745,#255144);padding:13px;line-height:1.6}
.rescue-summary strong{display:block;color:#d6ffda;font-size:17px;margin-bottom:5px}
.rescue-summary p{margin:3px 0;color:#d3f0da!important;font-size:12px!important}
.rescue-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}
.rescue-actions button{font-size:10px;min-height:43px}
.rescue-actions button:last-child{background:#263e41}
.career-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.career-badge{background:linear-gradient(125deg,#29453c,#193338);border:1px solid #6e9f83;border-radius:9px;padding:11px 8px;font-size:11px;display:flex;align-items:center;gap:8px}
.career-badge .badge-icon{font-size:24px}
.career-badge strong{display:block;font-size:12px;color:#ffce97}
.career-badge small{font-size:10px;color:#b8d5c5}
.career-badge.locked{opacity:.48;filter:grayscale(.8)}
.career-rescue-stats{color:#b5dfcc;font-size:11px;margin:10px 0}
.truck-fx{position:absolute;z-index:6;bottom:31%;left:-135px;width:135px;height:80px;pointer-events:none;filter:drop-shadow(0 9px 7px #0009);animation:rg-truck-drive 2.25s ease-in-out forwards}
.truck-fx svg{display:block;width:100%;height:100%}
.truck-fx .truck-light{animation:truck-blink .18s steps(2,start) 11}
.truck-fx .wheel{transform-origin:center;animation:truck-spin .3s linear 7}
.truck-reward{position:absolute;z-index:7;left:50%;top:26%;transform:translate(-50%,-50%);font-size:18px;color:#ffde91;font-weight:1000;text-shadow:0 2px 7px #000;animation:truck-coin 1.6s ease-out forwards;pointer-events:none;white-space:nowrap}
@keyframes rg-truck-drive{0%{transform:translateX(-18px) scale(.85);opacity:0}15%{opacity:1}45%{transform:translateX(var(--truck-mid)) scale(1);opacity:1}58%{transform:translateX(var(--truck-mid)) scale(1);opacity:1}96%{opacity:1}100%{transform:translateX(var(--truck-end)) scale(.9);opacity:0}}
@keyframes truck-spin{to{transform:rotate(360deg)}}
@keyframes truck-blink{50%{opacity:.2}}
@keyframes truck-coin{0%{opacity:0;transform:translate(-50%,20px) scale(.7)}30%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-44px) scale(1.05)}}
@media(max-width:490px){.rescue-promo{padding:13px}.rescue-statline span{font-size:9px;padding:5px}.rescue-grid{gap:5px;padding:6px}.rescue-cell{padding:4px 1px}.rescue-cell .cell-symbol{font-size:18px}.rescue-cell .cell-name{font-size:8px}.rescue-dialog{padding:17px}.rescue-tools{gap:5px}.rescue-tool{min-height:73px}.rescue-statline{margin:10px 0 8px}.rescue-promo-title>span{font-size:10px}.rescue-promo-title small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.truck-fx,.truck-reward{animation:none!important;display:none!important}.rescue-cell,.rescue-tool{transition:none!important}}
