/* ==========================================================================
   Falcon Gaming — Claim Game / Get OTP pages
   Focused single-column form flows on the warm cream canvas.
   Loads AFTER falcon.css. Only styles page-specific structures; buttons,
   inputs, cards, nav and footer come from falcon.css.
   NOTE: several selectors below (.product-content, .message-content,
   .code-result, .no-code-found, #steamCode, .copy-button, …) are targeted or
   re-generated verbatim by each page's inline <script>. Do not rename them.
   ========================================================================== */

/* ---------- page shell ---------- */
.claim { padding-block: clamp(40px, 7vw, 80px); }
.claim__inner { max-width: 760px; margin-inline: auto; }

.claim__head { text-align: center; margin-bottom: clamp(28px, 5vw, 44px); }
.claim__head h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; }
.claim__head .lead { color: var(--muted); margin: 14px auto 0; max-width: 52ch; }

/* stack rhythm between the major blocks of the column */
.claim__stack > * + * { margin-top: 24px; }

/* ---------- form card ---------- */
.claim-card { padding: clamp(24px, 4vw, 36px); }
.claim-card__head { margin-bottom: 22px; }
.claim-card__head h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.claim-card__head p { color: var(--muted); margin: 8px 0 0; font-size: .97rem; }

.claim-field { display: block; margin-bottom: 20px; }
.claim-field:last-of-type { margin-bottom: 24px; }
.claim-field > label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--body-strong); margin-bottom: 8px;
}
.claim-field .label-icon { font-size: 15px; }
.claim-field .example-text,
.claim-field .help-text { font-weight: 400; font-size: 12.5px; color: var(--muted-soft); }
.claim-field .input-help { margin-top: 7px; }
.claim-field .input-help small { color: var(--muted); font-size: 12.5px; }

/* big submit + secondary actions */
.claim__submit { width: 100%; margin-top: 4px; }
.claim__alts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;
}
.claim__alts .btn { width: 100%; }

/* button internals (referenced by the inline scripts) */
.button-icon { line-height: 1; }
.loading-spinner { display: inline-flex; align-items: center; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: claim-spin .7s linear infinite;
}
@keyframes claim-spin { to { transform: rotate(360deg); } }

/* ---------- info / tutorial card ---------- */
.claim-note { padding: clamp(22px, 3.5vw, 30px); }
.claim-note h3 { font-size: 1.25rem; margin-bottom: 6px; }
.claim-note__sub { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.claim-steps { display: grid; gap: 14px; }
.claim-steps .step {
  display: flex; align-items: flex-start; gap: 14px;
}
.claim-steps .step-number {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--on-primary);
  font-size: 13px; font-weight: 700;
}
.claim-steps .step-text { color: var(--body); font-size: .95rem; line-height: 1.5; padding-top: 3px; }
.tutorial-note, .important-note {
  margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(204,120,92,.08); border: 1px solid rgba(204,120,92,.22);
  color: var(--body-strong); font-size: .9rem; line-height: 1.55;
}

/* ---------- SteamUnlock promo ---------- */
.claim-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: clamp(22px, 3.5vw, 30px);
}
.claim-promo__copy .badge { margin-bottom: 12px; }
.claim-promo__copy h3 { font-size: 1.4rem; color: var(--on-dark); }
.claim-promo__copy p { color: var(--on-dark-soft); font-size: .95rem; margin: 6px 0 0; }
.claim-promo__card {
  display: flex; align-items: center; gap: 14px;
  background: var(--dark-elev); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 12px 16px 12px 12px; color: var(--on-dark);
  transition: transform .18s ease, border-color .18s ease;
}
.claim-promo__card:hover { transform: translateY(-3px); border-color: rgba(204,120,92,.5); color: var(--on-dark); }
.claim-promo__card img { width: 56px; height: 56px; border-radius: var(--r-md); object-fit: cover; flex: 0 0 auto; }
.claim-promo__card .game-title { font-size: 1.05rem; color: var(--on-dark); }
.claim-promo__card .game-type { font-size: 12.5px; color: var(--on-dark-soft); margin: 2px 0 4px; }
.claim-promo__card .game-price { font-size: 13px; font-weight: 700; color: var(--accent-amber); }

