/* Components from the approved mockup B2, plus the states it does not draw
 * (fields, errors, dialogs, banners, tables) designed in its language — S3.2 / S3.4.
 */

/* ── text bits ────────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--color-brand); }
.eyebrow--calm { color: var(--color-calm); }
.eyebrow--signal { color: var(--color-signal); }
.lead { font-size: var(--fs-lead); color: var(--color-text-2); margin: 0 0 1.8rem; }
.display { font-family: var(--font-display); font-weight: 800; font-stretch: var(--stretch-display); letter-spacing: var(--track-display); }
/* highlight word with the yellow underline that draws itself (signature 4) */
.hl { position: relative; white-space: nowrap; color: var(--color-brand); z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .04em; height: .26em; border-radius: 6px; background: var(--color-sun); z-index: -1; transform-origin: left; animation: hl-draw .9s var(--ease) .4s both; }
.band-ink .hl { color: var(--color-on-ink); }
@keyframes hl-draw { from { transform: scaleX(0); } }

.pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 30px; padding: 0 .75rem; border-radius: var(--radius-pill); background: var(--color-surface); border: 1px solid var(--color-border); font: 500 .8rem/1.2 var(--font-body); color: var(--color-text-2); box-shadow: var(--shadow-1); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-calm-shape); flex: none; animation: dot-pulse 2s infinite; }
.dot--off { background: var(--color-signal-shape); animation: none; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-calm-shape) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
  min-height: 48px; padding: 0 1.3rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: transparent; color: var(--color-text);
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), opacity var(--dur-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn .icon:last-child { transition: transform var(--dur-base) var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { box-shadow: inset 0 1px 0 oklch(100% 0 0 / .25), 0 12px 24px -8px oklch(45% .2 268 / .7); }
.btn--ink { background: var(--color-text); color: #fff; }
.btn--ink:hover { background: oklch(28% .03 265); }
.btn--soft, .btn--ghost { background: var(--color-surface); border-color: var(--color-border-strong); color: var(--color-text); }
.btn--soft:hover, .btn--ghost:hover { border-color: var(--color-text); }
.btn--sun { background: var(--color-sun); color: var(--color-text); }
.btn--on-ink { background: oklch(100% 0 0 / .08); border-color: oklch(100% 0 0 / .18); color: var(--color-on-ink); }
.btn--on-ink:hover { border-color: var(--color-on-ink); }
.btn--danger { background: var(--color-error); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 .95rem; font-size: .875rem; }
.btn--block { width: 100%; }
.link { color: var(--color-brand); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; position: relative; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .icon { width: 1em; height: 1em; }

/* ── segmented control (mockup .seg) ──────────────────────────────────── */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 20px; background: var(--color-surface-2); position: relative; }
.seg__btn { position: relative; z-index: 1; min-height: 38px; padding: 0 .6rem; border: 0; background: none; border-radius: 16px; font: 600 .85rem/1.1 var(--font-body); color: var(--color-muted); cursor: pointer; text-decoration: none; display: grid; place-items: center; text-align: center; transition: color var(--dur-base), background var(--dur-base); }
.seg__btn:hover { color: var(--color-text); }
.seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"], .seg__btn[aria-current="page"] { color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-1); }

/* ── chips / filters ──────────────────────────────────────────────────── */
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .95rem; border-radius: var(--radius-pill); border: 1px solid var(--color-border-strong); background: var(--color-surface); font: 500 .85rem/1 var(--font-body); color: var(--color-text-2); text-decoration: none; cursor: pointer; transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.chip:hover { border-color: var(--color-text); color: var(--color-text); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.chip .shape-dot { width: 10px; height: 10px; }

/* ── geometric family marks (signature 3): circle loteries · square casino · triangle instants ── */
.shape { width: 76px; height: 76px; flex: none; transition: transform .6s var(--ease-spring); }
.shape--circle { border-radius: 50%; background: radial-gradient(circle at 30% 30%, oklch(93% .12 92), var(--color-sun)); }
.shape--square { border-radius: 16px; background: linear-gradient(135deg, oklch(62% .2 268), var(--color-brand-2)); transform: rotate(12deg); }
.shape--tri { background: linear-gradient(135deg, oklch(72% .17 45), var(--color-signal-shape)); clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
.shape--sm { width: 40px; height: 40px; }
.shape--sm.shape--square { border-radius: 10px; }
.shape-dot { display: inline-block; width: 12px; height: 12px; flex: none; }
.shape-dot--circle { border-radius: 50%; background: var(--color-sun); box-shadow: inset 0 0 0 1px oklch(19% .02 265 / .15); }
.shape-dot--square { border-radius: 3px; background: var(--color-brand); transform: rotate(12deg); }
.shape-dot--tri { background: var(--color-signal-shape); clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }

/* ── stats ────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .5rem; }
.stat { padding: .75rem 1rem; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); }
.stat b { display: block; font: 800 1.35rem/1.1 var(--font-display); font-stretch: 112%; letter-spacing: -.02em; }
.stat span { font-size: var(--fs-xs); color: var(--color-muted); }

/* ── play slip (mockup .slip) — signature 2: cell becomes a circle when picked ── */
.slip { width: 100%; max-width: 500px; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); border: 1px solid oklch(100% 0 0 / .6); padding: 10px; position: relative; }
.slip__body { padding: 18px 14px 12px; }
.slip__top { display: flex; justify-content: space-between; align-items: start; gap: .75rem; margin-bottom: 14px; }
.slip__top h2, .slip__top h3 { margin: .35rem 0 0; font: 800 1.45rem/1 var(--font-display); font-stretch: 115%; letter-spacing: -.03em; }
.pot { text-align: right; }
.pot b { display: block; font: 800 1.9rem/1 var(--font-display); font-stretch: 115%; letter-spacing: -.03em; color: var(--color-brand); }
.pot span { font-size: .75rem; color: var(--color-muted); }
.cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cells--digits { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cells--50 { grid-template-columns: repeat(10, 1fr); gap: 5px; }   /* 7/50: ten by five, not seven by seven plus one */
.cell { aspect-ratio: 1; border: 0; border-radius: var(--radius-sm); background: var(--color-surface-2); font: 600 clamp(.78rem, 1.1vw, .95rem)/1 var(--font-mono); color: var(--color-text-2); cursor: pointer; transition: background var(--dur-base) var(--ease), color var(--dur-base), border-radius .35s var(--ease-spring), transform .35s var(--ease-spring), box-shadow var(--dur-base); }
.cell:hover { background: var(--color-surface-3); }
.cell[aria-pressed="true"] { background: var(--color-brand); color: #fff; border-radius: 50%; transform: scale(.92); box-shadow: 0 6px 14px -6px oklch(45% .2 268 / .7); }
.cell:disabled { opacity: .35; cursor: not-allowed; }
.digit { display: grid; gap: 6px; }
.digit__label { font: 600 .7rem/1 var(--font-mono); color: var(--color-muted); text-align: center; }
.digit select { min-height: 56px; border: 0; border-radius: var(--radius-sm); background: var(--color-surface-2); font: 700 1.4rem/1 var(--font-mono); text-align: center; text-align-last: center; cursor: pointer; }
.summary { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border); display: grid; gap: 10px; }
.summary__row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .88rem; flex-wrap: wrap; }
.picks { display: flex; gap: 5px; min-height: 28px; flex-wrap: wrap; }
.picks span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand); color: #fff; font: 600 .75rem/1 var(--font-mono); animation: pop .35s var(--ease-spring); }
.picks i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--color-border-strong); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.limit-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--color-calm); background: var(--color-calm-soft); padding: .45rem .7rem; border-radius: var(--radius-pill); }
.limit-pill .icon { width: 1em; height: 1em; }
.limit-pill--over { color: var(--color-error); background: var(--color-error-soft); }
.slip__actions { display: flex; gap: .5rem; margin-top: 12px; }
.slip__actions .btn { flex: 1; }
.slip__status { min-height: 1.2em; font-size: .85rem; margin: .6rem .2rem 0; color: var(--color-calm); }
.slip__status.is-error { color: var(--color-error); }
.slip__guest { margin: .7rem .2rem 0; font-size: .85rem; color: var(--color-text-2); }
.slip__guest a { color: var(--color-brand); font-weight: 600; }
.closing { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--color-muted); margin: .3rem .2rem 0; }
.closing b { color: var(--color-signal); font-family: var(--font-mono); font-weight: 600; }
.closing .icon { width: 1em; height: 1em; }

