body.is-blackout .kpc-win-crank { z-index: 2; }

body.is-blackout .kpc-compare .kpc-pane {
  background: #4a6a4a url("../assets/vista-jardin.png") center 38% / cover no-repeat;
}

.kpc-bo-hero {
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1c1814, #0c0a08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 26px;
}
.kpc-bo-hero-frame {
  width: min(100%, 280px);
  height: 300px;
  background: #12100e;
  border: 10px solid #d4cdc2;
  box-shadow:
    inset 0 0 0 2px #b8b0a4,
    0 10px 24px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.kpc-bo-hero-cass {
  height: 22px;
  background: linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 8px rgba(0, 0, 0, 0.35);
}
.kpc-bo-hero-cloth {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 72%;
  background: #1a1612;
}
.kpc-bo-hero-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(22px + 72%);
  height: 10px;
  background: linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
}

.kpc-sg-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 22px;
  align-items: end;
  margin: 18px 0 8px;
}
@media (max-width: 900px) {
  .kpc-sg-play { grid-template-columns: 1fr; }
  .kpc-sg-play .kpc-remote {
    position: sticky;
    bottom: 10px;
    z-index: 24;
    margin: 12px auto 8px;
  }
}
.kpc-sg-room {
  --sg-w: 15px;
  --kpc-cass-h: 26px;
  background: #2a221c;
  border-radius: 16px;
  padding: 20px 22px 16px;
  border: 1px solid #3a3540;
}
.kpc-sg-frame {
  position: relative;
  height: 420px;
  background: linear-gradient(180deg, #d8d2c8, #c4bdb2);
  padding: 12px 14px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.kpc-sg-open {
  position: relative;
  z-index: 0;
  height: 100%;
  overflow: hidden;
  background: #4a6a4a url("../assets/vista-jardin.png") center 38% / cover no-repeat;
}
.kpc-sg-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}
.kpc-sg-cloth {
  position: absolute;
  left: var(--sg-w);
  right: var(--sg-w);
  z-index: 2;
  pointer-events: none;
}
.kpc-sg-rail {
  position: absolute;
  left: var(--sg-w);
  right: var(--sg-w);
  height: 10px;
  margin-top: -10px;
  z-index: 3;
  background: linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
}
.kpc-sg-cass {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: var(--kpc-cass-h);
  z-index: 6;
  background: linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.4);
}
.kpc-sg-guide {
  position: absolute;
  top: 12px;
  bottom: 0;
  width: var(--sg-w);
  z-index: 5;
  background: linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  transition: filter 180ms ease, box-shadow 180ms ease;
}
.kpc-sg-guide.is-blinking:not(.is-b) {
  animation: kpc-sg-blink 1.15s ease-in-out infinite;
}
.kpc-sg-guide.is-sealed:not(.is-b) {
  animation: none;
  box-shadow:
    inset 0 0 0 2px #f0d78a,
    0 0 16px 4px rgba(228, 201, 138, 0.8);
  filter: brightness(1.45);
}
@keyframes kpc-sg-blink {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(228, 201, 138, 0);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      inset 0 0 0 2px #f0d78a,
      0 0 16px 4px rgba(228, 201, 138, 0.8);
    filter: brightness(1.45);
  }
}
.kpc-sg-guide.is-l {
  left: 14px;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 40%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
}
.kpc-sg-guide.is-r {
  right: 14px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 60%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
}
.kpc-sg-guide.is-b {
  left: 14px;
  right: 14px;
  top: auto;
  bottom: 0;
  width: auto;
  height: var(--sg-w);
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, #3f6e6a, #2a524e 55%, #1a3836);
}
.kpc-sg-guide.is-b.is-blinking {
  animation: kpc-sg-blink-opt 1.15s ease-in-out infinite;
}
.kpc-sg-guide.is-b.is-sealed {
  animation: none;
  box-shadow:
    inset 0 0 0 2px #8ff0e6,
    0 0 16px 4px rgba(70, 220, 205, 0.85);
  filter: brightness(1.4);
}
.kpc-sg-guide.is-b em {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #e8fffb;
  text-shadow: 0 1px 2px #000;
}
@keyframes kpc-sg-blink-opt {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(80, 210, 198, 0);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      inset 0 0 0 2px #8ff0e6,
      0 0 16px 4px rgba(70, 220, 205, 0.85);
    filter: brightness(1.4);
  }
}
.kpc-sg-callout {
  position: absolute;
  top: 46%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.kpc-sg-callout span {
  color: #f0d78a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, 0.75);
}
.kpc-sg-callout b {
  position: relative;
  display: block;
  width: 32px;
  height: 3px;
  background: #e4c98a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  flex: 0 0 32px;
}
.kpc-sg-callout.is-l {
  left: calc(14px + var(--sg-w) + 6px);
}
.kpc-sg-callout.is-l b::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translate(-70%, -50%);
  border: 6px solid transparent;
  border-right-color: #e4c98a;
}
.kpc-sg-callout.is-r {
  right: calc(14px + var(--sg-w) + 6px);
}
.kpc-sg-callout.is-r b::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translate(70%, -50%);
  border: 6px solid transparent;
  border-left-color: #e4c98a;
}
.kpc-sg-callout.is-b {
  left: 50%;
  top: auto;
  bottom: calc(var(--sg-w) + 14px);
  transform: translateX(-50%);
  flex-direction: column;
  gap: 4px;
}
.kpc-sg-callout.is-b span {
  color: #9af3ea;
}
.kpc-sg-callout.is-b b {
  width: 3px;
  height: 26px;
  flex: 0 0 26px;
  background: #7ee8dc;
}
.kpc-sg-callout.is-b b::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translate(-50%, 70%);
  border: 6px solid transparent;
  border-top-color: #7ee8dc;
}
.kpc-sg-note {
  margin: 10px 2px 0;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #c8c0b4;
}
.kpc-sg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.kpc-sg-legend span {
  border: 1px solid #5a4a28;
  color: #e4c98a;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

body.is-blackout .kpc-hardware .kpc-hw-metal {
  position: relative;
}
body.is-blackout .kpc-cass-demo,
body.is-blackout .kpc-fascia-demo {
  overflow: visible;
}
body.is-blackout .kpc-fascia-open {
  position: relative;
  overflow: visible;
}
body.is-blackout .kpc-cass-cloth,
body.is-blackout .kpc-cass-rail {
  margin-left: 28px;
  margin-right: 28px;
}
body.is-blackout .kpc-hardware .kpc-hw-sg {
  position: absolute;
  width: 16px;
  flex: none;
  height: auto;
  z-index: 6;
  animation: none;
  box-shadow:
    inset 0 0 0 2px #f0d78a,
    0 0 16px 4px rgba(228, 201, 138, 0.8);
  filter: brightness(1.45);
}
body.is-blackout .kpc-cass-demo .kpc-hw-sg {
  top: 64px;
  bottom: 18px;
}
body.is-blackout .kpc-cass-demo .kpc-hw-sg.is-l { left: 6px; }
body.is-blackout .kpc-cass-demo .kpc-hw-sg.is-r { right: 6px; }
body.is-blackout .kpc-fascia-demo .kpc-hw-sg {
  top: 8px;
  bottom: 0;
}
body.is-blackout .kpc-fascia-demo .kpc-hw-sg.is-l { left: 0; }
body.is-blackout .kpc-fascia-demo .kpc-hw-sg.is-r { right: 0; }
body.is-blackout .kpc-fascia-cloth,
body.is-blackout .kpc-fascia-rail {
  margin-left: 16px;
  margin-right: 16px;
}
.kpc-hw-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff6d8;
  background: rgba(20, 14, 8, 0.32);
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  white-space: nowrap;
}
.kpc-hw-sg-name {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  transform: translate(-50%, -50%) rotate(-90deg);
  padding: 4px 8px;
  border: 1px solid #f0d78a;
  border-radius: 4px;
  background: #16120e;
  color: #fff3c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-shadow: none;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 10px 2px rgba(240, 215, 138, 0.7);
}
@keyframes kpc-sg-name-blink {
  0%, 100% { border-color: #c4a46a; box-shadow: 0 0 0 0 rgba(240, 215, 138, 0); }
  50% { border-color: #fff3c4; box-shadow: 0 0 10px 2px rgba(240, 215, 138, 0.7); }
}

body.is-blackout .kpc-sec-col {
  --sg-w: 8px;
}
body.is-blackout .kpc-sec-cloth,
body.is-blackout .kpc-sec-rail {
  left: var(--sg-w);
  right: var(--sg-w);
}
body.is-blackout .kpc-sec-sg {
  position: absolute;
  top: var(--kpc-cass-h, 22px);
  bottom: 0;
  width: var(--sg-w);
  z-index: 5;
  background: linear-gradient(180deg, #f4ead6, #d8c4a4 55%, #b49a78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  animation: kpc-sg-blink 1.15s ease-in-out infinite;
}
body.is-blackout .kpc-sec-sg.is-sealed {
  animation: none;
  box-shadow:
    inset 0 0 0 2px #f0d78a,
    0 0 14px 3px rgba(228, 201, 138, 0.78);
  filter: brightness(1.45);
}
body.is-blackout .kpc-sec-sg.is-l { left: 0; }
body.is-blackout .kpc-sec-sg.is-r { right: 0; }
.kpc-cass-rail .kpc-hw-tag,
.kpc-fascia-rail .kpc-hw-tag {
  font-size: 8px;
  letter-spacing: 0.08em;
}
