/* Shared structure for generated Other Games calculators.
   Per-game theme sheets supply --other-* tokens without copyrighted imagery. */
.other-game-calculator {
  /* Bridge the hub-owned theme tokens into the shared calculator vocabulary. */
  --bg: var(--other-bg, #070b12);
  --ink: var(--other-text, #e6edf6);
  --text: var(--other-text, #e6edf6);
  --muted: var(--other-muted, #b8c7d9);
  --accent: var(--other-accent, #7aa2ff);
  --accent-alt: var(--other-accent-strong, #a4f4e7);
  --accent-strong: var(--other-accent-strong, #a4f4e7);
  --panel: var(--other-surface, rgba(12, 24, 43, 0.94));
  --panel-alt: var(--other-surface-strong, #101b2e);
  --panel-soft: var(--other-control-background, #101b2e);
  --panel-highlight: var(--other-action-note-background, #17233b);
  --border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  --border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border, rgba(125, 226, 209, 0.4));
  --border-strong: max(2px, var(--other-border-width, 1px))
    var(--other-border-style, solid)
    var(--other-control-border, var(--other-accent, #7de2d1));
  --surface-border-muted: var(--other-border, rgba(125, 226, 209, 0.4));
  --focus-ring: var(--other-focus, #a4f4e7);
  --focus-outline-strong: var(--other-focus, #a4f4e7);
  --radius-sm: var(--other-radius-control, 10px);
  --radius: var(--other-radius-medium, 14px);
  --radius-lg: var(--other-radius-large, 18px);
  --ctrl-h: 48px;
  --shadow: var(--other-panel-shadow, 0 20px 48px rgba(4, 12, 32, 0.45));
  --shadow-soft: var(--other-panel-shadow, 0 10px 30px rgba(4, 12, 32, 0.35));
  --card-border: var(--border);
  --card-shadow: var(--other-panel-shadow, var(--shadow));
  --btn-bg: var(--other-button-background, var(--other-accent, #7de2d1));
  --btn-bg-hover: var(
    --other-accent-strong,
    var(--other-button-background, #a4f4e7)
  );
  --button-foreground: var(--other-button-foreground, #041017);
  --glow: 0 0 22px rgba(var(--other-accent-rgb, 125, 226, 209), 0.28);
  --table-stripe: rgba(var(--other-accent-rgb, 125, 226, 209), 0.055);
  --table-stripe-strong: rgba(var(--other-accent-rgb, 125, 226, 209), 0.11);
  --other-panel: var(--other-surface, rgba(12, 24, 43, 0.94));
  --other-panel-soft: var(--other-surface-strong, rgba(18, 34, 56, 0.9));
  --other-glow: rgba(var(--other-accent-rgb, 125, 226, 209), 0.2);
  min-width: 0;
  overflow-x: clip;
  color: var(--other-text, #e6edf6);
  background: var(--other-page-background, var(--other-bg, #070b12));
  font-family:
    var(--other-body-font, "Inter"),
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.other-game-calculator::before {
  background-image: none;
}

.other-game-calculator :is(h1, h2, h3) {
  font-family:
    var(--other-display-font, "Inter"), "Segoe UI", system-ui, sans-serif;
}

.other-game-calculator :is(a, .other-calc-breadcrumb a) {
  color: var(--other-link, var(--other-accent-strong, #a4f4e7));
  text-decoration-thickness: var(--other-link-decoration-thickness, 0.1em);
}

.other-game-calculator :is(a:hover, a:focus-visible) {
  color: var(--other-accent-strong, #a4f4e7);
}

.other-game-calculator :where(.card, details.sets) {
  border: var(--border);
  color: var(--other-text, #e6edf6);
  box-shadow: var(--other-panel-shadow, var(--shadow));
}

.other-game-calculator :where(.card) {
  border-radius: var(--other-radius-large, 18px);
}

.other-game-calculator .card::before {
  border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  border-radius: inherit;
}

.other-game-calculator .card::after {
  background: radial-gradient(
    circle at center,
    rgba(var(--other-accent-rgb, 125, 226, 209), 0.26),
    transparent 70%
  );
}

.other-game-calculator .card:hover,
.other-game-calculator .card:focus-within {
  box-shadow: var(
    --other-hover-shadow,
    var(--other-panel-shadow, var(--shadow))
  );
}

.other-game-calculator .card :is(p, li) {
  color: var(--other-muted, #b8c7d9);
}

.other-game-calculator .card :is(strong, dd, th, td) {
  color: var(--other-text, #e6edf6);
}

.other-game-calculator .card :is(h2, h3),
.other-game-calculator .section h3 {
  color: var(--other-text, #e6edf6);
  letter-spacing: calc(var(--other-heading-letter-spacing, -0.02em) * 0.55);
  text-transform: none;
}

.other-game-calculator :is(button, .btn) {
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-button-border, var(--other-accent, #7de2d1));
  border-radius: var(--other-button-radius, 10px);
  color: var(--other-button-foreground, #041017);
  background: var(--other-button-background, var(--other-accent, #7de2d1));
  box-shadow: none;
}

.other-game-calculator :is(button, .btn):hover {
  border-color: var(--other-focus, var(--other-accent-strong, #a4f4e7));
  color: var(--other-button-foreground, #041017);
  background: var(--other-button-background, var(--other-accent, #7de2d1));
  filter: brightness(1.08);
}

.other-game-calculator .site-nav-toggle {
  min-height: 44px;
}

.other-game-calculator :is(input[type="number"], select) {
  min-height: var(--ctrl-h);
  height: var(--ctrl-h);
  border: 1px solid var(--other-control-border, var(--other-accent, #7de2d1));
  border-radius: var(--other-radius-control, 10px);
  color: var(--other-text, #e6edf6);
  background: var(--other-control-background, var(--other-surface-strong));
  font-family: inherit;
}

.other-game-calculator :is(input[type="number"], select):focus {
  border-color: var(--other-focus, var(--other-accent-strong, #a4f4e7));
  box-shadow: 0 0 0 2px rgba(var(--other-accent-rgb, 125, 226, 209), 0.24);
}

.other-game-calculator select option {
  color: var(--other-text, #e6edf6);
  background: var(--other-control-background, var(--other-surface-strong));
}

.other-game-calculator :is(label, .include-list label) {
  color: var(--other-text, #e6edf6);
}

.other-calc-shell {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  padding-block: clamp(22px, 4vw, 52px);
}

.other-game-calculator
  :where(
    .other-calc-shell > .card,
    .other-calc-disclosures > .card,
    .other-calc-results > .card
  ) {
  border-color: var(--other-border);
  background: var(--other-panel);
}

.other-calc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted, #aebbd0);
  font-size: 0.86rem;
}

.other-calc-breadcrumb a {
  color: var(--other-accent-strong);
}

.other-game-calculator .other-calc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--other-radius-large, 18px);
  background: var(--other-hero-background, var(--other-panel));
}

.other-game-calculator .other-calc-hero::before {
  z-index: 0;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: var(--other-hero-motif, none);
  opacity: 0.58;
}

.other-game-calculator .other-calc-hero > * {
  position: relative;
  z-index: 1;
  max-width: var(--other-hero-content-width, 78ch);
}

.other-game-calculator .other-calc-hero::after {
  position: absolute;
  z-index: 0;
  inset: clamp(18px, 4vw, 42px) clamp(18px, 4vw, 44px) auto auto;
  width: clamp(120px, 22vw, 250px);
  height: auto;
  aspect-ratio: 1;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border, transparent);
  border-radius: var(--other-hero-decoration-radius, 50%);
  background: var(
    --other-hero-decoration,
    radial-gradient(circle, var(--other-glow), transparent 70%)
  );
  content: "";
  opacity: 0.66;
  pointer-events: none;
  transform: var(--other-hero-decoration-transform, none);
}

.other-game-calculator .other-calc-hero h1 {
  max-width: var(--other-hero-heading-width, 24ch);
  margin-block: 0.2rem 0.75rem;
  color: var(--other-hero-text, var(--other-text, #e6edf6));
  background: none;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: var(--other-heading-weight, 800);
  line-height: 0.98;
  letter-spacing: var(--other-heading-letter-spacing, -0.02em);
  text-align: left;
  text-shadow: none;
  text-transform: none;
  -webkit-text-fill-color: currentColor;
  overflow-wrap: anywhere;
}

.other-game-calculator .other-calc-hero > p {
  color: var(--other-hero-muted, var(--other-muted, #b8c7d9));
}

.other-game-calculator .other-calc-hero > p strong {
  color: var(--other-hero-text, var(--other-text, #e6edf6));
}

.other-calc-kicker,
.other-calc-panel-label {
  margin: 0;
  color: var(--other-accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.other-game-calculator .other-calc-hero > .other-calc-kicker {
  color: var(--other-hero-kicker, var(--other-accent-strong));
}

.other-calc-hero-facts,
.other-calc-definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.other-calc-hero-facts > div,
.other-calc-definition-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-chip-border, var(--other-border));
  border-radius: var(--other-chip-radius, 12px);
  color: var(--other-chip-foreground, var(--other-text));
  background: var(--other-chip-background, var(--other-panel-soft));
}

.other-calc-hero-facts dt,
.other-calc-definition-grid dt {
  color: var(--muted, #aebbd0);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.other-calc-hero-facts dd,
.other-calc-definition-grid dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--ink, #f4f8ff);
}

.other-calc-hero-facts code {
  font-size: 0.78rem;
}

.other-calc-disclosures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.other-game-calculator .other-calc-disclosure {
  min-width: 0;
  border-radius: var(--other-radius-medium, 14px);
  background: var(--other-surface, var(--other-panel));
}

.other-calc-disclosure h2,
.other-calc-structure h2,
.other-calc-settings h2,
.other-calc-results h2 {
  margin-block: 0.35rem 0.85rem;
}

.other-calc-disclosure h3 {
  margin-block: 1.25rem 0.5rem;
  font-size: 0.94rem;
}

.other-calc-disclosure ul {
  padding-left: 1.2rem;
}

.other-calc-disclosure li + li {
  margin-top: 0.45rem;
}

.other-calc-source-list a {
  overflow-wrap: anywhere;
}

.other-calc-disclosure--evidence {
  border-top: 3px solid var(--other-accent);
}

.other-calc-disclosure--pricing {
  border-top: 3px solid color-mix(in srgb, var(--other-accent) 68%, #f8d36d);
}

.other-calc-disclosure--chase {
  border-top: 3px solid color-mix(in srgb, var(--other-accent) 58%, #e789a8);
}

.other-calc-definition-grid__wide {
  grid-column: 1 / -1;
}

.other-calc-price-coverage {
  margin-top: 16px;
}

.other-calc-structure,
.other-calc-settings,
.other-calc-summary,
.other-calc-sealed,
.other-calc-simulation,
.other-calc-contributions {
  min-width: 0;
}

.other-game-calculator .other-calc-structure,
.other-game-calculator .other-calc-pools {
  border-radius: var(--other-product-radius, var(--other-radius-medium, 14px));
  background: var(--other-product-background, var(--other-panel));
}

.other-game-calculator .other-calc-settings {
  border-radius: var(--other-method-radius, var(--other-radius-medium, 14px));
  background: var(--other-method-background, var(--other-panel));
}

.other-game-calculator .other-calc-summary,
.other-game-calculator .other-calc-sealed,
.other-game-calculator .other-calc-simulation,
.other-game-calculator .other-calc-contributions {
  border-radius: var(--other-product-radius, var(--other-radius-medium, 14px));
  background: var(--other-product-background, var(--other-panel));
}

.other-game-calculator .section {
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border, rgba(125, 226, 209, 0.4));
  border-radius: var(--other-method-radius, var(--other-radius-medium, 14px));
  color: var(--other-text, #e6edf6);
  background: var(--other-surface-strong, var(--other-panel-soft));
  box-shadow: none;
}

.other-game-calculator .section::before {
  border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  border-radius: inherit;
}

.other-calc-pools summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  color: var(--other-text, #e6edf6);
  background: var(--other-action-note-background, var(--other-surface-strong));
  cursor: pointer;
}

.other-calc-pools[open] summary {
  margin-bottom: 18px;
  background: var(--other-chip-background, var(--other-surface-strong));
}

.other-calc-results {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.other-calc-summary .summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.other-calc-summary .box {
  min-width: 0;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border, rgba(125, 226, 209, 0.4));
  border-radius: var(--other-radius-medium, 14px);
  background: var(--other-surface-strong, var(--other-panel-soft));
  box-shadow: none;
}

.other-calc-summary .box::before {
  border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  border-radius: inherit;
}

.other-calc-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: var(--other-accent) transparent;
}

.other-calc-table-scroll table {
  width: 100%;
}

.other-game-calculator
  :is(
    .mini th,
    .mini td,
    #evTable th,
    #evTable td,
    #sealedPriceTable th,
    #sealedPriceTable td
  ) {
  border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  color: var(--other-text, #e6edf6);
}

.other-game-calculator :is(.mini th, .mini td) {
  background: var(--other-action-note-background, var(--other-surface-strong));
}

.other-game-calculator :is(table thead th, table tfoot td) {
  color: var(--other-text, #e6edf6);
  background: var(--other-surface-strong, var(--other-panel-soft));
}

.other-game-calculator table tbody tr:nth-child(odd) {
  background: var(--table-stripe);
}

.other-game-calculator table tbody tr:hover {
  background: var(--table-stripe-strong);
}

.other-calc-results-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.other-calc-results-heading .table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.other-calc-results-heading .table-tools label {
  margin-left: 4px;
}

.other-calc-results-heading .table-tools select {
  width: auto;
  min-width: 160px;
}

.other-calc-sanity {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.other-calc-simulation .sim-chart-wrap {
  position: relative;
  min-height: 240px;
  border-color: var(--other-border, rgba(125, 226, 209, 0.4));
  background: var(--other-control-background, var(--other-surface-strong));
}

.other-calc-simulation canvas {
  display: block;
  width: 100%;
  min-height: 220px;
}

.other-calc-simulation .sim-chart-tooltip {
  position: absolute;
  z-index: 2;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--other-border);
  border-radius: 8px;
  background: var(--other-panel-solid, #071423);
  color: var(--other-text, #fff);
  font-size: 0.78rem;
  pointer-events: none;
  opacity: 0;
}

.other-game-calculator :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--other-focus, var(--other-accent-strong));
  outline-offset: 3px;
}

.other-game-calculator [hidden] {
  display: none !important;
}

@supports not (color: color-mix(in srgb, white, black)) {
  .other-game-calculator {
    --other-border: rgba(125, 226, 209, 0.35);
    --other-glow: rgba(125, 226, 209, 0.2);
  }

  .other-calc-disclosure--pricing {
    border-top-color: #b9d79a;
  }

  .other-calc-disclosure--chase {
    border-top-color: #b7aec9;
  }
}

@media (max-width: 980px) {
  .other-calc-disclosures {
    grid-template-columns: 1fr 1fr;
  }

  .other-calc-disclosure--chase {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .other-calc-disclosures,
  .other-calc-summary .summary {
    grid-template-columns: 1fr;
  }

  .other-calc-disclosure--chase {
    grid-column: auto;
  }

  .other-calc-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .other-calc-results-heading .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .other-calc-results-heading .table-tools label {
    margin-left: 0;
  }

  .other-calc-results-heading .table-tools select {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .other-calc-shell {
    padding-inline: 10px;
  }

  .other-calc-hero-facts,
  .other-calc-definition-grid {
    grid-template-columns: 1fr;
  }

  .other-calc-pools summary {
    flex-direction: column;
  }

  .other-game-calculator .other-calc-hero::after {
    top: 18px;
    right: -36px;
    width: 132px;
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .other-game-calculator *,
  .other-game-calculator *::before,
  .other-game-calculator *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .other-game-calculator :is(.card, details.sets, .section) {
    border-width: max(2px, var(--other-border-width, 1px));
  }

  .other-game-calculator :is(input, select, button, .btn) {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .other-game-calculator {
    color: CanvasText;
    background: Canvas;
  }

  .other-game-calculator
    :is(.card, details.sets, .section, .summary .box, input, select) {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .other-game-calculator :is(.card, .card::before, .card::after) {
    clip-path: none;
  }

  .other-game-calculator :is(.card::before, .card::after) {
    display: none;
  }

  .other-game-calculator :is(button, .btn) {
    border: 1px solid ButtonText;
    color: ButtonText;
    background: ButtonFace;
    filter: none;
  }
}

.other-calc-table-scroll caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
