:root {
  --bg: #060711;
  --bg-2: #0b0f20;
  --surface: rgba(15, 20, 39, 0.78);
  --surface-strong: rgba(23, 29, 55, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-lift: rgba(255, 255, 255, 0.09);
  --text: #f4f7ff;
  --muted: #b6c0d8;
  --subtle: #7f8ba7;
  --line: rgba(178, 194, 255, 0.2);
  --line-soft: rgba(178, 194, 255, 0.12);
  --cyan: #56e4ff;
  --cyan-soft: rgba(86, 228, 255, 0.14);
  --gold: #f7c76d;
  --gold-soft: rgba(247, 199, 109, 0.16);
  --violet: #8b5cf6;
  --green: #35d6a1;
  --green-dark: #13b884;
  --green-soft: rgba(53, 214, 161, 0.14);
  --danger: #ff7b7b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glass-blur: blur(22px) saturate(130%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(145deg, #03040b 0%, #090b18 34%, #141024 72%, #050711 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(86, 228, 255, 0.09) 16% 17%, transparent 17% 100%),
    linear-gradient(72deg, transparent 0 60%, rgba(247, 199, 109, 0.09) 60% 61%, transparent 61% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%, rgba(0, 0, 0, 0.22));
}

a {
  color: inherit;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 7, 17, 0.84);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: var(--glass-blur);
}

.store-nav {
  width: min(1280px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 650;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: block;
  padding: 3px;
  border: 1px solid rgba(247, 199, 109, 0.58);
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(86, 228, 255, 0.36));
  box-shadow:
    0 0 0 1px rgba(86, 228, 255, 0.24),
    0 0 26px rgba(86, 228, 255, 0.34),
    0 0 38px rgba(247, 199, 109, 0.18);
}

.nav-tabs {
  display: flex;
  align-self: stretch;
  gap: 26px;
}

.nav-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
}

.nav-tabs a.active {
  color: var(--gold);
}

.nav-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 18px rgba(86, 228, 255, 0.46);
}

.icon-button {
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-soft);
  background: var(--surface-soft);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.store-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 78px;
}

.device-tabs {
  display: flex;
  gap: 10px;
  padding: 8px 0 30px;
  overflow-x: auto;
}

.device-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.94rem;
  font-weight: 650;
}

.device-chip.active {
  border-color: rgba(247, 199, 109, 0.42);
  color: var(--gold);
  background: linear-gradient(135deg, rgba(247, 199, 109, 0.16), rgba(86, 228, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 44px;
  padding: 36px 0 46px;
  border-bottom: 1px solid var(--line-soft);
}

.app-summary {
  min-width: 0;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 26px;
}

.app-icon {
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  display: block;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(86, 228, 255, 0.14);
}

.collection-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 1.06;
  text-shadow: 0 0 36px rgba(86, 228, 255, 0.16);
}

.developer-name {
  margin: 8px 0 0;
  color: var(--cyan);
  font-weight: 700;
}

.app-description {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #08101f;
  background: linear-gradient(135deg, #ffe29a, var(--gold) 52%, #51dfff);
  box-shadow: 0 14px 34px rgba(247, 199, 109, 0.18), 0 0 24px rgba(86, 228, 255, 0.14);
}

.button.primary:hover {
  box-shadow: 0 18px 40px rgba(247, 199, 109, 0.26), 0 0 30px rgba(86, 228, 255, 0.2);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.button.secondary:hover {
  border-color: rgba(86, 228, 255, 0.4);
  background: rgba(86, 228, 255, 0.09);
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.release-card {
  min-width: 0;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 32, 60, 0.86), rgba(12, 16, 32, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
}

.release-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.release-card-head span,
.meta-label {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-card-head strong {
  color: var(--gold);
  font-size: 1.58rem;
  font-weight: 720;
  text-shadow: 0 0 22px rgba(247, 199, 109, 0.32);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-block {
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.meta-label {
  display: block;
  margin-bottom: 7px;
}

.meta-value {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.36;
}

.meta-value a {
  color: var(--cyan);
}

.store-section {
  padding: 36px 0 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.46rem;
  font-weight: 650;
  line-height: 1.25;
}

.catalog-grid,
.timeline,
.release-list {
  display: grid;
  gap: 14px;
}

.catalog-grid {
  grid-template-columns: minmax(280px, 430px);
}

.app-card,
.timeline-item,
.release-item {
  display: grid;
  border-radius: 14px;
  background: transparent;
}

.app-card {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  max-width: 430px;
  padding: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-card:hover,
.app-card.active {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.app-card:hover {
  transform: translateY(-1px);
}

.app-card-icon {
  width: 76px;
  height: 76px;
  display: block;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.94);
}

.app-card h3,
.timeline-item h3,
.release-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
}

.app-card p,
.timeline-item p,
.release-item p,
.status,
.release-notes,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}

.app-card p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.timeline-item,
.release-item {
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.release-item {
  margin-top: 18px;
}

.timeline-item header,
.release-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(53, 214, 161, 0.2);
  border-radius: 999px;
  color: #8af6cf;
  background: var(--green-soft);
  font-size: 0.82rem;
  font-weight: 760;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.release-links a {
  color: var(--gold);
  font-weight: 760;
  text-decoration: none;
}

.release-links a:hover {
  color: var(--cyan);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 900px) {
  .store-nav,
  .store-shell {
    width: min(100% - 28px, 1280px);
  }

  .store-nav {
    min-height: 64px;
    gap: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .nav-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .app-hero,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .app-hero {
    gap: 30px;
    padding-top: 18px;
  }

  .app-title-row {
    align-items: flex-start;
    gap: 16px;
  }

  .app-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .release-card {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  }

}

@media (max-width: 560px) {
  .store-shell {
    padding-top: 18px;
  }

  .device-tabs {
    padding-bottom: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .app-actions,
  .button {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

}
