/* TAIL LIGHTS — Greenlight, KD Nov 29.
 * The Scoop tab rebuilt around ready-made parlays. Not generic
 * cards: a printed betting slip. Dark slip body, perforated
 * tear-off top edge, dashed dividers, monospace leg lines, a
 * bold size header, green = go. Theme-aware: every color comes
 * from the app vars in styles.css (night + day). Short lines
 * only. Mobile-first. */

/* Full-width banner img, rounded, no distortion. The sizing belongs on
 * the img itself: without it the 1536px-wide banner renders at natural
 * size and overflows the phone screen (KD screenshot Nov 29). */
.tl-hero {
  display: block; width: 100%; margin-bottom: .9rem;
}
.tl-hero img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
}

/* Section headings inside the Tail Lights tab. */
.tl-section-head {
  margin: 1.4rem 0 .5rem; font-size: 1.1rem; font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase;
}
.tl-section-head:first-child { margin-top: 0; }

/* The slip itself: a printed ticket, not a card. */
.tl-slip {
  position: relative; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px;
  padding: .9rem 1rem 1rem; margin-bottom: .9rem;
  box-shadow: 0 2px 10px var(--shadow);
}
/* Perforated tear-off top edge: punched holes above a dash. */
.tl-slip::before {
  content: ""; display: block; height: 8px; margin: -.9rem -1rem .7rem;
  background-image: radial-gradient(circle 3px at 10px 4px, var(--bg) 3px, transparent 3.5px);
  background-size: 20px 8px; background-repeat: repeat-x;
  border-bottom: 1px dashed var(--border);
  border-radius: 12px 12px 0 0;
}

/* Slip head: bold size header, green = go. */
.tl-slip-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .5rem; padding-bottom: .55rem;
  border-bottom: 1px dashed var(--border);
}
.tl-slip-title {
  margin: 0; font-weight: 900; font-size: 1.35rem;
  letter-spacing: .06em; color: var(--green);
  text-transform: uppercase; line-height: 1.1;
}
.tl-slip-head .tl-slip-size {
  font-weight: 900; font-size: .85rem; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase; white-space: nowrap;
}

/* Leg lines: monospace, like print on a slip. */
.tl-legs { list-style: none; margin: .55rem 0; padding: 0; }
.tl-leg {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .45rem 0; font-size: 1rem;
  font-family: "Share Tech Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  border-bottom: 1px dashed var(--border);
}
.tl-leg:last-child { border-bottom: 0; }
.tl-leg .tl-leg-name { min-width: 0; overflow-wrap: anywhere; }
.tl-leg .tl-leg-line { white-space: nowrap; font-weight: 700; color: var(--green-dark); }

/* Payout row: big digital numerals, dashed off from the legs. */
.tl-payout {
  display: flex; justify-content: space-between; gap: .5rem;
  padding-top: .55rem; border-top: 1px dashed var(--border);
  font-size: 1.08rem;
}
.tl-payout .tl-payout-label {
  font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.tl-payout .tl-payout-value {
  font-family: "Share Tech Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700; color: var(--green-dark); white-space: nowrap;
}

/* Chance gauge: the interval band + point marker. */
.tl-chance { margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed var(--border); }
.tl-gauge { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.tl-gauge-track { fill: none; stroke: var(--border); stroke-width: 10; stroke-linecap: round; }
.tl-gauge-band { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; }
.tl-gauge-point { fill: var(--green-bright); stroke: var(--surface-2); stroke-width: 2; }
.tl-gauge-text { fill: var(--text); font-size: 15px; font-weight: 900; font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.tl-gauge-sub { fill: var(--muted); font-size: 10px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Chance explainer: plain words under the gauge, how to read the %. */
.tl-chance-explainer { margin-top: .5rem; font-size: .88rem; color: var(--muted); text-align: center; }

/* Copy button: a big word-labeled button, not a mystery icon. */
.tl-copy {
  display: block; width: 100%; margin-top: .7rem;
  padding: .75rem 1rem; border: none; border-radius: 999px;
  background: var(--green); color: var(--on-green);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; text-align: center;
}
.tl-copy:active { transform: scale(.98); }

/* Small print under a slip. */
.tl-note { color: var(--muted); font-size: .88rem; margin: .2rem 0 .9rem; }

/* Empty state: no slips yet. */
.tl-empty {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 1.1rem 1rem;
  color: var(--muted); text-align: center; margin-bottom: .9rem;
}

/* Settled-slip receipts: monospace rows, dashed separators. */
.tl-receipts { margin-bottom: .9rem; }
.tl-receipt-line {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .45rem 0; font-size: .95rem;
  font-family: "Share Tech Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  border-bottom: 1px dashed var(--border);
}
.tl-receipt-line:last-child { border-bottom: 0; }
.tl-receipt-line .tl-receipt-result { font-weight: 700; white-space: nowrap; }
.tl-receipt-line .tl-receipt-result.hit { color: var(--green-dark); }
.tl-receipt-line .tl-receipt-result.miss { color: var(--red); }
