/* Dice in the style of the Trophy dice: pale bone with engraved brown pips,
   plum-black with gold pips, amber gold for loot. Face 6 carries an emblem. */

.pp, .np { width: 64%; height: 64%; place-self: center; border-radius: 50%; }

/* light: pale celadon bone */
.die-light .face {
  background:
    radial-gradient(circle at 22% 78%, rgba(150, 160, 135, 0.28), transparent 38%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 250, 0.5), transparent 42%),
    radial-gradient(circle at 60% 70%, rgba(170, 178, 155, 0.22), transparent 30%),
    linear-gradient(150deg, #eef1e6 0%, #d8dfcf 48%, #bcc5b0 100%);
  box-shadow: inset 0 0 0 1px rgba(80, 90, 70, 0.35), inset 0 -5px 9px rgba(70, 80, 60, 0.28), inset 0 3px 5px rgba(255, 255, 255, 0.45);
}
.die-light .pp {
  background: radial-gradient(circle at 50% 38%, #2b1d12 0%, #4a3220 70%, #6a4a30 100%);
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.65);
}
.die-light .emblem { background: #4a3220; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6)); }

/* dark: plum-black stone with gold inlay */
.die-dark .face {
  background:
    radial-gradient(circle at 25% 75%, rgba(120, 95, 120, 0.25), transparent 40%),
    radial-gradient(circle at 78% 28%, rgba(160, 140, 160, 0.22), transparent 40%),
    linear-gradient(150deg, #5a4b58 0%, #3b313a 50%, #231d23 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 14, 20, 0.8), inset 0 -5px 9px rgba(0, 0, 0, 0.45), inset 0 3px 5px rgba(255, 235, 255, 0.12);
}
.die-dark .pp {
  background: radial-gradient(circle at 45% 35%, #f3d888 0%, #c9a24a 55%, #8a6a26 100%);
  box-shadow: inset 0 2px 2px rgba(60, 35, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.12);
}
.die-dark .emblem { background: linear-gradient(160deg, #f3d888, #b98e36 60%, #8a6a26); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7)); }

/* gold: translucent amber with a golden sun (loot rolls) */
.die-gold .face {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 244, 200, 0.85), transparent 30%),
    radial-gradient(circle at 50% 55%, rgba(255, 190, 70, 0.55), transparent 65%),
    linear-gradient(150deg, rgba(240, 190, 90, 0.97) 0%, rgba(196, 128, 32, 0.97) 55%, rgba(110, 62, 10, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 160, 0.55), inset 0 -6px 10px rgba(90, 45, 0, 0.45), inset 0 0 14px rgba(255, 220, 120, 0.4);
}
.die-gold .pp {
  background: radial-gradient(circle at 45% 35%, #fff1b8 0%, #e0b448 50%, #8a5a10 100%);
  box-shadow: inset 0 1px 2px rgba(80, 40, 0, 0.8), 0 0 4px rgba(255, 220, 120, 0.6);
}
.die-gold .emblem { background: linear-gradient(160deg, #fff3c0, #e8b84a 50%, #a46c14); filter: drop-shadow(0 0 3px rgba(255, 210, 110, 0.8)); }
.die-wrap:has(.die-gold)::after { background: rgba(120, 70, 0, 0.5); }

/* emblem face */
.face.emb { display: block; padding: 10%; }
.emblem {
  display: block; width: 100%; height: 100%;
  -webkit-mask: url('/assets/stag.svg') center / contain no-repeat; mask: url('/assets/stag.svg') center / contain no-repeat;
}
.die-gold .emblem { -webkit-mask-image: url('/assets/sun.svg'); mask-image: url('/assets/sun.svg'); }

/* highlights stay readable on the new colors */
.die-wrap.is-hi .face { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 18px rgba(232, 199, 111, 0.6); }
.die-wrap.is-hit .face { box-shadow: inset 0 0 0 2px var(--blood-hi), 0 0 22px rgba(207, 83, 57, 0.8); }
.die-wrap.is-hit.is-hi .face { box-shadow: inset 0 0 0 3px var(--blood-hi), 0 0 26px rgba(207, 83, 57, 0.9); }
.die-wrap.is-hit .die-dark .pp, .die-wrap.is-hit .die-dark .emblem { background: radial-gradient(circle at 45% 35%, #ffd0c0, #e0573b 60%, #8a2414); }

/* flat glyphs in history and pools, same palette */
.pip-light rect { fill: #dfe5d6; stroke: #98a38b; stroke-width: 3; }
.pip-light circle { fill: #4a3220; }
.pip-dark rect { fill: #3d333c; stroke: #5e4f5b; stroke-width: 3; }
.pip-dark circle { fill: #d9b45a; }
.pip-hi rect { stroke: var(--gold-hi); stroke-width: 7; }
.pip-hit rect { stroke: var(--blood-hi); stroke-width: 7; }
.pip-dark.pip-hit circle { fill: #ff8c70; }
