.gold-frame {
  background: #e9e7e1;
}

.gold-lab {
  background:
    radial-gradient(
      circle at 11% 10%,
      rgba(208, 159, 57, 0.15),
      transparent 31%
    ),
    linear-gradient(135deg, #fffdf7 0%, #f5f3ed 58%, #eef1f4 100%);
}

.gold-heading h1 {
  font-size: 34px;
  white-space: nowrap;
}

.gold-main {
  grid-template-columns: minmax(0, 1.18fr) minmax(405px, 0.82fr);
}

.gold-structure-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 68px;
}

.gold-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 52% 49%,
      rgba(150, 104, 18, 0.28),
      transparent 34%
    ),
    linear-gradient(145deg, #141524 0%, #1e1b29 54%, #0b0d18 100%);
}

#gold-cluster-canvas,
#gold-energy-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gold-state-card,
.gold-axis-card,
.gold-ligand-key {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255, 225, 153, 0.22);
  border-radius: 8px;
  background: rgba(13, 14, 25, 0.82);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(5px);
}

.gold-state-card {
  top: 15px;
  left: 15px;
  display: grid;
  gap: 3px;
  min-width: 210px;
  padding: 10px 13px;
}

.gold-state-card small,
.gold-axis-card small {
  color: #c5bfd0;
  font-size: 12px;
}

.gold-state-card strong {
  color: #ffe4a0;
  font-size: 18px;
}

.gold-state-card span {
  color: #d7d1dd;
  font-size: 12px;
}

.gold-axis-card {
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.gold-axis-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.gold-axis-card > i {
  width: 3px;
  height: 35px;
  border-radius: 4px;
  background: #79ebff;
  box-shadow: 0 0 12px rgba(121, 235, 255, 0.85);
}

.gold-axis-card span {
  display: grid;
  gap: 2px;
}

.gold-axis-card b {
  color: #bcf6ff;
  font-size: 14px;
}

.gold-ligand-key {
  left: 15px;
  bottom: 14px;
  display: flex;
  gap: 13px;
  padding: 8px 10px;
  transition: opacity 240ms ease;
}

body.gold-bare .gold-ligand-key {
  opacity: 0;
}

.gold-ligand-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d8d1df;
  font-size: 12px;
}

.gold-ligand-key i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.gold-key-au {
  color: #ffc847;
  background: currentColor;
}
.gold-key-p {
  color: #b89cff;
  background: currentColor;
}
.gold-key-cl {
  color: #7af0ae;
  background: currentColor;
}

.gold-lock-flash {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 52% 49%,
    rgba(255, 209, 91, 0.58),
    transparent 25%
  );
  opacity: 0;
}

.gold-lock-flash.flash {
  animation: goldLockFlash 720ms ease-out;
}

@keyframes goldLockFlash {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.gold-structure-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e2ddd1;
  background: #fffdf8;
}

.gold-structure-readout > div {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border-right: 1px solid #e5e0d6;
}

.gold-structure-readout > div:last-child {
  border-right: 0;
}

.gold-structure-readout small {
  color: #7a7468;
  font-size: 12px;
}

.gold-structure-readout strong {
  color: #785618;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
}

.gold-dashboard {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(168px, 1fr) auto auto;
  gap: 10px;
}

.gold-energy-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
}

.gold-story-panel,
.gold-shell-panel {
  min-height: 0;
}

.gold-story-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 10px 13px;
}

.gold-story-steps > div {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #8c8a87;
  text-align: center;
}

.gold-story-steps > div::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  background: #e4dfd5;
}

.gold-story-steps > div:last-child::after {
  display: none;
}

.gold-story-steps i {
  z-index: 2;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid #d6d0c5;
  border-radius: 50%;
  background: white;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.gold-story-steps span {
  display: grid;
  gap: 2px;
}

.gold-story-steps b {
  font-size: 12px;
}

.gold-story-steps small {
  font-size: 12px;
  line-height: 1.25;
}

.gold-story-steps > div.active,
.gold-story-steps > div.done {
  color: #936712;
}

.gold-story-steps > div.active i,
.gold-story-steps > div.done i {
  border-color: #c18b22;
  background: #fff4d7;
  color: #8d6110;
}

.gold-story-steps > div.done::after {
  background: #d5ac55;
}

.gold-shells {
  padding: 11px 14px 12px;
}

.gold-shell-row {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #ece8df;
}

.gold-shell-row > b {
  width: 25px;
  color: #72521a;
  font-family: Georgia, serif;
  font-size: 14px;
}

.gold-orbital {
  width: 38px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #cfc8bb;
  border-radius: 10px;
  background: #faf8f3;
}

.gold-orbital i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7d1c6;
  transition:
    background 260ms ease,
    box-shadow 260ms ease;
}

.gold-orbital i.filled {
  background: #c58a18;
  box-shadow: 0 0 7px rgba(197, 138, 24, 0.64);
}

.gold-shell-row em {
  margin-left: auto;
  color: #8b8375;
  font-size: 12px;
  font-style: normal;
}

