.game-theme--sorcery-contested-realm {
  --sorcery-hero-art: url("/images/other-games/sorcery-gothic-realm-hero.webp");
  --sorcery-directory-card-background:
    linear-gradient(
      90deg,
      rgba(12, 8, 13, 0.99) 0%,
      rgba(12, 8, 13, 0.94) 43%,
      rgba(12, 8, 13, 0.68) 65%,
      rgba(12, 8, 13, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 8, 13, 0.08),
      transparent 52%,
      rgba(12, 8, 13, 0.72)
    ),
    var(--sorcery-hero-art) 68% center / cover no-repeat;
  --other-bg: #0c080d;
  --other-panel-solid: #160f18;
  --other-surface: rgba(22, 15, 24, 0.97);
  --other-surface-strong: #211722;
  --other-text: #f4ead7;
  --other-muted: #c9bdad;
  --other-accent: #c66a3d;
  --other-accent-strong: #f1a36e;
  --other-accent-rgb: 198, 106, 61;
  --other-link: #f3b48a;
  --other-focus: #ffd38f;
  --other-border-width: 1px;
  --other-border-style: solid;
  --other-border: #765b61;
  --other-control-border: #a27e72;
  --other-display-font:
    Georgia, "Palatino Linotype", "Book Antiqua", ui-serif, serif;
  --other-body-font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --other-heading-letter-spacing: -0.018em;
  --other-heading-weight: 700;
  --other-radius-large: 34px 34px 5px 5px;
  --other-radius-medium: 22px 22px 4px 4px;
  --other-radius-control: 3px;
  --other-chip-radius: 2px;
  --other-button-radius: 2px;
  --other-panel-shadow:
    0 28px 68px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(244, 234, 215, 0.035);
  --other-method-background:
    linear-gradient(145deg, rgba(198, 106, 61, 0.08), transparent 48%), #211722;
  --other-product-background:
    linear-gradient(90deg, rgba(198, 106, 61, 0.11), transparent 36%), #1c141e;
  --other-control-background: #241923;
  --other-chip-background: #2b1c29;
  --other-chip-foreground: #f4ead7;
  --other-chip-border: #bd805f;
  --other-button-background: #c66a3d;
  --other-button-foreground: #160d0a;
  --other-button-border: #e19060;
  --other-action-note-background: #241923;
  --other-page-background:
    repeating-linear-gradient(
      90deg,
      rgba(244, 234, 215, 0.018) 0 1px,
      transparent 1px 52px
    ),
    radial-gradient(
      ellipse at 50% -8%,
      rgba(108, 46, 66, 0.42),
      transparent 34rem
    ),
    linear-gradient(155deg, #120b13, #080609 70%);
  --other-hero-background:
    linear-gradient(
      90deg,
      rgba(12, 8, 13, 0.99) 0%,
      rgba(12, 8, 13, 0.96) 42%,
      rgba(12, 8, 13, 0.72) 62%,
      rgba(12, 8, 13, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 8, 13, 0.12),
      transparent 56%,
      rgba(12, 8, 13, 0.7)
    ),
    var(--sorcery-hero-art) center / cover no-repeat;
  --other-directory-card-background: var(--sorcery-directory-card-background);
  --other-directory-card-motif: linear-gradient(
    105deg,
    rgba(198, 106, 61, 0.08),
    transparent 42%
  );
  --other-hero-motif: repeating-conic-gradient(
    from 45deg,
    rgba(241, 163, 110, 0.16) 0 8deg,
    transparent 8deg 28deg
  );
  --other-hero-decoration:
    linear-gradient(
      90deg,
      transparent 47%,
      rgba(244, 234, 215, 0.48) 48% 52%,
      transparent 53%
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      rgba(198, 106, 61, 0.24) 12px 14px
    );
  --other-hero-decoration-radius: 52% 52% 3px 3px;
  --other-hero-decoration-transform: none;
  --other-product-radius: 15px 15px 2px 2px;
  --other-method-radius: 18px 18px 3px 3px;
  --other-hover-lift: -2px;
  --other-hover-shadow: 0 0 0 1px #c66a3d, 0 18px 42px rgba(0, 0, 0, 0.44);
  --other-alt-surface: #160f18;
  --other-alt-text: #f4ead7;
  --other-alt-muted: #c9bdad;
  --other-alt-link: #f3b48a;
  --other-alt-focus: #ffd38f;
  --other-hero-text: #f4ead7;
  --other-hero-muted: #d7cbbb;
  --other-hero-kicker: #f1a36e;
  --other-hero-content-width: min(72%, 46rem);
  --other-hero-heading-width: min(72%, 15ch);
  color-scheme: dark;
}

.game-theme--sorcery-contested-realm .other-card {
  border-top-color: #a66e59;
}

.game-theme--sorcery-contested-realm .sorcery-hero {
  min-height: clamp(25rem, 46vw, 34rem);
  align-content: center;
  border-width: 2px;
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.64),
    inset 0 0 70px rgba(0, 0, 0, 0.28);
}

