/* 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 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);
}

/* The multiline evidence disclosure must outgrow ordinary fixed-height buttons.
   Its heading inherits the control's high-contrast foreground, not card text. */
body.tev-priority-calculator.other-game-calculator .tev-intro-notes-toggle {
  min-block-size: 72px;
  block-size: auto;
  white-space: normal;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

body.tev-priority-calculator.other-game-calculator .tev-intro-notes-toggle strong {
  color: inherit;
}

/* Keep sitewide sortable headings from inheriting calculator action-button chrome. */
.other-game-calculator table thead .tev-sort-button {
  --button-foreground: inherit;
  height: auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  filter: none;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.25;
  text-shadow: none;
  text-transform: inherit;
  transform: none;
  -webkit-text-fill-color: currentColor;
}

.other-game-calculator table thead .tev-sort-button:hover,
.other-game-calculator table thead .tev-sort-button:focus-visible {
  background: transparent;
  box-shadow: none;
  color: inherit;
  filter: none;
  transform: none;
  -webkit-text-fill-color: currentColor;
}

.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-calc-product-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding: clamp(18px, 2.8vw, 28px);
}

.other-calc-product-selector h2 {
  margin-block: 0.2rem 0.45rem;
}

.other-calc-product-selector p {
  margin-block: 0;
}

.other-calc-product-selector__control {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.other-calc-product-selector__control label {
  font-weight: 700;
}

@media (max-width: 640px) {
  .other-calc-product-selector {
    grid-template-columns: 1fr;
  }
}

.other-game-calculator
  :where(
    .other-calc-shell > .card,
    .other-calc-overview > .card,
    .other-calc-disclosures > .card,
    .other-calc-results > .card
  ) {
  border-color: var(--other-border);
  background: var(--other-panel);
}

.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-game-calculator .other-calc-hero > .other-calc-order-note {
  max-width: min(var(--other-hero-content-width, 78ch), 72ch);
  padding: 10px 14px;
  border-left: 3px solid var(--other-hero-kicker, var(--other-accent-strong));
  border-radius: var(--other-radius-control, 10px);
  background: color-mix(
    in srgb,
    var(--other-panel-solid, var(--other-bg)) 76%,
    transparent
  );
}

.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-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.other-calc-quick-summary,
.other-calc-structure {
  min-width: 0;
}

.other-game-calculator .other-calc-quick-summary {
  border-radius: var(--other-product-radius, var(--other-radius-medium, 14px));
  background: var(--other-product-background, var(--other-panel));
}

.other-calc-overview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.other-calc-overview-heading h2 {
  margin-block: 0.35rem 0;
}

.other-calc-quick-basis {
  max-width: 28ch;
  margin: 0;
  padding: 8px 10px;
  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));
  font-size: 0.76rem;
  line-height: 1.4;
}

.other-calc-quick-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.other-calc-quick-metric {
  grid-column: span 2;
  min-width: 0;
  padding: 12px;
  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);
  background: var(--other-chip-background, var(--other-panel-soft));
}

.other-calc-quick-metric--primary {
  grid-column: span 3;
  background: var(--other-action-note-background, var(--other-surface-strong));
}

.other-calc-quick-metric--mid {
  border-color: var(--other-accent);
  box-shadow: var(--glow);
}

