:root{color-scheme:dark;--ink:#f7efff;--muted:#b5a6c1;--green:#83ff55;--purple:#a55bfa;--line:#503467;--gold:#f2cf76;--surface:#170e22}
*{box-sizing:border-box;letter-spacing:0}html{background:#09070d;color:var(--ink);font-family:"Segoe UI",Arial,sans-serif}body{margin:0;min-width:320px}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}button,select,input{border-radius:4px}button{border:1px solid var(--line);background:var(--surface)}[hidden]{display:none!important}
.site-nav .brand{font-size:24px}.site-nav .nav-links a{border-radius:4px}.shop-shell{max-width:1360px;margin:auto}.shop-stage{position:relative;height:420px;isolation:isolate;overflow:hidden;border-bottom:2px solid #735292;background:#171019}.shop-interior,.counter-front{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.keeper-image{position:absolute;z-index:1;width:370px;height:400px;left:50%;bottom:38px;transform:translateX(-50%);object-fit:cover;object-position:center 22%;border-radius:48% 48% 0 0;mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent)}.counter-front{z-index:2;background:var(--storefront-image,none) center/cover;clip-path:inset(var(--counter-top,73%) 0 0 0);pointer-events:none}.keeper-name{position:absolute;z-index:3;top:20px;left:24px;margin:0;padding:10px 18px;border:1px solid #998059;border-radius:3px;background:#130c16ed;color:var(--green);font:700 23px/1.2 Georgia,serif;text-shadow:0 1px 4px #000;box-shadow:0 4px 18px #0005}.symbol{--symbol:none;display:inline-block;width:21px;height:21px;flex:0 0 auto;background:currentColor;mask:var(--symbol) center/contain no-repeat;vertical-align:middle}.icon-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #8967a8;background:#130e1eeb;color:#e8d9f5}.icon-button:hover{color:var(--green);border-color:var(--green)}.merchant-arrow{position:absolute;z-index:4;top:45%;border-radius:50%;box-shadow:0 3px 15px #0006}.merchant-arrow.previous{left:18px}.merchant-arrow.next{right:18px}.counter-goods{position:absolute;z-index:3;bottom:12px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:22px}.counter-item{display:grid;justify-items:center;gap:3px;width:92px;padding:4px 5px 5px;background:#120b19e8;border:1px solid #78519e;box-shadow:0 5px 10px #0007;transition:transform .15s}.counter-item:hover{transform:translateY(-5px);border-color:var(--green)}.counter-item img{width:60px;height:60px;object-fit:contain}.counter-item .gold{font-size:12px}.gold{display:inline-flex;gap:5px;align-items:center;justify-content:center;white-space:nowrap;color:var(--gold);font-weight:700;font-variant-numeric:tabular-nums}.gold .symbol{width:17px;height:17px}
.catalog{padding:0 28px 60px}.catalog-top{border-bottom:1px solid var(--line);margin-bottom:18px}.category-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:14px 0 10px}.category-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 0 auto;min-height:46px;padding:9px 15px;background:transparent;border:1px solid transparent;color:#cbb7df;font-size:14px;font-weight:600}.category-tabs button[aria-pressed=true]{background:#29163b;border-color:#9655ce;color:var(--green)}.category-tabs button:hover{background:#22132f;color:#e6ffda}.category-tabs button .symbol{width:19px;height:19px}.catalog-tools{display:grid;grid-template-columns:minmax(180px,1fr) auto 190px;gap:16px;align-items:center}.search-field{display:flex;gap:10px;align-items:center;min-height:44px;border:1px solid var(--line);border-radius:4px;padding:0 12px;background:#110c19;color:var(--muted)}.search-field input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:var(--ink);padding:11px 0}.search-field:focus-within{outline:2px solid var(--green)}.search-field input::placeholder{color:#aa97bb}.tier-tabs{display:flex;padding:3px;border:1px solid var(--line);border-radius:4px;background:#110b1a}.tier-tabs button{min-height:36px;padding:7px 15px;border:0;background:transparent;color:#bfa9cf;font-size:12px;font-weight:700}.tier-tabs button[aria-pressed=true]{background:#37204e;color:#fff;box-shadow:inset 0 -2px var(--green)}.sort-label select{width:100%;min-height:44px;padding:0 28px 0 12px;border:1px solid var(--line);background:#110c19;font-size:12px}.shelf-summary{display:flex;justify-content:space-between;align-items:center;height:42px;color:#a895b8;font-size:12px}.shelf-summary button{background:none;border:0;color:var(--green);font-size:12px;min-height:36px}
.supply-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.supply-card{--family:#baa0d5;position:relative;display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;text-align:left;border:1px solid #69418c;border-radius:6px;background:#170f23;box-shadow:inset 0 0 0 1px #251432;transition:border-color .15s,transform .15s}.supply-card:hover{border-color:#b575ff;transform:translateY(-3px);box-shadow:0 6px 20px #090312,inset 0 0 0 1px #5c307c}.item-art{position:relative;display:block;width:100%;aspect-ratio:1.13;background:#100b18;overflow:hidden}.item-art img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s}.supply-card:hover .item-art img{transform:scale(1.045)}.family-symbol{position:absolute;left:10px;top:10px;display:grid;place-items:center;width:33px;height:33px;border:1px solid #82619c88;border-radius:4px;background:#0d0916e8;color:var(--family);box-shadow:0 2px 6px #0004}.family-symbol .symbol{width:22px;height:22px}.rank{position:absolute;right:9px;top:11px;padding:4px 6px;border:1px solid #67955166;background:#102113d9;color:#aee692;border-radius:3px;font-size:10px;font-weight:800}.rank-1{color:#93cbff;border-color:#558ed666;background:#0e1c32e8}.rank-2{color:#ffdf89;border-color:#b98b3566;background:#282012e8}.rank-relic{color:#dcacff;border-color:#b173da88;background:#2a123ee8}.item-copy{display:flex;flex:1;flex-direction:column;padding:13px 13px 0;min-width:0}.item-type{display:block;color:var(--family);font-size:10px;font-weight:700;text-transform:uppercase;margin-bottom:6px}.item-name{display:block;color:#b0ff8b;font:700 17px/1.2 Georgia,serif;min-height:41px;overflow-wrap:anywhere}.item-blurb{display:block;color:#d4c5de;font-size:12px;line-height:1.4;min-height:34px;margin:7px 0 12px}.item-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;padding:11px 13px;border-top:1px solid #4b2b6580;background:#120c1b;font-size:14px}.item-footer>.symbol{color:#9574ad;width:17px;height:17px}.crate-label{font-size:12px;color:#dbabff;display:flex;align-items:center;gap:6px}.empty-state{text-align:center;padding:55px 10px;color:var(--muted)}.empty-state>.symbol{width:34px;height:34px;color:#c88aff}.empty-state button{padding:10px 18px;color:var(--green)}
.item-dialog{position:relative;width:min(760px,calc(100% - 32px));max-height:90dvh;padding:0;overflow:auto;border:1px solid #ab73df;border-radius:8px;background:#150d20;color:var(--ink);box-shadow:0 25px 100px #000b}.item-dialog::backdrop{background:#06040bc9}.close-dialog{position:sticky;float:right;top:10px;margin:10px 10px -54px 0;z-index:3;background:#180d28}.detail-main{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.detail-art{position:relative;display:flex;align-items:center;background:#100b18;min-width:0}.detail-art>img{width:100%;aspect-ratio:1;object-fit:contain}.detail-art .family-symbol{width:42px;height:42px;left:16px;top:16px}.detail-copy{padding:50px 26px 24px;min-width:0}.detail-copy .item-type{font-size:11px}.detail-copy h2{color:var(--green);font:700 28px/1.15 Georgia,serif;margin:8px 0 12px;overflow-wrap:anywhere}.detail-blurb{color:#d7c8e2;font-size:14px;line-height:1.45;margin:0 0 17px}.detail-tiers{display:flex;gap:5px;margin-bottom:20px}.detail-tiers button{flex:1;padding:9px 6px;font-size:12px;color:#cdb7dd}.detail-tiers button[aria-pressed=true]{border-color:#b277e1;color:#bbff99;background:#352046}.detail-stats{margin:0;border-top:1px solid #4e3062}.detail-stats>div{display:grid;grid-template-columns:86px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid #392345;font-size:13px;line-height:1.4}.detail-stats dt{color:#aa92bf}.detail-stats dd{margin:0;color:#f0e7f8}.detail-stats .effect-value{color:#b4ff89;font-weight:600}.detail-rules{color:#bda9cc;font-size:12px;line-height:1.6;margin:16px 0 0}.detail-purchase{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 24px;border-top:1px solid #654181;background:#1f132d}.detail-purchase .gold{font-size:22px}.purchase-state{min-height:44px;padding:10px 18px;background:#241d2b;color:#aaa0b3;border-color:#4a3c58;font-weight:600;font-size:13px}.detail-purchase .crate-label{font-size:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-script{padding:20px;text-align:center}
@media(min-width:1500px){.shop-stage{height:445px}.keeper-image{height:425px;width:390px}.catalog{padding-inline:36px}}
@media(max-width:1050px){.supply-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog{padding-inline:18px}.catalog-tools{gap:10px;grid-template-columns:minmax(160px,1fr) auto 165px}.tier-tabs button{padding-inline:11px}.category-tabs button{padding-inline:12px}.shop-stage{height:390px}.keeper-image{height:370px;width:320px}}
@media(max-width:760px){.supply-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-tools{grid-template-columns:1fr 155px}.tier-tabs{grid-row:2;grid-column:1/-1;justify-content:center}.tier-tabs button{flex:1}.shop-stage{height:370px}.shop-interior,.counter-front{background-size:auto 100%;object-fit:cover}.keeper-image{height:365px;width:300px}.keeper-name{font-size:21px;top:15px;left:16px}.counter-goods{gap:13px;bottom:10px}.counter-item{width:80px}.counter-item img{width:53px;height:53px}.item-name{font-size:16px}.catalog-top{margin-bottom:12px}.category-tabs{padding-top:10px;gap:0}.category-tabs button{font-size:12px;padding-inline:12px}.detail-copy{padding-inline:20px}}
@media(max-width:540px){.site-nav .brand{font-size:22px}.site-nav .nav-inner{min-height:90px}.site-nav .nav-links{flex-wrap:nowrap;width:100%;overflow-x:auto;scrollbar-width:none}.site-nav .nav-links a{padding:7px 9px;font-size:11px}.shop-stage{height:330px}.keeper-image{height:327px;width:272px;bottom:25px}.keeper-name{top:10px;left:12px;font-size:18px;padding:7px 12px}.merchant-arrow{width:36px;height:36px;top:44%}.merchant-arrow.previous{left:10px}.merchant-arrow.next{right:10px}.counter-goods{gap:11px;width:100%;padding-inline:12px;bottom:9px}.counter-item{width:65px;padding:3px}.counter-item img{width:44px;height:44px}.counter-item .gold{font-size:10px;gap:3px}.counter-item .symbol{width:12px;height:12px}.catalog{padding:0 12px 35px}.category-tabs button{min-height:42px;gap:6px;padding-inline:12px}.category-tabs button .symbol{width:17px;height:17px}.category-tabs{margin-right:-12px;padding-right:12px}.catalog-tools{grid-template-columns:minmax(0,1fr) 132px;gap:9px}.search-field{min-height:43px;padding-inline:10px;gap:7px}.search-field input{font-size:13px}.search-field .symbol{width:17px;height:17px}.sort-label select{font-size:11px;padding-inline:7px 20px}.tier-tabs button{min-height:35px;font-size:11px}.shelf-summary{height:34px;font-size:11px}.supply-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.item-art{aspect-ratio:1.06}.family-symbol{width:28px;height:28px;top:8px;left:8px}.family-symbol .symbol{width:19px;height:19px}.rank{font-size:9px;right:7px;top:9px;padding:3px 4px}.item-copy{padding:10px 10px 0}.item-name{font-size:16px;min-height:39px}.item-type{font-size:9px}.item-blurb{font-size:11px;min-height:31px;margin:7px 0 10px}.item-footer{padding:10px;font-size:13px}.item-dialog{width:calc(100% - 20px);max-height:92dvh}.detail-main{grid-template-columns:1fr}.detail-art{justify-content:center;max-height:245px}.detail-art>img{width:235px;height:235px}.detail-copy{padding:20px}.detail-copy h2{font-size:26px}.detail-purchase{padding:14px 20px;position:sticky;bottom:0}.detail-purchase .gold{font-size:19px}.close-dialog{width:40px;height:40px}.detail-tiers button{min-height:42px}.detail-stats>div{padding-block:9px}.detail-rules{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.keeper-image{top:0;bottom:0;width:auto;height:100%;max-width:100%;object-fit:contain;object-position:center bottom;border-radius:0;mask-image:none;filter:drop-shadow(0 8px 18px #0008)}

.shop-art-error{position:absolute;z-index:5;left:50%;top:42%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:12px 16px;border:1px solid #a55bfa;border-radius:4px;background:#170e22;color:#f7efff;font-size:13px}.shop-art-error button{padding:9px 14px;color:var(--green)}
.shop-preview-picker{display:flex;align-items:center;justify-content:center;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line);background:#100b18}.shop-preview-picker label{color:var(--green);font-size:12px;font-weight:700}.shop-preview-picker select{width:min(360px,calc(100vw - 150px));min-height:40px;padding:0 12px;border:1px solid var(--line);background:#170e22}

/* Tier changes keep the dialog, artwork viewport and controls in place. */
.item-dialog{position:fixed;inset:0;margin:auto;height:min(620px,90dvh);max-width:calc(100% - 32px);overflow:hidden}
.item-dialog[open]{display:flex;flex-direction:column}
#item-detail{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
.close-dialog{position:absolute;top:10px;right:10px;float:none;margin:0}
.detail-main{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden}
.detail-art{height:auto;aspect-ratio:1;align-self:center;max-height:100%;overflow:hidden}
.detail-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.detail-art .family-symbol{z-index:1}
.detail-copy{overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.detail-copy h2{min-height:3.45em}
.detail-purchase{display:grid;grid-template-columns:120px minmax(0,1fr);flex:0 0 79px;align-items:center}
.detail-purchase .gold{justify-content:flex-start}
.purchase-state{justify-self:end;width:100%;max-width:200px;height:44px}
@media(max-width:540px){
  .item-dialog{height:92dvh;max-width:calc(100% - 20px)}
  .detail-main{display:block;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
  .detail-art{height:235px;max-height:none;aspect-ratio:auto}
  .detail-art>img{width:min(235px,100%);height:235px;left:50%;transform:translateX(-50%)}
  .detail-copy{overflow:visible;scrollbar-gutter:auto}
  .detail-purchase{position:static;flex-basis:81px;grid-template-columns:90px minmax(0,1fr)}
  .purchase-state{height:52px}
}
.shop-account {display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:12px 24px;color:#a5ff4d;font-size:13px}
.shop-account[hidden] {display:none}
.shop-account > a {margin-left:auto;display:flex;align-items:center;min-height:44px;color:#d8b7fa}
.shop-account p {width:100%;margin:0;color:#e4c9ef;min-height:18px}
.detail-quantity {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding-top:12px;font-size:12px}
.detail-quantity[hidden] {display:none}
.quantity-stepper {display:grid;grid-template-columns:44px 54px 44px;gap:4px;align-items:center}
.quantity-stepper button {min-width:44px;min-height:44px;border:1px solid #79529b;border-radius:4px;background:#251531;color:#e8d5f6;font-size:20px}
.quantity-stepper input {box-sizing:border-box;width:54px;height:44px;text-align:center;border:1px solid #79529b;border-radius:4px;background:#130d1b;color:#adff5b;font-size:16px}
.quantity-stepper button:disabled,.quantity-stepper input:disabled {opacity:.45}
.detail-purchase .purchase-state:not(:disabled) {color:#a8ff56;border-color:#8bc95a;background:#25341c;cursor:pointer}

/* The scene is the catalog. Fixed shelf positions keep every family within reach. */
.shop-stage {height:650px}
.keeper-image {top:35px;bottom:auto;height:calc(100% - 35px);max-width:58%}
.keeper-name {top:18px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);text-align:center;white-space:normal;font-size:22px}
.shop-rack {position:absolute;z-index:3;top:95px;width:26%;max-width:325px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;padding:0 16px}
.shop-rack-left {left:20px}
.shop-rack-right {right:20px}
.shop-rack .shelf-item:last-child {grid-column:1 / -1;justify-self:center;width:calc(50% - 9px)}
.shelf-heading {display:none}
.shelf-item {position:relative;display:grid;grid-template-rows:minmax(0,1fr) 37px;gap:0;width:100%;height:128px;min-width:0;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ink);isolation:isolate;touch-action:manipulation}
.shelf-art {position:relative;display:block;min-height:0;width:100%;background:#100b18d9;border-radius:5px 5px 0 0;box-shadow:0 0 18px #0b07197a}
.shelf-art img {display:block;width:100%;height:100%;object-fit:contain;transition:transform 160ms ease;mix-blend-mode:screen}
.shelf-symbol {position:absolute;left:5px;top:5px;color:var(--family);filter:drop-shadow(0 1px 2px #000)}
.shelf-symbol .symbol {width:16px;height:16px}
.shelf-tag {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px 3px;border:1px solid #80638f;border-radius:0 0 3px 3px;background:#160f21f5;box-shadow:0 6px 12px #0009}
.shelf-name {color:#d8c2ea;font-size:12px;font-weight:600;line-height:14px}
.shelf-tag .gold {font-size:11px;line-height:13px;gap:3px}
.shelf-tag .gold .symbol {width:13px;height:13px}
.shelf-item::after {content:'';position:absolute;z-index:-1;left:-9px;right:-9px;bottom:-7px;height:9px;background:var(--storefront-image) center 88%/440px auto;border-top:2px solid #aa8563;border-bottom:2px solid #21151a;box-shadow:0 6px 9px #0008;pointer-events:none}
.shelf-item:hover .shelf-art img {transform:translateY(-3px) scale(1.04)}
.shelf-item:hover .shelf-tag,.shelf-item:focus-visible .shelf-tag {border-color:var(--green)}
.shelf-item:focus-visible {outline-offset:4px}
.counter-goods {width:min(690px,calc(100% - 48px));bottom:22px;padding:0;gap:20px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.counter-goods .shelf-item {height:140px}
.counter-goods .shelf-item::after {display:none}
.shop-preview-picker .merchant-arrow {position:static;flex:none;width:44px;height:44px;margin:0;border-radius:4px;box-shadow:none}
.shop-preview-picker select {min-width:0;max-width:420px;width:100%;flex:1;min-height:44px}
.shop-preview-picker label {flex:none}
@media (min-width:761px) and (max-width:1100px) {
  .shop-rack {width:27%;padding-inline:6px;gap:16px 12px}
  .shop-rack-left {left:12px}.shop-rack-right {right:12px}
  .shop-rack .shelf-item {height:116px}
  .shelf-symbol {left:3px;top:3px}.shelf-symbol .symbol {width:14px;height:14px}
  .counter-goods {width:610px}
}
@media (max-width:760px) {
  .shop-preview-picker {padding:8px;gap:8px}
  .shop-preview-picker label {display:none}
}
/* Portrait is a straightforward storefront above the same fifteen item buttons. */
@media (max-width:760px) and (orientation:portrait) {
  .shop-stage {height:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:282px 12px 24px;background:#09070d}
  .shop-interior,.counter-front {top:44px;bottom:auto;height:220px}
  .keeper-image {top:44px;bottom:auto;height:240px;max-width:100%;clip-path:inset(0 0 20px 0)}
  .keeper-name {top:0;left:0;transform:none;display:grid;place-items:center;min-height:44px;font-size:19px;padding:8px 12px;width:100%;max-width:none;border-width:0 0 1px;border-color:var(--line);border-radius:0;background:#130c16;box-shadow:none}
  .shop-rack,.counter-goods {display:contents;position:static;transform:none}
  .shelf-heading {display:block;grid-column:1 / -1;margin:0;padding:4px 0;color:#c9aedf;font-size:13px;font-weight:700}
  .shelf-item,.counter-goods .shelf-item {width:100%;height:auto;aspect-ratio:1 / 1.18;grid-template-rows:minmax(0,1fr) 37px;border-color:#62427d}
  .shop-rack .shelf-item:last-child {grid-column:auto;width:100%}
  .shelf-item::after {display:none}
  .shelf-name {font-size:12px}
  .shelf-tag {border:0;border-top:1px solid #62427d;box-shadow:none}
  .shop-art-error {top:150px}
}
@media (max-width:350px) and (orientation:portrait) {
  .shop-stage {grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Landscape keeps the counter and side shelves, with ordinary fixed-size labels. */
@media (max-width:1100px) and (orientation:landscape) and (max-height:600px) {
  .site-nav .nav-inner {min-height:48px;flex-direction:row;align-items:center;gap:10px;padding-block:5px}
  .site-nav .brand {font-size:18px;flex:none}
  .site-nav .nav-links {width:auto;gap:4px;flex-wrap:nowrap}
  .site-nav .nav-links a {font-size:10px;padding:7px}
  .shop-stage {height:calc(100svh - 48px);min-height:280px;max-height:480px}
  .keeper-image {top:15px;height:calc(100% - 15px);max-width:50%}
  .keeper-name {top:8px;font-size:17px;padding:5px 12px}
  .shop-rack {top:48px;width:26%;max-width:250px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0}
  .shop-rack-left {left:12px}.shop-rack-right {right:12px}
  .shop-rack .shelf-item,.shelf-item {height:80px;grid-template-rows:minmax(0,1fr) 27px}
  .shop-rack .shelf-item:last-child {width:calc(50% - 4px)}
  .shelf-name {font-size:10px;line-height:11px}
  .shelf-tag {gap:0;padding:1px}
  .shelf-tag .gold {font-size:10px;line-height:11px}
  .shelf-symbol {left:2px;top:2px}.shelf-symbol .symbol {width:12px;height:12px}
  .shelf-item::after {left:-4px;right:-4px;bottom:-4px;height:5px;border-width:1px}
  .counter-goods {width:46%;gap:8px;bottom:8px}
  .counter-goods .shelf-item {height:84px}
}
@media (max-height:360px) and (orientation:landscape) {
  .shop-rack {top:44px;gap:6px}
  .shop-rack .shelf-item,.shelf-item {height:70px}
  .counter-goods .shelf-item {height:76px}
}
@media (max-width:540px) and (orientation:portrait) {
  .site-nav .nav-links {flex-wrap:wrap;overflow:visible}
}

/* The shop ledger uses the same gothic metals and restrained violet as the counter. */
.shop-account{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 24px;padding:16px 20px;background:linear-gradient(180deg,#15101d,#0c0911);border-top:1px solid #5b416e;border-bottom:1px solid #5b416e;color:var(--ink)}
.shop-owner-summary{display:flex;align-items:center;gap:14px;min-width:0;width:fit-content;max-width:100%;padding:13px 18px;border:1px solid #755d79;border-radius:5px;background:linear-gradient(135deg,#272033,#17111f 65%);box-shadow:inset 0 1px #d5b8e225,inset 0 -1px #0009,0 5px 18px #0004}
.shop-hero-emblem{width:28px;height:32px;color:#b899cd;filter:drop-shadow(0 1px 4px #000);flex:none}
#shop-identity{display:flex;flex-direction:column;gap:5px;min-width:0}
.shop-hero-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--green);font:700 20px/1.2 Georgia,serif;text-shadow:0 2px 4px #000;max-width:38ch}
.shop-hero-details{color:#c6b2d6;font-size:12px;line-height:1.3;letter-spacing:.03em}
#shop-gold{display:flex;flex-direction:column;gap:4px;margin-left:10px;padding-left:20px;border-left:1px solid #94764688;flex:none}
.shop-gold-caption{color:#c4a971;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1}
#shop-gold .gold{font:700 20px/1.2 Georgia,serif;font-variant-numeric:tabular-nums;color:#ffe19b;gap:8px;text-shadow:0 1px 5px #000}
#shop-gold .symbol{width:19px;height:19px;color:#d6b76d}
.shop-account-actions{display:flex;justify-content:flex-end;min-width:0}
.shop-account-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;min-width:184px;padding:12px 18px;border:1px solid #aa88bd;border-radius:5px;background:linear-gradient(180deg,#3b294b,#23162f);color:#f4e5ff;text-decoration:none;font:700 16px/1.2 Georgia,serif;box-shadow:inset 0 1px #e8c9ff35,inset 0 -2px #120b1a,0 4px 14px #0005;transition:background .15s,border-color .15s,box-shadow .15s}
.shop-account-button .symbol{width:20px;height:20px;color:#d2b0e5}
.shop-button-chevron{width:7px;height:7px;margin-left:8px;border-top:1px solid #d2b0e5;border-right:1px solid #d2b0e5;transform:rotate(45deg)}
.shop-account-button:hover{border-color:#d9b8eb;background:linear-gradient(180deg,#513360,#30203d);color:#fff;box-shadow:inset 0 1px #e8c9ff45,0 0 14px #9a5dc32c,0 4px 14px #0005}
.shop-account-button:active{background:#24162f;box-shadow:inset 0 2px 5px #0007}
.shop-account-button:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.shop-account #shop-status{grid-column:1/-1;width:auto;min-height:0;margin:0;color:#d4bfdc;font-size:12px;line-height:1.4}
.shop-account #shop-status:empty{display:none}
@media(max-width:640px){
 .shop-account{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}
 .shop-owner-summary{width:100%;gap:10px;padding:12px}
 .shop-hero-emblem{width:22px;height:26px}
 #shop-identity{flex:1}
 .shop-hero-name{font-size:18px}
 .shop-hero-details{font-size:11px}
 #shop-gold{margin-left:2px;padding-left:12px}
 #shop-gold .gold{font-size:17px;gap:5px}
 #shop-gold .symbol{width:16px;height:16px}
 .shop-account-actions,.shop-account-button{width:100%}
 .shop-account-button{min-width:0;min-height:48px}
}
@media(max-width:350px){.shop-owner-summary{gap:8px;padding:10px}.shop-hero-emblem{display:none}.shop-hero-name{font-size:17px}#shop-gold{padding-left:9px}#shop-gold .gold{font-size:16px}}
@media(prefers-reduced-motion:reduce){.shop-account-button{transition:none}}
