:root {
  color-scheme: dark;
  --ink: #080b0a;
  --surface: #111714;
  --surface-soft: #18201c;
  --text: #f7f5ef;
  --muted: #aeb8b1;
  --gold: #f1bd45;
  --green: #6fd679;
  --red: #e34234;
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(125deg, rgba(227, 66, 52, 0.13), transparent 36rem),
    linear-gradient(180deg, #111714 0%, #080b0a 100%);
}

a { color: inherit; }
button, input { font: inherit; }
.claim-header, .claim-main, .claim-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.claim-header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--line); }
.claim-brand { display: grid; text-decoration: none; text-transform: uppercase; }
.claim-brand strong { font-size: 1rem; font-weight: 950; }
.claim-brand span { color: var(--gold); font-size: 0.67rem; font-weight: 850; }
.claim-status { color: var(--green); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.claim-main { padding: clamp(44px, 7vw, 90px) 0; }
.claim-layout, .claim-success { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: clamp(42px, 7vw, 96px); align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 0.76rem; font-weight: 950; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { max-width: 10ch; margin: 0; font-size: clamp(3.2rem, 8vw, 7.4rem); line-height: 0.9; }
h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.claim-lead, .success-copy > p { max-width: 54ch; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.claim-form-panel { padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); border-radius: 8px; background: rgba(17, 23, 20, 0.94); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38); }
.claim-form-panel > p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.claim-form-panel form { display: grid; gap: 9px; }
label { margin-top: 7px; color: #dfe5e0; font-size: 0.82rem; font-weight: 850; }
input[type="text"], input[type="tel"] { width: 100%; min-height: 50px; padding: 0 14px; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; outline: 0; background: #090d0b; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(241, 189, 69, 0.14); }
.primary-button { min-height: 52px; padding: 0 20px; color: #0b120c; font-weight: 950; border: 0; border-radius: 6px; background: var(--green); cursor: pointer; }
.primary-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.6; }
.claim-form-panel form .primary-button { margin-top: 16px; }
.form-alert { padding: 12px 14px; color: #ffd0cb !important; border-left: 3px solid var(--red); background: rgba(227, 66, 52, 0.1); }
.trap-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.claim-receipt { display: block; max-width: 42ch; margin-top: 18px; color: rgba(255, 255, 255, 0.48); overflow-wrap: anywhere; }
.customer-bingo-card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1181 / 1654;
  overflow: hidden;
  justify-self: center;
  container-type: inline-size;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}
.customer-card-template { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.customer-card-grid {
  position: absolute;
  left: 15.93%;
  top: 39.2%;
  width: 70.8%;
  height: 48.48%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-auto-flow: column;
  gap: 0.61% 1.25%;
}
.customer-card-cell {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  color: #111;
  border: clamp(2px, 0.44cqi, 5px) solid rgba(0, 0, 0, 0.85);
  border-radius: 46% 46% 13% 13%;
  background: #ffdddd;
  box-shadow: 0.8cqi 1cqi 1.35cqi rgba(47, 46, 48, 0.52);
  font-size: clamp(16px, 5.1cqi, 48px);
  font-weight: 750;
  line-height: 1;
}
.customer-card-cell.free { border: 0; background: transparent; box-shadow: none; font-size: clamp(14px, 3.7cqi, 38px); }
.customer-card-name {
  position: absolute;
  left: 12%;
  bottom: 2.7%;
  width: 76%;
  display: grid;
  gap: 0.5cqi;
  color: #111;
  text-align: center;
  line-height: 1.08;
}
.customer-card-name span { color: #5a5a5a; font-size: clamp(7px, 1.8cqi, 15px); font-weight: 800; text-transform: uppercase; }
.customer-card-name strong { font-size: clamp(12px, 3.5cqi, 29px); font-weight: 850; overflow-wrap: anywhere; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 28px; }
.text-link { color: var(--gold); font-weight: 850; }
.claim-footer { padding: 24px 0; color: rgba(255,255,255,.5); font-size: 0.8rem; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .claim-layout, .claim-success { grid-template-columns: 1fr; }
  .claim-intro h1, .success-copy h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .claim-form-panel, .customer-bingo-card { width: min(100%, 560px); margin-inline: auto; }
}

@media (max-width: 520px) {
  .claim-header, .claim-main, .claim-footer { width: min(100% - 24px, 460px); }
  .claim-header { min-height: 66px; }
  .claim-status { max-width: 12ch; text-align: right; }
  .claim-main { padding-top: 34px; }
  .claim-form-panel { padding: 24px 16px; }
  .success-actions { align-items: stretch; flex-direction: column; }
  .success-actions .primary-button { width: 100%; }
}

@media print {
  body { background: #fff; }
  .claim-header, .success-copy, .claim-footer { display: none; }
  .claim-main { width: 100%; padding: 0; }
  .claim-success { display: block; }
  .customer-bingo-card { width: 160mm; margin: 10mm auto; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
