#results {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-feed) + 5);
  overflow-y: auto;
  padding: calc(var(--safe-top) + var(--sp-6)) var(--sp-5)
           calc(var(--safe-bottom) + var(--sp-6));
  background: transparent;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* While results is on screen, suppress the gameplay overlays + the feed
 * itself so the in-motion gradient stage shows cleanly behind the results
 * UI. The gradient stage is intentionally NOT hidden — results inherits
 * the same animated backdrop as the rest of the experience. */
body:has(#results:not([hidden])) #points-counter,
body:has(#results:not([hidden])) .event-countdown,
body:has(#results:not([hidden])) .solo-progress,
body:has(#results:not([hidden])) #feed,
body:has(#results:not([hidden])) #welcome {
  display: none !important;
}

.results__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  border-radius: var(--r-input);
  background: rgba(0, 181, 255, 0.10);
  border: 1px solid rgba(0, 181, 255, 0.35);
  text-align: center;
}

.results__checkin-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.results__checkin-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.6vw, 1.35rem);
  line-height: 1.15;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.results__checkin-btn {
  min-width: 60%;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: #1a1a22;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.45);
  transition: transform 160ms var(--ease-spring), filter 160ms ease-out;
}

.results__checkin-btn:not(.is-on):hover  { filter: brightness(1.05); }
.results__checkin-btn:not(.is-on):active { transform: scale(0.98); }
.results__checkin-btn.is-on { cursor: default; opacity: 0.85; filter: saturate(0.6); }

.results__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  margin: 0;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.results__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.results__total-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 4.5rem);
  line-height: 1;
  color: var(--c-cyan);
  letter-spacing: 0.01em;
  text-shadow: -3px 6px 0 rgba(0, 0, 0, 0.55);
}

.results__total-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--letterspace-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Sections ─────────────────────────────────────────────────────── */

.results__section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Staggered fade-in: hero first, then winnings (if present), then a
 * deliberate beat before Shop / Submit so the user has time to register
 * their points + check-in CTA before the rest of the page lands. */
.results__hero,
.results__section {
  opacity: 0;
  animation: results-section-in 600ms var(--ease-decel) forwards;
}

.results__hero               { animation-delay:  100ms; }
.results__section--winnings  { animation-delay:  700ms; }
.results__section--merch     { animation-delay: 2100ms; }
.results__section--ugc       { animation-delay: 2700ms; }

@keyframes results-section-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .results__hero,
  .results__section { animation: results-section-in 1ms linear forwards; }
}

.results__section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--c-orange-light);
  text-align: center;
  text-transform: uppercase;
}

/* ── Winnings ─────────────────────────────────────────────────────── */

.results__win-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: var(--sp-5);
  border: 1px solid rgba(0, 181, 255, 0.35);
  border-radius: var(--r-input);
  background: rgba(0, 181, 255, 0.10);
  color: var(--c-white);
  text-align: center;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms var(--ease-spring), box-shadow 160ms ease-out;
}

.results__win-tile:not(.is-claimed):hover  { transform: translateY(-1px); box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.45); }
.results__win-tile:not(.is-claimed):active { transform: scale(0.99); }

.results__win-tile.is-claimed {
  cursor: default;
  opacity: 0.92;
}

.results__win-code {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-white);
}

.results__win-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 3.75rem);
  line-height: 1;
  color: var(--c-white);
}

.results__win-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.results__win-instr {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  opacity: 0.82;
  margin-top: 4px;
}

/* ── Action tiles (Check In + Submit Video) ───────────────────────── */

.results__action-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border: 0;
  border-radius: var(--r-input);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--c-white);
  transition: transform 160ms var(--ease-spring), box-shadow 160ms ease-out, filter 160ms ease-out;
}
.results__action-tile:not(.is-on):hover  { transform: translateY(-1px); box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5); }
.results__action-tile:not(.is-on):active { transform: scale(0.99); }
.results__action-tile.is-on { cursor: default; filter: saturate(0.65) brightness(0.95); }

.results__action-tile--ugc {
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(231, 99, 214, 0.30), transparent 60%),
    linear-gradient(135deg, #5C3BAB 0%, #B840A9 100%);
  border: 1px solid rgba(231, 99, 214, 0.45);
}

.results__action-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.4vw, 1.35rem);
  line-height: 1.15;
  color: var(--c-white);
}

.results__action-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.results__action-cta {
  align-self: flex-start;
  margin-top: var(--sp-2);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: #1a1a22;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35);
}

/* ── Merch ────────────────────────────────────────────────────────── */

.results__merch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--sp-3);
}

.results__merch-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3);
  border-radius: var(--r-input);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.results__merch-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.results__merch-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-white);
  line-height: 1.25;
}

.results__merch-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-green-light);
}

.results__merch-cta {
  width: 100%;
  margin-top: auto;
  min-height: 0;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: #1a1a22;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35);
}

.results__merch-cta:hover  { filter: brightness(1.05); }
.results__merch-cta:active { transform: scale(0.98); }

.results__merch-cta.is-on {
  opacity: 0.85;
  filter: saturate(0.7);
}

/* ── Claim form sheet ─────────────────────────────────────────────── */

.claim-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  animation: claim-sheet-in 220ms var(--ease-decel);
}

@keyframes claim-sheet-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.claim-sheet__card {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: var(--sp-5);
  background: #fff;
  color: #1a1a22;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.65);
  animation: claim-card-in 260ms var(--ease-spring);
}

@keyframes claim-card-in {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.claim-sheet__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--letterspace-label);
  text-transform: uppercase;
  color: var(--c-orange-deep);
}

.claim-sheet__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  color: #1a1a22;
}

.claim-sheet__sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #4a4a55;
  line-height: 1.4;
  margin: 0;
}

.claim-sheet__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.claim-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.claim-sheet__field > span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c6c78;
}

.claim-sheet__field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d4d4dc;
  background: #f7f7fa;
  color: #1a1a22;
  outline: none;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.claim-sheet__field input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 181, 255, 0.2);
  background: #fff;
}

.claim-sheet__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.claim-sheet__row .btn {
  width: 100%;
  white-space: nowrap;
}

.claim-sheet__row .btn--ghost {
  align-self: center;
  width: auto;
  padding: 6px 14px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ── Check-in flow modal ──────────────────────────────────────────── */

.checkin-sheet__loc {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  margin-top: var(--sp-2);
  border-radius: 12px;
  background: #f4f6fb;
  border: 1px solid #e2e6ee;
}

.checkin-sheet__pin {
  font-size: 1.6rem;
  line-height: 1;
}

.checkin-sheet__loc-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkin-sheet__loc-status {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c6c78;
}

.checkin-sheet__loc-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a22;
  line-height: 1.25;
}

.checkin-sheet__tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f0f2f7;
  margin-top: var(--sp-2);
}

.checkin-sheet__tab {
  flex: 1;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: #6c6c78;
  cursor: pointer;
  transition: background 140ms ease-out, color 140ms ease-out;
}

.checkin-sheet__tab.is-active {
  background: #fff;
  color: #1a1a22;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
