/* ============================================================
   /giveaway — 2027 two-giveaway page
   Builds on css/styles.css tokens (--bg, --gold, --radius-lg …).
   ============================================================ */

.gw-section-head { max-width: 640px; margin: 0 auto 44px; }
.gw-section-head h2 { margin-top: 12px; }
.gw-section-head p { margin-top: 16px; color: var(--text-soft); font-size: 15px; line-height: 1.75; }

/* ── Hero ── */
.gw-hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 72px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.gw-hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg-2); }
.gw-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.gw-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Contrast: text sits on the darkest band (>= 0.78 black under the copy). */
  background:
    linear-gradient(180deg, rgba(9,9,9,0.7) 0%, rgba(9,9,9,0.6) 30%, rgba(9,9,9,0.82) 62%, var(--bg) 100%),
    radial-gradient(ellipse 90% 70% at 50% 70%, rgba(9,9,9,0.35), transparent 70%);
}
.gw-hero-inner { text-align: center; }
.gw-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  max-width: 980px;
  margin: 0 auto;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.gw-hero h1 em { color: var(--gold-light); }
.gw-facts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 36px auto 0;
  padding: 0;
  max-width: 820px;
  border: 1px solid rgba(168,192,216,0.22);
  border-radius: var(--radius-lg);
  background: rgba(9,9,9,0.55);
  backdrop-filter: blur(6px);
}
.gw-facts li {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
}
.gw-facts li + li { border-left: 1px solid rgba(168,192,216,0.16); }
.gw-fact-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.gw-fact-value { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--text); }
.gw-fact-sub { font-size: 12px; color: var(--text-soft); }
.gw-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.gw-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
html[data-giveaway-status="open"] .gw-status-dot { background: #7ccf95; }
.gw-hero-actions { margin-top: 26px; }

/* ── Selector ── */
.gw-choose { padding-bottom: 48px; }
.gw-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  border: 0;
}
.gw-choice { position: relative; display: block; cursor: pointer; }
.gw-choice input {
  /* Visually hidden but focusable and announced; the card is its label. */
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.gw-choice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 30px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.gw-choice:hover .gw-choice-card { border-color: var(--border-hover); transform: translateY(-2px); }
.gw-choice input:checked + .gw-choice-card {
  border: 2px solid var(--gold);
  padding: 29px 29px 31px;
  background: rgba(168,192,216,0.06);
}
.gw-choice input:focus-visible + .gw-choice-card { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.gw-choice-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gw-choice-label { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.gw-choice-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.gw-check-icon { width: 14px; height: 14px; display: none; }
.gw-state-on { display: none; }
.gw-choice input:checked + .gw-choice-card .gw-choice-state { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.gw-choice input:checked + .gw-choice-card .gw-check-icon,
.gw-choice input:checked + .gw-choice-card .gw-state-on { display: inline; }
.gw-choice input:checked + .gw-choice-card .gw-state-off { display: none; }
.gw-choice-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--text); }
.gw-choice-sum { font-size: 14.5px; line-height: 1.7; color: var(--text-soft); }
.gw-choice-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}
.gw-noscript { text-align: center; margin-top: 24px; color: var(--text-soft); }
.gw-noscript a { color: var(--gold); }

/* ── Panels ── */
.gw-panel { padding: 24px 0 96px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.gw-panel-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.gw-panel-head h2 { margin: 12px 0 16px; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.gw-panel-head h2 em { color: var(--gold-light); }
.gw-panel-head p { color: var(--text-soft); font-size: 15.5px; line-height: 1.8; }
.gw-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.gw-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.gw-detail h3 { font-size: 1.45rem; margin-bottom: 14px; }
.gw-detail ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.gw-detail li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}
.gw-detail li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--gold); }
.gw-detail li[hidden] { display: none; }
.gw-detail strong { color: var(--text); font-weight: 500; }
.gw-detail a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.gw-detail-note { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--text-soft); }
.gw-dates { display: grid; gap: 14px; margin: 0; }
.gw-dates dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.gw-dates dd { margin: 3px 0 0; font-size: 15px; color: var(--text); }
.gw-dates dd span { display: block; font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.gw-callout {
  max-width: 1000px;
  margin: 22px auto 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(168,192,216,0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}
.gw-callout strong { color: var(--text); font-weight: 500; }

/* ── Form ── */
.gw-form-area { max-width: 820px; margin: 48px auto 0; }
.gw-form-notice {
  margin-bottom: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(168,192,216,0.25);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-2);
}
.gw-form-notice[hidden] { display: none; }
.gw-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 40px 36px;
  position: relative;
}
.gw-form::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: var(--grad-gold); }
.gw-form-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.gw-form-intro { margin-top: 8px; font-size: 13px; color: var(--text-soft); }
.gw-form-body { border: 0; padding: 0; margin: 0; min-width: 0; }
.gw-form-body:disabled { opacity: 0.55; }
.gw-form-body:disabled * { cursor: not-allowed; }
.gw-group { margin-top: 30px; }
.gw-group-title {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.gw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.gw-field, .gw-radio-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gw-full, .gw-other { grid-column: 1 / -1; }
.gw-other[hidden] { display: none; }
.gw-form .form-label { color: var(--text-soft); line-height: 1.5; }
.gw-opt { margin-left: 6px; text-transform: none; letter-spacing: 0.02em; font-size: 11px; color: var(--text-soft); }
.gw-hint { font-size: 12.5px; line-height: 1.5; color: var(--text-soft); margin: -2px 0 2px; }
.gw-form .form-input, .gw-form .form-select, .gw-form .form-textarea { min-height: 48px; border-color: rgba(255,255,255,0.14); }
.gw-form [aria-invalid="true"].form-input,
.gw-form [aria-invalid="true"].form-select,
.gw-form [aria-invalid="true"].form-textarea { border-color: #e8a0a0; }
.gw-err { font-size: 12.5px; line-height: 1.5; color: #f0b4b4; margin: 0; }
.gw-err:empty { display: none; }
.gw-err::before { content: '⚠ '; }
.gw-radio-group { border: 0; padding: 0; margin: 0; }
.gw-radio-group legend { padding: 0; margin-bottom: 8px; }
.gw-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.gw-radio input, .gw-check input { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.gw-radio:has(input:checked) { border-color: var(--gold); background: rgba(168,192,216,0.08); }
.gw-radio-group[aria-invalid="true"] .gw-radio { border-color: #e8a0a0; }
.gw-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.gw-check:last-child { border-bottom: 0; }
.gw-check input { margin-top: 3px; }
.gw-check label { font-size: 14px; line-height: 1.65; color: var(--text-soft); cursor: pointer; }
.gw-check label strong { color: var(--text); font-weight: 500; }
.gw-check label a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.gw-check .gw-err { grid-column: 2; }
.gw-check input[aria-invalid="true"] { outline: 2px solid #e8a0a0; outline-offset: 2px; }
.gw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gw-submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.gw-free { font-size: 13px; color: var(--text-soft); }
.gw-form-msg { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: #f0b4b4; }
.gw-form-msg:empty { display: none; }
.gw-form[aria-busy="true"] [type="submit"] { opacity: 0.7; }
.gw-summary {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #e8a0a0;
  border-radius: var(--radius-lg);
  background: rgba(232,160,160,0.07);
}
.gw-summary:focus { outline: 2px solid #e8a0a0; outline-offset: 2px; }
.gw-summary-title { font-weight: 500; color: var(--text); font-size: 15px; margin-bottom: 10px; }
.gw-summary ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.gw-summary a { color: #f5c6c6; text-decoration: underline; text-underline-offset: 2px; font-size: 13.5px; line-height: 1.5; }
.gw-confirm {
  padding: 44px 40px;
  border: 1px solid rgba(168,192,216,0.35);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  text-align: center;
}
.gw-confirm:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.gw-confirm h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 14px; }
.gw-confirm p { color: var(--text-soft); font-size: 15px; line-height: 1.75; max-width: 520px; margin: 0 auto 8px; }
.gw-confirm strong { color: var(--text); font-weight: 500; }
.gw-confirm-ref span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold-light); letter-spacing: 0.06em; }

/* ── Process ── */
.gw-steps { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.gw-steps h3 { font-size: 1.25rem; margin-bottom: 6px; }

/* ── Previous giveaway ── */
.gw-past-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.giveaway-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(168,192,216,0.18);
  background: var(--bg-3);
  box-shadow: 0 30px 90px -30px rgba(0,0,0,0.7), 0 0 70px -25px rgba(168,192,216,0.22);
}
.giveaway-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.giveaway-corner { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--gold); opacity: 0.7; pointer-events: none; z-index: 2; }
.giveaway-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.giveaway-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.giveaway-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.giveaway-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.gw-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); }
.gw-play img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.72); transition: filter var(--transition); }
.gw-play:hover img { filter: brightness(0.85); }
.gw-play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(9,9,9,0.55); border: 1px solid rgba(200,218,234,0.6);
}
.gw-play-icon svg { width: 26px; height: 26px; margin-left: 4px; color: var(--gold-light); }
.gw-play-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px; font-size: 13px; text-align: left;
  background: linear-gradient(transparent, rgba(9,9,9,0.85));
}
.gw-play-len { color: var(--text-soft); }
.gw-past-copy h2 { margin: 12px 0 18px; font-size: clamp(2rem, 4vw, 3rem); }
.gw-past-copy h2 em { color: var(--gold-light); }
.gw-past-copy p { color: var(--text-soft); font-size: 15px; line-height: 1.8; }

