/* Dice page illustrated background only. v=20261127-dicebg
   Does not affect Home, Events, Trade, Guide, or other pages. */
body[data-page="dice"] {
  background-color: #0B0618;
  background-image: none;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
}

body[data-page="dice"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #0B0618;
  background-image:
    linear-gradient(
      180deg,
      rgba(11, 6, 24, 0.72) 0%,
      rgba(11, 6, 24, 0.58) 26%,
      rgba(11, 6, 24, 0.56) 48%,
      rgba(11, 6, 24, 0.70) 74%,
      rgba(8, 4, 18, 0.90) 100%
    ),
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(11, 6, 24, 0.28), transparent 70%),
    url("/img/dice-bg-wide.jpg?v=20261127-dicebg");
  background-image:
    linear-gradient(
      180deg,
      rgba(11, 6, 24, 0.72) 0%,
      rgba(11, 6, 24, 0.58) 26%,
      rgba(11, 6, 24, 0.56) 48%,
      rgba(11, 6, 24, 0.70) 74%,
      rgba(8, 4, 18, 0.90) 100%
    ),
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(11, 6, 24, 0.28), transparent 70%),
    image-set(
      url("/img/dice-bg-wide.webp?v=20261127-dicebg") type("image/webp"),
      url("/img/dice-bg-wide.jpg?v=20261127-dicebg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@media (max-width: 700px) {
  body[data-page="dice"]::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(11, 6, 24, 0.74) 0%,
        rgba(11, 6, 24, 0.60) 24%,
        rgba(11, 6, 24, 0.58) 46%,
        rgba(11, 6, 24, 0.72) 72%,
        rgba(8, 4, 18, 0.92) 100%
      ),
      radial-gradient(ellipse 90% 50% at 50% 30%, rgba(11, 6, 24, 0.30), transparent 72%),
      url("/img/dice-bg-mobile.jpg?v=20261127-dicebg");
    background-image:
      linear-gradient(
        180deg,
        rgba(11, 6, 24, 0.74) 0%,
        rgba(11, 6, 24, 0.60) 24%,
        rgba(11, 6, 24, 0.58) 46%,
        rgba(11, 6, 24, 0.72) 72%,
        rgba(8, 4, 18, 0.92) 100%
      ),
      radial-gradient(ellipse 90% 50% at 50% 30%, rgba(11, 6, 24, 0.30), transparent 72%),
      image-set(
        url("/img/dice-bg-mobile.webp?v=20261127-dicebg") type("image/webp"),
        url("/img/dice-bg-mobile.jpg?v=20261127-dicebg") type("image/jpeg")
      );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

/* Keep cards and loose type readable over the illustration. */
body[data-page="dice"] .dice-item,
body[data-page="dice"] .reward-item,
body[data-page="dice"] .how-compact,
body[data-page="dice"] .recent-links {
  background: rgba(16, 9, 36, 0.90);
}

body[data-page="dice"] .tab-head .lede-mini,
body[data-page="dice"] .subhead {
  text-shadow: 0 1px 2px rgba(8, 4, 18, 0.95), 0 0 16px rgba(8, 4, 18, 0.7);
}

/* Loose status lines sit over the art; give them a soft panel so they stay readable. */
body[data-page="dice"] .last-checked,
body[data-page="dice"] #dice-links-block > .fine {
  background: rgba(11, 6, 24, 0.82);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  color: #E4D6FF;
  text-shadow: none;
}

body[data-page="dice"] .site-footer {
  background: linear-gradient(180deg, rgba(8, 4, 18, 0.86), #080412 26%);
}

@media (prefers-reduced-transparency: reduce) {
  body[data-page="dice"]::before {
    background-image:
      linear-gradient(180deg, rgba(11, 6, 24, 0.88), rgba(8, 4, 18, 0.94)),
      url("/img/dice-bg-wide.jpg?v=20261127-dicebg");
  }
  body[data-page="dice"] .dice-item,
  body[data-page="dice"] .reward-item,
  body[data-page="dice"] .how-compact,
  body[data-page="dice"] .recent-links {
    background: #17102C;
  }
}