/* ---------- results (shared) ---------- */
#resultsContainer:empty { display: none; }
#resultsContainer { margin-top: 28px; }
#resultsContainer > * { margin-top: 20px; }
#resultsContainer > *:first-child { margin-top: 0; }

/* ---------- claim results ---------- */
.message-container {
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px 22px;
}
.message-content { color: var(--body-strong); font-size: .96rem; line-height: 1.65; }
.message-content a { color: var(--primary); font-weight: 600; }

.products-section { }
.section-header { text-align: center; margin-bottom: 20px; }
.section-header h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.section-header .important-notice {
  color: var(--muted); font-size: .92rem; margin: 8px 0 0;
}
.product-cards { display: grid; gap: 18px; }
.product-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
}
.product-header {
  background: var(--surface-soft); border-bottom: 1px solid var(--hairline);
  padding: 16px 22px;
}
.product-header h3 { font-size: 1.2rem; }
.product-content {
  padding: 20px 22px; color: var(--body); font-size: .95rem; line-height: 1.7;
  word-break: break-word;
}
.product-content a { color: var(--primary); font-weight: 600; }
.product-content .cred-val {
  background: var(--surface-soft); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 1px 8px; font-family: var(--font-mono); color: var(--ink);
}

/* empty / error state (claim + injected) */
.no-products, .no-code-found {
  text-align: center; background: var(--surface-card);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 44px) 24px;
}
.no-products-icon, .error-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.no-products h3, .no-code-found h3 { font-size: 1.35rem; margin-bottom: 8px; }
.no-products p, .no-code-found p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }

/* ---------- OTP results ---------- */
.code-result {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
}
.result-header {
  background: var(--dark); color: var(--on-dark);
  padding: 20px 24px; text-align: center;
}
.result-header h2 { color: var(--on-dark); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.code-details { padding: 24px; display: grid; gap: 16px; }
.detail-item {
  background: var(--surface-soft); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 16px 18px;
}
.detail-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.detail-value { font-size: 1.1rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.code-item { background: rgba(204,120,92,.08); border-color: rgba(204,120,92,.28); }
.code-container { display: flex; align-items: center; gap: 12px; }
.code-value {
  font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700;
  letter-spacing: .18em; color: var(--primary-active);
}
.copy-button {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--primary); color: var(--on-primary); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
  transition: background .16s ease, transform .12s ease;
}
.copy-button:hover { background: var(--primary-active); }
.copy-button:active { transform: translateY(1px); }
.code-instructions { padding: 0 24px 24px; }
.code-instructions h4 { font-size: 1rem; margin-bottom: 10px; }
.code-instructions ol { margin: 0; padding-left: 20px; color: var(--body); }
.code-instructions li { margin-bottom: 6px; font-size: .93rem; line-height: 1.5; }

.error-details, .error-message { margin: 12px auto 0; max-width: 42ch; color: var(--body); font-size: .93rem; }
.error-suggestions { margin: 18px auto 0; max-width: 42ch; text-align: left; }
.error-suggestions h4 { font-size: .95rem; margin-bottom: 8px; text-align: center; }
.error-suggestions ul { margin: 0; padding-left: 20px; color: var(--muted); }
.error-suggestions li { margin-bottom: 5px; font-size: .9rem; }

.timing-notice { margin-top: 18px; }
.timing-notice .notice-content {
  padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(204,120,92,.08); border: 1px solid rgba(204,120,92,.22);
  color: var(--body-strong); font-size: .9rem; text-align: center;
}

/* ---------- help / warranty card ---------- */
.help-section { margin-top: 24px; }
.warranty-notice .notice-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.warranty-notice .notice-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.warranty-notice p { color: var(--body); font-size: .93rem; line-height: 1.6; margin: 0 0 8px; }
.warranty-notice p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .claim__alts { grid-template-columns: 1fr; }
  .claim-promo { flex-direction: column; align-items: stretch; text-align: center; }
  .claim-promo__card { justify-content: center; }
  .code-value { font-size: 1.5rem; }
}
