/* Stats only: keep the shared navigation, other routes, and footer untouched. */
body:has(#view-stats:not([hidden])) { background: #0b0909; }
body:has(#view-stats:not([hidden])) > .flame-footer { display: none; }
#view-stats:not([hidden]) { max-width: 1150px; margin: 0 auto; color: #e9d4bc; font-family: system-ui, sans-serif; }
#view-stats .stats-redesign { max-width: 1150px; margin: 0 auto; padding: 30px 0 0; font-family: system-ui, sans-serif; font-size: 15px; }
#view-stats .stats-redesign :is(table, th, td, button, input, summary, details) { font-family: inherit; }
#view-stats .wallet-lookup :is(input, button) { font-family: inherit; }
#view-stats .stats-redesign, #view-stats .stats-redesign * { box-sizing: border-box; }
#view-stats .stats-intro { margin-bottom: 18px; padding: 12px 20px; border: 1px solid #38312d; border-radius: 12px; background: #181819; }
#view-stats .stats-eyebrow { color: #f6b968; font-size: 13px; font-weight: 750; letter-spacing: .09em; margin: 0 0 7px; }
#view-stats .stats-intro h1 { color: #e9d4bc; font: 750 clamp(21px, 1.8vw, 26px)/1.2 system-ui, sans-serif; margin: 0; }
#view-stats .stats-intro > p:not(.stats-eyebrow) { color: #a39489; font-size: 15px; margin: 0; }
#view-stats .stats-headlines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
#view-stats .stats-redesign .card { border: 1px solid #38312d; border-radius: 11px; box-shadow: none; }
#view-stats .stats-headline { display: flex; flex-direction: column; min-height: 108px; padding: 14px 18px; background: #1b1c20; }
#view-stats .stats-headline h2 { color: #f6b968; font: 750 13px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .045em; margin: 0; }
#view-stats .stats-headline strong { color: #f6b968; font: 750 28px/1.2 system-ui, sans-serif; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
#view-stats .stats-headline p { color: #a39489; font-size: 14px; margin: 3px 0 0; }
#view-stats .stats-panel { background: #181819; padding: 18px 20px; margin: 0 0 18px; min-width: 0; }
#view-stats .stats-panel h2 { color: #e9d4bc; font: 750 16px/1.3 system-ui, sans-serif; margin: 0; }
#view-stats .stats-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
#view-stats .stats-panel-heading p { color: #a39489; font-size: 13px; margin: 2px 0 0; }
#view-stats .stats-range-row { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
#view-stats .stats-range-btn, #view-stats .wins-tab-btn { min-height: 36px; background: #241d1a; border: 1px solid #38312d; color: #a39489; font: 650 13px system-ui, sans-serif; padding: 7px 14px; border-radius: 7px; }
#view-stats .stats-range-btn:hover, #view-stats .wins-tab-btn:hover { color: #e9d4bc; border-color: #ed8849; }
#view-stats .stats-range-btn.active, #view-stats .wins-tab-btn.active { background: #3a281d; border-color: #a96935; color: #f6b968; }
#view-stats .stats-history-state { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 18px; background: #1d1d20; border: 1px solid #2f2b29; border-radius: 9px; min-height: 70px; }
#view-stats .stats-history-state strong { color: #e9d4bc; font-size: 15px; }
#view-stats .stats-history-state p { color: #a39489; font-size: 13px; margin: 2px 0 0; }
#view-stats .stats-loading-mark { width: 21px; height: 21px; border: 2px dashed #bd854f; border-radius: 50%; flex: none; }
#view-stats .stats-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#view-stats .stats-lines { margin: 10px 0 0; }
#view-stats .stats-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid #302b28; padding: 7px 0; min-height: 33px; }
#view-stats .stats-lines dt { color: #b7a9a0; }
#view-stats .stats-lines dd { color: #d5b990; margin: 0; font-variant-numeric: tabular-nums; }
#view-stats .stats-lines .stats-total { border-top: 1px solid #5b4332; font-weight: 750; margin-top: auto; padding-top: 12px; }
#view-stats .stats-lines .stats-total dt, #view-stats .stats-lines .stats-total dd { color: #f6b968; }
#view-stats .stats-breakdowns .stats-panel { display: flex; flex-direction: column; }
#view-stats .stats-breakdowns .stats-lines { flex: 1; display: flex; flex-direction: column; }
#view-stats .stats-wins .stats-panel-heading { align-items: center; margin-bottom: 13px; }
#view-stats .stats-view-all { border: 0; background: transparent; color: #ed8849; font-size: 14px; min-height: 34px; padding: 5px 0; }
#view-stats .stats-view-all:hover { color: #f6b968; background: transparent; }
#view-stats .stats-wins-tabs { display: flex; gap: 8px; margin-bottom: 13px; flex-wrap: wrap; }
#view-stats .stats-table-scroll { overflow-x: auto; }
#view-stats .wins-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
#view-stats .wins-table th, #view-stats .wins-table td { padding: 10px 8px; border-top: 1px solid #302b28; text-align: left; }
#view-stats .wins-table th { color: #a39489; font-size: 12px; font-weight: 700; text-transform: uppercase; }
#view-stats .wins-table td { color: #b7a9a0; }
#view-stats .stats-wins-status { color: #f6b968; margin: 10px 0 0; font-size: 14px; }
#view-stats .stats-recent-disclosure { border-top: 1px solid #302b28; margin-top: 9px; padding-top: 9px; color: #a39489; font-size: 13px; }
#view-stats .stats-recent-disclosure summary { cursor: pointer; }
#view-stats .stats-recent-disclosure .card { margin-top: 10px; }
#view-stats .stats-wallet { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(350px, 1.6fr); align-items: center; gap: 14px 20px; }
#view-stats .stats-wallet h2 { color: #f6b968; font-size: 14px; }
#view-stats .stats-wallet p { color: #a39489; font-size: 13px; margin: 2px 0 0; }
#view-stats .wallet-lookup { display: block; margin: 0; }
#view-stats #lookup-form { display: flex; gap: 10px; align-items: center; margin: 0; }
#view-stats #lookup-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#view-stats #lookup-address { flex: 1; min-width: 0; height: 42px; background: #100e0e; border: 1px solid #4c392d; border-radius: 7px; padding: 9px 12px; color: #e9d4bc; font-size: 14px; }
#view-stats #lookup-submit { min-width: 90px; height: 42px; background: #38251a; border: 1px solid #7b4d31; color: #f6b968; font-size: 14px; }
#view-stats #exWalletResult { grid-column: 2; color: #a39489; font-size: 13px; overflow-wrap: anywhere; }
#view-stats #lookup-result { margin: 0; }
#view-stats button:focus-visible, #view-stats input:focus-visible { outline: 2px solid #ed8849; outline-offset: 3px; }
@media (max-width: 800px) { #view-stats .stats-breakdowns { grid-template-columns: 1fr; } #view-stats .stats-wallet { grid-template-columns: 1fr; } #view-stats #exWalletResult { grid-column: 1; } }
@media (max-width: 640px) { #view-stats .stats-redesign { padding-top: 18px; } #view-stats .stats-headlines { grid-template-columns: 1fr; gap: 12px; } #view-stats .stats-headline { min-height: 108px; } #view-stats .stats-panel { padding: 16px; margin-bottom: 14px; } #view-stats .stats-panel-heading { flex-wrap: wrap; } #view-stats .stats-range-row { width: 100%; } #view-stats .stats-range-btn { flex: 1; } #view-stats #lookup-form { flex-wrap: wrap; } #view-stats #lookup-address { flex-basis: 100%; } #view-stats #lookup-submit { width: 100%; } }
