/* Stake-only text palette, matching the warm cream already used on Stats. */
#view-stake .canonical-page {
  --text: #e9d4bc;
  --moon: #e9d4bc;
}

/* These position values use literal pale-white colors in the shared stylesheet. */
#view-stake #stakeView #positionsBody .pos-amount,
#view-stake #stakeView #positionsBody .pos-reward,
#view-stake #stakeView #positionsBody .pos-badge:not(.burn) {
  color: #e9d4bc;
}

/* Keep position cards compact without changing the Stake heading or form. */
#view-stake #stakeView #positionsBody .pos-amount { font-size: 20px; }
#view-stake #stakeView #positionsBody .position-tier,
#view-stake #stakeView #positionsBody .pos-meta,
#view-stake #stakeView #positionsBody .pos-reward,
#view-stake #stakeView #positionsBody .pos-action { font-size: 13px; }

/* Keep the Stake heading prominent and its supporting sentence smaller. */
#view-stake #stakeView .st-header {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 22px 26px;
  border: 1px solid #38312d;
  border-radius: 12px;
  background: #181819;
}

#view-stake #stakeView .st-header-divider { display: none; }

#view-stake #stakeView .right { padding-top: 0; }

#view-stake #stakeView .st-title {
  color: #f6b968;
  font-family: var(--sans);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.02em;
  text-shadow: none;
}

#view-stake #stakeView .st-subtitle {
  color: #a39489;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 930px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  #view-stake #stakeView .st-header { padding: 18px; }
}

#view-stake #stakeView .claims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#view-stake #stakeView .claims button { min-width: 0; width: 100%; }
#view-stake #stakeView #stakeClaimHint { grid-column: 1 / -1; }
#view-stake #stakeView #stakeClaimHint:empty { display: none; }
#view-stake #stakeView .rewards .r-row[hidden] { display: none; }
#view-stake #stakeView .rewards .stake-total-rewards {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; margin: 0 0 8px; border: 1px solid #4a3529;
  border-radius: 9px; background: #211b18; color: #f6eee8;
}
#view-stake #stakeView .rewards .stake-total-rewards b {
  color: #f6b968; white-space: nowrap; font-size: 16px;
}
/* Fit more of the desktop Stake view on screen without shrinking mobile controls. */
@media (min-width: 1201px) {
  #view-stake #stakeView { max-width: 1360px; padding-top: 18px; gap: 10px; }
  #view-stake #stakeView .right { align-self: stretch; }
  #view-stake #stakeView .right .rewards { margin-top: auto; }
  #view-stake #stakeView .st-header { display: flex; align-items: center; gap: 28px; padding: 10px 18px; }
  #view-stake #stakeView .st-title { flex: none; font-size: 26px; margin: 0; }
  #view-stake #stakeView .st-subtitle { font-size: 16px; margin: 0; }
  #view-stake #stakeView .chips { gap: 10px; }
  #view-stake #stakeView .chip { padding: 10px 14px; }
  #view-stake #stakeView .positions { padding: 14px 16px; margin-top: 12px; }
  #view-stake #stakeView .positions-head { padding-bottom: 8px; margin-bottom: 8px; }
  #view-stake #stakeView #positionsBody { gap: 10px; }
  #view-stake #stakeView #positionsBody .stake-position { min-height: 158px; padding: 12px; }
  #view-stake #stakeView #positionsBody .pos-left { gap: 4px; }
  #view-stake #stakeView #positionsBody .pos-right { padding-top: 8px; }
  #view-stake #stakeView #positionsBody .stake-time-track { margin-top: 8px; }
  #view-stake #stakeView #positionsBody .st-permanent .permanent-mascot { width: min(210px, max(0px, calc(100% - 80px))); bottom: 44px; }
}

/* One six-tier APY strip beneath both Stake columns. */
#view-stake #stakeView > .apy-card { width: 100%; margin-top: 0; padding: 12px 14px; }
#view-stake #stakeView > .apy-card .positions-head { margin-bottom: 8px; padding-bottom: 8px; }
#view-stake #stakeView > .apy-card .positions-compact-body { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
#view-stake #stakeView > .apy-card .pos-row { min-width: 0; padding: 10px 4px; }
#view-stake #stakeView > .apy-card .pos-amount { font-size: 16px; }

@media (min-width: 1201px) {
  #view-stake #stakeView > .apy-card { flex: 0 0 100%; }
}
@media (max-width: 1200px) {
  #view-stake #stakeView > .apy-card .positions-compact-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  #view-stake #stakeView > .apy-card .positions-compact-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Stake keeps the shared copyright footer without its Rules and social links. */
body:has(#view-stake:not([hidden])) > .flame-footer > .flame-footer-links { display: none; }
