/* Hardware and game listings share the public site's fonts, chrome and tokens. */
body.hardware-page{--on-yellow:#17243b;font-family:'DM Sans',Arial,sans-serif;background:var(--page);color:var(--navy)}
.hardware-page .hardware-main{padding-block:20px 40px!important}.hardware-breadcrumb{display:flex;gap:8px;font-size:13px;color:var(--slate);margin-bottom:16px}.hardware-breadcrumb a{text-decoration:underline!important}
.hardware-section-nav{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}.hardware-section-nav a{display:flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.hardware-section-nav a[aria-current]{background:var(--yellow);color:var(--on-yellow)!important}
html:root body.hardware-page main h1{font-family:'Space Grotesk',Arial,sans-serif;font-size:36px;line-height:1.2;margin:12px 0 20px;letter-spacing:-.8px}
.hardware-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) repeat(3,minmax(140px,190px));gap:10px}.hardware-toolbar label{min-width:0;position:relative}.hardware-toolbar input,.hardware-toolbar select{width:100%;height:40px!important;font-size:14px!important;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--navy);padding:0 12px;box-shadow:none}.hardware-search svg{position:absolute;left:12px;top:12px;width:18px;height:18px;pointer-events:none}.hardware-search input{padding-left:38px!important}
.hardware-results{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:52px;margin:8px 0;font-size:14px;flex-wrap:wrap}.hardware-results p{margin:0}.hardware-results button,.hardware-view button{border:1px solid var(--line);background:var(--surface);color:var(--navy);min-height:40px;padding:8px 12px;cursor:pointer;border-radius:8px}.hardware-view{display:flex;gap:4px;margin-left:auto}.hardware-view button[aria-pressed=true]{background:var(--yellow);color:var(--on-yellow)}
.hardware-platforms{position:static;display:flex;gap:8px;overflow-x:auto;padding:10px 0;background:var(--page);border-block:1px solid var(--line);scrollbar-width:thin}.hardware-platforms a{display:flex;align-items:center;gap:8px;min-height:40px;white-space:nowrap;border:1px solid var(--line);padding:8px 12px;border-radius:8px;background:var(--surface);font-size:13px}.hardware-platforms a span{color:var(--slate)}
.hardware-group{scroll-margin-top:calc(var(--catalog-shell-height) + 24px);margin-top:28px}.hardware-group>h2{display:flex;align-items:center;gap:10px;font-family:'Space Grotesk',sans-serif;font-size:22px;line-height:1.3;margin:0 0 16px}.hardware-group>h2 span{font:400 14px 'DM Sans',sans-serif;color:var(--slate)}.hardware-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:stretch}
.hardware-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0;box-shadow:none}.hardware-photo{border:0;border-bottom:1px solid var(--line);background:#fff;border-radius:0!important;aspect-ratio:1;position:relative;display:block;flex:none;align-self:center;width:100%;padding:8px;cursor:zoom-in}.hardware-photo-layer{position:absolute;inset:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.hardware-photo-layer img,.hardware-photo-layer svg,.hardware-photo-layer .photo-part{width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}.hardware-photo-layer .photo-part{display:flex;align-items:center;justify-content:center}.hardware-photo-layer .photo-part img,.hardware-photo-layer .photo-part svg{width:100%;height:100%;max-width:100%;object-fit:contain}.hardware-alternate{opacity:0;pointer-events:none}.hardware-photo-hint{position:absolute;bottom:8px;right:8px;padding:4px 7px;background:#fff;color:#17243b;border:1px solid #dce3ec;border-radius:5px;font-size:11px;opacity:0}.hardware-photo:focus-visible .hardware-photo-hint{opacity:1}@media(hover:hover){.hardware-photo:has(.hardware-alternate):hover .hardware-photo-layer:first-child{opacity:0}.hardware-photo:hover .hardware-alternate,.hardware-photo:hover .hardware-photo-hint{opacity:1}}
.hardware-card-body{padding:12px;min-height:307px;display:flex;flex-direction:column;flex:1;min-width:0}.hardware-meta{display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:var(--slate);margin:0 0 4px;min-height:20px}.hardware-origin{display:inline-flex;align-items:center;gap:4px;min-width:0}.hardware-flag{object-fit:cover;border-radius:1px;flex:none;vertical-align:middle}.hardware-card h3{font:700 16px/24px 'DM Sans',Arial,sans-serif;color:var(--navy);margin:0 0 4px;min-height:48px;overflow-wrap:break-word}.hardware-card h3 a:hover{text-decoration:underline}.hardware-platform{align-self:flex-start;display:inline-block;font-size:11px;line-height:14px;padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface-raised);margin-bottom:8px;min-height:24px;max-width:100%;color:var(--slate)}
.hardware-prices{margin-top:auto;border-top:1px solid var(--line);padding-top:10px}.hardware-prices dl{margin:0}.hardware-prices dl>div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 8px;padding:5px 0}.hardware-prices dl>div:first-child{min-height:50px;align-items:flex-start}.hardware-prices dt{color:var(--slate);font-size:13px;line-height:1.5}.hardware-prices dd{font-size:16px;line-height:1.5;font-weight:700;color:var(--navy);text-align:right;margin:0;font-variant-numeric:tabular-nums}.hardware-converted{display:block;font-size:11px;font-weight:400;color:var(--slate)}.hardware-details{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:40px;margin-top:6px;border:0;background:transparent;color:var(--navy);padding:6px 0;font-size:13px;text-align:left;cursor:pointer}.hardware-details:hover{text-decoration:underline}
.hardware-empty{text-align:center;padding:48px 16px}.hardware-empty button{padding:12px 16px;min-height:44px;background:var(--yellow);color:var(--on-yellow);border:0;border-radius:8px;cursor:pointer}.hardware-empty h2{font-family:'Space Grotesk',sans-serif}
.hardware-dialog{background:var(--surface);color:var(--navy);border:1px solid var(--line);border-radius:14px;padding:24px;max-width:min(640px,calc(100vw - 32px));width:100%;max-height:85dvh;overflow:auto}.hardware-dialog::backdrop{background:#0009}.hardware-dialog h2{font:700 22px/1.35 'DM Sans',sans-serif;padding-right:45px;margin:0 0 20px}.hardware-dialog-close{position:absolute;right:12px;top:12px;min-height:44px;min-width:44px;font-size:24px;background:var(--surface);color:var(--navy);border:1px solid var(--line);cursor:pointer}.hardware-gallery-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.hardware-gallery-tabs button{min-height:44px;background:var(--surface);color:var(--navy);padding:8px 12px;border:1px solid var(--line);cursor:pointer}.hardware-gallery-tabs button[aria-pressed=true]{background:var(--yellow);color:var(--on-yellow)}.hardware-gallery-art{height:55dvh;background:#fff;display:flex;align-items:center;justify-content:center;padding:12px;border-radius:8px;overflow:hidden}.hardware-gallery-art img,.hardware-gallery-art svg,.hardware-gallery-art .photo-part{max-width:100%;width:100%;height:100%;object-fit:contain;display:flex;align-items:center;justify-content:center}.hardware-price-copy p{font-size:14px;line-height:1.65;margin:0 0 14px}.hardware-price-copy a{text-decoration:underline!important;display:inline-flex;align-items:center;min-height:44px}.hardware-page:has(dialog[open]){overflow:hidden}
[data-hardware-catalog][data-view=compact] .hardware-photo{aspect-ratio:auto;height:140px}[data-hardware-catalog][data-view=compact] .hardware-card-body{padding:12px}[data-hardware-catalog][data-view=compact] .hardware-meta{min-height:0}
.hardware-page .catalog-shell-brand{font-family:'DM Sans',sans-serif}.hardware-page [hidden]{display:none!important}.hardware-page :focus-visible{outline:2px solid var(--focus);outline-offset:3px}.hardware-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1023px){.hardware-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.hardware-search{grid-column:1/-1}}
@media(max-width:639px){html:root body.hardware-page main h1{font-size:28px;line-height:1.2;margin:14px 0 18px}.hardware-page .hardware-main{padding-top:16px!important}.hardware-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.hardware-toolbar label:last-child{grid-column:1/-1}.hardware-toolbar input,.hardware-toolbar select{height:44px!important;font-size:16px!important}.hardware-grid{gap:var(--card-gap)}.hardware-card-body{padding:12px;min-height:349px}.hardware-prices dl>div{display:block;padding:2px 0}.hardware-prices dd{text-align:left;line-height:22px}.hardware-prices dl>div:first-child{min-height:60px}.hardware-meta{font-size:11px;min-height:0;gap:3px 5px}.hardware-meta .hardware-origin{flex-basis:auto}.hardware-meta>span[aria-hidden]{display:none}.hardware-card h3{font-size:16px;line-height:22px;min-height:66px}.hardware-platform{font-size:11px;margin-bottom:4px}.hardware-prices dt{font-size:12px}.hardware-prices dd{font-size:15.5px;overflow-wrap:break-word}.hardware-details{min-height:44px;font-size:12px}.hardware-platforms{gap:6px}.hardware-platforms a{font-size:12px;min-height:44px}.hardware-group>h2{font-size:21px}.hardware-converted{font-size:10px}.hardware-dialog{padding:20px;max-height:90dvh}.hardware-dialog h2{font-size:18px}.hardware-view button{min-height:44px}[data-hardware-catalog][data-view=compact] .hardware-photo{height:100px}}

