:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0e0c29;
  color: #f7f7ff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #0e0c29;
}

main {
  width: min(100%, 480px);
  padding: 28px 22px;
  background: #17143b;
  border: 1px solid #393377;
}

.mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(3, 226, 157, .12);
  border: 1px solid rgba(3, 226, 157, .45);
  color: #03e29d;
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -.5px;
}

h1 {
  margin: 22px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

p {
  margin: 0;
  color: #aaa8c7;
  line-height: 1.7;
}

.preview {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px;
  background: #221e55;
  border: 1px solid #393377;
}

.preview.visible { display: flex; }

.preview img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #17143b;
}

.preview strong {
  font-size: 17px;
  line-height: 1.45;
}

.code {
  margin: 24px 0;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #221e55;
  border: 1px solid #393377;
}

.code span {
  color: #aaa8c7;
  font-size: 13px;
}

.code strong {
  color: #03e29d;
  font-size: 22px;
  letter-spacing: 2px;
  direction: ltr;
}

a {
  min-height: 54px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f7ff;
  border: 1px solid #393377;
  text-decoration: none;
  font-weight: 750;
}

a.primary {
  color: #0e0c29;
  background: #03e29d;
  border-color: #03e29d;
}

/* store-redirect.js renders at most one store button — the one matching the
   visitor's platform — so this is a single column, not the old AR/iOS pair. */
.stores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Shown instead of a store button while a platform's listing is unpublished. */
.store-note {
  margin: 16px 0 0;
  color: #77749d;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

footer {
  margin-top: 18px;
  color: #77749d;
  font-size: 12px;
  text-align: center;
}
