.solo-dice-content { display: contents; }
.dice-stage:has(.solo-extra-stage:not([hidden])) {
  grid-template-rows: auto 1fr;
}
.solo-extra-stage {
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  align-items: center;
  min-height: clamp(235px, 34vh, 380px);
  padding: 9px 0 5px;
}
.solo-extra-stage[data-result="win"] .roll-number { color: var(--green); }
.solo-extra-stage[data-result="loss"] .roll-number { color: var(--red); }
.solo-extra-stage .roll-number { overflow-wrap: anywhere; }
.solo-games button[data-pending]::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 5px;
  border-radius: 50%;
  background: #f4bb78;
  vertical-align: .1em;
}

.mimic-chests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.3vw, 16px);
  align-items: stretch;
}
.mimic-chests button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 9px 4px 12px;
  border: 1px solid #a36565;
  border-radius: 15px;
  background: radial-gradient(ellipse at 50% 24%, #9c595646, transparent 73%), #39212f;
  color: #f8d2b4;
  font-weight: 800;
}
.mimic-chests button i, .dragon-card i {
  display: block;
  width: min(100%, 145px);
  aspect-ratio: 1;
  background: url("assets/werkstatt-objekte.png") 0 100% / 200% 200% no-repeat;
  filter: drop-shadow(0 6px 5px #221021);
}
.mimic-chests button.picked { border-color: #ffd885; box-shadow: inset 0 0 0 2px #ffd88566; }
.mimic-chests button[data-chest-state="empty"] { color: #e2b5ae; background: #35222f; }
.mimic-chests button[data-chest-state="empty"] i { opacity: .43; filter: saturate(.4); }
.mimic-chests button[data-chest-state="gold"] {
  color: #ffeaba;
  border-color: #ffd882;
  background: radial-gradient(ellipse at 50% 40%, #a16b33, #482938 81%);
}
.mimic-chests button[data-chest-state="gold"] i { filter: drop-shadow(0 0 13px #ffc970); }

.dragon-cards {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 5vw, 65px);
  padding: 11px 0 17px;
  perspective: 850px;
}
.dragon-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  width: clamp(92px, 12vw, 148px);
  aspect-ratio: 3 / 4;
  padding: 9px 7px;
  border: 2px solid #ffe8a9;
  border-radius: 13px;
  background: linear-gradient(150deg, #fbe4ac, #e2a768);
  color: #4d2b36;
  box-shadow: inset 0 0 0 5px #f7d992, 0 6px #965744, 5px 12px 16px #2411248c;
  transform: rotate(-7deg);
}
.dragon-card strong { font: 800 clamp(43px, 6vw, 81px)/.98 var(--display); }
.dragon-card span { font-size: 12px; font-weight: 800; }
.dragon-card .pixel { margin-top: 4px; width: 20px; height: 20px; }
.rival-card {
  transform: rotate(8deg);
  color: #f8e0fd;
  border-color: #d7acee;
  background: radial-gradient(ellipse, #703b7e, #492442);
  box-shadow: inset 0 0 0 5px #ad72bd5c, 0 6px #754883, 5px 12px 16px #2411248c;
}
.dragon-card i { width: 32px; background-position: 100% 100%; }
.hoard { display: grid; justify-items: center; gap: 7px; }
.hoard-den {
  position: relative; width: min(100%, 340px); min-height: 115px; display: flex; align-items: center;
  padding: 5px 10px; gap: 5px; border-radius: 18px;
  background: radial-gradient(ellipse at 40% 68%, #884a6959, #21162880 72%);
}
.hoard-dragon {
  flex: 0 0 clamp(86px, 12vw, 126px); aspect-ratio: 1;
  background: url("assets/werkstatt-objekte.png") 100% 100% / 200% 200% no-repeat;
  filter: drop-shadow(0 6px 5px #221021); transform-origin: 50% 75%;
}
.hoard[data-mood="sleeping"] .hoard-dragon { animation: dragon-breath 2.5s ease-in-out infinite alternate; }
.hoard[data-mood="stirring"] .hoard-den { background: radial-gradient(ellipse at 43% 68%, #ba735772, #2f1b2a 74%); }
.hoard[data-mood="awake"] .hoard-den { background: radial-gradient(ellipse at 43% 68%, #d25b62a3, #391829 74%); }
@keyframes dragon-breath { to { transform: translateY(-2px) scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .hoard[data-mood="sleeping"] .hoard-dragon { animation: none; } }
.hoard-noise { display: grid; flex: 1; gap: 4px; color: #ffdfaa; font-weight: 750; font-size: 12px; }
.hoard-noise meter { width: 100%; accent-color: #ef9c74; }
.hoard-treasures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.hoard-treasures button {
  display: grid; align-content: start; justify-items: center; gap: 2px; padding: 5px;
  min-width: 0; color: #ffe5b6; background: #462d43; border: 1px solid #a77c94; border-radius: 8px;
  text-align: center; font-size: 12px;
}
.hoard-treasures button:disabled { opacity: .69; }
.hoard-treasures button:not(:disabled):hover { background: #664156; border-color: #ffcf88; }
.hoard-treasures i {
  display: block; width: 48px; aspect-ratio: 1; background: url("assets/beute.avif") 0 0 / 400% 200% no-repeat;
}
.hoard-treasures button:nth-child(2) i { background-position: 100% 0; }
.hoard-treasures button:nth-child(3) i { background-position: 66.67% 100%; }
.hoard-treasures small { font-size: 10px; color: #ebc2bc; }
.extra-rules { color: #e9c5c1; font-size: 13px; font-weight: 700; }
.extra-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.extra-choices button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 63px;
  align-content: center;
  padding: 6px 4px;
  border: 1px solid #b68069;
  border-radius: 9px;
  color: #ffe2a8;
  background: #583638;
  box-shadow: inset 0 -3px #37212d;
}
.extra-choices button strong { font-size: 15px; }
.extra-choices button small { color: #f5c99e; font-size: 11px; font-weight: 750; }
.extra-choices button:disabled { opacity: .68; }
@media (hover: hover) and (pointer: fine) {
  .mimic-chests button:hover:not(:disabled), .extra-choices button:hover:not(:disabled) {
    border-color: #ffde94;
    background-color: #754840;
  }
}
@media (max-width: 620px) {
  .mimic-chests button { font-size: 12px; }
  .solo-extra-stage { min-height: 225px; }
}
