/* Patterns L7: Pattern Workshop */

.wild-page {
  --wild-ink: #242318;
  --wild-paper: #fff0cf;
  --wild-green: #4b8f68;
  --wild-gold: #dba84f;
  --wild-rose: #a35a75;
  --wild-blue: #526b95;
  color: var(--wild-ink);
}

.wild-topbar {
  border-color: rgba(75, 143, 104, 0.28);
}

.wild-progressbar {
  background: rgba(255, 240, 207, 0.78);
  border: 1px solid rgba(75, 143, 104, 0.18);
  border-radius: 999px;
  height: 8px;
  margin: 0 auto 10px;
  max-width: 1180px;
  overflow: hidden;
}

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

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

.wild-progress__dot {
  background: rgba(36, 35, 24, 0.32);
  border: 1px solid rgba(255, 240, 207, 0.72);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.wild-progress__dot.is-current {
  background: var(--wild-paper);
  box-shadow: 0 0 0 3px rgba(219, 168, 79, 0.22);
}

.wild-progress__dot.is-filled {
  background: var(--wild-gold);
  box-shadow: 0 0 12px rgba(219, 168, 79, 0.44);
}

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

.wild-room__scene {
  background:
    radial-gradient(circle at 18% 18%, rgba(219, 168, 79, 0.24), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(82, 107, 149, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(255, 240, 207, 0.1), rgba(36, 35, 24, 0.18)),
    url("../img/arena-patterns-sequencegarden.jpg") center center / cover no-repeat;
  border: 1px solid rgba(255, 240, 207, 0.3);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(36, 35, 24, 0.34);
  height: min(740px, calc(100vh - 130px));
  min-height: 680px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.wild-room__scene::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 240, 207, 0.055) 0 1px, transparent 1px 72px),
    radial-gradient(ellipse at 50% 76%, rgba(75, 143, 104, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.08), transparent 48%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.wild-room__scene::after {
  background:
    repeating-linear-gradient(90deg, rgba(36, 35, 24, 0.12) 0 4px, transparent 4px 44px),
    linear-gradient(180deg, #6f7e51, #3a5138);
  border-top: 1px solid rgba(255, 240, 207, 0.2);
  bottom: -58px;
  box-shadow: 0 -20px 45px rgba(36, 35, 24, 0.3);
  content: "";
  height: 210px;
  left: -3%;
  position: absolute;
  right: -3%;
  transform: skewY(-2deg);
  z-index: -1;
}

.wild-room__arches {
  display: flex;
  gap: 18px;
  left: 6%;
  position: absolute;
  top: 28px;
  z-index: 2;
}

.wild-room__arches span {
  background: linear-gradient(180deg, rgba(255, 240, 207, 0.5), rgba(75, 143, 104, 0.48));
  border: 1px solid rgba(255, 248, 228, 0.28);
  border-radius: 28px 28px 4px 4px;
  height: 90px;
  width: 44px;
}

.wild-room__lamps {
  inset: auto 5% 72px 5%;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.wild-room__lamps span {
  background: radial-gradient(circle, #fff6ca 0 35%, var(--wild-gold) 36% 58%, rgba(219, 168, 79, 0.08) 59%);
  border-radius: 50%;
  bottom: 0;
  box-shadow: 0 0 40px rgba(219, 168, 79, 0.5);
  height: 54px;
  position: absolute;
  width: 54px;
}

.wild-room__lamps span:first-child { left: 0; }
.wild-room__lamps span:last-child { right: 0; }

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

.wild-room__prompt span,
.wild-shelf__title span,
.wild-card__title span,
.wild-counter span,
.wild-rule-slate span,
.wild-why span {
  color: rgba(255, 248, 228, 0.84);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wild-room__prompt h1 {
  color: #fff7df;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.35vw, 2rem);
  line-height: 1.04;
  margin: 3px 0 0;
}

.wild-shelf {
  background: linear-gradient(180deg, rgba(36, 35, 24, 0.9), rgba(43, 55, 45, 0.9));
  border: 2px solid rgba(255, 240, 207, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(28, 26, 22, 0.28);
  left: 4%;
  padding: 9px 12px;
  position: absolute;
  right: 4%;
  top: 13%;
  z-index: 4;
}

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

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

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

.wild-shelf__slot {
  background: rgba(255, 240, 207, 0.08);
  border: 1px dashed rgba(255, 240, 207, 0.28);
  border-radius: 6px;
  display: grid;
  min-height: 74px;
  padding: 6px;
  place-items: center;
}

.wild-shelf__slot.is-current {
  border-color: rgba(219, 168, 79, 0.62);
}

.wild-shelf__slot.is-filled {
  background: rgba(219, 168, 79, 0.13);
  border-style: solid;
}

.wild-token {
  background: linear-gradient(180deg, #bfb49d, #706550);
  border: 2px solid rgba(255, 248, 228, 0.18);
  border-radius: 7px;
  color: #fff7df;
  display: grid;
  min-height: 60px;
  padding: 7px;
  place-items: center;
  text-align: center;
  width: 100%;
}

.wild-token.is-filled {
  background: linear-gradient(180deg, #f0d07a, #9a7431);
  box-shadow: 0 0 18px rgba(219, 168, 79, 0.28);
}

.wild-token span {
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wild-token strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1;
}

.wild-steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 28%;
  transform: translateX(-50%);
  width: min(820px, 82%);
  z-index: 5;
}

.wild-step {
  background: rgba(255, 240, 207, 0.13);
  border: 1px solid rgba(255, 240, 207, 0.24);
  border-radius: 999px;
  color: rgba(255, 248, 228, 0.74);
  flex: 1;
  font-size: 0.62rem;
  font-weight: 900;
  min-height: 34px;
  padding: 9px 10px;
  text-align: center;
  text-transform: uppercase;
}

.wild-step--active {
  background: rgba(219, 168, 79, 0.92);
  color: #2a251b;
}

.wild-step--complete {
  background: rgba(75, 143, 104, 0.88);
  color: #fff7df;
}

.wild-step--pending {
  opacity: 0.58;
}

.wild-workbench {
  align-items: stretch;
  bottom: 7%;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.9fr) minmax(180px, 0.52fr);
  left: 5%;
  position: absolute;
  right: 5%;
  top: 35%;
  z-index: 5;
}

.wild-card,
.wild-control-panel {
  background: rgba(36, 35, 24, 0.84);
  border: 1px solid rgba(255, 240, 207, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(28, 26, 22, 0.28);
  color: #fff7df;
}

.wild-card {
  align-content: start;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.wild-card__title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.wild-card__title strong {
  color: #fff2c8;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1;
}

.wild-table {
  border-collapse: separate;
  border-spacing: 8px;
  width: 100%;
}

.wild-table th,
.wild-table td {
  background: rgba(255, 248, 228, 0.11);
  border: 1px solid rgba(255, 248, 228, 0.18);
  border-radius: 8px;
  color: #fff7df;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  min-height: 54px;
  padding: 12px 8px;
  text-align: center;
}

.wild-table th:first-child {
  background: rgba(75, 143, 104, 0.62);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.wild-table td {
  color: #ffe29b;
}

.wild-rule-slate {
  background: linear-gradient(180deg, rgba(82, 107, 149, 0.36), rgba(36, 35, 24, 0.42));
  border: 1px solid rgba(255, 248, 228, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
  text-align: center;
}

.wild-rule-slate strong {
  color: #fff7df;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1;
}

.wild-rule-slate em {
  color: #ffe29b;
  font-style: normal;
  font-weight: 900;
}

.wild-card p {
  color: rgba(255, 248, 228, 0.82);
  line-height: 1.35;
  margin: 0;
}

.wild-control-panel {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.wild-rule-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.wild-counter {
  display: grid;
  gap: 8px;
  text-align: center;
}

.wild-counter.is-disabled {
  opacity: 0.54;
}

.wild-counter__row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.wild-counter__row button,
.wild-counter__quick button {
  background: linear-gradient(180deg, #eee0bb, #b8a06c);
  border: 2px solid rgba(36, 35, 24, 0.22);
  border-radius: 8px;
  color: #29251a;
  cursor: pointer;
  font-family: var(--font-display);
  min-height: 40px;
}

.wild-counter__row button {
  font-size: 1.2rem;
}

.wild-counter__row button:disabled,
.wild-counter__quick button:disabled {
  cursor: default;
  opacity: 0.45;
}

.wild-counter__row strong {
  align-items: center;
  background: rgba(255, 248, 228, 0.12);
  border: 1px solid rgba(255, 248, 228, 0.22);
  border-radius: 8px;
  color: #ffe29b;
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
  justify-content: center;
  line-height: 0.9;
  min-height: 58px;
}

.wild-counter__quick {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.wild-counter__quick button {
  font-size: 0.82rem;
}

.wild-lock {
  background: linear-gradient(180deg, #6f6b5e, #353127);
  border: 2px solid rgba(255, 240, 207, 0.28);
  border-radius: 8px;
  color: rgba(255, 248, 228, 0.72);
  cursor: default;
  display: grid;
  gap: 5px;
  min-height: 54px;
  padding: 8px;
  place-items: center;
}

.wild-lock span {
  background: currentColor;
  border-radius: 999px;
  height: 6px;
  opacity: 0.42;
  width: 48px;
}

.wild-lock strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.wild-lock.is-ready {
  background: linear-gradient(180deg, #e4bc59, #785b22);
  border-color: rgba(255, 247, 212, 0.76);
  box-shadow: 0 0 20px rgba(219, 168, 79, 0.38);
  color: #241f18;
  cursor: pointer;
}

.wild-veth {
  align-self: end;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  position: relative;
}

.wild-veth__head {
  background: linear-gradient(180deg, #d3b28b, #7d5d55);
  border-radius: 50%;
  height: 46px;
  position: relative;
  width: 46px;
  z-index: 2;
}

.wild-veth__head span {
  background: rgba(36, 35, 24, 0.34);
  border-radius: 999px;
  height: 6px;
  left: 12px;
  position: absolute;
  top: 25px;
  width: 22px;
}

.wild-veth__body {
  background: linear-gradient(180deg, #d9d0bd, #63576c);
  border-radius: 26px 26px 8px 8px;
  height: 94px;
  margin-top: -10px;
  width: 66px;
}

.wild-veth__tool {
  background: linear-gradient(180deg, #8c6a40, #3e2c1c);
  border-radius: 999px;
  height: 132px;
  position: absolute;
  right: 22px;
  top: 36px;
  transform: rotate(-15deg);
  width: 7px;
}

.wild-veth__tool::before {
  background: var(--wild-rose);
  border-radius: 4px;
  content: "";
  height: 36px;
  left: -18px;
  position: absolute;
  top: -14px;
  width: 42px;
}

.wild-veth__bubble {
  background: rgba(36, 35, 24, 0.86);
  border: 1px solid rgba(255, 240, 207, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(28, 26, 22, 0.24);
  color: #fff7df;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.28;
  padding: 12px;
  text-align: center;
}

.wild-why {
  background: rgba(255, 248, 228, 0.12);
  border: 1px solid rgba(255, 248, 228, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
}

.wild-why p {
  color: rgba(255, 248, 228, 0.86);
  line-height: 1.35;
  margin: 4px 0 0;
}

.wild-celebration {
  background: rgba(36, 35, 24, 0.9);
  border: 2px solid rgba(219, 168, 79, 0.56);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 18px 38px rgba(28, 26, 22, 0.34);
  color: #fff7df;
  display: grid;
  gap: 10px;
  left: 50%;
  max-width: 580px;
  padding: 16px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 44px));
  z-index: 14;
}

.wild-celebration > strong {
  color: #ffe29b;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.wild-celebration > span {
  color: rgba(255, 248, 228, 0.78);
  font-weight: 900;
}

.wild-reward {
  display: grid;
  height: 100%;
  padding: 34px;
  place-items: center;
  position: relative;
  z-index: 5;
}

.wild-reward__card {
  background: rgba(36, 35, 24, 0.9);
  border: 2px solid rgba(219, 168, 79, 0.5);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(28, 26, 22, 0.38);
  color: #fff7df;
  display: grid;
  gap: 16px;
  max-width: 900px;
  padding: 24px;
  text-align: center;
  width: min(900px, 100%);
}

.wild-reward__copy span {
  color: #ffe29b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wild-reward__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  margin: 4px 0 6px;
}

.wild-reward__copy p {
  color: rgba(255, 248, 228, 0.82);
  margin: 0;
}

.wild-reward__tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.wild-reward__badges span {
  background: rgba(255, 248, 228, 0.12);
  border: 1px solid rgba(255, 248, 228, 0.2);
  border-radius: 999px;
  color: #fff2c8;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 12px;
}

.wild-reward__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 980px) {
  .wild-room__scene {
    height: auto;
    min-height: 1120px;
    overflow-y: auto;
  }

  .wild-workbench {
    grid-template-columns: 1fr;
    position: relative;
    inset: auto;
    margin: 250px 20px 30px;
  }

  .wild-veth {
    display: none;
  }
}

@media (max-width: 720px) {
  .wild-shelf__rail,
  .wild-reward__tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wild-steps {
    flex-direction: column;
    top: 24%;
  }

  .wild-rule-controls {
    grid-template-columns: 1fr;
  }

  .wild-room__prompt {
    max-width: calc(100% - 28px);
  }
}
