:root {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --surround: #641827;
  --paper: #fcf2ef;
  --badge: #fbdcda;
  --accent: #c42650;
  --accent-hover: #ac1d43;
  --ink: #ce214b;
  --muted: #815e69;
  --line: #e4bfc7;
  --title: #ffd166;
  --message: #b25000;
  --display: 'Baloo 2', 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--surround);
  color-scheme: light;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme='blue'] { --surround:#1c3d7e; --paper:#f3f7ff; --badge:#d7e7ff; --accent:#285fd3; --accent-hover:#1e4eb6; --ink:#2559c2; --muted:#576d91; --line:#bed0ef; --title:#ffdc76; --message:#a85200; }
:root[data-theme='emerald'] { --surround:#075b42; --paper:#f3fbf4; --badge:#d6efdb; --accent:#087d51; --accent-hover:#066740; --ink:#08764d; --muted:#577160; --line:#bbdcc6; --title:#ffe084; --message:#946000; }
:root[data-theme='violet'] { --surround:#492875; --paper:#faf5ff; --badge:#eadbfb; --accent:#7743c3; --accent-hover:#6334a9; --ink:#713dbb; --muted:#75608d; --line:#d9c4ee; --title:#ffdb7d; --message:#ac5400; }
:root[data-theme='teal'] { --surround:#145861; --paper:#f0fafb; --badge:#d1ecef; --accent:#087b85; --accent-hover:#08656d; --ink:#087580; --muted:#547278; --line:#b7d9de; --title:#ffdc83; --message:#aa5200; }
:root[data-theme='amber'] { --surround:#75431f; --paper:#fff9ee; --badge:#ffe6b7; --accent:#ab5513; --accent-hover:#91430c; --ink:#a34e11; --muted:#856d51; --line:#e9cfaa; --title:#ffe19a; --message:#975100; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100dvh; }
h1,h2,h3,p { margin: 0; }
button,input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button,a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-wrap { width: min(100%,428px); margin-inline: auto; padding: max(24px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.site-wordmark { margin: 0 0 20px; color: var(--title); font-family: var(--display); font-size: clamp(25px,7.9vw,32px); font-weight: 800; line-height: 1.25; text-align: center; white-space: nowrap; }
.offer-sheet { min-width: 0; overflow: hidden; border-radius: 44px; background: var(--paper); box-shadow: 0 14px 24px #0000000b; }
.offer-intro { padding: 24px 20px 0; text-align: center; }
.campaign-logo { display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 150px; max-width: 100%; min-height: 44px; margin: 0 auto; padding: 8px 24px; border-radius: 40px; background: var(--badge); color: var(--accent-hover); font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.campaign-logo.has-image { padding: 7px 18px; }
.campaign-logo img { display: block; width: auto; max-width: 100%; height: 44px; object-fit: contain; }
.offer-intro h1 { margin-top: 11px; color: var(--accent); font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1.2; letter-spacing: -.7px; text-wrap: balance; }
.offer-message { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; color: var(--message); font-size: 14px; font-weight: 500; line-height: 20px; text-align: left; }
.offer-message > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.tracker-intro h1 { font-size: 31px; }
.form-section { padding: 26px 20px 0; }
.field-label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 26px; }
.upi-field { display: flex; align-items: center; min-height: 60px; overflow: hidden; border: 2px solid var(--ink); border-radius: 32px; background: #fff; transition: box-shadow 140ms ease; }
.upi-field:focus-within { box-shadow: 0 0 0 3px var(--badge); }
.input-prefix { display: flex; align-items: center; justify-content: center; align-self: stretch; flex: 0 0 57px; border-right: 1px solid var(--ink); }
.input-prefix svg { width: 19px; height: 27px; }
.upi-field input { width: 100%; min-width: 0; min-height: 56px; padding: 14px 17px; border: 0; outline: 0; background: transparent; color: #35415a; font-size: 16px; font-weight: 500; line-height: 24px; }
.upi-field input::placeholder { color: #65758e; opacity: 1; }
.upi-field.has-error { border-color: #a71d40; }
.field-error { margin-top: 9px; color: #a71d40; font-size: 13px; line-height: 1.5; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 190px; max-width: 100%; min-height: 56px; margin: 20px auto 0; padding: 11px 16px; border: 0; border-radius: 32px; background: var(--accent); box-shadow: 0 6px 10px #00000024; color: #fff; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background 140ms ease,transform 140ms ease; }
.primary-button svg { flex: 0 0 20px; width: 20px; height: 20px; }
.primary-button:active { background: var(--accent-hover); transform: translateY(1px); }
.form-helper { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.ticket-divider { position: relative; display: flex; align-items: center; height: 30px; margin-top: 10px; }
.ticket-divider::before,.ticket-divider::after { position: absolute; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--surround); content: ''; }
.ticket-divider::before { left: -13px; }
.ticket-divider::after { right: -13px; }
.ticket-divider > span { width: calc(100% - 52px); margin-inline: auto; border-top: 1px dashed var(--line); }
.instructions { padding: 7px 20px 28px; }
.offer-steps { display: grid; gap: 23px; margin: 0; padding: 0; list-style: none; }
.offer-steps li { display: flex; align-items: flex-start; gap: 16px; }
.step-pointer { flex: 0 0 36px; width: 36px; height: 36px; margin-top: -3px; color: var(--accent); }
.step-pointer svg { width: 100%; height: 100%; }
.offer-steps p { min-width: 0; padding-top: 2px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.offer-notice { margin-top: 23px; padding-top: 13px; border-top: 1px solid var(--line); }
.offer-notice p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.offer-notice strong { font-weight: 600; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 5px 0; }
.page-footer a { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 44px; padding: 8px 0; color: var(--paper); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.page-footer a:focus-visible,.theme-toggle:focus-visible { outline-color: var(--title); }
.page-footer svg { width: 19px; height: 19px; }
.confirmation { text-align: center; }
.confirmation-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 9px; border-radius: 50%; background: var(--badge); color: var(--accent); }
.confirmation-mark svg { width: 23px; height: 23px; }
.confirmation h2 { color: var(--accent); font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.3; }
.confirmation p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.upi-value { overflow-wrap: anywhere; }
.confirmation .upi-value { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; }
.text-button { display: block; min-height: 44px; margin: 7px auto -5px; padding: 10px 4px; border: 0; background: transparent; color: var(--accent-hover); font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.tracker-form { padding-bottom: 28px; }
.tracking-result { padding: 25px 20px; }
.tracking-summary { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-label,.updated-at { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tracking-summary .upi-value { margin-block: 5px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.task-list { margin: 6px 0 0; padding: 0; list-style: none; }
.task { display: flex; gap: 10px; padding: 16px 0; }
.task + .task { border-top: 1px solid var(--line); }
.task-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--badge); color: var(--accent); }
.task-mark svg { width: 18px; height: 18px; }
.task-copy { flex: 1; min-width: 0; }
.task-title { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.task-title h3 { font: inherit; }
.task-title span { white-space: nowrap; color: var(--accent-hover); }
.task-copy > p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-not-started .task-mark { color: var(--muted); }
.skip-link { position: absolute; top: 4px; left: 18px; z-index: 4; padding: 12px; background: var(--paper); color: var(--accent-hover); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.not-found { padding: 28px 21px; }
.not-found h1 { font-family: var(--display); font-size: 28px; line-height: 1.3; }
.theme-picker { position: relative; flex: 0 0 auto; z-index: 10; }
.theme-toggle { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff55; border-radius: 24px; background: var(--paper); color: var(--accent-hover); box-shadow: 0 4px 16px #00000024; font-size: 12px; font-weight: 600; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-panel { position: absolute; right: 0; bottom: 54px; width: min(280px,calc(100vw - 32px)); padding: 10px 14px 16px; border: 1px solid #e3e3e3; border-radius: 20px; background: #fff; color: #344054; box-shadow: 0 10px 40px #00000030; }
.theme-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.theme-panel-heading h2 { font-size: 14px; font-weight: 600; }
.close-theme { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: #677284; }
.close-theme svg { width: 19px; height: 19px; }
.theme-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.theme-option { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 68px; padding: 8px 2px; border: 1px solid #e1e5e9; border-radius: 12px; background: #fff; color: #4a5565; font-size: 11px; }
.theme-option[aria-pressed='true'] { border-color: var(--accent); background: var(--paper); color: var(--accent-hover); }
.theme-swatch { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; }
.theme-swatch svg { width: 18px; height: 18px; }
@media (hover:hover) { .primary-button:hover { background: var(--accent-hover); } .theme-option:hover { border-color: var(--accent); } }
@media (max-width:359px) {
  .page-wrap { padding-inline: 12px; }
  .site-wordmark { font-size: 25px; }
  .offer-sheet { border-radius: 36px; }
  .offer-intro { padding-inline: 18px; }
  .form-section,.instructions,.tracking-result { padding-inline: 18px; }
  .offer-intro h1 { font-size: 35px; }
  .tracker-intro h1 { font-size: 29px; }
  .input-prefix { flex-basis: 48px; }
  .upi-field input { padding-inline: 13px; }
  .offer-steps li { gap: 12px; }
  .step-pointer { flex-basis: 32px; width: 32px; height: 32px; }
  .offer-steps p { font-size: 15px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; } }
@media (prefers-contrast:more) { .upi-field,.offer-notice { border-color: var(--accent-hover); } }
@media (forced-colors:active) { .offer-sheet,.campaign-logo,.upi-field,.theme-panel,.theme-toggle { outline: 1px solid CanvasText; } .primary-button,.theme-option { border: 1px solid ButtonText; } .ticket-divider::before,.ticket-divider::after { background: Canvas; } }