.gold-shells p {
  margin: 9px 0 0;
  color: #5f5d5a;
  font-size: 12px;
  line-height: 1.4;
}

.gold-shells p b {
  color: #8c6110;
}

.gold-controls {
  grid-template-columns: minmax(360px, 1.2fr) minmax(230px, 0.7fr) auto;
}

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

.gold-environment button {
  min-height: 48px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 5px 9px;
  border: 1px solid #d7d0c4;
  border-radius: 8px;
  background: #fff;
  color: #615e58;
}

.gold-environment button b {
  font-size: 13px;
}

.gold-environment button small {
  color: #8c877d;
  font-size: 12px;
}

.gold-environment button.active {
  border-color: #bd8520;
  background: #fff3d8;
  color: #8b5e0c;
  box-shadow: inset 0 0 0 1px rgba(189, 133, 32, 0.14);
}

.prompt-panel .gold-takeaway {
  position: relative;
  z-index: 5;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-color: #dfba63;
  background: #fff5db;
  box-shadow: 0 12px 28px rgba(147, 99, 11, 0.12);
}

.prompt-panel .gold-takeaway {
  display: none;
}

.prompt-panel .gold-takeaway > span {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
  color: #93630b;
  font-size: 18px;
  line-height: 1.18;
  text-align: left;
}

.prompt-panel .gold-takeaway > span small {
  color: #ae873b;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.gold-takeaway-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.prompt-panel .gold-takeaway-body > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.prompt-panel .gold-takeaway-body p {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
}

.prompt-panel .gold-takeaway-body p b {
  color: #95650c;
  font-size: 13px;
}

.prompt-panel .gold-takeaway-body p span {
  color: #5f5a50;
  font-size: 12px;
  line-height: 1.38;
}

.prompt-panel .gold-takeaway-body > #gold-final-verdict {
  display: block;
  padding-top: 8px;
  border-top: 1px solid #ead49f;
  color: #494a4e;
  font-size: 12.5px;
  line-height: 1.42;
}

.prompt-panel .gold-takeaway-body > #gold-final-verdict b {
  color: #14806e;
}

.prompt-panel .gold-knowledge-link {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 3px !important;
  color: #615c52;
  font-size: 12px;
  line-height: 1.38;
}

.prompt-panel .gold-knowledge-link b {
  color: #6e54a2 !important;
  font-size: 12px !important;
}

.prompt-panel .gold-knowledge-link span {
  font-size: 12px !important;
}

body[data-theme="gold"] .prompt-panel .progress-block {
  margin-top: auto;
  padding-top: 0;
}

@media (max-width: 1450px), (max-height: 820px) {
  .gold-heading h1 {
    font-size: 26px;
  }

  .gold-main {
    grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.88fr);
    gap: 8px;
  }

  .gold-structure-panel {
    grid-template-rows: auto minmax(0, 1fr) 56px;
  }

  .gold-state-card {
    top: 9px;
    left: 9px;
    min-width: 180px;
    padding: 7px 9px;
  }

  .gold-state-card strong {
    font-size: 15px;
  }

  .gold-axis-card {
    top: 9px;
    right: 9px;
    padding: 7px 9px;
  }

  .gold-ligand-key {
    left: 9px;
    bottom: 8px;
    padding: 6px 8px;
  }

  .gold-dashboard {
    grid-template-rows: minmax(150px, 1fr) auto auto;
    gap: 7px;
  }

  .gold-story-steps {
    padding: 8px 7px 9px;
  }

  .gold-story-steps small {
    display: none;
  }

  .gold-shells {
    padding: 7px 10px 8px;
  }

  .gold-shell-row {
    min-height: 25px;
  }

  .gold-shells p {
    margin-top: 6px;
  }

  .gold-structure-readout strong {
    font-size: 13px;
  }

  .gold-controls {
    grid-template-columns: minmax(330px, 1.15fr) minmax(190px, 0.66fr) auto;
  }

  .gold-environment button {
    min-height: 42px;
  }

  .prompt-panel .gold-takeaway {
    gap: 7px;
    padding: 10px 11px;
  }

  .prompt-panel .gold-takeaway > span {
    font-size: 15px;
  }

  .prompt-panel .gold-takeaway-body {
    gap: 6px;
  }

  .prompt-panel .gold-takeaway-body > div {
    gap: 5px;
  }

  .prompt-panel .gold-takeaway-body p {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 6px;
  }

  .prompt-panel .gold-takeaway-body p b,
  .prompt-panel .gold-takeaway-body p span,
  .prompt-panel .gold-takeaway-body > #gold-final-verdict,
  .prompt-panel .gold-knowledge-link b,
  .prompt-panel .gold-knowledge-link span {
    font-size: 11.5px !important;
  }

  .prompt-panel .gold-takeaway-body > #gold-final-verdict {
    padding-top: 5px;
  }
}
body[data-theme="gold"] {
  --figure-accent: #a06e13;
  --figure-accent-soft: #fff2d2;
}
