/* wins-spot.css -- the latest wins, shown big. On the home page (under the lines strip) and at
 * the top of /wins, the same markup on both.
 *
 * A DARK STAGE IN BOTH THEMES, ON PURPOSE. The screenshots are the DraftKings and pick'em apps'
 * own dark screens, and on a light page they sat in white margins like pasted receipts. The
 * stage is the frame they were made for. Its own tokens, so it reads the same under home.css
 * (fp- tokens) and style.css (site tokens) without borrowing either.
 *
 * WHAT MOVES, AND WHY ONLY THAT. One moment: as the stage scrolls in, the cards rise in turn,
 * each payout counts up to the figure in its screenshot, and a light passes once across the
 * gold. Nothing loops. Reduced motion gets the final numbers and no movement at all, and so
 * does a visitor without scripts, because the real figure is in the markup from the start.
 */

.ws {
  --ws-ground: #0a0a09;
  --ws-panel: #13120f;
  --ws-ink: #f1ece0;
  --ws-muted: #b9b2a3;
  --ws-faint: #857d6e;
  --ws-gold: #c9a961;
  --ws-gold-lit: #e6c97c;
  --ws-hit: #79d45c;
  --ws-gilt: linear-gradient(172deg, #fbe7ad 0%, #e6c97c 30%, #c9a961 58%, #8d6f36 100%);
  --ws-line: rgba(201, 169, 97, 0.3);
  --ws-line-soft: rgba(241, 236, 224, 0.09);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px);
  background: var(--ws-ground);
  color: var(--ws-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
/* The light. A cone from above the heading and a low warm floor, nothing that moves. */
.ws::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 46% at 50% -6%, rgba(230, 201, 124, 0.2), transparent 70%),
    radial-gradient(40% 30% at 82% 100%, rgba(201, 169, 97, 0.1), transparent 70%),
    radial-gradient(34% 26% at 8% 62%, rgba(121, 212, 92, 0.05), transparent 70%);
  pointer-events: none;
}
/* Gold flecks, drawn, not an image: four dot grids at odd pitches so they never line up. */
.ws::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at center, rgba(230, 201, 124, 0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at center, rgba(230, 201, 124, 0.32) 0 1px, transparent 1.6px),
    radial-gradient(circle at center, rgba(241, 236, 224, 0.22) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at center, rgba(201, 169, 97, 0.4) 0 1.2px, transparent 1.8px);
  background-size: 173px 149px, 211px 197px, 97px 131px, 263px 239px;
  background-position: 11px 23px, 89px 7px, 41px 61px, 140px 120px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}

.ws__wrap {
  width: 100%;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 24px;
}
.ws__head { text-align: center; max-width: 40rem; margin: 0 auto; }
.ws .ws__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 600 12px/1.3 "Inter", Arial, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ws-gold);
}
.ws__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ws-hit);
  box-shadow: 0 0 0 4px rgba(121, 212, 92, 0.16);
}
.ws .ws__title {
  margin: 14px 0 0;
  font: 700 clamp(2rem, 5.2vw, 3.6rem)/1.02 "Sora", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.035em;
  color: var(--ws-ink);
  text-wrap: balance;
}
.ws__title em {
  font-style: normal;
  background: var(--ws-gilt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ws .ws__lede { margin: 16px auto 0; color: var(--ws-muted); font-size: 1.02rem; line-height: 1.6; max-width: 34rem; }

/* ---- the three cards -------------------------------------------------------
   Not three equal columns. The outright first place leads; the four-way tie sits under it; the
   slip is tall by nature and gets the full height of the right-hand column, which at two equal
   columns comes out within a few pixels of the stack beside it. Every margin rule below is
   scoped under .ws because home.css zeroes margins on every p under .fp. */
.ws .ws__grid {
  list-style: none;
  margin: clamp(36px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .ws__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 24px;
  }
  /* The newest win heads the stage across both columns; the three under it keep their bento,
     the slip taking the right column's full height beside the other two. */
  .ws-card--headline { grid-column: 1 / -1; }
  .ws-card--slip { grid-column: 2; grid-row: 2 / span 2; }
}

.ws-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 22px;
  /* A gilt hairline that brightens toward the top-left, done as two backgrounds so the radius
     holds (border-image ignores it). */
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(241, 236, 224, 0.045), rgba(241, 236, 224, 0.01)) padding-box,
    linear-gradient(var(--ws-panel), var(--ws-panel)) padding-box,
    linear-gradient(150deg, rgba(240, 214, 147, 0.75), rgba(201, 169, 97, 0.16) 38%, rgba(201, 169, 97, 0.08) 70%, rgba(230, 201, 124, 0.4)) border-box;
  box-shadow: 0 40px 90px -46px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}