/* The console catalog has four selectors; keep them paired on narrow screens. */
.hardware-toolbar-consoles{grid-template-columns:minmax(180px,1fr) repeat(4,minmax(125px,165px))}
@media(max-width:1023px){.hardware-toolbar-consoles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.hardware-toolbar-consoles label:last-child{grid-column:auto}}

/* Match the main public catalog's responsive tile widths and square media. */
@media(min-width:640px){.hardware-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){body.hardware-page .hardware-main{width:calc(100% - 112px)}.hardware-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.hardware-photo-unavailable{display:grid;place-items:center;cursor:default;color:var(--muted);font-size:12px;text-align:center}
@media(min-width:1440px){.hardware-grid{grid-template-columns:repeat(5,minmax(0,1fr))}[data-hardware-catalog][data-view=grid] .hardware-photo{max-width:230px}}

/* Match the visible retail-box footprint, including padded publicity images. */
.hardware-photo-layer{container-type:size}.hardware-photo-frame{position:absolute;left:50%;top:50%;display:block;flex:none;width:min(calc(100cqw * var(--frame-width)),calc(100cqh * var(--frame-height)));aspect-ratio:var(--frame-ratio);transform:translate(calc(-1 * var(--frame-x)),calc(-1 * var(--frame-y)))}

.hardware-region-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:820px;margin:0 0 14px}.hardware-region-tabs [role=tab]{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px;padding:9px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--navy);font:700 15px/1.2 'DM Sans',Arial,sans-serif;cursor:pointer}.hardware-region-tabs [role=tab][aria-selected=true]{background:var(--yellow);border-color:var(--yellow);color:var(--on-yellow)}.hardware-region-tabs [data-count]{font-size:12px;font-weight:500;opacity:.72;font-variant-numeric:tabular-nums}
@media(max-width:639px){.hardware-region-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 12px}.hardware-region-tabs [role=tab]{min-height:46px;padding:8px 5px;font-size:13px;gap:5px}}

/* Source scope is visible beside every regional or hardware-only reference. */
.hardware-price-reference{display:block;font-size:.72em;font-weight:500;line-height:1.35;color:var(--muted,#64748b);margin-top:.25rem;overflow-wrap:anywhere}
