/* Layout of the home page and the inner pages (record, how, markets, news). Loaded after motion.css.
   Colours are the site's own (motion.css): black, red #E4002B, blue #1F6BFF, white. Nothing here adds a colour of its own. */

/* Full width (his request 2026-11-10) — replaced on 2026-11-11 by a 1240px page with side space, see the end of glow.css. */
.wrap { max-width: 1760px; padding-inline: clamp(16px, 3vw, 48px); }
.hi { color: var(--fg); } .pos { color: var(--good); } .neg { color: var(--bad); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- header: logo on the right, menu on the left, the page's sections under it ---------- */
nav.hd { border-bottom: 1px solid var(--line); }
nav.hd .hd-top { position: relative; height: 88px; }
.hd .menu-btn { display: inline-flex; flex-direction: row; gap: 12px; width: auto; height: 46px; padding: 0 6px; color: var(--fg); font: inherit; font-size: 15px; }
.hd .mb-i { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hd .links { display: none; position: absolute; top: calc(100% - 8px); inset-inline-end: 16px; z-index: 31; width: min(300px, calc(100vw - 32px)); flex-direction: column; gap: 0; padding: 8px 0; background: var(--s2, #10131B); box-shadow: var(--edge), 0 24px 50px rgba(0,0,0,.6); clip-path: var(--cut); }
.hd .links.open { display: flex; }
.hd .links a { padding: 13px 20px; font-size: 16px; }
.hd .links a::after { display: none; }
.hd .links a + a { border-top: 1px solid var(--line); }
.hd .links a[aria-current] { color: #fff; box-shadow: inset -4px 0 0 var(--red); }
/* ---------- parts every section shares ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; background: none; clip-path: none; padding: 0; color: var(--fg); font-size: 14px; letter-spacing: .5px; }
.kicker::before { content: ""; width: 30px; height: 4px; background: var(--red); transform: skewX(-20deg); box-shadow: -5px 0 0 #07080C, -9px 0 0 var(--blue); }
main { counter-reset: sec; }
section { padding: 56px 0 4px; }
main > section > .sec-head .sec-no { counter-increment: sec; }
.sec-head { align-items: flex-end; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-tt { display: flex; align-items: baseline; gap: 14px; }
.sec-no { color: var(--red); font-weight: 900; font-size: 15px; direction: ltr; letter-spacing: 1px; }
.sec-no::before { content: counter(sec, decimal-leading-zero); }
h2 { font-size: 32px; }
h2::before { display: none; }
.sec-sub { margin: -8px 2px 18px; color: var(--soft, #C9D0DB); font-size: 15px; line-height: 1.8; max-width: 760px; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; clip-path: var(--lean); background: var(--row); color: var(--fg); font-weight: 900; font-size: 14px; white-space: nowrap; transition: background .2s; }
.more::after { content: "←"; color: var(--red); transition: transform .2s; }
.more:hover { background: rgba(var(--ink), .16); }
.more:hover::after { transform: translateX(-4px); }
.more.wide { display: flex; justify-content: center; min-height: 50px; margin-top: 12px; font-size: 15px; }
.cell { min-width: 0; }
.cell span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cell b { display: block; font-weight: 900; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.lg.why { font-size: 14px; padding: 8px 16px; line-height: 1.8; }
.tag-ph { display: inline-block; clip-path: var(--lean); background: rgba(var(--ink), .12); color: var(--soft, #C9D0DB); padding: 1px 12px; font-size: 12px; font-weight: 900; }

/* ---------- hero: the words on the right, the win / loss card on the left ---------- */
.hero { padding: 44px 0 26px; gap: 36px; grid-template-columns: 1.08fr .92fr; }
.hero h1 { margin-top: 12px; }
.money.wl, .money.wl.down { display: block; padding: 22px 24px 18px; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
.wl-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wl-h small { color: var(--muted); font-size: 13px; }
.money.wl .big { font-size: clamp(54px, 7vw, 84px); margin: 4px 0 0; }
.money.wl svg { height: 96px; margin-top: 4px; }
.wl-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid var(--line); }
.wl-row .cell { padding: 12px 10px 0; }
.wl-row .cell + .cell { border-inline-start: 1px solid var(--line); }
.wl-row .cell b { font-size: clamp(16px, 2.1vw, 22px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-bar { display: flex; height: 6px; margin-top: 14px; background: var(--red); transform: skewX(-20deg); overflow: hidden; }
.wl-bar i { display: block; width: 0; background: var(--blue); transition: width 1.2s cubic-bezier(.2,.7,.2,1) .4s; }

/* ---------- 01 today's ticket: who against who, the bet, the reason ---------- */
.fps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.fps.one { grid-template-columns: minmax(0, 1fr); } /* one ticket spans the full width, lined up with the other sections */
.fp { display: flex; flex-direction: column; background: var(--panel); box-shadow: inset 0 3px 0 var(--blue), var(--edge); clip-path: var(--cut); }
.fp.lost { box-shadow: inset 0 3px 0 var(--red), var(--edge); }
.fp-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 15px 18px 0; }
.fp-h .no { clip-path: var(--lean); background: var(--red); padding: 0 14px; font-weight: 900; font-size: 14px; }
.fp-h .sp { flex: 1; }
.fp .badge { font-size: 13px; }
.fp.won .badge { background: var(--blue); } .fp.lost .badge { background: var(--red); }
.fp-m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.fp-k + .fp-m { border-top: 1px solid var(--line); }
.fp-tm { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; font-weight: 900; font-size: 17px; line-height: 1.4; }
.fp-tm img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; }
.fp-vs { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.fp-vs b { color: var(--fg); font-size: 22px; font-weight: 900; direction: ltr; font-variant-numeric: tabular-nums; }
.fp-vs em { font-style: normal; color: var(--red); font-weight: 900; font-size: 13px; letter-spacing: 2px; }
.fp-k { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 0 18px 14px; padding: 10px 14px; background: var(--row); }
.fp-k .odd { clip-path: var(--lean); background: #fff; color: #07080C; padding: 2px 16px; font-weight: 900; font-size: 20px; direction: ltr; }
.fp-s { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); border-top: 1px solid var(--line); margin-top: auto; }
.fp-s .cell { padding: 12px 14px; }
.fp-s .cell + .cell { border-inline-start: 1px solid var(--line); }
.fp-w { padding: 13px 18px 16px; border-top: 1px solid var(--line); }
.fp-w span { color: var(--good); font-size: 12px; font-weight: 900; }
.fp-w p { margin: 3px 0 0; color: var(--fg); font-size: 15px; line-height: 1.8; }
.fp .tg-go { margin: 0 18px 16px; }
.fp-lock { align-items: center; gap: 10px; padding: 34px 18px; text-align: center; color: var(--soft, #C9D0DB); }
.fp-lock b { font-size: 20px; color: var(--fg); }
.empty { padding: 30px 20px; line-height: 1.9; }

/* ---------- 02 latest tickets: numbered rows ---------- */
.rows { background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
.rw { display: grid; grid-template-columns: 44px 54px minmax(0, 1.2fr) minmax(0, 1fr) auto 78px auto; align-items: center; gap: 12px; padding: 13px 18px; transition: background .2s; }
.rw + .rw { border-top: 1px solid var(--line); }
.rw:hover { background: var(--row); }
.rw .n { color: var(--red); font-weight: 900; font-size: 20px; direction: ltr; font-variant-numeric: tabular-nums; }
.rw .d { color: var(--muted); font-size: 13px; direction: ltr; text-align: right; }
.rw .m { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 900; font-size: 15px; }
.rw .m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw .m img { flex: none; width: 26px; height: 26px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.rw .m img + img { margin-inline-start: -14px; }
.rw .p { color: var(--soft, #C9D0DB); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw .o { clip-path: var(--lean); background: #fff; color: #07080C; padding: 0 10px; font-weight: 900; direction: ltr; }
.rw .pl { font-weight: 900; text-align: center; direction: ltr; }
.rw.won .pl { color: var(--good); } .rw.lost .pl { color: var(--bad); }
.rw.won .badge { background: var(--blue); } .rw.lost .badge { background: var(--red); }

/* ---------- 03 how to bet: one small article card per market ---------- */
.mks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mkc { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); transition: box-shadow .25s; }
@media (hover: hover) { .mkc:hover { box-shadow: inset 0 0 0 1px rgba(31,107,255,.8); } }
.mkc-h { display: flex; align-items: center; gap: 10px; }
.mkc-code { flex: none; min-width: 52px; text-align: center; clip-path: var(--lean); background: var(--red); padding: 2px 12px; font-weight: 900; font-size: 15px; direction: ltr; letter-spacing: .5px; }
.mkc-h b { font-weight: 900; font-size: 18px; line-height: 1.4; }
.mkc p { margin: 0; color: var(--soft, #C9D0DB); font-size: 14px; line-height: 1.8; }
.mkc-ex { margin-top: auto; padding: 9px 12px; background: var(--row); font-size: 13px; line-height: 1.8; color: var(--fg); }
.mkc-ex i { font-style: normal; display: block; color: var(--good); font-size: 12px; font-weight: 900; }
.mkc-ex .y { color: var(--good); font-weight: 900; } .mkc-ex .n { color: var(--bad); font-weight: 900; } .mkc-ex .v { color: var(--fg); font-weight: 900; }
.mkc em { font-style: normal; color: var(--fg); font-weight: 900; font-size: 14px; }
.mkc em::after { content: " ←"; color: var(--red); }
.bank { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: 12px; padding: 16px 20px; background: var(--panel); box-shadow: inset -4px 0 0 var(--blue), var(--edge); clip-path: var(--cut); }
.bank div { flex: 1 1 360px; }
.bank b { display: block; font-weight: 900; font-size: 18px; }
.bank span { color: var(--soft, #C9D0DB); font-size: 14px; line-height: 1.8; }

/* ---------- 04 the robot against the person: two sides, VS in its own column between them ---------- */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
.vs-c { padding: 24px 26px; min-width: 0; }
.vs-mid { position: relative; display: flex; align-items: center; justify-content: center; }
.vs-mid::before { content: ""; position: absolute; inset: 18px auto 18px 50%; width: 1px; background: var(--line); }
.vs-mid b { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 40px; clip-path: var(--lean); background: linear-gradient(100deg, var(--blue) 0 50%, var(--red) 50%); font-weight: 900; font-size: 16px; letter-spacing: 1px; }
.vs-h { display: flex; align-items: center; gap: 12px; }
.vs-h svg { flex: none; width: 46px; height: 46px; padding: 10px; color: var(--fg); background: var(--row); clip-path: var(--lean); }
.vs-h b { display: block; font-weight: 900; font-size: 20px; line-height: 1.4; }
.vs-h div > span { display: block; color: var(--muted); font-size: 13px; }
#vs-ai .vs-h svg { background: rgba(31,107,255,.3); } #vs-me .vs-h svg { background: rgba(228,0,43,.3); }
.vs-big { margin-top: 14px; font-weight: 900; font-size: clamp(46px, 7vw, 72px); line-height: 1.1; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.vs-cap { color: var(--muted); font-size: 13px; }
.vs-bar { height: 8px; margin: 12px 0 4px; background: var(--row); transform: skewX(-20deg); overflow: hidden; }
.vs-bar i { display: block; height: 100%; width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
#vs-ai .vs-bar i { background: var(--blue); } #vs-me .vs-bar i { background: var(--red); }
.vs-l { list-style: none; margin: 12px 0 0; padding: 0; }
.vs-l li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--soft, #C9D0DB); font-size: 14px; }
.vs-l li b { white-space: nowrap; color: var(--fg); font-weight: 900; direction: ltr; font-variant-numeric: tabular-nums; }
.vs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 12px; }
.vs-foot .note { margin: 0; flex: 1 1 380px; font-size: 13px; }
.vs-foot .cta { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-wait { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* ---------- 05 news: one large article, three smaller ones ---------- */
.nw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nwc { display: flex; flex-direction: column; min-width: 0; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); transition: box-shadow .25s; }
@media (hover: hover) { a.nwc:hover { box-shadow: inset 0 0 0 1px rgba(31,107,255,.8); } a.nwc:hover .nw-img img { transform: scale(1.04); } }
.nw-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--s2, #10131B); }
.nw-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nw-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 100% 0%, rgba(228,0,43,.45), transparent 60%), radial-gradient(120% 90% at 0% 100%, rgba(31,107,255,.45), transparent 60%), #10131B; }
.nw-ph img { width: 34%; height: auto; opacity: .55; object-fit: contain; }
.nw-tx { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.nw-tx time { color: var(--good); font-size: 12px; font-weight: 900; direction: ltr; text-align: right; }
.nw-tx b { font-weight: 900; font-size: 18px; line-height: 1.6; }
.nw-tx p { margin: 0; color: var(--soft, #C9D0DB); font-size: 14px; line-height: 1.85; flex: 1; }
.nw-tx em { font-style: normal; color: var(--fg); font-weight: 900; font-size: 14px; margin-top: 4px; }
.nw-tx em::after { content: " ←"; color: var(--red); }
.nwc.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; box-shadow: inset 0 3px 0 var(--red), var(--edge); }
.nwc.big .nw-img { aspect-ratio: auto; min-height: 300px; }
.nwc.big .nw-tx { justify-content: center; padding: 28px 30px; }
.nwc.big .nw-tx b { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.45; }
.nwc.big .nw-tx p { flex: 0; font-size: 16px; }
.nwc.ph .nw-tx b { color: var(--soft, #C9D0DB); }
.news-all { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.art { max-width: 760px; margin: 0 auto; padding: 30px 0 10px; }
.art h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.35; margin: 12px 0 10px; }
.art .lead { margin-bottom: 18px; }
.art .nw-img { aspect-ratio: 16 / 9; margin: 0 0 22px; clip-path: var(--cut); }
.art-body p { color: var(--fg); font-size: 17px; line-height: 2; margin: 0 0 18px; }
.art time { color: var(--good); font-weight: 900; font-size: 14px; }

/* ---------- 06 offers ---------- */
.of { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ofc { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
.ofc-logo { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 4px; background: var(--row); }
.ofc-logo img { max-height: 44px; max-width: 70%; object-fit: contain; }
.ofc-logo svg { width: 34px; height: 34px; color: var(--muted); }
.ofc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ofc b { font-weight: 900; font-size: 19px; }
.ofc p { margin: 0; color: var(--soft, #C9D0DB); font-size: 14px; line-height: 1.85; flex: 1; }
.ofc .btn { justify-content: center; margin-top: 8px; min-height: 48px; }
.ofc .btn:disabled { opacity: .5; cursor: default; filter: grayscale(1); }
.ofc.ph { box-shadow: inset 0 0 0 1px rgba(var(--ink), .14); }

/* ---------- 07 newsletter ---------- */
.nl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 34px; align-items: center; padding: 30px 32px; background: var(--panel); box-shadow: inset -4px 0 0 var(--red), var(--edge); clip-path: var(--cut); }
.nl h2 { font-size: 28px; line-height: 1.4; }
.nl > div > p { margin: 8px 0 0; color: var(--soft, #C9D0DB); font-size: 15px; line-height: 1.85; }
.nl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.nl-row input { min-width: 0; height: 52px; padding: 0 16px; border: 0; background: rgba(var(--ink), .08); box-shadow: inset 0 0 0 1px rgba(var(--ink), .14); color: var(--fg); font: inherit; font-size: 16px; direction: ltr; text-align: left; }
.nl-row input::placeholder { color: #7E8696; text-align: right; direction: rtl; }
.nl-row input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); }
.nl-row .btn { min-height: 52px; padding: 0 24px; justify-content: center; color: var(--fg); font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; }
.nl-row .btn:disabled { opacity: .6; cursor: default; }
.nl-ok { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: var(--soft, #C9D0DB); font-size: 13px; line-height: 1.8; cursor: pointer; }
.nl-ok input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.nl-ok a { color: var(--fg); text-decoration: underline; }
.nl-msg { min-height: 26px; margin: 10px 0 0; font-size: 14px; font-weight: 900; }
.nl-msg.ok { color: var(--good); } .nl-msg.err { color: var(--bad); }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }

/* ---------- inner pages ---------- */
.page-h { padding: 40px 0 8px; }
.page-h h1 { margin: 10px 0 8px; }
.page-h .lead { max-width: 760px; margin-bottom: 8px; }
.mk-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.mk-art { scroll-margin-top: 16px; padding: 24px 26px; margin-top: 16px; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
.mk-art h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0 0 10px; }
.mk-art h3 { font-size: 17px; font-weight: 900; margin: 18px 0 6px; color: var(--fg); }
.mk-art p, .mk-art li { color: var(--fg); font-size: 16px; line-height: 2; margin: 0 0 8px; }
.mk-art ul { padding-inline-start: 20px; margin: 0; }
.mk-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 15px; }
.mk-tbl th, .mk-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.mk-tbl th { color: var(--muted); font-size: 13px; font-weight: 700; }
.mk-tbl td:first-child { direction: ltr; text-align: right; font-weight: 900; white-space: nowrap; }
.mk-tbl .y { color: var(--good); font-weight: 900; } .mk-tbl .n { color: var(--bad); font-weight: 900; } .mk-tbl .v { color: var(--fg); font-weight: 900; }
.mk-art .note { font-size: 14px; }

@media (max-width: 960px) {
  .mks { grid-template-columns: repeat(2, 1fr); }
  .nw, .news-all, .of { grid-template-columns: repeat(2, 1fr); }
  .nw .nwc:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  nav.hd .hd-top { height: 76px; }
  .hd .links { inset-inline: 12px; width: auto; }
  .nwc.big { grid-template-columns: 1fr; }
  .nwc.big .nw-img { min-height: 0; aspect-ratio: 16 / 9; }
  .nwc.big .nw-tx { padding: 18px 18px 20px; }
  .nl { grid-template-columns: 1fr; padding: 24px 20px; }
}
@media (max-width: 760px) {
  .hero { padding: 22px 0 14px; gap: 22px; grid-template-columns: 1fr; }
  section { padding-top: 40px; }
  h2 { font-size: 25px; }
  .sec-head { margin-bottom: 16px; padding-bottom: 12px; }
  .sec-tt { gap: 10px; }
  .more { min-height: 40px; padding: 0 16px; font-size: 13px; }
  .money.wl, .money.wl.down { padding: 18px 16px 14px; }
  .money.wl .big { font-size: clamp(52px, 16vw, 72px); }
  .wl-row .cell { padding: 10px 6px 0; }
  .wl-row .cell b { font-size: 18px; }
  .fp-tm { font-size: 15px; } .fp-tm img { width: 52px; height: 52px; }
  .fp-h, .fp-m { padding-inline: 14px; } .fp-k { margin-inline: 14px; } .fp-w { padding-inline: 14px; } .fp .tg-go { margin-inline: 14px; }
  .rw { grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 4px 10px; padding: 12px 14px; }
  .rw .n { grid-row: 1 / 3; font-size: 18px; }
  .rw .d, .rw .badge { display: none; }
  .rw .m { grid-column: 2 / 5; grid-row: 1; } .rw .o { grid-column: 3; grid-row: 2; } .rw .pl { grid-column: 4; grid-row: 2; min-width: 52px; text-align: end; }
  .rw .p { grid-column: 2; grid-row: 2; font-size: 13px; }
  .mks { grid-template-columns: 1fr; gap: 10px; }
  .mkc { padding: 15px; }
  .vs { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); }
  .vs-c { padding: 16px 12px; }
  .vs-mid b { width: 44px; height: 34px; font-size: 13px; }
  .vs-h { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vs-h b { font-size: 17px; } .vs-h div > span { font-size: 12px; }
  .vs-big { font-size: clamp(38px, 12vw, 56px); }
  .vs-l li { font-size: 12.5px; gap: 6px; }
  .vs-l li span { white-space: nowrap; }
  .vs-foot .cta { display: grid; grid-template-columns: 1fr; width: 100%; }
  .vs-foot .cta .btn { justify-content: center; min-height: 50px; }
  .nw, .news-all, .of { grid-template-columns: 1fr; }
  .nw .nwc:not(.big) { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .nw .nwc:not(.big) .nw-img { aspect-ratio: auto; height: 100%; min-height: 110px; }
  .nw .nwc:not(.big) .nw-tx { padding: 12px 14px; gap: 3px; }
  .nw .nwc:not(.big) .nw-tx b { font-size: 15px; line-height: 1.55; }
  .nw .nwc:not(.big) .nw-tx p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .nl h2 { font-size: 23px; }
  .nl-row { grid-template-columns: 1fr; }
  .page-h { padding-top: 22px; }
  .mk-art { padding: 18px 16px; }
  .mk-art h2 { font-size: 22px; }
  .mk-art p, .mk-art li { font-size: 15px; }
}

/* ---------- lessons: 2 × 2 on the lessons page, 3 on a phone's home page, numbered pages ---------- */
.mks.two { grid-template-columns: repeat(2, 1fr); }
.mks .ld, .mks .empty { grid-column: 1 / -1; }
.lpager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.lpager .pg { min-width: 108px; }
.lpager-n { color: var(--muted); font-size: 14px; min-width: 112px; text-align: center; }
.lpager-n b { color: var(--fg); font-weight: 900; }
.art.mk-art { padding: 26px 28px; margin-top: 24px; }
.art.mk-art h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(26px, 4vw, 38px); }
.art.mk-art .mkc-code { font-size: .5em; padding: 4px 14px; }
@media (min-width: 761px) { .mks.home + .more.wide { display: none; } } /* desktop shows every lesson; the button is for phones */
@media (max-width: 760px) {
  .mks.two { grid-template-columns: 1fr; }
  .lpager { gap: 6px; }
  .lpager .pg { min-width: 0; flex: 1; }
  .lpager-n { min-width: 0; flex: 1.2; font-size: 13px; }
  .art.mk-art { padding: 18px 16px; }
}

/* ---------- article page extras ---------- */
.art-meta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.art-meta time { color: var(--good); font-weight: 900; direction: ltr; unicode-bidi: isolate; }
.rel-h { font-size: 22px; margin: 28px 0 14px; }
#related:empty { display: none; }

/* ---------- offers (from the panel) ---------- */
.ofc.feat { box-shadow: inset 0 3px 0 var(--red), var(--edge); }
.ofc-bm { color: var(--muted); font-size: 13px; font-weight: 900; }
.tag-ft { display: inline-block; clip-path: var(--lean); background: var(--red); padding: 1px 12px; font-size: 12px; font-weight: 900; }
.ofc-code { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 8px 12px; border: 1px dashed rgba(var(--ink), .35); background: rgba(var(--ink), .05); color: var(--fg); font: inherit; cursor: pointer; }
.ofc-code span { color: var(--muted); font-size: 12px; }
.ofc-code b { flex: 1; text-align: center; font-size: 17px; letter-spacing: 1px; }
.ofc-code i { font-style: normal; color: var(--good); font-size: 12px; font-weight: 900; }
.ofc-exp { color: var(--muted); font-size: 12px; }
.ofc-terms { font-size: 12px; color: var(--muted); }
.ofc-terms summary { cursor: pointer; padding: 4px 0; }
.ofc-terms p { font-size: 12px; line-height: 1.8; white-space: pre-line; }
.ofc-18 { color: var(--muted); font-size: 11px; text-align: center; }

/* ---------- Instagram videos ---------- */
.vds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vds .ld, .vds .empty { grid-column: 1 / -1; }
.vdc { display: flex; flex-direction: column; min-width: 0; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
@media (hover: hover) { a.vdc:hover { box-shadow: inset 0 0 0 1px rgba(228,0,43,.8); } a.vdc:hover .vd-play { transform: translate(-50%, -50%) scale(1.08); } }
.vd-img { position: relative; aspect-ratio: 9 / 14; overflow: hidden; background: var(--s2, #10131B); }
.vd-img > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vd-play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(var(--paper), .6); box-shadow: 0 0 0 2px rgba(var(--ink), .85); color: var(--fg); transform: translate(-50%, -50%); transition: transform .2s; }
.vd-play svg { width: 26px; height: 26px; margin-inline-start: 0; transform: translateX(2px); }
.vd-ig { position: absolute; top: 10px; inset-inline-start: 10px; clip-path: var(--lean); background: rgba(var(--paper), .7); padding: 1px 12px; font-size: 11px; font-weight: 900; }
.vd-tx { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.vd-tx b { font-weight: 900; font-size: 15px; line-height: 1.5; }
.vd-tx p { margin: 0; color: var(--soft, #C9D0DB); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-tx time { color: var(--muted); font-size: 12px; text-align: right; }
.vds-all { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 761px) { .vds + .more.wide { display: none; } }

/* ---------- challenge leaderboard ---------- */
.lb { background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); }
.lb-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 96px 72px 64px; align-items: center; gap: 10px; padding: 10px 18px; transition: background .2s; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row.head { color: var(--muted); font-size: 12px; padding-block: 9px; }
a.lb-row:hover { background: var(--row); }
.lb-n { font-weight: 900; font-size: 18px; text-align: center; }
.lb-row.top1 .lb-n { color: #FFD24A; } .lb-row.top2 .lb-n { color: var(--fg); } .lb-row.top3 .lb-n { color: #E2A36B; }
.lb-u { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-u b { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-p { font-weight: 900; text-align: left; }
.lb-c, .lb-r { text-align: center; font-size: 14px; }
.lb-c small { color: var(--muted); }
.lb-row.head span:nth-child(3) { text-align: left; } .lb-row.head span:nth-child(n + 4) { text-align: center; }
#board .chips { gap: 6px; }

@media (max-width: 960px) { .vds, .vds-all { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .vds { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .vd-play { width: 42px; height: 42px; } .vd-play svg { width: 20px; height: 20px; }
  .vd-tx { padding: 8px 9px 10px; } .vd-tx b { font-size: 12.5px; } .vd-tx p, .vd-tx time, .vd-ig, .vd-tx .tag-ph { display: none; }
  .vds-all { grid-template-columns: repeat(2, 1fr); }
  .vds-all .vd-tx p { display: -webkit-box; }
  .lb-row { grid-template-columns: 28px minmax(0, 1fr) 70px 46px 44px; gap: 6px; padding: 9px 10px; }
  .lb-u { gap: 7px; } .lb-u .av { width: 28px; height: 28px; } .lb-u b { font-size: 14px; }
  .lb-n { font-size: 16px; } .lb-p { font-size: 14px; } .lb-c, .lb-r { font-size: 12.5px; }
  #board .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 760px) {
  /* the small link in a heading is dropped when the section already ends with a full-width button */
  main > section:has(> .more.wide) > .sec-head > .more { display: none; }
  .sec-head > .more { padding: 0 14px; }
}

/* ---------- article sources, picture credit, lesson pictures on cards ---------- */
.art-fig { margin: 0 0 22px; }
.art-fig .nw-img { margin: 0; }
.art-fig figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.art-src { margin: 8px 0 18px; padding: 14px 16px; background: var(--row); }
.art-src b { font-weight: 900; font-size: 14px; }
.art-src ul { margin: 6px 0 0; padding-inline-start: 18px; }
.art-src a { color: var(--good); font-size: 14px; }
.mkc-img { aspect-ratio: 16 / 9; margin: -18px -18px 4px; overflow: hidden; background: var(--s2, #10131B); }
.mkc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkc-cat { color: var(--muted); font-size: 12px; font-weight: 900; }
/* ads: an empty place takes no room; only a real AdSense unit fills it (public/site.js) */
.ad-slot:empty { display: none; }
.ad-slot { margin: 22px 0; min-height: 90px; text-align: center; }
.ad-slot .ad-lbl { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.ad-preview .ad-slot { display: flex !important; align-items: center; justify-content: center; min-height: 110px; outline: 2px dashed var(--blue); color: var(--good); font-weight: 900; }
/* homepage counts set in the panel: items past the computer / phone count are hidden */
@media (min-width: 761px) { .d-hide { display: none !important; } }
@media (max-width: 760px) { .m-hide { display: none !important; } }
.sec-off-d { } .sec-off-m { }
@media (min-width: 761px) { .sec-off-d { display: none !important; } }
@media (max-width: 760px) { .sec-off-m { display: none !important; } }

/* ---------- lesson navigation + six-a-page list (2026-11-10) ---------- */
nav .wrap { padding-inline: clamp(12px, 3vw, 48px); }
.mks.three { grid-template-columns: repeat(3, 1fr); }
#cats { margin-bottom: 14px; }
.lnav-cats .chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.lnav-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.lnav-step { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut); transition: box-shadow .25s; }
.lnav-step span { color: var(--muted); font-size: 13px; font-weight: 900; }
.lnav-step b { font-weight: 900; font-size: 16px; line-height: 1.5; display: flex; gap: 8px; align-items: center; }
.lnav-step.next { text-align: left; align-items: flex-end; }
.lnav-step.off { background: none; box-shadow: none; }
@media (hover: hover) { .lnav-step:not(.off):hover { box-shadow: inset 0 0 0 1px rgba(31,107,255,.8); } }
.lnav-pos { text-align: center; font-size: 14px; margin: 12px 0 0; }
.lnav-pos b { color: var(--fg); }
.lnav-more { grid-template-columns: repeat(2, 1fr); }
#lnav:empty { display: none; }
@media (max-width: 960px) { .mks.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .mks.three, .lnav-more { grid-template-columns: 1fr; }
  .lnav-step { padding: 12px; } .lnav-step b { font-size: 14px; }
}

/* ---- «ورقة اليوم» with several matches (acca): compact animated rows, odds multiply into the total ---- */
.fp.acca { position: relative; overflow: hidden; }
.fp.acca::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, #fff 45%, var(--red) 55%, transparent); transform: translateX(-100%); animation: acSweep 3.6s ease-in-out 1s infinite; pointer-events: none; }
.fp.acca::after { content: ""; position: absolute; width: 340px; height: 340px; inset-inline-end: -150px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(228,0,43,.22), transparent 65%); animation: acGlow 6s ease-in-out infinite alternate; pointer-events: none; }
.ac-n { color: var(--muted); font-size: 13px; font-weight: 700; }
.ac-cd { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; background: rgba(31,107,255,.14); color: var(--fg); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ac-cd i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(31,107,255,.7); animation: acPing 1.6s infinite; }
.ac-cd.on { background: rgba(228,0,43,.16); } .ac-cd.on i { background: var(--red); box-shadow: 0 0 0 0 rgba(228,0,43,.7); }
.ac-cd .ltr { font-variant-numeric: tabular-nums; }
.ac-legs { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 4px; }
.ac-leg { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; background: var(--row); border-radius: 16px; animation: acIn .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 130ms + 200ms); transition: transform .25s, background .25s; }
.ac-leg:hover { transform: translateX(-4px); background: rgba(var(--ink), .1); }
.ac-leg::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--blue); }
.ac-leg.won::before { background: var(--good); } .ac-leg.lost::before { background: var(--red); } .ac-leg.void::before { background: var(--muted); }
.ac-cr { display: flex; align-items: center; }
.ac-cr img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: acBob 4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); transition: margin .3s; }
.ac-cr img + img { margin-inline-start: -12px; animation-delay: calc(var(--i) * -1.3s - 2s); }
.ac-leg:hover .ac-cr img + img { margin-inline-start: 4px; }
.ac-mid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ac-mid > b { font-size: 16px; font-weight: 900; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-mid > b i { font-style: normal; color: var(--red); margin: 0 4px; }
.ac-meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 700; font-size: 14px; color: var(--fg); min-width: 0; }
.ac-pick em { font-style: normal; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 6px; background: rgba(228,0,43,.85); white-space: nowrap; }
.ac-leg .odd { clip-path: var(--lean); background: #fff; color: #07080C; padding: 3px 14px; font-weight: 900; font-size: 18px; direction: ltr; }
.ac-leg { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ac-leg:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ac-tap { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(228,0,43,.16); color: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; transition: background .25s; animation: acNudge 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .3s + 1.2s); }
.ac-tap i { width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.ac-leg.open .ac-tap { background: rgba(var(--ink), .08); animation: none; }
.ac-leg.open .ac-tap i { transform: translateY(2px) rotate(-135deg); }
.ac-bet { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.ac-bet > div { min-height: 0; overflow: hidden; }
.ac-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(var(--ink), .14); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .35s; }
.ac-leg.open .ac-bet { grid-template-rows: 1fr; }
.ac-leg.open .ac-in { opacity: 1; transform: none; transition-delay: .08s; }
.ac-leg.open .odd { animation: acPop .45s cubic-bezier(.3,1.6,.5,1) .12s both; }
@keyframes acNudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(-4px); } 90% { transform: translateX(2px); } }
.ac-leg.won .odd { background: var(--blue); color: #fff; } .ac-leg.lost .odd { opacity: .55; text-decoration: line-through; }
.ac-tot { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ch ch" "big st"; align-items: end; gap: 6px 14px; margin: 10px 18px 16px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, rgba(228,0,43,.16), rgba(31,107,255,.12)); border: 1px solid rgba(var(--ink), .08); }
.ac-ch { grid-area: ch; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
.ac-ch span { animation: acIn .45s both; animation-delay: calc(var(--i) * 160ms + 900ms); }
.ac-ch i { font-style: normal; color: var(--red); font-weight: 900; }
.ac-big { grid-area: big; display: flex; flex-direction: column; }
.ac-big span, .ac-st span { color: var(--muted); font-size: 12px; font-weight: 700; }
.ac-big b { align-self: flex-start; font-size: 40px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgba(228,0,43,.55); }
.ac-st { grid-area: st; display: flex; flex-direction: column; align-items: flex-end; } .ac-st b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.ac-pick > span { white-space: nowrap; }
@keyframes acIn { from { opacity: 0; transform: translateX(-26px); } }
@keyframes acPop { from { opacity: 0; transform: scale(.4); } }
@keyframes acBob { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
@keyframes acSweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes acGlow { from { opacity: .5; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }
@keyframes acPing { 70% { box-shadow: 0 0 0 9px rgba(31,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(31,107,255,0); } }
@media (max-width: 560px) {
  .ac-legs { padding-inline: 12px; } .ac-tot { margin-inline: 12px; }
  .ac-leg { gap: 10px; padding: 9px 10px 9px 12px; }
  .ac-cr img { width: 36px; height: 36px; padding: 4px; } .ac-cr img + img { margin-inline-start: -10px; }
  .ac-mid > b { font-size: 15px; } .ac-leg .odd { font-size: 16px; padding: 2px 10px; }
  .ac-big b { font-size: 34px; }
  .ac-lg { display: none; }
  .fp.acca .fp-h { row-gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp.acca::before, .fp.acca::after, .ac-leg, .ac-cr img, .ac-leg .odd, .ac-ch span, .ac-cd i, .ac-tap { animation: none !important; } .ac-bet, .ac-in { transition: none !important; }
}
