:root {
  --bg: #0d111c;
  --bg2: #151b2a;
  --card: rgba(255, 255, 255, 0.09);
  --card2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #b8c4d6;
  --muted2: #8e9cb1;
  --gold: #f59e0b;
  --gold2: #ffcb6b;
  --orange: #f97316;
  --blue: #38bdf8;
  --danger: #ff8b7c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(56, 189, 248, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 10%, rgba(245, 158, 11, 0.19), transparent 26rem),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 52%, #101522 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: var(--gold2); }

.shell { width: min(100% - 28px, 860px); margin: 42px auto 28px; }

.intro-card,
.survey-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--card), var(--card2));
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.intro-card { position: relative; padding: clamp(26px, 6vw, 56px); }

.intro-card::after {
  position: absolute;
  top: -7rem;
  right: -7rem;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: rgba(245, 158, 11, 0.14);
  filter: blur(10px);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-lockup img { width: 52px; height: 52px; object-fit: contain; }
.brand-lockup div { display: grid; gap: 2px; }
.brand-lockup strong { font-size: 19px; letter-spacing: 0.08em; }
.brand-lockup span { color: var(--gold2); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; }

h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(31px, 6vw, 50px); line-height: 1.14; letter-spacing: -0.03em; }
h2 { margin-top: 0; }
.lead { position: relative; z-index: 1; margin: 24px 0 18px; color: #e1e7f0; font-size: 17px; line-height: 1.8; }
.notes { position: relative; z-index: 1; margin: 0; padding-left: 1.25em; color: var(--muted); line-height: 1.8; }
.notes li + li { margin-top: 7px; }
.privacy-line { position: relative; z-index: 1; margin: 22px 0 10px; padding: 15px 17px; border: 1px solid rgba(245, 158, 11, 0.24); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(245, 158, 11, 0.07); line-height: 1.7; }

.primary-button {
  position: relative;
  z-index: 1;
  min-width: 156px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  padding: 14px 25px;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 58%, var(--orange));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.21);
  color: #090a0e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.primary-button:disabled { cursor: wait; opacity: 0.62; }
.primary-button:focus-visible { outline: 3px solid rgba(255, 203, 107, 0.34); outline-offset: 3px; }

.status { min-height: 0; padding: 0 28px; color: var(--danger); font-size: 14px; }
.status:not(:empty) { padding-top: 18px; }
.result-card { text-align: center; }
.contact-card h2 { line-height: 1.35; }
.receipt-panel { margin: 24px 0 18px; padding: 24px 18px; border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 18px; background: rgba(245, 158, 11, 0.075); text-align: center; }
.receipt-label { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.receipt-code { display: block; color: var(--gold2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(24px, 6vw, 34px); font-weight: 800; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.receipt-note { margin: 12px 0 0; font-weight: 700; }
.reward-note { margin: 0; color: var(--muted); line-height: 1.7; }
.contact-block { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-block h3 { margin: 0 0 8px; font-size: 22px; }
.contact-block > p { margin: 0; color: var(--muted); line-height: 1.7; }
.contact-card form { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.contact-card label { margin-top: 6px; font-weight: 700; }
.contact-card input:not(.honeypot) { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: rgba(13, 17, 28, 0.72); color: var(--text); font: inherit; }
.contact-card input:focus { outline: 3px solid rgba(245, 158, 11, 0.16); border-color: var(--gold); }
.contact-status { min-height: 1.5em; margin: 4px 0 0; color: var(--danger); }
.post-submit-status { margin: 20px 0 0; color: var(--gold2); font-weight: 700; line-height: 1.65; }
.text-button { display: block; margin: 18px auto 0; border: 0; background: none; color: var(--gold2); font: inherit; text-decoration: underline; cursor: pointer; }
.honeypot { position: fixed; left: -9999px; opacity: 0; pointer-events: none; }

footer { display: flex; justify-content: center; gap: 12px 20px; flex-wrap: wrap; padding: 0 16px 30px; color: var(--muted); font-size: 13px; }

.sd-root-modern {
  --sjs-primary-backcolor: var(--gold);
  --sjs-primary-backcolor-dark: #d97706;
  --sjs-primary-backcolor-light: rgba(245, 158, 11, 0.15);
  --sjs-primary-forecolor: #090a0e;
  --sjs-general-backcolor: #151b2a;
  --sjs-general-backcolor-dark: #101522;
  --sjs-general-backcolor-dim: #0d111c;
  --sjs-general-backcolor-dim-light: #1b2334;
  --sjs-general-backcolor-dim-dark: #090d16;
  --sjs-general-forecolor: var(--text);
  --sjs-general-forecolor-light: var(--muted);
  --sjs-general-dim-forecolor: #f8fafc;
  --sjs-general-dim-forecolor-light: var(--muted);
  --sjs-font-pagetitle-color: #f4f7fb;
  --sjs-border-default: var(--line);
  --sjs-special-red: var(--danger);
  background: transparent;
}

.sd-body { padding-bottom: 32px; background: transparent; }
.sd-page { padding-left: clamp(18px, 5vw, 48px); padding-right: clamp(18px, 5vw, 48px); background: transparent; }
.sd-title.sd-container-modern__title { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.018); box-shadow: none; }
.sd-page .sd-page__title { color: #f4f7fb; font-weight: 750; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32); }
.sd-question__title, .sd-title { color: var(--text); }
.sd-description, .sd-question__description { color: var(--muted); }
.sd-item__control-label { color: #e8edf5; }
.sd-input, .sd-comment, .sd-dropdown { border-color: var(--line); background: rgba(13, 17, 28, 0.74); color: var(--text); }
.sd-radio__decorator, .sd-checkbox__decorator { border-color: rgba(255, 255, 255, 0.28); background: rgba(13, 17, 28, 0.74); }
.sd-progress__bar { background: linear-gradient(90deg, var(--gold), var(--orange)); }
.sd-navigation__next-btn, .sd-navigation__complete-btn { border-radius: 999px; background: linear-gradient(135deg, var(--gold2), var(--gold) 58%, var(--orange)); color: #090a0e; font-weight: 800; }
.sd-navigation__prev-btn { color: var(--gold2); }

@media (max-width: 560px) {
  body { display: flex; min-height: 100svh; flex-direction: column; }
  .shell { width: min(100% - 20px, 860px); margin: max(10px, env(safe-area-inset-top)) auto 10px; }
  .intro-card, .survey-card { border-radius: 16px; }
  .intro-card { padding: 24px 20px; }
  #intro { padding: 18px 16px; }
  #intro .brand-lockup { gap: 10px; margin-bottom: 12px; }
  #intro .brand-lockup img { width: 38px; height: 38px; }
  #intro .brand-lockup strong { font-size: 18px; }
  #intro .brand-lockup span { font-size: 11px; }
  #intro h1 { font-size: 27px; line-height: 1.12; letter-spacing: -0.025em; }
  #intro .lead { margin: 14px 0 11px; font-size: 15px; line-height: 1.58; }
  #intro .notes { padding-left: 1.15em; font-size: 14.5px; line-height: 1.55; }
  #intro .notes li + li { margin-top: 4px; }
  #intro .privacy-line { margin: 14px 0 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
  #intro > p:not(.lead):not(.privacy-line) { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; }
  #intro .primary-button { min-width: 136px; margin-top: 14px; padding: 11px 22px; }
  footer { margin-top: auto; gap: 5px 12px; padding: 0 12px max(12px, env(safe-area-inset-bottom)); font-size: 11.5px; line-height: 1.45; }
}
