:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fa;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.redeem-card {
  width: min(100%, 520px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 34px 30px 30px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.brand {
  text-align: center;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0b5ed7;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #6b7280;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(29px, 7vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.8px;
}

.intro {
  margin: 14px auto 28px;
  max-width: 390px;
  text-align: center;
  line-height: 1.5;
  color: #4b5563;
  font-size: 16px;
}

form {
  margin: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 62px;
  border: 2px solid #cfd5de;
  border-radius: 12px;
  padding: 0 15px;
  background: #ffffff;
  color: #111827;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

input:focus {
  border-color: #0b5ed7;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

.help {
  margin: 8px 2px 20px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 11px;
  padding: 13px 18px;
  background: #0b5ed7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
}

button:hover {
  background: #094fad;
}

button:focus-visible {
  outline: 3px solid rgba(11, 94, 215, 0.35);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.result {
  margin-top: 22px;
  border-radius: 12px;
  padding: 15px 16px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
}

.result p {
  margin: 0;
}

.result-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}

.result.success {
  background: #ecfdf3;
  border: 1px solid #b7ebc8;
  color: #166534;
}

.result.success .result-icon::before {
  content: "✓";
}

.result.success .result-icon {
  background: #166534;
  color: #ffffff;
}

.result.redeemed {
  background: #fff3f2;
  border: 1px solid #f3c0bc;
  color: #9f271f;
}

.result.redeemed .result-icon::before {
  content: "!";
}

.result.redeemed .result-icon {
  background: #b42318;
  color: #ffffff;
}

.result.error {
  background: #fff3f2;
  border: 1px solid #f3c0bc;
  color: #9f271f;
}

.result.error .result-icon::before {
  content: "!";
}

.result.error .result-icon {
  background: #b42318;
  color: #ffffff;
}

.footer-note {
  margin: 26px 0 0;
  padding-top: 21px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .page-shell {
    padding: 18px 12px;
    align-items: start;
  }

  .redeem-card {
    border-radius: 15px;
    padding: 27px 20px 25px;
    margin-top: 8px;
  }

  .brand {
    margin-bottom: 20px;
  }

  input {
    height: 60px;
    font-size: 25px;
  }
}

.continue-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 11px;
  padding: 14px 18px;
  background: #111827;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.continue-link[hidden] {
  display: none;
}
