/* Dice & Dominion — Pallid Menagerie pets UI + reward reveal (client/js/dnd_pets.js). Dark pixel-panel look. */
.dp-toggle { margin-top: 0; }
.dp-cv { image-rendering: pixelated; display: block; cursor: pointer; }
.dp-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(8, 6, 10, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dp-box { background: #1b1720; border: 2px solid #3e3446; box-shadow: 0 0 0 2px #0c0a10, 0 18px 50px rgba(0,0,0,.6); border-radius: 6px; max-width: 980px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px; color: #ece4d4; }
.dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dp-head h2 { margin: 0 0 4px; font-family: Cinzel, serif; font-size: 22px; color: #e8d3a0; }
.dp-head p { margin: 0 0 12px; max-width: 760px; }
.dp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dp-foot .dp-x { margin-left: auto; }
.dp-nm { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.dp-nm input { width: 180px; }
.dp-rar { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #120e14; background: var(--rc); letter-spacing: .02em; }
.dp-role, .dp-kind { font-size: 12px; color: #c8bca8; }
.dp-sub { font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0; }
.dp-name { font-weight: 700; font-size: 16px; color: #f4ead6; }
.dp-name.sm { font-size: 13px; }
.dp-desc { font-size: 12.5px; color: #c8bcaa; margin: 6px 0; min-height: 3.6em; }
.dp-stage { background: radial-gradient(ellipse at 50% 85%, #3a3046 0, #221c28 60%, transparent 61%), #16121a; border: 1px solid #2e2636; border-radius: 4px; display: flex; justify-content: center; align-items: flex-end; padding: 4px; }
.dp-starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dp-starter { background: #231d29; border: 2px solid #3a3042; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.dp-starter:hover { border-color: #8a6ac8; }
.dp-starter .dp-adopt { margin-top: auto; }
.dp-moves { list-style: none; padding: 0; margin: 6px 0; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.dp-moves li.later { opacity: .45; }
.dp-moves li.got b { color: #f0d890; }
.dp-lv { display: inline-block; min-width: 28px; font-family: monospace; color: #9a8ab0; }
.dp-active { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.dp-stats { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; color: #e0d4bc; }
.dp-active .dp-moves { max-height: 230px; overflow: auto; padding-right: 4px; }
.dp-sec { margin: 12px 0 6px; font-weight: 700; color: #d8c49a; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.dp-mini { display: flex; gap: 8px; align-items: center; background: #231d29; border: 1px solid #352c3e; border-radius: 4px; padding: 4px 8px 4px 2px; }
.dp-mini .dp-cv { width: 64px; height: auto; }
.dp-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.btn.xs { padding: 2px 7px; font-size: 11px; min-height: 0; }
.btn.danger { color: #ff9a8a; }
.dp-new { color: #8aff9a; }
.dp-empty { padding: 10px; background: #231d29; border-radius: 4px; display: flex; align-items: center; gap: 10px; }
.dp-hero { border-top: 1px solid #332a3a; padding-top: 10px; margin-top: 10px; }
.dp-hero:first-of-type { border-top: 0; }
.dp-hname { font-family: Cinzel, serif; font-size: 16px; color: #e8d3a0; margin-bottom: 6px; }
.dp-fab { position: fixed; right: 172px; top: 9px; z-index: 800; font: 700 14px Inter, sans-serif; color: #f4ead6; background: #2a2032; border: 2px solid #8a6ac8; box-shadow: 0 0 0 2px #0c0a10, 0 6px 18px rgba(0,0,0,.5); border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.dp-fab:hover { background: #3a2c46; }
.dp-badge { display: inline-block; background: #e0b354; color: #1a1208; border-radius: 9px; padding: 0 6px; margin-left: 4px; font-size: 12px; }
/* reward reveal */
.dp-rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.dp-reward { background: #231d29; border: 2px solid #3a3042; border-radius: 6px; padding: 10px; animation: dp-in .35s ease-out both; animation-delay: var(--d); }
.dp-rewards.small .dp-reward { padding: 6px 8px; font-size: 12px; }
.dp-rname { font-family: Cinzel, serif; color: #e8d3a0; font-size: 16px; }
.dp-gold { font-size: 18px; color: #ffd66b; margin: 4px 0; }
.dp-hidden { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s ease; }
.dp-reward.open .dp-hidden { max-height: 600px; opacity: 1; }
.dp-bonus { display: flex; gap: 8px; align-items: center; border: 2px solid var(--rc, #555); background: linear-gradient(90deg, color-mix(in srgb, var(--rc, #555) 22%, #1a1520), #1a1520); border-radius: 5px; padding: 6px 8px; margin-top: 6px; box-shadow: 0 0 14px color-mix(in srgb, var(--rc, #555) 40%, transparent); }
.dp-bonus.none { border-color: #3a3042; box-shadow: none; background: #1a1520; color: #9a8ea8; }
.dp-bonus .dp-cv { width: 96px; height: auto; }
.dp-box-ico { font-size: 26px; width: 36px; text-align: center; }
.dp-bname { font-weight: 700; color: #fff4dc; }
.dp-guar { font-size: 11px; color: #ffd66b; border: 1px solid #806a30; border-radius: 3px; padding: 0 4px; }
.dp-ups { margin: 0; padding-left: 4px; list-style: none; font-size: 13px; }
@keyframes dp-in { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .dp-active { grid-template-columns: 1fr; } .dp-box { padding: 12px; } }
.dp-picker .dp-head { display: block; }
.recap .dp-spoils.in-recap { margin: 10px 0 14px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); }
.recap .dp-spoils.in-recap .dp-sec:first-child { margin-top: 8px; }
/* the bonus roll's odds per tier (Victory screen) */
.dp-odds { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.dp-odd { font: 600 11px Inter, sans-serif; color: #cfc3aa; padding: 2px 6px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--rc) 45%, #2a2219); background: color-mix(in srgb, var(--rc) 10%, #1b1611); }
.dp-odd b { color: var(--rc); font-weight: 700; }
.dp-odd.hit { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 28%, #1b1611); color: #fff4dc; box-shadow: 0 0 0 1px var(--rc); }
.dp-odd.none b { color: #bdb3a0; }
/* the loot scene before each bonus roll reveal (client/js/loot_anim.js) */
.dp-scene { display: flex; justify-content: center; margin: 4px 0 2px; }
.dp-scene canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; max-width: 100%; height: auto; border: 2px solid #120e14; box-shadow: 0 0 0 1px #3a3042; border-radius: 3px; background: #17121c; cursor: pointer; }
.dp-reward.open .dp-scene canvas { cursor: default; }
/* the rolled tier's chip lights up only once the chest is open */
.dp-reward.has-scene:not(.open) .dp-odd.hit { border-color: color-mix(in srgb, var(--rc) 45%, #2a2219); background: color-mix(in srgb, var(--rc) 10%, #1b1611); color: #cfc3aa; box-shadow: none; }
.dp-odd { transition: background .3s, box-shadow .3s, border-color .3s; }
.dp-starter.on { border-color: #e8c070; box-shadow: 0 0 0 1px #e8c070, 0 0 16px #e8c07044; }
.dp-step .dp-starters { margin: 10px 0; }
