
html, body.store-page { background: #000; }
.store-page { color: #f3efe9; }
.store-page .site-header { background: #000; border-bottom: 1px solid rgba(255,255,255,.08); }

.store-main {
  width: min(100% - 2 * clamp(1rem, 4vw, 4rem), 1560px); margin: 0 auto;
  padding: calc(5.35rem + clamp(1.5rem, 4vh, 3rem)) 0 clamp(3rem, 8vh, 6rem);
}
.store-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 680; letter-spacing: -.045em; line-height: 1.05; }
.store-head p { margin: .6rem 0 0; color: #a3aab0; font-size: clamp(.95rem, 1.2vw, 1.08rem); }

.store-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.store-card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden;
  transition: border-color .2s;
}
.store-card:hover { border-color: rgba(255,255,255,.28); }
.store-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.store-card-link:focus-visible { outline: 2px solid #d7bc96; outline-offset: -2px; border-radius: 12px; }
.card-add { margin-top: 0; }
.store-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080808; }
.store-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1rem 1rem; }
.store-name { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.store-coll { margin: .2rem 0 0; color: #8f969c; font-size: .8rem; }
.store-facts { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.price-tag {
  padding: .2rem .55rem; border-radius: 99px; background: #f1ead9; color: #14120f;
  font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
}
.size-tag { color: #a3aab0; font-size: .8rem; font-variant-numeric: tabular-nums; }

.is-bundle.store-shot, .is-bundle.detail-shot { background: #000; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; }
.mosaic-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bundle-badge {
  position: absolute; left: .7rem; top: .7rem; z-index: 2; padding: .28rem .6rem; border-radius: 99px;
  background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.24);
  font-size: .72rem; font-weight: 650; letter-spacing: .03em;
}

.crumbs { margin-bottom: 1.2rem; color: #8f969c; font-size: .85rem; }
.crumbs a { color: #c9ced2; text-decoration: underline; text-underline-offset: .2em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.detail-shot { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #080808; }
.detail-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-card .bundle-badge { left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.82); white-space: nowrap; }
.detail-panel { position: sticky; top: 6.5rem; }
.detail-panel .eyebrow { margin: 0 0 .5rem; color: #8f969c; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.detail-panel h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.detail-desc { margin: 1rem 0 1.4rem; color: #c9ced2; font-size: 1.05rem; line-height: 1.6; }
.detail-price { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1rem; }
.price-big { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.facts { margin: 1.4rem 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.facts dt { color: #8f969c; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.store-more { margin-top: clamp(3rem, 8vh, 5rem); }
.store-more h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 650; letter-spacing: -.02em; }
.store-more .store-grid { margin-top: 1.2rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin-top: 1.2rem; }
.member { background: #0d0d0d; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.member img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.member p { display: flex; justify-content: space-between; gap: .6rem; margin: 0; padding: .6rem .8rem; font-size: .88rem; font-weight: 600; }
.member p .size-tag { flex: none; white-space: nowrap; }
.member-add {
  display: block; width: calc(100% - 1.6rem); margin: 0 .8rem .8rem; padding: .5rem .6rem; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: none; cursor: pointer;
  color: #f3efe9; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; text-decoration: none;
}
.member-add:hover { border-color: rgba(255,255,255,.6); }
.member-add:focus-visible { outline: 2px solid #d7bc96; outline-offset: 2px; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
}

.member-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080808; }
.member-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.loop-video.is-on { opacity: 1; }
.store-back { display: flex; justify-content: center; margin: clamp(2rem, 6vh, 3.5rem) 0 0; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.2rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); max-width: 72rem; }
.download-card { padding: 1.6rem; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #0d0d0d; }
.download-card h2 { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 680; letter-spacing: -.02em; }
.download-sys { margin: 0 0 1.4rem; color: #a3aab0; font-size: .92rem; }
.download-note { margin: 1rem 0 0; color: #a3aab0; font-size: .88rem; line-height: 1.6; }
.download-note a { color: #e6cda6; }
.download-soon { margin: 0; padding: .9rem 1rem; border: 1px dashed rgba(255,255,255,.2); border-radius: 8px; color: #a3aab0; text-align: center; letter-spacing: .12em; font-size: .78rem; font-weight: 700; text-transform: uppercase; }

.download-head { display: flex; align-items: center; gap: 1.2rem; }
.download-icon { width: 96px; height: 96px; flex: none; }
.download-card .button { min-height: 3.4rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; text-transform: none; }
.library-main { max-width: 72rem; }
.library-page.library-content { display: block; min-height: 12rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.library-page .library-empty { margin: 3rem auto; }
.library-page .library-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; }
.library-page .library-item { border-radius: 10px; }
.library-page .library-app { margin-bottom: 1.5rem; }

.connect-box { max-width: 31rem; }
.connect-code { font-size: 3.2rem; font-weight: 700; letter-spacing: .28em; padding-left: .28em; font-variant-numeric: tabular-nums; margin: 1.1rem 0 1.5rem; color: var(--paper); }
.connect-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.connect-account { margin-top: 1.6rem; font-size: .85rem; }
.connect-account .reset-link { margin-left: .4rem; }

.library-account-actions { display: inline-flex; gap: 1.1rem; }
.delete-box { max-width: 30rem; }
.delete-form { text-align: left; margin-top: 1.4rem; }
.delete-form .reset-link { justify-self: center; }
.button-danger { background: #b8402c; color: #fff; }
.button-danger:disabled { opacity: .6; cursor: default; }
.delete-error { border-left: 2px solid #e0705c; background: #11120f; padding: .75rem 1rem; font-size: .85rem; color: #f2b7aa; }

.library-page .news-toggle { margin: -.4rem 0 1.4rem; }
.download-note a { text-decoration: underline; text-underline-offset: .2em; }