.other-calc-quick-metric dt {
  color: var(--other-muted, #b8c7d9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.other-calc-quick-metric dd {
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  color: var(--other-text, #e6edf6);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1;
}

.other-calc-quick-metric--primary dd {
  color: var(--other-accent-strong);
}

.other-game-calculator .other-calc-model-evidence {
  overflow: clip;
  padding: 0;
  border-radius: var(--other-method-radius, var(--other-radius-medium, 14px));
  background: var(--other-method-background, var(--other-panel));
}

.other-calc-model-evidence > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  list-style: none;
  cursor: pointer;
}

.other-calc-model-evidence > summary::-webkit-details-marker {
  display: none;
}

.other-calc-model-evidence > summary::after {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--other-accent-strong);
  content: "+";
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.other-calc-model-evidence[open] > summary::after {
  content: "\2212";
}

.other-calc-model-evidence[open] > summary {
  border-bottom: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
  background: var(--other-action-note-background, var(--other-surface-strong));
}

.other-calc-model-evidence-heading {
  display: grid;
  gap: 5px;
}

.other-calc-model-evidence-heading > strong {
  color: var(--other-text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.other-calc-model-evidence-heading > span:last-child {
  color: var(--other-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.other-calc-model-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-right: 24px;
}

.other-calc-model-status > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  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-model-status small {
  color: var(--other-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.other-calc-model-status strong {
  overflow-wrap: anywhere;
  color: var(--other-text);
  font-size: 0.82rem;
}

.other-calc-model-status strong + span {
  color: var(--other-muted);
  font-size: 0.72rem;
}

.other-calc-model-evidence-body {
  padding: 0 clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px);
  overflow-wrap: anywhere;
}

.other-calc-model-file {
  margin: 18px 0;
  color: var(--other-muted);
  font-size: 0.78rem;
}

.other-calc-model-file code {
  overflow-wrap: anywhere;
  color: var(--other-text);
}

.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));
  box-shadow: none;
}

.other-calc-quick-summary h2,
.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-quick-summary,
.other-calc-model-evidence,
.other-calc-settings,
.other-calc-summary,
.other-calc-sealed,
.other-calc-simulation,
.other-calc-value-breakdown,
.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-value-breakdown,
.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-calc-value-breakdown {
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
}

.other-calc-value-breakdown__header {
  display: flex;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding-bottom: 18px;
  border-bottom: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
}

.other-calc-value-breakdown__header h2 {
  margin-block: 0.3rem 0.35rem;
}

.other-calc-value-breakdown__header p:last-child {
  margin: 0;
}

.other-calc-value-breakdown__switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  flex: 0 0 auto;
  padding: 4px;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-control-border, var(--other-border));
  border-radius: var(--other-chip-radius, 999px);
  background: var(--other-control-background, var(--other-surface-strong));
}

.other-game-calculator .other-calc-value-breakdown__switch button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: calc(var(--other-chip-radius, 999px) - 4px);
  color: var(--other-text);
  background: transparent;
}

