:root {
  --navy: #102b63;
  --blue: #1596d4;
  --blue-dark: #067fc2;
  --aqua: #b7edf8;
  --aqua-soft: #e8fbff;
  --white: #ffffff;
  --text: #1d3152;
  --muted: #697a92;
  --danger: #d83232;
  --shadow: 0 22px 55px rgba(8, 67, 116, 0.22);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #eaffff 0%, #c5eff9 42%, #65c9ef 100%);
}

body {
  display: grid;
  place-items: center;
  padding: 18px;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(236, 252, 255, .86) 0%, rgba(238, 253, 255, .52) 42%, rgba(10, 72, 118, .18) 100%),
    url("../assets/ocean-campaign-bottles-background.png") center center / cover no-repeat,
    linear-gradient(135deg, #e7fbff 0%, #a7e9ff 100%);
  box-shadow: 0 28px 80px rgba(8, 59, 104, .35);
  isolation: isolate;
}

.water-bg,
.water-bg * {
  pointer-events: none;
}

.water-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .24;
}

.water-bg::before,
.water-bg::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -5%;
  height: 250px;
  background:
    radial-gradient(circle at 18% 40%, rgba(255,255,255,.95) 0 8px, transparent 9px),
    radial-gradient(circle at 46% 25%, rgba(255,255,255,.7) 0 5px, transparent 6px),
    radial-gradient(circle at 75% 45%, rgba(255,255,255,.8) 0 7px, transparent 8px),
    linear-gradient(180deg, rgba(61, 199, 241, .18), rgba(2, 128, 201, .54));
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  transform: rotate(-2deg);
}

.water-bg::after {
  bottom: 16%;
  left: auto;
  right: -35%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,.05) 45%, transparent 65%);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
}

.bubble {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: inset 2px 2px 5px rgba(255,255,255,.8);
  animation: float 6s ease-in-out infinite;
}

.b1 { top: 9%; right: 10%; }
.b2 { top: 18%; right: 24%; width: 8px; height: 8px; animation-delay: .6s; }
.b3 { top: 32%; left: 9%; width: 10px; height: 10px; animation-delay: 1s; }
.b4 { bottom: 20%; right: 8%; width: 18px; height: 18px; animation-delay: 1.5s; }
.b5 { bottom: 15%; left: 15%; width: 9px; height: 9px; animation-delay: 2.1s; }
.b6 { top: 55%; right: 41%; width: 7px; height: 7px; animation-delay: 2.6s; }

.leaf {
  position: absolute;
  width: 110px;
  height: 24px;
  background: linear-gradient(90deg, #48a247, #9fd35d);
  border-radius: 90% 0 90% 0;
  opacity: .52;
  filter: blur(.2px);
}

.leaf-one {
  top: 20px;
  left: -25px;
  transform: rotate(-35deg);
}

.leaf-two {
  bottom: 150px;
  left: -25px;
  transform: rotate(22deg);
}

.fruit {
  display: none;
  position: absolute;
  font-size: 52px;
  filter: drop-shadow(0 8px 10px rgba(7,83,124,.18));
  opacity: .85;
}

.mango { left: 20px; bottom: 130px; }
.guava { right: 24px; bottom: 100px; }
.apple { right: 32px; bottom: 24px; font-size: 42px; }
.splash { left: 8px; bottom: 245px; font-size: 58px; opacity: .52; }

.screen {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 30px 24px 34px;
}

.screen.active {
  display: block;
  animation: screenIn .35s ease both;
}

.brand-header {
  text-align: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 18px rgba(255,255,255,.72));
}

.brand-header.compact {
  margin-bottom: 12px;
}

.brand-logo {
  width: 160px;
  max-width: 72%;
  mix-blend-mode: multiply;
}

