/* Signal Grid — Riftbound booster calculators */
.riftbound-booster-page {
  --rift-cyan: #4ce0ff;
  --rift-pink: #ff8df0;
  --rift-violet: #7a6cff;
  --rift-green: #31c49a;
  --rift-line: rgba(76, 224, 255, 0.34);
  --rift-panel-strong: linear-gradient(
    145deg,
    rgba(16, 30, 72, 0.97),
    rgba(7, 14, 35, 0.96)
  );
}

.riftbound-booster-page .rift-signal-grid {
  width: min(1380px, calc(100% - 32px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 28px 0 52px;
}

.riftbound-booster-page .rift-signal-grid > * {
  min-width: 0;
  margin: 0;
}

.riftbound-booster-page .rift-signal-grid .card {
  border: 1px solid var(--rift-line);
  border-radius: 14px;
  background: var(--rift-panel-strong);
  box-shadow:
    0 18px 42px rgba(2, 6, 20, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.riftbound-booster-page .rift-signal-grid .card::before {
  border-radius: 12px;
  border-color: rgba(255, 141, 240, 0.12);
}

.riftbound-booster-page .rift-signal-grid .card::after {
  height: 180px;
  opacity: 0.48;
}

.riftbound-booster-page .rift-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  grid-template-areas:
    "copy summary"
    "facts facts";
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(24px, 3.5vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

.riftbound-booster-page .rift-hero::after {
  inset: -20% auto auto 34%;
  width: 52%;
  height: 145%;
  opacity: 0.36;
  transform: skewX(-24deg);
  background: repeating-linear-gradient(
    90deg,
    rgba(122, 108, 255, 0.24) 0 5px,
    transparent 5px 25px
  );
}

.riftbound-booster-page .rift-hero-copy,
.riftbound-booster-page .rift-quick-summary,
.riftbound-booster-page .rift-facts {
  position: relative;
  z-index: 2;
}

.riftbound-booster-page .rift-hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.riftbound-booster-page
  .rift-hero-copy
  > p:not(.rift-kicker):not(.notice)
  + p:not(.notice) {
  margin-top: 10px;
}

.riftbound-booster-page .rift-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: var(--rift-cyan);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--rift-pink), var(--rift-cyan));
  box-shadow: 0 0 12px rgba(76, 224, 255, 0.7);
}

.riftbound-booster-page .rift-hero h1 {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
  font-family: "Exo", sans-serif;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.riftbound-booster-page .rift-hero-set {
  display: block;
  color: #fbfcff;
  font-size: clamp(2.65rem, 5.2vw, 5.25rem);
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(122, 108, 255, 0.28);
}

.riftbound-booster-page .rift-hero-set span {
  color: var(--rift-cyan);
}

.riftbound-booster-page .rift-hero-product {
  display: block;
  color: #d7def8;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.riftbound-booster-page .rift-hero-copy > p:not(.rift-kicker):not(.notice) {
  max-width: 760px;
  line-height: 1.65;
}

.riftbound-booster-page .rift-hero-copy .notice {
  width: fit-content;
  margin: 16px 0 0;
  border: 1px solid rgba(255, 141, 240, 0.36);
  border-radius: 8px;
  background: rgba(255, 141, 240, 0.08);
  color: #f2d9f7;
}

.riftbound-booster-page .rift-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.riftbound-booster-page .rift-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(76, 224, 255, 0.25);
  border-radius: 7px;
  background: rgba(10, 25, 60, 0.72);
  color: #dce6ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  width: 100%;
}

.riftbound-booster-page .rift-fact-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rift-cyan);
  box-shadow: 0 0 10px rgba(76, 224, 255, 0.9);
}

.riftbound-booster-page .rift-quick-summary {
  grid-area: summary;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(76, 224, 255, 0.52);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(14, 38, 88, 0.94),
    rgba(5, 14, 36, 0.97)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 141, 240, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.32);
}

.riftbound-booster-page .rift-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(76, 224, 255, 0.22);
  background: linear-gradient(
    90deg,
    rgba(255, 141, 240, 0.13),
    rgba(76, 224, 255, 0.08)
  );
}

