:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5c6470;
  --accent: #1e3a8a;
  --accent-contrast: #ffffff;
  --rule: #e3e6eb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #151a22;
    --text: #e8eaee;
    --muted: #98a1ad;
    --accent: #8fabff;
    --accent-contrast: #0e1116;
    --rule: #242a34;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 44px;
  font-weight: 800;
  line-height: normal;
}

.site-intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.field-line {
  width: 100%;
  padding-top: 4px;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.app-list {
  border-bottom: 1px solid var(--rule);
}

.app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.app-row + .app-row {
  border-top: 1px solid var(--rule);
}

.app-row:hover {
  background: var(--surface);
}

.app-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.app-meta {
  flex: 1;
  min-width: 0;
}

.app-name {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: bold;
  line-height: normal;
}

.app-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.app-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.15s;
}

.app-row:hover .app-arrow {
  transform: translateX(4px);
}

.site-footer {
  padding-top: 48px;
  padding-bottom: 32px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
}

.detail-main {
  padding-top: 32px;
}

.detail-shell {
  max-width: 840px;
}

.back-link {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.detail-hero {
  margin-top: 28px;
}

.hero-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: 40px;
  font-weight: 800;
  line-height: normal;
}

.hero-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
}

.primary-button {
  color: var(--accent-contrast);
  background: var(--accent);
}

.primary-button:hover {
  filter: brightness(1.08);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.secondary-button {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.apple-mark {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1;
}

.cta-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-field-line {
  margin-top: 36px;
}

.screenshot-frame {
  margin-top: 36px;
}

.product-screenshot {
  width: 100%;
  height: auto;
  max-width: min(100%, 500px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 12%, transparent);
}

.product-screenshot.sports-screenshot {
  max-width: min(100%, 760px);
}

.product-description {
  margin-top: 40px;
}

.product-description p {
  margin: 0;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.8;
}

.product-section {
  margin-top: 44px;
}

.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.08em;
}

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

.feature-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
}

.feature-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-badge {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--accent-contrast);
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.step p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.platforms p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.platforms .platform-note {
  margin-top: 8px;
}

.bottom-cta {
  margin-top: 48px;
}

.bottom-cta .action-button {
  display: inline-flex;
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 20px;
  }

  .site-title {
    font-size: 36px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .action-button,
  .bottom-cta .action-button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .app-row,
  .app-arrow {
    transition: none;
  }
}
