/* Signal Grid extensions for the Riftbound tool hub and deck calculator. */
.riftbound-hub-page,
.riftbound-deck-page {
  --rift-surface-cyan: #4ce0ff;
  --rift-surface-pink: #ff8df0;
  --rift-surface-violet: #7a6cff;
  --rift-surface-green: #31c49a;
  --rift-surface-ink: #f7f9ff;
  --rift-surface-muted: #9eacd3;
  --rift-surface-line: rgba(76, 224, 255, 0.34);
  --rift-surface-panel: linear-gradient(
    145deg,
    rgba(16, 30, 72, 0.97),
    rgba(7, 14, 35, 0.96)
  );
}

.riftbound-hub-page .rift-hub-grid,
.riftbound-deck-page .rift-deck-grid {
  width: min(1380px, calc(100% - 32px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 28px 0 52px;
}

.riftbound-hub-page .rift-hub-grid > *,
.riftbound-deck-page .rift-deck-grid > * {
  min-width: 0;
  margin: 0;
}

.riftbound-hub-page .rift-hub-grid .card,
.riftbound-deck-page .rift-deck-grid .card {
  border: 1px solid var(--rift-surface-line);
  border-radius: 14px;
  background: var(--rift-surface-panel);
  box-shadow:
    0 18px 42px rgba(2, 6, 20, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.riftbound-hub-page .rift-hub-grid .card::before,
.riftbound-deck-page .rift-deck-grid .card::before {
  border-radius: 12px;
  border-color: rgba(255, 141, 240, 0.12);
}

.riftbound-hub-page .rift-hub-grid .card::after,
.riftbound-deck-page .rift-deck-grid .card::after {
  height: 180px;
  opacity: 0.46;
}

.riftbound-hub-page .rift-surface-hero,
.riftbound-deck-page .rift-surface-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(24px, 3.5vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

.riftbound-hub-page .rift-surface-hero::after,
.riftbound-deck-page .rift-surface-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-hub-page .rift-surface-hero-copy,
.riftbound-deck-page .rift-surface-hero-copy,
.riftbound-hub-page .rift-hub-pulse,
.riftbound-deck-page .rift-deck-workflow {
  position: relative;
  z-index: 2;
}

.riftbound-hub-page .rift-surface-hero-copy,
.riftbound-deck-page .rift-surface-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.riftbound-hub-page .rift-surface-kicker,
.riftbound-deck-page .rift-surface-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: var(--rift-surface-cyan);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.riftbound-hub-page .rift-surface-kicker::before,
.riftbound-deck-page .rift-surface-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--rift-surface-pink),
    var(--rift-surface-cyan)
  );
  box-shadow: 0 0 12px rgba(76, 224, 255, 0.7);
}

.riftbound-hub-page .rift-surface-hero h1,
.riftbound-deck-page .rift-surface-hero h1 {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
  font-family: "Exo", sans-serif;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.riftbound-hub-page .rift-surface-title-primary,
.riftbound-deck-page .rift-surface-title-primary {
  display: block;
  color: var(--rift-surface-ink);
  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-hub-page .rift-surface-title-primary span,
.riftbound-deck-page .rift-surface-title-primary span {
  color: var(--rift-surface-cyan);
}

.riftbound-hub-page .rift-surface-title-secondary,
.riftbound-deck-page .rift-surface-title-secondary {
  display: block;
  color: #d7def8;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.riftbound-hub-page .rift-surface-hero-copy > p:not(.rift-surface-kicker),
.riftbound-deck-page .rift-surface-hero-copy > p:not(.rift-surface-kicker) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.riftbound-hub-page .rift-surface-hero-copy > p:not(.rift-surface-kicker) + p,
.riftbound-deck-page .rift-surface-hero-copy > p:not(.rift-surface-kicker) + p {
  margin-top: 10px;
}

.riftbound-hub-page .rift-surface-facts,
.riftbound-deck-page .rift-surface-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.riftbound-hub-page .rift-surface-fact,
.riftbound-deck-page .rift-surface-fact {
  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;
}

.riftbound-hub-page .rift-surface-fact::before,
.riftbound-deck-page .rift-surface-fact::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rift-surface-cyan);
  box-shadow: 0 0 10px rgba(76, 224, 255, 0.9);
}

.riftbound-hub-page .rift-hub-pulse,
.riftbound-deck-page .rift-deck-workflow {
  align-self: center;
  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-hub-page .rift-surface-aside-head,
.riftbound-deck-page .rift-surface-aside-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-hub-page .rift-surface-aside-head h2,
.riftbound-deck-page .rift-surface-aside-head h2 {
  margin: 0;
  color: var(--rift-surface-ink);
  font-family: "Exo", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.riftbound-hub-page .rift-surface-live,
.riftbound-deck-page .rift-surface-live {
  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-surface-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-hub-page .rift-hub-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.riftbound-hub-page .rift-hub-pulse-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-hub-page .rift-hub-pulse-metric:nth-child(2n) {
  border-right: 0;
}

.riftbound-hub-page .rift-hub-pulse-metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.riftbound-hub-page .rift-hub-pulse-metric span {
  display: block;
  margin-bottom: 5px;
  color: var(--rift-surface-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riftbound-hub-page .rift-hub-pulse-metric strong {
  color: var(--rift-surface-ink);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.05;
}

.riftbound-hub-page .rift-hub-pulse-metric.is-accent strong {
  color: var(--rift-surface-cyan);
}

.riftbound-hub-page .rift-library-card,
.riftbound-deck-page .rift-deck-controls,
.riftbound-deck-page .rift-deck-results,
.riftbound-deck-page .rift-deck-table,
.riftbound-deck-page .rift-deck-method {
  padding: clamp(18px, 2.2vw, 28px);
}

.riftbound-hub-page .rift-surface-panel-head,
.riftbound-deck-page .rift-surface-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.riftbound-hub-page .rift-surface-panel-head h2,
.riftbound-deck-page .rift-surface-panel-head h2 {
  margin: 5px 0 0;
  color: var(--rift-surface-ink);
  font-family: "Exo", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  text-transform: none;
}

.riftbound-hub-page .rift-surface-panel-head > p,
.riftbound-deck-page .rift-surface-panel-head > p {
  max-width: 590px;
  color: var(--rift-surface-muted);
  font-size: 0.83rem;
  text-align: right;
}

.riftbound-hub-page .rift-library-card {
  display: grid;
  gap: 18px;
}

.riftbound-hub-page .set-controls {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1.5fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(76, 224, 255, 0.22);
  border-radius: 10px;
  background: rgba(5, 13, 34, 0.72);
}

.riftbound-hub-page .set-control {
  color: #aebbe0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.riftbound-hub-page .set-control input,
.riftbound-hub-page .set-control select {
  min-height: 42px;
  border: 1px solid rgba(76, 224, 255, 0.34);
  border-radius: 7px;
  background: rgba(4, 12, 31, 0.9);
  color: #edf2ff;
  text-transform: none;
}

.riftbound-hub-page .set-control input::placeholder {
  color: rgba(174, 187, 224, 0.58);
}

.riftbound-hub-page .set-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.riftbound-hub-page .set-row {
  position: relative;
  min-width: 0;
  min-height: 136px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 258px);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
  padding: 20px 18px 20px 24px;
  overflow: hidden;
  border: 1px solid rgba(122, 108, 255, 0.3);
  border-radius: 11px;
  background:
    radial-gradient(circle at 88% 0, rgba(76, 224, 255, 0.1), transparent 32%),
    linear-gradient(112deg, rgba(11, 27, 65, 0.96), rgba(5, 13, 32, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 38px rgba(3, 9, 25, 0.18);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.riftbound-hub-page .set-row::before {
  content: "";
  position: absolute;
  inset: 17px auto 17px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--rift-surface-pink),
    var(--rift-surface-cyan)
  );
  box-shadow: 0 0 16px rgba(76, 224, 255, 0.72);
}

.riftbound-hub-page .set-row::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(230px, 21vw, 286px);
  width: 116px;
  height: 116px;
  pointer-events: none;
  transform: translateY(-50%) rotate(-16deg);
  border: 1px solid rgba(76, 224, 255, 0.1);
  border-radius: 25px;
  background: repeating-linear-gradient(
    135deg,
    rgba(76, 224, 255, 0.055) 0 3px,
    transparent 3px 14px
  );
}

.riftbound-hub-page .set-row:hover,
.riftbound-hub-page .set-row:focus-within {
  transform: translateY(-2px);
  border-color: rgba(76, 224, 255, 0.56);
  box-shadow:
    0 14px 30px rgba(2, 6, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.riftbound-hub-page .set-row[data-precon="true"] {
  grid-column: 1 / -1;
  min-height: 146px;
  border-color: rgba(255, 141, 240, 0.42);
  background:
    linear-gradient(115deg, rgba(49, 16, 78, 0.82), rgba(8, 27, 63, 0.94) 62%),
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 141, 240, 0.18),
      transparent 44%
    );
}

.riftbound-hub-page .set-row[data-precon="true"]::before {
  background: linear-gradient(
    180deg,
    var(--rift-surface-cyan),
    var(--rift-surface-pink)
  );
  box-shadow: 0 0 18px rgba(255, 141, 240, 0.62);
}

.riftbound-hub-page .set-meta {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  max-width: none;
}

.riftbound-hub-page .set-text {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.riftbound-hub-page .rift-tool-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.riftbound-hub-page .rift-tool-type,
.riftbound-hub-page .rift-set-code {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  border: 1px solid rgba(76, 224, 255, 0.25);
  border-radius: 999px;
  color: var(--rift-surface-cyan);
  background: rgba(76, 224, 255, 0.07);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.riftbound-hub-page .set-row[data-precon="true"] .rift-tool-type {
  border-color: rgba(255, 141, 240, 0.32);
  color: var(--rift-surface-pink);
  background: rgba(255, 141, 240, 0.08);
}

.riftbound-hub-page .set-title {
  color: var(--rift-surface-ink);
  font-family: "Exo", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 750;
  line-height: 1.2;
}

.riftbound-hub-page .set-description {
  max-width: 78ch;
  color: #aebbe0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.riftbound-hub-page .set-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #8193c0;
  font-size: 0.76rem;
}

.riftbound-hub-page .set-date time {
  color: #9caed8;
  font-weight: 650;
}

.riftbound-hub-page .set-date span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.riftbound-hub-page .set-date span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(76, 224, 255, 0.72);
  box-shadow: 0 0 7px rgba(76, 224, 255, 0.55);
}

.riftbound-hub-page .set-tools {
  position: relative;
  z-index: 1;
  align-items: center;
  margin: 0;
}

.riftbound-hub-page .set-tools .btn {
  width: 100%;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(76, 224, 255, 0.4);
  border-radius: 9px;
  background: linear-gradient(
    105deg,
    rgba(76, 224, 255, 0.14),
    rgba(122, 108, 255, 0.2)
  );
  color: #f3f8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.riftbound-hub-page .set-tools .btn::after {
  content: none;
}

.riftbound-hub-page .rift-tool-action-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.riftbound-hub-page .rift-tool-action-copy small {
  overflow: hidden;
  color: #8fa4d4;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.riftbound-hub-page .rift-tool-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(76, 224, 255, 0.3);
  border-radius: 7px;
  background: rgba(4, 13, 34, 0.5);
  color: var(--rift-surface-cyan);
  font-size: 1rem;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.riftbound-hub-page .set-row[data-precon="true"] .set-tools {
  width: 100%;
}

.riftbound-hub-page .set-row[data-precon="true"] .set-tools .btn {
  border-color: rgba(255, 141, 240, 0.52);
  background: linear-gradient(
    105deg,
    rgba(255, 141, 240, 0.22),
    rgba(76, 224, 255, 0.18)
  );
}

.riftbound-hub-page .set-tools .btn:hover,
.riftbound-hub-page .set-tools .btn:focus-visible {
  border-color: var(--rift-surface-cyan);
  filter: brightness(1.1);
}

.riftbound-hub-page .set-tools .btn:hover .rift-tool-arrow,
.riftbound-hub-page .set-tools .btn:focus-visible .rift-tool-arrow {
  transform: translateX(2px);
  background: rgba(76, 224, 255, 0.12);
}

.riftbound-hub-page .rift-library-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(76, 224, 255, 0.28);
  border-radius: 9px;
  color: var(--rift-surface-muted);
  text-align: center;
}

.riftbound-deck-page .rift-deck-workflow-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.riftbound-deck-page .rift-deck-workflow-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(76, 224, 255, 0.16);
}

.riftbound-deck-page .rift-deck-workflow-list li:last-child {
  border-bottom: 0;
}

.riftbound-deck-page .rift-deck-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(76, 224, 255, 0.34);
  border-radius: 8px;
  color: var(--rift-surface-cyan);
  background: rgba(76, 224, 255, 0.07);
  font-size: 0.68rem;
  font-weight: 800;
}

.riftbound-deck-page .rift-deck-workflow-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--rift-surface-ink);
  font-size: 0.84rem;
}

.riftbound-deck-page .rift-deck-workflow-list p {
  margin: 0;
  color: var(--rift-surface-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.riftbound-deck-page .rift-deck-controls,
.riftbound-deck-page .rift-deck-results,
.riftbound-deck-page .rift-deck-table,
.riftbound-deck-page .rift-deck-method {
  display: grid;
  gap: 18px;
}

.riftbound-deck-page .rift-deck-controls .settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.riftbound-deck-page .rift-deck-controls .section {
  border: 1px solid rgba(76, 224, 255, 0.24);
  border-radius: 10px;
  background: rgba(7, 18, 45, 0.76);
  box-shadow: none;
}

.riftbound-deck-page .rift-deck-controls .section::before {
  border-radius: 8px;
}

.riftbound-deck-page .rift-deck-controls .section h3 {
  color: var(--rift-surface-cyan);
  font-family: "Exo", sans-serif;
  letter-spacing: 0.08em;
}

.riftbound-deck-page .rift-deck-controls input,
.riftbound-deck-page .rift-deck-controls select,
.riftbound-deck-page .rift-deck-table select {
  border: 1px solid rgba(76, 224, 255, 0.34);
  border-radius: 7px;
  background-color: rgba(4, 12, 31, 0.9);
}

.riftbound-deck-page #calcEV {
  width: 100%;
  border-color: rgba(255, 141, 240, 0.58);
  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-deck-page #calcEV:disabled {
  opacity: 0.48;
  box-shadow: none;
}

.riftbound-deck-page .rift-deck-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.riftbound-deck-page .rift-deck-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid rgba(122, 108, 255, 0.28);
  border-radius: 999px;
  color: #cdd6f5;
  background: rgba(122, 108, 255, 0.07);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.riftbound-deck-page .rift-deck-results .summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.riftbound-deck-page .rift-deck-results .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.riftbound-deck-page .rift-deck-results .summary-grid .box {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(76, 224, 255, 0.22);
  border-radius: 10px;
  background: rgba(5, 14, 36, 0.82);
  box-shadow: none;
}

.riftbound-deck-page .rift-deck-results .summary-grid .box::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--metric-accent, var(--rift-surface-cyan));
  box-shadow: 0 0 15px var(--metric-accent, var(--rift-surface-cyan));
}

.riftbound-deck-page .rift-deck-results .summary-grid .box.is-value {
  --metric-accent: var(--rift-surface-pink);
}

.riftbound-deck-page .rift-deck-results .summary-grid .box.is-profit {
  --metric-accent: var(--rift-surface-green);
}

.riftbound-deck-page .rift-deck-results .summary-grid .label {
  color: var(--rift-surface-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.riftbound-deck-page .rift-deck-results .summary-grid .value {
  color: var(--rift-surface-ink);
  font-size: clamp(1.2rem, 2vw, 1.72rem);
}

.riftbound-deck-page .rift-deck-results .summary-grid .is-value .value {
  color: #ffb8f6;
}

.riftbound-deck-page .rift-deck-results .summary-grid .is-profit .value {
  color: #75e4aa;
}

.riftbound-deck-page .rift-deck-results .summary-grid .sub-label {
  color: #8fa1cb;
  font-size: 0.66rem;
}

.riftbound-deck-page .rift-deck-results #statusText {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(76, 224, 255, 0.18);
  border-radius: 7px;
  background: rgba(76, 224, 255, 0.045);
  color: #aebbe0;
  font-size: 0.78rem;
}

.riftbound-deck-page .rift-deck-table .table-tools {
  align-items: end;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(76, 224, 255, 0.2);
  border-radius: 9px;
  background: rgba(5, 13, 34, 0.72);
}

.riftbound-deck-page .rift-deck-table .table-wrap {
  padding: 0;
  overflow-x: auto;
  border: 1px solid rgba(76, 224, 255, 0.22);
  border-radius: 10px;
  background: rgba(4, 12, 31, 0.78);
}

.riftbound-deck-page .rift-deck-table .main-table {
  min-width: 980px;
  margin: 0;
}

.riftbound-deck-page .rift-deck-table .main-table caption {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(76, 224, 255, 0.16);
  color: #91a2ce;
}

.riftbound-deck-page .rift-deck-table .main-table thead th {
  background: linear-gradient(
    160deg,
    rgba(27, 48, 106, 0.96),
    rgba(13, 27, 67, 0.94)
  );
  color: #eaf0ff;
}

.riftbound-deck-page .rift-deck-table .table-foot {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(76, 224, 255, 0.2);
  border-radius: 7px;
  color: #aebbe0;
  background: rgba(76, 224, 255, 0.045);
}

.riftbound-deck-page .rift-deck-table .table-foot span {
  color: var(--rift-surface-cyan);
  font-weight: 800;
}

.riftbound-deck-page .rift-deck-method {
  border-color: rgba(255, 141, 240, 0.28) !important;
}

.riftbound-deck-page .rift-deck-method h2 {
  margin: 0;
  color: var(--rift-surface-pink);
  font-family: "Exo", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.riftbound-deck-page .rift-deck-method .footnotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.riftbound-deck-page .rift-deck-method .footnotes > div {
  padding: 12px;
  border: 1px solid rgba(122, 108, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 13, 34, 0.58);
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .riftbound-hub-page .rift-surface-hero,
  .riftbound-deck-page .rift-surface-hero {
    grid-template-columns: 1fr;
  }

  .riftbound-hub-page .rift-hub-pulse,
  .riftbound-deck-page .rift-deck-workflow {
    width: 100%;
  }

  .riftbound-deck-page .rift-deck-controls .settings,
  .riftbound-deck-page .rift-deck-method .footnotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .riftbound-deck-page .rift-deck-results .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .riftbound-hub-page .rift-hub-grid,
  .riftbound-deck-page .rift-deck-grid {
    width: min(calc(100% - 20px), 1380px);
    gap: 10px;
    padding-top: 16px;
  }

  .riftbound-hub-page .rift-surface-hero,
  .riftbound-deck-page .rift-surface-hero,
  .riftbound-hub-page .rift-library-card,
  .riftbound-deck-page .rift-deck-controls,
  .riftbound-deck-page .rift-deck-results,
  .riftbound-deck-page .rift-deck-table,
  .riftbound-deck-page .rift-deck-method {
    padding: 17px;
  }

  .riftbound-hub-page .rift-surface-panel-head,
  .riftbound-deck-page .rift-surface-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .riftbound-hub-page .rift-surface-panel-head > p,
  .riftbound-deck-page .rift-surface-panel-head > p {
    text-align: left;
  }

  .riftbound-hub-page .set-controls,
  .riftbound-hub-page .set-rows,
  .riftbound-deck-page .rift-deck-controls .settings,
  .riftbound-deck-page .rift-deck-method .footnotes {
    grid-template-columns: 1fr;
  }

  .riftbound-hub-page .set-row[data-precon="true"] {
    min-height: 0;
  }

  .riftbound-hub-page .set-row,
  .riftbound-hub-page .set-row[data-precon="true"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px 16px 16px 20px;
  }

  .riftbound-hub-page .set-row::after {
    top: -38px;
    right: -30px;
    transform: rotate(-16deg);
  }

  .riftbound-hub-page .set-row[data-precon="true"] .set-tools {
    width: 100%;
  }

  .riftbound-hub-page .set-tools .btn {
    min-height: 58px;
  }
}

@media (max-width: 520px) {
  .riftbound-hub-page .rift-surface-title-primary,
  .riftbound-deck-page .rift-surface-title-primary {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .riftbound-hub-page .rift-hub-pulse-grid,
  .riftbound-deck-page .rift-deck-results .summary-grid {
    grid-template-columns: 1fr;
  }

  .riftbound-hub-page .rift-hub-pulse-metric,
  .riftbound-hub-page .rift-hub-pulse-metric:nth-child(2n),
  .riftbound-hub-page .rift-hub-pulse-metric:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(76, 224, 255, 0.18);
  }

  .riftbound-hub-page .rift-hub-pulse-metric:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .riftbound-hub-page .set-row {
    transition: none;
  }
}
