@import url("./panel-crest.css");
/* Shared popup frame and workshop details: silver, metal, cold moonlight. */
dialog.gothic-panel {
  --moon: #a8d6ec;
  --silver: #a4afb8;
  color: #eeeae3;
  background: #10191e;
  border: 1px solid #405158;
  border-radius: 16px;
  padding: 20px 24px 24px;
  box-shadow: 0 24px 70px #0006;
  max-height: calc(100dvh - 38px);
  overflow-y: auto;
  scrollbar-color: #637582 #10171d;
}
.gothic-panel::before {
  content: none;
}
.gothic-panel::backdrop {
  background: #02070cbd;
  backdrop-filter: blur(7px) saturate(0.25);
}
.gothic-panel .eyebrow {
  color: #a2b6c4;
  font-size: 10px;
  letter-spacing: 0.19em;
}
.gothic-panel h2 {
  color: #f2eee7;
  font-size: clamp(24px, 5.7vw, 32px);
  line-height: 1.15;
  text-wrap: balance;
  text-shadow: none;
  margin: 10px 0 16px;
}
dialog.gothic-panel p,
dialog.gothic-panel li {
  color: #bac3ca;
}
.gothic-panel .close {
  color: #d2dce4;
  width: 44px;
  height: 44px;
  right: 11px;
  top: 10px;
  z-index: 1;
  font-size: 24px;
}
.gothic-panel .close:hover {
  color: white;
  background: #94b8d222;
}
.gothic-panel .primary {
  color: #182025;
  background: #d6b777;
  border: 1px solid #d6b777;
  border-radius: 6px;
  box-shadow: none;
  min-height: 48px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.gothic-panel .primary:not(:disabled):hover {
  background: #e4c98f;
  border-color: #ccefff;
}
.gothic-panel .primary.secondary-action {
  background: #1a272d;
  border-color: #707e8a;
  color: #d5dce0;
}
.gothic-panel .primary:disabled {
  opacity: 1;
  background: #151b22;
  color: #84919c;
  border-color: #46525d;
  box-shadow: inset 0 1px #ffffff08;
  cursor: not-allowed;
}
.workshop-preview {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at top, #293c4a, #080d13 75%);
  color: #dfe8ee;
}
.preview-controls {
  width: min(460px, calc(100% - 40px));
}
.preview-controls h1 {
  font:
    36px Georgia,
    serif;
  margin: 16px 0;
}
.preview-controls p {
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0;
}
.preview-controls button {
  margin-bottom: 16px;
}
.preview-controls a {
  color: #b1d9f0;
}
.gothic-panel button:focus-visible {
  outline: 2px solid #c2eaff;
  outline-offset: 4px;
}
.gothic-materials {
  display: grid;
  grid-template-columns: repeat(var(--material-count, 3), minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 4px;
}
.gothic-materials > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 8px;
  padding: 10px;
  border: 1px solid #5b6e7c;
  background: linear-gradient(135deg, #27313c80, #0b111a);
  border-radius: 4px;
}
.gothic-materials span:first-child {
  grid-row: span 2;
  font-size: 23px;
  color: #d1dde6;
}
.gothic-materials span:nth-child(2) {
  font-size: 11px;
  text-transform: capitalize;
  color: #b5bec5;
}
.gothic-materials strong {
  font-size: 13px;
  font-weight: 500;
  color: #d8eaf3;
}
.gothic-materials .material-missing {
  border-style: dashed;
  border-color: #8ca2b3;
}
.gothic-materials .material-missing strong {
  color: #fff;
}
.repair-surface #repair-board {
  height: 204px;
  margin: 18px 0 16px;
  border: 1px solid #687d8d;
  border-radius: 65px 65px 8px 8px / 28px 28px 8px 8px;
  background:
    radial-gradient(ellipse at 50% 45%, #66829826, transparent 65%),
    repeating-linear-gradient(
      0deg,
      transparent 0 39px,
      #93bdd610 40px,
      transparent 41px
    ),
    linear-gradient(110deg, #111b25, #22303c, #101923);
  box-shadow:
    inset 0 0 0 5px #080d1488,
    inset 0 0 35px #0009,
    0 8px 24px #0005;
}
.repair-surface .repair-object {
  width: 88%;
  height: 128px;
  border: 1px solid #8394a1;
  border-radius: 42px 42px 6px 6px / 20px 20px 6px 6px;
  background:
    radial-gradient(ellipse at top, #576e7a55, transparent 60%),
    linear-gradient(#1c2630, #0b1119);
  box-shadow:
    0 0 0 4px #10151c,
    0 0 0 5px #76899860,
    0 12px 20px #0008,
    inset 0 0 0 7px #02070b77;
}
.repair-surface .repair-object::before,
.repair-surface .repair-object::after {
  content: "◇";
  position: absolute;
  color: #9db4c6;
  font-size: 14px;
  left: calc(50% - 6px);
  top: -10px;
  pointer-events: none;
}
.repair-surface .repair-object::after {
  top: auto;
  bottom: -10px;
}
.repair-surface .slot {
  border: 1px dashed #8aa6ba;
  border-radius: 22px 22px 4px 4px;
  color: #9caebb;
  background: #02081099;
  box-shadow: inset 0 2px 14px #000;
}
.repair-surface .slot.fitted {
  border: 1px solid #b2e1f8;
  background: #244355;
  color: #e9f8ff;
  box-shadow:
    0 0 14px #88c4ea33,
    inset 0 0 12px #95d9ff20;
}
.repair-surface .part,
.gothic-panel .drag-ghost {
  background: linear-gradient(135deg, #485560, #27333f 50%, #131c26);
  border: 1px solid #95a7b6;
  border-radius: 18px 18px 4px 4px;
  color: #e0eaf2;
  box-shadow:
    inset 0 1px #e6f4ff80,
    0 5px 0 #060c12,
    0 7px 15px #0007;
}
.repair-surface .part.selected {
  outline: 2px solid #9fdcff;
  outline-offset: 4px;
  background: #2d4d63;
}
#repair-progress {
  text-align: center;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 16px 0 0;
  color: #adcede !important;
}
.repair-surface .repair-tip {
  color: #a6b4bf;
  font-size: 11px !important;
}
@media (max-width: 480px) {
  dialog.gothic-panel {
    padding: 16px 21px 24px;
    width: calc(100% - 28px);
  }
  .gothic-crest {
    height: 44px;
    margin-bottom: 8px;
  }
  .repair-surface .slot {
    width: 54px;
    height: 58px;
    font-size: 29px;
  }
  .repair-surface .slot:nth-child(2) {
    left: calc(50% - 27px);
  }
  .repair-surface .slot:nth-child(1) {
    left: 5%;
  }
  .repair-surface .slot:nth-child(3) {
    right: 5%;
  }
  .repair-surface #parts-tray {
    gap: 20px;
  }
  .gothic-materials {
    gap: 6px;
  }
  .gothic-materials > div {
    padding: 8px 6px;
    gap: 3px 5px;
  }
}
