/* Payout section. Krunker's font has tall caps; explicit leading prevents collisions. */
.economy-section { background: #181818; }
.economy-section .section-heading { margin-bottom: 32px; }
.economy-section .section-heading > p { max-width: 400px; font-size: 12px; line-height: 24px; }
.economy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: stretch; }
.calculator { min-width: 0; background: #272727; border: 1px solid #484848; border-radius: 2px; }
.calculator-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 24px; }
.calculator-top h3 { font-size: 16px; line-height: 24px; text-transform: uppercase; }
.entry-label { display: flex; gap: 16px; align-items: center; color: #aaa; font-size: 12px; line-height: 24px; }
.entry-label strong { color: #fff; }
.calculator-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.calculator-controls { padding: 24px; }
.kill-control { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.kill-control label, .outcome-control > span { color: #c1c1c1; font-size: 12px; line-height: 24px; }
.kill-control > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.number-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #666; border-radius: 2px; background: transparent; font: 24px/32px sans-serif; }
.number-button:hover:not(:disabled) { background: #404040; border-color: #ddd; }
#kills-value { min-width: 48px; text-align: center; font-size: 36px; line-height: 52px; }
.calculator input[type=range] { display: block; appearance: none; width: 100%; height: 4px; margin: 24px 0 12px; background: #555; cursor: pointer; }
.calculator input[type=range]::-webkit-slider-thumb { appearance: none; width: 16px; height: 24px; border: 2px solid #ffbd6f; border-radius: 2px; background: var(--orange); }
.calculator input[type=range]::-moz-range-thumb { width: 16px; height: 24px; border: 2px solid #ffbd6f; border-radius: 2px; background: var(--orange); }
.range-labels { display: flex; justify-content: space-between; gap: 16px; color: #999; font-size: 12px; line-height: 24px; }
.outcome-control { display: grid; gap: 12px; margin-top: 32px; }
.segmented { display: grid; gap: 8px; }
.segmented button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; border: 1px solid #555; border-radius: 2px; background: transparent; color: #aaa; text-align: left; font-size: 14px; line-height: 24px; }
.segmented button:hover { border-color: #aaa; color: #fff; }
.segmented button.is-active { background: #393939; border-color: #ccc; color: #fff; }
.choice-dot { width: 8px; height: 8px; flex: none; border: 1px solid #888; }
.segmented button.is-active .choice-dot { border-color: var(--orange); background: var(--orange); }
.segmented button[data-outcome=winner].is-active .choice-dot { border-color: var(--green); background: var(--green); }
.calculator-disclaimer { font-size: 12px; line-height: 24px; color: #999; margin-top: 24px; }
.net-result { display: flex; flex-direction: column; padding: 24px; background: #1f1f1f; min-width: 0; }
.payout-total > span { display: block; color: #bbb; font-size: 12px; line-height: 24px; text-transform: uppercase; }
#total-payout { display: block; color: var(--green); font-size: 48px; line-height: 72px; white-space: nowrap; margin: 8px 0 24px; }
#total-payout small { font-size: 20px; line-height: 32px; }
.payout-lines { display: grid; gap: 12px; }
.payout-lines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 24px; color: #aaa; }
.payout-lines > div > span:last-child { white-space: nowrap; color: #eee; }
.payout-lines .payout-subtotal { color: #eee; }
.payout-lines > div:nth-child(2) > span:last-child { color: var(--orange); }
.payout-net { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 32px; }
.payout-net > span { font-size: 12px; line-height: 24px; color: #aaa; }
#net-result { font-size: 20px; line-height: 32px; color: var(--green); white-space: nowrap; }
.net-result.is-negative #net-result { color: #ff9992; }
.token-panel { display: flex; flex-direction: column; padding: 24px; border: 1px solid #484848; border-radius: 2px; background: #1f1f1f; scroll-margin-top: 32px; }
.token-heading .eyebrow { font-size: 12px; line-height: 24px; }
.token-heading h3 { font-size: 20px; line-height: 32px; margin-top: 4px; }
.fee-headline { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.fee-headline > strong { font-size: 48px; line-height: 72px; color: var(--orange); white-space: nowrap; }
.fee-headline small { font-size: 24px; line-height: 36px; }
.fee-headline > span { font-size: 12px; line-height: 24px; color: #bbb; }
.token-description { font-size: 12px; line-height: 24px; margin-top: 16px; color: #bbb; }
.token-split { margin-top: auto; padding-top: 32px; }
.token-split > p { font-size: 12px; line-height: 24px; }
.allocation-bar { display: flex; gap: 4px; height: 8px; margin: 16px 0; }
.allocation-bar > span:first-child { flex: 9; background: #ddd; }
.allocation-bar > span:last-child { flex: 1; background: var(--orange); }
.allocation-labels { display: flex; justify-content: space-between; gap: 16px; }
.allocation-labels > div:last-child { text-align: right; }
.allocation-labels strong { display: block; font-size: 20px; line-height: 32px; white-space: nowrap; }
.allocation-labels > div:last-child strong { color: var(--orange); }
.allocation-labels small { font-size: 12px; line-height: 24px; }
.allocation-labels span { display: block; font-size: 12px; line-height: 24px; color: #aaa; margin-top: 4px; }
.pool-breakdown { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; margin-top: 40px; }
.pool-heading h3 { font-size: 14px; line-height: 24px; }
.pool-heading p { font-size: 12px; line-height: 24px; margin-top: 8px; color: #888; }
.pool-equation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pool-equation > div { display: flex; flex-direction: column; gap: 8px; }
.pool-equation strong { font-size: 20px; line-height: 32px; white-space: nowrap; }
.pool-equation small { font-size: 12px; line-height: 24px; }
.pool-equation span { color: #999; font-size: 12px; line-height: 24px; }
.pool-equation > div:nth-child(2) strong { color: var(--orange); }
@media (max-width: 1150px) {
  .economy-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
  .calculator-controls, .net-result, .token-panel { padding: 24px 16px; }
  .calculator-top { padding: 16px; }
  #total-payout { font-size: 36px; line-height: 56px; }
  .payout-lines > div { gap: 8px; }
  .payout-net { display: block; }
  .payout-net strong { display: block; margin-top: 8px; }
}
@media (max-width: 960px) {
  .economy-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .calculator-controls, .net-result { padding: 32px; }
  .calculator-top { padding: 16px 32px; }
  .payout-net { display: flex; }
  .payout-net strong { margin: 0; }
  .token-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; padding: 24px 32px; }
  .token-heading { grid-column: 1; }
  .fee-headline { grid-column: 1; grid-row: 2; margin: 0; }
  .token-description { grid-column: 2; grid-row: 1; margin: 0; }
  .token-split { grid-column: 2; grid-row: 2; padding: 0; margin: 0; }
  .pool-breakdown { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .pool-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .pool-heading p { margin: 0; }
}
@media (max-width: 580px) {
  .economy-section .section-heading > p { font-size: 12px; line-height: 24px; }
  .calculator-top { padding: 16px; }
  .calculator-top h3 { font-size: 14px; }
  .entry-label { gap: 8px; }
  .calculator-body { grid-template-columns: 1fr; }
  .calculator-controls, .net-result { padding: 24px; }
  .kill-control { flex-direction: row; align-items: center; gap: 16px; }
  .kill-control > div { gap: 12px; }
  #kills-value { font-size: 30px; line-height: 44px; min-width: 40px; }
  .number-button { width: 32px; height: 40px; }
  .outcome-control { margin-top: 24px; }
  .segmented { grid-template-columns: 1fr 1fr; }
  .segmented button { padding: 8px; justify-content: center; font-size: 12px; gap: 8px; }
  .choice-dot { display: none; }
  .segmented button.is-active { border-color: var(--orange); }
  .segmented button[data-outcome=winner].is-active { border-color: var(--green); }
  .calculator-disclaimer { margin-top: 16px; }
  #total-payout { font-size: 48px; line-height: 72px; margin-bottom: 24px; }
  .payout-net { padding-top: 24px; }
  #net-result { font-size: 18px; line-height: 28px; }
  .token-panel { display: flex; gap: 0; padding: 24px; }
  .fee-headline { margin-top: 16px; }
  .token-description { margin-top: 16px; }
  .token-split { padding-top: 24px; }
  .pool-heading { display: block; }
  .pool-heading p { margin-top: 8px; }
  .pool-equation { grid-template-columns: 1fr; gap: 16px; }
  .pool-equation > div { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .pool-equation strong { font-size: 20px; }
  .pool-equation span { text-align: right; }
}
@media (max-width: 359px) {
  .calculator-controls, .net-result, .token-panel { padding: 16px; }
  .kill-control { gap: 8px; }
  .kill-control > div { gap: 8px; }
  #total-payout { font-size: 36px; line-height: 56px; }
  .payout-net { align-items: start; }
}
/* Compact copy pass: keep the controls and the result visually balanced. */
.economy-section .section-heading > h2 { margin: 0; }
.economy-section .section-heading > p { margin: 0; }
.token-panel { align-self: start; }
.token-description { margin-top: 24px; }
.payout-lines > div:first-child > span:last-child { color: var(--orange); }
.payout-lines > div:nth-child(2) > span:last-child { color: #eee; }
.payout-net { padding-top: 40px; }
@media (max-width: 960px) {
  .token-heading { grid-row: 1; }
  .fee-headline { grid-row: 2; }
  .token-description { grid-row: 1 / span 2; align-self: center; margin: 0; }
}
@media (max-width: 580px) {
  .economy-section .section-heading > p { margin-top: 12px; }
  .token-description { margin-top: 16px; }
  .payout-net { padding-top: 24px; }
}
