:root {
  --navy-950: #07172f;
  --navy-900: #091d39;
  --navy-800: #102b51;
  --navy-700: #183b69;
  --blue-700: #1e467d;
  --blue-600: #28578f;
  --blue-100: #dceaff;
  --blue-50: #edf5ff;
  --gold: #f1c55b;
  --ink: #10243d;
  --muted: #64748b;
  --line: #d7dfeb;
  --surface: #ffffff;
  --canvas: #eef2f8;
  --danger: #a83243;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(180deg, #0e294c 0, #0e294c 13rem, var(--canvas) 13rem, var(--canvas) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

img,
svg,
canvas { max-width: 100%; }

[hidden] { display: none !important; }

.topbar {
  position: relative;
  z-index: 2;
  height: 72px;
  color: #fff;
  background: rgba(7, 23, 47, .86);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  width: min(1152px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: .02em;
  text-decoration: none;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #18375f;
  background: #e9f3ff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.topbar__tag {
  min-width: 52px;
  padding: 7px 12px;
  text-align: center;
  color: #dae7f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
}

.page-glow {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 13rem;
  pointer-events: none;
  overflow: hidden;
}

.page-glow::before,
.page-glow::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(12px);
}

.page-glow::before {
  top: -220px;
  left: 8%;
  background: rgba(77, 135, 203, .2);
}

.page-glow::after {
  top: -250px;
  right: 5%;
  background: rgba(241, 197, 91, .1);
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: min(1152px, calc(100% - 40px));
  margin: 38px auto 0;
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

.flow-card {
  min-height: 650px;
  display: grid;
  grid-template-columns: 32% 68%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(211, 220, 233, .86);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(9, 29, 57, .17), 0 3px 12px rgba(9, 29, 57, .08);
}

.prize-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-800) 48%, var(--navy-900) 100%);
}

.prize-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -280px;
  top: -190px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 95px rgba(255,255,255,.02);
}

.prize-panel__orbs::before,
.prize-panel__orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.prize-panel__orbs::before {
  width: 240px;
  height: 240px;
  left: -160px;
  bottom: -100px;
  background: rgba(54, 116, 183, .2);
}

.prize-panel__orbs::after {
  width: 7px;
  height: 7px;
  right: 42px;
  bottom: 75px;
  background: var(--gold);
  box-shadow: -32px 25px 0 -2px rgba(241,197,91,.55), 26px -22px 0 -2px rgba(255,255,255,.4);
}

.prize-panel__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 52px 42px 40px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 10px;
  color: #356399;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .08em;
}

.eyebrow--gold { color: var(--gold); }

.prize-panel__title {
  max-width: 280px;
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.25;
  font-weight: 770;
  letter-spacing: -.025em;
}

.prize-panel__subtitle {
  margin: 15px 0 0;
  color: rgba(226, 237, 250, .73);
  font-size: 14px;
  line-height: 1.75;
}

.amount-display {
  margin: 34px 0 44px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.amount-display__currency {
  color: var(--gold);
  font-size: 19px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
}

.amount-display__value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 5px 20px rgba(0,0,0,.2);
}

.steps {
  position: relative;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: rgba(255,255,255,.18);
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 75px;
  color: rgba(224, 235, 248, .47);
}

.step__circle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(238, 245, 255, .62);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.step__copy { display: flex; flex-direction: column; gap: 3px; }
.step__copy strong { font-size: 14px; }
.step__copy small { font-size: 11px; color: inherit; }
.step__check { display: none; }

