.shop-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 40px; min-height: calc(100dvh - 180px); }
.shop-heading { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; text-align: center; }
.shop-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.shop-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.shop-tabs button, .shop-button { padding: 9px 14px; border: 1px solid #46546a; border-radius: 8px; background: #152238; color: #e5eef8; font: inherit; font-size: 13px; cursor: pointer; }
.shop-tabs button[aria-pressed="true"], .shop-button:not(.shop-secondary) { background: #b99039; border-color: #d7b257; color: #111827; font-weight: 750; }
.shop-button:disabled { cursor: default; opacity: .55; }
.shop-button:focus-visible, .shop-tabs button:focus-visible, .shop-filters :focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.shop-notice { padding: 12px; border: 1px solid #40526b; border-radius: 9px; background: #132037; font-size: 13px; }
.shop-notice a, .shop-profile-heading a { color: #7dd3fc; }
.shop-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.shop-filters label { min-width: 0; display: grid; gap: 5px; text-align: center; }
.shop-filters span { color: #94a3b8; font-size: 12px; }
.shop-filters input, .shop-filters select { width: 100%; min-width: 0; box-sizing: border-box; height: 39px; padding: 0 10px; border: 1px solid #3a4659; border-radius: 8px; background: #101b2d; color: #f1f5f9; font: inherit; font-size: 13px; text-align: center; }
.shop-filter-button, .shop-search-frame { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; height: 39px; box-sizing: border-box; padding: 0 9px; border: 1px solid #3a4659; border-radius: 8px; background: #101b2d; color: #f1f5f9; font: inherit; font-size: 12px; }
.shop-filter-button { cursor: pointer; }
.shop-filter-button:hover, .shop-filter-button[aria-expanded="true"] { border-color: #7997bd; background: #18273d; }
.shop-filters .shop-filter-value { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; color: #e2e8f0; }
.shop-filters .shop-filter-symbol { display: inline-grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; color: #c6ab74; font-size: 18px; }
.shop-filters .shop-filter-chevron { margin-left: auto; font-size: 14px; }
.shop-search-frame input { border: 0; padding: 0; height: 35px; text-align: left; background: transparent; font-size: 12px; }
.shop-filter-popup { position: fixed; z-index: 10000; overflow-y: auto; overscroll-behavior: contain; padding: 4px; box-sizing: border-box; border: 1px solid #607a9c; border-radius: 9px; background: #101b2d; box-shadow: 0 10px 32px #0009; }
.shop-filter-popup > button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; box-sizing: border-box; background: transparent; border: 0; border-radius: 5px; color: #e2e8f0; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.shop-filter-popup > button:hover, .shop-filter-popup > button:focus-visible { outline: 0; background: #263c57; }
.shop-filter-popup > button[aria-selected="true"] { color: #f3d17a; background: #2a302c; }
.shop-filter-popup > button[aria-selected="true"]::after { content: "✓"; margin-left: auto; }
.shop-status { min-height: 20px; margin: 8px 0 12px; color: #a8b8cc; font-size: 13px; overflow-wrap: anywhere; text-align: center; }
.shop-status.is-error { color: #fda4af; }
.shop-status:empty { display: none; }
.shop-card-grid, .shop-showcase-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.shop-card-grid > .shop-card, .shop-showcase-grid > .shop-card { flex: 0 0 calc((100% - 50px) / 6); box-sizing: border-box; }
.shop-card { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 7px 8px; border: 1px solid #3a4659; border-radius: 11px; background: rgba(20, 28, 43, .94); text-align: center; }
.shop-card-corner { position: absolute; top: 5px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; box-sizing: border-box; border: 1px solid #d7b257; border-radius: 50%; background: #292419; color: #f3d17a; font-size: 12px; line-height: 1; font-weight: 750; }
.shop-card-cost { left: 5px; }
.shop-card-copies { right: 5px; border-color: #598cb8; background: #152b40; color: #a4d9ff; }
:root { --shop-body-height: clamp(80px, calc((100vw - 180px) / 8), 140px); }
@media (min-width: 1001px) { .shop-card-grid > .shop-card, .shop-showcase-grid > .shop-card { min-width: 154px; } }
.shop-card-image-frame { position: relative; width: 100%; height: calc(var(--shop-body-height) * 1.18); flex-shrink: 0; }
.shop-card-image { position: absolute; display: block; left: 50%; width: auto; max-width: none; max-height: none; }
.shop-set-card-grid > .shop-card[data-owned="false"] .shop-card-image { opacity: .4; }
.shop-card-name-row { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 30px; margin: 2px 0; }
.shop-card-name { color: #f1f5f9; font-size: 14px; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.shop-card-name:hover { color: #f3d17a; text-decoration: underline; }
.shop-card-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 5px; color: #94a3b8; font-size: 11px; line-height: 1.2; }
.shop-card-meta > span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.shop-inline-icon { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.shop-ticket-label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.shop-card-meta .shop-inline-icon { width: 16px; height: 16px; }
.shop-card-price { margin: auto 0 5px; color: #f3d17a; font-size: 13px; font-weight: 750; }
.shop-card .shop-button { width: 100%; min-height: 30px; padding: 5px 4px; font-size: 12px; }
.shop-card-actions { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 36px; flex-shrink: 0; margin-top: auto; }
.shop-card-actions .shop-button { flex: 1; width: auto; min-width: 0; height: 36px; min-height: 0; box-sizing: border-box; padding: 3px 2px; font-size: 11px; line-height: 1.15; }
.shop-card-actions .shop-sell-button { flex: 0 0 50px; background: #152238; color: #f3d17a; }
.shop-card.is-featured { border-color: #d7b257; background: #292419; }
.shop-card[data-owned="true"] .shop-button:disabled { color: #86efac; background: #18312a; border-color: #325e4c; opacity: 1; }
.shop-more { display: block; margin: 20px auto 0; }
.shop-collection-tools { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; text-align: center; }
.shop-collection-tools p { margin: 0; color: #cbd5e1; font-size: 13px; }
.shop-dialog { position: fixed; inset: 0; margin: auto; width: min(360px, calc(100% - 32px)); height: fit-content; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; box-sizing: border-box; border: 1px solid #63718b; border-radius: 14px; background: #101b2d; color: #f1f5f9; text-align: center; }
.shop-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.shop-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.shop-dialog .shop-card { width: min(180px, 100%); margin: 0 auto; box-sizing: border-box; }
.shop-dialog-actions { display: flex; justify-content: center; gap: 10px; }
.shop-dialog p { font-size: 13px; overflow-wrap: anywhere; }
.shop-profile-section { padding: 18px 20px; }
.shop-profile-heading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; text-align: center; }
.shop-profile-heading h2 { margin: 0; font-size: 20px; }
.shop-profile-heading a { font-size: 13px; }
.shop-showcase-grid .shop-card-name { font-size: 12px; }
.shop-showcase-grid .shop-card-meta { margin-bottom: 0; }
.shop-profile-empty { margin: 0; padding: 16px; border: 1px dashed #40526b; border-radius: 9px; color: #94a3b8; font-size: 13px; text-align: center; }
.shop-account-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 18px 12px 0; }
.shop-account-links a { color: #7dd3fc; font-size: 14px; text-decoration: none; }
.shop-pack-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.shop-pack-grid > article { flex: 0 0 calc((100% - 42px) / 4); box-sizing: border-box; }
.shop-pack, .shop-set { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; border: 1px solid #64532e; border-radius: 14px; background: linear-gradient(145deg, #263149, #161e2c 60%, #30291b); text-align: center; min-width: 0; }
.shop-pack h2, .shop-set h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.shop-pack p, .shop-set p { margin: 0; color: #bac7d9; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.shop-pack .shop-button, .shop-set .shop-button { margin-top: auto; max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.shop-pack { --pack-accent: var(--category-fill, #c89543); background: radial-gradient(ellipse at 50% 26%, color-mix(in srgb, var(--pack-accent) 20%, transparent), transparent 62%), linear-gradient(145deg, #1f2b42, #101827); border-color: color-mix(in srgb, var(--pack-accent) 72%, #263249); }
.shop-pack-logo { position: relative; display: block; width: min(176px, 100%); aspect-ratio: 2 / 3; flex-shrink: 0; transform-style: preserve-3d; filter: drop-shadow(0 10px 12px #0006); }
.shop-pack-logo .shop-pack-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-pack:hover .shop-pack-art { filter: brightness(1.06); }
.shop-pack h2 { color: color-mix(in srgb, var(--pack-accent) 48%, #ffffff); }
.shop-dialog .shop-pack-logo { margin: 0 auto 14px; }
.shop-pack .shop-card-price { color: #f3d17a; font-size: 17px; }
.shop-pack-price { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.shop-pack-price img { display: block; width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.shop-set-tools { margin-bottom: 14px; color: #bac7d9; font-size: 13px; text-align: center; }
.shop-set-tools select { margin-left: 10px; padding: 8px; background: #101b2d; color: #f1f5f9; border: 1px solid #46546a; border-radius: 8px; }
.shop-set-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; color: #f3d17a; font-size: 13px; text-align: center; }
.shop-set progress { width: 100%; height: 7px; accent-color: #d7b257; }
.shop-badge-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.shop-token { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 110px; color: #f1d285; font-size: 12px; line-height: 1.3; text-align: center; }
.shop-token-art { display: block; width: 110px; height: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px #0005); }
.shop-token.is-locked .shop-token-art { filter: grayscale(.65) drop-shadow(0 4px 5px #0005); opacity: .6; }
.shop-set .shop-token { width: 100%; font-size: 18px; }
.shop-set .shop-token-art { width: 128px; }
.shop-dialog-actions { flex-wrap: wrap; }
.shop-opening-stage { --reveal-accent: var(--category-fill, #c89543); position: relative; display: grid; place-items: center; isolation: isolate; min-height: 288px; padding: 14px 0; perspective: 850px; overflow: hidden; border-radius: 12px; }
.shop-dialog.is-opening .shop-dialog-actions { visibility: hidden; pointer-events: none; }
.shop-opening-stage .shop-pack-opening { grid-area: 1 / 1; z-index: 3; width: 184px; margin: 0; }
.shop-opening-aura { position: absolute; inset: 8% 0; z-index: -1; opacity: 0; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--reveal-accent) 35%, transparent), transparent 68%); animation: shop-reveal-aura 2600ms ease-out forwards; }
.shop-opening-halo { position: absolute; width: 180px; height: 180px; border: 1px solid var(--reveal-accent); border-radius: 50%; opacity: 0; animation: shop-reveal-halo 2600ms ease-out forwards; }
.shop-opening-seam { position: absolute; top: 18%; bottom: 18%; left: 50%; width: 2px; z-index: 4; background: linear-gradient(transparent, var(--reveal-accent), transparent); opacity: 0; animation: shop-reveal-seam 2600ms ease-out forwards; }
.shop-opening-reveal { grid-area: 1 / 1; z-index: 2; width: 100%; opacity: 0; animation: shop-reveal-card 2600ms cubic-bezier(.2,.7,.2,1) forwards; }
.shop-opening-reveal .shop-card { border-color: color-mix(in srgb, var(--reveal-accent) 65%, #3a4659); box-shadow: 0 0 24px color-mix(in srgb, var(--reveal-accent) 16%, transparent); }
.shop-opening-particles { position: absolute; left: 50%; top: 49%; z-index: 1; }
.shop-opening-particles i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--reveal-accent); opacity: 0; animation: shop-reveal-spark 2500ms ease-out var(--spark-delay) forwards; }
@keyframes shop-reveal-aura { 0% { opacity: 0; transform: scale(.65); } 60% { opacity: .7; transform: scale(1); } 100% { opacity: .3; transform: scale(1.2); } }
@keyframes shop-reveal-halo { 0%, 56% { opacity: 0; transform: scale(.6); } 70% { opacity: .45; } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes shop-reveal-seam { 0%, 43% { opacity: 0; transform: scaleY(.1); } 62% { opacity: .8; transform: scaleY(1); } 86%, 100% { opacity: 0; transform: scaleY(1.1); } }
@keyframes shop-reveal-card { 0%, 58% { opacity: 0; transform: translateY(32px) scale(.84); } 85% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes shop-reveal-spark { 0%, 57% { opacity: 0; transform: translate(0, 0); } 68% { opacity: .65; } 100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)); } }
@media (prefers-reduced-motion: reduce) { .shop-opening-stage *, .shop-pack-art { animation: none !important; transition: none !important; } }
@media (max-width: 1000px) { .shop-card-grid > .shop-card, .shop-showcase-grid > .shop-card { flex-basis: calc((100% - 30px) / 4); } }
@media (min-width: 701px) and (max-width: 900px) {
    .shop-filters { grid-template-columns: repeat(6, 150px); overflow-x: auto; padding-bottom: 7px; }
}
@media (max-width: 700px) {
    .shop-shell { width: calc(100% - 20px); padding-top: 18px; }
    .shop-heading { flex-direction: column; }
    .shop-filters { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 7px; }
    .shop-filters label { flex: 0 0 150px; }
    .shop-card-grid > .shop-card, .shop-showcase-grid > .shop-card { flex-basis: calc((100% - 20px) / 3); }
    :root { --shop-body-height: clamp(80px, calc((100vw - 150px) / 3), 115px); }
    .shop-collection-tools { flex-wrap: wrap; }
    .shop-profile-section { padding: 14px; }
    .shop-pack-grid > article { flex-basis: calc((100% - 14px) / 2); }
    .shop-pack-logo { width: min(154px, 100%); }
    .shop-pack .shop-button, .shop-set .shop-button { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 420px) {
    :root { --shop-body-height: clamp(80px, calc((100vw - 120px) / 2), 115px); }
    .shop-card-grid > .shop-card, .shop-showcase-grid > .shop-card { flex-basis: calc((100% - 10px) / 2); }
    .shop-heading h1 { font-size: 24px; }
}
[hidden] { display: none !important; }