/* ── countdown tiles ──────────────────────────────────────────────────── */
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.count div { background: var(--color-surface-2); border-radius: var(--radius-sm); padding: .6rem 0; text-align: center; }
.count b { display: block; font: 800 1.45rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -.02em; }
.count span { font-size: .7rem; color: var(--color-muted); }

/* ── cards ────────────────────────────────────────────────────────────── */
.card { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 22px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .35s var(--ease-spring), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base); }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--color-border-strong); }
.card h3 { margin: 0; font: 800 1.35rem/1.05 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--color-text-2); font-size: .95rem; }
.card__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.card__foot { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--color-border); font-size: .88rem; color: var(--color-muted); flex-wrap: wrap; }
.card__foot b { color: var(--color-text); }
.card__go { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--color-brand); }
.card__go .icon { width: 1em; height: 1em; transition: transform var(--dur-base) var(--ease); }
.card:hover .card__go .icon { transform: translateX(4px); }
.card__big { font: 800 2.6rem/1 var(--font-display); font-stretch: 120%; letter-spacing: -.04em; color: var(--color-brand); }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag { min-height: 26px; padding: 0 .6rem; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: var(--color-surface-2); font-size: .75rem; color: var(--color-text-2); }

/* "three families" cards on the dark band (mockup .way) */
.ways { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.way { border-radius: var(--radius-lg); padding: 26px; text-decoration: none; color: var(--color-on-ink); display: flex; flex-direction: column; gap: .6rem; min-height: 320px; background: oklch(100% 0 0 / .04); border: 1px solid oklch(100% 0 0 / .08); transition: transform .35s var(--ease-spring), background var(--dur-base), border-color var(--dur-base); }
.way:hover { transform: translateY(-4px); background: oklch(100% 0 0 / .07); border-color: oklch(100% 0 0 / .18); }
.way .shape { margin-bottom: auto; }
.way:hover .shape { transform: rotate(90deg) scale(1.05); }
.way:hover .shape--square { transform: rotate(102deg); }
.way h3 { margin: 0; font: 800 1.6rem/1 var(--font-display); font-stretch: 115%; letter-spacing: -.03em; }
.way p { margin: 0; font-size: .95rem; color: var(--color-on-ink-muted); }
.way .tag { background: oklch(100% 0 0 / .08); color: var(--color-on-ink); }
.way__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; margin-top: .6rem; }
.way__more .icon { width: 1em; height: 1em; transition: transform var(--dur-base) var(--ease); }
.way:hover .way__more .icon { transform: translateX(4px); }