.ws-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 46px 100px -44px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(230, 201, 124, 0.22), 0 24px 70px -30px rgba(230, 201, 124, 0.4);
}

.ws-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 30px) 0;
}
/* The medal. Struck gold, the rank in the middle, the same on all three so the eye compares the
   words inside them. */
.ws-medal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 246, 214, 0.9), transparent 42%),
    var(--ws-gilt);
  box-shadow: inset 0 0 0 3px rgba(23, 19, 10, 0.35), inset 0 0 0 5px rgba(251, 231, 173, 0.45), 0 10px 26px -10px rgba(230, 201, 124, 0.7);
  color: #17130a;
  font: 800 15px/1 "Sora", Arial, sans-serif;
  letter-spacing: -0.03em;
}
.ws .ws-card__kind { margin: 0; font: 600 11px/1.3 "Inter", Arial, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ws-gold); }
.ws .ws-card__place { margin: 4px 0 0; font: 600 1.05rem/1.25 "Sora", Arial, sans-serif; color: var(--ws-ink); letter-spacing: -0.01em; }

/* The figure. Big, gilt, tabular so it does not jitter while it counts. */
.ws .ws-amt {
  position: relative;
  margin: clamp(14px, 2vw, 22px) clamp(20px, 2.6vw, 30px) 0;
  font: 800 clamp(3.4rem, 9vw, 5.6rem)/0.92 "Sora", Arial, sans-serif;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.ws .ws-card--slip .ws-amt,
.ws .ws-card--tie .ws-amt { font-size: clamp(3rem, 7vw, 4.4rem); }
.ws-amt__n {
  display: inline-block;
  background: var(--ws-gilt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 28px rgba(230, 201, 124, 0.28));
}
/* The light that passes once. A bright band clipped to the same glyphs, parked off to the left
   until the card is in view. */
.ws-amt__n::after {
  content: attr(data-shine);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 240, 0.95) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
/* is-lit lands when the count reaches the figure, so the light crosses the real number. */
.ws-card.is-lit .ws-amt__n::after { animation: ws-shine 1.4s 0.1s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
@keyframes ws-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.ws .ws-card__con {
  margin: 10px clamp(20px, 2.6vw, 30px) 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ws-muted);
}
.ws-card__con b { font-weight: 600; color: var(--ws-ink); }

/* The screenshot, matted. It is the evidence, so it gets the full width of the card and a frame
   that says "this is the app's own screen" rather than a drawing of ours. */
.ws .ws-shot {
  position: relative;
  margin: clamp(18px, 2.4vw, 26px) clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px);
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: inset 0 0 0 1px var(--ws-line-soft), 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.ws-shot img { display: block; width: 100%; height: auto; }
.ws-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(230, 201, 124, 0.14);
  pointer-events: none;
}
/* The slip is a tall phone screen. On a phone it would be a whole scroll on its own, so it is
   held to a readable column there; in the right-hand column it fills the height. */