.riftbound-booster-page .rift-quick-head h2 {
  margin: 0;
  color: #f7f9ff;
  font-family: "Exo", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-live-badge,
.riftbound-booster-page .rift-pool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(76, 224, 255, 0.32);
  border-radius: 999px;
  color: var(--rift-cyan);
  background: rgba(76, 224, 255, 0.08);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.riftbound-booster-page .rift-quick-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.riftbound-booster-page .rift-quick-metric {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid rgba(76, 224, 255, 0.18);
  border-bottom: 1px solid rgba(76, 224, 255, 0.18);
}

.riftbound-booster-page .rift-quick-metric:nth-child(2n) {
  border-right: 0;
}
.riftbound-booster-page .rift-quick-metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.riftbound-booster-page .rift-metric-label {
  display: block;
  margin-bottom: 6px;
  color: #9eacd3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-metric-value {
  display: block;
  color: #f9fbff;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.riftbound-booster-page .rift-quick-metric.is-accent .rift-metric-value {
  color: var(--rift-cyan);
}
.riftbound-booster-page .rift-quick-metric.is-net .rift-metric-value {
  color: #72e6a8;
}

.riftbound-booster-page .rift-range-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  color: #f9fbff;
  font-weight: 800;
}

.riftbound-booster-page .rift-range-values div {
  min-width: 0;
}

.riftbound-booster-page .rift-range-values dt {
  margin: 0 0 6px;
  color: #9eacd3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-range-values dd {
  margin: 0;
}

.riftbound-booster-page .rift-range-values div:nth-child(2) dd {
  color: var(--rift-cyan);
}

.riftbound-booster-page .rift-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}

.riftbound-booster-page .rift-panel-header h2,
.riftbound-booster-page .rift-panel-header h3 {
  margin: 5px 0 0;
  color: #f6f8ff;
  font-family: "Exo", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  text-transform: none;
}

.riftbound-booster-page .rift-panel-header p {
  max-width: 600px;
  font-size: 0.83rem;
  text-align: right;
}

.riftbound-booster-page .rift-content-card,
.riftbound-booster-page .rift-analysis-card,
.riftbound-booster-page .rift-value-card,
.riftbound-booster-page .rift-calculator-card,
.riftbound-booster-page .rift-table-card {
  padding: clamp(18px, 2.2vw, 28px);
}

.riftbound-booster-page .rift-snapshot-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -1px 18px 0;
  border: 1px solid rgba(76, 224, 255, 0.22);
  border-radius: 9px;
  overflow: hidden;
}

.riftbound-booster-page .rift-snapshot-stat {
  padding: 13px 15px;
  border-right: 1px solid rgba(76, 224, 255, 0.2);
  background: rgba(8, 19, 47, 0.72);
}

.riftbound-booster-page .rift-snapshot-stat:last-child {
  border-right: 0;
}

.riftbound-booster-page .rift-snapshot-stat strong {
  display: block;
  color: #f8faff;
  font-size: 1.25rem;
}

.riftbound-booster-page .rift-snapshot-stat span {
  color: #9aa9ce;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.riftbound-booster-page .rift-content-subpanel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(122, 108, 255, 0.3);
  border-radius: 10px;
  background: rgba(5, 13, 34, 0.7);
}

.riftbound-booster-page .rift-content-subpanel h3 {
  margin: 0 0 13px;
  color: #edf2ff;
  font-size: 0.83rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-pack-structure {
  display: grid;
  gap: 8px;
}

.riftbound-booster-page .rift-pack-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-left: 3px solid var(--slot-color, var(--rift-cyan));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--slot-color, var(--rift-cyan)) 12%, transparent),
    transparent 65%
  );
}

.riftbound-booster-page .rift-pack-count {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  text-align: center;
}

.riftbound-booster-page .rift-pack-name {
  color: #e6ecff;
  font-size: 0.82rem;
  font-weight: 700;
}

.riftbound-booster-page .rift-pack-note {
  color: #91a2ce;
  font-size: 0.68rem;
  text-align: right;
}

.riftbound-booster-page .rift-contributors-wrap {
  overflow-x: auto;
}

