/* pingpingping web — colors and type from docs/design.md (Albireo). */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/static/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --sky: #05060b;
  --me: #ffc46b;
  --them: #7fb2ff;
  --text: #f2f1f6;
  --muted: #8c8a9b;
  --surface: rgba(242, 241, 246, 0.06);
  --line: rgba(242, 241, 246, 0.16);
  --disabled: #1c1d26;
  --on-me: #14120a;
}

* { box-sizing: border-box; }

html { background: var(--sky); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sky);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 430px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
  text-decoration: none;
}

.sky {
  display: block;
  width: calc(100% + 48px);
  margin: 0 -24px;
  height: auto;
}

.twinkle { animation: twinkle 2.4s ease-in-out infinite; }
.search { animation: search 1.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.75; } }
@keyframes search { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .twinkle, .search { animation: none; } }

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.lede { margin: 12px 0 0; color: var(--muted); text-wrap: pretty; }

.actions { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.code-card {
  min-height: 88px;
  padding: 0 12px 0 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-label { font-size: 13px; color: var(--muted); }
.code { font-size: 28px; font-weight: 600; letter-spacing: 8px; font-variant-numeric: tabular-nums; }

.button {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--me);
  color: var(--on-me);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.button[aria-disabled="true"] { background: var(--disabled); color: var(--muted); cursor: default; }

.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; text-wrap: pretty; }

.text-link {
  align-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-underline-offset: 4px;
}

.footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}

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

/* Terms and privacy (Korean documents rendered from docs/legal). */
.legal { padding-top: 32px; }
.legal h1 { font-size: 26px; margin-bottom: 24px; }
.legal h2 { font-size: 19px; margin: 36px 0 12px; }
.legal p, .legal li { color: #d6d4de; }
.legal a { color: var(--me); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); font-weight: 600; }
