html, body { margin: 0; height: 100%; background: #050b10; overflow: hidden; font-family: "Noto Sans KR", system-ui, sans-serif; }
#unity-canvas { width: 100vw; height: 100vh; display: block; background: #050b10; }
#loading { position: fixed; inset: 0; display: grid; place-content: center; gap: 14px; color: #cfe9e4; text-align: center; background: radial-gradient(circle at 50% 40%, #0d2530, #050b10 70%); }
#loading .kicker { letter-spacing: .18em; font-size: 12px; color: #e5c88d; font-weight: 700; }
#loading .bar { width: min(420px, 80vw); height: 6px; background: #12303a; border-radius: 3px; overflow: hidden; }
#loading .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5fd4c3, #e5c88d); transition: width .2s; }
.research-status-button { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px;
  border: 1px solid rgba(142, 213, 206, .4); background: rgba(9, 22, 29, .82); color: #cfe9e4; font: 600 12px "Noto Sans KR", sans-serif; cursor: pointer; }
.research-status-button .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7c80; }
.research-status-button[data-recording="true"] .dot { background: #ef5a4c; box-shadow: 0 0 6px #ef5a4c; }
.research-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(2, 6, 9, .82); }
.research-overlay[hidden] { display: none; }
.research-consent { width: min(640px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; padding: 24px 26px; border-radius: 14px; border: 1px solid rgba(142, 213, 206, .45);
  background: #09161d; color: #dbeeea; font-size: 14px; line-height: 1.6; }
.research-kicker { color: #e5c88d; font-weight: 700; letter-spacing: .12em; font-size: 12px; }
.research-consent h2 { margin: 6px 0 10px; font-size: 22px; }
.research-consent p { margin: 8px 0; color: #b9d3cf; }
.research-consent small { display: block; margin: 6px 0; color: #8fb1ac; word-break: break-all; }
.research-consent label { display: block; margin: 12px 0 6px; font-weight: 600; }
.research-consent input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid #2a5b62; background: #04121a; color: #e8f4f2; font-size: 14px; }
.research-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.research-consent button { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(142, 213, 206, .5); background: #10262e; color: #dbeeea; font: 600 13px "Noto Sans KR", sans-serif; cursor: pointer; }
.research-consent button:disabled { opacity: .45; cursor: default; }
.research-consent .research-agree { background: #e5c88d; color: #12262d; border-color: #f2dcaa; }
.research-error { color: #ff9a8a !important; }
#rotate { display: none; position: fixed; inset: 0; z-index: 40; background: #050b10; color: #cfe9e4; place-content: center; text-align: center; font-size: 18px; }
#rotate div { font-size: 54px; margin-bottom: 12px; }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: grid; } }
