/* ============================================================
   스튜디오 다그닥 · 카메라 앵글 시뮬레이터
   다크 에스프레소 · 아이보리 · 골드 톤의 프로덕션 툴 화면
   ============================================================ */

:root {
  --bg: #150e0b;
  --bg-soft: #1b1210;
  --panel: #211611;
  --panel-2: #281a14;
  --panel-3: #30201a;
  --line: rgba(223, 200, 170, 0.13);
  --line-strong: rgba(223, 200, 170, 0.28);
  --cream: #f6f0e6;
  --sand: #dfc8aa;
  --sand-dim: #bda98f;
  --gold: #d9ab6a;
  --gold-bright: #ecc78c;
  --muted: #a18f80;
  --muted-2: #7d6c5f;
  --good: #93c3a2;
  --rec: #e0625a;
  --espresso: #362116;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(217, 171, 106, 0.09), transparent 60%),
    radial-gradient(900px 500px at 8% 8%, rgba(223, 200, 170, 0.05), transparent 55%),
    var(--bg);
  color: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.wrap-wide {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- header ---------------- */

.cam-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 14, 11, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.cam-header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cam-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cam-brand img {
  width: 30px;
  height: auto;
  flex: none;
}

.cam-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.cam-brand-txt b {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--sand);
}

.cam-brand-txt i {
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  white-space: nowrap;
}

.cam-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cam-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.lang:hover {
  border-color: rgba(217, 171, 106, 0.55);
  color: var(--cream);
}

.lang span[data-l] {
  padding: 2px 6px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang span.is-on {
  background: rgba(217, 171, 106, 0.18);
  color: var(--gold-bright);
}

.langsep {
  opacity: 0.4;
}

.cam-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sand-dim);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.cam-nav a:hover {
  color: var(--cream);
  background: rgba(223, 200, 170, 0.08);
}

.cam-nav a.is-current {
  color: var(--gold-bright);
  border-color: rgba(217, 171, 106, 0.4);
  background: rgba(217, 171, 106, 0.1);
}

/* ---------------- layout ---------------- */

.cam-main {
  padding-top: 20px;
  padding-bottom: 8px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  grid-template-areas:
    "stage side"
    "schem side"
    "prompt side";
  gap: 16px;
  align-items: start;
}

.stage-panel { grid-area: stage; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.schem { grid-area: schem; }
.prompt-panel { grid-area: prompt; }

.panel {
  background: linear-gradient(180deg, rgba(40, 26, 20, 0.92), rgba(30, 20, 15, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------- stage ---------------- */

.stage-panel {
  padding: 12px 12px 10px;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
  flex-wrap: wrap;
}

.bar-left,
.bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #170f0c;
}

.seg button {
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sand-dim);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg button:hover {
  color: var(--cream);
}

.seg button.is-active {
  background: var(--sand);
  color: #241610;
}

.seg-sm button {
  padding: 5px 10px;
  font-size: 0.76rem;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: #170f0c;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.toggle-btn:hover {
  color: var(--cream);
  border-color: var(--line-strong);
}

.toggle-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.toggle-btn.is-on {
  color: var(--gold-bright);
  border-color: rgba(217, 171, 106, 0.36);
  background: rgba(217, 171, 106, 0.08);
}

.toggle-btn.is-on .dot {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(217, 171, 106, 0.8);
}

.stage-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0907;
  border: 1px solid rgba(223, 200, 170, 0.09);
  border-radius: 10px;
  padding: 10px;
}

.stage {
  position: relative;
  background: #0b0705;
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(223, 200, 170, 0.08);
}

.stage:active {
  cursor: grabbing;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#overlay {
  pointer-events: none;
}

.stage-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--cream);
  background: rgba(15, 9, 6, 0.66);
  border: 1px solid rgba(223, 200, 170, 0.16);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.stage-hint {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(246, 240, 230, 0.72);
  background: rgba(12, 8, 6, 0.55);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.stage-hint.is-hidden {
  opacity: 0;
}

.stage-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: #140d0a;
  color: var(--sand-dim);
  font-size: 0.78rem;
  z-index: 3;
}

.stage-fallback[hidden] {
  display: none;
}

.stage-fallback b {
  color: var(--cream);
  font-size: 0.92rem;
}

.stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px 2px;
  flex-wrap: wrap;
}

.readouts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.readouts > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.readouts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.readouts dd {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.export-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--sand);
  background: #1b120e;
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--cream);
  background: #251913;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #2b1a10;
  box-shadow: 0 6px 18px -10px rgba(217, 171, 106, 0.9);
}

.btn-gold:hover {
  filter: brightness(1.05);
}

.btn-wide {
  width: 100%;
}

.btn-rec {
  border: 1px solid rgba(224, 98, 90, 0.36);
  color: #f0b0aa;
  background: rgba(224, 98, 90, 0.09);
}

.btn-rec:hover {
  background: rgba(224, 98, 90, 0.16);
}

.btn-rec .rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
}

.btn-rec.is-recording {
  border-color: var(--rec);
  color: #fff;
  background: rgba(224, 98, 90, 0.26);
}

.btn-rec.is-recording .rec-dot {
  animation: recPulse 1s infinite;
}

.btn-rec:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------------- control panels ---------------- */

.side .panel {
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.panel-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.field + .field {
  margin-top: 14px;
}

.label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sand-dim);
}

.label em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted-2);
}

.row-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-field .label {
  margin-bottom: 0;
}

/* chips */

.chips {
  display: grid;
  gap: 5px;
}

.chips button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a110d;
  color: var(--sand-dim);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-width: 0;
}