/* RG tool rows (mockup .tool) */
.tools { display: grid; gap: 10px; }
.tool { display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: center; padding: 16px 18px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .3s var(--ease-spring), box-shadow var(--dur-base); }
a.tool:hover { transform: translateX(4px); box-shadow: var(--shadow-2); }
.tool__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--color-calm-soft); color: var(--color-calm); }
.tool__ic .icon { width: 22px; height: 22px; }
.tool h3 { margin: 0; font: 600 1.05rem/1.3 var(--font-body); }
.tool p { margin: .1rem 0 0; font-size: .88rem; color: var(--color-muted); }
.tool > .icon { width: 20px; height: 20px; color: var(--color-muted); }
.meter { height: 6px; border-radius: var(--radius-pill); background: var(--color-calm-soft); margin-top: .55rem; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--color-calm-shape); transform-origin: left; animation: meter-fill 1s var(--ease) both .2s; }
.meter--over i { background: var(--color-error); }
@keyframes meter-fill { from { transform: scaleX(0); } }

.helpline { display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .85rem 1.1rem; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); }
.helpline .icon { color: var(--color-calm); width: 1.2em; height: 1.2em; }
.helpline a { font: 600 1.05rem/1 var(--font-mono); color: var(--color-text); text-decoration: none; }
.helpline a:hover { color: var(--color-brand); }

/* ── results list + balls ─────────────────────────────────────────────── */
.list { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(200px, 260px) 1fr auto; gap: 1rem; align-items: center; padding: 18px 22px; transition: background var(--dur-base) var(--ease); }
.row + .row { border-top: 1px solid var(--color-border); }
.row:hover { background: var(--color-bg); }
.row__game { font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.row__game a { text-decoration: none; }
.row__game a:hover { color: var(--color-brand); }
.row__game small { display: block; color: var(--color-muted); font-weight: 400; font-size: .82rem; }
.row__prize { text-align: right; font-weight: 600; letter-spacing: -.01em; }
.row__prize small { display: block; font-weight: 400; color: var(--color-muted); font-size: .78rem; }
.balls { display: flex; gap: 6px; flex-wrap: wrap; }
.ball { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-2); font: 600 .88rem/1 var(--font-mono); }
.ball--bonus { background: var(--color-sun); }
.ball--hit { background: var(--color-brand); color: #fff; }
.ball--sm { width: 28px; height: 28px; font-size: .75rem; }
.list__empty { padding: 28px 22px; color: var(--color-muted); text-align: center; }

/* prize table */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); padding: 0 12px 12px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--color-border); }
.table td:last-child, .table th:last-child { text-align: right; }

