/* Shared device picker: wide download shelf and narrow game-page widget. */
.download-picker{padding:16px;container-type:inline-size;color:#174969}
.download-picker [hidden]{display:none!important}
.download-device-tabs{display:flex;gap:6px;padding:6px;border:1px solid #c8e1ed;border-radius:12px;background:#eef8fd}
.download-device-tab{flex:1;min-width:0;min-height:64px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:2px solid transparent;border-radius:9px;background:transparent;color:#4d718b;font-size:12px;font-weight:700;line-height:1.3;cursor:pointer}
.download-device-tab .platform-icon{width:25px;height:27px}
.download-device-tab:hover{background:#deeff9}
.download-device-tab[aria-selected=true]{background:#fff;border-color:#2494c2;color:#145277;box-shadow:0 3px 0 #add4e8}
.download-picker :is(button,a,summary):focus-visible{outline:3px solid #e39613;outline-offset:3px}
.download-device-panel{padding:14px 2px 4px}
.download-selection-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.download-selection-heading h3{font-size:16px;line-height:1.3;margin:0}
.download-preview-badge{font-size:10px;font-weight:700;color:#85580d;background:#fff1c9;border:1px solid #efce7a;border-radius:5px;padding:3px 5px}
.download-selection{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:8px;min-height:44px}
.download-selection-meta{min-width:0}
.download-selection-meta>p{font-size:12px;color:#66849a;line-height:1.5;margin:0}
.download-selection-meta>.release-note{font-size:11px;margin-top:4px}
.download-selection .download-selected-link{flex:none;min-height:44px;font-size:13px;gap:8px;padding:10px 16px;white-space:nowrap}
.download-selected-link svg{height:17px;width:17px;flex:none}
.download-variants{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.download-variants button{min-height:44px;cursor:pointer;font-size:12px;padding:8px 12px;border:1px solid #bad6e6;border-radius:7px;color:#4c7188;background:#f6fbfe}
.download-variants button[aria-pressed=true]{border-color:#258cba;background:#dcf3ff;color:#145676;font-weight:700;box-shadow:inset 0 0 0 1px #258cba}
.download-variants button:hover{background:#e3f4fc}
.download-picker .download-preview{font-size:11px;color:#805123;background:#fff2d6;border-left:3px solid #e8a13a;padding:6px 8px;line-height:1.5;margin:12px 0 0}
.download-install-note{font-size:11px;line-height:1.5;color:#66849a;margin:12px 0 0}
.download-file-details{margin-top:13px;border-top:1px dashed #cbdfe9;padding-top:3px;font-size:11px;color:#62859d}
.download-file-details>summary{cursor:pointer;width:fit-content;min-height:44px;display:flex;align-items:center;gap:5px;color:#337fa8;list-style:none}
.download-file-details>summary::-webkit-details-marker{display:none}
.download-file-details>summary::after{content:'+';font-weight:700}
.download-file-details[open]>summary::after{content:'−'}
.download-file-details>div{border-radius:8px;background:#f4f9fc;padding:10px}
.download-file-details p{margin:0;padding:7px 0;line-height:1.5}
.download-file-details code{display:block;overflow-wrap:anywhere;word-break:break-all;font-size:10px;margin-top:3px;color:#6b8496}
.download-shelf-card{min-width:0;padding:0}
.download-shelf-header{display:flex;align-items:center;gap:18px;padding:12px 18px;border-bottom:1px solid #cee3ef;background:linear-gradient(115deg,#fff,#f6fbfd)}
.download-shelf-shot{flex:none}
.download-shelf-shot img{display:block;width:116px;height:76px;object-fit:cover;border:2px solid #2485b3;border-radius:10px}
.download-shelf-title{min-width:0;flex:1}
.download-shelf-title h2{margin:0;padding:0;border:0;background:none}
.download-shelf-logo{display:block}
.download-shelf-logo img{display:block;width:200px;max-width:100%;height:46px;object-fit:contain;object-position:left center}
.download-shelf-title .release-status{margin:5px 0 0;font-size:11px}
.download-shelf-play{font-size:12px;font-weight:700;display:inline-flex;gap:6px;align-items:center;min-height:44px;white-space:nowrap}
.download-shelf-play svg{width:16px;height:16px;flex:none}
.downloads-panel .download-picker{padding:13px}
.downloads-panel .download-device-tab{font-size:11px;padding-inline:2px}
@container(max-width:480px){
 .download-device-tabs{gap:3px;padding:4px}
 .download-device-tab{font-size:11px;min-height:66px;padding:8px 2px}
 .download-selection{flex-direction:column;align-items:stretch;gap:12px;margin-top:8px}
 .download-selection .download-selected-link{width:100%}
 .download-selection-heading h3{font-size:15px}
}
@media(max-width:600px){
 .download-shelf-header{gap:11px;padding:12px;flex-wrap:wrap}
 .download-shelf-shot img{width:66px;height:62px}
 .download-shelf-logo img{height:44px;width:190px}
 .download-shelf-title .release-status{font-size:10px}
 .download-shelf-play{margin-left:auto}
 .download-picker{padding:12px}
}
