/* The fonts, Heebo and Inter, are linked by each page's own head (see `fontLinks` in worker/views/layout.mjs): a sheet
   that imports them makes the browser wait for this file before it asks for theirs. */

:root{color-scheme:dark;--cover-ratio:3/4;--bg:#111218;--surface:#191b22;--border:#2b2d36;--field-border:#70727f;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--ink:#f8f8f9;--muted:#b0b1bd;--accent:#f5ed49;--positive:#87e4ae;font-family:Heebo,Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-size:1rem}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:default;opacity:.5}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
[hidden]{display:none!important}
svg{width:1.25rem;height:1.25rem;display:block;flex:none}
.container{width:min(100% - 5rem,1320px);margin-inline:auto}
.skip{position:fixed;top:1rem;inset-inline-start:1rem;z-index:10;transform:translateY(-200%);background:var(--accent);color:#151515;padding:var(--space-2) var(--space-4)}
.skip:focus{transform:none}
.top{border-bottom:1px solid var(--border);background:#14151b}
.top-inner{height:70px;display:flex;align-items:center;gap:var(--space-12)}
.logo{display:inline-flex;align-items:center;gap:var(--space-2);flex:none;min-height:1.5rem;font:900 1.18rem Inter,Arial,sans-serif;letter-spacing:-.06em;direction:ltr}
.logo-icon{display:grid;place-items:center;background:var(--accent);color:#18180f;width:34px;height:34px;border-radius:8px}
.logo-icon svg{width:22px;height:22px}
.brand-accent{color:var(--accent)}
nav,.header-actions{display:flex;align-items:center;gap:var(--space-8)}
nav a,nav button{font-size:.94rem;font-weight:600;color:#e0e0e6;white-space:nowrap}
nav button,.icon-btn,.text-button{background:none;border:0;padding:0}
nav a:hover,nav button:hover,.icon-btn:hover{color:var(--accent)}
.header-actions{margin-inline-start:auto;gap:var(--space-3)}
.icon-btn{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border);border-radius:9px;position:relative}
.cart-toggle{color:var(--accent)}
#cart-count{position:absolute;top:-7px;inset-inline-end:-6px;background:var(--accent);color:#111;border-radius:20px;min-width:18px;text-align:center;font:700 .72rem/18px Inter,Arial}
.demo{display:flex;align-items:center;gap:var(--space-2);color:var(--muted);padding-block:var(--space-4);font-size:.88rem}
.demo-dot,.hero-label span,.hero-caption span{height:6px;width:6px;background:var(--accent);border-radius:50%;display:inline-block;flex:none}
.demo-divider{height:13px;width:1px;background:#4c4e58}
.hero{isolation:isolate;position:relative;min-height:410px;padding:var(--space-12) var(--space-12);display:flex;align-items:center;overflow:hidden;border:1px solid #34343b;border-radius:18px;background:#15151a url('assets/hero.webp') center 56%/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#121318 3%,rgba(17,18,24,.96) 23%,rgba(17,18,24,.72) 39%,rgba(17,18,24,.17) 62%,transparent 80%),linear-gradient(0deg,rgba(17,18,24,.55),transparent 32%)}
.hero-content{width:min(480px,100%)}
.hero-label{display:flex;align-items:center;gap:var(--space-2);color:var(--accent);margin:0 0 var(--space-4);font-weight:700}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.65rem,5.5vw,5.15rem);font-weight:900;letter-spacing:-.06em;line-height:1.01;margin-bottom:var(--space-4)}
h1 em{font-style:normal;color:var(--accent)}
.hero-copy{color:#dedee4;max-width:360px;line-height:1.6;font-size:1.06rem;margin-bottom:var(--space-6)}
.hero-actions{display:flex;gap:var(--space-3);flex-wrap:wrap}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:44px;padding:var(--space-3) var(--space-4);border-radius:8px;font-weight:800;font-size:.96rem;border:1px solid transparent;white-space:nowrap}
.primary{background:var(--accent);color:#18180e}
.primary:hover{background:#fff66c}
.secondary{background:#1c1d25;color:#eee;border-color:#3d3e48}
.secondary:hover{border-color:#8d8e96}
/* What a pointer rests on, and what is pressed, is marked: each state stands out more than the one before it. A hover is
   shown only where a pointer can hover, so a touch does not leave it behind. */
.primary:active{background:#e0d835}
.secondary:active{background:#2a2b36;border-color:#a9aab3}
@media(hover:hover){
 .work-nav a:hover{color:var(--ink)}
 .navigation-group>summary:hover{background:#242630}
 .filter-list :is(button,a):hover{border-color:#8d8e96}
 .store-platforms a:hover{border-color:#656673}
 .footer a:hover{color:var(--accent)}
 .import-platform a:hover{color:var(--accent)}
}
.hero-caption{position:absolute;bottom:1.4rem;left:1.55rem;color:#f8f7f4;font:800 .8rem Inter,Arial;letter-spacing:.17em;display:flex;align-items:center;gap:var(--space-2)}
.perks{display:grid;grid-template-columns:repeat(3,1fr);background:#17181f;border:1px solid var(--border);border-radius:11px;margin-block:var(--space-4) var(--space-12);padding:var(--space-4) 0}
.perks>div{display:flex;align-items:center;gap:var(--space-3);padding-inline:var(--space-5)}
.perks>div+div{border-inline-start:1px solid var(--border)}
.perk-icon{display:grid;place-items:center;color:var(--accent);width:39px;height:39px;border-radius:8px;background:#292a20;flex:none}
.perks p{margin:0}
.perks strong,.perks small{display:block}
.perks strong{font-size:.97rem}
.perks small{font-size:.87rem;color:var(--muted)}
.catalog{scroll-margin-top:1rem}
.section-head,.tools,.seller-banner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4)}
.section-head{margin-bottom:var(--space-3)}
h2{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.045em;line-height:1.18;margin-bottom:var(--space-1);font-weight:900}
.section-head p,.seller-banner p{color:var(--muted);margin-bottom:0}
.text-button{display:flex;align-items:center;gap:var(--space-2);font-size:.92rem;color:#e5e6eb;text-align:start}
.text-button>span:first-child{color:var(--positive)}
/* The switch's state is read from where the knob stands, so the track keeps a 3:1 edge on the page in both states: the
   field border, inside its 32x18 (border-box), with the knob centred inside the border and 2px from either inner end. */
.switch{display:inline-block;width:32px;height:18px;background:#40424e;border:1px solid var(--field-border);border-radius:12px;position:relative;flex:none}
.switch::after{content:"";width:12px;height:12px;background:#d8dae0;position:absolute;top:2px;inset-inline-start:2px;border-radius:100%;transition:transform .2s}
.text-button[aria-pressed=true] .switch{background:#335543}
.text-button[aria-pressed=true] .switch::after{transform:translateX(-14px);background:var(--positive)}
.tools{margin-bottom:var(--space-4);flex-wrap:wrap}
.filter-list,.search-sort{display:flex;gap:var(--space-2);flex-wrap:wrap}
.filter-list :is(button,a),.search,select{background:#1b1c24;border:1px solid var(--border);border-radius:8px;min-height:40px;color:#dddfe6;font-size:.9rem}
/* The edge of a field is what identifies it, so it keeps 3:1 against the surface around it (WCAG 1.4.11). */
.search,select{border-color:var(--field-border)}
.filter-list :is(button,a){padding:var(--space-2) var(--space-3);font-weight:700}
.filter-list a{display:inline-flex;align-items:center}
.filter-list :is(button[aria-pressed=true],a[aria-current=true]){color:#18180f;background:var(--accent);border-color:var(--accent)}
.search{display:flex;align-items:center;gap:var(--space-2);padding-inline:var(--space-3);color:var(--muted)}
.search input{color:var(--ink);width:145px;max-width:100%;background:none;border:none;outline-offset:0}
select{appearance:none;padding-inline:var(--space-3) var(--space-6);background-image:linear-gradient(45deg,transparent 50%,#adb0bc 50%),linear-gradient(135deg,#adb0bc 50%,transparent 50%);background-size:5px 5px;background-position:12px center,7px center;background-repeat:no-repeat;cursor:pointer}
.products{display:grid;gap:var(--space-4)}
.card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);min-width:0}
.card:hover{border-color:#656673}
.cover{height:auto;position:relative;background:#242637 center/cover;isolation:isolate}
.products:not(.store-products) .cover::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(10,11,15,.91),transparent 65%)}
.cover-night{background-image:url('assets/night.webp')}.cover-apex{background-image:url('assets/apex.webp')}.cover-realm{background-image:url('assets/realm.webp')}.cover-orbit{background-image:url('assets/orbit.webp')}
.discount{background:var(--accent);color:#17170e;position:absolute;right:.65rem;top:.65rem;font:800 .8rem Inter,Arial;padding:var(--space-1) var(--space-2);border-radius:5px}
.favorite{position:absolute;inset-inline-end:.55rem;top:.55rem;width:35px;height:35px;background:#15151bcf;border-color:#464653}
.favorite[aria-pressed=true]{color:var(--accent)}
.favorite[aria-pressed=true] svg{fill:currentColor}
.card-platform{position:absolute;inset-inline-start:.7rem;bottom:.67rem;font:600 .82rem Inter,Arial;color:#eee}
.card-body{padding:var(--space-4)}
.card h3{font:800 1.08rem Inter,Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;direction:ltr;margin:0 0 var(--space-2)}
.card-meta{display:flex;gap:var(--space-2);flex-wrap:wrap;align-items:center;margin-bottom:var(--space-3);font-size:.82rem;color:var(--muted)}
.card-meta .region-label,.card-meta .warn{display:inline-flex;gap:var(--space-1);align-items:center}.card-meta .region-label{color:var(--positive)}
.card-meta svg{width:14px;height:14px}
.price-row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2);border-top:1px solid var(--border);padding-top:var(--space-3)}
.price-row small{display:block;color:var(--muted);font-size:.78rem}
.price-row strong{display:block;font:800 1.16rem Inter,Arial;line-height:1.28;margin-top:.1rem}
.price-row button{font-size:.82rem;min-height:36px;padding:var(--space-2) var(--space-3);white-space:nowrap}
/* The store: one offer of a product, inside the product's card. */
.store-offer{border-top:1px solid var(--border);padding-top:var(--space-3)}
.store-offer-facts{margin:0 0 var(--space-3);font-size:.82rem;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.store-offer .price-row{border-top:0;padding-top:0}
.store-offer .price-row form{margin:0}
.store-offer .price-row button{min-height:2.75rem;font-size:.9rem}
.workbench .section-head h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.workbench :is(.filter-list a,.search,.search-sort button){min-height:2.75rem}
.workbench .search input{width:14rem}
.products .work-actions{grid-column:1/-1}
.empty{grid-column:1/-1;background:var(--surface);border:1px dashed #454650;border-radius:12px;padding:var(--space-8);text-align:center;color:var(--muted)}
/* The answer of a search stands apart from the button above it. */
form+.empty{margin-block-start:var(--space-4)}
form+.aside{margin-block-start:var(--space-4)}
/* A game an IGDB search found: its cover beside its name, at the cover ratio of the store's cards. */
.import-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-4);align-items:start}
.import-cover{inline-size:6rem;block-size:auto;aspect-ratio:var(--cover-ratio);object-fit:cover;margin:0;border:1px solid var(--border);border-radius:8px;background:#111218}
.import-cover-none{display:grid;place-items:center;padding:var(--space-2);text-align:center;color:var(--muted);font-size:.8125rem;line-height:1.4}
/* The platforms of a game being added: each a box with what IGDB recorded beneath it. */
.import-platforms{display:grid;gap:var(--space-3);margin:0;padding:var(--space-3);border:1px solid var(--border);border-radius:8px}
.import-platforms legend{padding-inline:var(--space-2);font-weight:700}
/* A label inside a form of a panel is a grid with a margin (its text above its field). This one is a box beside its
   name, on one line, so it is named with the panel to outrank that rule. */
.work-panel form .confirm-check{display:flex;align-items:flex-start;gap:var(--space-2);margin:0;line-height:1.5;cursor:pointer}
.work-panel form .import-check{display:flex;align-items:center;gap:var(--space-2);min-height:2.75rem;margin:0;font-weight:700;cursor:pointer}
.import-platform .aside{margin:0;font-size:.875rem;overflow-wrap:anywhere}
.import-platform .work-state{display:block;margin-block-start:var(--space-2)}
.import-platform a{text-decoration:underline;text-underline-offset:3px}
.seller-banner{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin-block:var(--space-12);padding:var(--space-6)}
.seller-banner h2{font-size:1.35rem}
.footer{border-top:1px solid var(--border);padding-block:var(--space-5);color:var(--muted)}
.footer .container{display:flex;justify-content:space-between;align-items:center;gap:var(--space-4);flex-wrap:wrap}
.footer .logo{color:var(--ink)}
dialog{background:var(--surface);color:var(--ink);border:1px solid #3e404b;border-radius:14px;width:min(620px,calc(100% - 2rem));max-height:calc(100% - 2rem);padding:0}
dialog::backdrop{background:#08090bc9;backdrop-filter:blur(4px)}
#dialog-content{padding:var(--space-5)}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:var(--space-4);margin-bottom:var(--space-4)}
.dialog-head h2{font-size:1.6rem;overflow-wrap:anywhere;margin:0}
.dialog-head .icon-btn{flex:none}
.modal-copy,.aside{color:var(--muted)}
.offer-list{display:grid;gap:var(--space-3)}
.offer{border:1px solid #343642;background:#20212a;border-radius:9px;padding:var(--space-3);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-2);align-items:center}
.offer p{margin:0 0 var(--space-1);font-size:.88rem;color:var(--muted);overflow-wrap:anywhere}
.offer h3{margin-bottom:var(--space-1);font-size:1rem;overflow-wrap:anywhere}
.offer .primary{font-size:.82rem;min-height:36px;padding:var(--space-2) var(--space-2)}
.offer-price{direction:ltr;font-weight:800;font-size:1.13rem;display:block;text-align:left}
.ok{color:var(--positive)}
.warn{color:#ffc49a}
.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-top:var(--space-4)}
.seller-form{display:grid;gap:var(--space-3)}
.seller-form label{display:grid;gap:var(--space-1);font-size:.92rem}
.seller-form input,.seller-form select{width:100%;min-height:42px;color:var(--ink);background-color:#12131a;border:1px solid var(--field-border);border-radius:7px;padding:var(--space-2) var(--space-3)}
.seller-form select{padding-inline-end:var(--space-6)}
.seller-form .primary{justify-self:start}
/* The form is a grid, so the gap alone sets the distance between fields: a label's own margin would add to it. */
.work-panel .seller-form{gap:var(--space-5)}
.work-panel .seller-form>label{margin:0}
/* A hint belongs to the field above it. */
.work-panel form label+.amount-hint{margin-block-start:calc(var(--space-2)*-1)}
.work-panel .seller-form>.amount-hint{margin-block-start:calc(var(--space-3)*-1)}
.inline-error{color:#ffc49a;min-height:1.35em;margin:0}
.amount{white-space:nowrap}
.amount-hint{color:var(--muted);font-size:.85rem;margin:0}
.toast{position:fixed;z-index:20;bottom:1rem;inset-inline-end:1rem;background:#30332c;border:1px solid #616a53;border-radius:9px;padding:var(--space-2) var(--space-4);color:#fff}
@media(max-width:1000px){.container{width:calc(100% - 3rem)}.hero{min-height:370px}.top-inner{gap:var(--space-8)}}
@media(max-width:620px){.container{width:calc(100% - 1.5rem)}.top-inner{height:62px;gap:var(--space-3)}.top nav{display:none}.header-actions{gap:var(--space-1)}.icon-btn{width:36px;height:36px}.hero{min-height:390px;padding:var(--space-5);align-items:flex-end;background-position:36% 33%;border-radius:12px}.hero::before{background:linear-gradient(0deg,#111218 4%,rgba(17,18,24,.9) 36%,rgba(17,18,24,.16) 78%)}.hero-caption{top:1rem;bottom:auto;font-size:.72rem}.hero-label{font-size:.88rem;margin-bottom:var(--space-3)}.hero-copy{font-size:.98rem;margin-bottom:var(--space-4)}.perks{grid-template-columns:1fr;margin-bottom:var(--space-8);padding:.15rem var(--space-3)}.perks>div{padding:var(--space-2) 0}.perks>div+div{border-inline-start:0;border-top:1px solid var(--border)}.perk-icon{width:31px;height:31px}.section-head{align-items:flex-start;flex-direction:column;gap:var(--space-2)}.products{gap:var(--space-2)}.card-body{padding:var(--space-2)}.card h3{font-size:.88rem}.card-meta{font-size:.75rem;gap:var(--space-1)}.price-row{flex-wrap:wrap}.price-row button{width:100%}.search-sort{width:100%}.search{flex:1}.search input{width:100%;min-width:65px}.seller-banner{align-items:flex-start;flex-direction:column;margin-block:var(--space-6)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.workbench{padding-block:var(--space-6) var(--space-12);min-height:70vh}
.work-nav{background:var(--surface);border-bottom:1px solid var(--border)}
.work-nav .container{display:flex;gap:var(--space-1);overflow:auto;padding:var(--space-2) 0}
.work-nav a{padding:var(--space-2) var(--space-3);border-radius:7px;white-space:nowrap;color:var(--muted)}
.work-nav a[aria-current=page]{background:#292a21;color:var(--accent);font-weight:800}
.workbench h1{font-size:clamp(2.2rem,5vw,3.6rem);margin-bottom:var(--space-2)}
.workbench h2{font-size:1.45rem}
.work-intro{color:var(--muted);margin-bottom:var(--space-6)}
.work-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:var(--space-4);align-items:start}
.work-panel{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:var(--space-5);margin-block:0 var(--space-4);min-width:0}
.work-panel p:last-child{margin-bottom:0}
.work-row{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-4);border-top:1px solid var(--border);padding-block:var(--space-3)}
.work-row:last-child{padding-bottom:0}
.work-row h3{margin:0 0 .2rem}
.work-row p{margin:0;color:var(--muted)}
.work-actions{display:flex;gap:var(--space-2);flex-wrap:wrap;margin-top:var(--space-3)}
.work-panel form{margin-block:var(--space-2) 0}
.work-panel textarea{width:100%;min-height:75px;background:#111218;color:var(--ink);border:1px solid var(--field-border);border-radius:7px;padding:var(--space-3);font:inherit;resize:vertical}
.work-panel input::placeholder,.work-panel textarea::placeholder{color:#a1a3b0}
.work-panel textarea:focus-visible{outline:2px solid var(--accent)}
.work-state{display:inline-block;padding:.15rem var(--space-2);border-radius:6px;background:#33343e;color:#fff;font-size:.86rem}
.work-state.paid,.work-state.approved,.work-state.closed{color:var(--positive);background:#20352b}
.work-state.failed,.work-state.rejected{color:#ffc49a;background:#432e29}
.work-alert{border:1px solid #595532;background:#302d1b;padding:var(--space-3);border-radius:8px;color:#f6ecac;margin-bottom:var(--space-4)}
.work-key{display:inline-block;border:1px solid #445b4d;padding:var(--space-3) var(--space-4);background:#131d17;color:var(--positive);border-radius:8px;font-size:1.1rem;user-select:all}
.work-meta{display:grid;grid-template-columns:1fr auto;gap:var(--space-2);margin:var(--space-2) 0}
.work-meta dt,.work-meta dd{margin:0}
.work-meta dt{color:var(--muted)}
.catalog .card .card-body h3{direction:inherit;white-space:normal}
.hero .hero-caption{pointer-events:none}
@media(max-width:760px){.work-grid{grid-template-columns:1fr}.work-row{flex-wrap:wrap}.workbench{padding-top:var(--space-4)}}

.workbench .catalog{margin-top:var(--space-6)}
.work-row form{max-width:100%;min-width:0}.work-row bdi{overflow-wrap:anywhere}.work-panel textarea,.work-panel input,.work-panel select{max-width:100%;box-sizing:border-box}/* A heading that follows a form inside one panel starts a new group. */
.work-panel form+h2{margin-block-start:var(--space-8)}
/* A label is closer to its own field than a field is to the label after it. */
.work-panel form label{display:grid;gap:var(--space-2);margin-block:var(--space-4)}.work-panel textarea{min-height:80px}.work-panel[id]{scroll-margin-top:2rem}

/* Responsive application layout: narrow screens first, no device detection. */
html{scroll-padding-top:1rem;-webkit-text-size-adjust:100%}
body{line-height:1.6}
button,input,select,textarea{font:inherit}
.container{width:min(calc(100% - 2rem),82.5rem)}
.top-inner{min-height:4.5rem;height:auto;padding-block:var(--space-3);gap:var(--space-4);justify-content:space-between;flex-wrap:wrap}
.top .demo{margin:0;padding:0;line-height:1.5;max-width:100%}
.work-nav{display:block}
.work-nav .container{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:var(--space-2);overflow:visible}
.work-nav a{display:flex;align-items:center;justify-content:center;min-height:2.75rem;padding:var(--space-2) var(--space-3);white-space:normal;text-align:center;line-height:1.4}
.workbench{padding-block:clamp(var(--space-4),3vw,var(--space-8)) var(--space-12)}
.workbench h1{font-size:clamp(1.9rem,4vw,3.5rem);line-height:1.15;letter-spacing:-.035em}
.workbench h2{font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.4}
.workbench h3{line-height:1.5}
.work-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
.work-grid>*{min-width:0}
.work-panel{padding:clamp(var(--space-4),2.5vw,var(--space-6))}
.work-row{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-3)}
.work-row>*{min-width:0;max-width:100%}
.workbench :is(p,h1,h2,h3,bdi,code,dd,dt){overflow-wrap:anywhere}
.work-panel form{width:100%;min-width:0}
.work-panel :is(input:not([type=hidden]):not([type=checkbox]),select,textarea){width:100%;min-width:0;font-size:1rem;min-height:2.75rem}
.work-actions{align-items:stretch}
.work-actions>*{flex:1 1 9rem;min-width:0}
.primary,.secondary{white-space:normal;text-align:center;line-height:1.45;min-height:2.75rem}
.work-state{max-width:100%;line-height:1.6}
.work-key{max-width:100%;white-space:pre-wrap;word-break:break-word}
.work-meta{grid-template-columns:minmax(0,1fr) minmax(0,auto);column-gap:var(--space-4);font-variant-numeric:tabular-nums}
.work-meta dd{text-align:end}
input[type=checkbox]{width:1.25rem;height:1.25rem;flex:none;accent-color:var(--accent)}
.products{grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
.card-body{padding:var(--space-4)}
.catalog .card .card-body h3{font-family:inherit;font-size:1.15rem;line-height:1.5}
.card-meta{display:block;font-size:.9375rem;line-height:1.6}
.card-meta p{margin-bottom:var(--space-2)}
/* The illustration catalog's cards keep their wide cover. The store's cover has a ratio of its own, below. */
.products:not(.store-products) .cover{aspect-ratio:16/9}
.price-row{flex-wrap:wrap;gap:var(--space-3)}
.price-row strong{font-size:1.35rem;font-variant-numeric:tabular-nums}
.price-row form{flex:1 1 11rem;margin:0}
.price-row button{width:100%;font-size:1rem;min-height:2.75rem}
.footer .container{align-items:flex-start}
:where(a,button,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(min-width:40rem){
 /* The illustration catalog keeps a column count per width; the store's grid chooses its own, below. */
 .products:not(.store-products){grid-template-columns:repeat(2,minmax(0,1fr))}
 .work-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .work-row> :only-child{grid-column:1/-1}
}
@media(min-width:64rem){
 .container{width:min(calc(100% - 4rem),82.5rem)}
 .products:not(.store-products){grid-template-columns:repeat(3,minmax(0,1fr))}
 .work-grid{grid-template-columns:minmax(0,1.65fr) minmax(20rem,1fr)}
 .work-row{grid-template-columns:minmax(0,1fr) minmax(12rem,.8fr)}
}
@media(min-width:80rem){.products:not(.store-products){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:39.999rem){
 .top-inner{align-items:flex-start;gap:var(--space-2)}
 .top .demo{flex-basis:100%;font-size:.875rem}
 .work-nav .container{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero{min-height:24rem;padding:var(--space-5)}
 .hero-actions>*{flex:1 1 100%}
 .work-meta{grid-template-columns:minmax(0,1fr)}
 .work-meta dd{text-align:start;margin-bottom:var(--space-2)}
 .work-actions>*{flex-basis:100%}
}

/* Separate customer navigation from permission-scoped staff tools. */
.work-nav .navigation-shell{display:flex;align-items:flex-start;gap:var(--space-2);flex-wrap:wrap;padding-block:var(--space-2)}
.navigation-shell>a,.navigation-group>summary{min-height:2.75rem;padding:var(--space-2) var(--space-4);line-height:1.5;border-radius:8px;font-weight:600}
.navigation-shell>a{display:flex;align-items:center}
.navigation-group{min-width:10rem;border:1px solid var(--border);border-radius:8px}
.navigation-group>summary{cursor:pointer;color:var(--ink);list-style-position:inside}
.navigation-group>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.navigation-group[open]>summary{border-bottom:1px solid var(--border);background:#242630}
.navigation-links{display:grid;gap:var(--space-1);padding:var(--space-2);min-width:12rem}
.navigation-links a{justify-content:flex-start;text-align:start}
.staff-navigation{margin-inline-start:auto}
@media(max-width:39.999rem){
 .work-nav .navigation-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
 /* A guest has four links. Four in one row would leave each link under 4rem for its text at 390px, so they are two
    equal columns: two rows of two, never three and one. */
 .work-nav .guest-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}
 .guest-navigation>a{justify-content:center;text-align:center}
 .navigation-group{min-width:0}
 .navigation-links{min-width:0}
 /* The two menus share the second row as two equal columns, like the two links above them. A signed-in person
    without a staff menu has one menu only: it takes the whole row, so no cell beside it is left empty. */
 .staff-navigation{margin-inline-start:0}
 .navigation-group:not(.staff-navigation):last-child{grid-column:1/-1}
}

[data-registration-section][hidden] { display: none; }

.seller-onboarding{max-width:45rem;margin-inline:auto}
.seller-onboarding>.secondary{margin-block-end:var(--space-4)}
.seller-onboarding .seller-next>*{flex:0 1 auto}
.seller-onboarding fieldset{min-width:0;padding:0;margin:0;border:0}
.seller-onboarding fieldset+fieldset{padding-block-start:var(--space-4)}
.seller-onboarding legend{font-weight:700;padding:0}
.seller-onboarding li+li{margin-block-start:var(--space-2)}

.legal-doc{max-width:47rem;margin-inline:auto;line-height:1.65}
.legal-doc h2{font-size:1.25rem;margin-block:var(--space-6) var(--space-2)}
.legal-doc a{text-decoration:underline;text-underline-offset:.2em}
.legal-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4)}

.google-callback-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:var(--space-2);margin-block-start:var(--space-2)}
.google-callback-row button{white-space:nowrap;min-height:2.75rem}
.google-callback-status{margin-block:var(--space-2) 0}
.google-callback-status:empty{margin:0}

.auth-shell,.account-panel{max-width:32rem;margin-inline:auto}
.auth-shell h1{font-size:clamp(1.8rem,5vw,2.5rem)}
.auth-shell .work-intro{margin-block-end:var(--space-5)}
.auth-modes{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2);margin-block-end:var(--space-5)}
.auth-modes a{padding:var(--space-3);text-align:center;border:1px solid var(--border);border-radius:8px;min-height:44px}
.auth-modes a[aria-current=page]{color:var(--accent);border-color:var(--accent)}
.auth-panel form>button{width:100%;justify-content:center;text-align:center;margin-block-start:var(--space-4)}
.auth-separator{color:var(--muted);text-align:center;margin-block:var(--space-4)}
.work-panel input:not([type=hidden]):not([type=checkbox]),.work-panel select{border:1px solid var(--field-border);border-radius:8px;background:#111218;color:var(--ink);padding:var(--space-3) var(--space-3);font:inherit}
.work-panel input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.password-field{display:flex;gap:var(--space-2);align-items:stretch}
.password-field input{flex:1;min-width:0}
.password-field button{flex:none;min-width:4.5rem}
.auth-panel label{display:block;margin-block:var(--space-5) var(--space-2)}
.form-help{font-size:.9rem;line-height:1.65}
.form-help a,.recovery-link{text-decoration:underline;text-underline-offset:.2em}
.recovery-link{display:inline-flex;align-items:center;min-height:44px;margin-block:var(--space-1)}
.account-actions{display:grid;gap:var(--space-4);margin-block-start:var(--space-6)}
.account-actions form{margin:0}
.account-actions :is(a,button){display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;text-align:center}
.account-email{overflow-wrap:anywhere}
.account-panel p{line-height:1.65}
/* The account page. Spacing follows one scale (.25, .5, .75, 1, 1.5rem): a label sits close to its own field,
   a field further from the next label, and a group of facts further still from a form. */
.account-panel form{display:grid;gap:var(--space-2);margin-block:0}
.account-panel form label{margin:0;gap:var(--space-2)}
.account-panel form>*+label{margin-block-start:var(--space-3)}
.account-panel form>*+.form-help{margin:var(--space-3) 0 0}
.account-panel form>*+button{margin-block-start:var(--space-3);justify-self:start}
.account-panel form>.form-help+button{margin-block-start:0}
.account-facts{margin-block:0 var(--space-6)}
.account-panel form+.account-facts{margin-block:var(--space-6) 0}
.account-facts+.form-help{margin-block:var(--space-3) 0}
.account-panel>.account-actions:first-child{margin-block-start:0}
@media(max-width:40rem){
 .top-inner{padding-block:var(--space-3);gap:var(--space-1)}
 .top .demo{font-size:.75rem;line-height:1.4}
 .work-nav .navigation-shell{gap:var(--space-2);padding-block:var(--space-2)}
 .work-nav .navigation-group{min-width:0;flex:1}
 .navigation-shell>a,.navigation-group>summary{padding:var(--space-2) var(--space-3);font-size:.875rem}
 .workbench{padding-block:var(--space-5)}
 .workbench>h1{font-size:1.85rem}
 .account-panel{padding:var(--space-4)}
 .account-actions{gap:var(--space-3)}
 .account-panel form>button{justify-self:stretch;width:100%}
 .account-facts{row-gap:var(--space-1)}
 .account-facts dd{margin-bottom:var(--space-3)}
 .account-facts dd:last-child{margin-bottom:0}
 .workbench .search-sort{flex-wrap:nowrap}
 .workbench .search input{width:100%;min-width:0}
 .footer .container{gap:var(--space-3)}
}
.error-page{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-12);padding-block:clamp(var(--space-6),6vw,var(--space-16))}
.error-copy{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:var(--space-5)}
.error-copy h1,.error-copy p{margin:0}
.error-copy .work-intro{max-width:46ch;font-size:1.125rem;line-height:1.65}
.error-label{color:var(--accent);font-weight:700;font-size:.94rem}
.error-actions{display:flex;flex-wrap:wrap;gap:var(--space-3);margin-top:var(--space-2)}
.error-actions a{min-height:48px;padding-inline:var(--space-5)}
.error-code{display:flex;direction:ltr;gap:var(--space-3)}
.error-code span{display:grid;place-items:center;width:clamp(4.5rem,12vw,7.25rem);aspect-ratio:116/152;background:var(--surface);border:1px solid var(--border);border-radius:14px;font:900 clamp(3rem,8vw,5rem)/1 Inter,Arial,sans-serif;letter-spacing:-.04em}
.error-code .error-digit-accent{background:#302d1b;border-color:#595532;color:var(--accent)}
@media(max-width:760px){.error-code{order:-1}.error-actions a{flex:1 1 100%}}

/* The store's product card. Its cover area has the one ratio of IGDB's covers, and a cover is shown whole, never cropped,
   with nothing drawn over it; a product with no cover shows the site's illustration in the same area. On a phone the card is a
   row: a 7rem cover at the start, the facts beside it, the lowest price, the count of offers and the link to them below
   across the card. From 40rem it is a column,
   with the cover on top. The order of reading is the same in both. Wherever cards share a row (a grid's row, or a
   carousel's track) they are stretched to the tallest, and the block of the lowest price, the count and the link stands
   at the card's end, so those of one row are on one line and a shorter card's space falls between its facts and that
   block: on a phone the first grid row takes the space, from 40rem the block's start margin does. */
.store-products .cover{aspect-ratio:var(--cover-ratio);overflow:hidden}
.store-products .cover img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:contain;object-position:center}
.store-offer+.store-offer{margin-block-start:var(--space-3)}
/* The details line. A separator drawn as its own element can be left alone at the end of a line when the next item
   wraps, and CSS cannot hide one at the start of a line. So the edition and the platform are one group that does not
   wrap apart (the edition wraps inside its own box), the bar between them is the platform's own border, and the region
   has a line of its own. A border is not read aloud. The bar is drawn only when an edition precedes the platform. */
.store-products .card-edition-platform{display:flex;align-items:baseline}
.store-products .card-edition-platform>span:first-child{min-width:0;overflow-wrap:anywhere}
.store-products .card-platform-text{flex:none}
.store-products .card-edition-platform>span+.card-platform-text{margin-inline-start:var(--space-2);padding-inline-start:var(--space-2);border-inline-start:1px solid var(--field-border)}
.store-products .card-meta .region-label{display:flex;margin-block-start:var(--space-1)}
@media(max-width:39.999rem){
 .store-products .card{display:grid;grid-template-columns:7rem minmax(0,1fr);grid-template-rows:1fr auto;column-gap:var(--space-4);align-items:start;padding:var(--space-4)}
 .store-products .cover{border-radius:8px}
 .store-products .card-body{padding:0}
 .store-products .store-card-summary{grid-column:1/-1;padding-block-start:var(--space-4)}
}
@media(min-width:40rem){
 /* As many columns as fit, none narrower than 14rem, so a card stays narrow at every width. */
 .store-products{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}
 .store-products .card{display:flex;flex-direction:column}
 .store-products .store-card-summary{margin-block-start:auto;padding-inline:var(--space-4);padding-block:0 var(--space-4)}
}
/* A rating, its icons and their words sit close together; the offers keep a larger space from them. The age line has
   one shape for every rating at every width: the line does not wrap, the mark (an icon or the text mark, the line's only
   element) keeps its size, and the sentence, bare text after it, takes the space beside it and wraps inside that
   column. A wrapping line would put the whole sentence under the icon once it is one digit too long for a card. The text
   mark is whatever IGDB sent: beside a sentence it is at most "PEGI 19", but alone it can be long, so it is never wider
   than the line and wraps between its words inside it, breaking a word only when one word is wider than the line. */
.rating{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--space-2);margin:0;font-size:.9375rem;color:var(--muted)}
.rating>*{flex:none}
.rating-mark{max-inline-size:100%;overflow-wrap:anywhere;padding:var(--space-1) var(--space-2);border:1px solid var(--field-border);border-radius:6px;color:var(--ink);font-weight:700}
.rating-notes{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0;margin-block-start:var(--space-2);padding:0;list-style:none;font-size:.875rem;color:var(--muted)}
/* The official icons are only scaled, in their own proportions: 3rem for the age mark, 2rem for a description. */
.rating-icon{height:3rem;width:auto}
.rating-notes li{display:flex;align-items:center;gap:var(--space-2)}
.rating-note-icon{height:2rem;width:auto}
.footer .credit{font-size:.875rem}/* A link inside a sentence is told from the words around it by its underline, not by its colour alone. */
.footer .credit a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* the home page sections and the catalog page */
/* The home page is a sequence of sections, each a block of its own with the sheet's larger space between them. Their
   rows of products are the store's cards in the store's grid (.store-products), so a card looks the same everywhere. */
.store-section+.store-section{margin-block-start:var(--space-12)}
/* The featured game is one wide block: the cover at the start and the facts beside it, on a phone too. The cover area has
   the covers' ratio and shows a cover whole, as on a card. */
.store-featured{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:var(--space-4);align-items:start;padding:var(--space-4);border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.store-featured-cover{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:var(--cover-ratio);border-radius:8px;background:#242637 center/cover}
.store-featured-cover img{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:contain;object-position:center}
.store-featured-body{display:grid;gap:var(--space-3);min-width:0}
.store-featured-body h3{margin:0;font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}
.store-featured-body p{margin:0}
.store-featured-meta{color:var(--muted);font-size:.9375rem}
.store-featured-price{font-size:1.125rem;font-weight:800}
@media(min-width:40rem){
 .store-featured{grid-template-columns:14rem minmax(0,1fr);gap:var(--space-6);padding:var(--space-6)}
 .store-featured-body h3{font-size:1.75rem}
}
@media(min-width:64rem){.store-featured{grid-template-columns:18rem minmax(0,1fr)}}
/* A link for each platform, and for each genre, as many to a row as fit, none narrower than 16rem, which holds the
   longest platform name, "PlayStation", with its count on one line, and none wider than the row on a phone; each is a full
   touch target. A name is never broken inside a word: the staff pages' rule that lets text break anywhere is undone for
   it, so a long genre name, as IGDB wrote it, wraps between its words only. The count stays whole beside it. */
.store-platforms{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,16rem),1fr));gap:var(--space-3);margin:0;padding:0;list-style:none}
.store-platforms a{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:2.75rem;padding:var(--space-4);border:1px solid var(--border);border-radius:12px;background:var(--surface);font-weight:800}
.store-platforms bdi{min-inline-size:0;overflow-wrap:normal}
.store-platforms span{flex:none;white-space:nowrap;color:var(--muted);font-weight:400;font-size:.875rem}
.store-all{margin:0}
/* The catalog's filters: each a unit of its label and its choices, the search a unit of its own. The space between two
   units is at least twice any space inside one. On a phone a label stands above its choices; from 40rem the list is two
   columns, the labels as wide as the longest and the choices, and each unit shares them (subgrid), so the labels line up
   down the page and the first choices too. A label is a touch target's height at the top of its row, so it is centred on
   the first line of choices when they wrap. Every choice is a touch target. */
.store-catalog .tools{display:grid;grid-template-columns:minmax(0,1fr);row-gap:var(--space-6);margin-block-end:var(--space-6)}
.store-catalog .catalog-filter{display:grid;row-gap:var(--space-2);min-inline-size:0}
.store-catalog .catalog-filter-label{margin:0;font-weight:700;color:var(--muted);white-space:nowrap}
.store-catalog .filter-list a{min-block-size:2.75rem}
/* The count of games is the list's quiet line, close to the cards; the page's one large heading is its h1. */
.store-catalog .catalog-count{margin-block-start:0;margin-block-end:var(--space-3);font-size:.9375rem;font-weight:400;line-height:1.6;letter-spacing:normal;color:var(--muted)}
@media(min-width:40rem){
 .store-catalog .tools{grid-template-columns:max-content minmax(0,1fr);column-gap:var(--space-3)}
 .store-catalog .catalog-filter{grid-column:1/-1;grid-template-columns:subgrid;row-gap:0}
 .store-catalog .catalog-filter-label{display:flex;align-items:center;align-self:start;min-block-size:2.75rem}
 .store-catalog .search-sort{grid-column:1/-1}
}
/* The pages of the catalog: links of a touch target's size, the current one marked as a chosen filter is. */
.store-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--space-2);margin-block-start:var(--space-8)}
.store-pages a{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;padding-inline:var(--space-3);border:1px solid var(--border);border-radius:8px;background:#1b1c24;font-weight:700}
.store-pages a[aria-current=page]{color:#18180f;background:var(--accent);border-color:var(--accent)}
.store-pages span{color:var(--muted)}
/* A row of the home page that its script turned into a carousel (client/store-rows.js); without the script the row is
   the grid of cards above. The track is one line of cards: from 40rem each is as wide as the grid's narrowest card,
   below it most of the width, so the next card shows at the edge. Swiper places the cards and the space between them,
   so the track has no gap of its own. Its sheet (/vendor/swiper.css) comes before this one. The buttons are touch
   targets; a button at the end of its row is disabled, and both are hidden when every card fits. */
.store-section .store-row .store-products{display:flex;gap:0;align-items:stretch}
.store-section .store-row .card{inline-size:85%;block-size:auto}
.store-section .store-row-controls{display:flex;gap:var(--space-2)}
.store-section .store-row-controls button{display:inline-flex;align-items:center;justify-content:center;min-inline-size:2.75rem;min-block-size:2.75rem;padding:0;border:1px solid var(--border);border-radius:8px;background:#1b1c24;color:var(--ink);cursor:pointer}
.store-section .store-row-controls button:disabled{opacity:.4;cursor:default}
.store-section .store-row-controls .swiper-button-lock{display:none}
.store-section .store-row-controls svg{inline-size:1.25rem;block-size:1.25rem}
/* What the script says when a row reaches an end: read by a screen reader, kept out of view. With reduced motion the
   script gives a move no time, and the site-wide rule above outweighs the duration Swiper writes on the track. */
.store-section .store-row-status{position:absolute;inline-size:1px;block-size:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:40rem){.store-section .store-row .card{inline-size:14rem}}
/* the product page and the short store card */
/* The product page. The cover stands beside the name, the details line and the rating at every width: 7rem wide below
   40rem, as on the store's card, 12rem from 40rem and 16rem from 64rem, always in the ratio of IGDB's covers and shown
   whole. The parts follow one another, with more space between two parts than inside one. Every rule is scoped to
   .product-page and uses logical properties. */
.product-page{display:grid;gap:var(--space-8)}
.product-page .product-head{display:grid;grid-template-columns:7rem minmax(0,1fr);column-gap:var(--space-4);align-items:start}
.product-page .product-cover{aspect-ratio:var(--cover-ratio);border-radius:8px;overflow:hidden}
.product-page .product-cover img{position:absolute;inset:0;inline-size:100%;block-size:100%;object-fit:contain;object-position:center}
.product-page h1{font-size:clamp(1.5rem,3vw,2.5rem);margin-block:0 var(--space-2)}
.product-page h2{margin-block:0 var(--space-3)}
/* The details line, as on the store's card: the bar between the edition and the platform is the platform's own border. */
.product-page .product-meta{display:grid;gap:var(--space-1);margin-block:0 var(--space-3);font-size:.9375rem;color:var(--muted)}
.product-page .product-edition-platform{display:flex;align-items:baseline}
.product-page .product-edition-platform>span:first-child{min-inline-size:0;overflow-wrap:anywhere}
.product-page .product-platform{flex:none}
.product-page .product-edition-platform>span+.product-platform{margin-inline-start:var(--space-2);padding-inline-start:var(--space-2);border-inline-start:1px solid var(--field-border)}
.product-page .region-label{display:flex;align-items:center;gap:var(--space-1);color:var(--positive)}
.product-page .region-label svg{inline-size:var(--space-4);block-size:var(--space-4)}
/* The details: a term above its value on a phone, beside it from 40rem. A term is tight to its value, and a pair is
   apart from the next by at least twice that: on a phone nothing is added between a term and its value, and a pair
   starts a space of 1rem after the last; from 40rem the term is .75rem from its value, on its first line, and the rows
   are 1.5rem apart. The terms' column is as wide as the longest term, so none wraps. */
.product-page .product-facts{display:grid;grid-template-columns:minmax(0,1fr);row-gap:0;column-gap:var(--space-3);margin:0}
.product-page .product-facts dt{font-weight:700}
.product-page .product-facts dd{margin:0}
.product-page .product-facts dd+dt{margin-block-start:var(--space-4)}
/* The summary is English, in its own direction (dir="ltr"), and aligned to its own start, the left. */
.product-page .product-summary{margin:0;max-inline-size:70ch;white-space:pre-line;line-height:1.65;text-align:start}
/* The screenshots: as many columns as fit, none narrower than 16rem, each in IGDB's 16:9 and shown whole. On a phone, where
   that is one column of four pictures stacked, they are one row that scrolls sideways and stops at each picture, with the
   next one showing at the edge; no script. The row can take the focus, so a keyboard scrolls it too; the grid, which does
   not scroll, is a second element with no tab stop, and only one of the two is displayed at a width. The row carries the
   hidden attribute, so with no sheet only the grid is shown and read; the sheet's [hidden] rule is !important, so the
   phone's rule shows the row with !important too, which wins by its greater specificity. No logical overflow property is
   supported by every browser, so the row's direction is named as overflow-x. */
.product-page .product-shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:var(--space-4)}
.product-page .product-shots-row{display:none}
.product-page .product-shots-row:focus-visible{outline:2px solid var(--accent);outline-offset:var(--space-1)}
@media(max-width:39.999rem){
 .product-page .product-shots{display:none}
 .product-page .product-shots-row{display:grid!important;grid-auto-flow:column;grid-auto-columns:85%;gap:var(--space-4);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;padding-block-end:var(--space-2)}
 .product-page .product-shots-row img{scroll-snap-align:start}
}
.product-page .product-shots img,.product-page .product-shots-row img{display:block;inline-size:100%;block-size:auto;aspect-ratio:16/9;object-fit:contain;background:var(--surface);border-radius:8px}
.product-page .product-offers{max-inline-size:40rem}
.product-page .product-count{margin-block:0 var(--space-3);color:var(--muted)}
.product-page .product-credit{margin:0;font-size:.875rem;color:var(--muted)}
@media(min-width:40rem){
 .product-page .product-head{grid-template-columns:12rem minmax(0,1fr);column-gap:var(--space-6)}
 .product-page .product-facts{grid-template-columns:max-content minmax(0,1fr);row-gap:var(--space-6);align-items:baseline}
 .product-page .product-facts dd+dt{margin-block-start:0}
}
@media(min-width:64rem){
 .product-page .product-head{grid-template-columns:16rem minmax(0,1fr);column-gap:var(--space-8)}
}
/* The store's short card, below its facts: the lowest price, the count of offers, and the one link to them, a
   full-width touch target. Where the block sits in the card, at each width, is set with the card above. */
.store-products .store-card-summary{display:grid;gap:var(--space-2)}
.store-products .store-card-price{margin:0;font-size:.9375rem;color:var(--muted)}
.store-products .store-card-price strong{font-size:1.35rem;color:var(--ink);font-variant-numeric:tabular-nums}
.store-products .store-card-count{margin:0;font-size:.875rem;color:var(--muted)}
.store-products .store-card-summary .secondary{inline-size:100%}

/* the staff page of the store */
/* A section's handle for dragging, which the page's script adds (client/store-order.js): a touch target at the start of
   the row, beside the section's facts and form. Without the script there is no handle and the row is as on every staff
   page. The handle shows three bars; the row being moved is faded, and so is the list while its order is being sent. */
.store-order .work-row:has(>.store-order-handle){grid-template-columns:2.75rem minmax(0,1fr);column-gap:var(--space-3)}
.store-order .work-row:has(>.store-order-handle)>div{grid-column:2}
.store-order-handle{grid-row:1/span 2;display:flex;align-items:center;justify-content:center;inline-size:2.75rem;block-size:2.75rem;border:1px solid var(--border);border-radius:8px;background:#1b1c24;color:var(--muted);cursor:grab;touch-action:none}
.store-order-handle::before{content:"";inline-size:1rem;block-size:.75rem;background:linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 50%/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 100%/100% 2px no-repeat}
.store-order-ghost{opacity:.5}
.store-order[inert]{opacity:.6}
/* A section's form is one line where there is room: the title takes what is left, the place is as wide as its options
   need, the box stands beside its label's text on one line at every width, and the whole label is a touch target. On a
   phone the title has a line of its own and the rest wraps below it. */
.work-panel .store-widget-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-3)}
.work-panel .store-widget-form label{margin:0}
.work-panel .store-widget-form label:first-of-type{flex:1 1 12rem}
.work-panel .store-widget-form select[name=position]{inline-size:auto}
.work-panel .store-widget-shown{display:flex;align-items:center;gap:var(--space-2);min-block-size:2.75rem;cursor:pointer}
/* From 64rem a section is one row of the grid: the handle (when the script added it), the section's name and state, and
   its form, all on one line. */
@media(min-width:64rem){
 .store-order .work-row{grid-template-columns:minmax(0,12rem) minmax(0,1fr);align-items:center}
 .store-order .work-row:has(>.store-order-handle){grid-template-columns:2.75rem minmax(0,12rem) minmax(0,1fr)}
 .store-order .work-row:has(>.store-order-handle)>div{grid-column:auto}
 .store-order .work-row>.store-order-handle{grid-row:auto}
 .work-panel .store-order .store-widget-form{margin:0}
}
/* A picked game, or a game found, with its buttons at the row's end, on the game's line from 40rem; on a phone they
   stand below the game, at the same end. */
.store-pick>div:last-child{justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;gap:var(--space-2)}
.work-panel .store-pick form{margin:0;inline-size:auto;display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-2)}
.work-panel .store-pick form label{margin:0}
.work-panel .store-pick select[name=position]{inline-size:auto}
@media(min-width:40rem){.store-pick{grid-template-columns:minmax(0,1fr) max-content;align-items:center}}
