:root {
  --accent: #17e8b0;
  --bg: #1e1e1e;
  --surface-1: #262626;
  --surface-2: #303030;
  --text: #ffffff;
  --muted: #9ca3af;
  --black: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-1);
}

.nav-wrap {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
}

.lockup img {
  width: 170px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero {
  padding: 0.4rem 0 1.4rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.9rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: 0.015em;
  max-width: 13ch;
}

.subtitle {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.5;
  font-weight: 300;
}

.section {
  margin-top: 2.2rem;
}

.section h2 {
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.button-row {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.58rem 0.96rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: grid;
  gap: 0.72rem;
}

.card-link {
  text-decoration: none;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff;
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.25;
}

.card .meta,
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text);
  padding: 0.6rem 0.74rem;
  font: inherit;
  font-weight: 300;
}

.two-col {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1.08fr 0.92fr;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}

.thumb-row {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thumb {
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.product-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: none;
}

.product-copy p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.account-page .main {
  padding-top: 1.2rem;
}

.account-frame {
  margin-top: 0.75rem;
}

.download-page .main {
  padding-top: 2.8rem;
}

.download-hero h1 {
  max-width: none;
}

.download-hero .subtitle {
  max-width: 56ch;
}

.download-section {
  margin-top: 2.4rem;
}

.download-section h2 {
  margin-bottom: 1.1rem;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.player-platform-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.platform-card {
  min-height: 280px;
  border-radius: 16px;
  background: linear-gradient(145deg, #222 0%, #282828 100%);
  text-decoration: none;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #242424 0%, #2c2c2c 100%);
}

.platform-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

.platform-title {
  margin-top: 1.3rem;
  display: block;
  font-size: 2.1rem;
  line-height: 1.06;
  font-weight: 400;
}

.platform-cta {
  margin-top: 1rem;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border-radius: 12px;
  background: var(--accent);
  color: var(--black);
  font-size: 1.06rem;
  font-weight: 500;
}

.platform-cta img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%);
}

.scanner-section {
  margin-top: 1.3rem;
}

.scanner-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  text-decoration: none;
}

.store-badge img {
  height: 56px;
  width: auto;
  display: block;
}

.guide-link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-link-card {
  min-height: 148px;
  border-radius: 14px;
  background: linear-gradient(145deg, #222 0%, #282828 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.guide-link-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #242424 0%, #2c2c2c 100%);
}

.guide-link-card h3 {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.18;
}

.guide-link-card .meta {
  margin-top: 0.7rem;
}

#shop-list .card img {
  object-fit: contain;
  background: #ffffff;
}

.is-disabled {
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .player-platform-row {
    grid-template-columns: 1fr;
  }

  .platform-card {
    min-height: 220px;
  }

  .platform-title {
    font-size: 1.8rem;
  }

  .guide-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .lockup img {
    width: 148px;
  }

  .nav-links {
    gap: 0.9rem;
  }

  h1 {
    font-size: clamp(1.7rem, 9vw, 3rem);
  }

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

  .thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-badge img {
    height: 52px;
  }
}
