:root {
  color-scheme: light dark;
  --ink: #1b1b1f;
  --paper: #fafafa;
  --muted: #5b5b63;
  --line: #dcdce0;
  --accent: #2f5d50;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

main {
  max-width: 420px;
  width: 100%;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

p {
  line-height: 1.5;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: white;
}

.stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.store-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-weight: 600;
}

.store-btn.hidden {
  display: none;
}

button.copy-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.hint {
  font-size: 0.85rem;
  margin-top: 6px;
}

.warn {
  border-color: #b5651d;
  color: #7a3b0e;
  background: #fff6ec;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

footer {
  margin-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

footer a {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f4;
    --paper: #121214;
    --muted: #a5a5ad;
    --line: #333338;
  }
  .card { background: #1a1a1d; }
  .store-btn { background: #f2f2f4; color: #121214; }
  .warn { background: #2a1f14; color: #f0c19a; border-color: #b5651d; }
}