.step.is-active { color: #fff; }
.step.is-active .step__circle {
  color: #1b3354;
  background: var(--gold);
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 0 0 6px rgba(241,197,91,.12), 0 8px 18px rgba(0,0,0,.18);
}

.step.is-complete { color: #dcecff; }
.step.is-complete .step__circle { color: #1d487d; background: #dcebfd; border-color: #eef6ff; }
.step.is-complete .step__number { display: none; }
.step.is-complete .step__check { display: inline; font-size: 18px; }

.content-panel {
  min-width: 0;
  padding: 54px clamp(38px, 5vw, 72px) 44px;
  background: linear-gradient(160deg, #fff 0%, #fff 62%, #f7f9fd 100%);
}

.flow-view,
.result-view { max-width: 650px; margin: 0 auto; }

.content-heading { margin-bottom: 30px; }
.content-heading h2,
.result-heading h2 {
  margin: 0;
  color: #0d2747;
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.content-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.content-heading,
.result-heading > div,
.processing-card > div,
.details-card > header > div {
  min-width: 0;
}

.content-heading h2,
.content-heading > p:last-child,
.result-heading h2,
.processing-card strong,
.details-card h3,
.details-card header p {
  overflow-wrap: anywhere;
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  color: #17375d;
  background: linear-gradient(135deg, var(--blue-50), #e3efff);
  border: 1px solid #c8daef;
  border-radius: 18px;
}

.notice-box__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-600);
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(40,87,143,.25);
}

.notice-box strong { display: block; margin: 1px 0 6px; font-size: 16px; }
.notice-box p { margin: 0; color: #627b9b; font-size: 13px; line-height: 1.65; }

.feature-grid {
  margin: 26px 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-grid article {
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.8);
}

.feature-grid span { display: block; color: #2d5c91; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.feature-grid strong { display: block; margin: 8px 0 5px; color: #173452; font-size: 14px; }
.feature-grid p { margin: 0; color: #7a899d; font-size: 11px; line-height: 1.55; }

.primary-button,
.secondary-button {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 760;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.primary-button {
  width: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 12px 28px rgba(30,70,125,.24);
}

.primary-button:hover { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(30,70,125,.28); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .66; transform: none; }
.primary-button--inline { width: auto; min-width: 230px; gap: 25px; }

.secondary-button {
  min-width: 96px;
  padding: 0 20px;
  color: #315274;
  background: #edf2f8;
  border: 1px solid #d7e0eb;
}

.entry-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { color: #233d5a; font-size: 13px; font-weight: 760; }
.field small { margin-left: 2px; color: #8794a5; font-size: 11px; }

.field__control {
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ced8e5;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(22, 51, 84, .035);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field__control:focus-within {
  border-color: #4b78aa;
  box-shadow: 0 0 0 4px rgba(53,99,153,.11);
}

.field__icon {
  flex: 0 0 auto;
  width: 50px;
  color: #557391;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  letter-spacing: -.02em;
}

.field input {
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 0 16px 0 0;
  color: #152e49;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.field input::placeholder { color: #9aa6b5; }

.alert {
  margin: -10px 0 20px;
  padding: 13px 15px;
  color: #8f2635;
  font-size: 13px;
  line-height: 1.55;
  background: #fff0f2;
  border: 1px solid #f1c2c9;
  border-radius: 12px;
}

.form-actions {
  margin-top: 7px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.result-heading {
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.result-heading .eyebrow { margin-bottom: 6px; }
.result-heading h2 { font-size: clamp(31px, 3.3vw, 44px); }

.success-badge {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #25568d;
  font-size: 27px;
  background: linear-gradient(145deg, #f0f7ff, #d8eaff);
  border: 1px solid #bdd3ec;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(43, 92, 145, .14);
}

.success-badge--muted { margin: 0 auto 18px; }

.processing-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 22px;
  color: #183b68;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid #b9cfee;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.processing-card__icon {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #2e6199;
  font-size: 25px;
  background: rgba(255,255,255,.75);
  border: 1px solid #c4d8ef;
  border-radius: 14px;
}

.processing-card p { margin: 0 0 4px; color: #5a7ca2; font-size: 13px; font-weight: 700; }
.processing-card strong { display: block; font-size: 18px; line-height: 1.35; }

.result-note {
  margin: 14px 0 0;
  padding: 15px 17px;
  color: #526982;
  font-size: 13px;
  line-height: 1.65;
  background: #f5f8fc;
  border-left: 3px solid #7d9ec2;
  border-radius: 4px 12px 12px 4px;
}

.details-card {
  margin-top: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid #d4deea;
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(24,59,105,.055);
}

.details-card > header {
  padding: 18px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.details-card h3 { margin: 0 0 4px; color: #183653; font-size: 15px; }
.details-card header p { margin: 0; color: #7b899b; font-size: 12px; }

.record-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #2d5a8e;
  font-size: 10px;
  font-weight: 800;
  background: #edf5ff;
  border: 1px solid #c7daf0;
  border-radius: 999px;
}

.details-grid {
  margin: 0;
  padding: 3px 21px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}

.details-grid > div {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #edf1f6;
}

.details-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.details-grid dt { margin: 0 0 7px; color: #718095; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.details-grid dd { margin: 0; color: #162f4b; font-size: 14px; font-weight: 690; overflow-wrap: anywhere; }
.details-grid dd.money { color: #1e4f85; font-size: 17px; font-weight: 830; }
.details-grid dd.account-number { letter-spacing: .045em; }

.support-box {
  margin-top: 17px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #61748a;
  background: #f6f8fb;
  border: 1px solid #e0e6ee;
  border-radius: 13px;
}

.support-box > span {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-family: Georgia, serif;
  font-weight: 700;
  background: #6684a4;
  border-radius: 50%;
}

.support-box p { margin: 0; font-size: 11px; line-height: 1.65; }

.capture-actions { margin-top: 18px; }
.capture-status { min-height: 18px; margin: 8px 0 0; color: #65768b; text-align: center; font-size: 11px; }

.footer {
  padding: 22px 0 0;
  color: #7e8b9c;
  text-align: center;
  font-size: 11px;
  letter-spacing: .05em;
}

.footer span { color: #426c9c; font-weight: 900; }

.fatal-card {
  max-width: 560px;
  margin: 100px auto;
  padding: 44px;
  text-align: center;
  background: #fff;
  border: 1px solid #d5dfeb;
  border-radius: 24px;
  box-shadow: 0 25px 65px rgba(9,29,57,.16);
}

.fatal-card h1 { margin: 0 0 12px; font-size: 27px; }
.fatal-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.is-capturing [data-capture-hide] { display: none !important; }
.is-capturing .flow-card { box-shadow: none; }

@media (max-width: 900px) {
  .prize-panel__content { padding: 44px 30px 36px; }
  .content-panel { padding: 48px 35px 40px; }
}

@media (max-width: 780px) {
  body { background: linear-gradient(180deg, #0e294c 0, #0e294c 17rem, var(--canvas) 17rem, var(--canvas) 100%); }
  .topbar { height: 62px; }
  .page-glow { top: 62px; }
  .topbar__inner,
  .page-wrap { width: min(100% - 24px, 660px); }
  .page-wrap { margin-top: 18px; }
  .flow-card { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .prize-panel__content { padding: 29px 26px 24px; }
  .prize-panel__title { max-width: 520px; font-size: 25px; }
  .prize-panel__subtitle { margin-top: 9px; line-height: 1.55; }
  .amount-display { margin: 25px 0 27px; }
  .amount-display__value { font-size: clamp(39px, 12vw, 56px); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .steps::before { left: 16.5%; right: 16.5%; top: 20px; bottom: auto; width: auto; height: 1px; }
  .step { min-height: auto; flex-direction: column; gap: 8px; text-align: center; }
  .step__copy { min-width: 0; }
  .step__copy strong { font-size: 12px; }
  .step__copy small { display: none; }
  .content-panel { padding: 34px 26px 31px; }
  .flow-view,
  .result-view { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
  .feature-grid article p { grid-column: 2; }
  .form-actions { display: grid; grid-template-columns: 94px 1fr; }
  .primary-button--inline { min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
  .brand { font-size: 14px; }
  .brand__mark { width: 29px; height: 29px; border-radius: 9px; }
  .topbar__tag { min-width: 45px; padding: 6px 9px; }
  .page-wrap { width: calc(100% - 16px); margin-top: 8px; }
  .flow-card { border-radius: 18px; }
  .prize-panel__content { padding: 25px 20px 21px; }
  .prize-panel__title { font-size: 23px; }
  .prize-panel__subtitle { font-size: 12px; }
  .amount-display { margin: 22px 0 24px; gap: 8px; }
  .amount-display__currency { font-size: 17px; }
  .step__circle { width: 37px; height: 37px; }
  .steps::before { top: 18px; }
  .content-panel { padding: 30px 20px 27px; }
  .content-heading h2,
  .result-heading h2 { font-size: 29px; }
  .content-heading { margin-bottom: 23px; }
  .content-heading > p:last-child { font-size: 13px; }
  .notice-box { padding: 18px; }
  .entry-form { gap: 16px; }
  .field input { font-size: 16px; }
  .form-actions { grid-template-columns: 82px 1fr; gap: 8px; }
  .secondary-button { min-width: 0; padding: 0 13px; }
  .primary-button--inline { padding: 0 15px; gap: 10px; }
  .result-heading { gap: 14px; }
  .success-badge { width: 57px; height: 57px; border-radius: 16px; }
  .processing-card { padding: 18px; gap: 14px; border-radius: 17px; }
  .processing-card strong { font-size: 16px; }
  .details-grid { grid-template-columns: 1fr; }
  .details-grid > div:nth-last-child(2) { border-bottom: 1px solid #edf1f6; }
  .details-grid > div:last-child { border-bottom: 0; }
  .details-card > header { padding: 17px; }
  .details-grid { padding: 3px 17px; }
  .fatal-card { margin: 48px auto; padding: 30px 22px; border-radius: 18px; }
}

@media (max-width: 380px) {
  .topbar__inner { width: calc(100% - 20px); }
  .brand { gap: 8px; font-size: 13px; }
  .topbar__tag { min-width: 42px; padding-inline: 7px; }
  .page-wrap { width: calc(100% - 12px); margin-top: 6px; }
  .flow-card { border-radius: 16px; }
  .prize-panel__content { padding: 22px 16px 19px; }
  .prize-panel__title { font-size: 22px; }
  .amount-display { margin: 19px 0 22px; }
  .amount-display__value { font-size: clamp(36px, 12vw, 45px); }
  .steps { gap: 4px; }
  .step { min-width: 0; gap: 6px; }
  .step__copy strong { font-size: 11px; white-space: nowrap; }
  .content-panel { padding: 27px 16px 24px; }
  .content-heading h2,
  .result-heading h2 { font-size: 26px; }
  .content-heading > p:last-child { line-height: 1.65; }
  .notice-box { gap: 12px; padding: 16px 14px; border-radius: 15px; }
  .notice-box__icon { width: 36px; height: 36px; }
  .feature-grid { margin: 20px 0 24px; gap: 9px; }
  .feature-grid article { padding: 15px 13px; }
  .field__icon { width: 43px; }
  .field input { padding-right: 12px; }
  .form-actions { grid-template-columns: 1fr; }
  .secondary-button,
  .primary-button--inline { width: 100%; }
  .result-heading { align-items: flex-start; gap: 11px; }
  .success-badge { width: 52px; height: 52px; font-size: 23px; border-radius: 14px; }
  .processing-card { align-items: flex-start; padding: 16px 14px; gap: 11px; }
  .processing-card__icon { width: 41px; height: 41px; }
  .details-card { margin-top: 18px; border-radius: 15px; }
  .details-card > header { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 15px 14px; }
  .details-grid { padding-inline: 14px; }
  .details-grid > div { padding: 14px 0; }
  .record-pill { padding: 6px 9px; }
  .support-box { padding: 12px 13px; }
  .footer { padding-top: 17px; }
  .fatal-card { width: calc(100% - 12px); margin: 35px auto; padding: 26px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
