/* Bolão do Milhão — participant app. Light Helvetica headlines with a bold key word,
   hairline dividers, flat Mega-Sena balls, green pill actions, purple journey line. */
:root {
  --bg: #fcfdfb;
  --ink: #222220;
  --muted: #595956;
  --line: #d8d8d3;
  --purple: #4b286d;
  --purple-soft: #e9e1f2;
  --green: #007f4a;
  --green-ink: #ffffff;
  --mega: #209869;
  --lottery-blue: #0072c6;
  --mark: #fff1c2;
  --danger: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --ink: #f2f2ef;
    --muted: #a7a7a1;
    --line: #34342f;
    --purple: #b594dc;
    --purple-soft: #2c2236;
    --green: #2fb377;
    --green-ink: #0d1a12;
    --mega: #24a873;
    --lottery-blue: #4aa3e8;
    --mark: #4a3d12;
    --danger: #ff8a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-weight: 700; letter-spacing: -.3px; color: inherit; text-decoration: none; }
.brand span { font-weight: 300; }
.edition-tag { font-size: 13px; color: var(--lottery-blue); font-weight: 600; letter-spacing: .02em; }

/* Type */
h1 { margin: 0; font-weight: 300; font-size: clamp(46px, 12vw, 84px); line-height: 1.02; letter-spacing: -2px; }
h1.small { font-size: clamp(36px, 9.5vw, 60px); letter-spacing: -1.5px; }
h1 b, h2 b { font-weight: 600; }
h2 { margin: 48px 0 6px; font-size: clamp(28px, 7vw, 40px); font-weight: 300; letter-spacing: -1px; line-height: 1.1; }
.lede { margin: 18px 0 0; font-size: clamp(19px, 4.6vw, 24px); line-height: 1.35; letter-spacing: -.4px; color: var(--muted); max-width: 32ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.sub { margin: 0 0 24px; color: var(--muted); }
.hero { padding: 48px 0 40px; }

/* Balls */
.balls { display: flex; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.balls li, .ball {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mega); color: #fff;
  font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums;
}
.balls.sm { margin: 10px 0 0; gap: 6px; }
.balls.sm li { width: 36px; height: 36px; font-size: 16px; }
.balls li.miss { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { padding: 20px 0; min-width: 0; }
.figure + .figure { border-left: 1px solid var(--line); padding-left: 16px; }
.figure b { display: block; font-size: clamp(26px, 7vw, 40px); font-weight: 300; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.figure span { font-size: 13px; color: var(--muted); }

/* Journey */
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { position: relative; padding: 0 0 22px 36px; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 0 6px var(--purple-soft);
}
.journey li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: -4px; width: 2px; background: var(--purple);
}
.journey .step { font-weight: 600; }
.journey .when { color: var(--muted); font-size: 15px; }

/* Definition rows */
.details { margin: 0; border-top: 1px solid var(--line); }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Call to action block */
.cta { margin: 48px 0 0; padding: 28px 0; border-top: 2px solid var(--ink); }
.cta p { margin: 0 0 18px; font-size: clamp(20px, 5vw, 26px); letter-spacing: -.5px; line-height: 1.3; font-weight: 300; }
.cta p b { font-weight: 600; }

/* Buttons */
.pill, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; padding: 12px 22px; font: inherit; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0; min-height: 46px;
}
.pill { background: var(--green); color: var(--green-ink); }
.pill:disabled, .pill[aria-disabled="true"] { opacity: .45; cursor: default; }
.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ghost.danger { color: var(--danger); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill:focus-visible, .ghost:focus-visible, .linkish:focus-visible, input:focus-visible, .picker button:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 3px;
}

/* Forms */
.form { margin-top: 28px; max-width: 420px; }
.field { display: block; margin-bottom: 20px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; font-size: 20px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 10px 2px;
}
.field input:focus { border-bottom-color: var(--purple); outline: none; }
.error { color: var(--danger); font-size: 15px; min-height: 22px; margin: 0; }

/* Copy box */
.copybox { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; word-break: break-all; font-size: 15px; color: var(--muted); }

/* Section blocks inside the participant area */
.block { border-top: 2px solid var(--ink); margin-top: 44px; padding-top: 22px; }
.block h3 { margin: 0 0 4px; font-size: 24px; font-weight: 300; letter-spacing: -.5px; }
.block h3 b { font-weight: 600; }
.block .sub { margin-bottom: 18px; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 18px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { font-size: 44px; font-weight: 300; letter-spacing: -1px; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.total { margin-top: 10px; color: var(--muted); }
.total b { color: var(--ink); }

/* PIX */
.pix { display: grid; gap: 18px; }
.amount { font-size: clamp(40px, 11vw, 60px); font-weight: 300; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.amount mark { background: var(--mark); color: inherit; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.hint { margin: 0; color: var(--muted); }
.hint b { color: var(--ink); }
.qr { width: 220px; height: 220px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lottery-blue); animation: pulse 1.6s ease-in-out infinite; }
.status.paid::before { background: var(--mega); animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status::before { animation: none; } }

/* Rows: orders and quotas */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-head b { font-weight: 600; }
.row-head span { color: var(--muted); font-size: 15px; text-align: right; }

/* Number picker */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; margin-top: 16px; }
.picker button {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 16px; font-variant-numeric: tabular-nums;
}
.picker button[aria-pressed="true"] { background: var(--mega); color: #fff; box-shadow: none; }
.picker button:disabled { opacity: .35; cursor: default; }
.picker-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.counter { font-variant-numeric: tabular-nums; color: var(--muted); }
.counter b { color: var(--ink); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 9999px;
  font-size: 15px; max-width: calc(100% - 32px); text-align: center; z-index: 10;
}

footer { margin-top: 56px; padding: 20px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