/* ── fields (states the mockup does not draw) ─────────────────────────── */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font: 600 .88rem/1.3 var(--font-body); color: var(--color-text); }
.field__hint { font-size: var(--fs-xs); color: var(--color-muted); }
.field input:not([type="checkbox"]):not([type="radio"]):not(.visually-hidden), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text);
  font: 400 1rem/1.3 var(--font-body);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base);
}
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: oklch(19% .02 265 / .3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-brand); box-shadow: var(--focus-ring); outline: none; }
.field__error { margin: 0; color: var(--color-error); font-size: .85rem; display: flex; gap: .35rem; align-items: start; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); background: color-mix(in oklch, var(--color-error) 3%, var(--color-surface)); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-brand); cursor: pointer; }
.field--check .field__label { font-weight: 400; color: var(--color-text-2); cursor: pointer; }
.field--check .field__error { grid-column: 1 / -1; }
/* radio tiles: weekly limit at sign-up, periods, durations */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { font: 600 .88rem/1.3 var(--font-body); margin-bottom: 8px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-height: 50px; padding: 0 .5rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border-strong); background: var(--color-surface); font: 600 .95rem/1.1 var(--font-body); text-align: center; transition: all var(--dur-base) var(--ease); }
.choice input:hover + span { border-color: var(--color-text); }
.choice input:checked + span { background: var(--color-brand); border-color: var(--color-brand); color: #fff; border-radius: var(--radius-pill); }
.choice input:focus-visible + span { box-shadow: var(--focus-ring); }
.form__error { margin: 0; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--color-error-soft); color: var(--color-error); font-size: .9rem; }
.form__success, .notice { margin: 0; padding: 1rem 1.1rem; border-radius: var(--radius-md); background: var(--color-calm-soft); color: var(--color-text); font-size: .95rem; display: flex; gap: .75rem; align-items: start; }
.form__success .icon, .notice .icon { width: 1.3em; height: 1.3em; color: var(--color-calm); flex: none; margin-top: .1em; }
.notice--warn { background: color-mix(in oklch, var(--color-sun) 22%, transparent); }
.notice--warn .icon { color: oklch(48% .12 70); }
.notice--error { background: var(--color-error-soft); }
.notice--error .icon { color: var(--color-error); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 96px !important; }
.pass-toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; min-height: 38px; padding: 0 .8rem; border: 0; border-radius: var(--radius-pill); background: var(--color-surface-2); font: 600 .8rem/1 var(--font-body); cursor: pointer; }

/* form panel */
.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: clamp(20px, 3vw, 36px); }
.panel h2 { margin: 0 0 .4rem; font: 800 1.6rem/1.05 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; }
.panel > p { margin: 0 0 1.4rem; color: var(--color-text-2); }

/* ── overlays (modal, menu sheet, age gate, cookie banner) ────────────── */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: oklch(17% .02 265 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: min(100%, 520px); max-height: 90vh; overflow: auto; background: var(--color-surface); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-3); transform: translateY(14px) scale(.98); transition: transform var(--dur-slow) var(--ease-spring); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--color-surface-2); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-base); }
.overlay__close:hover { background: var(--color-surface-3); }
.overlay__close .icon { width: 20px; height: 20px; }
.overlay__title { margin: 0 0 .5rem; font: 800 1.7rem/1.05 var(--font-display); font-stretch: 115%; letter-spacing: -.03em; padding-right: 48px; }
.overlay__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.overlay--gate .overlay__panel { text-align: center; }
.overlay--gate .overlay__title { padding-right: 0; }
.overlay--gate .overlay__actions { justify-content: center; }
.gate-mark { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.2rem; }
.gate-mark .shape { width: 34px; height: 34px; }

/* game dialog */
.dlg-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; padding-right: 48px; }
.dlg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 1rem 0; }
.dlg-facts div { padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--color-surface-2); }
.dlg-facts b { display: block; font: 800 1.15rem/1.1 var(--font-display); font-stretch: 112%; }
.dlg-facts span { font-size: .75rem; color: var(--color-muted); }

