/* Operations Consecration: Target Forge */

.opc-consecration-screen {
  --opc-iron: #34414a;
  --opc-iron-dark: #1c2228;
  --opc-gold: #d8a54b;
  --opc-amber: #efc76d;
  --opc-ember: #bd604a;
  --opc-teal: #4e7c82;
  --opc-violet: #66548f;
  --opc-ink: #231d1a;
  --opc-paper: #f5dfb8;
  color: var(--opc-paper);
  overflow-y: auto;
}

.opc-consecration-topbar {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 10px;
}

.opc-consecration-topbar div {
  min-width: 0;
  text-align: center;
}

.opc-consecration-topbar span {
  color: var(--text-secondary);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.opc-consecration-topbar strong {
  color: var(--text-primary);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.opc-consecration-topbar p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.opc-consecration-progress {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.opc-consecration-progress span {
  background: linear-gradient(90deg, var(--opc-gold), var(--opc-teal), var(--opc-ember), var(--opc-violet));
  display: block;
  height: 100%;
  transition: width 420ms ease;
}

.opc-consecration-stage {
  background:
    radial-gradient(circle at 50% 8%, rgba(239, 199, 109, 0.18), transparent 25%),
    radial-gradient(circle at 15% 37%, rgba(189, 96, 74, 0.2), transparent 27%),
    radial-gradient(circle at 86% 41%, rgba(78, 124, 130, 0.18), transparent 28%),
    repeating-linear-gradient(90deg, rgba(245, 223, 184, 0.052) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(59, 45, 39, 0.74) 0%, rgba(37, 40, 45, 0.76) 54%, rgba(21, 23, 25, 0.82) 100%),
    url("../img/arena-operations-forge.jpg") center center / cover no-repeat;
  border: 1px solid rgba(245, 223, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  height: min(760px, calc(100vh - 126px));
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

.opc-forge-architecture {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.opc-forge-architecture::before {
  background:
    radial-gradient(ellipse at 50% -4%, rgba(239, 199, 109, 0.16) 0 28%, transparent 29%),
    linear-gradient(90deg, transparent 0 7%, rgba(245, 223, 184, 0.07) 7% 8%, transparent 8% 92%, rgba(245, 223, 184, 0.07) 92% 93%, transparent 93%);
  content: "";
  inset: 0;
  position: absolute;
}

.opc-forge-architecture span {
  background: linear-gradient(180deg, rgba(245, 223, 184, 0.16), rgba(21, 23, 25, 0.9));
  border: 1px solid rgba(245, 223, 184, 0.12);
  bottom: 0;
  position: absolute;
  top: 8%;
  width: 4px;
}

.opc-forge-architecture span:nth-child(1) { left: 10%; }
.opc-forge-architecture span:nth-child(2) { left: 28%; }
.opc-forge-architecture span:nth-child(3) { left: 50%; }
.opc-forge-architecture span:nth-child(4) { right: 28%; }
.opc-forge-architecture span:nth-child(5) { right: 10%; }

.opc-floor-lines {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.opc-floor-lines span {
  background: linear-gradient(90deg, transparent, rgba(239, 199, 109, 0.26), transparent);
  bottom: 8%;
  height: 1px;
  left: 8%;
  position: absolute;
  right: 8%;
  transform-origin: 50% 50%;
}

.opc-floor-lines span:nth-child(1) { transform: rotate(0deg); }
.opc-floor-lines span:nth-child(2) { transform: rotate(9deg); }
.opc-floor-lines span:nth-child(3) { transform: rotate(-9deg); }
.opc-floor-lines span:nth-child(4) { bottom: 18%; }

.opc-forge-table {
  bottom: 0;
  height: 150px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  width: min(1000px, 78%);
  z-index: 2;
}

.opc-forge-table span {
  background:
    repeating-linear-gradient(90deg, rgba(245, 223, 184, 0.08) 0 1px, transparent 1px 82px),
    linear-gradient(180deg, #775542, #2b2524);
  border: 1px solid rgba(245, 223, 184, 0.16);
  border-radius: 52% 52% 12px 12px / 15% 15% 12px 12px;
  bottom: 0;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.34);
  height: 124px;
  left: 0;
  position: absolute;
  right: 0;
}

.opc-forge-table i {
  background: linear-gradient(90deg, var(--opc-gold), var(--opc-ember), var(--opc-teal), var(--opc-violet));
  border-radius: 999px;
  bottom: 92px;
  box-shadow: 0 0 20px rgba(239, 199, 109, 0.34);
  height: 9px;
  left: 22%;
  position: absolute;
  right: 22%;
}

.opc-clock {
  background:
    radial-gradient(circle at 50% 46%, rgba(239, 199, 109, 0.14), transparent 34%),
    repeating-radial-gradient(circle at 50% 46%, rgba(35, 29, 26, 0.1) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #e9d0a7, #9f7e5c);
  border: 10px solid rgba(48, 44, 42, 0.98);
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(35, 29, 26, 0.25), 0 28px 50px rgba(0, 0, 0, 0.34);
  color: var(--opc-ink);
  height: clamp(500px, 57vw, 545px);
  left: 50%;
  padding: 15px 16px 18px;
  position: absolute;
  top: 4%;
  transform: translateX(-50%);
  width: min(760px, 61%);
  z-index: 5;
}

.opc-clock__rings {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 24%, rgba(35, 29, 26, 0.1) 25% 26%, transparent 27% 41%, rgba(35, 29, 26, 0.11) 42% 43%, transparent 44%),
    linear-gradient(90deg, transparent 0 49.5%, rgba(35, 29, 26, 0.16) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 0 49.5%, rgba(35, 29, 26, 0.16) 49.5% 50.5%, transparent 50.5%);
  inset: 60px 20px 24px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.opc-clock__title {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}

.opc-clock__title span {
  color: rgba(35, 29, 26, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.opc-clock__title strong {
  color: #6a432c;
  font-family: var(--font-display);
  font-size: 1.26rem;
}

.opc-clock__groups {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 230px;
  position: relative;
  z-index: 3;
}

.opc-clock-group {
  border: 1px solid rgba(35, 29, 26, 0.13);
  border-radius: 7px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  opacity: 0.62;
  padding: 9px;
  position: relative;
  transition: opacity 600ms ease, box-shadow 600ms ease, background 600ms ease;
}

.opc-clock-group.is-lit {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 20px rgba(239, 199, 109, 0.18), 0 0 18px rgba(239, 199, 109, 0.18);
  opacity: 1;
}

.opc-clock-group--solen.is-lit { border-color: rgba(216, 165, 75, 0.62); }
.opc-clock-group--aldra.is-lit { border-color: rgba(189, 96, 74, 0.58); }
.opc-clock-group--pellan.is-lit { border-color: rgba(78, 124, 130, 0.56); }
.opc-clock-group--veth.is-lit { border-color: rgba(102, 84, 143, 0.56); }

.opc-clock-group__mark {
  background:
    radial-gradient(circle, transparent 0 32%, currentColor 33% 45%, transparent 46%),
    conic-gradient(currentColor 0 11%, transparent 11% 19%, currentColor 19% 31%, transparent 31% 39%, currentColor 39% 51%, transparent 51% 59%, currentColor 59% 71%, transparent 71% 79%, currentColor 79% 91%, transparent 91% 100%);
  border-radius: 50%;
  color: rgba(35, 29, 26, 0.34);
  height: 34px;
  margin: 0 auto 6px;
  width: 34px;
}

.opc-clock-group.is-lit .opc-clock-group__mark {
  color: var(--opc-gold);
  filter: drop-shadow(0 0 8px rgba(216, 165, 75, 0.4));
}

.opc-clock-group__label {
  text-align: center;
}

.opc-clock-group__label span {
  color: rgba(35, 29, 26, 0.55);
  display: block;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opc-clock-group__label strong {
  color: #4c3528;
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 2px;
}

.opc-clock-group__slots {
  display: grid;
  gap: 8px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  margin-top: 9px;
}

.opc-artifact {
  background: rgba(255, 250, 232, 0.54);
  border: 1px dashed rgba(35, 29, 26, 0.2);
  border-radius: 6px;
  display: grid;
  min-height: 72px;
  opacity: 0.66;
  padding: 7px;
  position: relative;
  text-align: center;
}

.opc-artifact.is-lit {
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.9), rgba(239, 199, 109, 0.22));
  border-style: solid;
  opacity: 1;
}

.opc-artifact.is-missing {
  filter: grayscale(0.45);
}

.opc-artifact.is-pinned {
  box-shadow: 0 0 16px rgba(239, 199, 109, 0.32);
}

.opc-artifact span {
  align-items: center;
  background: rgba(35, 29, 26, 0.12);
  border-radius: 50%;
  display: flex;
  font-size: 0.64rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  left: 6px;
  position: absolute;
  top: 6px;
  width: 20px;
}

.opc-artifact strong {
  align-self: center;
  color: #463226;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.08;
  padding: 14px 2px 0;
}

.opc-artifact i {
  background: currentColor;
  border-radius: 50%;
  bottom: 7px;
  color: rgba(35, 29, 26, 0.26);
  height: 8px;
  justify-self: center;
  width: 8px;
}

.opc-artifact.is-lit i {
  color: var(--opc-gold);
  box-shadow: 0 0 10px rgba(216, 165, 75, 0.5);
}

.opc-clock-core {
  background: rgba(255, 250, 232, 0.88);
  border: 2px solid rgba(35, 29, 26, 0.16);
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 18px 32px rgba(35, 29, 26, 0.18);
  color: #463226;
  cursor: pointer;
  display: grid;
  height: 210px;
  left: 50%;
  place-items: center;
  position: absolute;
  transform: translateX(-50%);
  transition: box-shadow 420ms ease, transform 420ms ease;
  width: 210px;
  z-index: 4;
}

.opc-clock-core:disabled {
  cursor: default;
}

.opc-clock-core.is-target {
  box-shadow: 0 0 0 6px rgba(216, 165, 75, 0.22), 0 22px 38px rgba(35, 29, 26, 0.24);
  transform: translateX(-50%) scale(1.02);
}

.opc-clock-core svg {
  height: 135px;
  width: 135px;
}

.opc-clock-core__rim,
.opc-clock-core__inner {
  fill: none;
  stroke: #5e4635;
  stroke-width: 8;
}

.opc-clock-core__inner {
  stroke: rgba(78, 124, 130, 0.58);
  stroke-width: 5;
}

.opc-clock-core__ticks,
.opc-clock-core__hand-a,
.opc-clock-core__hand-b {
  fill: none;
  stroke: #5e4635;
  stroke-linecap: round;
  stroke-width: 7;
}

.opc-clock-core__hand-a,
.opc-clock-core__hand-b {
  stroke: var(--opc-ember);
  transform-origin: 110px 110px;
  transition: transform 900ms ease;
}

.opc-clock-core.is-running .opc-clock-core__hand-a {
  transform: rotate(120deg);
}

.opc-clock-core.is-running .opc-clock-core__hand-b {
  transform: rotate(260deg);
}

.opc-clock-core circle {
  fill: var(--opc-gold);
}

.opc-clock-core span,
.opc-clock-core strong,
.opc-clock-core em {
  display: none;
}

.opc-clock-core.is-running span,
.opc-clock-core.is-running strong,
.opc-clock-core em {
  display: block;
  line-height: 1.08;
  text-align: center;
}

.opc-clock-core.is-running span {
  color: rgba(35, 29, 26, 0.56);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.opc-clock-core.is-running strong,
.opc-clock-core em {
  bottom: 16px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  left: 22px;
  position: absolute;
  right: 22px;
}

.opc-clock-seal {
  align-items: center;
  bottom: 26px;
  display: flex;
  gap: 8px;
  justify-content: center;
  left: 26px;
  opacity: 0.6;
  position: absolute;
  right: 26px;
  transition: opacity 500ms ease;
  z-index: 3;
}

.opc-clock-seal.is-lit {
  opacity: 1;
}

.opc-clock-seal span {
  background: rgba(35, 29, 26, 0.12);
  border-radius: 999px;
  color: #463226;
  font-size: 0.66rem;
  font-weight: 950;
  padding: 6px 9px;
}

.opc-master,
.opc-apprentice {
  background: rgba(20, 17, 16, 0.7);
  border: 1px solid rgba(245, 223, 184, 0.18);
  border-radius: 8px;
  color: var(--opc-paper);
  cursor: pointer;
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 10px;
  position: absolute;
  text-align: center;
  transition: box-shadow 320ms ease, opacity 320ms ease, transform 320ms ease;
  width: 150px;
  z-index: 8;
}

.opc-master:disabled,
.opc-apprentice:disabled {
  cursor: default;
}

.opc-master.is-target,
.opc-apprentice.is-target {
  box-shadow: 0 0 0 5px rgba(216, 165, 75, 0.24), 0 0 24px rgba(216, 165, 75, 0.25);
  transform: translateY(-4px);
}

.opc-master--solen { left: 4%; top: 14%; }
.opc-master--aldra { right: 4%; top: 14%; }
.opc-master--pellan { left: 4%; bottom: 10%; }
.opc-master--veth { right: 4%; bottom: 10%; }

.opc-master__sprite,
.opc-apprentice__sprite {
  display: block;
  height: 70px;
  position: relative;
  width: 58px;
}

.opc-master__sprite i,
.opc-apprentice__sprite i {
  background: #d6a47b;
  border-radius: 50%;
  height: 36px;
  left: 11px;
  position: absolute;
  top: 0;
  width: 36px;
}

.opc-master__sprite b,
.opc-apprentice__sprite b {
  background: linear-gradient(180deg, var(--opc-violet), #2d283a);
  border-radius: 20px 20px 7px 7px;
  height: 48px;
  left: 5px;
  position: absolute;
  top: 30px;
  width: 48px;
}

.opc-master__sprite em,
.opc-apprentice__sprite em {
  background: var(--opc-gold);
  border-radius: 999px;
  height: 8px;
  left: 0;
  position: absolute;
  top: 44px;
  width: 58px;
}

.opc-master--solen .opc-master__sprite b { background: linear-gradient(180deg, #8a4b34, #42251f); }
.opc-master--aldra .opc-master__sprite b { background: linear-gradient(180deg, #5b7188, #273644); }
.opc-master--pellan .opc-master__sprite b { background: linear-gradient(180deg, #7b6048, #34271f); }
.opc-master--veth .opc-master__sprite b { background: linear-gradient(180deg, #5b4b7a, #2d283a); }

.opc-master__name,
.opc-apprentice strong {
  color: #fff4d6;
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.05;
}

.opc-master__role {
  color: rgba(245, 223, 184, 0.72);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.opc-master__line {
  background: rgba(255, 247, 223, 0.96);
  border-radius: 8px;
  color: #39271d;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 6px;
  padding: 8px;
}

.opc-apprentice {
  bottom: 5%;
  left: 50%;
  min-height: 128px;
  transform: translateX(-50%);
  width: 132px;
}

.opc-apprentice.is-target {
  transform: translateX(-50%) translateY(-4px);
}

.opc-apprentice__pieces {
  background: linear-gradient(90deg, var(--opc-violet), var(--opc-gold));
  border-radius: 999px;
  display: block;
  height: 8px;
  margin: 2px 0;
  opacity: 0.7;
  width: 72px;
}

.opc-apprentice.has-pinned .opc-apprentice__pieces {
  opacity: 1;
}

.opc-consecration-cue {
  background: rgba(20, 17, 16, 0.82);
  border: 1px solid rgba(245, 223, 184, 0.2);
  border-radius: 8px;
  bottom: 4%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  color: var(--opc-paper);
  left: 50%;
  max-width: min(620px, 54%);
  padding: 14px 16px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 12;
}

.opc-consecration-cue span,
.opc-title-card > span {
  color: rgba(245, 223, 184, 0.72);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.opc-consecration-cue h1 {
  color: #fff4d6;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1;
  margin: 4px 0 8px;
}

.opc-consecration-cue p {
  color: rgba(245, 223, 184, 0.88);
  font-weight: 850;
  line-height: 1.3;
  margin: 0;
}

.opc-consecration-cue strong {
  color: var(--opc-amber);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  margin-top: 9px;
  text-transform: uppercase;
}

.opc-title-card {
  align-items: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(239, 199, 109, 0.2), transparent 26%),
    radial-gradient(circle at 20% 72%, rgba(189, 96, 74, 0.18), transparent 22%),
    radial-gradient(circle at 80% 70%, rgba(78, 124, 130, 0.18), transparent 22%),
    linear-gradient(180deg, #342821, #171719);
  border: 1px solid rgba(245, 223, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  color: var(--opc-paper);
  display: grid;
  height: min(760px, calc(100vh - 126px));
  justify-items: center;
  min-height: 640px;
  overflow: hidden;
  padding: 44px 24px;
  position: relative;
  text-align: center;
}

.opc-title-card h1 {
  color: #fff4d6;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 6.4rem);
  line-height: 0.92;
  margin: 0;
  max-width: 940px;
}

.opc-title-card p {
  color: rgba(245, 223, 184, 0.86);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 900;
  margin: 0;
}

.opc-title-stars {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.opc-title-stars span {
  color: rgba(245, 223, 184, 0.22);
  font-size: 2.4rem;
}

.opc-title-stars span.is-filled {
  color: var(--opc-gold);
  text-shadow: 0 0 18px rgba(239, 199, 109, 0.42);
}

.opc-title-card__sparks {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.opc-title-card__sparks span {
  background: radial-gradient(circle, #fff3bc 0 30%, var(--opc-gold) 31% 55%, transparent 56%);
  border-radius: 50%;
  height: 56px;
  position: absolute;
  width: 56px;
}

.opc-title-card__sparks span:nth-child(1) { left: 14%; top: 18%; }
.opc-title-card__sparks span:nth-child(2) { right: 16%; top: 20%; }
.opc-title-card__sparks span:nth-child(3) { left: 22%; bottom: 18%; }
.opc-title-card__sparks span:nth-child(4) { right: 24%; bottom: 16%; }

@media (max-width: 980px) {
  .opc-consecration-stage,
  .opc-title-card {
    height: auto;
    min-height: 900px;
    overflow: visible;
  }

  .opc-clock {
    left: 50%;
    top: 150px;
    width: min(720px, 88%);
  }

  .opc-master {
    width: 128px;
  }

  .opc-master--solen,
  .opc-master--aldra {
    top: 42px;
  }

  .opc-master--pellan,
  .opc-master--veth {
    bottom: 34px;
  }

  .opc-consecration-cue {
    bottom: 170px;
    max-width: 82%;
  }
}
