/* 대체 화면 — WebGL2를 못 쓰거나(html.no-world) 자바스크립트가 꺼진 경우(html:not(.js)).
   같은 문서의 HTML 카드(.fallback)를 보여 주고, 월드 전용 요소는 숨긴다. 월드가 켜져 있을 때 .fallback은 읽기 전용(화면 밖)으로만 남는다.
   색은 월드와 같은 토큰(--ink --teal --orange --paper). */
.scenery{display:none}
html:not(.no-world).js .fallback{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
:is(html.no-world,html:not(.js)) :is(#world,#dustLayer,.map-point,.scene-bottom,.scene-label,.bottombar,.toast,.rover-speech,.npc-speech,.nav,.hero-actions){display:none!important}
:is(html.no-world,html:not(.js)) .hero{height:auto;min-height:0;display:flex;flex-direction:column;padding:132px 5.5% 0}
:is(html.no-world,html:not(.js)) .hero-copy{position:relative;top:auto;left:auto;max-width:720px;pointer-events:auto}
:is(html.no-world,html:not(.js)) .hero h1{letter-spacing:-2.2px}
:is(html.no-world,html:not(.js)) .fallback{position:relative;z-index:8;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:44px 0 0;padding-bottom:230px;max-width:1040px}
.fcard{background:rgba(249,252,248,.88);border:1px solid #d5e6df;border-radius:20px;padding:24px 26px;box-shadow:0 10px 30px rgba(24,55,60,.07);backdrop-filter:blur(6px);white-space:normal}
.fcard .fno{font-size:11px;letter-spacing:2px;color:#49a39a;font-weight:800}
.fcard h2{font-size:25px;letter-spacing:-1px;margin:8px 0 10px;color:#1a4445}
.fcard .desc{font-size:14.5px;line-height:1.85;color:#456a69;margin:0}
.fcard .points{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:7px;font-size:13.5px;line-height:1.6;color:#456a69}
.fcard .points b{color:#1d6a66;font-weight:750}
.fcard .tags{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 0;padding:0;list-style:none}
.fcard .tags li{border-radius:30px;border:1px solid #cce3db;padding:6px 11px;color:#34736b;font-size:12px}
:is(html.no-world,html:not(.js)) .scenery{display:block;position:absolute;left:0;bottom:0;width:100%;height:300px;z-index:1;pointer-events:none}
.contact{text-decoration:none;display:inline-flex;align-items:center}
.footnote a{color:#7b8f8b;text-decoration:none;font-weight:700}.footnote a:hover{color:var(--teal)}
.panel-points{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px;font-size:14px;line-height:1.65;color:#547372}
.panel-points b{color:#1d6a66}
.panel-footer a{color:#1d6a66;text-decoration:none;font-weight:750}
@media(max-width:860px){:is(html.no-world,html:not(.js)) .fallback{grid-template-columns:1fr;padding-bottom:200px}}
@media(max-width:680px){:is(html.no-world,html:not(.js)) .hero{padding-top:104px}.fcard{padding:20px}.fcard h2{font-size:22px}:is(html.no-world,html:not(.js)) .scenery{height:230px}}

/* 한국어 제목에 맞춘 크기(월드 화면 포함) — 원래 영어 두 줄 기준이던 값을 줄이고 폭을 넓힌다 */
.hero-copy{max-width:600px}
.hero h1{font-size:clamp(34px,3.6vw,58px);line-height:1.22;letter-spacing:-2.6px;margin:24px 0 22px}
@media(max-width:1100px){.hero h1{font-size:42px;letter-spacing:-2.2px}}
@media(max-width:680px){.hero h1{font-size:31px;line-height:1.25;letter-spacing:-1.6px;margin:14px 0 12px}.hero-copy{max-width:88%}}

/* 한국어 줄바꿈은 단어 단위로, 제목·소개는 줄 길이를 고르게 */
.lead,.fcard .desc,.fcard .points,.panel-desc,.panel-points,.rover-speech p{word-break:keep-all;overflow-wrap:break-word}
.hero h1,.lead{text-wrap:balance}
.lead{max-width:480px}
/* 3D 화면에서 소개 글이 숲과 겹쳐 읽기 어려워, 배경을 깔지 않고 글자 둘레에만 옅은 흰 윤곽을 둔다 */
.hero-copy{isolation:isolate}
html:not(.no-world).js .hero-copy :is(.eyebrow,h1,.lead,.microcopy){text-shadow:0 0 3px rgba(246,252,248,.95),0 0 9px rgba(246,252,248,.85),0 0 18px rgba(246,252,248,.6)}
:is(html.no-world,html:not(.js)) .lead{max-width:680px}
:is(html.no-world,html:not(.js)) .fallback{max-width:1200px}

/* 말풍선 투명도: --bubble-alpha(0 투명 ~ 1 불투명)만 고치면 된다. 글자는 옅은 윤곽으로 숲 위에서도 읽히게 */
.rover-speech{--bubble-alpha:.5;background:rgba(249,255,251,var(--bubble-alpha));backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.rover-speech::after{background:rgba(249,255,251,var(--bubble-alpha))}
.rover-speech p,.speech-head{text-shadow:0 0 5px rgba(249,255,251,.95),0 0 2px rgba(249,255,251,.9)}

/* 로봇 '수'의 말풍선 — 로버 말풍선과 같은 투명도(--bubble-alpha), 이름 줄은 주황으로 구분 */
.npc-speech{--bubble-alpha:.5;position:absolute;left:0;top:0;z-index:9;width:min(190px,62vw);padding:7px 11px 9px;background:rgba(249,255,251,var(--bubble-alpha));backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border:1px solid #ffffffb3;border-radius:12px;box-shadow:0 10px 30px #204e4e40;transform:translate(-50%,-112%);pointer-events:none;word-break:keep-all}
.npc-speech[hidden]{display:none}
.npc-speech span{display:block;font-size:10px;letter-spacing:.9px;font-weight:850;color:#b8661b}
.npc-speech p{margin:4px 0 0;font-size:13px;line-height:1.5;font-weight:650;color:#244f52}
.npc-speech::after{content:"";position:absolute;left:50%;bottom:-8px;width:16px;height:8px;transform:translateX(-50%);background:rgba(249,255,251,var(--bubble-alpha));clip-path:polygon(0 0,100% 0,50% 100%)}
.npc-speech p,.npc-speech span{text-shadow:0 0 5px rgba(249,255,251,.95),0 0 2px rgba(249,255,251,.9)}

.npc-speech.drone span{color:#15807a}
