.door-explorer {
  --explorer-bg: #071116;
  --explorer-panel: rgba(9, 25, 31, 0.9);
  --explorer-line: rgba(156, 204, 204, 0.2);
  --explorer-cyan: #69d6dc;
  --explorer-cyan-soft: rgba(105, 214, 220, 0.14);
  --explorer-gold: #c9a84c;
  position: relative;
  overflow: hidden;
  color: #f4f1e8;
  background:
    radial-gradient(circle at 51% 38%, rgba(45, 120, 129, 0.2), transparent 34%),
    linear-gradient(135deg, #050d11 0%, #0a1a20 46%, #11191c 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
}

.door-explorer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(105, 214, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 214, 220, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 43%, #000 0, transparent 72%);
}

.door-explorer-shell {
  position: relative;
  z-index: 1;
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 34px 28px 30px;
}

.door-explorer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 4px 20px;
}

.door-explorer-head h1 {
  max-width: 900px;
  margin: 8px 0 0;
  color: #f7f2e7;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.door-explorer-head h1 span {
  color: var(--explorer-gold);
  font-style: italic;
}

.door-explorer-kicker,
.door-panel-kicker,
.door-stage-coordinate,
.door-parts-index {
  color: #b8c8c9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.door-explorer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--explorer-gold);
}

.door-explorer-kicker::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--explorer-gold);
}

.door-explorer-head-copy {
  max-width: 330px;
  padding-bottom: 3px;
  color: rgba(237, 242, 239, 0.66);
  font-size: 12px;
  line-height: 1.7;
}

.door-explorer-grid {
  display: grid;
  grid-template-areas: "stage";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 680px;
  height: min(740px, 70vh);
  position: relative;
}

.door-parts-panel,
.door-spec-panel {
  position: absolute;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--explorer-line);
  background: var(--explorer-panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.door-parts-panel {
  top: 16px;
  left: 16px;
  width: 228px;
  max-height: calc(100% - 88px);
  overflow-y: auto;
}

.door-spec-panel {
  top: 16px;
  right: 16px;
  width: 288px;
  max-height: calc(100% - 88px);
  overflow-y: auto;
}

.door-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--explorer-line);
}

.door-panel-head strong {
  color: #fff;
  font-size: 15px;
}