.brand-subtitle {
  margin: 4px 0 0;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-copy .eyebrow {
  font-size: 26px;
  line-height: 1;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: clamp(40px, 11vw, 54px);
  line-height: .92;
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 28px;
}

.brush-label {
  display: inline-block;
  color: #fff;
  background: linear-gradient(100deg, #17a7df, #0d85c5);
  padding: 5px 24px 7px;
  border-radius: 999px 22px 999px 22px;
  font-size: 24px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  box-shadow: 0 10px 22px rgba(18, 152, 212, .24);
}

.hero-text,
.page-title p,
.scratch-help,
.terms {
  color: var(--muted);
  line-height: 1.45;
}

.hero-text {
  max-width: 250px;
  margin: 13px 0 0;
  font-size: 15px;
}

.bottle-wrap {
  min-height: 255px;
  display: grid;
  place-items: center;
}

.bottle {
  position: relative;
  width: 92px;
  height: 260px;
  transform: rotate(5deg);
  filter: drop-shadow(0 20px 22px rgba(0, 94, 152, .2));
}

.cap {
  width: 54px;
  height: 25px;
  border-radius: 10px 10px 4px 4px;
  margin: 0 auto;
  background: repeating-linear-gradient(90deg, #f6852c 0 4px, #ff9e45 4px 8px);
}

.neck {
  width: 44px;
  height: 34px;
  margin: -2px auto 0;
  border-radius: 10px 10px 4px 4px;
  background: rgba(255,255,255,.54);
  border: 2px solid rgba(11, 119, 182, .18);
}

.bottle-body {
  position: relative;
  height: 202px;
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(100deg, rgba(255,255,255,.86), rgba(216,249,255,.5) 52%, rgba(255,255,255,.78));
  border: 2px solid rgba(32, 143, 200, .2);
  overflow: hidden;
}

.bottle-body::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 10px;
  width: 15px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
}

.bottle-name {
  position: absolute;
  left: 16px;
  top: 62px;
  color: var(--navy);
  transform: rotate(-90deg);
  transform-origin: left top;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.bottle-side {
  position: absolute;
  right: 7px;
  top: 70px;
  writing-mode: vertical-rl;
  color: var(--navy);
  font-size: 9px;
  letter-spacing: .15em;
  font-weight: 900;
}

.bottle-label {
  position: absolute;
  right: 10px;
  bottom: 20px;
  width: 43px;
  min-height: 82px;
  padding: 8px 5px;
  color: var(--navy);
  border-radius: 10px;
  background: linear-gradient(180deg, #ff8d3c, #ffb03f);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.3);
}

.bottle-label strong {
  display: block;
  font-size: 8px;
  line-height: 1.05;
}

.bottle-label small {
  display: block;
  margin-top: 7px;
  font-size: 5px;
  line-height: 1.1;
  font-weight: 900;
}

.card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.form-card {
  margin-top: 18px;
  padding: 24px;
}

.retailer-card {
  margin-top: 20px;
}

label {
  display: block;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}

.input-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid rgba(16,43,99,.18);
  border-radius: 17px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.input-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,150,212,.12);
  transform: translateY(-1px);
}

.input-box span {
  width: 24px;
  text-align: center;
  color: var(--blue-dark);
}

input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

input::placeholder {
  color: #8c98a8;
  font-weight: 600;
}

.field-error {
  min-height: 18px;
  margin: 5px 0 8px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.field-error.center {
  text-align: center;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #22b1ec, #067cc0);
  box-shadow: 0 13px 28px rgba(8,125,192,.26);
}

.secondary-btn {
  color: var(--blue-dark);
  background: rgba(13,132,197,.1);
  border: 1px solid rgba(13,132,197,.18);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:active,
.secondary-btn:active {
  transform: scale(.99);
}

.terms {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
}

.terms b {
  color: var(--blue-dark);
}

.page-title {
  text-align: center;
  padding: 8px 8px 0;
}

.page-title p:not(.eyebrow) {
  max-width: 290px;
  margin: 0 auto;
}

.scratch-title h2 {
  font-size: 44px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  color: var(--blue);
}

.scratch-card-shell {
  margin-top: 34px;
  text-align: center;
}

.scratch-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1.64;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 22px 48px rgba(16,43,99,.2);
  border: 8px solid rgba(255,255,255,.72);
  touch-action: none;
  background: #fff;
}

.reward-layer,
#scratchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reward-layer {
  display: grid;
  place-content: center;
  gap: 4px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,207,84,.5), transparent 16%),
    radial-gradient(circle at 82% 80%, rgba(82,210,154,.34), transparent 18%),
    linear-gradient(135deg, #ffffff, #e8fbff);
  color: var(--navy);
  text-align: center;
}

.reward-layer p,
.reward-layer span {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reward-layer strong {
  font-size: 74px;
  line-height: 1;
  color: var(--navy);
}

#scratchCanvas {
  z-index: 2;
  cursor: grab;
}

.scratch-help {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.thankyou-card {
  margin-top: 70px;
  padding: 38px 24px;
  text-align: center;
}

.success-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: var(--blue);
  background: radial-gradient(circle, #fff 45%, rgba(13,132,197,.13) 47%);
  font-size: 58px;
  font-weight: 900;
  box-shadow: 0 0 0 11px rgba(21,150,212,.08), 0 15px 32px rgba(16,43,99,.18);
}

.thankyou-card h2 {
  font-size: 46px;
}

.thankyou-card p {
  color: var(--text);
  line-height: 1.55;
}

.thankyou-card b {
  color: var(--blue-dark);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 32, 71, .38);
  backdrop-filter: blur(5px);
}

.modal-backdrop.show {
  display: flex;
  animation: fadeIn .2s ease both;
}

.modal-card {
  width: min(365px, 100%);
  position: relative;
  padding: 31px 24px 24px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 25px 70px rgba(1, 33, 68, .32);
  animation: modalIn .28s ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #9aa4b4;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--blue-dark);
  background: linear-gradient(135deg, #e4f6ff, #f7fcff);
  font-size: 30px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

#otpInput {
  height: 58px;
  margin: 8px 0 8px;
  border: 1.5px solid rgba(16,43,99,.18);
  border-radius: 17px;
  text-align: center;
  font-size: 29px;
  color: var(--blue);
  letter-spacing: .35em;
  padding-left: .35em;
  background: #fff;
}

#otpInput:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,150,212,.12);
}

.otp-hint {
  margin-bottom: 0 !important;
  font-weight: 800;
}

.otp-hint b {
  color: var(--blue);
}

.reward-popup .reward-amount {
  display: block;
  color: var(--blue);
  font-size: 58px;
  line-height: .95;
  margin: 2px 0 12px;
}

.gift {
  font-size: 33px;
}

.confetti {
  color: #1fa5dc;
  font-size: 20px;
  letter-spacing: .4em;
  margin-bottom: 6px;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

@media (max-width: 430px) {
  body {
    display: block;
    padding: 0;
  }

  .app-shell {
    min-height: 100svh;
    border-radius: 0;
  }

  .screen {
    min-height: 100svh;
    padding-inline: 18px;
  }

  h1 {
    font-size: 41px;
  }

  .bottle {
    width: 78px;
    height: 230px;
  }

  .brand-logo {
    width: 142px;
  }

  .form-card {
    padding: 20px;
  }
}
