:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --accent: #2e7d32;
  --border: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --muted: #98989d;
    --accent: #66bb6a;
    --border: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1, h2 { font-family: ui-rounded, -apple-system, "SF Pro Rounded", sans-serif; line-height: 1.2; }
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 32px 0 8px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
a { color: var(--accent); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 32px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #43a047, #1b5e20);
}

.panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 4px 20px;
  border: 1px solid var(--border);
}

footer {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }

/* Shared card page */
.pass {
  border-radius: 24px;
  padding: 24px;
  color: var(--pass-text, #fff);
  background: var(--pass-color, #2e7d32);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.pass-head { display: flex; align-items: center; gap: 14px; }
.badge {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--pass-badge, #2e7d32);
  display: grid;
  place-items: center;
  font: 800 19px ui-rounded, -apple-system, sans-serif;
}
.pass-name { font: 700 28px/1.15 ui-rounded, -apple-system, sans-serif; margin: 0; overflow-wrap: anywhere; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-top: 20px; }
.number { font: 500 20px ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.ticket {
  margin-top: 20px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
}
.ticket canvas { max-width: 100%; height: auto; image-rendering: pixelated; }
.ticket .raw { font: 15px ui-monospace, "SF Mono", Menlo, monospace; color: #333; margin-top: 8px; overflow-wrap: anywhere; }

.open-app {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.open-app-button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cta {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.cta h2 { margin-top: 0; font-size: 19px; }