.other-game-calculator
  .other-calc-value-breakdown__switch
  button[aria-pressed="true"] {
  color: var(--other-button-foreground, #041017);
  background: var(--other-button-background, var(--other-accent));
  box-shadow: 0 6px 18px rgba(var(--other-accent-rgb), 0.22);
}

.other-calc-value-breakdown__body {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(22px, 4vw, 36px);
}

.other-calc-value-breakdown__visual {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}

.other-calc-value-breakdown__donut {
  display: grid;
  width: min(100%, 238px);
  aspect-ratio: 1;
  place-items: center;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
  border-radius: 50%;
  background: conic-gradient(rgba(127, 141, 164, 0.28) 0 100%);
  box-shadow: 0 12px 30px rgba(2, 8, 18, 0.24);
}

.other-calc-value-breakdown__center {
  display: grid;
  width: 58%;
  aspect-ratio: 1;
  place-content: center;
  padding: 10px;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
  border-radius: 50%;
  color: var(--other-text);
  background: var(--other-panel-solid, var(--other-bg));
  box-shadow: 0 8px 22px rgba(2, 8, 18, 0.42);
  text-align: center;
}

.other-calc-value-breakdown__center span {
  color: var(--other-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.other-calc-value-breakdown__center strong {
  margin-top: 5px;
  color: var(--other-accent-strong);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1;
}

.other-calc-value-breakdown__lead {
  margin: 0;
  color: var(--other-text) !important;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: center;
}

.other-calc-value-breakdown__legend {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.other-calc-value-breakdown__item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto minmax(48px, auto);
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
  border-radius: var(--other-radius-control, 10px);
  background: var(--other-control-background, var(--other-surface-strong));
}

.other-calc-value-breakdown__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--other-breakdown-color);
  box-shadow: 0 0 12px
    color-mix(in srgb, var(--other-breakdown-color) 50%, transparent);
}

.other-calc-value-breakdown__name {
  overflow: hidden;
  color: var(--other-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.other-calc-value-breakdown__amount,
.other-calc-value-breakdown__percent {
  color: var(--other-text);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
}

.other-calc-value-breakdown__percent {
  color: var(--other-accent-strong);
}

.other-calc-value-breakdown__track {
  grid-column: 2 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127, 141, 164, 0.24);
}

.other-calc-value-breakdown__track > span {
  display: block;
  width: max(2px, var(--other-breakdown-share));
  height: 100%;
  border-radius: inherit;
  background: var(--other-breakdown-color);
}

.other-calc-value-breakdown__empty {
  margin: 0;
  padding: 18px;
  border: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
  border-radius: var(--other-radius-control, 10px);
  background: var(--other-control-background, var(--other-surface-strong));
  text-align: center;
}

.other-calc-value-breakdown__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: var(--other-border-width, 1px) var(--other-border-style, solid)
    var(--other-border);
  color: var(--other-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.other-calc-value-breakdown__footer span:last-child {
  text-align: right;
}

.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-game-calculator .other-calc-hero > .other-calc-order-note {
    background: var(--other-panel-solid, var(--other-bg));
  }

  .other-calc-disclosure--pricing {
    border-top-color: #b9d79a;
  }

  .other-calc-disclosure--chase {
    border-top-color: #b7aec9;
  }
}

@media (max-width: 980px) {
  .other-calc-overview {
    grid-template-columns: 1fr;
  }

  .other-calc-model-evidence > summary {
    grid-template-columns: 1fr;
  }

  .other-calc-model-status {
    grid-template-columns: 1fr 1fr;
    padding-right: 0;
  }

  .other-calc-model-status > span:last-child {
    grid-column: 1 / -1;
  }

  .other-calc-disclosures {
    grid-template-columns: 1fr 1fr;
  }

  .other-calc-disclosure--chase {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .other-calc-model-status {
    grid-template-columns: 1fr;
  }

  .other-calc-model-status > span:last-child {
    grid-column: auto;
  }

  .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%;
  }

  .other-calc-value-breakdown__header,
  .other-calc-value-breakdown__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .other-calc-value-breakdown__switch {
    width: 100%;
  }

  .other-calc-value-breakdown__body {
    grid-template-columns: 1fr;
  }

  .other-calc-value-breakdown__footer span:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .other-calc-shell {
    gap: 14px;
    padding: 16px 8px 36px;
  }

  .other-game-calculator
    :is(
      .other-calc-settings,
      .other-calc-overview > .card,
      .other-calc-disclosures > .card,
      .other-calc-results > .card
    ) {
    padding: 18px;
  }

  .other-calc-quick-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .other-calc-quick-metric,
  .other-calc-quick-metric--primary {
    grid-column: auto;
    padding: 10px;
  }

  .other-calc-quick-metric dd {
    font-size: clamp(1.05rem, 6vw, 1.4rem);
  }

  .other-calc-summary .box {
    padding: 14px 12px;
  }

  .other-calc-table-scroll {
    padding-bottom: 6px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .other-calc-hero-facts,
  .other-calc-definition-grid {
    grid-template-columns: 1fr;
  }

  .other-calc-overview-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .other-calc-quick-basis {
    max-width: none;
  }

  .other-calc-model-evidence > summary {
    padding: 18px 16px;
  }

  .other-calc-model-evidence-body {
    padding-inline: 16px;
  }

  .other-calc-pools summary {
    flex-direction: column;
  }

  .other-game-calculator .other-calc-hero::after {
    top: 18px;
    right: -36px;
    width: 132px;
    opacity: 0.28;
  }

  .other-calc-value-breakdown {
    padding-inline: 16px;
  }

  .other-calc-value-breakdown__donut {
    width: min(100%, 210px);
  }

  .other-calc-value-breakdown__item {
    grid-template-columns: 14px minmax(0, 1fr) auto;
  }

  .other-calc-value-breakdown__percent {
    grid-column: 3;
    grid-row: 2;
  }

  .other-calc-value-breakdown__track {
    grid-column: 2 / 3;
  }
}

@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,
      .other-calc-quick-metric,
      .other-calc-model-status > span,
      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;
}