.door-part-list {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.door-part-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid transparent;
  color: rgba(239, 244, 241, 0.74);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.door-part-button:hover,
.door-part-button:focus-visible {
  color: #fff;
  border-color: rgba(105, 214, 220, 0.36);
  background: rgba(105, 214, 220, 0.05);
  outline: none;
}

.door-part-button.is-active {
  color: #fff;
  border-color: var(--explorer-cyan);
  background: var(--explorer-cyan-soft);
  box-shadow: inset 3px 0 0 var(--explorer-cyan);
}

.door-part-number {
  color: var(--explorer-gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 16px;
}

.door-part-label {
  display: grid;
  gap: 2px;
}

.door-part-label strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.door-part-label small {
  overflow: hidden;
  color: rgba(184, 200, 201, 0.54);
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.door-part-dot {
  width: 5px;
  height: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: rgba(105, 214, 220, 0.3);
}

.door-part-button.is-active .door-part-dot {
  background: var(--explorer-gold);
  box-shadow: 0 0 12px var(--explorer-gold);
}

.door-stage-wrap {
  position: relative;
  grid-area: stage;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(105, 214, 220, 0.18);
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 137, 147, 0.16), transparent 31%),
    linear-gradient(180deg, rgba(8, 23, 28, 0.15), rgba(4, 12, 16, 0.48));
}

.door-stage-wrap::before,
.door-stage-wrap::after {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(105, 214, 220, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.door-stage-wrap::before {
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
}

.door-stage-wrap::after {
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  border-color: rgba(201, 168, 76, 0.14);
  transform: translate(-50%, -50%);
}

#doorCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#doorCanvas.is-dragging {
  cursor: grabbing;
}

.door-stage-topline {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.door-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(239, 244, 241, 0.75);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.door-live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #7ed29b;
  box-shadow: 0 0 12px #7ed29b;
}

.door-stage-coordinate {
  color: rgba(184, 200, 201, 0.42);
}

.door-stage-hint {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 78px;
  color: rgba(215, 227, 225, 0.47);
  font-size: 10px;
  pointer-events: none;
}

.door-stage-loading {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(239, 244, 241, 0.72);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(4, 12, 16, 0.72);
  transition: opacity 350ms ease, visibility 350ms ease;
}

.door-stage-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.door-stage-controls {
  position: absolute;
  z-index: 5;
  right: 318px;
  bottom: 16px;
  left: 258px;
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.door-callouts {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.door-callouts.is-active {
  opacity: 1;
}

.door-callout {
  position: absolute;
  min-width: 80px;
  max-width: 110px;
  padding: 7px 9px;
  border: 1px solid rgba(105, 214, 220, 0.35);
  color: rgba(241, 247, 244, 0.82);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  background: rgba(4, 16, 20, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -100%);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
  will-change: left, top;
}

.door-callout::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 26px;
  content: "";
  background: linear-gradient(rgba(105, 214, 220, 0.8), transparent);
}

.door-callout span {
  display: block;
  margin-bottom: 3px;
  color: var(--explorer-gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.door-callout.is-selected,
.door-callout.is-hovered {
  border-color: var(--explorer-gold);
  color: #fff;
  background: rgba(16, 31, 34, 0.94);
}

.door-control {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(203, 224, 223, 0.16);
  color: rgba(246, 248, 245, 0.76);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(4, 14, 18, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.door-control:hover,
.door-control:focus-visible,
.door-control.is-active {
  color: #fff;
  border-color: var(--explorer-cyan);
  background: rgba(105, 214, 220, 0.13);
  outline: none;
}

.door-control svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.5;
}

.door-spec-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--explorer-gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 12px;
}

.door-spec-title {
  margin: 22px 0 5px;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.door-spec-cn {
  color: var(--explorer-gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.door-part-photo {
  margin-top: 16px;
  border: 1px solid rgba(105, 214, 220, 0.18);
  background: #071116;
}

.door-part-photo img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
}

.door-part-photo figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: rgba(214, 229, 226, 0.58);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.door-part-photo figcaption button {
  padding: 0;
  border: 0;
  color: var(--explorer-gold);
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.door-photo-dialog {
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 18px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  color: #f5f1e6;
  background: #071116;
}

.door-photo-dialog::backdrop {
  background: rgba(2, 8, 10, 0.86);
  backdrop-filter: blur(8px);
}

.door-photo-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.door-photo-dialog p {
  margin-top: 10px;
  color: rgba(226, 236, 232, 0.65);
  font-size: 11px;
}

.door-photo-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font: inherit;
  font-size: 9px;
  background: rgba(4, 12, 16, 0.84);
  cursor: pointer;
}

.door-spec-description {
  min-height: 92px;
  margin-top: 18px;
  color: rgba(237, 242, 239, 0.7);
  font-size: 12px;
  line-height: 1.7;
}

.door-spec-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--explorer-line);
}

.door-spec-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--explorer-line);
}

.door-spec-row dt {
  color: rgba(184, 200, 201, 0.56);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.door-spec-row dd {
  margin: 0;
  color: rgba(247, 249, 245, 0.86);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.door-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.door-spec-tags span {
  padding: 5px 7px;
  border: 1px solid rgba(105, 214, 220, 0.28);
  color: var(--explorer-cyan);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.door-spec-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 12px 15px;
  border: 1px solid var(--explorer-gold);
  color: #0b171b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--explorer-gold);
}

.door-spec-cta:hover {
  color: #fff;
  background: transparent;
}

.door-inline-config {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--explorer-line);
}

#doorInlineOptions {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.door-inline-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(105, 214, 220, 0.16);
  color: rgba(240, 246, 242, 0.74);
  text-align: left;
  background: rgba(105, 214, 220, 0.035);
  cursor: pointer;
}

.door-inline-option strong {
  font-size: 9px;
}

.door-inline-option span {
  color: rgba(184, 200, 201, 0.54);
  font-size: 8px;
  line-height: 1.4;
}

.door-inline-option.is-active {
  border-color: var(--explorer-gold);
  color: #fff;
  background: rgba(201, 168, 76, 0.1);
}

.door-structure-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.door-structure-intro h2 {
  max-width: 680px;
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
}

.door-structure-intro-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.door-structure-note {
  margin-top: 24px;
  padding: 17px 19px;
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-size: 12px;
  line-height: 1.65;
  background: var(--paper);
}

.door-parts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.door-part-card {
  padding: 22px;
  background: var(--white);
}

.door-part-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.door-part-card h3 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
}

.door-part-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.door-structure-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 46px;
}

.door-structure-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.door-structure-panel-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.door-structure-panel-stack article {
  padding: 24px;
  background: var(--paper);
}

.door-structure-panel-stack strong {
  color: var(--gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.door-structure-panel-stack h3 {
  margin-top: 10px;
  font-size: 18px;
}

.door-structure-panel-stack p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.door-config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.door-config-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.door-config-group {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.door-config-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.door-config-heading span {
  color: var(--gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 17px;
}

.door-config-heading h3 {
  color: var(--navy);
  font-size: 18px;
}

.door-config-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.door-config-option {
  display: grid;
  gap: 5px;
  min-height: 91px;
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--navy);
  text-align: left;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.door-config-option strong {
  font-size: 11px;
}

.door-config-option span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.door-config-option:hover,
.door-config-option:focus-visible,
.door-config-option.is-active {
  border-color: var(--gold);
  background: #fffaf0;
  outline: none;
}

.door-config-option.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.door-size-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.door-size-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.door-size-fields input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  color: var(--navy);
  font: inherit;
  background: #fff;
}

.door-config-summary {
  position: sticky;
  top: 100px;
  padding: 26px;
  color: #f5f1e6;
  background: var(--navy);
}

.door-config-summary h3 {
  margin-top: 12px;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.door-config-summary dl {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.door-config-summary dl div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.door-config-summary dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.door-config-summary dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.door-config-summary p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.6;
}

.door-config-summary .btn {
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .door-explorer-grid {
    grid-template-areas:
      "stage stage"
      "parts specs";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 620px auto;
    height: auto;
    min-height: 0;
  }

  .door-stage-wrap {
    height: 620px;
    min-height: 620px;
  }

  .door-parts-panel,
  .door-spec-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .door-stage-controls {
    right: 16px;
    left: 16px;
  }

  .door-callouts {
    display: none;
  }

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

  .door-config-layout {
    grid-template-columns: 1fr;
  }

  .door-config-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .door-explorer-shell {
    padding: 24px 15px 18px;
  }

  .door-explorer-head {
    display: block;
    padding-bottom: 20px;
  }

  .door-explorer-head h1 {
    font-size: 38px;
  }

  .door-explorer-head-copy {
    margin-top: 16px;
    font-size: 12px;
  }

  .door-explorer-grid {
    grid-template-areas:
      "stage"
      "parts"
      "specs";
    grid-template-columns: 1fr;
    grid-template-rows: 540px auto auto;
    min-height: 0;
  }

  .door-stage-wrap {
    height: 540px;
    min-height: 540px;
  }

  .door-stage-wrap::before {
    width: 410px;
    height: 410px;
  }

  .door-stage-wrap::after {
    width: 285px;
    height: 285px;
  }

  .door-stage-hint {
    display: none;
  }

  .door-parts-panel,
  .door-spec-panel {
    padding: 16px;
  }

  .door-part-list {
    display: flex;
    gap: 7px;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .door-part-button {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }

  .door-spec-description {
    min-height: 0;
  }

  .door-stage-controls {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }

  .door-control {
    flex: 0 0 auto;
    padding: 7px 10px;
  }

  .door-structure-intro,
  .door-structure-visual {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .door-parts-grid {
    grid-template-columns: 1fr;
  }

  .door-config-groups {
    grid-template-columns: 1fr;
  }

  .door-config-options {
    grid-template-columns: 1fr;
  }

  .door-part-photo img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-part-button,
  .door-control,
  .door-stage-loading {
    transition: none;
  }
}