/* mobile menu: sheet from the right */
.overlay--menu { place-items: stretch end; padding: 10px; }
.mobile-menu { width: min(100%, 380px); max-height: none; height: 100%; display: flex; flex-direction: column; gap: 1.2rem; padding-top: 70px; transform: translateX(24px); }
.mobile-menu__list { display: grid; gap: 4px; margin: 0; padding: 0; }
.mobile-menu__link { display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: 0 14px; border-radius: var(--radius-md); text-decoration: none; font: 800 1.3rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -.02em; transition: background var(--dur-base); }
.mobile-menu__link:hover, .mobile-menu__link[aria-current="page"] { background: var(--color-surface-2); }
.mobile-menu__link .shape-dot { width: 14px; height: 14px; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: .6rem; }
.mobile-menu .lang { justify-self: start; }

/* cookie banner: docked card, not a modal */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-overlay); width: min(460px, calc(100% - 32px)); padding: 20px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-3); }
.cookie h2 { margin: 0 0 .4rem; font: 800 1.15rem/1.1 var(--font-display); font-stretch: 112%; }
.cookie p { margin: 0; font-size: .9rem; color: var(--color-text-2); }
.cookie p a { color: var(--color-brand); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cookie__prefs { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.cookie__prefs label { display: flex; gap: .6rem; align-items: center; font-size: .9rem; min-height: 32px; }
.cookie__prefs input { width: 20px; height: 20px; accent-color: var(--color-brand); }

/* ── prose (legal, about) ─────────────────────────────────────────────── */
.prose { max-width: 72ch; color: var(--color-text-2); }
.prose h2 { font: 800 1.6rem/1.1 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; color: var(--color-text); margin: 2.4rem 0 .8rem; scroll-margin-top: 100px; }
.prose h3 { font: 600 1.1rem/1.3 var(--font-body); color: var(--color-text); margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--color-brand); transform: rotate(12deg); }
.prose ol { padding-left: 1.3rem; }
.prose a { color: var(--color-brand); }
.prose strong { color: var(--color-text); }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; padding: 18px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); }
.toc ol { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .6rem; align-items: center; min-height: 40px; padding: 0 .7rem; border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; color: var(--color-text-2); transition: background var(--dur-base), color var(--dur-base); }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 600 .72rem/1 var(--font-mono); color: var(--color-muted); }
.toc a:hover, .toc a.is-on { background: var(--color-surface-2); color: var(--color-text); }
.toc a.is-on::before { color: var(--color-brand); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: 14px 20px; border: 0; background: none; text-align: left; font: 600 1.02rem/1.35 var(--font-body); color: var(--color-text); cursor: pointer; }
.faq__q .icon { width: 20px; height: 20px; flex: none; transition: transform var(--dur-base) var(--ease); }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a > div > div { padding: 0 20px 20px; color: var(--color-text-2); }
.faq__a p { margin: 0 0 .7rem; }
.faq__a p:last-child { margin: 0; }
.faq__a a { color: var(--color-brand); }

/* icons */
.icon { width: 1em; height: 1em; flex: none; stroke-width: 1.75; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ways { grid-template-columns: 1fr 1fr; }
  .ways .way:first-child { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; padding: 16px; }
  .row .balls { grid-column: 1 / -1; order: 3; }
  .ball { width: 30px; height: 30px; font-size: .8rem; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ways { grid-template-columns: 1fr; }
  .way { min-height: 0; }
  .shape { width: 56px; height: 56px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: .6rem .7rem; }
  .stat b { font-size: 1.05rem; }
  .cells { gap: 4px; }
  .cell { border-radius: 9px; }
  .tool { grid-template-columns: 44px 1fr; }
  .tool > .icon { display: none; }
  .slip__actions .btn { padding: 0 .7rem; font-size: .82rem; }
  .cookie { left: 10px; right: 10px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .overlay__panel { padding: 22px 18px; }
}
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.field--check .field__label a { white-space: nowrap; color: var(--color-brand); }

@media (max-width: 560px) {
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--container-pad) * -1); padding: 2px var(--container-pad); }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 389px) {
  .slip__actions { flex-direction: column; }
  .ball { width: 28px; height: 28px; font-size: .72rem; }
  .balls { gap: 4px; }
  .picks { gap: 4px; }
  .picks span, .picks i { width: 24px; height: 24px; font-size: .68rem; }
  .cells--50 { gap: 3px; }
  .cells--50 .cell { font-size: .68rem; border-radius: 6px; }
}
.cell { padding: 0; min-width: 0; }
.card__top { flex-wrap: wrap; }

.slip__top { flex-wrap: wrap; }

/* standalone links shorter than 24px get their tap zone from a pseudo-element (WCAG 2.5.8) */
.helpline a, .helpline-band a.tel, .row__game a, .contact-list .link { position: relative; }
.helpline a::after, .helpline-band a.tel::after, .row__game a::after, .contact-list .link::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 28px; }
