.progress-panel,
.pick-panel {
  padding: 14px;
  border: 1px solid #64748b66;
  border-radius: 14px;
  background: #f3f5ee;
  color: #223f2c;
  margin: 14px 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.progress-panel h3,
.pick-panel h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.progress-note,
.progress-card p,
.progress-card small,
.pick-panel p,
.pick-panel small {
  font-size: 11px;
  line-height: 1.6;
}
.progress-card {
  border-top: 1px solid #cbd3c3;
  padding: 12px 0;
}
.progress-heading {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.progress-heading small {
  color: #58695a;
}
.progress-card progress {
  display: block;
  appearance: auto;
  accent-color: #39764e;
  width: 100%;
  height: 16px;
}
.progress-value {
  font-size: 23px;
}
.pick-cards {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.pick-cards li {
  min-height: 60px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #244333;
  color: #e6efce;
  border: 1px solid #668469;
  border-radius: 7px;
  font-size: 13px;
}
.pick-cards .revealed {
  background: #e6d18c;
  color: #233d2c;
  font-weight: 700;
}
.pick-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}
.pick-categories span {
  padding: 6px;
  background: #dde6d5;
  border-radius: 5px;
}
.pick-categories .matched {
  background: #e6d18c;
  font-weight: 700;
}
.reward-wheel,
.reward-pools {
  padding: 16px;
  margin: 16px 0;
  border: 1px solid #64748b66;
  border-radius: 14px;
  background: #131c31;
  color: #e9edf5;
  overflow: hidden;
  min-width: 0;
}
.reward-wheel h3,
.reward-pools h3 {
  margin: 0 0 12px;
  color: #f6cf71;
}
.wheel-content {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.wheel-content svg {
  width: min(48%, 230px);
  flex-shrink: 0;
}
.wheel-legend {
  padding-left: 26px;
  margin: 0;
  max-height: 230px;
  overflow: auto;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wheel-legend li {
  padding: 2px 5px;
}
.wheel-legend .selected {
  background: #f6cf71;
  color: #172036;
  border-radius: 4px;
  font-weight: 700;
}
.reward-wheel small,
.reward-pools small,
.pool-scope {
  font-size: 11px;
  color: #bec9db;
  line-height: 1.5;
}
.wheel-status {
  font-size: 13px;
  color: #f6cf71;
}
.pool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}
.pool-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #24324d;
  border-radius: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pool-card span {
  font-size: 19px;
  font-weight: 700;
}
.pool-card strong {
  color: #f6cf71;
}
.pool-scope {
  margin: 0 0 12px;
}
.reward-wheel p {
  overflow-wrap: anywhere;
}
@media (max-width: 450px) {
  .reward-wheel,
  .reward-pools {
    padding: 10px;
  }
  .wheel-content {
    gap: 8px;
  }
  .wheel-content svg {
    width: 43%;
  }
  .wheel-legend {
    font-size: 11px;
    padding-left: 22px;
  }
}

.bonus-entry {
  background: #e5cf8f;
  color: #263e2c;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  margin: 12px 0;
}
.saved-step-position {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin: 8px 0;
}
.saved-step-position input {
  width: 80px;
  min-width: 0;
}

.resource-scene {
  position: relative;
  min-width: 0;
  padding: 22px 10px 10px;
  border-radius: 18px;
  background-color: #25182e;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 70px #090317aa;
  text-align: center;
}
.resource-logo {
  display: block;
  width: 45%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 3px 8px #000);
}
.resource-cabinet {
  position: relative;
  max-width: 920px;
  margin: auto;
}
.resource-frame {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.resource-reels {
  position: absolute;
  min-width: 0;
}
.resource-reels > .test-board,
.resource-reels > .board {
  height: 100%;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  grid-auto-rows: minmax(0, 1fr);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.resource-reels > .test-board > div,
.resource-reels > .board > div {
  position: relative;
  min-height: 0;
  padding: 4px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
}
.resource-reels > .test-board > div.win,
.resource-reels > .board > div.win {
  border-color: #ffe9a4;
  background: #ffdc7022;
  box-shadow: inset 0 0 18px #ffb34077;
}
.resource-reels > .test-board img,
.resource-reels > .board img {
  width: 94%;
  height: 94%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #1c061d);
}
.resource-reels small {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  color: #ffecb1;
}
.resource-caption {
  color: #e5cda6;
  font-size: 10px;
  letter-spacing: 1px;
  margin: 12px 0 0;
}
.resource-scene.without-frame .resource-reels {
  padding: 8px;
}
.resource-scene.without-frame .resource-reels > .test-board,
.resource-scene.without-frame .resource-reels > .board {
  height: auto;
  background: #191026bb;
  border: 1px solid #bfa975;
  border-radius: 12px;
}
.resource-scene.without-frame .resource-reels > .test-board > div,
.resource-scene.without-frame .resource-reels > .board > div {
  aspect-ratio: 1;
  border: 1px solid #d1bc8822;
}
.resource-symbol-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #2c172ce6;
  border: 1px solid #e4c168;
  color: #ffebba;
  font-size: 11px;
  line-height: 1.1;
  z-index: 1;
}
.asset-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.asset-thumbnails figure {
  margin: 0;
  min-width: 0;
  padding: 8px;
  border: 1px solid #8c947b44;
  border-radius: 8px;
  text-align: center;
}
.asset-thumbnails img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: #24332d;
  border-radius: 4px;
}
.asset-thumbnails figcaption {
  font-size: 11px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.asset-library {
  margin-top: 12px;
}
.asset-library summary {
  cursor: pointer;
}
.adventure-art {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 205px;
  margin-bottom: 14px;
  background: #202934;
}
.adventure-art-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.8;
}
.adventure-art-backdrop .adventure-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adventure-brand {
  position: relative;
  display: block;
  max-width: 230px;
  width: 55%;
  height: auto;
  margin: 12px auto;
}
.adventure-art-current {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff9d9;
  text-shadow: 0 1px 2px #000;
  font-weight: bold;
}
.adventure-actor {
  max-width: 110px;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px #000);
}
.has-original-art .adventure-track li {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.has-original-art .adventure-marker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
  opacity: 0.35;
}
.adventure-position-icon,
.adventure-footprint,
.adventure-wheel-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.sandbox.is-expanded .adventure-panel.has-original-art {
  grid-column: 1;
  grid-row: 4;
}
.resource-reels > .risk-board-container {
  display: block;
  padding: 0;
}
.risk-board {
  color: #e9f3ff;
  padding: 12px;
}
.risk-board h3 {
  font-size: 14px;
  text-align: center;
}
.risk-board svg {
  display: block;
  width: 100%;
  height: auto;
}
.risk-board svg image {
  pointer-events: none;
}
.risk-board svg g image {
  opacity: 0.24;
}
.risk-board svg g.selected image {
  opacity: 1;
}
.risk-board svg text {
  fill: #142b19;
  font-weight: 800;
}
.risk-board p {
  text-align: center;
  color: #fff0b0;
  font-size: 12px;
}
.risk-board small {
  position: static;
  display: block;
  text-align: center;
}
.resource-wheel {
  background: radial-gradient(ellipse at top, #632146, #271123 75%);
  border-color: #cf9c44;
}
.resource-wheel .wheel-content {
  flex-direction: column;
}
.textured-wheel {
  width: min(100%, 310px);
  aspect-ratio: 1;
  position: relative;
  margin: 15px auto;
  filter: drop-shadow(0 5px 12px #0009);
}
.wheel-rotor {
  position: absolute;
  inset: 0;
  border: 5px solid #edc264;
  border-radius: 50%;
  overflow: hidden;
}
.wheel-rotor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wheel-rotor svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wheel-rotor text {
  fill: #3c102b;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff3c5;
  stroke-width: 0.7px;
}
.wheel-rotor text.chosen {
  fill: #fff;
  stroke: #75172a;
  stroke-width: 1.5px;
}
.wheel-pointer {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  font-size: 38px;
  line-height: 1;
  color: #ffedaf;
  text-shadow: 0 2px 2px #6b2812;
}
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25%;
  height: 25%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(#a43e64, #47132c);
  border: 3px solid #f4d684;
  border-radius: 50%;
  color: #fff0b6;
  font:
    bold 16px Georgia,
    serif;
  text-align: center;
}
.wheel-hub small {
  display: block;
  font-size: 8px;
  color: #ffe7b1;
  margin-top: 3px;
}
.resource-wheel .wheel-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 12px;
  max-height: none;
  width: 100%;
  font-size: 10px;
}
.sandbox.is-expanded {
  position: fixed;
  inset: 18px;
  z-index: 100;
  width: auto;
  max-height: none;
  overflow: auto;
  border: 1px solid #bca36a;
  box-shadow: 0 0 0 24px #14251be8;
}
.sandbox.is-expanded #sandbox-result {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 12px 24px;
  align-items: start;
}
.sandbox.is-expanded #test-status,
.sandbox.is-expanded .test-metrics,
.sandbox.is-expanded .preview-expand {
  grid-column: 1 / -1;
}
.sandbox.is-expanded .resource-scene {
  grid-column: 1;
  grid-row: 4;
  position: relative;
  top: auto;
  padding: 40px 12px 20px;
}
.sandbox.is-expanded .test-rewards {
  grid-column: 2;
  grid-row: 4 / span 6;
}
.sandbox.is-expanded .test-controls,
.sandbox.is-expanded .step-controls,
.sandbox.is-expanded .saved-step-position {
  grid-column: 1;
}
.preview-expand {
  margin: 0 0 12px;
  justify-self: end;
}
@media (max-width: 700px) {
  .sandbox.is-expanded {
    inset: 5px;
    padding: 12px;
  }
  .sandbox.is-expanded #sandbox-result {
    display: block;
  }
  .sandbox.is-expanded .resource-scene {
    position: relative;
    top: auto;
    padding: 20px 5px 10px;
  }
  .resource-reels > .test-board > div,
  .resource-reels > .board > div {
    padding: 1px;
  }
  .resource-logo {
    margin-bottom: 10px;
  }
}
