.cash-guide {
  width: min(var(--wp-max), calc(100% - 64px));
  margin: 36px auto 72px;
  color: var(--wp-text);
}

.cash-guide h1, .cash-guide h2, .cash-guide h3 { margin: 0; line-height: 1.13; }
.cash-guide h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.035em; }
.cash-guide h3 { font-size: 23px; letter-spacing: -.03em; }
.cash-guide p { margin: 0; color: var(--wp-secondary); }
.cash-guide [id] { scroll-margin-top: 100px; }
.cash-guide :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.cash-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 24px 0 8px;
}

.cash-guide-hero h1 { max-width: 19ch; font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -.04em; text-wrap: balance; }
.cash-guide-hero p { max-width: 64ch; margin-top: 16px; font-size: 16px; line-height: 1.7; }
.cash-guide-hero .cash-guide-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #e8bb77; }
:root[data-theme=light] .cash-guide-hero .cash-guide-kicker { color: #845014; }
.cash-hero-actions, .cash-panel-actions, .cash-game-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cash-hero-actions { flex-direction: column; align-items: stretch; }
html body.wp-next .cash-hero-actions .button.primary { background: #e8bb77; color: #241a0c; border-color: #e8bb77; }
html body.wp-next .cash-hero-actions .button.primary:hover { background: #f6cd92; border-color: #f6cd92; }
html body.wp-next .cash-hero-actions .button.secondary { background: var(--wp-panel); color: var(--wp-text); border-color: var(--wp-border); }
html body.wp-next .cash-hero-actions .button.secondary:hover { background: var(--wp-raised); border-color: var(--wp-muted); }
.cash-guide .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.cash-guide .button svg, .cash-card-link svg { width: 16px; height: 16px; flex: none; }

.cash-section { margin-top: clamp(32px, 4vw, 48px); }
.cash-section > h2 { margin-bottom: 20px; }
.cash-game-grid, .cash-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cash-game-card, .cash-panel, .cash-board {
  border: 1px solid var(--wp-border);
  border-radius: 18px;
  background: var(--wp-panel);
}
.cash-game-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; container-type: inline-size; transition: border-color 160ms ease, background-color 160ms ease; }
.cash-game-card:hover, .cash-game-card:focus-within { border-color: var(--cash-edge); }
.cash-game-card header { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.cash-game-icon, .cash-panel-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; }
.cash-game-icon { color: var(--cash-accent); background: var(--cash-tint); }
.cash-game-context { color: var(--cash-accent); font-size: 13px; font-weight: 500; }
.cash-game-icon svg, .cash-panel-icon svg { width: 20px; height: 20px; }
.cash-game-card p { line-height: 1.7; }
.cash-game-card footer { margin-top: auto; padding-top: 4px; }
.cash-missions { --cash-accent: #a5d9ba; --cash-tint: #203c2c; --cash-edge: #466b54; }
.cash-daily { --cash-accent: #efbc97; --cash-tint: #402e23; --cash-edge: #77543c; }
:root[data-theme=light] .cash-missions { --cash-accent: #285a3c; --cash-tint: #e0f0e5; --cash-edge: #97bea5; }
:root[data-theme=light] .cash-daily { --cash-accent: #87461d; --cash-tint: #fae8db; --cash-edge: #ceac95; }
@supports (grid-template-rows: subgrid) {
  .cash-game-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
}
@container (max-width: 300px) { .cash-game-links { gap: 4px 12px; } }
.cash-card-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--cash-accent, var(--wp-text)); font-weight: 650; }
.cash-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.cash-voice { --cash-accent: #d4c6ff; --cash-tint: #272138; --cash-edge: #4a3c6a; --cash-button: #d8cbff; --cash-button-text: #231837; }
.cash-paid { --cash-accent: #ffce90; --cash-tint: #32261c; --cash-edge: #654a31; --cash-button: #ffd198; --cash-button-text: #352012; }
:root[data-theme=light] .cash-voice { --cash-accent: #55328d; --cash-tint: #f1ebfc; --cash-edge: #c8b8e3; --cash-button: #55328d; --cash-button-text: #fff; }
:root[data-theme=light] .cash-paid { --cash-accent: #804516; --cash-tint: #fcf0df; --cash-edge: #e3c6a1; --cash-button: #804516; --cash-button-text: #fff; }
.cash-panel { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: clamp(18px, 2.4vw, 28px); border-color: var(--cash-edge); }
.cash-panel-head { display: flex; align-items: start; gap: 12px; }
.cash-panel-head h2 { font-size: clamp(22px, 2.25vw, 28px); }
.cash-panel-head p { margin-top: 6px; }
.cash-panel-icon { background: var(--cash-tint); border: 1px solid var(--cash-edge); color: var(--cash-accent); }
.cash-voice-rewards, .cash-quote { background: var(--cash-tint); border: 1px solid var(--cash-edge); border-radius: 13px; }
.cash-voice-rewards { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cash-voice-rewards div { padding: 12px 16px; }
.cash-voice-rewards div + div { border-inline-start: 1px solid var(--cash-edge); }
.cash-voice-rewards dt, .cash-quote-grid label, .cash-quote-result > span { font-size: 13px; color: var(--wp-secondary); }
.cash-voice-rewards dd, .cash-quote-result output { margin: 0; color: var(--cash-accent); font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.cash-panel .cash-panel-note { font-size: 13px; }
.cash-steps { margin: 0; padding-inline-start: 22px; }
.cash-steps li + li { margin-top: 6px; }
.cash-steps li::marker, .cash-steps a { color: var(--cash-accent); }
.cash-steps a { text-decoration: underline; text-underline-offset: 3px; }
.cash-steps code { font-size: .9em; }
.cash-panel-actions { margin-top: auto; padding-top: 4px; }
html body.wp-next .cash-panel-actions .button.primary { background: var(--cash-button); border-color: var(--cash-button); color: var(--cash-button-text); }
html body.wp-next .cash-panel-actions .button.primary:hover { background: var(--cash-tint); border-color: var(--cash-accent); color: var(--cash-accent); }

.cash-quote { padding: clamp(12px, 2vw, 20px); }
.cash-quote strong { color: var(--cash-accent); }
.cash-quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 14px; margin-top: 15px; }
.cash-quote-grid label, .cash-quote-result { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cash-quote-grid input { width: 100%; height: 42px; border: 1px solid var(--cash-edge); border-radius: 8px; background: var(--wp-panel); color: var(--wp-text); padding: 0 10px; font: inherit; font-size: 16px; }
.cash-quote-result output { display: block; overflow-wrap: anywhere; }
.cash-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.cash-presets[hidden] { display: none; }
.cash-presets button, .cash-pagination a { min-height: 42px; padding: 4px; border: 1px solid var(--cash-edge, var(--wp-border)); border-radius: 8px; background: var(--wp-panel); color: var(--wp-text); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.cash-presets button:is(:hover,[aria-pressed=true]) { color: var(--cash-accent); border-color: var(--cash-accent); }

.cash-board { overflow: clip; }
.cash-board-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: clamp(15px, 2.6vw, 30px); }
.cash-board-head p { margin-top: 8px; }
.cash-board-head small { color: var(--wp-muted); }
.cash-board .cash-board-empty { padding: 0 30px 24px; }
.cash-board-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cash-board-table :is(th, td) { padding: 11px clamp(8px, 2vw, 24px); text-align: start; border-top: 1px solid var(--wp-border); overflow-wrap: anywhere; }
.cash-board-table thead { background: var(--wp-raised); color: var(--wp-secondary); font-size: 13px; }
.cash-board-table thead th:first-child { width: 12%; }
.cash-board-table thead th:nth-child(3) { width: 25%; }
.cash-board-table thead th:nth-child(4) { width: 21%; }
.cash-board-table :is(th, td):nth-child(n+3) { text-align: end; }
.cash-board-table tbody th { font-weight: 600; }
.cash-board-table tbody tr:hover { background: var(--wp-raised); }
.cash-pagination { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--wp-border); }
.cash-pagination a { display: grid; place-items: center; min-width: 42px; }
.cash-pagination a:is(:hover,[aria-current]) { background: var(--wp-raised); border-color: var(--wp-muted); }

@media (max-width: 760px) {
  .cash-guide { width: calc(100% - 32px); margin-top: 20px; margin-bottom: 48px; }
  .cash-guide-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; }
  .cash-hero-actions { flex-direction: row; }
  .cash-game-grid, .cash-path-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 460px) {
  .cash-game-card { padding: 20px; }
  .cash-hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .cash-panel-actions { gap: 6px 12px; }
  .cash-board-table :is(th, td) { padding: 9px 5px; font-size: 12px; }
  .cash-board-table thead th:first-child { width: 43px; }
  .cash-board-table thead th:nth-child(3) { width: 76px; }
  .cash-board-table thead th:nth-child(4) { width: 61px; }
  .cash-pagination { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cash-guide *, .cash-guide *::after { transition: none !important; animation: none !important; } }
