*{box-sizing:border-box}html,body{margin:0;height:100%;background:#101511;color:#eaf0e5;font:14px system-ui,sans-serif}button,select,input{font:inherit}button,select,summary{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #c6ed83;outline-offset:3px}header{height:76px;padding:13px 24px;border-bottom:1px solid #303b2c;display:flex;align-items:center;justify-content:space-between;gap:20px}header h1{font-size:18px;letter-spacing:-.4px;font-weight:550;margin:0 0 5px}header p{margin:0;color:#a5b09f;font-size:12px}.school{font-size:12px;color:#c6d6b9;white-space:nowrap}main{height:calc(100dvh - 76px);padding:14px 24px 18px;max-width:1600px;margin:auto}.layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.photo-column{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto 182px;gap:10px}.frame-wrap{min-height:0;display:flex;align-items:center;justify-content:center;background:#0b100d;border-radius:12px;overflow:hidden}.view{width:100%;aspect-ratio:3/2;position:relative;overflow:hidden;border-radius:10px;background:#161e17}canvas{width:100%;height:100%;display:block}.hud{position:absolute;inset:13px;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;text-shadow:0 1px 5px #000}.top,.bottom{display:flex;justify-content:space-between;font:11px monospace;gap:10px}.focus{position:absolute;transform:translate(-50%,-50%);border:1px solid #d9f2b9;opacity:.8;pointer-events:none;box-shadow:0 0 3px #15211155}.below-photo{display:flex;align-items:end;gap:10px;position:relative}.menu{flex:1;min-width:0}.menu label{display:block;color:#9aaa90;font-size:10px;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}select{width:100%;background:#1b261b;border:1px solid #3d4d33;color:#edf3e6;border-radius:7px;padding:8px 30px 8px 10px;font-size:12px;min-width:0}.scene-notes h3{margin:0 0 5px}.scene-copy{display:grid;grid-template-columns:1fr 1fr;gap:18px}.scene-copy p{margin:0}.scene-start{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding-top:7px;border-top:1px solid #36482c;font-size:11px;color:#b9c8ab}.scene-start button{border:1px solid #50633f;background:#2b3b23;color:#d8eebc;border-radius:6px;padding:5px 8px;font-size:10px}.feedback [hidden]{display:none}.task-hint{margin:0;min-height:34px;color:#a5b79a;font-size:12px;line-height:1.5;padding:0 2px}.task-hint b{color:#c9dda9}.feedback{border:1px solid #36482c;border-left:3px solid #c6ed83;border-radius:9px;background:#1b2818;padding:9px 14px;min-height:0;overflow:auto}.feedback h3{font-size:14px;font-weight:600;color:#d7edb8;margin:0 0 4px;line-height:1.3}.feedback [role=img]{font-size:26px!important;margin-right:8px!important}.feedback p{margin:0;color:#bdcdb0;font-size:12px;line-height:1.45}.panel{height:100%;min-height:0;overflow:auto;display:flex;flex-direction:column;background:#192119;border:1px solid #34402e;border-radius:12px;padding:16px;gap:12px}.panel h2{font-size:15px;font-weight:550;margin:0}.modes{display:flex;gap:6px}.modes button{flex:1;padding:7px;border:1px solid #3a4932;color:#bdc7b7;background:none;border-radius:6px;font-size:12px}.modes .active{background:#c6ed83;color:#172012;border-color:#c6ed83}.control{margin:0}.label{display:flex;justify-content:space-between;margin-bottom:5px;color:#b8c6af;font-size:12px}.label output{color:#eef4e8;font-weight:600}input[type=range]{width:100%;accent-color:#c6ed83;cursor:pointer;height:17px;margin:0}.scale{display:flex;justify-content:space-between;font-size:9px;color:#819477;margin-top:2px}#controls{display:grid;gap:12px}input:disabled{opacity:.35}.tripod{font-size:12px;color:#b8c6af;display:flex;align-items:center;gap:6px}.tripod input{accent-color:#c6ed83}.meter{margin-top:auto;font:11px monospace;color:#c6ed83}.meter-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:8px}.meter-head b{font:550 12px system-ui}.meter-track{height:12px;position:relative;border-radius:5px;background:linear-gradient(90deg,#394656,#c6ed83,#f6e4bc)}.meter-needle{position:absolute;top:-6px;width:6px;height:24px;border:1px solid #26351f;border-radius:3px;background:#fff;box-shadow:0 1px 4px #0009;transform:translateX(-50%)}.meter-track:before{content:"";position:absolute;left:50%;top:-4px;width:1px;height:20px;background:#fff9}.meter-ticks{display:flex;justify-content:space-between;margin-top:7px;color:#9eae8e;font-size:9px}.shoot{border:0;background:#c6ed83;color:#172012;width:100%;border-radius:8px;padding:12px;font-weight:650}.panel-hint{font-size:10px;color:#8b9c7d;line-height:1.4;margin:0}#back{border:1px solid #526d3d;background:#26351f;color:#d9efbd;padding:7px 10px;border-radius:6px;font-size:11px;display:none;white-space:nowrap}.feedback-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.feedback-head h3{margin:0 0 4px}details.help{font-size:10px;color:#90a382}details.help p{margin:6px 0;line-height:1.5}@media(max-height:850px) and (min-width:861px){header{height:64px;padding-block:9px}main{height:calc(100dvh - 64px);padding-top:10px;padding-bottom:10px}.panel{gap:8px;padding:12px;flex-shrink:0}.panel>*{flex-shrink:0}#controls{gap:8px}.panel .label{margin-bottom:2px}.panel input[type=range]{height:14px}.panel .scale{margin-top:0}.panel .modes button{padding:6px}.panel select{padding-block:7px}.panel .shoot{padding:10px}.panel .panel-hint{display:none}.photo-column{gap:8px;grid-template-rows:minmax(0,1fr) auto auto 174px}.panel-hint{font-size:9px}.school{font-size:11px}}@media(max-width:860px){html,body{height:auto}header{height:auto;min-height:76px;padding:14px 16px;display:block}header h1{font-size:17px}.school{display:block;margin-top:7px}main{height:auto;padding:12px 16px}.layout{height:auto;grid-template-columns:1fr}.photo-column{grid-template-rows:auto auto auto auto}.frame-wrap{height:auto;aspect-ratio:3/2}.view{width:100%!important;height:100%!important}.panel{height:auto;overflow:visible}.meter{margin-top:3px}.feedback{min-height:75px}.below-photo{flex-wrap:wrap}.menu{min-width:150px}.scene-copy{grid-template-columns:1fr;gap:8px}.scene-start{flex-wrap:wrap}.panel-hint{font-size:11px}}input[type=range]::-webkit-slider-thumb{cursor:grab} .meter-head span{white-space:nowrap}header p,.school{font-size:14px}.label,.tripod,select{font-size:14px}.menu label{font-size:12px}.scale{font-size:11px}.task-hint{font-size:14px}.feedback h3{font-size:16px}.feedback p{font-size:14px;line-height:1.5}.scene-start{font-size:12px}.scene-start button{font-size:12px}.modes button{font-size:14px}.panel h2{font-size:17px}.meter-head b{font-size:14px}.meter-head span{font-size:12px}.meter-ticks{font-size:11px}.panel-hint,details.help{font-size:12px}.top,.bottom{font-size:12px}@media(max-height:850px) and (min-width:861px){.panel{gap:7px}.panel .scale{font-size:10px}.school{font-size:13px}.photo-column{grid-template-rows:minmax(0,1fr) auto auto 174px}}@media(max-width:860px){.photo-column{grid-template-rows:auto auto auto auto}.feedback{min-height:0}.scene-copy{grid-template-columns:1fr}} .sensor-control{display:flex;align-items:center;gap:12px}.sensor-control label{font-size:14px;color:#b8c6af}.sensor-control select{flex:1}.crop-frame{position:absolute;left:16.6666667%;top:16.6666667%;width:66.6666667%;height:66.6666667%;border:2px solid #fff;box-shadow:0 0 0 200vmax rgba(244,247,244,.57);pointer-events:none}.crop-frame[hidden]{display:none}.crop-frame span{position:absolute;left:9px;bottom:8px;padding:4px 6px;background:#101511b8;color:#fff;border-radius:3px;font:11px monospace}.focus,.hud{z-index:1}.top span:last-child{text-align:right}@media(max-width:600px){.top{font-size:10px}.crop-frame span{font-size:9px}} .header-actions{display:flex;align-items:center;gap:18px}#fullscreen{border:1px solid #50633f;background:#26351f;color:#e0edcf;border-radius:6px;padding:7px 10px;font-size:13px;white-space:nowrap}main{max-width:none;padding:8px 12px 10px}.layout{gap:12px}header{height:64px;padding:9px 12px}main{height:calc(100dvh - 64px)}.photo-column{grid-template-rows:minmax(0,1fr) auto auto 150px;gap:8px}.task-hint{min-height:22px}.feedback{padding:8px 12px}.scene-copy{gap:14px}.scene-start{margin-top:5px;padding-top:5px}.panel{padding:12px;gap:9px}.panel-hint{font-size:11px}@media(max-height:850px) and (min-width:861px){main{padding:6px 10px 8px}.photo-column{grid-template-rows:minmax(0,1fr) auto auto 142px;gap:7px}.panel{gap:7px}}:fullscreen header,body.expanded header{height:46px}:fullscreen header p,:fullscreen .school,body.expanded header p,body.expanded .school{display:none}:fullscreen main,body.expanded main{height:calc(100dvh - 46px);padding:6px}:fullscreen .photo-column,body.expanded .photo-column{grid-template-rows:minmax(0,1fr) auto auto 126px}@media(max-width:860px){header{height:auto}.header-actions{margin-top:8px;justify-content:space-between;flex-wrap:wrap}.school{margin-top:0}main,:fullscreen main,body.expanded main{height:auto}.photo-column,:fullscreen .photo-column,body.expanded .photo-column{grid-template-rows:auto auto auto auto}.feedback{overflow:visible}} .meter-ticks{position:relative;display:block;height:16px;margin-top:9px}.meter-ticks span{position:absolute;top:0;white-space:nowrap}.meter-ticks span:first-child{left:0}.meter-ticks span:nth-child(2){left:50%;transform:translateX(-50%);font-size:12px;font-weight:700;color:#fff}.meter-ticks span:last-child{right:0}.meter-track:before{left:50%;top:-5px;width:2px;height:22px;transform:translateX(-50%);background:#fff;box-shadow:0 0 2px #172012}.meter-needle{z-index:1} .panning-control[hidden]{display:none}.panning-control{color:#d5e9b7} 
/* Keep the live image in view while the mobile controls scroll beneath it. */
@media(max-width:860px){
  main,:fullscreen main,body.expanded main{height:auto;padding:6px 8px 16px}
  .layout{display:flex;flex-direction:column;gap:10px;height:auto}
  .photo-column{display:contents}
  .frame-wrap{order:0;position:sticky;top:0;z-index:5;height:min(34dvh,calc((100vw - 16px)*2/3));min-height:0;aspect-ratio:auto;flex-shrink:0;border-radius:8px;box-shadow:0 5px 12px #0008}
  .frame-wrap .view{width:auto!important;height:100%!important;max-width:100%;aspect-ratio:3/2;flex-shrink:1}
  .panel{order:1;flex-shrink:0;gap:12px;padding:12px;overflow:visible}
  .panel h2{font-size:15px}
  .panel>.control,#controls{order:0}
  .panel input[type=range]{height:36px;touch-action:pan-y;appearance:none;-webkit-appearance:none;background:transparent;scroll-margin-top:calc(34dvh + 45px)}
.panel input[type=range]::-webkit-slider-runnable-track{height:6px;background:#61744c;border-radius:4px}
.panel input[type=range]::-moz-range-track{height:6px;background:#61744c;border-radius:4px}
  .panel input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;background:#c6ed83;border:2px solid #e3ffc3}
  .panel input[type=range]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#c6ed83;border:2px solid #e3ffc3}
  .panel .label{font-size:15px;margin-bottom:0}
  .panel .scale{margin-top:0}
  #controls{gap:10px}
  .modes button{min-height:40px}
  .shoot{position:sticky;bottom:8px;z-index:6;min-height:46px;box-shadow:0 3px 14px #0008}
  .below-photo{order:2;flex-wrap:nowrap}
  .below-photo .menu{min-width:0}
  .below-photo select{font-size:14px;min-height:44px;padding-left:8px}
  .task-hint{order:3}
  .feedback{order:4;overflow:visible}
  header{padding:9px 10px;min-height:0}
  header h1{font-size:15px}
  header p{display:none}
  .school{font-size:11px}
  .header-actions{gap:8px;margin-top:5px}
}
@media(max-width:860px) and (orientation:landscape){
  .frame-wrap{height:43dvh;min-height:110px}
}

/* ===== ДЕМО-ВЕРСИЯ: бейдж и блок «доступно в клубе» ===== */
.demo-badge{border:1px solid #c6ed83;color:#c6ed83;border-radius:5px;padding:3px 7px;font-size:10px;letter-spacing:1.2px;white-space:nowrap}
.photo-column{grid-template-rows:minmax(0,1fr) auto auto 182px auto}
.demo-lock{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border:1px solid #4b5c3c;border-left:3px solid #c6ed83;border-radius:9px;background:#1b2818;color:#bdcdb0;padding:8px 13px;font-size:12px;line-height:1.4;min-height:0;overflow:auto}
.demo-lock b{display:block;color:#d7edb8;font-size:13px;font-weight:600;margin-bottom:2px}
.demo-lock p{margin:0;font-size:12px}
.demo-cta{border:1px solid #50633f;background:#2b3b23;color:#e2f4c6;border-radius:6px;padding:7px 11px;font-size:12px;text-decoration:none;white-space:nowrap}
.demo-cta:hover,.demo-cta:focus-visible{background:#36482c}
select option:disabled{color:#6d7d63}
@media(max-height:850px) and (min-width:861px){
  .photo-column{grid-template-rows:minmax(0,1fr) auto auto 174px auto}
  .demo-lock{padding:6px 10px;font-size:11px}
  .demo-lock p{display:none}
}
@media(max-width:860px){
  .photo-column{grid-template-rows:auto auto auto auto auto}
  .demo-lock{order:9;font-size:13px;padding:10px 12px}
  .demo-lock b{font-size:14px}
  .demo-lock p{font-size:13px}
  .demo-cta{width:100%;text-align:center;padding:10px}
}
/* Описание под заголовком показываем только там, где хватает высоты */
.demo-lock p{display:none}
@media(min-height:900px) and (min-width:861px){.demo-lock p{display:block}}
@media(max-width:860px){.demo-lock p{display:block}}
