:root {
  color-scheme: light;
  --blue: #1769e0;
  --blue-dark: #0f54ba;
  --ink: #10233f;
  --muted: #62738b;
  --surface: rgba(255, 255, 255, 0.94);
  --line: rgba(23, 105, 224, 0.14);
  --shadow: 0 24px 70px rgba(30, 72, 130, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(75, 145, 247, 0.18), transparent 28rem),
    radial-gradient(circle at 5% 92%, rgba(23, 105, 224, 0.10), transparent 24rem),
    linear-gradient(160deg, #f8fbff, #edf4ff);
}

.shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.consultation-card {
  width: min(100%, 420px);
  padding: 38px 30px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.hint,
.fallback {
  color: var(--muted);
  line-height: 1.65;
}

.hint {
  margin: 0 0 24px;
  font-size: 15px;
}

.fallback {
  margin: 14px 0 0;
  font-size: 12px;
}

.qr-frame {
  width: min(74vw, 244px);
  margin: 0 auto 24px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(30, 72, 130, 0.11);
}

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

.primary-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.24);
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:focus-visible {
  outline: 4px solid rgba(23, 105, 224, 0.28);
  outline-offset: 4px;
}

@media (max-width: 380px) {
  .consultation-card {
    padding: 30px 22px 24px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
