/* 생태 통로 실험실 — 퀴즈 앱 공통 스타일(../quiz/css/app.css) 위에 얹는다. */
body.eco { background: #eef6ea; }
.eco-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 5; }
.eco-top h1 { font-size: 1.7rem; line-height: 1.15; margin: 0; }
.title-block { min-width: 0; }
.title-block p { margin: 0; }
.title-block .kicker { font-size: .8rem; font-weight: 700; color: #166534; }
.title-block .lead { font-size: 1rem; color: var(--muted, #5b6472); }
.btn-warn { background: #f97316; color: #fff; }
.btn-warn:not(:disabled):hover { background: #ea580c; }
.eco-top .home { text-decoration: none; color: var(--primary-dark); font-weight: 600; }
.eco-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; padding: 16px; align-items: start; }
.stage { position: relative; border-radius: 16px; overflow: hidden; background: #bfe3ff; height: calc(100vh - 110px); min-height: 420px; }
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.stage .no-webgl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 700; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.label { position: absolute; transform: translate(-50%, -110%); font-size: 1.35rem; font-weight: 800; background: #fff; border-radius: 12px; padding: 2px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); white-space: nowrap; }
.label.bonk { color: #b42318; }
.label.sign { font-size: .95rem; font-weight: 700; background: rgba(255, 255, 255, .78); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.label.sign.forest { color: #166534; }
.label.sign.road { color: #374151; }
.hud { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 6px 12px; font-weight: 700; }
.hud:empty { display: none; }
.cam-btns { position: absolute; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 150px); }
.cam-btns[hidden] { display: none; }
.cam-btns .btn { background: rgba(255, 255, 255, .92); }
.snap-btn { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); }
.snap-btn[aria-pressed="false"] { color: var(--muted, #5b6472); }
.snap-btn[hidden] { display: none; }
.result-card { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); max-height: 75%; overflow: auto; background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .22); }
.intro-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: 90%; overflow: auto; background: #fff; border-radius: 16px; padding: 20px 22px; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .22); }
.intro-card[hidden] { display: none; }
.intro-card h2 { font-size: 1.6rem; margin: 0 0 8px; }
.intro-card p { margin: 0 0 14px; font-size: 1.1rem; }
.intro-card .btn { margin-bottom: 8px; }
.intro-card .row-btns { justify-content: center; margin: 0; }
.result-card h2 { font-size: 1.3rem; }
.result-card .question { background: #eef4ff; border-radius: 12px; padding: 8px 12px; font-weight: 600; }
.outcomes { padding-left: 1.2em; margin: 0 0 12px; }
.side .card { margin: 0 0 12px; }
.side h3 { margin-bottom: 8px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:last-child { text-align: right; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.row-btns select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 10px; font: inherit; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li p { margin: 2px 0 0; }
.checklist li.all { font-weight: 800; color: #166534; border-bottom: 0; }
.warn-box { background: #fff7ed; color: #b35309; border-radius: 10px; padding: 8px 12px; }
.small { font-size: .9rem; }
.panel-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .eco-main { grid-template-columns: 1fr; padding: 12px; }
  .stage { height: 58vh; min-height: 320px; }
}
@media (max-width: 600px) {
  .eco-top { gap: 8px; padding: 8px 12px; }
  .eco-top h1 { font-size: 1.3rem; }
  .title-block .lead { display: none; }
}
body.eco-tv { font-size: 22px; }
body.eco-tv .eco-main { grid-template-columns: 1fr; }
body.eco-tv .stage { height: calc(100vh - 90px); }
body.eco-tv .panel-toggle { display: inline-flex; }
body.eco-tv .cam-btns { max-width: calc(100% - 200px); }
body.eco-tv .side { position: fixed; right: 16px; top: 70px; width: 380px; max-height: calc(100vh - 90px); overflow: auto; z-index: 6; }
body.eco-tv .side.collapsed { display: none; }
body.eco-tv .hud, body.eco-tv .label { font-size: 1.6rem; }
body.eco-tv .label.sign { font-size: 1.15rem; }
body.eco-tv .intro-card { width: min(720px, calc(100% - 48px)); padding: 32px 36px; }
body.eco-tv .intro-card h2 { font-size: 2.4rem; }
body.eco-tv .intro-card p { font-size: 1.5rem; }
body.eco-tv .intro-card .btn-lg { min-height: 72px; font-size: 1.6rem; }
