/* Big 9 and Daily 5: builds on maltipset.css and stryktipset.css. Six outcome cells per match. */
.hero h1 .sport { font-size: 15px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.big9coupon { min-width: 960px; }
.big9coupon th:nth-child(2) { width: 230px; }
.big9coupon thead .sub th { font-size: 11px; font-weight: 500; color: var(--mute); padding: 3px 6px; }
.big9coupon thead th[colspan] { border-left: 1px solid var(--line); }
.big9coupon td { height: 62px; }
.big9coupon td:nth-child(n+3) { border-left: 1px solid var(--line); }
.big9coupon td.under { border-left: 1px dotted var(--line); }
.sign { position: relative; display: block; width: 100%; height: 62px; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.sign:hover { background: var(--bg); }
.sign.on { background: color-mix(in srgb, var(--pick) 42%, var(--card)); box-shadow: inset 5px 0 0 var(--pick); }
.sign.painted { background: color-mix(in srgb, var(--mark) 55%, var(--card)); box-shadow: inset 5px 0 0 var(--mark); }
.sign.painted .lab { opacity: 1; color: #4d534f; }
.sign:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* Streck, odds and edge stacked: label on the left, value on the right, in a block of fixed
   width centred in the cell, so the gap stays the same however wide the table gets. */
.sign .fields { display: flex; flex-direction: column; justify-content: center; gap: 1px; width: 92px; max-width: calc(100% - 12px); height: 100%; margin: 0 auto; padding: 0; }
.sign .field { display: grid; grid-template-columns: 30px 1fr; align-items: center; min-width: 0; }
.sign .field .lab { text-align: left; }
.sign .field .val { text-align: right; }
.sign .lab { font-size: 10px; }
.sign .val { font-size: 11.5px; }
.sign .e { display: inline-block; padding: 1px 4px; border-radius: 5px; font-weight: 800; font-size: 12px; }
.sign .e.badge { color: #14181a; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.sign .e.neutral { background: #dcd9d0; }
.sign.best { box-shadow: inset 0 0 0 2px #2fa45c; border-radius: 4px; }
.sign.on.best { box-shadow: inset 5px 0 0 var(--pick), inset 0 0 0 2px #2fa45c; }
.toplist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; }
.toplist li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.toplist li small { color: var(--mute); margin-left: 4px; }
.toplist .muted { color: var(--mute); }
.big9 code { background: var(--fog); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
@media (max-width: 760px) {
    .big9coupon { min-width: 0; --rowh: 40px; }
    .big9coupon td { height: var(--rowh); }
    .sign { height: var(--rowh); }
    .sign .fields { display: none; }
    .big9coupon thead .sub th .hint { display: none; }
    .big9coupon th:nth-child(2) { width: 62px; }
    .compact { flex-direction: column; gap: 1px; padding-left: 0; }
    .compact .e { font-size: 11.5px; font-weight: 800; padding: 1px 3px; border-radius: 5px; }
    .compact .o { font-size: 11px; font-weight: 600; }
    .compact .o.fallback { font-style: italic; font-weight: 500; }
}

#designCard .actions { margin: 10px 0; }
.orng { display: inline-flex; align-items: center; gap: 4px; }
.orng span { color: var(--mute); }
.orng input { width: 84px; height: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.orng input::-webkit-outer-spin-button, .orng input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#designCard .btn.wide { width: 100%; }
.atgstep { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--mute); }
.atgstep ol { margin: 6px 0 0 18px; padding: 0; }
.atgstep li { margin-bottom: 4px; }
.bmk { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; cursor: grab; }

.big9coupon th:first-child { width: 32px; }
.big9coupon td.num { padding-right: 8px; }
.nw { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nw .n { min-width: 12px; text-align: right; }
@media (max-width: 760px) {
    .big9coupon th:first-child { width: 18px; }
    .big9coupon td.num { padding: 0 2px 0 0; }
    .nw { gap: 1px; }
    .nw .n { font-size: 11px; font-weight: 600; color: var(--ink); min-width: 10px; }
}
#btn-link { margin-top: 8px; width: 100%; padding: 8px; text-align: center; }

/* Odds update: a cell whose value moved pulses green (value up) or red (value down) for 10 seconds. */
.sign.flash::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: 3px;
    animation: b9pulse 1s ease-in-out 10; }
.sign.flash-up::after { background: rgba(0, 168, 68, .5); }
.sign.flash-down::after { background: rgba(240, 84, 62, .5); }
@keyframes b9pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sign.flash::after { animation: none; opacity: .7; } }

/* Colour reduction (Big 9) */
.paint { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin: 10px 0 2px; }
.paint .tile { min-width: 38px; width: auto; padding: 0 6px; font-variant-numeric: tabular-nums; }
.paint .toolicons { margin-left: auto; }
/* Daily 5 has no colours: on a computer its icons sit at the top right, level with the heading. */
@media (min-width: 761px) {
    .couponcard .pad { position: relative; }
    .paint.iconsonly { position: absolute; top: 15px; right: 20px; margin: 0; }
    .pad:has(.paint.iconsonly) .listhead { padding-right: 116px; }
}
@media (max-width: 760px) {
    .paint { margin: 0; flex-wrap: nowrap; gap: 4px; }
    .paint .tile { min-width: 34px; padding: 0 4px; }
}
.paintnote { margin-bottom: 6px; }
.cabin { display: block; margin-top: 8px; text-align: center; text-decoration: none; }
.cabin.disabled { opacity: .4; cursor: default; }
.line .sub { font-weight: 400; color: var(--mute); font-size: 12px; }

/* A narrower card (a laptop, with the panel beside it): the labels in each cell go (the column
   header names them: S% · PN · V%) and the columns shrink, so all six outcomes fit. */
@media (min-width: 761px) {
    @container (max-width: 959px) {
        .big9coupon { min-width: 0; }
        .big9coupon th:first-child { width: 24px; }
        .big9coupon th:nth-child(2) { width: 170px; }
        .big9coupon thead .sub th { padding: 3px 2px; line-height: 1.25; }
        .big9coupon thead .sub th .hint { display: block; }
        .sign .fields { width: auto; max-width: none; padding: 0 4px; }
        .sign .field { grid-template-columns: 1fr; }
        .sign .field .lab { display: none; }
        .sign .field .val { text-align: center; }
    }
}
