/* Pixel trophies inside the original DVADI championship palette and shell. */
#trophyCabinet{box-sizing:border-box;min-width:0;overflow-x:hidden;inset:0;margin:auto;overscroll-behavior:contain}
#trophyCabinet>*{min-width:0;max-width:100%;box-sizing:border-box}
#trophyCabinet .trophy-grid>.trophy-card{content-visibility:visible}
#trophyCabinet[open]{overflow-x:hidden}
#trophyCabinetOpen{font-size:13px}#menu:has([data-mode="local"].selected) #trophyCabinetOpen{display:none}
#trophyCabinet{width:min(1080px,96vw);max-width:96vw;max-height:94dvh;padding:20px 26px 0;border:3px solid #e8e8df;border-radius:0;color:#f3f2e7;background:linear-gradient(90deg,#0b0e01ef,#0b0e01ca),url('../assets/ui/competition-backdrop.png') right center/cover;font-family:'Century Gothic',Arial,sans-serif;overflow:auto;box-shadow:0 12px 45px #0008;color-scheme:dark}#trophyCabinet::backdrop{background:#000c}
#trophyCabinet .trophy-heading{position:relative;display:block;max-width:none;margin:0;padding:0 85px 13px;text-align:center;border-bottom:1px solid #69684c;background:transparent}#trophyCabinet .trophy-heading>small{display:block;font-size:11px;color:#d5cf93}#trophyCabinet h2{margin:5px 0 11px;font-size:30px;line-height:1.2;font-weight:400;color:#fff;text-shadow:1px 2px #000;letter-spacing:0}#trophyCabinet h2 span{color:inherit}#trophyCabinet .trophy-close{position:absolute;right:0;top:9px;padding:6px 14px;min-height:34px;font-size:10px;border-width:2px}#trophyCabinet .trophy-stats{font-size:12px;line-height:1.5;color:#d5cf93;margin:0}
#trophyCabinet .trophy-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #69684c;flex-wrap:wrap}#trophyCabinet label{display:flex;align-items:center;gap:9px;font-size:12px;color:#d3d0b6}#trophyCabinet select{margin:0;min-height:33px;max-width:210px;width:auto;font-size:12px;padding:5px 9px}#trophyCabinet .trophy-only-won{white-space:nowrap;cursor:pointer}#trophyCabinet input{width:16px;height:16px;accent-color:#d63b13}
#trophyCabinet .trophy-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 16px;padding:17px 0 24px}#trophyCabinet .trophy-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;min-height:232px;padding:8px 5px 14px;border:0;border-bottom:2px solid #706e43;border-radius:0;background:linear-gradient(0deg,#42402740,transparent 45%);color:#eeecd7;content-visibility:auto;contain-intrinsic-size:150px 232px;cursor:pointer;box-shadow:none}#trophyCabinet .trophy-card:hover{background:linear-gradient(0deg,#6c683a66,transparent 65%);border-color:#d6ce8e}#trophyCabinet .trophy-card:focus-visible,#trophyCabinet button:focus-visible,#trophyCabinet select:focus-visible{outline:2px solid #f2da64;outline-offset:3px}
#trophyCabinet .trophy-art-wrap{position:relative;display:flex;align-items:flex-end;justify-content:center;flex-shrink:0;width:100%;height:168px;margin-bottom:8px}#trophyCabinet .trophy-art{display:block;width:134px;max-width:100%;background-image:var(--trophy-atlas);background-repeat:no-repeat;image-rendering:pixelated}#trophyCabinet .trophy-card[data-earned="false"] .trophy-art{filter:grayscale(1) brightness(.45) sepia(.25);opacity:.65}#trophyCabinet .trophy-count{position:absolute;right:0;bottom:0;display:grid;place-items:center;min-width:35px;height:35px;padding:0 7px;border:2px solid #fff;border-radius:50%;background:linear-gradient(#e77e5c,#c6310a 65%);color:#fff;font:700 21px 'Century Gothic',Arial,sans-serif;text-shadow:1px 1px #6b1c09;box-shadow:1px 2px #0008}#trophyCabinet .trophy-card strong{display:block;max-width:100%;font-size:12px;line-height:1.3;font-weight:400;text-transform:uppercase;text-align:center;overflow-wrap:anywhere;text-shadow:1px 2px #000}#trophyCabinet .trophy-card small{font-size:9px;color:#a4a082;margin-top:auto;padding-top:4px;font-weight:400}#trophyCabinet .trophy-card[data-earned="true"] small{color:#e0d17f}
#trophyCabinet .trophy-details{margin:0 0 20px;padding:14px 16px;border:1px solid #807d55;background:#090c01ad;color:#dedbc1}#trophyCabinet .trophy-details h3{font-size:17px;font-weight:400;color:#e0d17f;margin:0 0 8px}#trophyCabinet .trophy-details p,#trophyCabinet .trophy-details li{font-size:12px;line-height:1.6;color:#d0ccb0}#trophyCabinet .trophy-details ul{padding-left:20px;margin-bottom:0}#trophyCabinet .trophy-empty{grid-column:1/-1;padding:40px 10px;text-align:center;font-size:13px;color:#c4c1a4}
#trophyCabinet .trophy-heading>.trophy-requirement{grid-column:1/-1;grid-row:4;margin:1px 0 0;color:#d5cf93;font-size:11px;line-height:1.5;text-align:center}
#trophyCabinet .trophy-heading>.trophy-storage{grid-column:1/-1;grid-row:5;margin:3px 0 0;color:#ffbe86;font-size:10px;line-height:1.6;text-align:center}
@media(max-width:850px){#trophyCabinet .trophy-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:570px){#trophyCabinet{padding:16px 13px 0}#trophyCabinet .trophy-heading{padding:0 60px 13px}#trophyCabinet .trophy-heading>small{font-size:9px}#trophyCabinet h2{font-size:23px;line-height:1.25}#trophyCabinet .trophy-close{right:0;top:16px;font-size:9px;padding:5px 9px}#trophyCabinet .trophy-stats{font-size:10px}#trophyCabinet .trophy-filters{padding:12px 0;gap:10px}#trophyCabinet label{font-size:10px}#trophyCabinet select{max-width:185px;font-size:11px}#trophyCabinet .trophy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 14px;padding-top:13px}#trophyCabinet .trophy-card{min-height:229px}#trophyCabinet .trophy-card strong{font-size:11px}}
@media(max-height:500px) and (orientation:landscape){#trophyCabinet{padding-top:12px}#trophyCabinet h2{font-size:24px;margin:3px 0 6px}#trophyCabinet .trophy-heading{padding-bottom:10px}#trophyCabinet .trophy-close{top:7px}#trophyCabinet .trophy-filters{padding:9px 0}}
#trophyCabinet[open] .trophy-heading{display:grid!important;grid-template-columns:76px minmax(0,1fr) 76px;width:100%!important;max-width:none!important;min-width:0;padding:0 0 13px!important;margin:0!important;gap:5px 8px;box-sizing:border-box}
#trophyCabinet .trophy-heading>small{grid-column:2;grid-row:1}
#trophyCabinet .trophy-heading>h2{grid-column:2;grid-row:2;margin:0;text-align:center}
#trophyCabinet .trophy-heading>.trophy-stats{grid-column:1/-1;grid-row:3;text-align:center}
#trophyCabinet .trophy-heading>.trophy-close{position:static;grid-column:3;grid-row:1/3;align-self:center;justify-self:end;margin:0}
@media(max-width:570px){#trophyCabinet[open] .trophy-heading{grid-template-columns:60px minmax(0,1fr) 60px;gap:5px 4px}}

#trophyCabinet .trophy-requirement strong{color:#ffd24a;font-weight:700}

/* Same championship palette: compact medals, plain rows and visible progress. */
#trophyCabinet .achievement-tabs{display:flex;justify-content:center;gap:12px;padding:13px 0;border-bottom:1px solid #69684c}
#trophyCabinet .achievement-tabs button{min-width:130px;min-height:38px;font-size:12px}
#trophyCabinet .achievement-tabs button[aria-pressed="true"]{border-color:#e4d48a;color:#ffe78d;background:linear-gradient(#5e5b35,#35351c)}
#trophyCabinet [hidden]{display:none!important}
#trophyCabinet .achievement-summary{color:#e0d17f;font-size:13px;text-align:center;margin:17px 0 8px}
#trophyCabinet .achievement-rules{color:#c6c2a5;font-size:12px;line-height:1.6;text-align:center;max-width:740px;margin:0 auto 18px}
#trophyCabinet .achievement-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding-bottom:22px}
#trophyCabinet .achievement{display:flex;align-items:center;gap:18px;padding:18px 6px;border-bottom:1px solid #69684c;min-width:0}
#trophyCabinet .achievement-medal{flex:0 0 76px;width:76px;height:88px;display:grid;place-items:center;filter:grayscale(1) brightness(.7);opacity:.8}
#trophyCabinet .achievement-icon{display:block;width:76px;height:88px;object-fit:contain;image-rendering:pixelated}
#trophyCabinet .achievement[data-earned="true"] .achievement-medal{filter:none;opacity:1}
#trophyCabinet .achievement-text{flex:1;min-width:0}
#trophyCabinet .achievement h3{margin:0 0 6px;color:#e5e3cd;font-size:17px;font-weight:400}
#trophyCabinet .achievement p{font-size:14px;color:#d6d3b9;line-height:1.55;margin:0 0 10px}
#trophyCabinet .achievement progress{display:block;appearance:none;width:100%;height:6px;border:0;background:#303222;accent-color:#c7b85b}
#trophyCabinet .achievement progress::-webkit-progress-bar{background:#303222}
#trophyCabinet .achievement progress::-webkit-progress-value{background:#c7b85b}
#trophyCabinet .achievement progress::-moz-progress-bar{background:#c7b85b}
#trophyCabinet .achievement small{display:block;margin-top:7px;color:#bdb99a;font-size:11px}
#trophyCabinet .achievement[data-earned="true"] small{color:#e0d17f}
#trophyCabinet .achievement-warning{color:#ffbe86;font-size:12px}
@media(max-width:570px){#trophyCabinet .achievement-list{grid-template-columns:minmax(0,1fr)}#trophyCabinet .achievement{gap:13px;padding:15px 2px}#trophyCabinet .achievement-tabs button{min-width:112px;min-height:42px}#trophyCabinet .achievement h3{font-size:15px}}

@media(max-width:570px){#trophyCabinet .achievement-medal{flex-basis:64px;width:64px;height:75px}#trophyCabinet .achievement-icon{width:64px;height:75px}#trophyCabinet .achievement p{font-size:13px;line-height:1.55}}

/* Standalone sprites must never inherit another trophy from the atlas. */
#trophyCabinet img.trophy-art,#trophyDetailDialog img.trophy-art{background-image:none;object-fit:contain;width:auto;height:158px;max-width:100%;image-rendering:pixelated}
#trophyDetailDialog{box-sizing:border-box;inset:0;margin:auto;width:min(690px,94vw);max-width:94vw;max-height:90dvh;overflow:auto;padding:22px 26px;border:3px solid #e8e8df;border-radius:0;color:#eeecd7;background:linear-gradient(90deg,#0b0e01f5,#0b0e01dc),url('../assets/ui/competition-backdrop.png') right center/cover;font-family:'Century Gothic',Arial,sans-serif;color-scheme:dark}
#trophyDetailDialog::backdrop{background:#000b}
#trophyDetailDialog .trophy-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid #807d55}
#trophyDetailDialog h2{font-size:25px;font-weight:400;margin:0;color:#e0d17f;overflow-wrap:anywhere}
#trophyDetailDialog button{flex-shrink:0;min-height:34px;padding:6px 16px;font-size:11px}
#trophyDetailDialog button:focus-visible{outline:2px solid #ffe18a;outline-offset:3px}
#trophyDetailDialog .trophy-detail-hero{display:flex;align-items:center;justify-content:center;gap:35px;padding:26px 0}
#trophyDetailDialog .trophy-art{display:block;flex-shrink:0;max-width:42%;background-image:var(--trophy-atlas);background-repeat:no-repeat;image-rendering:pixelated}
#trophyDetailDialog .trophy-detail-hero[data-earned="false"] .trophy-art{filter:grayscale(1) brightness(.6);opacity:.8}
#trophyDetailDialog .trophy-detail-count{font-size:22px;color:#ffe18a;margin:0 0 9px}
#trophyDetailDialog p{font-size:13px;line-height:1.6;color:#d0ccb0}
#trophyDetailDialog .trophy-win-list{list-style:none;padding:0;margin:0}
#trophyDetailDialog .trophy-win-list li{display:flex;align-items:center;gap:20px;padding:15px 6px;border-top:1px solid #69684c;min-width:0}
#trophyDetailDialog .trophy-win-crest{display:grid;place-items:center;flex:0 0 58px;width:58px;height:64px;color:#e0d17f;font-size:14px}
#trophyDetailDialog .trophy-win-crest img{display:block;max-width:58px;max-height:64px;width:auto;height:auto;object-fit:contain}
#trophyDetailDialog .trophy-win-list li>div{min-width:0}
#trophyDetailDialog .trophy-win-list strong{display:block;font-size:17px;font-weight:400;overflow-wrap:anywhere;color:#fff}
#trophyDetailDialog .trophy-win-list span:not(.trophy-win-crest){display:block;font-size:13px;color:#c9c5a9;margin-top:5px}
@media(max-width:520px){#trophyDetailDialog{padding:16px}#trophyDetailDialog h2{font-size:21px}#trophyDetailDialog .trophy-detail-heading{gap:10px}#trophyDetailDialog .trophy-detail-hero{gap:20px}#trophyDetailDialog .trophy-detail-count{font-size:18px}}

#trophyDetailDialog img.trophy-art{height:235px;max-width:44%}