.ws .ws-card--slip .ws-shot { align-self: center; width: min(100% - 24px, 380px); }
@media (min-width: 900px) {
  .ws .ws-card--slip .ws-shot { width: auto; align-self: stretch; }
}

.ws .ws__foot {
  margin: clamp(28px, 4vw, 44px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  text-align: center;
}
.ws .ws__honest { margin: 0; max-width: 40rem; color: var(--ws-muted); font-size: 0.9rem; line-height: 1.55; }
.ws__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ws-gilt);
  color: #17130a;
  font: 700 0.95rem/1 "Inter", Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 30px -14px rgba(230, 201, 124, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ws__link:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(230, 201, 124, 0.9); }
.ws__link svg { width: 16px; height: 16px; }
.ws :focus-visible { outline: 2px solid var(--ws-gold-lit); outline-offset: 3px; border-radius: 6px; }
.ws__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- the entrance ----------------------------------------------------------
   Only when the script is running and motion is allowed: wins-spot.js sets data-ws-motion on the
   section, so without it every card is simply there. */
.ws[data-ws-motion] .ws-card { opacity: 0; transform: translateY(28px) scale(0.985); }
.ws[data-ws-motion] .ws-card.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.45s ease;
}
.ws[data-ws-motion] .ws-card.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .ws-card, .ws__link { transition: none; }
  .ws-card:hover, .ws__link:hover { transform: none; }
  .ws-card.is-lit .ws-amt__n::after { animation: none; }
}

@media (max-width: 599px) {
  .ws__wrap { padding: 0 16px; }
  .ws-medal { width: 50px; height: 50px; font-size: 13px; }
}

/* Between 761px and 859px the chat tab sits on the right edge (chrome.css); keep the cards clear
   of it, the way home.css does for its own sections. */
@media (min-width: 761px) and (max-width: 859px) {
  .ws__wrap { padding-right: calc(var(--sf-rail-tab, 44px) + 4px); }
}

/* At two columns the tie card is stretched to meet the slip's height; the spare room goes above
   its screenshot, so the board sits on the card's floor in line with the slip's. */
@media (min-width: 900px) {
  .ws .ws-card--tie .ws-shot { margin-top: auto; }
}

/* On /wins the stage follows the page head, which has no bottom padding of its own. */
.story-head + .ws { margin-top: clamp(28px, 4vw, 48px); }

/* ==== THE WALL (/wins #wall), 2026-10-05 ==============================================
   Every screenshot in the Wins folder, on the same stage as the latest three. Finish cards
   first, ranked by place, as a bento on a six-column grid: the two firsts take half a row
   each, the next three a third, the last two half again. Then the receipts: the app's own
   contest lists, tall phone screens, in a row you can swipe on a phone. */
.ws--wall { padding-top: clamp(40px, 6vw, 88px); }
/* Two stages back to back read as one: the second one's light is a low glow, not a new cone. */
.ws + .ws--wall::before {
  background:
    radial-gradient(50% 30% at 15% 0%, rgba(230, 201, 124, 0.1), transparent 70%),
    radial-gradient(40% 30% at 90% 55%, rgba(201, 169, 97, 0.07), transparent 70%);
}
.ws + .ws--wall::after { opacity: 0.35; }
.ws .ws__head--left { text-align: left; margin: 0; max-width: 46rem; }
.ws .ws__head--left .ws__lede { margin-left: 0; }
.ws .ws__head--sub { margin-top: clamp(56px, 8vw, 104px); }
.ws .ws__title--sub { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }

.ws .ws__grid--wall { margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 600px) and (max-width: 899px) {
  .ws .ws__grid--wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ws .ws__grid--wall { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; }
  .ws-card--w3 { grid-column: span 3; }
  .ws-card--w2 { grid-column: span 2; }
}
.ws .ws__grid--wall .ws-amt { font-size: clamp(2.6rem, 5.4vw, 4rem); }
.ws .ws__grid--wall .ws-card--w2 .ws-amt { font-size: clamp(2.4rem, 3.6vw, 3.1rem); }
.ws .ws__grid--wall .ws-shot { margin-top: auto; }
.ws .ws__grid--wall .ws-card__con { margin-bottom: clamp(16px, 2vw, 22px); }
.ws .ws__grid--wall .ws-medal { width: 50px; height: 50px; font-size: 13px; }

