/* Operations L7: Operator Locks */

.sign-page {
  --sign-ink: #201916;
  --sign-paper: #f6e4bf;
  --sign-card: #fff4d6;
  --sign-gold: #d6a247;
  --sign-red: #b75547;
  --sign-blue: #456c78;
  color: var(--sign-ink);
}

.sign-topbar {
  border-color: rgba(214, 162, 71, 0.32);
}

.sign-progressbar {
  background: rgba(246, 228, 191, 0.76);
  border: 1px solid rgba(32, 25, 22, 0.16);
  border-radius: 999px;
  height: 8px;
  margin: 0 auto 10px;
  max-width: 1180px;
  overflow: hidden;
}

.sign-progressbar span {
  background: linear-gradient(90deg, var(--sign-red), var(--sign-gold), var(--sign-blue));
  display: block;
  height: 100%;
  transition: width 320ms ease;
}

.sign-progress {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 0 auto 12px;
}

.sign-progress__dot {
  background: rgba(32, 25, 22, 0.38);
  border: 1px solid rgba(246, 228, 191, 0.68);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.sign-progress__dot.is-current {
  background: var(--sign-paper);
  box-shadow: 0 0 0 3px rgba(214, 162, 71, 0.22);
}

.sign-progress__dot.is-filled {
  background: var(--sign-gold);
  box-shadow: 0 0 12px rgba(214, 162, 71, 0.44);
}

.sign-room {
  margin: 0 auto;
  max-width: 1180px;
}

.sign-room__scene {
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 162, 71, 0.24), transparent 24%),
    radial-gradient(circle at 86% 34%, rgba(69, 108, 120, 0.22), transparent 25%),
    linear-gradient(180deg, rgba(246, 228, 191, 0.12), rgba(32, 25, 22, 0.4)),
    url("../img/arena-operations-forge.jpg") center center / cover no-repeat;
  border: 1px solid rgba(246, 228, 191, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(32, 25, 22, 0.36);
  height: min(730px, calc(100vh - 150px));
  min-height: 660px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.sign-room__scene::before {
  background:
    repeating-linear-gradient(90deg, rgba(246, 228, 191, 0.05) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(246, 228, 191, 0.032) 0 1px, transparent 1px 70px),
    linear-gradient(90deg, rgba(32, 25, 22, 0.22), transparent 18%, transparent 82%, rgba(32, 25, 22, 0.28));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.sign-room__scene::after {
  background:
    repeating-linear-gradient(90deg, rgba(246, 228, 191, 0.055) 0 2px, transparent 2px 80px),
    linear-gradient(180deg, #705541, #241817);
  bottom: -102px;
  content: "";
  height: 260px;
  left: -8%;
  position: absolute;
  right: -8%;
  transform: perspective(760px) rotateX(48deg);
  transform-origin: bottom;
  z-index: -1;
}

.sign-room__keys,
.sign-room__sparks {
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.sign-room__keys {
  display: flex;
  gap: 12px;
  left: 5%;
  top: 34px;
}

.sign-room__keys span {
  align-items: center;
  background: rgba(255, 247, 223, 0.82);
  border: 2px solid rgba(214, 162, 71, 0.42);
  border-radius: 50%;
  color: #59381e;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.sign-room__sparks {
  bottom: 76px;
  display: flex;
  gap: 16px;
  right: 6%;
}

.sign-room__sparks span {
  background: radial-gradient(circle, #fff2b4 0 28%, var(--sign-gold) 29% 56%, transparent 57%);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(214, 162, 71, 0.48);
  height: 42px;
  width: 42px;
}

.sign-room__prompt {
  left: 50%;
  max-width: min(720px, 68%);
  position: absolute;
  text-align: center;
  text-shadow: 0 3px 10px rgba(20, 18, 16, 0.58);
  top: 3%;
  transform: translateX(-50%);
  z-index: 5;
}

.sign-room__prompt span,
.sign-shelf__title span,
.sign-board__header span,
.sign-controls > span,
.sign-why span,
.sign-reward__copy span {
  color: rgba(255, 248, 228, 0.84);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sign-room__prompt h1 {
  color: #fff7df;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.88rem);
  line-height: 1.05;
  margin: 3px 0 0;
}

.sign-shelf {
  background: linear-gradient(180deg, rgba(32, 25, 22, 0.92), rgba(52, 47, 54, 0.9));
  border: 2px solid rgba(246, 228, 191, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(24, 20, 18, 0.28);
  left: 4%;
  padding: 9px 12px;
  position: absolute;
  right: 4%;
  top: 13%;
  z-index: 4;
}

.sign-shelf__title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.sign-shelf__title strong {
  color: #fff2c8;
  font-size: 0.82rem;
}

.sign-shelf__slots,
.sign-reward__artifacts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sign-shelf__slot {
  background: rgba(246, 228, 191, 0.08);
  border: 1px dashed rgba(246, 228, 191, 0.28);
  border-radius: 6px;
  min-height: 74px;
  padding: 6px;
}

.sign-shelf__slot.is-current {
  border-color: rgba(214, 162, 71, 0.62);
}

.sign-shelf__slot.is-filled {
  background: rgba(214, 162, 71, 0.12);
  border-style: solid;
}

.sign-artifact {
  background: linear-gradient(180deg, #b8aa91, #645340);
  border: 2px solid rgba(255, 248, 228, 0.18);
  border-radius: 7px;
  color: #fff7df;
  display: grid;
  gap: 3px;
  min-height: 60px;
  padding: 6px;
  place-items: center;
  text-align: center;
}

.sign-artifact.is-filled {
  background: linear-gradient(180deg, #e8c96f, #7b5a2c);
  box-shadow: 0 0 18px rgba(214, 162, 71, 0.28);
}

.sign-artifact span,
.sign-artifact strong {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
}

.sign-artifact span {
  font-size: 0.9rem;
}

.sign-artifact strong {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
}

.sign-artifact em {
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
}

.sign-steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  left: 50%;
  max-width: 780px;
  position: absolute;
  top: 27%;
  transform: translateX(-50%);
  width: 74%;
  z-index: 5;
}

.sign-steps span {
  background: rgba(246, 228, 191, 0.86);
  border: 1px solid rgba(32, 25, 22, 0.1);
  border-radius: 999px;
  color: rgba(32, 25, 22, 0.66);
  flex: 1;
  font-size: 0.66rem;
  font-weight: 900;
  min-height: 28px;
  padding: 7px 10px;
  text-align: center;
}

.sign-steps span.is-active {
  background: #fff7df;
  color: var(--sign-red);
  box-shadow: 0 0 0 3px rgba(214, 162, 71, 0.2);
}

.sign-steps span.is-complete {
  background: linear-gradient(135deg, var(--sign-gold), #efd88a);
  color: #342519;
}

.sign-workbench {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.82fr) minmax(180px, 0.5fr);
  inset: 32% 4% 5%;
  position: absolute;
  z-index: 6;
}

.sign-workbench__main {
  min-width: 0;
}

.sign-board,
.sign-controls,
.sign-master {
  background: rgba(255, 244, 214, 0.95);
  border: 2px solid rgba(255, 248, 228, 0.62);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(32, 25, 22, 0.24);
}

.sign-board,
.sign-controls {
  height: 100%;
  padding: 13px;
}

.sign-board__header {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sign-board__header span,
.sign-controls > span,
.sign-why span,
.sign-reward__copy span {
  color: rgba(32, 25, 22, 0.54);
}

.sign-board__header strong {
  color: #453018;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.55vw, 1.38rem);
  line-height: 1;
}

.sign-equation {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(32, 25, 22, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 25, 22, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf0, #ead5aa);
  background-size: 54px 54px, 54px 54px, auto;
  border: 1px solid rgba(32, 25, 22, 0.14);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 150px;
  padding: 13px;
  text-align: center;
}

.sign-term,
.sign-lock,
.sign-equals,
.sign-target {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 58px;
  min-width: 58px;
  padding: 10px 12px;
}

.sign-term,
.sign-target {
  background: #fff9e8;
  border: 1px solid rgba(32, 25, 22, 0.14);
  color: #453018;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.sign-target {
  background: linear-gradient(135deg, var(--sign-blue), var(--sign-gold));
  color: #fff7df;
}

.sign-lock {
  background: rgba(255, 249, 232, 0.72);
  border: 1px dashed rgba(32, 25, 22, 0.18);
  color: rgba(32, 25, 22, 0.38);
  cursor: pointer;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
}

.sign-lock.is-filled {
  background: linear-gradient(135deg, var(--sign-red), var(--sign-gold));
  border-style: solid;
  color: #fff7df;
  box-shadow: 0 0 0 3px rgba(214, 162, 71, 0.18);
}

.sign-equals {
  color: var(--sign-blue);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  min-width: 34px;
}

.sign-preview {
  background: rgba(69, 108, 120, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 10px 12px;
  text-align: center;
}

.sign-preview span,
.sign-preview em {
  color: rgba(32, 25, 22, 0.58);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.sign-preview strong {
  color: #453018;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

.sign-board p {
  color: rgba(32, 25, 22, 0.66);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.3;
  margin: 10px 0 0;
  text-align: center;
}

.sign-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.sign-controls > span {
  text-align: center;
}

.sign-control-row {
  margin-top: 10px;
}

.sign-control-row > strong {
  color: rgba(32, 25, 22, 0.62);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 6px;
  text-align: center;
  text-transform: uppercase;
}

.sign-choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sign-choice-grid button {
  background: #fff9e8;
  border: 1px solid rgba(32, 25, 22, 0.14);
  border-radius: 8px;
  color: #453018;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  min-height: 48px;
  padding: 8px 10px;
  text-align: center;
}

.sign-choice-grid button.is-selected {
  background: linear-gradient(135deg, var(--sign-red), var(--sign-gold));
  border-color: transparent;
  color: #fff7df;
}

.sign-choice-grid button:hover {
  border-color: rgba(214, 162, 71, 0.56);
  box-shadow: 0 0 0 3px rgba(214, 162, 71, 0.14);
}

.sign-choice-grid button:disabled {
  cursor: default;
  opacity: 0.5;
}

.sign-lock-button {
  background: linear-gradient(135deg, rgba(32, 25, 22, 0.22), rgba(32, 25, 22, 0.14));
  border: 0;
  border-radius: 8px;
  color: rgba(32, 25, 22, 0.58);
  cursor: pointer;
  font-weight: 950;
  margin-top: 14px;
  min-height: 48px;
  padding: 10px 16px;
  width: 100%;
}

.sign-lock-button.is-ready {
  background: linear-gradient(135deg, var(--sign-blue), var(--sign-gold));
  color: #fff7df;
  box-shadow: 0 12px 24px rgba(69, 108, 120, 0.24);
}

.sign-lock-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.sign-master {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 0;
  padding: 14px;
  text-align: center;
}

.sign-master__keys {
  align-items: center;
  background: rgba(255, 247, 223, 0.86);
  border: 2px solid rgba(214, 162, 71, 0.42);
  border-radius: 50%;
  color: #59381e;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 900;
  height: 74px;
  justify-content: center;
  margin: 0 auto 8px;
  width: 74px;
}

.sign-master__head {
  background: #d9a77f;
  border-radius: 50%;
  height: 48px;
  margin: 0 auto;
  position: relative;
  width: 48px;
}

.sign-master__head span {
  background: rgba(32, 25, 22, 0.76);
  border-radius: 999px 999px 40% 40%;
  display: block;
  height: 18px;
  left: 6px;
  position: absolute;
  top: -6px;
  width: 36px;
}

.sign-master__body {
  background: linear-gradient(180deg, #5a4b68, #2d283a);
  border-radius: 24px 24px 8px 8px;
  height: 92px;
  margin: -2px auto 8px;
  width: 78px;
}

.sign-master__bubble {
  background: #fff7df;
  border: 1px solid rgba(32, 25, 22, 0.12);
  border-radius: 8px;
  color: rgba(32, 25, 22, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  padding: 10px;
}

.sign-celebration {
  background: rgba(255, 247, 223, 0.97);
  border: 2px solid rgba(214, 162, 71, 0.52);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(32, 25, 22, 0.32);
  display: grid;
  gap: 8px;
  left: 50%;
  max-width: 650px;
  padding: 14px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 86%);
  z-index: 12;
}

.sign-celebration > strong {
  color: #453018;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}

.sign-celebration > span {
  color: rgba(32, 25, 22, 0.68);
  font-weight: 900;
}

.sign-why {
  background: rgba(69, 108, 120, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
}

.sign-why p {
  color: rgba(32, 25, 22, 0.75);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 4px 0;
}

.sign-why strong {
  color: #453018;
  font-family: var(--font-display);
  font-size: 1rem;
}

.sign-reward {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: absolute;
  z-index: 10;
}

.sign-reward__card {
  background: rgba(255, 247, 223, 0.97);
  border: 2px solid rgba(214, 162, 71, 0.55);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(32, 25, 22, 0.38);
  display: grid;
  gap: 12px;
  max-height: 100%;
  max-width: 920px;
  overflow: auto;
  padding: 20px;
  text-align: center;
  width: min(920px, 94%);
}

.sign-reward__copy h2 {
  color: #453018;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 4px 0 6px;
}

.sign-reward__copy p {
  color: rgba(32, 25, 22, 0.7);
  font-weight: 850;
  margin: 0;
}

.sign-reward__badges,
.sign-reward__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sign-reward__badges span {
  background: rgba(69, 108, 120, 0.1);
  border-radius: 999px;
  color: rgba(32, 25, 22, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 12px;
}

@media (max-width: 900px) {
  .sign-room__scene {
    height: auto;
    min-height: 980px;
    overflow: hidden;
  }

  .sign-workbench {
    grid-template-columns: 1fr;
    inset: 320px 4% auto;
  }

  .sign-master {
    display: none;
  }

  .sign-steps {
    top: 250px;
    width: 90%;
  }
}