/* ── Rules ── */
.gw-rules-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 42px;
  border: 1px solid rgba(168,192,216,0.25);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.gw-rules-card h2 { margin: 12px 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.gw-rules-card h2 em { color: var(--gold-light); }
.gw-rules-card > p { color: var(--text-soft); font-size: 15px; line-height: 1.8; }
.gw-rules-points { margin: 20px 0 26px; padding-left: 18px; display: grid; gap: 8px; color: var(--text-soft); font-size: 14px; line-height: 1.65; }

/* ── Winners ── */
.gw-winner-list { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 10px; font-size: 16px; color: var(--text-soft); }
.gw-winner-list strong { color: var(--gold); font-weight: 500; }

/* While a giveaway form field has focus on a phone, the fixed booking bar
   steps aside so it can never sit over a field or the submit button. */
@media (max-width: 768px) {
  body.gw-typing .mobile-sticky-cta { display: none; }
}

/* ── Phone bubble: "Choose Your Giveaway" + "Official Rules" ──
   Replaces the site-wide booking bar on this page (phones only; the base
   .mobile-sticky-cta is display:none above 768px). Hidden while the selector,
   an open entry panel or the hero's own buttons are on screen (js/giveaway.js). */
@media (max-width: 768px) {
  .mobile-sticky-cta.gw-bubble {
    justify-content: center; pointer-events: none;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }
  .gw-bubble-pill {
    pointer-events: auto; display: flex; align-items: stretch; max-width: 100%;
    padding: 5px; border-radius: 999px;
    background: rgba(9,9,9,0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(168,192,216,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
  .gw-bubble-pill a {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 0 16px; border-radius: 999px; white-space: nowrap;
    font: 500 10.5px/1 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  }
  .gw-bubble-choose { background: var(--grad-btn); color: #0a0a0a; gap: 8px; }
  .gw-bubble-pill a:only-child { padding: 0 26px; }
  .gw-bubble-rules { color: var(--text); }
  .gw-bubble-pill a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
  body.gw-bubble-off .mobile-sticky-cta.gw-bubble {
    opacity: 0; transform: translateY(24px); visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
}
@media (max-width: 360px) {
  .gw-bubble-pill a { padding: 0 10px; font-size: 10px; letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta.gw-bubble, body.gw-bubble-off .mobile-sticky-cta.gw-bubble { transition: none; transform: none; }
}

@media (max-width: 1024px) {
  .gw-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .gw-choices, .gw-details { grid-template-columns: 1fr; }
  .gw-past-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .gw-hero { min-height: auto; padding: calc(var(--nav-h) + 48px) 0 48px; }
  .gw-facts { flex-direction: column; }
  .gw-facts li { flex: none; padding: 14px 18px; }
  .gw-facts li + li { border-left: 0; border-top: 1px solid rgba(168,192,216,0.16); }
  .gw-hero-actions .btn { width: 100%; justify-content: center; }
  .gw-choice-card { padding: 22px 20px 24px; }
  .gw-choice input:checked + .gw-choice-card { padding: 21px 19px 23px; }
  .gw-grid { grid-template-columns: 1fr; }
  .gw-form { padding: 28px 20px 26px; }
  .gw-detail { padding: 22px 20px; }
  .gw-rules-card { padding: 30px 22px; }
  .gw-steps { grid-template-columns: 1fr; }
  .gw-submit-row .btn { width: 100%; justify-content: center; }
  .gw-confirm { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-choice:hover .gw-choice-card { transform: none; }
}

/* ── Official Rules terms (Oct 2026) ── */
.gw-opens { margin-top: 18px; font-size: 13.5px; color: var(--text-soft); }
.gw-detail-lede { font-size: 14px; line-height: 1.65; color: var(--text-soft); margin-bottom: 10px; }
.gw-detail-lede strong { color: var(--text); font-weight: 500; }
.gw-price { margin: 0; display: grid; gap: 0; }
.gw-price > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.gw-price dt { color: var(--text-soft); }
.gw-price dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gw-price .gw-price-total dt, .gw-price .gw-price-total dd { color: var(--text); font-weight: 600; }
.gw-price .gw-price-total { border-bottom-color: rgba(168,192,216,0.45); }
.gw-callout-strong { border-left-color: var(--gold-light); background: rgba(168,192,216,0.09); color: var(--text); }
.gw-sensitive { font-size: 12.5px; line-height: 1.6; color: var(--text-soft); margin: -6px 0 16px; padding: 10px 14px; border: 1px dashed rgba(255,255,255,0.18); border-radius: var(--radius); }