/* ---- the receipts ----------------------------------------------------------- */
.ws .ws-receipts {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  align-items: start;
}
@media (min-width: 900px) {
  /* Three across, so the app's own text stays readable at its real size; a staggered shelf, so
     tall screens read as a spread of receipts rather than a table. */
  .ws .ws-receipts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
  .ws-receipt:nth-child(3n + 2) { margin-top: 40px; }
}
@media (max-width: 899px) {
  .ws .ws-receipts {
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 300px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 97, 0.5) transparent;
  }
  .ws-receipt { scroll-snap-align: start; }
}
.ws-receipts:focus-visible { outline: 2px solid var(--ws-gold-lit); outline-offset: 6px; }
.ws-receipt { margin: 0; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ws-receipt:hover { transform: translateY(-6px) rotate(-0.4deg); }
.ws .ws-receipt__shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(160deg, rgba(240, 214, 147, 0.5), rgba(201, 169, 97, 0.1) 40%, rgba(230, 201, 124, 0.32));
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.ws-receipt__shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ws-receipt__open { display: block; border-radius: 12px; cursor: zoom-in; }
.ws .ws-receipt__cap {
  margin: 14px 4px 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ws-muted);
}
.ws-receipt__cap b {
  display: block;
  font: 600 11px/1.3 "Inter", Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ws-gold);
  margin-bottom: 3px;
}

.ws .ws__foot--honest {
  margin-top: clamp(48px, 6vw, 72px);
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-left: 2px solid var(--ws-gold);
  padding-left: 20px;
  gap: 8px;
}
.ws .ws__foot--honest .ws__honest { color: var(--ws-ink); font-size: 1rem; max-width: 60ch; }
.ws .ws__foot--honest .ws__honest--small { color: var(--ws-muted); font-size: 0.86rem; }
.ws-after { padding-top: clamp(32px, 4vw, 48px); }

@media (prefers-reduced-motion: reduce) {
  .ws-receipt { transition: none; }
  .ws-receipt:hover { transform: none; }
}


/* ---- the headline card (2026-10-08) -----------------------------------------
   The newest win, across the top of the stage. On a wide screen it reads left to right: the
   finish and the payout, then the board it came from. On a phone it stacks like the others. */
.ws-card--headline {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(230, 201, 124, 0.12), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(241, 236, 224, 0.05), rgba(241, 236, 224, 0.01)) padding-box,
    linear-gradient(var(--ws-panel), var(--ws-panel)) padding-box,
    linear-gradient(135deg, rgba(251, 231, 173, 0.95), rgba(201, 169, 97, 0.25) 35%, rgba(201, 169, 97, 0.12) 65%, rgba(230, 201, 124, 0.6)) border-box;
  box-shadow: 0 46px 110px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 90px -40px rgba(230, 201, 124, 0.35);
}
.ws .ws-card--headline .ws-amt { font-size: clamp(3.8rem, 10vw, 7rem); }
.ws-flag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px 2px;
  border-radius: 999px;
  background: rgba(121, 212, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(121, 212, 92, 0.42);
  color: #a6ef8b;
  font: 700 10px/1.3 "Inter", Arial, sans-serif;
  letter-spacing: 0.16em;
  vertical-align: 1px;
}
@media (min-width: 900px) {
  .ws-card--headline {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
  }
  .ws-card--headline .ws-card__say { padding-bottom: clamp(20px, 2.6vw, 30px); }
  .ws .ws-card--headline .ws-shot { margin: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px) 0; }
}
