@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700;800&display=swap");

:root {
  --background: #070a0a;
  --foreground: #f2f4f2;
  --green: #29e65c;
  --blue: #4184ba;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Roboto Condensed", Arial, sans-serif;
}

a {
  color: inherit;
}

.storefront {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 40px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, #17201f 0, #0c1111 42%, #050707 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.storefront::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(5, 8, 8, 0.15),
    rgba(5, 8, 8, 0.78)
  );
  content: "";
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(90px);
}

.ambient-green {
  right: 5%;
  bottom: -190px;
  background: var(--green);
}

.ambient-blue {
  top: -240px;
  left: 4%;
  background: var(--blue);
}

.store-panel {
  position: relative;
  width: min(700px, 100%);
  min-height: 458px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(60, 192, 181, 0.18)),
    rgba(4, 10, 10, 0.92);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.05);
}

.store-scene {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 583px;
  height: 389px;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.86;
  pointer-events: none;
  user-select: none;
}

.store-panel-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 10, 0.62) 0 44%, transparent 77%),
    linear-gradient(0deg, rgba(4, 9, 9, 0.38), transparent 46%);
  pointer-events: none;
}

.store-header,
.store-links,
.store-notice {
  position: relative;
  z-index: 2;
}

.store-header h1 {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(26px, 4.6vw, 32px);
  font-stretch: condensed;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.store-header h1 span {
  display: block;
}

.store-header p {
  margin: 32px 0 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(22px, 4vw, 28px);
  font-stretch: condensed;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.store-links {
  display: flex;
  gap: 14px;
}

.store-card {
  position: relative;
  display: flex;
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
  align-items: flex-end;
  overflow: hidden;
  padding: 8px;
  border-left: 4px solid var(--accent);
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.store-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  transition: border-color 180ms ease;
}

.store-card img {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 174px;
  height: 144px;
  object-fit: contain;
  opacity: 0.42;
  filter: none;
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.store-card-copy {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  text-transform: uppercase;
}

.store-card strong,
.store-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card strong {
  font-size: 20px;
  font-stretch: condensed;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.store-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.store-card-new {
  --accent: var(--green);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(41, 230, 92, 0.3)
  );
}

.store-card-old {
  --accent: var(--blue);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(65, 132, 186, 0.3)
  );
}

.store-card:hover,
.store-card:focus-visible {
  z-index: 3;
  transform: translateY(-4px);
  filter: brightness(1.18);
  outline: none;
}

.store-card:hover::after,
.store-card:focus-visible::after {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
}

.store-card:hover img,
.store-card:focus-visible img {
  opacity: 0.58;
  transform: translateX(-50%) scale(1.025);
}

.store-notice {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  max-width: 460px;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.store-notice > img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  opacity: 0.62;
}

.store-notice p {
  margin: 0;
  font-size: 13px;
  font-stretch: condensed;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.store-notice a {
  color: rgba(206, 250, 12, 0.78);
  text-underline-offset: 3px;
}

.store-notice a:hover,
.store-notice a:focus-visible {
  color: #e2ff5b;
}

@media (max-width: 620px) {
  .storefront {
    place-items: start center;
    overflow: auto;
    padding: 22px 14px;
  }

  .store-panel {
    min-height: 0;
  }

  .store-scene {
    right: -160px;
    width: 560px;
    opacity: 0.46;
  }

  .store-panel-shade {
    background:
      linear-gradient(90deg, rgba(5, 10, 10, 0.76), rgba(5, 10, 10, 0.12)),
      linear-gradient(0deg, rgba(4, 9, 9, 0.82), transparent 54%);
  }

  .store-header p {
    max-width: 360px;
    margin-top: 26px;
  }

  .store-links {
    flex-direction: column;
    gap: 12px;
  }

  .store-card {
    width: min(100%, 320px);
    height: 152px;
  }

  .store-card img {
    top: 2px;
    right: auto;
    left: 50%;
  }

  .store-notice {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-card,
  .store-card::after,
  .store-card img {
    transition: none;
  }
}