.riftbound-booster-page .rift-contributors {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.riftbound-booster-page .rift-contributors th,
.riftbound-booster-page .rift-contributors td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(76, 224, 255, 0.13);
  color: #dce4fa;
  font-size: 0.77rem;
  text-align: left;
}

.riftbound-booster-page .rift-contributors thead th {
  color: #8fa2d0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-contributors tbody th {
  color: #f2f5ff;
  font-weight: 650;
}
.riftbound-booster-page .rift-contributors td:last-child,
.riftbound-booster-page .rift-contributors th:last-child {
  text-align: right;
}
.riftbound-booster-page .rift-rank {
  width: 30px;
  color: var(--rift-cyan) !important;
  font-weight: 800;
}
.riftbound-booster-page .rift-empty-cell {
  color: #91a2ce !important;
  text-align: center !important;
}

.riftbound-booster-page .rift-model-notes {
  gap: 10px;
  border-color: rgba(255, 141, 240, 0.34) !important;
}

.riftbound-booster-page .rift-model-notes h2 {
  font-family: "Exo", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.riftbound-booster-page .rift-details-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.riftbound-booster-page .rift-details-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.riftbound-booster-page .rift-details-card summary::-webkit-details-marker {
  display: none;
}
.riftbound-booster-page .rift-details-title {
  display: grid;
  gap: 2px;
}
.riftbound-booster-page .rift-details-title strong {
  color: #f3f6ff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.riftbound-booster-page .rift-details-title small {
  color: #91a2ce;
}
.riftbound-booster-page .rift-details-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.riftbound-booster-page .rift-details-card .chev {
  color: var(--rift-cyan);
  transition: transform 160ms ease;
}
.riftbound-booster-page .rift-details-card[open] .chev {
  transform: rotate(90deg);
}

.riftbound-booster-page .rift-details-card .include-list {
  padding: 2px 18px 18px;
  border-top: 1px solid rgba(76, 224, 255, 0.16);
}

.riftbound-booster-page .rift-calculator-card {
  gap: 20px;
}

.riftbound-booster-page .rift-calculator-card .settings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.riftbound-booster-page .rift-calculator-card .section,
.riftbound-booster-page .rift-calculator-card .summary .box {
  border: 1px solid rgba(76, 224, 255, 0.24);
  border-radius: 10px;
  background: rgba(7, 18, 45, 0.76);
  box-shadow: none;
}

.riftbound-booster-page .rift-calculator-card .section::before,
.riftbound-booster-page .rift-calculator-card .summary .box::before {
  border-radius: 8px;
}

.riftbound-booster-page .rift-calculator-card .section h3 {
  color: var(--rift-cyan);
  font-family: "Exo", sans-serif;
}

.riftbound-booster-page .rift-calculator-card .rift-advanced-section {
  align-self: start;
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.riftbound-booster-page .rift-advanced-section > summary {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(76, 224, 255, 0.46);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(8, 20, 47, 0.98), rgba(6, 14, 35, 0.98)),
    linear-gradient(90deg, rgba(255, 141, 240, 0.12), rgba(76, 224, 255, 0.02));
  box-shadow:
    inset 4px 0 0 rgba(255, 141, 240, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  list-style: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.riftbound-booster-page .rift-advanced-section > summary:hover,
.riftbound-booster-page .rift-advanced-section > summary:focus-visible {
  border-color: rgba(76, 224, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(11, 26, 59, 0.98), rgba(7, 17, 41, 0.98)),
    linear-gradient(90deg, rgba(255, 141, 240, 0.18), rgba(76, 224, 255, 0.04));
  box-shadow:
    inset 4px 0 0 rgba(255, 141, 240, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(76, 224, 255, 0.1);
}

.riftbound-booster-page .rift-advanced-section > summary:focus-visible {
  outline: 2px solid rgba(76, 224, 255, 0.72);
  outline-offset: -4px;
}

.riftbound-booster-page .rift-advanced-section[open] > summary {
  margin-bottom: 14px;
  border-color: rgba(76, 224, 255, 0.72);
  border-radius: 9px 9px 0 0;
}

.riftbound-booster-page
  .rift-advanced-section
  > summary::-webkit-details-marker,
.riftbound-booster-page .rift-advanced-section > summary::marker {
  display: none;
}

.riftbound-booster-page .rift-advanced-summary-title {
  min-width: 0;
  display: grid;
  grid-column: 1;
  gap: 2px;
}

.riftbound-booster-page .rift-advanced-summary-title > span:first-child {
  color: var(--rift-cyan);
  font-family: "Exo", sans-serif;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.12;
}

.riftbound-booster-page .rift-advanced-summary-title > span:last-child {
  color: #91a2ce;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.15;
}

.riftbound-booster-page .rift-advanced-summary-note {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 4px 8px;
  border: 1px solid rgba(255, 141, 240, 0.48);
  border-radius: 999px;
  background: rgba(255, 141, 240, 0.08);
  color: var(--rift-pink);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-advanced-section > summary::after {
  content: "\25b8";
  width: 30px;
  height: 30px;
  display: grid;
  grid-column: 3;
  grid-row: 1;
  place-items: center;
  border: 1px solid rgba(76, 224, 255, 0.52);
  border-radius: 999px;
  background: rgba(76, 224, 255, 0.08);
  color: var(--rift-cyan);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.riftbound-booster-page .rift-advanced-section[open] > summary::after {
  transform: rotate(90deg);
}

.riftbound-booster-page .rift-advanced-section > .section-body {
  padding: 0 16px 16px;
}

@supports selector(.calc-page .settings .section:has(#confLevel)) {
  @media (max-width: 1149px) {
    .calc-page.riftbound-booster-page
      .settings
      .section.rift-advanced-section:has(#confLevel) {
      display: flex;
    }
  }
}

.riftbound-booster-page .rift-calculator-card .summary h3 {
  color: var(--rift-pink);
  font-family: "Exo", sans-serif;
}

.riftbound-booster-page .rift-calculator-card .summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.riftbound-booster-page .rift-calculator-card .summary.summary-single-table {
  grid-template-columns: minmax(0, 1fr);
}

.riftbound-booster-page .rift-calculator-card input,
.riftbound-booster-page .rift-calculator-card select,
.riftbound-booster-page .rift-table-card select {
  border-radius: 7px;
  border-color: rgba(76, 224, 255, 0.34);
  background-color: rgba(4, 12, 31, 0.9);
}

.riftbound-booster-page #calcEV {
  border-color: rgba(255, 141, 240, 0.6);
  border-radius: 8px;
  background: linear-gradient(
    105deg,
    rgba(255, 141, 240, 0.24),
    rgba(76, 224, 255, 0.22)
  );
  box-shadow: 0 0 22px rgba(76, 224, 255, 0.12);
}

.riftbound-booster-page .us-pe-card {
  border-color: rgba(122, 108, 255, 0.34) !important;
}

.riftbound-booster-page .rift-analysis-card {
  width: 100%;
  gap: 16px;
  border-color: rgba(76, 224, 255, 0.48) !important;
  background:
    radial-gradient(
      circle at 82% 0,
      rgba(76, 224, 255, 0.1),
      transparent 27rem
    ),
    linear-gradient(145deg, rgba(8, 20, 49, 0.98), rgba(7, 14, 37, 0.99));
}

.riftbound-booster-page .rift-simulation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
}

.riftbound-booster-page .rift-simulation-heading h2 {
  margin: 2px 0 0;
  color: #f6f8ff;
  font-family: "Exo", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  text-transform: none;
}

.riftbound-booster-page .rift-chart-legend {
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #dce7ff;
  font-size: 0.78rem;
  font-weight: 750;
}

.riftbound-booster-page .rift-chart-legend span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(76, 224, 255, 0.32);
  border-radius: 999px;
  background: rgba(4, 12, 31, 0.76);
}

.riftbound-booster-page .rift-chart-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.riftbound-booster-page .rift-chart-legend__bars {
  width: 16px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #9bc6ff, #38588f);
}

.riftbound-booster-page .rift-chart-legend__band {
  width: 18px;
  height: 10px;
  border: 1px dashed rgba(255, 141, 240, 0.94);
  border-radius: 3px;
  background: rgba(255, 141, 240, 0.12);
}

.riftbound-booster-page .rift-chart-legend__mid {
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: var(--rift-cyan);
  box-shadow: 0 0 10px rgba(76, 224, 255, 0.42);
}

.riftbound-booster-page .rift-analysis-card .sim-chart-wrap {
  height: clamp(270px, 30vw, 330px);
  padding: 12px;
  border: 1px solid rgba(76, 224, 255, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(rgba(76, 224, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 224, 255, 0.035) 1px, transparent 1px),
    rgba(4, 12, 31, 0.86);
  background-size:
    32px 32px,
    32px 32px,
    auto;
  box-shadow: inset 0 0 32px rgba(76, 224, 255, 0.04);
}

.riftbound-booster-page .rift-analysis-card .sim-chart-wrap::before {
  border-radius: 8px;
}

.riftbound-booster-page .rift-chart-readout {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(76, 224, 255, 0.3);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(9, 23, 53, 0.9), rgba(5, 13, 34, 0.92)),
    radial-gradient(circle at 0 0, rgba(255, 141, 240, 0.07), transparent 28%);
}

.riftbound-booster-page .rift-chart-band {
  color: #9ceeff;
  font-size: 0.98rem;
  font-weight: 850;
}

.riftbound-booster-page .rift-chart-markers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.riftbound-booster-page .rift-chart-markers[hidden] {
  display: none;
}

.riftbound-booster-page .rift-chart-markers span {
  min-width: 0;
  min-height: 48px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 108, 255, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(76, 224, 255, 0.08),
      rgba(122, 108, 255, 0.035)
    ),
    rgba(4, 12, 31, 0.76);
}

.riftbound-booster-page .rift-chart-markers b {
  color: #9badd5;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.riftbound-booster-page .rift-chart-markers strong {
  color: #c3f7ff;
  font-size: 0.98rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.riftbound-booster-page .rift-chart-readout p {
  margin: 0;
  color: #9badd5;
  font-size: 0.88rem;
  line-height: 1.45;
}

.riftbound-booster-page .rift-value-card {
  border-color: rgba(255, 141, 240, 0.4) !important;
}

.riftbound-booster-page .rift-value-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  min-height: 270px;
  padding: 10px clamp(4px, 4vw, 48px) 6px;
}

.riftbound-booster-page .rift-donut-wrap {
  display: grid;
  place-items: center;
}

.riftbound-booster-page .rift-value-donut {
  position: relative;
  width: min(240px, 62vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(rgba(154, 168, 216, 0.18) 0 100%);
  box-shadow:
    0 0 0 1px rgba(76, 224, 255, 0.2),
    0 0 40px rgba(122, 108, 255, 0.18);
}

.riftbound-booster-page .rift-value-donut::before {
  content: "";
  width: 57%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #111f4c, #050d22 68%);
  box-shadow: inset 0 0 0 1px rgba(76, 224, 255, 0.2);
}

.riftbound-booster-page .rift-donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 3px;
  place-items: center;
  text-align: center;
}

.riftbound-booster-page .rift-donut-center span {
  color: #92a3ce;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.riftbound-booster-page .rift-donut-center strong {
  color: #fff;
  font-size: 1.35rem;
}
.riftbound-booster-page .rift-value-legend {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.riftbound-booster-page .rift-value-legend li {
  display: grid;
  grid-template-columns: 12px minmax(140px, 1fr) auto 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(76, 224, 255, 0.14);
}

.riftbound-booster-page .rift-value-legend li:last-child {
  border-bottom: 0;
}

.riftbound-booster-page .rift-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--swatch);
  box-shadow: 0 0 10px color-mix(in srgb, var(--swatch) 55%, transparent);
}

.riftbound-booster-page .rift-legend-label {
  color: #dfe7fb;
  font-size: 0.85rem;
}
.riftbound-booster-page .rift-value-legend strong {
  color: #fff;
  font-size: 0.9rem;
}
.riftbound-booster-page .rift-legend-pct {
  color: #91a2ce;
  font-size: 0.76rem;
  text-align: right;
}
.riftbound-booster-page .rift-table-card {
  overflow: hidden;
}

.riftbound-booster-page .rift-table-card .main-table {
  margin-top: 0;
  border: 1px solid rgba(76, 224, 255, 0.22);
  border-radius: 10px;
  box-shadow: none;
  overflow-x: auto;
}

.riftbound-booster-page .rift-table-card #evTable {
  min-width: 850px;
}
.riftbound-booster-page .rift-table-card .table-tools {
  padding: 12px;
  border-bottom-color: rgba(76, 224, 255, 0.2);
}

.riftbound-booster-page .rift-table-card #evTable thead th[data-sort-key] {
  padding: 0;
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}

