.tatari-stats-page{background:#ffbd24 url('/tatari-companion/assets/background02.webp') center top/cover fixed;color:#232838}.stats-tool{max-width:1100px;margin:28px auto 45px;padding:0 20px}.tool-intro{text-align:center}.tool-intro h1{font-size:36px;margin:15px 0 5px}.tool-intro p,.tool-footnote,#tool-status{font-family:Poppins,sans-serif;font-size:12px;line-height:1.5}.stats-mode-tabs{display:flex;max-width:450px;margin:22px auto 15px;padding:5px;border:3px solid #171717;border-radius:14px;background:#fffef1}.stats-mode-tabs button{flex:1;border:0;background:none;color:#514431;font-size:19px;padding:12px;border-radius:9px}.stats-mode-tabs button[aria-selected=true]{background:#ffcf40;color:#171717}.battle-selector{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:20px}.battle-selector select{width:auto}.stats-tool select,.stats-tool input:not([type=checkbox]){width:100%;min-width:0;background:#fff;border:2px solid #a4a4a4;border-radius:9px;color:#232838;padding:9px 10px;font-family:Poppins,sans-serif;font-size:13px;min-height:42px}.battle-selector select{width:auto}.stats-tool input[readonly]{background:#eee;color:#6b6b6b}.stats-tool button:focus-visible,.stats-tool input:focus-visible,.stats-tool select:focus-visible{outline:3px solid #55308b;outline-offset:2px}#stats-workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}.build-editors{grid-column:1;grid-row:1;min-width:0}.stats-output{grid-column:2;grid-row:1;min-width:0;position:sticky;top:16px}.build-panel,.result-panel{border:3px solid #171717;border-radius:17px;background:#fffef1;padding:20px}.build-panel h2{font-size:23px;margin:0 0 18px}.build-field{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:14px}.build-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.build-tiers{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.build-tiers button{border:0;background:none;padding:0;color:#3b2416;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px}.build-tiers img{width:54px;height:54px;object-fit:contain;border:3px solid #aaa;border-radius:50%;filter:grayscale(1);background:#eee}.build-tiers button[aria-pressed=true] img{filter:none;border-color:#f49400;background:#fff3ce}.star-choice{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:65px;border:2px solid #a4a4a4;border-radius:9px;background:#fff;color:#3b2416;cursor:pointer;padding:5px}.star-choice img{max-width:100%;height:32px;object-fit:contain}.star-choice span{font-size:11px;margin-top:3px}.manual-badges{border-radius:12px;background:#e9e9e9;padding:10px;margin-top:12px}.manual-badges label{display:flex;gap:8px;align-items:flex-start;font:11px/1.5 Poppins,sans-serif;margin:10px 0}.manual-badges input{flex-shrink:0}.selected-build{font:12px Poppins,sans-serif;color:#514431;margin-bottom:0}.result-title{text-align:center;font-size:26px;margin:0 0 4px}.result-battle{text-align:center;font:12px Poppins,sans-serif;margin:0 0 12px}.result-pet{text-align:center;min-width:0}.result-pet img{width:90px;height:95px;object-fit:contain}.result-pet h2{font-size:24px;margin:4px 0;overflow-wrap:anywhere}.result-pet span{font-size:12px;color:#665333}.single-stats{display:flex;justify-content:center;gap:5px;margin-top:18px;text-align:center}.single-stats>div{width:33.333%;min-width:0}.single-stats span{display:block;font-size:13px}.result-art{position:relative;width:100%;max-width:125px;aspect-ratio:1;margin:auto}.result-art img{width:100%;height:100%;object-fit:contain}.result-art strong{position:absolute;bottom:13%;left:30%;right:9%;height:17%;display:flex;align-items:center;justify-content:center;line-height:1;font-size:15px;color:white;white-space:nowrap}.comparison-mode#stats-workspace{display:flex;flex-direction:column}.comparison-mode .stats-output{position:static;width:100%}.comparison-mode .build-editors{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:18px}.comparison-grid{display:grid;grid-template-columns:55px minmax(0,1fr) minmax(0,1fr);gap:8px 18px;align-items:center;max-width:660px;margin:auto}.comparison-grid .result-pet img{height:70px;width:80px}.compare-stat-label{font-size:18px}.compare-value{text-align:center;border:2px solid transparent;border-radius:12px;padding:2px;position:relative}.stat-higher{border-color:#f6b120;background:#fff8dc}.higher-label{font:10px Poppins,sans-serif;color:#5b4219;display:block;margin:0 0 4px}.tool-footnote{max-width:750px;text-align:center;margin:20px auto;color:#5b4219}.star-dialog{background:#fffef1;border:3px solid #171717;border-radius:16px;padding:18px;width:min(720px,calc(100vw - 24px));max-height:85vh;color:#232838}.star-dialog::backdrop{background:#0008}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-heading h2{margin:0;font-size:24px}.dialog-close{padding:8px 12px;border:2px solid #3b2416;border-radius:8px;background:#ffcf40;color:#3b2416}.star-dialog>p{font:12px Poppins,sans-serif}.star-picker-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:60vh;overflow-y:auto;padding:3px}.star-picker-grid button{padding:5px;border:2px solid #c3c3c3;border-radius:8px;background:#e9e9e9;color:#3b2416;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.star-picker-grid button[aria-pressed=true]{border-color:#d98100;background:#ffe18a}.star-picker-grid img{width:100%;height:35px;object-fit:contain}.star-picker-grid span{font-size:11px}@media(max-width:850px){#stats-workspace{display:flex;flex-direction:column}.stats-output{position:static;width:100%}.build-editors{width:100%}}@media(max-width:600px){.stats-tool{padding:0 12px;margin-top:18px}.tool-intro h1{font-size:29px}.tool-intro p{font-size:11px}.build-panel,.result-panel{padding:12px}.comparison-mode .build-editors{gap:8px}.comparison-mode .build-field-grid{grid-template-columns:1fr}.comparison-mode .build-tiers{gap:6px}.comparison-mode .build-tiers img{width:42px;height:42px}.comparison-mode .build-panel h2{font-size:20px}.comparison-mode .build-panel select,.comparison-mode .build-panel input:not([type=checkbox]){font-size:11px;padding:7px}.comparison-grid{grid-template-columns:36px minmax(0,1fr) minmax(0,1fr);gap:6px}.comparison-grid .result-pet h2{font-size:18px}.comparison-grid .result-pet img{width:65px;height:65px}.comparison-grid .result-art{max-width:105px}.comparison-grid .result-art strong{font-size:13px}.compare-stat-label{font-size:14px}.build-field-grid{gap:2px 8px}.star-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.tool-footnote{font-size:10px}.single-stats .result-art strong{font-size:14px}}

.dojo-badge-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:10px 0}.dojo-badge-row button{border:2px solid #c4c4c4;background:#e8e8e8;border-radius:9px;padding:4px 2px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#3b2416;font-size:12px;cursor:pointer}.dojo-badge-row img{width:100%;max-width:46px;height:46px;object-fit:contain;filter:grayscale(1);opacity:.55}.dojo-badge-row button[aria-pressed=true]{background:#fff2be;border-color:#e99c17}.dojo-badge-row button[aria-pressed=true] img{filter:none;opacity:1}.badge-help{font:11px/1.4 Poppins,sans-serif;margin:12px 0 5px;color:#665333}.comparison-mode .dojo-badge-row{gap:3px}.comparison-mode .dojo-badge-row img{height:36px}@media(max-width:600px){.comparison-mode .dojo-badge-row{grid-template-columns:repeat(4,minmax(0,1fr))}.comparison-mode .dojo-badge-row img{height:30px}.badge-help{font-size:10px}}

.badge-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;font-size:14px}.badge-heading button{border:0;background:none;color:#888;font:10px Poppins,sans-serif;padding:3px;text-align:right;cursor:default}

.tatari-stats-page .navbar,.tatari-stats-page .navbar nav>a,.tatari-stats-page .navbar summary{color:#fff}.tatari-stats-page .navbar .dropdown{color:#232838}.stats-mode-tabs{margin-top:12px}.result-pet{margin:18px 0 8px}.result-portrait-card{width:135px;height:165px;position:relative;margin:0 auto 20px}.result-pet .result-portrait-background{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.result-pet .result-portrait{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);width:auto;height:auto;max-width:100%;max-height:140px;object-fit:contain}.result-pet .result-stars{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);height:42px;width:auto;max-width:150px;object-fit:contain}.result-art strong{bottom:16%}.tatari-choice{width:100%;min-height:65px;display:flex;align-items:center;gap:12px;padding:6px 12px;border:2px solid #aaa;border-radius:10px;background:white;color:#232838;font-size:19px}.tatari-choice>img{width:50px;height:50px;object-fit:contain}.choice-arrow{margin-left:auto}.tatari-picker-dialog>input{margin:14px 0}.tatari-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:60vh;overflow-y:auto;padding:3px}.tatari-picker-option{position:relative;min-width:0;border:2px solid transparent;border-radius:9px;background:#ddd;color:#232838;padding:20px 4px 7px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px}.tatari-picker-option[aria-pressed=true]{border-color:#f59a13;background:#fff0cc}.tatari-picker-option .picker-portrait{width:65px;height:65px;object-fit:contain;max-width:100%}.picker-element,.picker-role{position:absolute;top:4px;width:17px;height:17px;object-fit:contain}.picker-element{left:4px}.picker-role{right:4px}.star-choice{min-height:52px}.star-choice img{height:42px}.star-picker-grid button{min-height:53px}.badge-heading{margin-top:18px}.dojo-element-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 0}.dojo-element-button{width:100%;border:2px solid #c2c2c2;background:#e8e8e8;border-radius:10px;padding:7px 2px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#6d6d6d;cursor:pointer;font-size:11px}.dojo-element-button img{height:35px;width:35px;object-fit:contain;filter:grayscale(1);opacity:.6}.dojo-element-button[aria-pressed=true]{border-color:#e99a17;background:#fff1bb;color:#3b2416}.dojo-element-button[aria-pressed=true] img{filter:none;opacity:1}.comparison-mode .build-tiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:center}.comparison-mode .dojo-element-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px 5px}.comparison-mode .dojo-element-wrap{grid-column:span 2}.comparison-mode .dojo-element-wrap:nth-child(4){grid-column:2/span 2}.comparison-mode .dojo-element-wrap:nth-child(5){grid-column:4/span 2}.comparison-grid .result-portrait-card{width:95px;height:115px;margin-bottom:16px}.comparison-grid .result-pet .result-portrait{width:auto;height:auto;max-height:100px;max-width:100%}.comparison-grid .result-pet .result-portrait-background{width:100%;height:100%}.comparison-grid .result-pet .result-stars{width:auto;height:34px;max-width:115px;bottom:-15px}.dojo-dialog .dojo-badge-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.dojo-dialog .dojo-badge-row img{height:45px}.comparison-mode .dojo-dialog .dojo-badge-row{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:600px){.tatari-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tatari-picker-option{font-size:11px}.result-portrait-card{width:125px;height:155px}.result-pet .result-portrait{max-height:135px}.comparison-mode .tatari-choice{padding:5px 7px;font-size:15px;gap:5px}.comparison-mode .tatari-choice>img{width:35px;height:40px}.comparison-mode .build-panel h2{font-size:19px}.comparison-mode .dojo-element-button img{width:26px;height:26px}.comparison-mode .dojo-element-button{font-size:10px;gap:5px;padding:6px 1px}.comparison-mode .badge-heading{flex-wrap:wrap;font-size:14px}.badge-heading button{font-size:9px}.result-art strong{bottom:16%}.dojo-dialog .dojo-badge-row{gap:3px}.dojo-dialog .dojo-badge-row img{height:35px}}

.result-pet h2,.tatari-choice>span:not(.choice-arrow),.tatari-picker-option>span{text-transform:uppercase}.build-field-grid{--stat-input-height:56px}.stats-tool .build-field-grid input[readonly],.build-field-grid .star-choice{height:var(--stat-input-height);min-height:var(--stat-input-height);box-sizing:border-box}.comparison-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.comparison-mode .build-tiers{row-gap:16px}.compare-value{padding:6px 2px}@media(max-width:600px){.comparison-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.comparison-mode .build-tiers{row-gap:18px}}

.desktop-versus{display:none}@media(min-width:851px){.comparison-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr)) 90px repeat(3,minmax(0,1fr));gap:20px 10px}.comparison-grid>.result-pet:nth-child(1){grid-column:1/4;grid-row:1}.comparison-grid>.result-pet:nth-child(2){grid-column:5/8;grid-row:1}.comparison-grid .result-portrait-card{width:180px;height:220px;margin-bottom:24px}.comparison-grid .result-pet .result-portrait{max-height:195px}.comparison-grid .result-pet .result-stars{height:50px;max-width:200px;bottom:-20px}.comparison-grid .result-pet h2{font-size:32px}.desktop-versus{display:block;grid-column:4;grid-row:1/3;width:90px;height:auto;align-self:center;justify-self:center}.compare-value{grid-row:2}.compare-value[data-side=left][data-stat=ATK]{grid-column:1}.compare-value[data-side=left][data-stat=HP]{grid-column:2}.compare-value[data-side=left][data-stat=DEF]{grid-column:3}.compare-value[data-side=right][data-stat=ATK]{grid-column:5}.compare-value[data-side=right][data-stat=HP]{grid-column:6}.compare-value[data-side=right][data-stat=DEF]{grid-column:7}.comparison-mode .build-tiers{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.comparison-mode .build-tiers img{width:54px;height:54px}}

