/* TPGC Giveaway Hub — Design A "Club Pink" (2026-11-14).
   Theme tokens: Tilt Warp headings, Archivo Narrow body, #000 / #fff, pink #ff2dd3, lime #8beb00.
   Rule: pink is a FILL only (black text on it). Pink text only on black (contrast). */
#tpgc-gw {
  --gw-pink: #ff2dd3; --gw-lime: #8beb00; --gw-ink: #000; --gw-paper: #fff; --gw-muted: #444; --gw-line: #ddd;
  --gw-head: var(--typeHeaderPrimary, 'Tilt Warp'), var(--typeHeaderFallback, sans-serif);
  --gw-body: var(--typeBasePrimary, 'Archivo Narrow'), var(--typeBaseFallback, sans-serif);
  max-width: 720px; margin: 16px auto 48px; padding: 0 16px; display: flex; flex-direction: column; gap: 22px;
  font-family: var(--gw-body); font-size: 17px; line-height: 1.35; color: var(--gw-ink); text-align: left;
}
#tpgc-gw * { box-sizing: border-box; }
#tpgc-gw p { margin: 0; }
#tpgc-gw a { color: inherit; }

/* Type */
#tpgc-gw .gw-h1, #tpgc-gw .gw-h2, #tpgc-gw .gw-h3, #tpgc-gw .gw-h4 {
  font-family: var(--gw-head); font-weight: 400; text-transform: uppercase; letter-spacing: 0; margin: 0; color: inherit;
}
#tpgc-gw .gw-h1 { font-size: clamp(44px, 12vw, 64px); line-height: .9; }
#tpgc-gw .gw-h2 { font-size: 28px; line-height: .95; }
#tpgc-gw .gw-h3 { font-size: 30px; line-height: .95; }
#tpgc-gw .gw-h4 { font-size: 18px; line-height: 1; }
.gw-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gw-meta { font-size: 14px; color: var(--gw-muted); }
.gw-note { font-size: 14px; color: var(--gw-muted); }
.gw-small { font-size: 13px; color: var(--gw-muted); }
.gw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero (black card) */
.gw-hero { background: var(--gw-ink); color: #fff; border-radius: 22px; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.gw-strip { margin: 0 -16px !important; padding: 9px 16px; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #333; }
.gw-eyebrow { color: var(--gw-pink); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px !important; }
.gw-hero-desc { font-size: 18px; color: #e6e6e6; }
.gw-hero .gw-winner { color: var(--gw-lime); }
.gw-imgs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gw-imgs img { flex: 0 0 85%; max-width: 480px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; scroll-snap-align: start; background: #1d1d1d; }
.gw-imgs img:only-child { flex-basis: 100%; max-width: none; }
.gw-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gw-count-box { background: var(--gw-pink); color: #000; border-radius: 12px; padding: 10px 4px; text-align: center; }
.gw-count-box b { display: block; font-family: var(--gw-head); font-weight: 400; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.gw-count-box span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Cards */
.gw-card { border: 2px solid var(--gw-ink); border-radius: 22px; padding: 18px; background: var(--gw-paper); color: var(--gw-ink); display: flex; flex-direction: column; gap: 14px; }
.gw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gw-pill { background: var(--gw-lime); color: #151515; font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.gw-tally { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 2px solid var(--gw-ink); padding-top: 14px; }
.gw-big { display: block; font-family: var(--gw-head); font-weight: 400; font-size: 64px; line-height: .9; font-variant-numeric: tabular-nums; }
.gw-rate { background: var(--gw-ink); color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 14px; text-align: right; line-height: 1.25; }
.gw-rate em { font-style: normal; color: var(--gw-pink); font-weight: 700; }
.gw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gw-chip { border: 2px solid var(--gw-ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 15px; }
.gw-draft { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; background: #fff3cd; color: #6b3b00; padding: 2px 8px; border-radius: 4px; }

/* Buttons */
#tpgc-gw .gw-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 20px; margin: 0;
  font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; text-align: center; text-decoration: none;
  background: var(--gw-pink); color: #000; border: 2px solid var(--gw-pink); border-radius: 999px; cursor: pointer; }
#tpgc-gw .gw-btn:hover { filter: brightness(1.05); }
#tpgc-gw .gw-btn:disabled { opacity: .5; cursor: default; }
#tpgc-gw .gw-btn-alt { background: var(--gw-paper); color: var(--gw-ink); border-color: var(--gw-ink); }
.gw-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 15px; color: inherit; text-decoration: underline; cursor: pointer; }
.gw-entered { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 999px; background: var(--gw-lime); color: #151515; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-align: center; }

/* Sections */
.gw-section { display: flex; flex-direction: column; gap: 10px; }
.gw-me-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Bonus actions */
.gw-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gw-action { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border: 2px solid var(--gw-ink); border-radius: 16px; color: var(--gw-ink) !important; text-decoration: none; font-weight: 600; }
.gw-action svg { flex: none; }
.gw-action-label { flex: 1; }
.gw-action b { white-space: nowrap; }
.gw-action.is-done { background: var(--gw-lime); border-color: var(--gw-lime); color: #151515 !important; }
.gw-actions.is-compact { gap: 6px; }
.gw-actions.is-compact .gw-action { min-height: 44px; padding: 6px 10px; gap: 8px; font-size: 14px; border-radius: 12px; }
.gw-actions.is-compact svg { width: 18px; height: 18px; }

/* Referral (black card) */
.gw-ref { background: var(--gw-ink); color: #fff; border-radius: 22px; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.gw-ref p { color: #e6e6e6; }
.gw-ref .gw-label { color: var(--gw-pink); }
.gw-ref-row { display: flex; gap: 8px; }
#tpgc-gw .gw-ref-row input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 0; padding: 0 16px; font: inherit; font-size: 15px; background: #222; color: #fff; }
#tpgc-gw .gw-ref-row .gw-btn { width: auto; min-height: 48px; font-size: 15px; padding: 0 18px; }
.gw-progress { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #e6e6e6; }
.gw-bar { flex: 1; height: 10px; border-radius: 999px; background: #333; overflow: hidden; }
.gw-bar span { display: block; height: 100%; background: var(--gw-pink); }

/* Ledger */
.gw-ledger { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--gw-ink); border-radius: 16px; overflow: hidden; font-variant-numeric: tabular-nums; margin: 0; }
.gw-ledger td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--gw-line); vertical-align: top; text-align: left; }
.gw-ledger td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.gw-ledger tr:last-child td { border-bottom: 0; }
.gw-ledger .gw-total td { background: var(--gw-ink); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gw-ledger .gw-total td:last-child { color: var(--gw-pink); }
.gw-ledger.is-plain { border: 0; border-radius: 0; font-size: 14px; }
.gw-ledger.is-plain td { padding: 6px 0; }

/* More up for grabs */
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gw-mini { border: 2px solid var(--gw-ink); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--gw-paper); }
.gw-mini-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f1f1f1; }
.gw-mini-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
#tpgc-gw .gw-mini .gw-btn { min-height: 44px; font-size: 14px; padding: 0 10px; letter-spacing: .05em; }
#tpgc-gw .gw-mini .gw-entered { min-height: 44px; font-size: 13px; }
#tpgc-gw details { font-size: 14px; }
#tpgc-gw summary { cursor: pointer; text-decoration: underline; min-height: 32px; display: flex; align-items: center; }
#tpgc-gw details p { margin: 6px 0; }
.gw-winner { font-weight: 700; }

/* Forms (sign-up, code, claim) */
.gw-gate form { display: flex; flex-direction: column; gap: 6px; }
.gw-gate label { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
#tpgc-gw .gw-gate input:not([type=checkbox]), #tpgc-gw .gw-gate textarea {
  width: 100%; min-height: 50px; padding: 10px 18px; font: inherit; font-size: 16px; border: 2px solid var(--gw-ink); border-radius: 999px; background: #fff; color: #000; margin: 0; }
#tpgc-gw .gw-gate textarea { border-radius: 18px; min-height: 90px; }
#tpgc-gw .gw-gate .gw-btn { margin-top: 12px; }
.gw-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.35; margin-top: 10px !important; }
.gw-check input { margin-top: 2px; flex: none; width: 20px; height: 20px; accent-color: #000; }

/* Messages */
.gw-msg { font-size: 14px; padding: 10px 14px; border-radius: 14px; }
.gw-err { background: #fdecea; color: #8a1c13; }
.gw-ok { background: #e8f5e9; color: #1b5e20; }
.gw-dev { background: #fff7d6; padding: 6px 10px; border-radius: 8px; color: #6b5200; }
.gw-preview { background: #fff3cd; border: 2px dashed #b45309; color: #6b3b00; padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.gw-preview .gw-link { margin-left: 6px; min-height: 0; }
.gw-foot { line-height: 1.45; }

#tpgc-gw a:focus-visible, #tpgc-gw button:focus-visible, #tpgc-gw input:focus-visible, #tpgc-gw summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
