:root {
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-press: #0077ed;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.07);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.store-top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

.store-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 64px;
}

.store-mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
}

.store-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  max-width: 36rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #e8e8ed;
  color: var(--muted);
}

.store-search-icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.store-search input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.store-search input:focus { outline: none; }
.store-search:focus-within {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

.store-root {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 3.5rem;
  padding-top: 1.25rem;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 1.14fr);
  gap: 1.75rem;
  align-items: center;
  min-height: 320px;
  padding: 1.75rem 1.75rem 1.75rem 2.1rem;
  margin: 0 0 2.25rem;
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 100% 0%, #d7e7f8 0%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.store-hero:focus-visible,
.store-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.store-hero h1 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.045em;
  font-weight: 700;
  line-height: 1.05;
}

.store-tagline {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 26rem;
  font-size: 1.05rem;
}

.store-developer {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 650;
}

.store-hero-art {
  position: relative;
  min-width: 0;
}

.store-hero-shot {
  display: block;
  width: 100%;
  aspect-ratio: 840 / 440;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  background: #e8e8ed;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.store-hero-badge {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.store-hero-art.is-icon {
  display: flex;
  justify-content: flex-end;
}

.store-hero-art.is-icon .store-hero-badge {
  position: static;
  width: min(100%, 200px);
  height: auto;
  aspect-ratio: 1;
  box-shadow: none;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 88px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.store-btn:hover { background: var(--accent-press); }
.store-btn.is-wait {
  background: #e8e8ed;
  color: var(--fg);
  cursor: default;
}

.store-shelf { margin: 0 0 2rem; }
.store-shelf h2 {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.store-rail,
.store-results {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 2px 2px 0.6rem;
  scroll-snap-type: x mandatory;
}

.store-results {
  flex-wrap: wrap;
  overflow: visible;
}

.store-tile {
  flex: 0 0 280px;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.store-results .store-tile {
  flex: 1 1 240px;
  max-width: 320px;
}

.store-tile-shot {
  aspect-ratio: 840 / 440;
  background: #e8e8ed;
}

.store-tile-shot img,
.store-tile-icon img,
.store-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-tile-icon img,
.store-product-icon img,
.store-hero-badge {
  object-fit: contain;
}

.store-tile-meta {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem 0.95rem;
}

.store-tile-icon {
  width: 44px;
  height: 44px;
}

.store-tile strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
}

.store-tile small {
  display: -webkit-box;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-back {
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.store-product {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.35rem;
}

.store-product-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}

.store-product-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.store-product h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.store-product .store-developer {
  margin: 0.3rem 0 0.9rem;
}

.store-shots {
  display: flex;
  gap: 0.85rem;
  min-height: 180px;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.store-shots img,
.store-shot-empty {
  flex: 0 0 min(78vw, 520px);
  height: 280px;
  border-radius: 18px;
  background: #e8e8ed;
  object-fit: cover;
  scroll-snap-align: start;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.store-desc {
  max-width: 42rem;
  margin: 0;
  font-size: 1.02rem;
}

.store-meta {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.store-empty {
  padding: 3rem 0;
  color: var(--muted);
}

.store-empty a { color: var(--accent); }

@media (max-width: 800px) {
  .store-hero,
  .store-product-head {
    grid-template-columns: 1fr;
  }
  .store-hero { padding: 1.25rem; }
  .store-hero-art.is-icon { justify-content: flex-start; }
  .store-product-icon { width: 96px; height: 96px; border-radius: 22px; }
  .store-shots img,
  .store-shot-empty { height: 200px; }
}

@media (prefers-reduced-motion: no-preference) {
  .store-tile { transition: transform 160ms ease; }
  .store-tile:hover { transform: translateY(-2px); }
}
