/* Shared layout for every dated draw card; the approved matching-draw design. */
.draw-list-card,.draw-list-card *{box-sizing:border-box}
.draw-list-card{position:relative;isolation:isolate;container-type:inline-size;display:flex;flex-direction:column;gap:10px;padding:14px 8px;border:1px solid var(--line);border-radius:14px;background:var(--surface-subtle);color:var(--ink);min-height:44px;min-width:0}
@media(hover:hover) and (pointer:fine){.draw-list-card:hover{border-color:var(--accent-border);background:var(--accent-soft)}}
.prior-match-open{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:8px;min-height:28px;padding:0 6px}
.prior-match-open:after{content:"";position:absolute;inset:0;border-radius:14px;z-index:1}
.prior-match-open:focus-visible{outline:none}
.prior-match-open:focus-visible:after{outline:2px solid var(--accent);outline-offset:-3px}
.prior-match-arrow{display:block;width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.prior-match-heading{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;min-width:0}
.prior-match-heading time{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-weight:700;font-size:14px;line-height:1.5}
.prior-match-calendar{width:18px;height:18px;flex:0 0 18px;color:var(--muted);pointer-events:none}
.prior-match-count{font-size:11px;font-weight:600;line-height:1.5;color:var(--muted);background:var(--surface);border-radius:7px;padding:5px 8px}
.prior-match-numbers{position:relative;z-index:2;display:grid;grid-template-columns:repeat(var(--prior-number-count,6),minmax(0,1fr));gap:5px;align-items:center;pointer-events:none}
.prior-match-numbers strong{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;height:44px;color:var(--surface-number-ink);font-size:17px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}
.prior-match-numbers strong:before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(36px,calc(100% - 4px));aspect-ratio:1;background:var(--surface);border:1px solid var(--accent-border);border-radius:50%;pointer-events:none}
.prior-match-numbers .is-match:before{background:var(--accent-soft);border-color:var(--accent)}
.prior-match-numbers .is-miss{color:var(--surface-number-ink);font-weight:550}
.prior-match-numbers .is-miss:before{border:1px dashed var(--muted)}
.prior-match-value{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:44px;min-width:0;border-radius:9px}
.prior-match-value[data-bonoloto-pick]{pointer-events:auto}
@container(max-width:270px){.prior-match-numbers{gap:4px}.prior-match-numbers strong{font-size:14px}}
.prior-match-extras{display:flex;align-items:center;gap:10px;min-width:0;margin:0 6px;padding-top:9px;border-top:1px solid var(--line);pointer-events:none}
.prior-match-extra-label{font-size:11px;font-weight:600;color:var(--muted);margin-right:auto}
.prior-match-stars,.prior-match-key{display:inline-flex;align-items:center;gap:10px}
.prior-match-stars .stats-star{position:relative;width:36px;height:36px;font-size:11px;font-weight:750;flex-shrink:0}
.prior-match-stars .stats-star.is-miss:before,.prior-match-stars .stats-star.is-unknown:before{background:var(--line)}
.prior-match-stars .stats-star.is-miss,.prior-match-stars .stats-star.is-unknown{color:var(--surface-number-ink)!important}
.prior-match-stars .stats-star.is-miss:after{content:"";position:absolute;inset:-3px;border:1px dashed var(--muted);border-radius:50%;pointer-events:none}
.prior-key-value{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--accent);border-radius:50%;background:var(--accent-soft);color:var(--surface-number-ink);font-size:14px}
.prior-key-value.is-miss,.prior-key-value.is-unknown{border-color:var(--muted);background:var(--surface);color:var(--surface-number-ink)}
.prior-key-value.is-miss{border-style:dashed}
.prior-match-extra-score{min-width:30px;color:var(--muted);font-size:11px;font-weight:650;text-align:right;font-variant-numeric:tabular-nums}
.prior-extra-unknown{color:var(--muted)}
.draw-list-card.has-key{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 4px}
.draw-list-card.has-key .prior-match-open{grid-column:1/-1}
.draw-list-card.has-key .prior-match-numbers{gap:3px}
.draw-list-card.has-key .prior-match-extras{position:relative;z-index:2;align-self:center;gap:4px;margin:0 4px 0 0;padding:0;border:0}
.draw-list-card.has-key .prior-match-extra-label{margin:0}
.draw-list-card.has-key .prior-key-value{width:36px;height:36px;font-size:17px}
.history-list{display:grid;gap:10px;min-width:0}
.history-status{grid-column:1/-1;font-size:11px;line-height:1.5;color:var(--muted);padding:0 6px}
.draw-list-card>.match-signs,.draw-list-card>.ticket-numbers{margin:0 6px;min-width:0;max-width:100%}
.draw-list-card .shared-outcome{font-size:10px;line-height:1.1;text-align:center;overflow-wrap:anywhere}
@media(max-width:639px){.history-list{margin-left:-10px;margin-right:-10px}}
