/* Arcana imagery: opt in per surface. No global/body overrides. */
.arcana-material {
  position: relative;
  isolation: isolate;
}

.arcana-material::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.arcana-material--paper {
  color: #14112b;
  background-color: #f6f1e7;
}

.arcana-material--paper::before {
  background-image: url("arcana-paper-grain.webp");
  opacity: var(--arcana-material-strength, 0.46);
}

.arcana-material--night {
  color: #f6f1e7;
  background-color: #1c1836;
}

.arcana-material--night::before {
  background-image: url("arcana-night-grain.webp");
  opacity: var(--arcana-material-strength, 0.5);
}

/* Data SVGs, form fields and reading copy remain separate, editable layers. */
@media (forced-colors: active) {
  .arcana-material::before { display: none; }
}

/* Keep ordinary paper printing light; screen/PDF proof can opt in separately. */
@media print {
  .arcana-material--paper::before { display: none; }
}
