/* Operations L6: Parenthesis Press */

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

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

.press-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;
}

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

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

.press-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;
}

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

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

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

.press-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;
}

.press-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;
}

.press-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;
}

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

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

.press-room__glyphs 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.65rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

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

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

.press-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;
}

.press-room__prompt span,
.press-shelf__title span,
.press-board__header span,
.press-controls > span,
.press-why span,
.press-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;
}

.press-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;
}

.press-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;
}

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

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

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

.press-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;
}

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

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

.press-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;
}

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

.press-artifact span {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.press-artifact strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1;
}

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

.press-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;
}

.press-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;
}

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

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

.press-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;
}

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

.press-board,
.press-controls,
.press-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);
}

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

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

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

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

.press-target {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
  margin-bottom: 12px;
}

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

.press-target strong {
  background: linear-gradient(135deg, var(--press-blue), var(--press-gold));
  border-radius: 8px;
  color: #fff7df;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  min-width: 72px;
  padding: 8px 12px;
  text-align: center;
}

.press-expression {
  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: 130px;
  padding: 13px;
  text-align: center;
}

.press-term,
.press-op,
.press-slot {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 900;
  justify-content: center;
  line-height: 1;
}

.press-term {
  background: #fff9e8;
  border: 1px solid rgba(32, 25, 22, 0.14);
  color: #453018;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  min-width: 58px;
  padding: 10px 12px;
}

.press-op {
  color: var(--press-blue);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  min-width: 28px;
}

.press-slot {
  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.35rem, 2vw, 1.9rem);
  min-height: 54px;
  min-width: 42px;
}

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

.press-slot:disabled {
  cursor: default;
  opacity: 0.44;
}

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

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

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

.press-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;
}

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

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

.press-choice-grid,
.press-edit-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.press-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.press-choice-grid button,
.press-edit-grid button {
  background: #fff9e8;
  border: 1px solid rgba(32, 25, 22, 0.14);
  border-radius: 8px;
  color: var(--press-ink);
  cursor: pointer;
  min-height: 52px;
  padding: 8px 10px;
  text-align: center;
}

.press-choice-grid button strong {
  color: #453018;
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.08;
}

.press-edit-grid button {
  color: rgba(32, 25, 22, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
}

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

.press-choice-grid button:disabled,
.press-edit-grid button:disabled {
  cursor: default;
  opacity: 0.5;
}

.press-lock {
  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%;
}

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

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

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

.press-master__glyph {
  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.8rem;
  font-weight: 900;
  height: 74px;
  justify-content: center;
  margin: 0 auto 8px;
  width: 74px;
}

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

.press-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;
}

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

.press-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;
}

.press-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;
}

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

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

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

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

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

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

.press-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%);
}

.press-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;
}

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

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

.press-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) {
  .press-room__scene {
    height: auto;
    min-height: 980px;
    overflow: hidden;
  }

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

  .press-master {
    display: none;
  }

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