:root {
  --accent: #007aff;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --page: #f2f2f7;
  --card: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --text: #f2f2f7;
    --muted: #aeaeb2;
    --page: #000000;
    --card: #1c1c1e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--card);
  text-align: center;
}

.logo {
  border-radius: 16px;
}

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

#body:empty,
.hint:empty,
.details:empty,
.qr:empty {
  display: none;
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 20px 0 0;
  text-align: left;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.qr {
  width: min(260px, 100%);
  margin: 24px auto 0;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.hint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}
