/* lighting-models.html — Light Response Laboratory */

.doc-lrl {
  margin: 1.05rem 0 0;
  border-radius: 16px;
  border: 1px solid rgba(94, 180, 255, 0.26);
  background: linear-gradient(168deg,
      rgba(16, 22, 42, 0.82) 0%,
      rgba(10, 14, 28, 0.72) 48%,
      rgba(18, 14, 36, 0.78) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.42) inset,
    0 12px 38px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.doc-lrl__stage {
  padding: 0.75rem 0.9rem 0.85rem;
  background: radial-gradient(110% 85% at 50% 12%,
      rgba(46, 231, 242, 0.06) 0%,
      transparent 52%),
    rgba(5, 8, 18, 0.52);
  border-bottom: 1px solid rgba(110, 150, 210, 0.14);
}

.doc-lrl__viewport {
  position: relative;
  margin: 0 auto;
  max-width: min(100%, 1100px);
  border-radius: 14px;
  border: 1px solid rgba(110, 150, 210, 0.18);
  background: rgba(5, 10, 22, 0.55);
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  height: auto;
}

.doc-lrl__viewport canvas[data-lrl-canvas] {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.doc-lrl__hud {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background: linear-gradient(165deg,
      rgba(18, 28, 48, 0.55) 0%,
      rgba(10, 14, 28, 0.72) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(210, 235, 255, 0.92);
  pointer-events: none;
  white-space: nowrap;
}

.doc-lrl__mid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(110, 150, 210, 0.12);
  background: rgba(5, 8, 18, 0.18);
}

.doc-lrl__panel {
  border-radius: 14px;
  border: 1px solid rgba(94, 200, 255, 0.14);
  background: rgba(8, 14, 28, 0.55);
  padding: 0.65rem 0.7rem 0.7rem;
  min-height: 0;
}

.doc-lrl__h {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(190, 208, 240, 0.9);
}

.doc-lrl__grid {
  display: grid;
  gap: 0.55rem;
}

.doc-lrl__ctrl {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.doc-lrl__lbl {
  font-size: 0.78rem;
  color: rgba(190, 208, 240, 0.84);
}

.doc-lrl__select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.18);
  background: rgba(5, 10, 22, 0.72);
  color: rgba(210, 228, 255, 0.92);
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
}

.doc-lrl__out {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(130, 235, 255, 0.95);
  white-space: nowrap;
}

.doc-lrl__tog {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(110, 150, 210, 0.12);
  display: grid;
  gap: 0.35rem;
}

.doc-lrl__chk {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(190, 208, 240, 0.94);
  cursor: pointer;
}

.doc-lrl__chk input {
  accent-color: #5ec8ff;
}

.doc-lrl__pipe {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(110, 150, 210, 0.12);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(140, 170, 215, 0.6);
  white-space: nowrap;
  overflow-x: auto;
}

.doc-lrl__step.is-hot {
  color: rgba(210, 235, 255, 0.96);
  text-shadow: 0 0 18px rgba(46, 231, 242, 0.16);
}

.doc-lrl__arr {
  color: rgba(110, 150, 210, 0.35);
  user-select: none;
}

.doc-lrl__kv {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.doc-lrl__kv-row {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(110, 150, 210, 0.1);
}

.doc-lrl__kv-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc-lrl__kv-k {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(150, 185, 230, 0.7);
  text-transform: uppercase;
}

.doc-lrl__kv-v {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: rgba(210, 228, 255, 0.92);
  white-space: pre-wrap;
}

.doc-lrl__caption {
  margin: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.52;
  color: rgba(165, 188, 228, 0.82);
  border-top: 1px solid rgba(110, 150, 210, 0.1);
}

@media (max-width: 1040px) {
  .doc-lrl__mid {
    grid-template-columns: 1fr;
  }
}

