.rescue-heading{max-width:980px;margin:1.5rem auto}.rescue-heading h1{font-size:clamp(2rem,4.5vw,3.3rem);line-height:1.1;margin:.6rem 0 1rem}.rescue-heading>p{max-width:76ch}.rescue-tabs{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0}.rescue-tabs a{padding:.8rem 1rem;border:1px solid #628e87;border-radius:12px;text-decoration:none}.rescue-tabs a[aria-current]{background:#214c49;color:#fff}.rescue-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.rescue-pane{min-width:0;background:#fffdf7;border:1px solid #c6d6cb;border-radius:16px;padding:1.1rem}.rescue-pane h2{margin-top:0}.rescue-pane #rescue-original-code,.rescue-pane textarea{height:180px;box-sizing:border-box;width:100%;padding:.8rem;overflow:auto;white-space:pre;font:14px/1.55 monospace;background:#102a34;color:#edf4ed;border-radius:8px;border:1px solid #628e87;resize:vertical}.rescue-pane canvas{display:block;width:100%;height:auto;aspect-ratio:3/2;background:#0a1326;border:0;border-radius:10px}.rescue-pane .actions{margin:.8rem 0}.rescue-controls{display:flex;gap:.5rem;flex-wrap:wrap}.rescue-controls button{min-height:48px;min-width:76px;touch-action:none;user-select:none}.rescue-status{min-height:3em;font-size:.92rem}.rescue-output{white-space:pre-wrap;font-size:.9rem}.rescue-footer{margin:1.5rem 0}.rescue-footer details{background:#fffdf7;padding:1rem;border:1px solid #c6d6cb;border-radius:12px;margin:.8rem 0}.rescue-footer pre{overflow:auto;max-height:480px;font:13px/1.55 monospace;background:#102a34;color:#edf4ed;padding:1rem;border-radius:8px}.rescue-workshop summary{cursor:pointer;font-weight:650}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.rescue-teaser{position:relative;background:#0a1326;color:#fff;border-radius:20px;padding:1.5rem;max-width:380px}.rescue-teaser svg{display:block;width:100%;height:auto}.rescue-teaser p{margin:.5rem 0 0!important;color:#e8edf4!important}@media(max-width:760px){.rescue-comparison{grid-template-columns:1fr}.rescue-pane{padding:.8rem}.rescue-pane #rescue-original-code,.rescue-pane textarea{height:160px}.rescue-tabs a{padding:.65rem}.rescue-status{min-height:0}}

.rescue-workshop .syntax-keyword{color:#80b8ff}.rescue-workshop .syntax-number{color:#ffd484}.rescue-workshop .syntax-string{color:#98e2b6}.rescue-workshop .syntax-name{color:#edf4ed}.rescue-workshop .syntax-comment{color:#aebed0}.rescue-teaser{margin:0}.hero .rescue-teaser svg{display:block}

.rescue-controls{margin-top:.7rem}.rescue-pane details{margin:.5rem 0}.rescue-pane #rescue-goal{font-size:.95rem}.rescue-pane details p{font-size:.9rem}.rescue-tabs a{padding:.65rem .85rem}@media(max-width:760px){.rescue-heading{margin:.5rem auto 1rem}.rescue-heading h1{font-size:2.1rem}.rescue-tabs{gap:.4rem;margin:.8rem 0}.rescue-tabs a{padding:.55rem .7rem;font-size:.9rem}.rescue-heading>p{font-size:.95rem}.rescue-pane #rescue-original-code{height:150px}}
.rescue-edit-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:.5rem 0}.rescue-edit-actions .quiet{flex:1 1 180px;font-size:.8rem}.rescue-edit-actions button{min-height:44px}

@media(max-width:760px){.rescue-pane button{font-size:.9rem;padding:.6rem .75rem;min-height:44px}}

/* One task and one game by default; the original is an optional comparison. */
.rescue-workshop{max-width:900px;padding-top:1rem}.rescue-heading{margin:0 auto 1rem}.rescue-heading h1{font-size:2.2rem;margin:.4rem 0}.rescue-tabs{margin:.7rem 0}.rescue-comparison{display:block}.rescue-reference{margin:.8rem 0}.rescue-reference>.rescue-pane{margin-top:.5rem}.rescue-pane canvas{max-width:600px}.rescue-pane h2{font-size:1.3rem;margin:0 0 .5rem}.rescue-pane label{font-size:.8rem;font-weight:650}.rescue-pane .rescue-status{min-height:0;margin:.5rem 0;font-size:.85rem}.rescue-pane #rescue-source{height:160px;margin:.4rem 0}.rescue-pane details p{margin:.3rem 0}.rescue-footer>details{padding:.3rem 0;border:0;border-top:1px solid var(--line);background:none;border-radius:0}.rescue-edit-actions .quiet{font-size:.75rem}.rescue-pane .rescue-controls{margin:.5rem 0}.rescue-pane .rescue-controls button{min-height:44px}