.game-theme--sorcery-contested-realm .sorcery-hero > * {
  position: relative;
  z-index: 2;
  max-width: var(--other-hero-content-width);
}

.game-theme--sorcery-contested-realm .sorcery-hero h1 {
  max-width: var(--other-hero-heading-width);
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  line-height: 0.95;
  text-shadow: 0 3px 24px #080609;
}

.game-theme--sorcery-contested-realm .sorcery-hero::before {
  display: none;
}

.game-theme--sorcery-contested-realm .sorcery-hero::after {
  display: none;
}

.game-theme--sorcery-contested-realm .other-eyebrow {
  font-family: var(--other-display-font);
  letter-spacing: 0.12em;
}

.game-theme--sorcery-contested-realm .other-fact-list li {
  border-top: 2px solid #c66a3d;
  box-shadow: inset 0 8px 18px rgba(198, 106, 61, 0.07);
  text-transform: uppercase;
}

.game-theme--sorcery-contested-realm .sorcery-directory,
.game-theme--sorcery-contested-realm .sorcery-method {
  background:
    linear-gradient(90deg, transparent, rgba(198, 106, 61, 0.07), transparent)
      top / 100% 1px no-repeat,
    #160f18;
}

.game-theme--sorcery-contested-realm .other-section-heading::after {
  width: min(15rem, 58%);
  height: 5px;
  margin-top: 7px;
  border-block: 1px solid #765b61;
  background: linear-gradient(90deg, #c66a3d, transparent);
  content: "";
}

.game-theme--sorcery-contested-realm .other-method-card {
  position: relative;
  padding-top: 28px;
  border-color: #765b61;
}

.game-theme--sorcery-contested-realm .other-method-card::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 42px;
  height: 18px;
  border: 1px solid #a66e59;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  content: "";
  transform: translateX(-50%);
}

.game-theme--sorcery-contested-realm .other-product-row {
  border-left: 4px double #c66a3d;
}

