body.plane-page { min-height: 100svh; color: #17281f; background: #f4f5ef; }
.plane-setup { width: min(100%, 560px); min-height: 100svh; margin: auto; padding: max(24px, env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(26px, env(safe-area-inset-left)); display: flex; flex-direction: column; }
.plane-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.plane-nav a { color: #244f3d; text-decoration: none; }
.plane-kicker { margin: auto 0 10px; color: #718073; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.plane-hero h1 { max-width: 430px; margin: 0; color: #173524; font-size: clamp(34px, 10vw, 58px); line-height: .98; letter-spacing: -.07em; font-weight: 600; }
.plane-hero p { max-width: 390px; margin: 22px 0 0; color: #667469; font-size: 15px; line-height: 1.7; }
.plane-diagram { position: relative; height: 230px; margin: 34px 0 26px; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg, #dfe8dc, #edf0e9); }
.plane-diagram::before { content: ''; position: absolute; right: 13%; bottom: 18%; left: 13%; height: 1px; background: #90a690; transform: rotate(-12deg); box-shadow: 0 24px 0 #90a69055, 0 -24px 0 #90a69033; }
.plane-cube { position: absolute; top: 48%; left: 50%; width: 66px; height: 66px; border: 1px solid #d7edcc; border-radius: 10px; background: linear-gradient(135deg, #5f956d, #244f3d); box-shadow: -15px 18px 0 #315f4680, 14px 13px 0 #8db38b90, 0 20px 25px #244f3d33; transform: translate(-50%, -50%) rotate(28deg) skewY(-9deg); }
.plane-cube::after { content: ''; position: absolute; inset: 12px; border: 1px solid #ffffff77; border-radius: 5px; }
.plane-dot { position: absolute; top: 50%; left: 50%; width: 136px; height: 136px; border: 1px solid #66866c; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 24px #66866c12, 0 0 0 48px #66866c08; }
.plane-instructions { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: #647267; font-size: 13px; line-height: 1.5; }
.plane-instructions li { display: flex; gap: 10px; align-items: baseline; }
.plane-instructions b { color: #244f3d; font-size: 12px; }
.plane-start-area { margin-top: 28px; }
.plane-settings { margin-top: 20px; padding: 12px; border: 1px solid #244f3d26; border-radius: 12px; color: #536356; font-size: 12px; }
.plane-settings summary { cursor: pointer; }
.plane-settings label { display: block; margin: 12px 0 6px; }
.plane-settings input, .plane-settings select { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #a9b9a5; border-radius: 6px; color: #173524; background: #fff; font: inherit; }
.plane-settings p { margin: 10px 0 0; font-size: 11px; line-height: 1.6; }
.plane-start-area .button { width: 100%; min-height: 56px; font-size: 16px; }
.plane-note { margin: 12px 0 0; color: #879087; text-align: center; font-size: 11px; line-height: 1.6; }
.plane-message { margin: 16px 0 0; padding: 13px 15px; border-radius: 10px; color: #536356; background: #e8ece4; font-size: 12px; line-height: 1.6; }
.plane-message[data-error="true"] { color: #7c4b38; background: #f0e5dd; }
.plane-overlay { position: fixed; inset: 0; z-index: 10; color: #fff; background: #111914; touch-action: manipulation; }
#plane-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#plane-frame, #plane-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center; pointer-events: none; }
.plane-status { position: absolute; top: max(24px, env(safe-area-inset-top)); left: 78px; right: 18px; padding: 10px 14px; border: 1px solid #ffffff2d; border-radius: 24px; background: #14201be6; font-size: 12px; text-align: center; backdrop-filter: blur(12px); }
.plane-status[data-state="ready"] { background: #244f3df2; border-color: #c0dfad; color: #d7f3c8; }
.plane-status[data-state="lost"] { color: #f4c49f; }
.plane-exit { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 18px; width: 44px; height: 44px; border: 1px solid #ffffff33; border-radius: 50%; color: #fff; background: #14201bdd; font-size: 28px; }
.plane-bottom { position: absolute; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); left: 18px; text-align: center; }
.plane-hint { margin: 0 0 14px; font-size: 12px; line-height: 1.6; text-shadow: 0 1px 5px #000; }
.plane-controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.plane-live-metrics { margin: 10px 0 0; font-size: 10px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px #000; }
.plane-count { padding: 12px 15px; border-radius: 24px; background: #14201bdd; font-size: 12px; }
.plane-count b { color: #c0dfad; font-size: 17px; font-variant-numeric: tabular-nums; }
.plane-overlay-button { min-height: 44px; padding: 0 18px; border: 1px solid #ffffff33; border-radius: 26px; color: #173524; background: #c0dfad; font-size: 13px; }
.plane-diagnostics { display: inline-block; max-width: 100%; margin-top: 8px; padding-bottom: 6px; border-radius: 10px; background: #14201be8; font-size: 10px; }
.plane-diagnostics summary { padding: 7px 14px; font-size: 10px; }
.plane-diagnostics output { display: block; max-height: 28svh; overflow-y: auto; padding: 0 12px 8px; color: #c6d8bd; text-align: left; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.plane-diagnostics button { min-height: 32px; padding: 4px 12px; border: 1px solid #ffffff55; border-radius: 8px; color: #d7f3c8; background: transparent; font: inherit; }
.plane-diagnostics span { display: inline-block; margin: 0 8px; }
body[data-view="camera"] { overflow: hidden; background: #111914; }
@media (max-height: 700px) and (orientation: portrait) { .plane-hero h1 { font-size: clamp(30px, 8.8vw, 40px); line-height: 1.1; } .plane-diagram { height: 170px; margin: 22px 0 18px; } .plane-hero p { margin-top: 14px; } }