.riftbound-booster-page .rift-sort-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.riftbound-booster-page
  .rift-table-card
  #evTable
  thead
  th.center
  .rift-sort-button {
  justify-content: center;
  text-align: center;
}

.riftbound-booster-page .rift-sort-button:hover {
  color: #ffffff;
  background: rgba(76, 224, 255, 0.1);
}

.riftbound-booster-page .rift-sort-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(76, 224, 255, 0.88);
}

.riftbound-booster-page .rift-sort-indicator {
  width: 1em;
  flex: 0 0 1em;
  color: #86a0db;
  font-family: system-ui, sans-serif;
  font-size: 0.9em;
  line-height: 1;
  text-align: center;
}

.riftbound-booster-page .rift-sort-indicator::before {
  content: "↕";
  opacity: 0.58;
}

.riftbound-booster-page
  .rift-table-card
  #evTable
  thead
  th[aria-sort="ascending"],
.riftbound-booster-page
  .rift-table-card
  #evTable
  thead
  th[aria-sort="descending"] {
  background: linear-gradient(
    180deg,
    rgba(76, 224, 255, 0.12),
    rgba(76, 224, 255, 0.035)
  );
  box-shadow: inset 0 -2px 0 rgba(76, 224, 255, 0.82);
}

.riftbound-booster-page
  .rift-table-card
  #evTable
  thead
  th[aria-sort="ascending"]
  .rift-sort-indicator::before {
  content: "↑";
  color: #67eeff;
  opacity: 1;
}