.result-name-line>.result-element,.result-name-line>.result-role{display:none}@media(min-width:851px){.comparison-mode .result-panel{background:none;border:0;border-radius:0;padding:0 0 8px}.comparison-mode .result-title{display:none}.comparison-mode .comparison-grid{max-width:820px;grid-template-columns:repeat(3,minmax(0,1fr)) 145px repeat(3,minmax(0,1fr));gap:8px 8px}.comparison-mode .result-pet{margin:0 0 0}.comparison-mode .result-portrait-card{width:145px;height:180px;margin-bottom:22px}.comparison-mode .result-pet .result-portrait{max-height:160px}.comparison-mode .result-pet .result-stars{height:42px;max-width:160px;bottom:-17px}.comparison-mode .result-name-line{display:flex;align-items:center;justify-content:center;gap:10px}.comparison-mode .result-name-line h2{font-size:30px;white-space:nowrap}.comparison-mode .result-name-line>.result-element,.comparison-mode .result-name-line>.result-role{display:block;width:25px;height:25px;object-fit:contain;flex-shrink:0}.comparison-mode .desktop-versus{width:145px}.comparison-mode .comparison-grid .result-art{max-width:90px}.comparison-mode .comparison-grid .result-art strong{font-size:12px}.comparison-mode .compare-value{padding:2px;border-radius:16px;min-width:0}.comparison-mode .stat-higher{background:transparent;border:4px solid #fff3a2}.comparison-mode .build-editors{max-width:900px;margin:12px auto 0;gap:18px}.comparison-mode .build-panel{padding:18px}.comparison-mode .build-panel h2{font-size:22px}.comparison-mode .build-field{font-size:12px}.comparison-mode .tatari-choice{font-size:17px;min-height:52px}.comparison-mode .tatari-choice>img{width:40px;height:40px}.comparison-mode .build-tiers{justify-items:center;margin:16px 0 20px}.comparison-mode .build-tiers img{width:48px;height:48px}.stats-tool:has(.comparison-mode){max-width:1100px}.comparison-mode .dojo-element-row{grid-template-columns:repeat(3,minmax(0,1fr))}.comparison-mode .dojo-element-wrap,.comparison-mode .dojo-element-wrap:nth-child(4),.comparison-mode .dojo-element-wrap:nth-child(5){grid-column:auto}}

@media(min-width:851px){.comparison-mode .result-pet .result-stars{height:52px;max-width:190px;bottom:-22px}.comparison-mode .result-portrait-card{margin-bottom:28px}}

.tatari-stats-page .navbar .dropdown,.tatari-stats-page .navbar .dropdown a,.tatari-stats-page .navbar .dropdown span{color:#fff}@media(min-width:601px){.tatari-picker-dialog{width:min(480px,calc(100vw - 32px));padding:18px}.tatari-picker-dialog .dialog-heading h2{font-size:23px}.tatari-picker-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:65vh}.tatari-picker-option{padding:20px 3px 6px;font-size:12px;line-height:1.15;font-family:Critters,system-ui,sans-serif}.tatari-picker-option>span{text-transform:none;font-weight:normal}.tatari-picker-option .picker-portrait{width:65px;height:65px}.tatari-picker-dialog .picker-element,.tatari-picker-dialog .picker-role{width:17px;height:17px}}

.stats-tool .dialog-close{font:16px/1 Critters,system-ui,sans-serif;min-width:78px;height:44px;padding:0 14px;border:2px solid #3b2416;border-radius:9px;background:#ffcf40;color:#3b2416;flex-shrink:0}.dialog-heading{align-items:center;min-height:44px}.calculator-lore{display:none}@media(min-width:601px){.tatari-picker-dialog{width:min(560px,calc(100vw - 40px))}.star-dialog:not(.tatari-picker-dialog):not(.dojo-dialog){width:min(760px,calc(100vw - 40px))}.star-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:65vh}.star-picker-grid button{min-height:82px;padding:4px}.star-picker-grid img{width:100%;height:72px;object-fit:contain}.dojo-dialog{width:min(560px,calc(100vw - 40px))}}
@media(min-width:851px){#stats-workspace:not(.comparison-mode){display:flex;flex-direction:column;align-items:center;gap:20px}#stats-workspace:not(.comparison-mode) .stats-output{position:static;width:100%;max-width:720px}#stats-workspace:not(.comparison-mode) .result-panel{border:0;background:none;padding:0}#stats-workspace:not(.comparison-mode) .result-title{display:none}#stats-workspace:not(.comparison-mode) .build-editors{width:100%;max-width:560px}#stats-workspace:not(.comparison-mode) .result-pet{margin-top:20px}#stats-workspace:not(.comparison-mode) .result-portrait-card{width:145px;height:180px;margin-bottom:25px}#stats-workspace:not(.comparison-mode) .result-pet .result-portrait{max-height:160px}#stats-workspace:not(.comparison-mode) .result-pet .result-stars{height:52px;max-width:190px;bottom:-22px}#stats-workspace:not(.comparison-mode) .result-name-line{display:flex;align-items:center;justify-content:center;gap:10px}#stats-workspace:not(.comparison-mode) .result-name-line>.result-element,#stats-workspace:not(.comparison-mode) .result-name-line>.result-role{display:block;width:25px;height:25px;object-fit:contain}#stats-workspace:not(.comparison-mode) .result-name-line h2{font-size:32px}.calculator-lore{display:block;font:12px/1.45 Poppins,sans-serif;max-width:560px;text-align:center;margin:10px auto 16px}.single-stats{max-width:320px;margin:10px auto 0;gap:12px}.single-stats .result-art{max-width:95px}.single-stats .result-art strong{font-size:12px}}
.stats-tool .star-dialog{max-width:calc(100vw - 24px)}

.stats-tool .dialog-close{width:48px;min-width:48px;height:52px;padding:0;border:0;border-radius:0;background:transparent url('/tatari-companion/tatari-data/images/close-button-bg.png') center/contain no-repeat;display:flex;align-items:center;justify-content:center;cursor:pointer}.stats-tool .dialog-close img{width:26px;height:26px;object-fit:contain;pointer-events:none}

.spa-modifiers{margin:16px 0 0;padding:12px;border:1px solid #d7c69b;border-radius:12px;min-width:0}.spa-modifiers legend{font-weight:600;padding:0 6px}.spa-tier-toggle{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px}.spa-tier-toggle input{width:18px;height:18px;flex:none}.spa-help{font-size:12px;line-height:1.6;margin:8px 0 0;color:#665f52}
.badge-heading button{min-height:44px;padding:8px;font-size:12px;color:#665f52;cursor:pointer}
.badge-heading{flex-wrap:wrap}

.stats-account-settings{display:flex;flex-wrap:wrap;gap:4px 18px;margin-bottom:14px;padding:10px 12px;border:1px solid #d6c6a3;border-radius:9px;background:#fff7dc;font:12px/1.5 Poppins,sans-serif}.stats-account-settings label{display:flex;gap:8px;align-items:center;min-height:36px;cursor:pointer}.stats-account-settings input{width:18px;height:18px;accent-color:#d99300}.stats-account-settings small,.stats-account-settings>a{flex-basis:100%;font-size:12px}.stats-account-settings label:has(input:disabled){opacity:.65}.build-panel button:disabled,.build-panel select:disabled{opacity:.65;cursor:default}.stats-basis{text-align:center;font:12px/1.5 Poppins,sans-serif;margin:0 0 14px}.battle-selector{flex-wrap:wrap}.battle-selector select{max-width:100%}.stats-tool .build-field-grid input[type=number]{height:56px}

@media(min-width:851px){.comparison-mode .result-pet{margin-top:20px}}

.comparison-mode .build-editors{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-mode .build-panel{min-width:0}.comparison-mode .build-panel fieldset{min-width:0}@media(max-width:360px){.comparison-mode .build-editors{grid-template-columns:minmax(0,1fr)}}
