.shadows-panel {
  max-width: 1120px;
  margin-inline: auto;
}
.shadows-stage-copy {
  max-width: 760px;
  margin: 24px 0;
}
.shadows-stage-copy h3 {
  font:
    400 clamp(27px, 3.5vw, 42px) / 1.12 Newsreader,
    serif;
  margin: 8px 0;
}
.shadows-bench {
  border: 1px solid #5d503b;
  background: #14232b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 45px #31231518;
}
.shadows-apparatus {
  position: relative;
  isolation: isolate;
  padding-top: 8px;
  background: radial-gradient(ellipse at 48% 58%, #344348, #101925 80%);
}
.shadows-drawing {
  display: block;
  width: 100%;
  height: auto;
}
.shadows-pointer {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5eddb;
  color: #342f26;
  border: 1px solid #c7b896;
  border-radius: 5px;
  font:
    600 clamp(11px, 1.5vw, 15px) / 1.25 Inter,
    sans-serif;
  padding: 10px 12px;
  min-height: 48px;
  max-width: 30%;
  text-align: center;
  transform: translateX(-50%);
}
.shadows-pointer::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 32px;
  background: #eadbbd;
  top: 100%;
  left: 50%;
}
.shadows-pointer[data-shadows] {
  border-style: dashed;
  cursor: pointer;
}
.shadows-pointer[data-shadows]:hover {
  background: #fffaf0;
  box-shadow: 0 0 0 3px #c7ac7066;
}
.shadows-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 24px;
  gap: 12px;
  color: #e4e7dd;
}
.shadows-gauges span {
  padding: 10px;
  border-top: 1px solid #73857c;
  font-size: 13px;
}
.shadows-gauges b {
  display: block;
  font:
    400 30px/1.4 Newsreader,
    serif;
  color: #fff1d5;
}
.shadows-result {
  text-align: center;
  color: #f9eacf;
  margin: 0;
  padding: 0 12px 20px;
  font:
    400 25px/1.2 Newsreader,
    serif;
}
[data-motion="once"] .shadows-cast,
[data-motion="once"] .shadows-ray {
  animation: shadows-reveal 1.8s ease-out;
}
@keyframes shadows-reveal {
  from {
    opacity: 0;
  }
}
.shadows-control-base {
  padding: 24px 32px 30px;
  border-top: 1px solid #9a7852;
  background: linear-gradient(105deg, #483529, #2e251f 60%, #47372a);
  color: #fbf2df;
  min-height: 160px;
}
.shadows-control-base > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
}
.shadows-control-base button {
  font:
    600 14px/1.35 Inter,
    sans-serif;
  cursor: pointer;
  min-height: 48px;
  border-radius: 6px;
  padding: 14px 18px;
  border: 1px solid #c6b595;
}
.shadows-primary {
  background: linear-gradient(#f8efd8, #d9c6a0);
  color: #352b1d;
  box-shadow: 0 3px 0 #957851;
}
.shadows-secondary {
  color: #fbf2df;
  background: transparent;
}
.shadows-activate {
  min-height: 70px !important;
  width: 100%;
  max-width: 450px;
}
.shadows-tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shadows-tray button {
  background: #ede2c9;
  color: #382d21;
}
.shadows-tray button[aria-pressed="true"] {
  outline: 3px solid #cddde0;
  outline-offset: 2px;
}
.shadows-tray button:disabled {
  background: #322922;
  color: #d8cbae;
  border-color: #776349;
}
.shadows-conditions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.shadows-conditions fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}
.shadows-conditions legend {
  padding: 0 0 10px;
  font-size: 13px;
}
.shadows-conditions button {
  background: transparent;
  color: #f8eddb;
}
.shadows-conditions button[aria-pressed="true"] {
  background: #f2e5c8;
  color: #302a20;
  box-shadow: inset 0 -3px #af9667;
}
.shadows-notice {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.shadows-status {
  min-height: 48px;
  font-size: 14px;
  max-width: 760px;
}
.shadows-external {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 12px 0 30px;
}
.shadows-external .text-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.shadows-explain,
.shadows-talk {
  background: #eee8dc;
  border-left: 2px solid #a28957;
  padding: 24px;
  margin: 24px 0;
  max-width: 800px;
}
.shadows-explain h3,
.shadows-talk h3 {
  font:
    400 30px/1.15 Newsreader,
    serif;
  margin: 0 0 16px;
}
.shadows-talk li {
  margin-bottom: 14px;
}
.shadows-path {
  display: flex;
  gap: 28px;
  font-size: 15px;
  line-height: 1.5;
  padding-left: 24px;
}
.shadows-path li {
  flex: 1;
  padding-right: 12px;
}
@media (max-width: 650px) {
  .shadows-control-base {
    padding: 20px 16px;
  }
  .shadows-pointer {
    font-size: 10px;
    padding: 6px 7px;
    min-height: 44px;
  }
  .shadows-tray {
    gap: 7px;
  }
  .shadows-tray button {
    padding: 12px 5px;
    font-size: 12px;
    min-height: 72px;
  }
  .shadows-gauges {
    padding: 8px 12px;
    gap: 8px;
  }
  .shadows-gauges span {
    font-size: 11px;
    padding: 8px 2px;
  }
  .shadows-gauges b {
    font-size: 26px;
  }
  .shadows-result {
    font-size: 22px;
  }
  .shadows-notice {
    flex-direction: column;
  }
  .shadows-path {
    display: block;
    font-size: 14px;
    margin: 0;
  }
  .shadows-path li {
    margin-bottom: 8px;
  }
  .shadows-external {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shadows-panel *,
  .shadows-panel *::before,
  .shadows-panel *::after {
    animation: none !important;
    transition: none !important;
  }
}

.shadows-labels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 22px 0;
}
.shadows-labels .shadows-pointer {
  position: relative;
  transform: none;
  max-width: none;
  width: 100%;
  font-size: 14px;
}
.shadows-conditions fieldset {
  flex-wrap: wrap;
}
.shadows-conditions button {
  min-width: 48px;
}
.shadows-conditions button:focus-visible,
.shadows-panel button:focus-visible {
  outline: 3px solid #a9d9e5;
  outline-offset: 4px;
}
.shadows-gauges b {
  font-size: clamp(21px, 2.7vw, 30px);
}
.shadows-drawing {
  margin-top: -16px;
}
.shadows-status {
  line-height: 1.6;
}
.shadows-external[hidden],
.shadows-explain[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .shadows-labels {
    gap: 6px;
    padding: 12px 9px 0;
  }
  .shadows-labels .shadows-pointer {
    font-size: 11px;
    padding: 7px 5px;
  }
  .shadows-conditions {
    gap: 20px;
  }
  .shadows-conditions button {
    padding: 12px 10px;
  }
  .shadows-gauges {
    grid-template-columns: 1fr 1fr;
  }
  .shadows-gauges span:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .shadows-gauges b {
    font-size: 23px;
  }
  .shadows-result {
    font-size: 23px;
    padding: 4px 12px 22px;
  }
}

.shadows-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #f0e7d4;
}
.shadows-pointer {
  position: relative;
  transform: none;
  max-width: none;
  width: 100%;
  min-width: 0;
}
.shadows-pointer::after {
  display: none;
}
.shadows-apparatus {
  padding-top: 0;
  background: #e8dec6;
}
.shadows-gauges {
  background: #e8dec6;
  color: #3e4e41;
}
.shadows-gauges b {
  color: #2e3e33;
}
.shadows-gauges span {
  border-color: #948c71;
}
.shadows-result {
  background: #e8dec6;
  color: #2e3e33;
}
.shadows-conditions fieldset {
  flex-wrap: wrap;
}
.shadows-conditions legend {
  color: #fbf2df;
}
.shadows-control-base button:disabled {
  cursor: default;
  background: #322922;
  color: #d8cbae;
  border-color: #776349;
  box-shadow: none;
}
.shadows-mark-note {
  margin-top: 18px !important;
  font-size: 14px !important;
}
@media (prefers-reduced-motion: reduce) {
  .shadows-panel * {
    animation: none !important;
    transition: none !important;
  }
}
