/* Rewards components only. Sidebar, Profile and game rules are intentionally untouched. */
.rw-view { --rw-muted: #a6a0b3; --rw-purple: #b87bfa; --rw-border: #ffffff14; color: #eeeaf5; font-family: "Clash Grotesk", system-ui, sans-serif; max-width: 1560px; margin: 0 auto; min-width: 0; }
.rw-view *, .rw-view *::before, .rw-view *::after { box-sizing: border-box; }
.rw-view [hidden] { display: none !important; }
.rw-view h1, .rw-view h2, .rw-view p, .rw-view dl, .rw-view dd { margin: 0; }
.rw-view h1 { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.rw-view h2 { font-size: 15px; font-weight: 600; }
.rw-view .rw-header { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 6px 0 22px; border-bottom: 1px solid var(--rw-border); }
.rw-view .rw-eyebrow { color: var(--rw-muted); font-size: 11px; margin-bottom: 7px; }
.rw-view .rw-summary { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, max-content)); justify-content: end; gap: 18px 28px; min-width: 0; }
.rw-view .rw-summary > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-items: baseline; row-gap: 6px; min-width: 0; }
.rw-view [data-rewards="totals-freshness"] { color: #e3b77e; font-size: 11px; font-weight: 400; }
.rw-view .rw-summary dt { font-size: 12px; color: var(--rw-muted); overflow-wrap: anywhere; }
.rw-view .rw-summary dd { font-size: 23px; font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.rw-view .rw-summary small { color: var(--rw-muted); font-size: 12px; font-weight: 400; }
.rw-view .rw-summary .rw-epoch-identity { max-width: 260px; }
.rw-view .rw-summary [data-state="unavailable"] { font-size: 14px; font-weight: 400; color: var(--rw-muted); }
.rw-view .rw-epoch-identity dd { font-size: 17px; }
.rw-view .rw-status { font-size: 12px; color: var(--rw-muted); line-height: 1.5; padding: 14px 0 20px; overflow-wrap: anywhere; }
.rw-view .rw-status[data-phase="stale"], .rw-view .rw-status[data-phase="error"] { color: #e3b77e; }
.rw-view .rw-status[data-phase="disconnected"] { color: #c6b4d7; }
.rw-view .rw-content { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.rw-view .rw-chart-panel { min-width: 0; }
.rw-view .rw-options { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 3px; border: 1px solid var(--rw-border); border-radius: 7px; }
.rw-view .rw-options button { border-color: transparent; background: transparent; line-height: 1.3; min-height: 40px; }
.rw-view .rw-options button[aria-pressed="true"] { background: #b77bfa1e; border-color: #b77bfa4d; color: #ead7ff; }
.rw-view .rw-mode-summary { margin: 18px 0 22px; line-height: 1.5; overflow-wrap: anywhere; }
.rw-view .rw-mode-summary p:first-child { font-size: 16px; font-variant-numeric: tabular-nums; }
.rw-view .rw-mode-summary strong { font-size: 23px; font-weight: 600; }
.rw-view .rw-mode-summary p + p { color: var(--rw-muted); font-size: 12px; margin-top: 4px; }
.rw-view .rw-filters { width: 100%; margin-bottom: 14px; }
.rw-view .rw-filters button { flex: 1 1 0; min-width: 0; }
.rw-view .rw-chart-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.rw-view .rw-chart-title span { color: var(--rw-muted); font-size: 11px; text-align: right; }
.rw-view .rw-axis-caption { color: var(--rw-muted); font-size: 12px; margin-bottom: 18px; }
.rw-view .rw-axis-caption small { margin-left: 10px; font-size: 10px; color: #a196ac; }
.rw-view .rw-plot-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
.rw-view .rw-y-axis { position: relative; font-size: 11px; color: var(--rw-muted); font-variant-numeric: tabular-nums; }
.rw-view .rw-y-axis span { position: absolute; right: 0; transform: translateY(-50%); max-width: 100%; overflow-wrap: anywhere; text-align: right; }
.rw-view .rw-y-axis span:first-child { color: #d0b2ea; }
.rw-view .rw-plot { position: relative; height: clamp(280px, 48vh, 460px); min-width: 0; touch-action: pan-y; }
.rw-view .rw-plot svg, .rw-view .rw-timeline svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.rw-view .rw-grid { fill: none; stroke: #ffffff0d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rw-view .rw-line { fill: none; stroke: var(--rw-purple); stroke-width: 2; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; }
.rw-view .rw-endpoint, .rw-view .rw-inspect-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--rw-purple); transform: translate(-50%, -50%); pointer-events: none; }
.rw-view .rw-inspect-dot { width: 6px; height: 6px; background: #f3e6ff; }
.rw-view .rw-crosshair { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #c1a6d755; pointer-events: none; }
.rw-view .rw-tooltip { position: absolute; top: 10px; left: 0; right: 0; margin-inline: auto; padding: 8px 10px; background: #251b30; color: #f3e6ff; border: 1px solid #b77bfa45; border-radius: 5px; font-size: 12px; line-height: 1.5; width: max-content; max-width: 100%; pointer-events: none; z-index: 2; }
.rw-view .rw-chart-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--rw-muted); font-size: 14px; padding: 20px; pointer-events: none; }
.rw-view .rw-time-labels { margin: 12px 0 20px 82px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--rw-muted); font-variant-numeric: tabular-nums; }
.rw-view .rw-time-labels span:last-child { text-align: right; }
.rw-view button { font: inherit; color: #e9ddf5; border: 1px solid #ffffff24; background: #ffffff05; border-radius: 5px; cursor: pointer; min-height: 40px; padding: 7px 12px; font-size: 12px; }
.rw-view button:hover { background: #b77bfa14; border-color: #b77bfa66; }
.rw-view button:disabled { opacity: .4; cursor: default; }
.rw-view :is(button, [tabindex]):focus-visible { outline: 2px solid #b77bfa; outline-offset: 4px; }
.rw-view .rw-timeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--rw-muted); margin-bottom: 10px; }
.rw-view .rw-timeline-wrap { padding: 0 44px; }
.rw-view .rw-timeline { height: 56px; position: relative; background: #ffffff03; border-block: 1px solid var(--rw-border); }
.rw-view .rw-overview-line { fill: none; stroke: #a975d37a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rw-view .rw-timeline-selection { position: absolute; top: 0; bottom: 0; border: 1px solid #b77bfa70; background: #b77bfa0b; pointer-events: none; }
.rw-view .rw-range-handle { position: absolute; top: 0; bottom: 0; width: 44px; height: 100%; padding: 0; border: 0; background: transparent; touch-action: none; cursor: ew-resize; }
.rw-view .rw-range-handle[data-chart="start"] { transform: translateX(-100%); }
.rw-view .rw-range-handle::after { content: ""; position: absolute; top: calc(50% - 14px); left: -4px; height: 28px; width: 8px; border: 1px solid #b77bfa; border-radius: 3px; background: #382643; }
.rw-view .rw-range-handle[data-chart="start"]::after { left: auto; right: -4px; }
.rw-view .rw-chart-help { font-size: 11px; color: #92899f; line-height: 1.6; margin-top: 14px; max-width: 640px; }
.rw-view .rw-activity { min-width: 0; border-left: 1px solid var(--rw-border); padding-left: 24px; }
.rw-view .rw-activity header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rw-view .rw-activity header span { font-size: 11px; color: var(--rw-muted); }
.rw-view .rw-feed-scroll { max-height: clamp(380px, 64vh, 660px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #594467 transparent; overflow-anchor: none; position: relative; }
.rw-view .rw-feed { list-style: none; margin: 0; padding: 0; }
.rw-view .rw-event { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 6px 14px 0; border-top: 1px solid var(--rw-border); font-size: 13px; }
.rw-view .rw-event-label { font-weight: 600; overflow-wrap: anywhere; }
.rw-view .rw-event-amount { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.rw-view .rw-event-amount[data-effect="gain"] { color: #caa5f2; }
.rw-view .rw-event-amount[data-effect="burn"] { color: #dfb9a1; }
.rw-view .rw-event-actor { font-size: 12px; color: var(--rw-muted); overflow-wrap: anywhere; }
.rw-view .rw-event-time { text-align: right; color: #92899f; font-size: 10px; white-space: nowrap; align-self: end; }
.rw-view .rw-feed-empty { color: var(--rw-muted); font-size: 13px; padding: 20px 0; }
.rw-view .rw-earlier { width: 100%; margin: 12px 0; }
.rw-view .rw-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  .rw-view .rw-header { align-items: start; gap: 20px; }
  .rw-view .rw-summary { justify-content: start; flex-basis: 100%; }
  .rw-view .rw-content { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .rw-view .rw-activity { padding-left: 18px; }
}
@media (max-width: 850px) {
  .rw-view .rw-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-view .rw-content { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rw-view .rw-activity { border-left: 0; border-top: 1px solid var(--rw-border); padding: 20px 0 0; }
  .rw-view .rw-activity header { flex-direction: row; justify-content: space-between; }
  .rw-view .rw-feed-scroll { max-height: 390px; }
}
@media (max-width: 480px) {
  .rw-view h1 { font-size: 26px; }
  .rw-view .rw-header { padding-top: 2px; gap: 18px; }
  .rw-view .rw-summary { column-gap: 16px; }
  .rw-view .rw-summary .rw-epoch-identity { max-width: 100%; }
  .rw-view .rw-summary dd { font-size: 21px; }
  .rw-view .rw-epoch-identity dd { font-size: 17px; }
  .rw-view .rw-mode-summary p:first-child { font-size: 14px; }
  .rw-view .rw-mode-summary strong { font-size: 20px; }
  .rw-view .rw-plot-row { grid-template-columns: 57px minmax(0, 1fr); gap: 9px; }
  .rw-view .rw-plot { height: 280px; }
  .rw-view .rw-time-labels { margin-left: 66px; font-size: 10px; }
  .rw-view .rw-chart-title { align-items: start; }
  .rw-view .rw-chart-title span { max-width: 130px; line-height: 1.5; }
}
@media (max-height: 550px) and (min-width: 851px) {
  .rw-view .rw-plot { height: 240px; }
  .rw-view .rw-feed-scroll { max-height: 410px; }
}
@media (prefers-reduced-motion: reduce) {
  #rewardsTool.tool-panel-animate { animation: none !important; }
  .rw-view *, .rw-view *::before, .rw-view *::after { animation: none !important; transition: none !important; }
}
