:root {
  --bg: #ffffff;
  --text: #313131;
  --muted: #595959;
  --line: #d9d9d9;
  --ok: #15803d;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  font-family: 'IBM Plex Sans Thai', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.gate {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18vh) 16px 32px;
}

h1 {
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.35;
}

.desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
}

#turnstile { min-height: 65px; }

.status { font-size: 15px; margin: 12px 0 0; min-height: 1.5em; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

.foot {
  width: calc(100% - 32px);
  max-width: 608px;
  margin: 0 auto;
  padding: 16px 0 calc(env(safe-area-inset-bottom) + 20px);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.foot p { margin: 4px 0; }
#ref { font-family: ui-monospace, Menlo, monospace; }
