:root {
  color-scheme: light;
  --background: #f4f6fb;
  --surface: #ffffff;
  --ink: #162337;
  --muted: #4e5d71;
  --key: #423bab;
  --key-hover: #37318e;
  --line: #dbe2ed;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse 670px 520px at 50% 0%, #e9edf9, transparent 86%), var(--background);
  color: var(--ink);
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  min-height: 65px;
  margin-inline: auto;
  padding: 12px 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .94rem;
  font-weight: 700;
}

.wordmark-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  background: var(--key);
  position: relative;
}

.wordmark-icon::before, .wordmark-icon::after {
  position: absolute;
  content: "";
  height: 2px;
  border-radius: 1px;
  left: 6px;
  background: #e8eeff;
}

.wordmark-icon::before { width: 14px; top: 9px; }
.wordmark-icon::after { width: 9px; top: 15px; }
.header-label { color: var(--muted); font-size: .78rem; white-space: nowrap; }

.claim-page {
  width: min(100% - 32px, 460px);
  margin-inline: auto;
  padding-block: 34px 52px;
}

.claim-heading { text-align: center; margin-bottom: 23px; }

h1 {
  margin: 0;
  font-size: clamp(1.66rem, 5.85vw, 2.15rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.claim-intro { color: var(--muted); font-size: .93rem; margin: 9px 0 0; }

.claim-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(31, 41, 78, .065);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: .93rem;
}

input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 1px solid #c3cfe0;
  border-radius: 9px;
  padding: 8px 12px;
  background: #fcfdff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

input[type="tel"]::placeholder { color: #6a788a; }

.field-hint {
  color: var(--muted);
  font-size: .79rem;
  margin: 7px 0 16px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--key);
  color: #fff;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.primary-button:hover { background: var(--key-hover); }

:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; }

.claim-card > :is(aside, p, section, div), .admin-page > :is(aside, p, section) {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #f6f8fd;
  font-size: .83rem;
}

.claim-card > :is(aside, p, section, div) p:first-child { margin-top: 0; }
.claim-card > :is(aside, p, section, div) p:last-child { margin-bottom: 0; }
.claim-card > .preview-notice, .admin-page > .preview-notice {
  border-color: #e4e8f3;
  background: #f4f6fc;
  color: var(--muted);
  padding: 7px 10px;
  font-size: .78rem;
}

.privacy-details { position: relative; color: var(--muted); font-size: .78rem; }
.privacy-details summary { cursor: pointer; white-space: nowrap; }
.privacy-content {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  top: calc(100% + 9px);
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(31, 41, 78, .1);
}
.privacy-details p { margin: 7px 0 0; overflow-wrap: anywhere; }
.privacy-details p:first-child { margin-top: 0; }

.claim-card > [role="alert"], .claim-card > .error {
  border-color: #f0c8ce;
  background: #fff2f3;
  color: #922c43;
}

.admin-page {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
  padding-block: 36px 52px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
}

.record-count { color: var(--muted); font-size: .85rem; white-space: nowrap; margin: 0; }
.record-count strong { font-size: 1.25rem; color: var(--ink); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 12px 15px; }
th { font-weight: 700; background: #eef1fa; }
td { border-top: 1px solid var(--line); }

@media (max-width: 480px) {
  .header-inner { min-height: 54px; }
  .claim-page { padding-block: 24px 32px; }
  .claim-heading { margin-bottom: 15px; }
  .claim-card { padding: 16px; }
  .claim-card > :is(aside, p, section, div) { margin-bottom: 11px; }
}

@media (min-width: 640px) {
  .header-inner { padding-inline: 28px; }
  .claim-page { padding-top: 62px; }
  .claim-card { padding: 27px; }
}

/* Public channel campaign */
.campaign {
  --key: #2756e8;
  --key-hover: #1c43c5;
  --ink: #192a46;
  --muted: #586b83;
  background: #f4f7fc;
}
.campaign .site-header { background: white; border-color: #e4eaf3; }
.campaign .header-inner { max-width: 1176px; min-height: 72px; padding: 12px 28px; }
.campaign .wordmark { gap: 10px; color: #20324b; font-size: 16px; }
.campaign-mark {
  display: inline-block;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 40%, #fff 41% 51%, transparent 52%) 7px 7px / 15px 15px no-repeat,
    linear-gradient(150deg, #5e96ff, #2456de 78%);
}
.channel-label { border-left: 1px solid #ced8e6; padding-left: 10px; font-size: 12px; font-weight: 500; color: #596d87; }
.campaign .privacy-details { z-index: 3; font-size: 13px; }
.campaign .privacy-details summary { padding-block: 8px; }
.benefit-panel {
  width: min(calc(100% - 64px), 1060px);
  margin: clamp(44px, 9vh, 104px) auto 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dae3f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px -38px #25477970;
}
.benefit-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 492px;
  padding: clamp(32px, 4vw, 54px);
  border-radius: 21px 0 0 21px;
  color: #fff;
  background: radial-gradient(ellipse at 104% 112%, #7bbdff 0%, #4278f0 37%, transparent 70%),
              linear-gradient(135deg, #11285e 0%, #1e459e 57%, #4173da 100%);
}
.cover-copy { position: relative; z-index: 1; }
.cover-copy h1 { font-size: clamp(38px, 4vw, 60px); font-weight: 550; line-height: 1.2; letter-spacing: -.045em; }
.cover-copy h1 strong { font-weight: 750; }
.gift-art {
  position: absolute;
  right: -2%; bottom: 0;
  width: 72%; max-width: 364px; aspect-ratio: 1.25;
  pointer-events: none;
}
.orbit {
  position: absolute;
  inset: 31% -18% 6% -40%;
  border: 1px solid #a8ceff59;
  border-radius: 50%;
  transform: rotate(-26deg);
  box-shadow: 0 0 0 26px #a8ceff0b, 0 0 0 27px #a8ceff33;
}
.tile {
  position: absolute;
  width: 57%; height: 44%;
  left: 21%; top: 28%;
  border-radius: 15%;
  transform: rotate(-28deg) skew(12deg, 5deg);
}
.tile-back {
  top: 44%; left: 17%;
  border: 1px solid #a9d2faad;
  background: linear-gradient(165deg, #8fc6ffb3, #4076e5 78%);
  box-shadow: 0 14px 22px -8px #0c298b80;
}
.tile-middle {
  top: 36%; left: 19%;
  background: linear-gradient(140deg, #c5ecff, #8aaff6 65%, #6f9af0);
  box-shadow: inset 0 -4px 1px #5b80dc;
}
.tile-front {
  background: linear-gradient(135deg, #fff 4%, #edf5ff 40%, #c4ddff);
  box-shadow: inset 0 -4px 1px #9cbdeb, 0 5px 12px #16358940;
}
.ribbon-cross {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 57%, #6290ff 57%, #4779ee 70%, transparent 70%),
              linear-gradient(transparent 36%, #769dff 36%, #5486fe 52%, transparent 52%);
}
.ribbon-knot { position: absolute; left: 63%; top: 44%; width: 10%; height: 20%; }
.ribbon-knot::before, .ribbon-knot::after {
  content: ""; position: absolute; bottom: 80%; width: 130%; height: 135%;
  border: 4px solid #4876db; border-radius: 70% 70% 20% 70%;
}
.ribbon-knot::before { right: 52%; transform: rotate(-17deg); }
.ribbon-knot::after { left: -26%; transform: scaleX(-1) rotate(-17deg); }
.spark { position: absolute; top: 10%; right: 11%; height: 9%; aspect-ratio: 1; background: #d7eeff; clip-path: polygon(50% 0,63% 36%,100% 50%,63% 64%,50% 100%,37% 64%,0 50%,37% 36%); }
.registration { align-self: center; min-width: 0; padding: 48px clamp(28px, 4.25vw, 60px); }
.registration h2 { margin: 0; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.35; letter-spacing: -.035em; }
.registration-intro { color: var(--muted); margin: 8px 0 30px; font-size: 14px; }
.campaign input[type="tel"] { min-height: 50px; border: 1px solid #b8c7db; background: #fff; border-radius: 8px; padding-inline: 15px; }
.campaign input:focus { border-color: var(--key); outline: 3px solid #dbe6ff; outline-offset: 0; }
.campaign .field-hint { margin: 8px 0 24px; font-size: 13px; }
.campaign .primary-button { min-height: 49px; border-radius: 8px; box-shadow: 0 6px 16px -9px #193dbe; }
.action-arrow { font-family: Arial, sans-serif; font-size: 1.15em; line-height: 1; }
.registration .form-error, .registration .preview-notice { border-radius: 6px; padding: 9px 12px; font-size: 14px; }
.registration .form-error { color: #942d36; background: #fff1f2; }
.registration .preview-notice { color: #38507e; background: #edf4ff; }
@media (max-width: 720px) {
  .campaign .header-inner { min-height: 58px; padding-inline: 20px; }
  .campaign .wordmark { font-size: 14px; gap: 8px; }
  .benefit-panel { width: min(calc(100% - 32px), 500px); grid-template-columns: 1fr; margin: 24px auto 36px; border-radius: 18px; }
  .benefit-cover { border-radius: 17px 17px 0 0; min-height: 174px; padding: 29px 26px; }
  .cover-copy h1 { font-size: clamp(31px, 8.5vw, 43px); }
  .gift-art { width: 43%; bottom: -5%; right: 0; }
  .registration { padding: 26px; }
  .registration-intro { margin-bottom: 22px; }
}
@media (max-width: 360px) {
  .campaign .header-inner { padding-inline: 12px; }
  .benefit-panel { width: calc(100% - 20px); }
  .registration, .benefit-cover { padding: 22px 19px; }
  .benefit-cover { min-height: 143px; }
  .gift-art { width: 39%; }
}
