.db-body {
  display: flex;
  gap: 18px;
  flex: 1;
  min-height: 0;
}
.db-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #120a06;
  border: 1px solid rgba(255, 190, 120, 0.18);
}
.db-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.db-side {
  width: 300px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.db-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 18, 28, 0.78);
  color: rgba(255, 255, 255, 0.75);
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}
.db-chip.ready {
  border-color: rgba(255, 197, 61, 0.6);
  color: #ffd66e;
}
.hub-btn.db-roll {
  width: 100%;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  border: 0;
  background: linear-gradient(180deg, #ffd66e, #e8892a);
  color: #2a1404;
  box-shadow: 0 0 24px rgba(255, 170, 70, 0.4);
  animation: dbPulse 1.8s ease-in-out infinite;
}
.hub-btn.db-roll:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  animation: none;
  cursor: default;
  transform: none;
}
@keyframes dbPulse {
  50% {
    box-shadow: 0 0 36px rgba(255, 170, 70, 0.65);
  }
}
.db-status {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font: 700 13px/1.3 Arial, sans-serif;
}
.db-result,
.db-tile {
  --tier: #b8a98e;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20, 18, 28, 0.82);
  border: 1px solid var(--tier);
  color: #f0e6da;
  font: 13px/1.4 Arial, sans-serif;
}
.db-result:empty {
  display: none;
}
.db-result small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 10.5px;
}
.db-result b {
  display: block;
  margin: 4px 0 6px;
  color: var(--tier);
  font: 400 22px/1.1 Georgia, "Palatino Linotype", serif;
}
.db-result ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-weight: 800;
  color: #ffe9c4;
}
.db-jump {
  margin: 4px 0;
  color: #c99bff;
  font-size: 12px;
}
.db-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.db-tile-head b {
  font: 400 18px/1.1 Georgia, "Palatino Linotype", serif;
}
.db-tier {
  color: var(--tier);
  font: 900 10.5px/1 Arial, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.db-tile p {
  margin: 8px 0 0;
}
.db-gift {
  color: #ffe9c4;
  font-weight: 800;
}
.db-tile small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
}
.db-h {
  color: rgba(255, 255, 255, 0.5);
  font: 900 11px/1 Arial, sans-serif;
  letter-spacing: 1.6px;
}
.db-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: rgba(255, 255, 255, 0.75);
  font: 700 12px/1 Arial, sans-serif;
}
.db-leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.db-leg i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.db-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font: 12px/1.4 Arial, sans-serif;
}
@media (max-width: 820px) {
  .db-body {
    flex-direction: column;
    overflow-y: auto;
  }
  .db-stage {
    flex: none;
    aspect-ratio: 1;
    max-height: 70vh;
  }
  .db-side {
    width: 100%;
    overflow: visible;
  }
}