.riftbound-booster-page
  .rift-table-card
  #evTable
  thead
  th[aria-sort="descending"]
  .rift-sort-indicator::before {
  content: "↓";
  color: #67eeff;
  opacity: 1;
}

.riftbound-booster-page .rift-green-switch {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 13px;
  border: 1px solid rgba(76, 224, 255, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(9, 22, 52, 0.98), rgba(5, 13, 32, 0.98)),
    radial-gradient(circle at 0 0, rgba(255, 141, 240, 0.1), transparent 58%);
  color: #edf4ff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  box-shadow:
    0 10px 22px rgba(2, 6, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.riftbound-booster-page .rift-green-switch:hover {
  border-color: rgba(76, 224, 255, 0.82);
}

.riftbound-booster-page .rift-green-switch:focus-within {
  border-color: rgba(76, 224, 255, 0.92);
  outline: 2px solid rgba(76, 224, 255, 0.7);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(76, 224, 255, 0.12),
    0 12px 24px rgba(2, 6, 20, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.riftbound-booster-page .rift-green-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
}

.riftbound-booster-page .rift-green-switch__label {
  white-space: nowrap;
}

.riftbound-booster-page .rift-green-switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 28px;
  border: 1px solid rgba(174, 187, 224, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, #071127, #0d1b38);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.025);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.riftbound-booster-page .rift-green-switch__thumb {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6f9ff, #8da0ca);
  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-50%);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.riftbound-booster-page .rift-green-switch__state {
  min-width: 2.2em;
  color: #9badd5;
  text-align: left;
}

.riftbound-booster-page
  .rift-green-switch
  input:checked
  + .rift-green-switch__track {
  border-color: rgba(76, 224, 255, 0.88);
  background: linear-gradient(180deg, #55efc4, var(--rift-green) 58%, #158a70);
  box-shadow:
    0 0 18px rgba(49, 196, 154, 0.24),
    inset 0 1px 0 rgba(226, 255, 247, 0.76),
    inset 0 -2px 0 rgba(5, 58, 46, 0.42);
}

.riftbound-booster-page
  .rift-green-switch
  input:checked
  + .rift-green-switch__track
  .rift-green-switch__thumb {
  background: linear-gradient(180deg, #f4fffb, #164d42);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.46),
    0 0 10px rgba(76, 224, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transform: translate(24px, -50%);
}

.riftbound-booster-page
  .rift-green-switch
  input:checked
  ~ .rift-green-switch__state {
  color: #6ff0cc;
}

.riftbound-booster-page
  .rift-green-switch
  input:focus-visible
  + .rift-green-switch__track {
  outline: 2px solid rgba(76, 224, 255, 0.82);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .riftbound-booster-page .rift-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "facts"
      "summary";
    row-gap: 24px;
  }
  .riftbound-booster-page .rift-quick-summary {
    width: 100%;
  }
  .riftbound-booster-page .rift-content-grid,
  .riftbound-booster-page .rift-value-layout {
    grid-template-columns: 1fr;
  }
  .riftbound-booster-page .rift-calculator-card .settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .riftbound-booster-page .monte-carlo-section {
    display: flex;
  }

  .riftbound-booster-page .rift-signal-grid {
    width: min(100% - 20px, 1380px);
    gap: 10px;
    padding-top: 16px;
  }

  .riftbound-booster-page .rift-hero,
  .riftbound-booster-page .rift-content-card,
  .riftbound-booster-page .rift-analysis-card,
  .riftbound-booster-page .rift-value-card,
  .riftbound-booster-page .rift-calculator-card,
  .riftbound-booster-page .rift-table-card {
    padding: 17px;
  }

  .riftbound-booster-page .rift-snapshot-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .riftbound-booster-page .rift-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .riftbound-booster-page .rift-snapshot-stat:nth-child(2) {
    border-right: 0;
  }
  .riftbound-booster-page .rift-snapshot-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(76, 224, 255, 0.2);
  }
  .riftbound-booster-page .rift-calculator-card .settings,
  .riftbound-booster-page .rift-calculator-card .summary {
    grid-template-columns: 1fr;
  }
  .riftbound-booster-page .rift-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .riftbound-booster-page .rift-panel-header p {
    text-align: left;
  }
  .riftbound-booster-page .rift-simulation-heading {
    display: grid;
  }
  .riftbound-booster-page .rift-chart-legend {
    justify-content: flex-start;
  }
  .riftbound-booster-page .rift-analysis-card .sim-chart-wrap {
    height: clamp(280px, 82vw, 320px);
    padding: 10px;
  }
  .riftbound-booster-page .rift-value-layout {
    min-height: 0;
    padding-inline: 0;
  }
}

@media (max-width: 480px) {
  .riftbound-booster-page .rift-chart-markers {
    grid-template-columns: 1fr;
  }

  .riftbound-booster-page .rift-hero-set {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
  .riftbound-booster-page .rift-facts {
    grid-template-columns: 1fr;
  }
  .riftbound-booster-page .rift-quick-metrics {
    grid-template-columns: 1fr;
  }

  .riftbound-booster-page .rift-quick-metric,
  .riftbound-booster-page .rift-quick-metric:nth-child(2n),
  .riftbound-booster-page .rift-quick-metric:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(76, 224, 255, 0.18);
  }

  .riftbound-booster-page .rift-quick-metric:last-child {
    border-bottom: 0;
  }
  .riftbound-booster-page .rift-pack-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .riftbound-booster-page .rift-pack-note {
    grid-column: 2;
    text-align: left;
  }
  .riftbound-booster-page .rift-value-legend li {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .riftbound-booster-page .rift-legend-pct {
    grid-column: 2 / 4;
    text-align: left;
  }
}

/* Hide the detailed snapshot only in portrait mobile layouts. */
@media (max-width: 799px) and (orientation: portrait) {
  .riftbound-booster-page .rift-content-card {
    display: none;
  }
}