.game-theme--sorcery-contested-realm .sorcery-unofficial-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 3px double #765b61;
  color: var(--other-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-hero {
  border-width: 2px;
  border-radius: 32px 32px 4px 4px;
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.58),
    inset 0 0 60px rgba(0, 0, 0, 0.24);
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-hero::before {
  display: none;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-hero::after {
  display: none;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-rate-provenance {
  border: 1px solid #a66e59;
  border-radius: 18px 18px 3px 3px;
  background: #211722;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border-top: 3px double #c66a3d;
  background:
    radial-gradient(circle at 92% 0, rgba(198, 106, 61, 0.13), transparent 34%),
    linear-gradient(145deg, #211722, #160f18 72%);
  --other-chart-axis: rgba(244, 234, 215, 0.34);
  --other-chart-grid: rgba(244, 234, 215, 0.11);
  --other-chart-background-start: #17101a;
  --other-chart-background-end: #241824;
  --other-chart-bar-top: rgba(241, 163, 110, 0.96);
  --other-chart-bar-bottom: rgba(166, 78, 48, 0.84);
  --other-chart-band-fill: rgba(255, 211, 143, 0.1);
  --other-chart-boundary: rgba(255, 211, 143, 0.66);
  --other-chart-boundary-dash: 4 4;
  --other-chart-mid: #ffd38f;
  --other-chart-label: #e7d9c5;
  --other-chart-font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused::after {
  position: absolute;
  top: 0;
  right: clamp(22px, 5vw, 70px);
  width: 86px;
  height: 13px;
  border-inline: 1px solid rgba(241, 163, 110, 0.45);
  background: linear-gradient(90deg, transparent, #c66a3d, transparent);
  content: "";
  opacity: 0.75;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  h2 {
  margin-bottom: 0.45rem;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  h2::before {
  display: block;
  margin-bottom: 0.45rem;
  color: #f1a36e;
  font-family: var(--other-body-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  content: "Outcome distribution";
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  > p:first-of-type {
  max-width: 64rem;
  margin-bottom: 1rem;
  color: var(--other-muted);
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-legend
  span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(166, 126, 114, 0.58);
  border-radius: 999px;
  background: rgba(12, 8, 13, 0.5);
  color: #e7d9c5;
  font-size: 0.74rem;
  font-weight: 700;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-legend
  i {
  display: inline-block;
  inline-size: 17px;
  block-size: 8px;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-legend__bars {
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #f1a36e, #a64e30);
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-legend__band {
  border: 1px dashed rgba(255, 211, 143, 0.76);
  background: rgba(255, 211, 143, 0.12);
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-legend__mid {
  block-size: 10px;
  border-left: 2px solid #ffd38f;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  .sim-chart-wrap {
  min-height: 310px;
  padding: 8px;
  border: 1px solid #765b61;
  border-radius: 12px 12px 3px 3px;
  background: #120c15;
  box-shadow:
    inset 0 0 0 1px rgba(244, 234, 215, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  canvas {
  min-height: 292px;
  border-radius: 8px 8px 2px 2px;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  #simChartBand {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #c66a3d;
  background: rgba(198, 106, 61, 0.08);
  color: #f4ead7;
  font-weight: 700;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .sorcery-sim-scale-note {
  margin: 10px 0 0;
  color: var(--other-muted);
  line-height: 1.55;
}

.other-game-calculator[data-other-game="sorcery-contested-realm"]
  .other-calc-simulation--focused
  .sim-chart-tooltip[data-visible="true"] {
  opacity: 1;
  transform: translateY(-100%);
}

@media (max-width: 760px) {
  .game-theme--sorcery-contested-realm {
    --other-hero-content-width: 100%;
    --other-hero-heading-width: 100%;
    --other-hero-background:
      linear-gradient(
        90deg,
        rgba(12, 8, 13, 0.97),
        rgba(12, 8, 13, 0.9) 58%,
        rgba(12, 8, 13, 0.64)
      ),
      linear-gradient(180deg, rgba(12, 8, 13, 0.12), rgba(12, 8, 13, 0.76)),
      var(--sorcery-hero-art) right center / auto 100% no-repeat;
  }

  .game-theme--sorcery-contested-realm .sorcery-hero {
    min-height: 0;
  }

  .game-theme--sorcery-contested-realm .sorcery-hero > * {
    max-width: 100%;
  }

  .other-game-calculator[data-other-game="sorcery-contested-realm"]
    .other-calc-simulation--focused {
    padding: 20px 16px;
  }

  .other-game-calculator[data-other-game="sorcery-contested-realm"]
    .other-calc-simulation--focused
    .sim-chart-wrap {
    min-height: 288px;
    padding: 4px;
  }

  .other-game-calculator[data-other-game="sorcery-contested-realm"]
    .other-calc-simulation--focused
    canvas {
    min-height: 280px;
  }
}

@media (max-width: 390px) {
  .game-theme--sorcery-contested-realm .sorcery-hero h1 {
    font-size: clamp(2rem, 12vw, 2.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-theme--sorcery-contested-realm *,
  .game-theme--sorcery-contested-realm *::before,
  .game-theme--sorcery-contested-realm *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

@media (prefers-contrast: more) {
  .game-theme--sorcery-contested-realm {
    --other-border: #f4ead7;
    --other-control-border: #f1a36e;
  }

  .game-theme--sorcery-contested-realm
    :where(.other-card, .other-method-card, .other-product-row),
  .other-game-calculator[data-other-game="sorcery-contested-realm"]
    :where(.card, .other-calc-rate-provenance) {
    border-color: #f4ead7;
    background: #160f18;
    box-shadow: none;
  }
}

@media (forced-colors: active) {
  .game-theme--sorcery-contested-realm
    :where(.other-card, .other-method-card, .other-product-row),
  .other-game-calculator[data-other-game="sorcery-contested-realm"]
    :where(.card, .other-calc-rate-provenance) {
    color: CanvasText;
    border-color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .game-theme--sorcery-contested-realm .sorcery-hero::before,
  .game-theme--sorcery-contested-realm .sorcery-hero::after,
  .game-theme--sorcery-contested-realm .other-method-card::before,
  .game-theme--sorcery-contested-realm .other-section-heading::after,
  .other-game-calculator[data-other-game="sorcery-contested-realm"]
    .other-calc-hero::before {
    display: none;
  }
}