.chips button:hover {
  border-color: var(--line-strong);
  background: #241711;
  color: var(--cream);
}

.chips button b {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--cream);
  white-space: nowrap;
}

.chips button span {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chips button.is-active {
  border-color: rgba(217, 171, 106, 0.62);
  background: linear-gradient(180deg, rgba(217, 171, 106, 0.2), rgba(217, 171, 106, 0.08));
  box-shadow: inset 0 0 0 1px rgba(217, 171, 106, 0.12);
}

.chips button.is-active b {
  color: var(--gold-bright);
}

.chips button.is-active span {
  color: var(--sand);
}

.shot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.angle-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.angle-grid button {
  align-items: center;
  text-align: center;
  padding: 8px 3px;
}

.lens-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lens-row button {
  align-items: center;
  padding: 8px 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sand-dim);
}

.lens-row button.is-active {
  color: var(--gold-bright);
}

.lens-row button::after {
  content: 'mm';
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--muted-2);
  margin-left: 1px;
}

.lens-row button.is-active::after {
  color: var(--sand);
}

.light-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.light-grid button {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 9px;
}

.light-grid .sw {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  grid-row: span 2;
  align-self: start;
  margin-top: 3px;
}

.light-grid button b,
.light-grid button span {
  display: block;
  white-space: normal;
  grid-column: 2;
}

.light-grid button span {
  width: auto;
  margin: 0;
}

.sw-key-l { background: linear-gradient(135deg, #fff4e0, #b98a52); }
.sw-key-r { background: linear-gradient(225deg, #fff4e0, #b98a52); }
.sw-rim { background: radial-gradient(circle at 30% 30%, #fff6dd, #7a5324 70%); }
.sw-gold { background: linear-gradient(135deg, #ffd39a, #d2762c); }
.sw-high { background: linear-gradient(135deg, #ffffff, #ddd3c4); }
.sw-noir { background: linear-gradient(135deg, #8fa6c4, #10100f 70%); }

.move-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.move-foot {
  margin-top: 10px;
}

.micro-note {
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--muted-2);
}

.move-foot .micro-note {
  margin-top: 7px;
}

/* range */

.range-field {
  padding-top: 2px;
}

.range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.range-head label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sand-dim);
}

.range-head output {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 171, 106, 0.55), rgba(223, 200, 170, 0.14));
}

input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(223, 200, 170, 0.18);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid #2a1a12;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

input[type='range']::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid #2a1a12;
}

input[type='range']:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--muted-2);
  margin-top: -2px;
}

/* ---------------- schematics ---------------- */

.schem {
  padding: 14px;
}

.schem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schem-item {
  min-width: 0;
}

.schem-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 30px;
}

.schem-cap > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.schem-cap b {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cream);
}

.schem-cap span {
  font-size: 0.62rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-btn {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sand);
  background: #1a110d;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mini-btn:hover {
  border-color: var(--line-strong);
  color: var(--cream);
  background: #251913;
}

.mini-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--sand-dim);
  cursor: pointer;
  white-space: nowrap;
}

.mini-check input {
  width: 13px;
  height: 13px;
  accent-color: var(--gold);
  cursor: pointer;
}

.schem-item canvas {
  display: block;
  width: 100%;
  height: 216px;
  border-radius: 9px;
  border: 1px solid rgba(223, 200, 170, 0.1);
  background: #120c09;
  touch-action: none;
  cursor: grab;
}

.schem-item canvas:active {
  cursor: grabbing;
}

.schem-note {
  margin-top: 10px;
  font-size: 0.68rem;
  color: var(--muted-2);
}

.schem-note b {
  color: var(--sand);
}

/* ---------------- prompt ---------------- */

.prompt-panel {
  padding: 14px;
}

#prompt {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid rgba(223, 200, 170, 0.12);
  background: #130c09;
  color: #e9dfd2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.77rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  outline: none;
}

#prompt:focus {
  border-color: rgba(217, 171, 106, 0.4);
}

.prompt-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ---------------- how to ---------------- */

.how {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 20, 15, 0.6), rgba(21, 14, 11, 0.3));
}

.how h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--cream);
}

.how-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.how-grid li {
  min-width: 0;
}

.how-no {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 5px;
}

.how-grid b {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.how-grid p {
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------------- footer ---------------- */

.cam-footer {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}

.cam-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.cam-footer a:hover {
  color: var(--sand);
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 171, 106, 0.4);
  background: rgba(30, 20, 14, 0.96);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- focus ---------------- */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1180px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "stage"
      "side"
      "schem"
      "prompt";
  }

  .side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap-wide {
    padding: 0 14px;
  }

  .cam-header-inner {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .cam-right {
    gap: 6px;
  }

  .lang {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .cam-brand-txt i {
    font-size: 0.94rem;
  }

  .cam-nav a {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .cam-main {
    padding-top: 12px;
  }

  .stage-panel {
    padding: 10px;
  }

  .stage-bar {
    padding-bottom: 9px;
  }

  .stage-outer {
    padding: 6px;
  }

  .stage-meta {
    gap: 10px;
  }

  .readouts {
    gap: 12px;
  }

  .readouts dt {
    font-size: 0.62rem;
  }

  .readouts dd {
    font-size: 0.76rem;
  }

  .export-row {
    width: 100%;
  }

  .export-row .btn {
    flex: 1 1 0;
    padding: 9px 8px;
  }

  .schem-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schem-item canvas {
    height: 210px;
  }

  .how {
    padding: 18px 16px;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .side {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-hint {
    display: none;
  }
}

@media (max-width: 380px) {
  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .angle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .light-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
