body{font-size:18px;background:var(--ink);padding-bottom:64px}button,input{font:inherit}button{cursor:pointer}button:focus-visible{outline:none;border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}input:focus{outline:none;border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}[hidden]{display:none!important}.header-inner{padding-block:24px}.brand{width:230px}.site-header nav{gap:32px}.site-header nav a[aria-current]{color:var(--gold)}
main{min-height:calc(100svh - 210px)}.sign-in{max-width:440px;width:100%;align-self:center}.step{color:var(--gold);font-size:11px;letter-spacing:.16em;margin-bottom:20px}.sign-in h2{font-size:38px;line-height:1.15;margin-bottom:16px}.sign-in>p:not(.step){color:var(--muted);font-size:17px}.sign-in strong{font-weight:600;color:var(--cream);overflow-wrap:anywhere}form{display:grid;gap:12px;margin-top:30px}label{font-size:15px;font-weight:600}input{width:100%;min-height:56px;padding:14px 16px;background:#181713d9;border:1px solid var(--line);border-radius:4px;color:var(--cream)}input::placeholder{color:#a69985}.primary{border:1px solid #f3c467;background:linear-gradient(#efbd55,#dba033);color:#221b10;border-radius:4px;min-height:54px;padding:14px 22px;font-weight:650;font-size:17px;display:flex;align-items:center;justify-content:center;gap:20px}.primary:hover{background:#f5c96d}.account-note{border-top:1px solid #79634170;padding-top:22px;margin-top:26px;font-size:14px!important;line-height:1.55}.text-button{background:none;border:0;color:var(--gold);padding:0;min-height:36px;font-size:15px;text-decoration:underline;text-underline-offset:4px}#change-email{margin-bottom:22px}.code-input{height:56px;min-height:56px;font-size:30px;line-height:1;letter-spacing:.42em;text-align:center;padding:8px 16px 8px 28px}.resend-line{margin-top:22px}#code-status{font-size:14px;margin-top:10px;color:var(--gold)}
.catalog{max-width:1200px;margin:auto;padding:52px 40px 50px}.catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:36px}.catalog-heading .eyebrow{font-size:11px;margin-bottom:12px}.catalog-heading h1{font-size:64px;margin-bottom:16px}.catalog-heading p:last-child{color:var(--muted)}.account{text-align:right;display:grid;font-size:14px;gap:3px}.account span{color:var(--muted)}.account strong{font-weight:500;overflow-wrap:anywhere}.account button{justify-self:end}.starter{display:grid;grid-template-columns:230px 1fr 240px;gap:24px;align-items:center;border:1px solid var(--line);border-radius:6px;background:radial-gradient(ellipse at 10% 80%,#90652333,transparent 55%),linear-gradient(100deg,#382f22,#27241f);padding:18px 32px 18px 16px}.starter-art img{width:210px;height:195px;object-fit:contain}.starter .eyebrow{font-size:10px;margin-bottom:10px}.starter h2{font-size:35px;margin-bottom:10px}.starter-amount{color:var(--gold);font-size:20px;font-weight:600;margin-bottom:6px}.starter-copy>p:last-child{font-size:15px;color:var(--muted);max-width:32ch}.starter-action{display:grid;gap:18px}.pack-caption{font-size:14px;text-align:center;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:38px 0 24px;gap:20px}.section-title h2{font-size:30px}.section-title span{color:var(--muted);font-size:14px}.pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.pack{padding:18px 24px 24px;background:radial-gradient(ellipse at 50% 35%,#55442c40,transparent 66%),#25231e;border:1px solid #79634177;border-radius:6px;text-align:center}.pack-top{min-height:24px;text-align:right;color:var(--gold);font-size:12px;letter-spacing:.03em}.pack img{width:100%;height:164px;object-fit:contain;margin:2px auto 8px;filter:drop-shadow(0 8px 12px #0006)}.pack h3{font-size:32px;line-height:1.1}.pack>p{font-size:14px;color:var(--muted);margin:4px 0 20px}.pack .buy{min-height:48px;width:100%;border:1px solid var(--line);border-radius:4px;background:#30291f;color:var(--cream);font-weight:600}.pack .buy:hover{background:#473823;border-color:var(--gold)}.payment-note{font-size:13px;text-align:center;color:var(--muted);margin:28px 0 0}footer{border-top:1px solid #79634140;max-width:1200px;margin:auto;padding:26px 40px;display:flex;justify-content:space-between;color:var(--muted);font-size:13px}footer div{display:flex;gap:24px}footer a{text-decoration:none}
dialog{width:min(480px,calc(100vw - 32px));border:1px solid var(--bronze-trim);border-radius:8px;padding:38px 32px 28px;background:radial-gradient(ellipse at 50% 35%,#57442b66,transparent 75%),#25221c;color:var(--cream);text-align:center;box-shadow:0 24px 100px #0008;max-height:calc(100svh - 90px);overflow:auto}dialog::backdrop{background:#100e0bd9;backdrop-filter:blur(6px)}dialog .close{position:absolute;top:8px;right:8px;width:44px;height:44px;background:none;border:0;color:var(--muted);font-size:28px}dialog .eyebrow{font-size:10px;margin-bottom:12px}dialog h2{font-size:34px}dialog img{height:180px;width:220px;object-fit:contain;margin:12px auto}dialog h3{font-size:27px;color:var(--gold);margin-bottom:12px}dialog p:not(.eyebrow){font-size:16px;color:var(--muted)}dialog .primary{width:100%;margin-top:26px}dialog .receipt{font-size:12px!important;margin-top:18px}
@media(max-width:900px){.starter{grid-template-columns:170px 1fr}.starter-art img{width:170px}.starter-action{grid-column:2}.pack-grid{gap:14px}.pack{padding:16px}.catalog{padding:40px 24px}}
@media(max-width:680px){body{padding-bottom:95px}.header-inner{flex-direction:row;padding:18px 24px;gap:20px}.header-inner .brand{width:165px}.header-inner nav{gap:18px}.header-inner nav a{font-size:15px}.sign-in{max-width:none}.sign-in h2{font-size:30px}.sign-in>p:not(.step){font-size:16px}.step{margin-bottom:12px}.catalog-heading{align-items:start;flex-direction:column;gap:24px}.catalog-heading h1{font-size:52px}.account{display:flex;flex-wrap:wrap;gap:8px;text-align:left;align-items:center}.account button{margin-left:8px}.starter{grid-template-columns:1fr;text-align:center;padding:24px;gap:10px}.starter-art img{width:190px;height:170px;margin:auto}.starter-action{grid-column:auto;margin-top:10px}.starter-copy>p:last-child{margin:auto}.pack-caption{display:none}.section-title{display:block}.section-title span{display:block;margin-top:8px}.pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pack img{height:120px}.pack{padding:12px}.pack h3{font-size:28px}.pack .buy{font-size:15px}.pack-top{font-size:11px}footer{padding:24px;gap:20px;flex-wrap:wrap}.payment-note{line-height:1.6}}
/* Browse-first revision: the catalog stays visible through authentication. */
.catalog{max-width:1400px;padding-top:44px}.catalog-heading{margin-bottom:32px}.catalog-heading h1{font-size:58px}.store-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:36px;align-items:start}.store-products{min-width:0}.account-panel{position:sticky;top:28px;border-left:1px solid #79634180;padding:6px 0 0 28px}.account-panel .eyebrow{font-size:10px;margin-bottom:16px}.account-panel h2{font-size:25px;line-height:1.2;margin-bottom:14px}.account-panel p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.6}.side-sign-in{background:#30291f;border:1px solid var(--line);border-radius:4px;min-height:46px;color:var(--cream);width:100%;margin-top:20px;font-size:16px}.side-sign-in:hover{border-color:var(--gold)}.account-status{font-size:12px;color:var(--gold);display:block;margin-bottom:10px}.account-status:before{content:'●';font-size:8px;margin-right:8px}.account-panel strong{font-size:15px;font-weight:600;display:block;overflow-wrap:anywhere;margin-bottom:12px}.account-panel .text-button{margin-top:10px}.account-help{border-top:1px solid #79634150;margin-top:26px;padding-top:20px;display:grid;gap:8px;font-size:13px}.account-help span{color:var(--muted)}.account-help a{color:var(--cream);text-decoration:none}.starter{grid-template-columns:170px 1fr 175px;gap:18px;padding:20px}.starter-art img{width:170px;height:175px}.starter h2{font-size:31px}.starter-action .primary{padding:12px;font-size:16px}.pack img{height:150px}.pack{transition:border-color .15s,background .15s;cursor:pointer}.pack:hover{border-color:var(--bronze-trim);background-color:#2e2a22}.starter{cursor:pointer}.starter:hover{border-color:var(--gold)}
#login{width:min(480px,calc(100vw - 32px));text-align:left;padding:40px 36px 30px}#login .sign-in{max-width:none}#login h2{font-size:32px}#login .sign-in>p:not(.step){font-size:16px}#login .account-note{font-size:13px!important}#login .step{margin-top:4px;margin-bottom:14px}#login .primary{margin-top:0}#login #change-email{margin-bottom:14px}#login #code-status{font-size:13px}#review-email{overflow-wrap:anywhere}#review img{height:160px}.store-products .pack-top{min-height:24px}body:has(dialog[open]){overflow:hidden}
@media(max-width:1100px){.store-layout{gap:24px;grid-template-columns:minmax(0,1fr) 200px}.account-panel{padding-left:20px}.starter{grid-template-columns:145px 1fr}.starter-action{grid-column:2}.starter-art{grid-row:1 / 3}.starter-art img{width:145px}.pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.starter-action .pack-caption{display:none}}
@media(max-width:760px){.store-layout{grid-template-columns:1fr;gap:28px}.account-panel{position:static;grid-row:1;border:1px solid #79634160;border-radius:4px;padding:18px 20px}.account-panel .eyebrow,.account-help,.account-panel h2{display:none}#guest-account{display:flex;align-items:center;gap:20px}#guest-account p{font-size:13px}.side-sign-in{width:auto;min-width:85px;margin:0;padding:8px 14px}#member-account{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px}.account-status{margin-bottom:6px}#member-account strong{grid-column:1;margin:0}#member-account>p{display:none}#sign-out{grid-column:2;grid-row:1 / 3;align-self:center;margin:0}.catalog-heading{margin-bottom:24px}.catalog-heading .eyebrow{font-size:10px}.catalog-heading h1{font-size:48px}.starter{grid-template-columns:120px 1fr;text-align:left;padding:20px;gap:12px}.starter-art img{width:120px;height:140px}.starter h2{font-size:27px}.starter-copy>p:last-child{font-size:13px}.starter-amount{font-size:18px}.starter-action{grid-column:1 / -1;margin:0}.starter-art{grid-row:auto}.starter .eyebrow{font-size:9px}.pack img{height:125px}#login{padding:36px 24px 24px}#login h2{font-size:29px}}

/* Compact account controls; let the packs use the full shop width. */
.catalog{max-width:1200px}.store-layout{display:block}.account-compact{flex-shrink:0;font-size:14px}.account-compact #member-account{display:flex;align-items:center;gap:18px}.account-compact #account-email{color:var(--muted);overflow-wrap:anywhere}.account-compact #sign-out{margin:0}.catalog-heading{align-items:center}.account-compact .text-button{min-height:44px}#login .sign-in h2{margin-top:0}
@media(max-width:680px){.catalog-heading{flex-direction:row;align-items:start;flex-wrap:wrap;gap:12px}.account-compact{max-width:100%}.account-compact #member-account{display:flex;flex-wrap:wrap;gap:8px 16px}.catalog-heading>div:first-child{flex:1;min-width:220px}}
/* Painted currency and cloth ribbons reuse the in-game art. */
.pack,.starter{position:relative;overflow:hidden}.pack{padding-top:30px}.pack h3{font-size:27px;line-height:1.2;margin:10px 0 12px}.coin-amount{display:flex;justify-content:center;align-items:center;gap:9px;color:var(--cream);font:600 24px/1.3 var(--sans);margin-bottom:22px}.coin-amount img,.pack .coin-amount img,dialog .coin-amount img{width:28px;height:28px;object-fit:contain;margin:0;filter:none;flex-shrink:0}.starter .coin-amount{justify-content:flex-start;margin-bottom:8px;font-size:22px}.bonus-ribbon{position:absolute;z-index:1;top:25px;right:-47px;width:180px;height:28px;display:flex;align-items:center;justify-content:center;transform:rotate(45deg);background:url('/shop/assets/bonus-ribbon.png') center/100% 100% no-repeat;color:#fff1d5;font:600 13px/1 var(--sans);text-shadow:0 1px 3px #000;pointer-events:none}.starter-action{padding-top:16px}#review .coin-amount{margin:0 0 20px}#review .coin-amount img{width:28px;height:28px}
@media(max-width:680px){.pack h3{font-size:21px;min-height:2.4em;display:flex;align-items:center;justify-content:center;margin:8px 0}.pack .coin-amount{font-size:21px;margin-bottom:18px;gap:7px}.pack .coin-amount img{width:24px;height:24px}.bonus-ribbon{top:21px;right:-51px;font-size:12px;height:25px}.starter{padding-top:28px}.starter .coin-amount{font-size:20px}.starter .coin-amount img{width:25px;height:25px}.starter-action{padding-top:0}}
/* Clear pack contents, a quiet purchase column, and readable account controls. */
.starter{grid-template-columns:185px minmax(0,1fr) 180px;gap:26px;padding:30px}.starter-art{grid-row:auto}.starter-art img{width:185px;height:195px}.starter-action{grid-column:auto;padding:24px 0 0;align-self:center}.starter-action .primary{font-size:18px;min-height:54px}.starter-copy{min-width:0}.starter-copy .coin-amount{margin:12px 0 18px}.starter-bonuses{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;max-width:360px}.starter-bonuses li{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--muted)}.starter-bonuses img{width:34px;height:34px;object-fit:contain;flex-shrink:0}.account-compact{max-width:55%;flex-shrink:1}.account-compact #member-account{display:flex;gap:12px;padding:10px 12px 10px 16px;border:1px solid #79634180;border-radius:6px;background:#29261f;flex-wrap:nowrap}.account-icon{color:var(--gold);flex-shrink:0}.account-compact #account-email{font-size:18px;line-height:1.3;color:var(--cream);min-width:0}.account-compact #sign-out,.account-compact #side-sign-in{font-size:16px;text-decoration:none;border:1px solid var(--line);border-radius:4px;min-height:44px;padding:8px 14px;white-space:nowrap;background:#211e19}.account-compact #sign-out:hover,.account-compact #side-sign-in:hover{border-color:var(--gold);background:#3b3021}
@media(max-width:1000px){.starter{grid-template-columns:160px minmax(0,1fr);padding:28px;gap:20px}.starter-art{grid-row:1 / 3}.starter-art img{width:160px;height:190px}.starter-action{grid-column:2;padding:0}.starter-action .primary{width:100%}.catalog-heading{flex-wrap:wrap}.account-compact{max-width:100%}}
@media(max-width:680px){.starter{grid-template-columns:1fr;padding:30px 24px 24px;text-align:center;gap:12px}.starter-art{grid-row:auto}.starter-art img{width:180px;height:160px;margin:auto}.starter h2{font-size:31px}.starter-copy .coin-amount{justify-content:center;margin:12px 0 20px}.starter-bonuses{gap:12px 16px;text-align:left;margin:0 auto 8px;max-width:300px}.starter-bonuses li{font-size:14px}.starter-bonuses img{width:30px;height:30px}.starter-action{grid-column:auto;width:100%;padding:0}.account-compact{width:100%}.account-compact #member-account{gap:10px;padding:10px 12px;flex-wrap:nowrap}.account-compact #account-email{font-size:17px;flex:1}.account-compact #sign-out{font-size:15px;padding-inline:10px}.account-icon{width:21px;height:21px}}
/* Align painted baselines using each source image's visible alpha bounds (alpha >= 128). */
.pack-art{height:170px;display:flex;align-items:flex-end;justify-content:center;margin:0 0 20px}.pack .pack-art img{width:150px;height:150px;max-width:100%;object-fit:contain;margin:0;transform:translateY(var(--art-bottom-offset));flex-shrink:0}.pack h3{margin-top:0}
/* The title, currency and bonus rows share a compact left edge. */
.starter{grid-template-columns:220px minmax(0,1fr) 200px;gap:36px;padding:36px;align-items:center}.starter-art{grid-row:auto;display:flex;align-items:center;justify-content:center}.starter-art img{width:220px;height:220px;margin:0}.starter-copy h2{font-size:36px;margin:0 0 16px}.starter-copy .coin-amount{margin:0 0 22px;font-size:26px}.starter-bonuses{max-width:310px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;padding-top:18px;border-top:1px solid #79634160}.starter-bonuses li{gap:9px;font-size:15px}.starter-bonuses img{width:32px;height:32px}.starter-action{padding:0;display:flex;flex-direction:column;gap:12px;align-self:center;grid-column:auto}.starter-limit{font-size:13px;color:var(--muted);text-align:center}.starter-action .primary{width:100%}
@media(max-width:1000px){.starter{grid-template-columns:180px minmax(0,1fr);gap:24px 30px;padding:30px}.starter-art{grid-row:1 / 3}.starter-art img{width:180px;height:200px}.starter-action{grid-column:2;align-items:flex-start;gap:8px}.starter-action .primary{max-width:310px}.starter-copy h2{font-size:32px}.starter-limit{order:1;width:min(310px,100%)}.starter-bonuses{max-width:310px}}
@media(max-width:680px){.pack-art{height:145px;margin-bottom:16px}.pack .pack-art img{width:125px;height:125px}.starter{grid-template-columns:1fr;padding:28px 24px 24px;gap:20px}.starter-art{grid-row:auto}.starter-art img{width:190px;height:180px}.starter-copy h2{text-align:center;margin-bottom:12px}.starter-copy .coin-amount{justify-content:center;margin-bottom:18px;font-size:24px}.starter-bonuses{margin:0 auto;max-width:290px;padding-top:16px;gap:12px 18px}.starter-action{grid-column:auto;align-items:center;gap:10px}.starter-action .primary{max-width:none}.starter-limit{order:1}.pack h3{margin-top:0}}
/* Center the visible painting, compensating for its transparent canvas edges. */
.starter-art{align-self:center;grid-row:auto}.starter-art img{object-fit:contain;transform:translateY(-1.171875%)}.starter-bonuses img{width:38px;height:38px}.starter-bonuses li{color:var(--cream);font-size:16px}.starter-bonuses{gap:14px 22px}
@media(min-width:681px) and (max-width:1000px){.starter-art{grid-row:1 / 3}}
@media(max-width:680px){.starter-bonuses img{width:36px;height:36px}.starter-bonuses li{font-size:15px}.starter-art img{width:190px;height:190px}}
/* Optical balance: the bright coin stacks carry more weight than the dark badges. */
@media(min-width:681px){.starter-art img{transform:translateY(10px)}}
/* Give the featured purchase the same visual weight as the pack buttons. */
.starter-limit{order:1;width:100%;text-align:center}.starter-action{gap:12px}
@media(min-width:1001px){.starter{grid-template-columns:220px minmax(0,1fr) 290px}.starter-action{margin-right:12px}.starter-action .primary{min-height:54px}}
/* Guests keep a compact sign-in action beside the mobile title. */
@media(max-width:680px){
 .catalog-heading:has(#side-sign-in:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:0;align-items:center}
 .catalog-heading:has(#side-sign-in:not([hidden]))>div:first-child{display:contents;min-width:0}
 .catalog-heading:has(#side-sign-in:not([hidden])) .eyebrow{grid-column:1 / -1;margin-bottom:12px}
 .catalog-heading:has(#side-sign-in:not([hidden])) h1{grid-column:1;margin-bottom:0}
 .catalog-heading:has(#side-sign-in:not([hidden])) .account-compact{grid-column:2;grid-row:2;width:auto;max-width:none}
}
/* Compact two-column cards, matching the app's dense shop layout. */
@media(max-width:680px){
 .pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .pack{padding:16px 10px 12px}
 .pack-art{height:115px;margin-bottom:12px}
 .pack .pack-art img{width:105px;height:105px}
 .pack h3{font-size:19px;line-height:1.15;min-height:2.3em;margin:0 0 6px}
 .pack .coin-amount{font-size:20px;gap:6px;margin-bottom:12px}
 .pack .coin-amount img{width:22px;height:22px}
 .pack .buy{font-size:15px;min-height:44px}
 .pack .bonus-ribbon{height:22px;top:17px;right:-55px;font-size:11px}
}
@media(max-width:680px){.pack h3{display:none}}
/* Signed-in accounts share the title row, just like the sign-in action. */
@media(max-width:680px){
 .catalog-heading:has(#member-account:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,62%);gap:0 12px;align-items:center}
 .catalog-heading:has(#member-account:not([hidden]))>div:first-child{display:contents;min-width:0}
 .catalog-heading:has(#member-account:not([hidden])) .eyebrow{grid-column:1 / -1;margin-bottom:12px}
 .catalog-heading:has(#member-account:not([hidden])) h1{grid-column:1;font-size:clamp(34px,10vw,48px);margin:0}
 .catalog-heading:has(#member-account:not([hidden])) .account-compact{grid-column:2;grid-row:2;width:auto;min-width:0;max-width:100%}
 .account-compact #member-account{padding:0;border:0;background:none;gap:8px;min-width:0}
 .account-compact .account-icon{display:none}
 .account-compact #account-email{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
 .account-compact #sign-out{font-size:14px;padding:8px;flex-shrink:0}
}
@media(max-width:680px){
 .catalog-heading:has(#member-account:not([hidden])) .account-compact{justify-self:end;width:max-content;max-width:100%}
 .account-compact #member-account{justify-content:flex-end;gap:10px}
 .account-compact #account-email{flex:0 1 auto;font-size:16px;font-weight:600}
}

/* Production state and account layout. */
body{padding-bottom:0}button:disabled{opacity:.55;cursor:wait}.site-header nav{display:flex;position:static;transform:none;visibility:visible;opacity:1}.closed{text-align:center;padding:100px 24px;background:linear-gradient(#1d1c19bb,#1d1c19),url('/assets/hero-battle.webp') center/cover}.closed h1{font-size:64px;margin-inline:auto}.closed h2{margin:24px 0 12px}.closed a{display:inline-block;margin-top:24px;color:var(--gold)}#login-status,#review-status{color:var(--gold);font-size:15px;margin-top:16px}.account-compact{margin-left:auto;width:max-content;min-width:0}.account-compact #member-account{justify-content:flex-end;align-items:center;width:max-content;max-width:100%;padding:0;border:0;background:none}.account-compact #account-email{font-size:20px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-compact #sign-out{flex-shrink:0}
@media(max-width:680px){.account-compact #account-email{font-size:16px}.site-header nav{width:auto;padding:0;background:none}.catalog-heading{flex-wrap:nowrap}}

/* Keep loading and connection errors within the shop's content column. */
.shop-status{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid var(--line);border-radius:6px;background:#25231e}
.shop-status:has(#message:empty):has(#retry[hidden]){display:none}
.shop-status #message{margin:0;color:var(--muted);font-size:16px;line-height:1.5}
.shop-status #retry{flex-shrink:0;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:4px;text-decoration:none;font-size:16px}
.shop-status #retry:hover{border-color:var(--gold);background:#3b3021}
@media(max-width:480px){.shop-status{align-items:flex-start;flex-direction:column;gap:12px;padding:20px}.shop-status #retry{align-self:flex-start}}

/* Match a three-column pack button: account for the featured card's 36px
   padding, the grid's 20px gaps, and regular cards' 24px padding + borders. */
@media(min-width:1101px){
 .starter{grid-template-columns:220px minmax(0,1fr) calc((100% - 116px)/3 + 12px)}
}

/* Loading follows the shelf silhouette instead of looking like an error alert. */
/* Keep the loading announcement available to screen readers without a visible
   label or extra row between the heading and the shelf placeholders. */
.catalog:has(#shop-loading:not([hidden])) .shop-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#shop-loading{opacity:.65}
.loading-feature,.loading-card{border:1px solid #79634145;border-radius:6px;background:#25231e;padding:28px}
.loading-feature{min-height:296px;display:flex;align-items:center;gap:36px;margin-bottom:88px}
.loading-feature>span{width:190px;height:190px;flex-shrink:0}
.loading-feature>div{width:36%;display:grid;gap:22px}
#shop-loading span,#shop-loading i{display:block;background:#79634122;border-radius:4px}
#shop-loading i{height:22px;width:75%}
#shop-loading i:last-child{width:100%;height:44px}
.loading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.loading-card{display:flex;flex-direction:column;align-items:center;gap:24px;min-height:340px}
.loading-card>span{width:150px;height:150px;margin-bottom:12px}
@media(max-width:1100px){.loading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.loading-feature{flex-direction:column;gap:28px;min-height:570px;margin-bottom:88px}.loading-feature>div{width:100%;gap:28px}.loading-feature i{margin:auto}.loading-grid{gap:12px}.loading-card{min-height:230px;padding:16px 10px;gap:16px}.loading-card>span{width:105px;height:105px;margin:0}#shop-loading i{height:18px}#shop-loading i:last-child{height:44px}}

/* The close glyph itself carries focus, without a square around the icon. */
dialog .close:focus-visible{outline:none;box-shadow:none;color:var(--gold);text-shadow:0 0 8px #efbd5566}
#catalog-title:focus{outline:none}

/* Sign-in failures stay next to the action and are distinct from help text. */
/* Match Palette.DANGER_TEXT / DANGER in game/ui/palette.gd; reuse the
   shared SHEET and BONE equivalents for the notice surface and body. */
#login{--error-text:#e86a5d;--error-border:#b4453c;--error-surface:var(--surface)}
#login .form-error{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:var(--error-surface);border:1px solid var(--error-border);border-left:3px solid var(--error-text);border-radius:4px;text-align:left}
#login .form-error svg{flex-shrink:0;color:var(--error-text);margin-top:1px}
#login .form-error strong{display:block;color:var(--error-text);font-size:16px;font-weight:650;line-height:1.4}
#login .form-error p{margin:5px 0 0;font-size:14px;line-height:1.5;color:var(--cream)}
#login input[aria-invalid=true]{border-color:var(--error-text);box-shadow:inset 0 0 0 1px var(--error-text)}
#login-status:empty{display:none}
