/* "v2" look (2026-11-13, his request: "premium, not AI-looking"). Approved mockup: mockups/home-v2/index.html.
   Flat black, one solid surface colour, thin lines, no glow on cards or buttons, no cut corners, no pills.
   Red only for actions, blue for profit / data. Cairo 400–900. A faint grid with a soft red/blue light sits behind the hero only.
   Loaded LAST on every page, right after glow.css, which keeps only its layout rules (page width, header rows, phones) — its look is overridden here. motion.js no longer draws the moving background. */

@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(/fonts/cairo-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(/fonts/cairo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212, U+2713, U+2715; }
@font-face { font-family: Cairo; font-weight: 500; font-display: swap; src: url(/fonts/cairo-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 500; font-display: swap; src: url(/fonts/cairo-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212, U+2713, U+2715; }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(/fonts/cairo-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(/fonts/cairo-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212, U+2713, U+2715; }

:root, :root[data-theme="dark"] {
  --bg: #07080C; --s1: #0D0F14; --s2: #12151C; --s3: #181C25;
  --line: rgba(var(--ink), .07); --line2: rgba(var(--ink), .12);
  --fg: #F3F4F6; --muted: #8B91A0; --mu2: #5E6472;
  --red: #E4002B; --red-d: #B80023; --blue: #1F6BFF; --good: #5B93FF; --bad: #FF4D6A;
  --panel: var(--s1); --row: var(--s2);
  --edge: inset 0 0 0 1px var(--line);
  --cut: none; --lean: none; --glow-grad: var(--red);
  --r: 8px; --r2: 10px;
  --ink: 255,255,255; --paper: 7,8,12; --soft: #C9D0DB;
}

/* ---------- page: plain black, no aura, no stars, no grain ---------- */
html, body { background: var(--bg); }
body { background-image: none; color: var(--fg); font-weight: 500; line-height: 1.65; }
body::after, body::before { content: none !important; display: none !important; }
#rm-aura, #rm-grain { display: none !important; }
.ltr, .num { font-variant-numeric: tabular-nums; }
b, strong { font-weight: 700; }

/* ---------- header: one quiet bar, sticky ---------- */
nav.hd, nav.hd.scrolled {
  position: sticky; top: 0; z-index: 30; background: rgba(var(--paper), .86); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); box-shadow: none;
}
nav.hd .hd-top { height: 64px; gap: 28px; }
nav.hd .brand img { height: 38px; width: auto; }
.hd .links, .hd .links.open { background: none; box-shadow: none; padding: 0; gap: 2px; border-radius: 0; }
.hd .links a { padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); background: none !important; box-shadow: none !important; transition: color .15s, background .15s; }
.hd .links a::after { display: none !important; }
.hd .links a:hover { color: var(--fg); background: var(--s2) !important; }
.hd .links a[aria-current] { color: var(--fg); background: var(--s2) !important; box-shadow: none !important; }
@media (max-width: 760px) {
  nav.hd .hd-top { height: 56px; gap: 10px; }
  nav.hd .brand img { height: 32px; }
  .hd .links a { padding: 6px 9px; font-size: 13px; }
}
nav.hd.has-who .hd-top { height: auto; }

/* ---------- type ---------- */
h1 { font-weight: 900; letter-spacing: -.01em; line-height: 1.2; font-size: clamp(34px, 4.6vw, 54px); }
h1 em { color: inherit; padding: 0; margin: 0; display: inline; }
h1 em::before { display: none !important; }
h2 { font-size: 28px; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
h2::before { display: none !important; }
h3 { font-weight: 700; }
.lead { color: var(--muted); font-weight: 500; line-height: 1.8; }
.note, .muted, .sec-sub { color: var(--muted); font-weight: 500; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: none; transform: none; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transform: none; box-shadow: none; }
.kicker span { transform: none; }
@media (max-width: 640px) { h2 { font-size: 23px; } }

/* ---------- section heads: title + quiet link, no numbers, no lines ---------- */
.sec-no { display: none !important; }
.sec-head { border: 0; align-items: flex-end; margin-bottom: 20px; }
.sec-head::after { display: none !important; }
section { padding-top: 64px; }

/* ---------- buttons ---------- */
.btn, .btn.sm, button.btn {
  clip-path: none; border-radius: 8px; border: 1px solid var(--line2); background: var(--s2); color: var(--fg);
  font-weight: 700; box-shadow: none; filter: none; transition: background .15s, border-color .15s;
}
.btn:hover:not(:disabled), .btn:not(.red):hover { transform: none; background: var(--s3); border-color: rgba(var(--ink), .2); box-shadow: none; filter: none; }
.btn:active:not(:disabled) { transform: translateY(1px); filter: none; }
.btn.red, button.btn.red, .btn.red:hover:not(:disabled) { border-radius: 8px; clip-path: none; background: var(--red); border-color: var(--red); color: #fff; box-shadow: none; filter: none; }
.btn.red:hover:not(:disabled) { background: var(--red-d); border-color: var(--red-d); transform: none; }
.more { border-radius: 8px; box-shadow: none; color: var(--muted); font-weight: 600; transition: color .15s, background .15s; }
.more:hover { color: var(--fg); background: var(--s2); }

/* chips, pagers, small tags: small rounded rectangles */
.chip, .pg, .day-btn, .tg-t, .badge, .slip.hid .see, .tg-go, .rail-go, .ft .ft-btn, .pick-month, .live, .slip .no, .slip .o, .mk, .mc .od span, .who .bal {
  clip-path: none !important; border-radius: 6px !important;
}
.chip, .pg { background: var(--s2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.chip:hover, .pg:hover:not(:disabled) { color: var(--fg); transform: none; }
.chip.on, .chip.on:hover, .pg.on { background: var(--fg); color: #07080C; border-color: var(--fg); }
.live i { border-radius: 50%; transform: none; }

/* ---------- surfaces: one flat colour, a thin line, soft radius. No glass, no lift on hover ---------- */
.empty, .rows, .mkc, .vs, .nwc, .ofc, .vdc, .lb, .bank, .slip, .chart-card, .how > div, .how div,
.ch-main, .ch-top, .mc, .board, .prof, .match, .cal, .tray, .stats div, body.legal main > section {
  background: var(--s1) !important; box-shadow: var(--edge); border: 0; border-radius: var(--r2); clip-path: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
dialog, .cal, .tray { background: var(--s2) !important; border-radius: var(--r2); clip-path: none; }
a.mkc, a.nwc, a.vdc, a.bank, .ofc, .slip, .mc, .tile, .match { transition: background .15s, box-shadow .15s; }
a.mkc:hover, a.nwc:hover, a.vdc:hover, a.bank:hover, .ofc:hover, .slip:hover, .mc:hover, .match:not(.soon):hover {
  transform: none !important; background: var(--s2) !important; box-shadow: inset 0 0 0 1px var(--line2);
}
.slip.won, .slip.won:hover { box-shadow: inset -3px 0 0 var(--blue), var(--edge); }
.slip.lost, .slip.lost:hover { box-shadow: inset -3px 0 0 var(--bad), var(--edge); }
.nw-img, .vd-img, .nw-ph, .mkc-img { border-radius: var(--r); }
.ticket { border-radius: var(--r2); clip-path: none; }

/* ---------- headline numbers on /record: one strip with dividers ---------- */
.tiles { gap: 0; border: 0; border-radius: var(--r2); box-shadow: var(--edge); background: var(--s1); overflow: hidden; }
.tile, .tile.w, .tile.l { background: none !important; box-shadow: none !important; border: 0; border-radius: 0; padding: 16px 18px; }
.tile::before { display: none !important; }
.tile + .tile { border-inline-start: 1px solid var(--line); }
.tile:hover { transform: none; }
.tile b { font-weight: 800; font-size: 30px; }
.tile span { color: var(--muted); font-weight: 600; font-size: 13px; }
@media (max-width: 760px) { .tile b { font-size: 22px; } .tile, .tile.w, .tile.l { padding: 12px; border-radius: 0; } .tile:nth-child(3n+1) { border-inline-start: 0; } .tile:nth-child(n+4) { border-top: 1px solid var(--line); } }

/* ---------- home hero: a faint grid with a soft red / blue light, full width, fading out ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; top: -72px; bottom: -40px; left: calc(50% - 50vw); right: calc(50% - 50vw); }
.hero::before {
  z-index: -1;
  background-image: linear-gradient(rgba(var(--ink), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ink), .07) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 85% at 50% 35%, #000 30%, transparent 80%);
}
.hero::after { z-index: -2; background: radial-gradient(ellipse 45% 55% at 70% 0%, rgba(228,0,43,.13), transparent 70%), radial-gradient(ellipse 40% 50% at 20% 30%, rgba(31,107,255,.08), transparent 70%); }

/* the profit card in the hero: a real card again, calm numbers, no pulsing dot */
.money.wl, .money.wl.down {
  background: var(--s1) !important; box-shadow: var(--edge) !important; border-radius: var(--r2); clip-path: none; padding: 22px 24px 0; overflow: hidden;
}
.money .lbl, .money.down .lbl { clip-path: none; background: none; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.money .big { font-weight: 800; letter-spacing: -.02em; font-size: clamp(40px, 5vw, 56px); }
.sp-wrap .sp-line { filter: none !important; }
.sp-dot::after { display: none; }
.money.wl .wl-row { border-top: 1px solid var(--line); margin-inline: -24px; }
.money.wl .wl-row .cell { padding-inline: 20px; }
.money.wl .wl-row .cell + .cell { border-inline-start: 1px solid var(--line); }
.money.wl .wl-row span { color: var(--muted); font-weight: 600; }
.money.wl .wl-row b { font-weight: 800; }

/* moving tape of recent tickets: flat items */
.tape > * > *, .tape a, .tape span.tp { border-radius: 8px; clip-path: none; box-shadow: none; }

/* ---------- newsletter ---------- */
.nl { clip-path: none; border-radius: var(--r2); background: var(--s1) !important; box-shadow: var(--edge) !important; }
.nl-row input { border-radius: 8px; padding: 0 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2); }
.nl-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; box-shadow: none; }

/* ---------- footer: a line, not a card ---------- */
#site-footer { background: none; border-top: 1px solid var(--line); margin-top: 88px; }
#site-footer .sf { background: none !important; box-shadow: none !important; border-radius: 0; padding-inline: 0; }
#site-footer h3 { color: var(--fg); font-weight: 700; }
#site-footer a { color: var(--muted); font-weight: 500; transition: color .15s; }
#site-footer a:hover { color: var(--fg); }
#site-footer .sf-end { color: var(--mu2); font-weight: 500; border-top: 1px solid var(--line); }
.sf-ic { border-radius: 8px !important; clip-path: none !important; background: var(--s2) !important; box-shadow: var(--edge) !important; }

/* ---------- legal pages ---------- */
body.legal main a { color: var(--good); }

/* ---------- quiet motion only ---------- */
.money::after { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- odds, results, ticket numbers: quiet numbers and tinted tags instead of white boxes and solid colour ---------- */
.o, .rw .o, .slip .o, .ticket .odd, .mc .od span { background: var(--s3) !important; color: var(--fg) !important; border-radius: 6px; font-weight: 800; }
.badge { background: var(--s3) !important; color: var(--muted); font-weight: 700; font-size: 13px; padding: 2px 10px; }
.rw.won .badge, .slip.won .badge { background: rgba(31,107,255,.14) !important; color: var(--good); }
.rw.lost .badge, .slip.lost .badge { background: rgba(228,0,43,.14) !important; color: var(--bad); }
.rw .n, .slip .no { color: var(--muted) !important; background: none !important; font-weight: 700; }
.rw .m { font-weight: 700; }
.rw .p { color: var(--muted); }
.rw:hover { background: var(--s2); }
.mk { background: var(--s3); }
.lg.won .mk { background: rgba(31,107,255,.18); color: var(--good); }
.lg.lost .mk { background: rgba(228,0,43,.18); color: var(--bad); }
.tg-t { background: none; box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); font-weight: 600; }
.tg-t.live { background: var(--red); color: #fff; box-shadow: none; }

/* lesson market codes (W1, X2 …): an outlined tag, not a red block */
.mkc-code { background: none !important; box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); border-radius: 6px; font-weight: 800; font-size: 13px; min-width: 0; padding: 1px 8px; }
.mkc-h b { font-weight: 800; }
@media (hover: hover) { .mkc:hover { box-shadow: inset 0 0 0 1px var(--line2); } }
/* hero stats on phones: labels on one line */
.money.wl .wl-row span { white-space: nowrap; font-size: 12.5px; }
@media (max-width: 760px) { .money.wl .wl-row .cell { padding-inline: 12px; } }

/* =====================================================================================
   HOMEPAGE, laid out like the approved mockup (mockups/home-v2). Classes .tk (ticket), .rt (results table), .strip are new.
   ===================================================================================== */
/* header button */
.hd-cta { margin-inline-start: auto; flex: none; height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 760px) { .hd-cta { display: none; } }

/* hero text */
.hero { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 64px 0 48px; }
.hero h1 { margin: 16px 0 0; }
.h1-2 { color: var(--muted); }
.hero .lead { font-size: 18px; margin: 20px 0 30px; max-width: 34em; }
.money.wl .wl-h { display: flex; justify-content: space-between; align-items: baseline; }
.money.wl .wl-h small { color: var(--mu2); font-size: 13px; font-weight: 500; }
.money.wl .big { margin: 6px 0 0; text-align: right; }
.money.wl .sp-wrap { margin: 14px -24px 0; }
.money.wl .sp-wrap svg { height: 110px; width: 100%; }
.sp-dot, .wl-bar { display: none !important; }
.money.wl .wl-row { margin-top: 0; }
.money.wl .wl-row .cell { padding: 14px 20px 16px; }
.money.wl .wl-row b { display: block; font-size: 20px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 32px; }
  .hero .lead { font-size: 16px; }
  .money.wl .wl-row { grid-template-columns: 1fr 1fr; }
  .money.wl .wl-row .cell:nth-child(3) { border-inline-start: 0; }
  .money.wl .wl-row .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* trust line under the hero */
.strip { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 18px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.strip b { color: var(--fg); font-weight: 700; }
/* .tape: back in v2.2, styled below */

/* section heads: title, small text under it, quiet link at the end */
.sec-head h2 + .sec-sub, .sec-sub { margin-top: 4px; font-size: 15px; }

/* today's ticket */
.fps, .fps.one { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tk { background: var(--s1); box-shadow: var(--edge); border-radius: var(--r2); overflow: hidden; }
.tk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.tk-name { font-size: 18px; font-weight: 800; }
.tk-meta { display: flex; gap: 24px; margin-inline-start: auto; color: var(--muted); font-size: 14px; }
.tk-meta b { color: var(--fg); font-weight: 700; }
.tk-why { padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.tk-leg { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, auto) 64px 112px; gap: 20px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.tk-tm { color: var(--muted); font-size: 14px; }
.tk-teams { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-team { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; }
.tk-team img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.tk-lg { color: var(--mu2); font-size: 12.5px; font-weight: 600; }
.tk-pick { font-weight: 700; font-size: 14.5px; }
.tk-pick small { display: block; color: var(--mu2); font-weight: 600; font-size: 12px; text-align: right; }
.tk-odd { font-weight: 800; font-size: 16px; text-align: center; }
.tk-res { justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--s3); white-space: nowrap; }
.tk-res::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tk-res.won { color: var(--good); background: rgba(31,107,255,.12); }
.tk-res.lost { color: var(--bad); background: rgba(228,0,43,.12); }
.tk-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 16px 24px; background: var(--s2); color: var(--muted); font-size: 14.5px; }
.tk-foot b { color: var(--fg); font-weight: 700; }
.tk-foot b.pos { color: var(--good); } .tk-foot b.neg { color: var(--bad); }
.tk .tg-go { margin: 14px 24px 16px; border-radius: 8px; }
.tk .tg-t { height: 24px; }
.tk.won .badge, .rt.won .badge { background: rgba(31,107,255,.14) !important; color: var(--good); }
.tk.lost .badge, .rt.lost .badge { background: rgba(228,0,43,.14) !important; color: var(--bad); }
@media (max-width: 640px) {
  .tk-top, .tk-why, .tk-foot { padding-inline: 16px; }
  .tk-meta { margin: 0; width: 100%; justify-content: space-between; gap: 10px; }
  .tk-leg { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "teams res" "pick odd"; gap: 10px 12px; padding: 14px 16px; }
  .tk-tm { display: none; }
  .tk-teams { grid-area: teams; } .tk-pick { grid-area: pick; } .tk-odd { grid-area: odd; text-align: end; } .tk-res { grid-area: res; }
}

/* latest results: a table */
#latest .rows { padding: 0; overflow: hidden; }
.rt { display: grid; grid-template-columns: 120px minmax(0, 1fr) 70px 104px 90px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15px; transition: background .12s; }
.rt.head { border-top: 0; padding-block: 12px; color: var(--mu2); font-size: 12.5px; font-weight: 700; }
a.rt:hover { background: var(--s2); }
.rt-no b { display: block; font-weight: 700; }
.rt-no small { color: var(--mu2); font-size: 12.5px; }
.rt-m { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-pl { text-align: left; }
.rt b.pos { color: var(--good); } .rt b.neg { color: var(--bad); }
@media (max-width: 640px) {
  .rt { grid-template-columns: minmax(0, 1fr) 52px 86px 66px; gap: 10px; padding: 12px 14px; }
  .rt-m { display: none; }
}

/* the robot against us: two columns, no VS badge */
.vs { grid-template-columns: 1fr 1fr; overflow: hidden; }
.vs-mid { display: none !important; }
.vs-c { padding: 28px; }
#vs-me { border-inline-start: 1px solid var(--line); }
.vs-h svg { display: none; }
.vs-h b { font-size: 17px; font-weight: 800; }
.vs-big { font-weight: 800; font-size: 46px; margin-top: 14px; }
.vs-bar { height: 4px; transform: none; border-radius: 4px; margin: 18px 0; }
.vs-bar i { border-radius: 4px; }
.vs-l li { color: var(--muted); font-weight: 500; }
.vs-l li b { font-weight: 700; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } #vs-me { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* lessons on the home page: one block cut by thin lines */
.mks.home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r2); overflow: hidden; box-shadow: var(--edge); }
.mks.home .mkc { border-radius: 0 !important; box-shadow: none !important; padding: 22px; }
.mks.home .mkc-img { display: none; }
.mks.home .mkc em { color: var(--muted); font-style: normal; font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .mks.home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mks.home { grid-template-columns: 1fr; } }
.bank { margin-top: 12px; }

/* news: one lead story, a list beside it */
#news .nw { grid-template-columns: 1.3fr 1fr; column-gap: 32px; row-gap: 0; align-items: start; }
#news .nwc { background: none !important; box-shadow: none !important; border-radius: 0; }
#news .nwc.big { grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; }
#news .nwc.big .nw-img { min-height: 0; aspect-ratio: 16 / 9; border-radius: var(--r2); }
#news .nwc.big .nw-tx { padding: 16px 0 0; }
#news .nwc.big .nw-tx b { font-size: 24px; font-weight: 800; }
#news .nwc:not(.big) { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
#news .nwc:not(.big) .nw-img { order: 2; width: 112px; height: 76px; aspect-ratio: auto; border-radius: 8px; }
#news .nwc:not(.big) .nw-tx { padding: 0; }
#news .nwc:not(.big) .nw-tx b { font-size: 16px; font-weight: 700; }
#news .nwc:not(.big) .nw-tx p, #news .nwc:not(.big) .nw-tx em { display: none; }
.nw-tx time { color: var(--mu2); font-weight: 600; }
.nw-tx p { color: var(--muted); font-weight: 500; }
.nw-tx em { color: var(--muted); font-weight: 600; }
.nw-tx em::after { color: inherit; }
@media (max-width: 760px) { #news .nw { grid-template-columns: 1fr; } #news .nwc.big, #news .nwc:not(.big) { grid-column: 1; grid-row: auto; } }

/* newsletter + leaderboard */
.nl { padding: 40px; gap: 24px 40px; }
.nl h2 { font-size: 26px; font-weight: 800; }
.nl-ok { color: var(--mu2); font-weight: 500; }
.lb-n { color: var(--muted) !important; font-weight: 700; }
.lb-u b, .lb-p { font-weight: 700; }
@media (max-width: 640px) { .nl { padding: 24px; } }
#t-wl, #t-wl span { display: inline !important; white-space: nowrap; }
#t-wl { display: block !important; }
.sec-head .more { box-shadow: none !important; background: none; padding: 0 !important; height: auto; min-height: 0; }
.sec-head .more:hover { background: none; }

/* ===== round 2 (2026-11-13, after his review) ===== */
/* lessons on the home page, exactly like the mockup: the code tag on its own line, title, two lines of text; no picture, no example, no "read more" */
.mks.home .mkc { gap: 8px; padding: 22px; }
.mks.home .mkc-h { flex-direction: column; align-items: flex-start; gap: 8px; }
.mks.home .mkc-h b { font-size: 17px; }
.mks.home .mkc p { color: var(--muted); font-size: 14px; line-height: 1.75; font-weight: 500; }
.mks.home .mkc em, .mks.home .mkc-ex, .mks.home .mkc-cat { display: none !important; }
.mks.home .mkc:hover { background: var(--s2) !important; }

/* hero record: no box; the numbers and the curve sit on the grid like the rest of the hero */
.money.wl, .money.wl.down { background: none !important; box-shadow: none !important; border-radius: 0; padding: 0; overflow: visible; }
.money.wl .sp-wrap { margin: 18px 0 0; }
.money.wl .wl-row { margin-inline: 0; border-top: 1px solid var(--line2); }
.money.wl .wl-row .cell:first-child { padding-inline-start: 0; }

/* every inner page starts like the home page: the same faint grid and soft light behind its title */
.page-h, header.top { position: relative; isolation: isolate; padding-top: 56px; padding-bottom: 24px; }
.page-h::before, .page-h::after, header.top::before, header.top::after { content: ""; position: absolute; pointer-events: none; top: -72px; bottom: -24px; left: calc(50% - 50vw); right: calc(50% - 50vw); }
.page-h::before, header.top::before {
  z-index: -1;
  background-image: linear-gradient(rgba(var(--ink), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ink), .07) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 25%, transparent 78%);
}
.page-h::after, header.top::after { z-index: -2; background: radial-gradient(ellipse 45% 70% at 70% 0%, rgba(228,0,43,.12), transparent 70%), radial-gradient(ellipse 40% 60% at 20% 20%, rgba(31,107,255,.07), transparent 70%); }
/* home: one "see all" link per section, in the heading (as in the mockup), not a second full-width button under it */
#top > section > .more.wide, .mks.home + .more.wide { display: none !important; }
#top > section > .sec-head > .more { display: inline-flex !important; }
@media (max-width: 760px) { .hero .cta { flex-wrap: nowrap; } .hero .cta .btn { flex: 1 1 0; justify-content: center; } }

/* v2: no fade-in on scroll and no rising cards: content is visible at once */
.motion .rv, .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.in { animation: none !important; }
html { scroll-behavior: auto; }

/* ================= v2.1 phones (2026-11-13, after his "doesn't look good on the phone") ================= */
/* chart: shown at once (its draw-in animation could leave it blank) */
.motion #spark.drawn, .motion #spark.drawn .sp-area, .motion .sp-dot, .motion .sp-dot::after { animation: none !important; }
.hd-menu { display: none; }
@media (max-width: 760px) {
  /* one bar: logo · (account) · ورقة اليوم · menu; the pages drop down under it */
  nav.hd .hd-top, nav.hd.has-who .hd-top { flex-wrap: nowrap !important; height: 56px !important; padding-block: 0 !important; gap: 8px !important; position: relative; }
  nav.hd .brand { margin-inline-end: auto; }
  .hd-cta { display: inline-flex !important; height: 36px; padding: 0 14px; font-size: 13.5px; margin: 0; }
  .hd-menu { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 36px; padding: 0 10px; flex: none;
    background: var(--s2); border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
  .hd-menu i { display: block; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .15s, opacity .15s; }
  nav.hd.menu-open .hd-menu i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  nav.hd.menu-open .hd-menu i:nth-child(2) { opacity: 0; }
  nav.hd.menu-open .hd-menu i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hd .links, .hd .links.open { display: none !important; }
  nav.hd.menu-open .links { display: flex !important; flex-direction: column; align-items: stretch; position: absolute; top: 56px; left: 0; right: 0; width: auto; max-width: none; margin: 0 !important;
    padding: 6px var(--pad) 12px !important; background: var(--bg) !important; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.6) !important; overflow: visible; }
  nav.hd.menu-open .links a { width: 100%; text-align: right; padding: 13px 2px !important; font-size: 16px !important; border-radius: 0 !important; color: var(--fg); border-bottom: 1px solid var(--line); }
  nav.hd.menu-open .links a:last-child { border-bottom: 0; }
  nav.hd.menu-open .links a[aria-current] { background: none !important; color: var(--red); }
  nav.hd #who .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }

  /* less empty space between sections */
  section { padding-top: 44px; }
  .sec-head { margin-bottom: 14px; }

  /* the two hero buttons, and the versus buttons: same size, side by side */
  .cta { display: flex !important; flex-wrap: nowrap !important; gap: 10px; }
  .cta .btn, .cta .btn.red { flex: 1 1 0 !important; width: auto !important; min-width: 0; justify-content: center; padding-inline: 10px; font-size: 14.5px; }

  /* lessons: compact rows, code beside the title, no examples */
  .mks.home .mkc { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; align-items: start; }
  .mks.home .mkc-h { display: contents; }
  .mks.home .mkc-h b { grid-column: 1; grid-row: 1; font-size: 16px; }
  .mks.home .mkc-code { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; align-self: center; }
  .mks.home .mkc p { grid-column: 1; grid-row: 2; margin: 0; font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mks.home .mkc-ex, .mks.home .mkc em, .mks.home .mkc-cat { display: none !important; }

  /* AI vs human: the two sides next to each other, smaller */
  .vs { grid-template-columns: 1fr 1fr !important; }
  .vs-mid { display: none !important; }
  .vs-c { padding: 16px 12px !important; min-width: 0; }
  #vs-me { border-top: 0 !important; border-inline-start: 1px solid var(--line) !important; }
  .vs-h { font-size: 14px; gap: 6px; }
  .vs-h svg { width: 18px; height: 18px; }
  .vs-big { font-size: 34px; margin-top: 8px; }
  .vs-cap { font-size: 12px; }
  .vs-bar { margin: 12px 0; }
  .vs-l li { font-size: 12.5px; padding-block: 7px; gap: 6px; }

  /* hero numbers: value under its label, same side */
  .money.wl .wl-row .cell b { display: block; text-align: right; }
  #t-wl { direction: rtl; text-align: right; }

  /* newsletter fine print */
  .nl-ok { font-size: 12.5px; line-height: 1.7; }
}
@media (max-width: 760px) { nav.hd, nav.hd.scrolled { z-index: 100; } }
/* challenge tabs: the active tab gets its own red underline (the sliding bar could sit under the wrong tab) */
.tab-ind { display: none !important; }
.tabs .tab.on { box-shadow: inset 0 -2px 0 var(--red) !important; color: var(--fg); }
@media (max-width: 760px) {
  /* challenge page: the account button is the main action there, so the header keeps only it */
  nav.hd.has-who .hd-cta { display: none !important; }
  /* lesson page: text on the page, not in a box */
  .mk-art { padding: 8px 0 0 !important; background: none !important; box-shadow: none !important; }
}

/* ================= v2.2 homepage top (2026-11-13) ================= */
/* the slow bar of the latest settled tickets, right under the header */
.tape { margin: 0; padding: 0; height: 40px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: #090A0F; }
.tape[hidden] { display: none; }
.tape-g { gap: 0; padding-right: 0; }
.ti { gap: 8px; padding: 0 18px; height: 40px; background: none; clip-path: none; font-size: 13px; font-weight: 600; color: var(--muted); border-inline-end: 1px solid var(--line); }
.ti b { color: var(--fg); font-weight: 700; }
.ti em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 5px; }
.ti.won em { color: var(--good); background: rgba(31,107,255,.14); }
.ti.lost em { color: var(--bad); background: rgba(228,0,43,.14); }
.ti i { width: auto; height: auto; font-size: 12px; }

/* who we are: one line and three small cards, before the record headline */
.intro { padding-top: 34px; }
.intro-t { margin: 0 0 16px; color: var(--muted); font-size: 16px; font-weight: 500; }
.intro-t b { color: var(--fg); font-weight: 800; margin-inline-end: 4px; }
.intro-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intro-c { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: var(--r2); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); text-decoration: none; transition: box-shadow .15s; }
.intro-c:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.intro-c i { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 9px; background: var(--s3) center / 20px no-repeat; }
.intro-c b { font-size: 15px; font-weight: 700; }
.intro-c span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ic-day { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E4002B' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") !important; }
.ic-rec { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B93FF' stroke-width='2'%3E%3Cpath d='M4 19V5M4 19h16M8 15l4-4 3 3 5-6'/%3E%3C/svg%3E") !important; }
.ic-ch { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a3 3 0 0 0 3 4M17 6h3a3 3 0 0 1-3 4'/%3E%3C/svg%3E") !important; }
.intro + .hero { padding-top: 40px; }

/* hero card: not a link any more; period switch */
.money.wl { cursor: default; }
.m-per { position: relative; z-index: 2; display: inline-flex; gap: 2px; padding: 3px; margin-top: 10px; border-radius: 8px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.m-per button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.m-per button.on { background: var(--s3); color: var(--fg); }
.m-per button[hidden] { display: none; }

/* trust lines: a small check, one line each on phones */
.strip i { font-style: normal; color: var(--good); font-weight: 800; margin-inline-end: 8px; }
@media (max-width: 760px) {
  .intro { padding-top: 22px; }
  .intro-t { font-size: 14.5px; margin-bottom: 12px; }
  .intro-g { grid-template-columns: 1fr; gap: 8px; }
  .intro-c { padding: 11px 14px; }
  .intro-c i { width: 34px; height: 34px; }
  .intro + .hero { padding-top: 28px; }
  .strip { flex-direction: column; gap: 8px; padding: 14px 0; font-size: 13px; }
  .strip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tape { height: 36px; } .ti { height: 36px; padding: 0 14px; font-size: 12.5px; }
}

/* ================= v2.2 lessons (2026-11-13) ================= */
.lfind { display: grid; gap: 12px; margin-bottom: 8px; }
.lfind input { width: 100%; height: 46px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg); font: inherit; font-size: 15px; }
.lfind input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.lfind .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.lgroup { padding-top: 28px; scroll-margin-top: 80px; }
.lgroup h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.lgroup h2 small { font-size: 12px; color: var(--muted); background: var(--s2); padding: 1px 8px; border-radius: 6px; font-weight: 600; }
.lgroup .mks { margin: 0; }
.lgroup .mkc-ex { display: none; }

/* lesson page: the lessons list on the right */
.lgrid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 24px; }
.lmain .art { max-width: none; }
.lmain .mk-art { margin-top: 0; }
.lside { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; padding-inline-end: 6px; }
.lside-btn { display: none; }
.lside-g { margin-bottom: 18px; }
.lside-g h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--mu2); }
.lside-g a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.lside-g a:hover { color: var(--fg); background: var(--s1); }
.lside-g a[aria-current] { color: var(--fg); background: var(--s2); box-shadow: inset -2px 0 0 var(--red); }
.lside-g .mkc-code { font-size: 11px; min-width: 38px; text-align: center; }
.lside:empty { display: none; }
@media (max-width: 900px) {
  .lgrid { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .lside { position: static; max-height: none; overflow: visible; padding: 0; }
  .lside-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
  .lside-btn i { width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
  .lside.open .lside-btn i { transform: rotate(-135deg); }
  .lside-list { display: none; margin-top: 8px; padding: 12px; border-radius: var(--r2); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
  .lside.open .lside-list { display: block; }
  .lgrid .page-h { padding-top: 24px; }
}
.lfind .chip { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .lgroup .mks { gap: 8px; }
  .lgroup .mkc { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; align-items: start; }
  .lgroup .mkc-h { display: contents; }
  .lgroup .mkc-h b { grid-column: 1; grid-row: 1; font-size: 16px; }
  .lgroup .mkc-code { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; align-self: center; }
  .lgroup .mkc p { grid-column: 1; grid-row: 2; margin: 0; font-size: 13.5px; line-height: 1.6; }
  .lgroup .mkc em, .lgroup .mkc-img, .lgroup .mkc-cat { display: none !important; }
}

/* ================= v2.2 news: text only (2026-11-13) ================= */
.nwc .nw-img, .art-fig, .art .nw-img { display: none !important; }
.nwc { display: block; padding: 16px 18px; }
.nwc .nw-tx { padding: 0 !important; }
.news-txt { display: grid; gap: 0; border-top: 1px solid var(--line); }
.nwt { display: block; padding: 18px 2px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.nwt:hover b { color: var(--fg); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
.nwt-k { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--mu2); font-size: 12.5px; font-weight: 600; }
.nwt-k span { color: var(--red); }
.nwt b { display: block; font-size: 18px; font-weight: 700; line-height: 1.55; }
.nwt p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nwt.lead { padding: 22px 0 24px; }
.nwt.lead b { font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.nwt.lead p { -webkit-line-clamp: 3; font-size: 15.5px; }
@media (max-width: 760px) { .nwt b { font-size: 16.5px; } .nwt p { font-size: 13.5px; } }
/* small real numbers under page titles */
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.facts:empty { display: none; }
.facts b { color: var(--fg); font-weight: 700; }

/* ================= v2.2 privacy / terms (2026-11-13) ================= */
body.legal .lgrid { padding-top: 40px; }
.legal-body h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.legal-body h2 { font-size: 19px; font-weight: 800; margin: 28px 0 6px; }
.legal-body p, .legal-body li { color: var(--soft, #C3C8D2); font-weight: 500; font-size: 15.5px; line-height: 1.95; }
.legal-body .top { color: var(--muted); font-size: 13.5px; }
.legal-body a { color: var(--good); }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.legal-body section { max-width: 760px; }
@media (max-width: 900px) {
  /* phones: the two pages as two tabs at the top */
  .legal-side .lside-btn { display: none; }
  .legal-side .lside-g:last-child { display: none; }
  .legal-side .lside-g h3 { display: none; }
  .legal-side .lside-g { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
  .legal-side .lside-g a { justify-content: center; border-radius: 0; padding: 12px 6px; background: none !important; }
  .legal-side .lside-g a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); color: var(--fg); }
  body.legal .lgrid { padding-top: 16px; }
}
.legal-side .lside-g a { color: var(--muted) !important; }
.legal-side .lside-g a[aria-current] { color: var(--fg) !important; }
@media (max-width: 900px) { body.legal .lgrid { padding-top: 6px; } }

/* ===== v2.3 (2026-11-13): lessons side menu, bankroll article, news columns, player cards ===== */
.lmain .mks.two { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 901px) { .lmain .lfind .chips { display: none; } }
@media (max-width: 900px) { .lside-desk { display: none; } }
@media (max-width: 640px) { .lmain .mks.two { grid-template-columns: 1fr; } }
.how-art h3 { font-size: 19px; margin-top: 26px; }
.how-art h3:first-child { margin-top: 0; }
.how-art .mk-tbl { max-width: 420px; }
/* homepage leaderboard: one card per player */
.lb:has(.lbc-grid) { background: none !important; box-shadow: none !important; clip-path: none !important; }
.lbc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lbc { display: block; padding: 14px 16px; border-radius: 8px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .2s; }
.lbc:hover { box-shadow: inset 0 0 0 1px rgba(var(--ink), .22); }
.lbc.top1 { box-shadow: inset 0 0 0 1px rgba(228,0,43,.6); }
.lbc-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lbc-h .lb-n { min-width: 22px; font-size: 16px; text-align: start; }
.lbc.top1 .lb-n, .lbc.top2 .lb-n, .lbc.top3 .lb-n { color: var(--fg, #fff) !important; }
.lbc-u { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbc-p { margin-inline-start: auto; font-size: 19px; font-weight: 800; white-space: nowrap; }
.lbc-p small { font-size: 12px; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
.lbc-p.neg { color: var(--bad); }
.lbc-s { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 10px; padding: 10px 0; border-block: 1px solid var(--line); text-align: center; }
.lbc-s small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.lbc-s b { font-size: 15px; font-weight: 700; }
.lbc-s .pos { color: var(--good); } .lbc-s .neg { color: var(--bad); }
.lbc-r { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.lbc-r i { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) var(--w), rgba(var(--ink), .08) var(--w)); }
.lbc-r b { color: var(--fg, #fff); }
@media (max-width: 760px) { .lbc-grid { grid-template-columns: 1fr; } .lbc-s b { font-size: 14px; } }
.lbc-h .av, .pc-h .av { width: 32px; height: 32px; border-radius: 50%; flex: none; }
/* news v2.3: tags, a framed lead story, side menu with latest */
.nwt-k span { padding: 2px 9px; border-radius: 999px; background: rgba(228,0,43,.12); color: #FF5C7A; font-size: 12px; }
.nwt.lead { padding: 20px 20px 22px; margin: 14px 0 6px; border: 0; border-radius: 8px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.nwt::after { content: "اقرأ الخبر ←"; display: inline-block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nwt:hover::after { color: var(--fg); }
.lmain .news-txt { border-top: 0; }
.ns-latest a { display: block !important; line-height: 1.55; font-size: 13.5px !important; }
.ns-latest time { display: block; color: var(--mu2); font-size: 11.5px; margin-bottom: 2px; }
.rel-h { font-size: 20px; margin: 34px 0 6px; }
.sec-acts { display: flex; align-items: center; gap: 8px; }
.share-btn { gap: 6px !important; padding: 0 14px !important; }
@media (max-width: 560px) { .share-btn span { display: none; } .share-btn { padding: 0 12px !important; } }
/* FAQ + 404 */
.faq { max-width: 780px; }
.faq-q { border-bottom: 1px solid var(--line); }
.faq-q summary { cursor: pointer; list-style: none; padding: 16px 2px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1.2; }
.faq-q[open] summary::after { content: "−"; }
.faq-q p { margin: 0 0 16px; color: var(--soft, #C3C8D2); font-size: 15.5px; line-height: 2; }
.page-h.nf { min-height: 50vh; }
.page-h.nf .cta { display: flex; flex-wrap: wrap; gap: 8px; }
.how-art { padding: 6px 0 0 !important; margin-top: 8px !important; background: none !important; box-shadow: none !important; clip-path: none !important; }
.how-art .mk-tbl { width: auto; min-width: 280px; }
.how-art p { max-width: 720px; }

/* ===== v2.4 (2026-11-13): homepage news as a text list; calmer article meta and sources ===== */
.news-home { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
.news-home .nwt.lead { grid-column: 1 / -1; margin-top: 0; }
.news-home.solo .nwt.lead { padding: 26px 26px 28px; }
.news-home .nwt:not(.lead):nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) { .news-home { grid-template-columns: 1fr; } .news-home .nwt:not(.lead):nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 13.5px; margin: 4px 0 16px !important; }
.art-meta time { color: var(--muted) !important; font-weight: 600 !important; }
.art .lead { color: var(--soft, #C3C8D2); }
.art-src { margin: 26px 0 8px !important; padding: 16px 0 0 !important; background: none !important; border-top: 1px solid var(--line); clip-path: none !important; box-shadow: none !important; }
.art-src b { display: block; color: var(--muted); font-size: 12.5px !important; font-weight: 700 !important; margin-bottom: 8px; }
.art-src ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; }
.art-src li { margin: 0; }
.art-src a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg) !important; font-size: 13px !important; text-decoration: none; }
.art-src a:hover { box-shadow: inset 0 0 0 1px rgba(var(--ink), .25); }
.art-src a::after { content: " ↗"; color: var(--muted); }
.nwt-k time { color: var(--mu2) !important; font-weight: 600 !important; font-size: 12.5px !important; }

/* ---------- footer: the same faint grid and soft red / blue light as the page heads, mirrored (light comes from the bottom) — 2026-11-13 ---------- */
#site-footer { position: relative; isolation: isolate; overflow: hidden; }
#site-footer::before, #site-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
#site-footer::before {
  z-index: -1;
  background-image: linear-gradient(rgba(var(--ink), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ink), .07) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center bottom;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 25%, transparent 78%);
}
#site-footer::after { z-index: -2; background: radial-gradient(ellipse 45% 70% at 30% 100%, rgba(228,0,43,.12), transparent 70%), radial-gradient(ellipse 40% 60% at 80% 80%, rgba(31,107,255,.07), transparent 70%); }

/* ---------- «أوراق اليوم»: each ticket stands out (grey frame + thin blue top line; red looked too loud), more room between them (2026-11-15) ---------- */
#today-list .fps { gap: 22px; }
#today-list .list { gap: 14px; margin-top: 22px; }
#today-list .tk { border: 1px solid rgba(var(--ink), .14); box-shadow: inset 0 2px 0 var(--blue); }
#today-list .slip, #today-list .slip:hover { border: 1px solid rgba(var(--ink), .14) !important; box-shadow: none !important; }
#today-list .slip.hid { border-style: dashed !important; }
/* A full ticket folds to its top bar: tap the bar to open or keep it small (2026-11-15) */
.tk:not(.tk-lock) > .tk-top { cursor: pointer; user-select: none; }
.tk-fold { order: -1; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(225deg); margin: 4px 2px 0; transition: transform .2s; }
.tk.small .tk-fold { transform: rotate(45deg); margin-top: -4px; }
.tk.small > :not(.tk-top) { display: none !important; }
.tk.small > .tk-top { border-bottom: 0; }
/* Record page: tickets still waiting get the same grey frame (no side edge: blue there means won), rows keep their look */
#list .slip.pending, #list .slip.pending:hover { border: 1px solid rgba(var(--ink), .14) !important; box-shadow: none !important; }
#list .slip.hid { border: 1px dashed rgba(var(--ink), .22) !important; }

/* Record page: net profit + ROI by period (2026-11-16) */
#pnl-sec { margin-top: 48px; }
#pnl-sec .sec-head { margin-bottom: 14px; }
.pnl-f { margin-bottom: 14px; }
.tiles.pnl { grid-template-columns: repeat(4, 1fr); }
.tiles.pnl b.pos { color: var(--good); } .tiles.pnl b.neg { color: var(--bad); }
@media (max-width: 760px) { .tiles.pnl { grid-template-columns: repeat(2, 1fr); } .tiles.pnl .tile:nth-child(n) { border-top: 0; border-inline-start: 1px solid var(--line); } .tiles.pnl .tile:nth-child(odd) { border-inline-start: 0; } .tiles.pnl .tile:nth-child(n+3) { border-top: 1px solid var(--line); } }
.pnl-card { background: var(--s1); border-radius: var(--r2); box-shadow: var(--edge); overflow: hidden; transition: box-shadow .5s ease, background .5s ease, opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.pnl-card + .pnl-card { margin-top: 16px; }
.pnl-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; background: rgba(var(--ink), .02); transition: border-color .5s ease; }
.pnl-cap b { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pnl-cap i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background .5s ease; }
.pnl-card .tiles.pnl { box-shadow: none; border-radius: 0; background: none; }
/* Soft tone: faint border + low glow, not a hard outline (2026-11-16) */
.pnl-card.up { box-shadow: inset 0 0 0 1px rgba(31,107,255,.32), 0 10px 32px -18px rgba(31,107,255,.45); background: linear-gradient(180deg, rgba(31,107,255,.05), rgba(31,107,255,0) 60%), var(--s1); }
.pnl-card.down { box-shadow: inset 0 0 0 1px rgba(228,0,43,.3), 0 10px 32px -18px rgba(228,0,43,.4); background: linear-gradient(180deg, rgba(228,0,43,.045), rgba(228,0,43,0) 60%), var(--s1); }
.pnl-card.up .pnl-cap i { background: #5B93FF; } .pnl-card.down .pnl-cap i { background: #FF4D6A; }
.pnl-card.up .pnl-cap { border-bottom-color: rgba(31,107,255,.18); } .pnl-card.down .pnl-cap { border-bottom-color: rgba(228,0,43,.18); }
.pnl-card.up .pnl-cap i::after, .pnl-card.down .pnl-cap i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pnl-ping 2.4s ease-out infinite; }
@keyframes pnl-ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
/* Entrance when the section scrolls into view, and a short refresh when the period changes */
#pnl-sec.wait .pnl-card { opacity: 0; transform: translateY(14px); }
#pnl-sec .pnl-card + .pnl-card { transition-delay: .12s; }
.tiles.pnl.swap .tile { animation: pnl-swap .45s cubic-bezier(.2,.7,.2,1) both; }
.tiles.pnl.swap .tile:nth-child(2) { animation-delay: .04s; } .tiles.pnl.swap .tile:nth-child(3) { animation-delay: .08s; } .tiles.pnl.swap .tile:nth-child(4) { animation-delay: .12s; }
@keyframes pnl-swap { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #pnl-sec.wait .pnl-card { opacity: 1; transform: none; } .pnl-cap i::after, .tiles.pnl.swap .tile { animation: none !important; } }
#pnl-sec .note { margin-top: 12px; }

/* Homepage day tickets: soft result tone, one look for full tickets and short rows, gentle motion (2026-11-16) */
#today-list .tk { border: 0; position: relative; box-shadow: inset 0 0 0 1px rgba(var(--ink), .09); transition: box-shadow .4s ease, background .4s ease; }
#today-list .tk.won { box-shadow: inset 0 0 0 1px rgba(31,107,255,.26), inset -3px 0 0 rgba(31,107,255,.55), 0 14px 34px -24px rgba(31,107,255,.55); background: linear-gradient(to left, rgba(31,107,255,.06), rgba(31,107,255,0) 45%), var(--s1); }
#today-list .tk.lost { box-shadow: inset 0 0 0 1px rgba(228,0,43,.24), inset -3px 0 0 rgba(228,0,43,.5), 0 14px 34px -24px rgba(228,0,43,.5); background: linear-gradient(to left, rgba(228,0,43,.055), rgba(228,0,43,0) 45%), var(--s1); }
#today-list .tk.pending { box-shadow: inset 0 0 0 1px rgba(var(--ink), .12); }
#today-list .tk.pending::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(228,0,43,.8), transparent) no-repeat; background-size: 40% 100%; animation: tk-sweep 3.2s linear infinite; }
@keyframes tk-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
#today-list .tk-top { transition: background .2s ease; }
#today-list .tk:not(.tk-lock) > .tk-top:hover { background: rgba(var(--ink), .025); }
#today-list .slip, #today-list .slip:hover { border: 0 !important; box-shadow: inset 0 0 0 1px rgba(var(--ink), .09) !important; transition: box-shadow .3s ease, background .3s ease; }
#today-list .slip.won, #today-list .slip.won:hover { box-shadow: inset 0 0 0 1px rgba(31,107,255,.22), inset -3px 0 0 rgba(31,107,255,.55) !important; background: linear-gradient(to left, rgba(31,107,255,.06), rgba(31,107,255,0) 40%), var(--s1); }
#today-list .slip.lost, #today-list .slip.lost:hover { box-shadow: inset 0 0 0 1px rgba(228,0,43,.2), inset -3px 0 0 rgba(228,0,43,.5) !important; background: linear-gradient(to left, rgba(228,0,43,.055), rgba(228,0,43,0) 40%), var(--s1); }
#today-list .slip:hover { background-color: var(--s2); }
#today-list .slip.hid, #today-list .slip.hid:hover { border: 1px dashed rgba(var(--ink), .2) !important; box-shadow: none !important; }
/* Cards rise in one after another when the list shows (and again when another day is picked) */
@keyframes tk-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#today-list.wait .tk, #today-list.wait .slip { opacity: 0; }
#today-list.go .tk, #today-list.go .slip { animation: tk-in .55s cubic-bezier(.2,.7,.2,1) both !important; animation-delay: calc(var(--k, 0) * 80ms) !important; }
@media (prefers-reduced-motion: reduce) { #today-list .tk.pending::before { animation: none; } #today-list.wait .tk, #today-list.wait .slip { opacity: 1; } #today-list.go .tk, #today-list.go .slip { animation: none !important; } }

/* Publish time on every ticket (2026-11-16) */
.slip .d .pt { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--mu2, var(--muted)); white-space: nowrap; }
.lg.posted .muted b { font-weight: 700; }
.tk-posted { padding: 12px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.tk-posted b { color: var(--fg); font-weight: 700; }
@media (max-width: 760px) { .tk-posted { padding-inline: 16px; } }
.slip .d:has(.pt) { width: auto; min-width: 50px; }
.slip .d .pt { direction: rtl; text-align: right; }
.tz { font-size: .8em; font-weight: 600; color: var(--muted); margin-inline-start: 2px; }

/* /versus: AI vs human head to head (2026-11-16, v2). AI = blue, RYUGA = red, as on the homepage block */
.hh-ctl { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 4px 0 10px; }
.hh-fair { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hh-basis { margin: 0 0 18px; color: var(--muted); font-size: 14px; } .hh-basis b { color: var(--fg); }
.hh { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); background: var(--s1); border-radius: var(--r2); box-shadow: var(--edge); overflow: hidden; }
.hh-side { padding: 26px 28px; position: relative; transition: box-shadow .5s ease; }
.hh-side.ai { background: linear-gradient(to left, rgba(31,107,255,.08), rgba(31,107,255,0) 75%); }
.hh-side.me { background: linear-gradient(to right, rgba(228,0,43,.08), rgba(228,0,43,0) 75%); }
.hh-side.lead.ai { box-shadow: inset 0 0 0 1px rgba(31,107,255,.3); } .hh-side.lead.me { box-shadow: inset 0 0 0 1px rgba(228,0,43,.3); }
.hh-who { display: flex; align-items: center; gap: 12px; }
.hh-who > i { width: 12px; height: 12px; border-radius: 50%; flex: none; position: relative; }
.hh-side.ai .hh-who > i { background: #1F6BFF; } .hh-side.me .hh-who > i { background: #E4002B; }
.hh-side.lead .hh-who > i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pnl-ping 2.2s ease-out infinite; }
.hh-who b { display: block; font-size: 18px; font-weight: 800; color: var(--fg); } .hh-who b .ltr { white-space: nowrap; } .hh-who div > span { display: block; color: var(--muted); font-size: 13px; }
.hh-crown { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; opacity: 0; transform: translateY(-4px); transition: opacity .4s ease, transform .4s ease; }
.hh-side.ai .hh-crown { background: rgba(31,107,255,.15); color: var(--good); } .hh-side.me .hh-crown { background: rgba(228,0,43,.15); color: var(--bad); }
.hh-side.lead .hh-crown { opacity: 1; transform: none; }
.hh-big { font-size: 54px; font-weight: 800; margin-top: 16px; line-height: 1.1; color: var(--fg); }
.hh-cap { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.hh-bar { height: 6px; border-radius: 6px; background: var(--s3); margin-top: 14px; overflow: hidden; }
.hh-bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.hh-side.ai .hh-bar i { background: linear-gradient(90deg, #1F6BFF, #5B93FF); } .hh-side.me .hh-bar i { background: linear-gradient(90deg, #E4002B, #FF4D6A); }
.hh-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.hh-mini div { background: rgba(var(--ink), .03); border-radius: 8px; padding: 8px 10px; }
.hh-mini span { display: block; color: var(--muted); font-size: 12px; } .hh-mini b { font-size: 17px; font-weight: 800; } .hh-mini b.pos { color: var(--good); } .hh-mini b.neg { color: var(--bad); }
.hh-form { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.hh-form .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.hh-form .dots i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.hh-form .dots i.w { background: #1F6BFF; } .hh-form .dots i.l { background: rgba(228,0,43,.75); }
.hh-streak { margin-top: 10px; font-size: 13px; color: var(--muted); } .hh-streak b { color: var(--fg); } .hh-streak b.pos { color: var(--good); } .hh-streak b.neg { color: var(--bad); }
.hh-vs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-inline: 1px solid var(--line); text-align: center; padding: 10px; }
.hh-vs b { font-size: 26px; font-weight: 900; letter-spacing: 1px; background: linear-gradient(90deg, #E4002B, #1F6BFF); -webkit-background-clip: text; background-clip: text; color: transparent; animation: hh-glow 3s ease-in-out infinite; }
@keyframes hh-glow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 10px rgba(130,80,200,.55)); } }
.hh-vs span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
@keyframes hh-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.hh-go .hh-form .dots i { animation: hh-pop .35s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 60ms + .3s); }
.hh-sec { margin-top: 52px; } .hh-sec .sec-head { margin-bottom: 16px; }
.hh-key { display: flex; gap: 14px; font-size: 13px; font-weight: 700; } .hh-key .ai { color: var(--good); } .hh-key .me { color: var(--bad); }
.hh-key span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: currentColor; margin-inline-end: 6px; vertical-align: middle; }
/* duel bars: robot on the right, RYUGA on the left, both grow out from the middle */
.hh-duel { background: var(--s1); border-radius: var(--r2); box-shadow: var(--edge); padding: 6px 0; }
.du { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 22px; }
.du + .du { border-top: 1px solid var(--line); }
.du-k { text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; } .du-k small { display: block; font-size: 11px; color: var(--mu2, var(--muted)); font-weight: 600; }
.du-s { display: flex; align-items: center; gap: 12px; } .du-s b { font-size: 18px; font-weight: 800; min-width: 62px; color: var(--muted); transition: color .4s; }
.du-s.ai b { text-align: start; } .du-s.me b { text-align: end; }
.du-b { flex: 1; height: 10px; border-radius: 10px; background: var(--s3); display: flex; overflow: hidden; }
.du-s.ai .du-b { justify-content: flex-end; } .du-s.me .du-b { justify-content: flex-start; }
.du-b i { display: block; height: 100%; width: 0; border-radius: 10px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.hh-go .du-b i { width: var(--w); }
.du-s.ai .du-b i { background: rgba(31,107,255,.35); } .du-s.me .du-b i { background: rgba(228,0,43,.35); }
.du.w-ai .du-s.ai .du-b i { background: #1F6BFF; } .du.w-me .du-s.me .du-b i { background: #E4002B; }
.du.w-ai .du-s.ai b, .du.w-me .du-s.me b { color: var(--fg); }
.du.w-ai .du-s.ai b::after, .du.w-me .du-s.me b::after { content: "✓"; font-size: 12px; margin-inline: 6px; color: var(--muted); }
.hh-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.fc { background: var(--s1); border-radius: var(--r2); box-shadow: var(--edge); padding: 12px 14px; }
.fc > span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.fc > div { display: flex; justify-content: space-between; gap: 8px; } .fc b { font-size: 15px; font-weight: 800; } .fc b.ai { color: var(--good); } .fc b.me { color: var(--bad); }
/* days: scoreboard + a tile per day */
.hh-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; background: var(--s1); border-radius: var(--r2); box-shadow: var(--edge); padding: 18px 26px; }
.sb { display: flex; align-items: center; gap: 16px; } .sb.ai { justify-content: flex-start; } .sb.me { justify-content: flex-end; }
.sb span { font-weight: 800; font-size: 16px; } .sb b { font-size: 48px; font-weight: 900; line-height: 1; }
.sb.ai b, .sb.ai span { color: var(--good); } .sb.me b, .sb.me span { color: var(--bad); }
.sb-mid { text-align: center; } .sb-mid b { display: block; color: var(--muted); font-size: 22px; } .sb-mid span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hh-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
.dy { background: var(--s1); border-radius: 10px; box-shadow: var(--edge); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid rgba(var(--ink), .12); }
.dy > span { color: var(--muted); font-size: 12.5px; font-weight: 700; } .dy b { font-size: 15px; font-weight: 800; } .dy small { font-size: 11.5px; color: var(--muted); }
.dy small .pos { color: var(--good); } .dy small .neg { color: var(--bad); }
.dy.ai { border-top-color: #1F6BFF; background: linear-gradient(180deg, rgba(31,107,255,.08), transparent 70%), var(--s1); } .dy.ai b { color: var(--good); }
.dy.me { border-top-color: #E4002B; background: linear-gradient(180deg, rgba(228,0,43,.08), transparent 70%), var(--s1); } .dy.me b { color: var(--bad); }
.dy.none { opacity: .55; } .dy.none b { color: var(--muted); }
.hh-go .dy { animation: hh-pop .4s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i) * 50ms + .2s); }
/* latest picks */
.hh-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hh-pk { background: var(--s1); border-radius: var(--r2); box-shadow: var(--edge); overflow: hidden; }
.hh-pk h3 { margin: 0; padding: 14px 18px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.hh-pk h3 i { width: 10px; height: 10px; border-radius: 50%; } .hh-pk.ai h3 i { background: #1F6BFF; } .hh-pk.me h3 i { background: #E4002B; }
.hh-pk.ai h3 { background: linear-gradient(to left, rgba(31,107,255,.08), transparent); } .hh-pk.me h3 { background: linear-gradient(to left, rgba(228,0,43,.08), transparent); }
.pk { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.pk:first-child { border-top: 0; }
.pk-m b { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-m > span { display: block; font-size: 13px; color: var(--fg); opacity: .85; } .pk-m small { display: block; font-size: 11.5px; color: var(--muted); }
.pk-o { background: var(--s3); border-radius: 6px; padding: 3px 8px; font-weight: 800; font-size: 13.5px; }
.rb { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; } .rb.w { color: var(--good); background: rgba(31,107,255,.14); } .rb.l { color: var(--bad); background: rgba(228,0,43,.14); }
.hh-all { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.hh-all:hover { color: var(--fg); background: rgba(var(--ink), .02); }
.hh-how { margin: 0 0 18px; padding-inline-start: 20px; color: var(--muted); line-height: 2; } .hh-how b { color: var(--fg); }
#hh-tip .k-ai { color: var(--good); } #hh-tip .k-me { color: var(--bad); }
@keyframes hh-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hh-wait > * { opacity: 0; }
.hh-go > * { animation: hh-in .6s cubic-bezier(.2,.7,.2,1) both; } .hh-go > :nth-child(2) { animation-delay: .1s; } .hh-go > :nth-child(3) { animation-delay: .2s; } .hh-go > :nth-child(n+4) { animation-delay: .3s; }
.hh-side.pop .hh-big { animation: hh-pop .45s cubic-bezier(.3,1.4,.5,1); }
@media (max-width: 860px) { .hh-facts { grid-template-columns: 1fr 1fr; } .hh-picks { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hh { grid-template-columns: 1fr 1fr; } .hh-vs { grid-column: 1 / -1; grid-row: 1; flex-direction: row; border-inline: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .hh-side { padding: 18px 14px; } .hh-big { font-size: 38px; } .hh-who b { font-size: 15px; } .hh-who div > span { display: none; } .hh-crown { display: none; }
  .hh-mini { grid-template-columns: 1fr; gap: 6px; } .hh-mini div { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 8px; } .hh-mini b { font-size: 14px; }
  .hh-form { flex-direction: column; align-items: flex-start; gap: 6px; } .hh-form .dots i { width: 11px; height: 11px; } .hh-streak { font-size: 12px; }
  .du { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); gap: 8px; padding: 12px 12px; } .du-s { gap: 6px; } .du-s b { font-size: 14px; min-width: 40px; } .du-k { font-size: 12.5px; }
  .du.w-ai .du-s.ai b::after, .du.w-me .du-s.me b::after { display: none; }
  .hh-board { padding: 14px 16px; gap: 10px; } .sb b { font-size: 36px; } .sb span { font-size: 13px; } .sb { gap: 10px; }
  .hh-cal { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hh-wait > * { opacity: 1; } .hh-go > *, .hh-go .dy, .hh-go .hh-form .dots i, .hh-side.pop .hh-big, .hh-vs b, .hh-side.lead .hh-who > i::after { animation: none !important; } .hh-go .du-b i { transition: none; } }
/* /versus top block as a match scoreboard (2026-11-16, v3): rows mirrored around the middle */
.hx { background: linear-gradient(to left, rgba(31,107,255,.07), rgba(31,107,255,0) 45%, rgba(228,0,43,0) 55%, rgba(228,0,43,.07)), var(--s1); border-radius: var(--r2); box-shadow: var(--edge); overflow: hidden; }
.hx-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.hx-team { display: flex; align-items: center; gap: 12px; } .hx-team.me { justify-content: flex-end; text-align: left; }
.hx-team i { width: 12px; height: 12px; border-radius: 50%; flex: none; } .hx-team.ai i { background: #1F6BFF; } .hx-team.me i { background: #E4002B; }
.hx-team b { display: block; font-size: 18px; font-weight: 800; } .hx-team b .ltr { white-space: nowrap; display: inline; } .hx-team div > span { display: block; color: var(--muted); font-size: 12.5px; }
.hx-vs { font-size: 22px; font-weight: 900; letter-spacing: 1px; background: linear-gradient(90deg, #E4002B, #1F6BFF); -webkit-background-clip: text; background-clip: text; color: transparent; animation: hh-glow 3s ease-in-out infinite; }
.hx-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px 28px 12px; }
.hx-n { display: flex; flex-direction: column; } .hx-n.ai { align-items: flex-start; } .hx-n.me { align-items: flex-end; }
.hx-n b { font-size: 56px; font-weight: 800; line-height: 1; } .hx-n small { color: var(--muted); font-size: 13px; margin-top: 6px; }
.hx-lbl { color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.hx-tug { display: flex; gap: 3px; height: 8px; margin: 0 28px 8px; border-radius: 8px; overflow: hidden; }
.hx-tug i { display: block; height: 100%; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.hx-tug i.ai { background: linear-gradient(to left, #1F6BFF, #5B93FF); } .hx-tug i.me { background: linear-gradient(to right, #E4002B, #FF4D6A); }
.hx-rows { padding: 6px 28px; }
.hx-r { display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hx-r span { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hx-r b { font-size: 17px; font-weight: 700; color: var(--muted); } .hx-r b:first-child { text-align: right; } .hx-r b:last-child { text-align: left; }
.hx-r b.win { color: var(--fg); font-weight: 800; }
.hx-r b.win::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-inline: 8px; vertical-align: middle; }
.hx-r b:first-child.win::after { background: #1F6BFF; } .hx-r b:last-child.win::after { background: #E4002B; }
.hx-form { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 14px 28px 18px; border-top: 1px solid var(--line); }
.hx-form > span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.hx-form .dots { display: flex; gap: 5px; } .hx-form .dots.ai { justify-content: flex-start; } .hx-form .dots.me { justify-content: flex-start; flex-direction: row; }
.hx-form .dots.me { justify-content: flex-end; }
.hx-form .dots i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.hx-form .dots i.w { background: #1F6BFF; } .hx-form .dots i.l { background: rgba(228,0,43,.75); }
.hx-lead { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 20px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(var(--ink), .02); }
.hx-lead:empty { display: none; } .hx-lead b { color: var(--fg); font-weight: 800; }
.hx-lead i { width: 8px; height: 8px; border-radius: 50%; position: relative; } .hx-lead i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pnl-ping 2.2s ease-out infinite; }
.hx.lead-ai .hx-lead { background: linear-gradient(to left, rgba(31,107,255,.12), rgba(31,107,255,.02)); } .hx.lead-ai .hx-lead i { background: #1F6BFF; }
.hx.lead-me .hx-lead { background: linear-gradient(to right, rgba(228,0,43,.12), rgba(228,0,43,.02)); } .hx.lead-me .hx-lead i { background: #E4002B; }
.hx-lead.in { animation: hh-in .5s cubic-bezier(.2,.7,.2,1) both .5s; }
.hh-go .hx-form .dots i { animation: hh-pop .35s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 55ms + .4s); }
@media (max-width: 760px) {
  .hx-top, .hx-score { padding-inline: 14px; gap: 8px; } .hx-team div > span { display: none; } .hx-team b { font-size: 15px; } .hx-vs { font-size: 18px; }
  .hx-n b { font-size: 40px; } .hx-tug { margin-inline: 14px; } .hx-rows { padding-inline: 14px; }
  .hx-r { grid-template-columns: 1fr 112px 1fr; } .hx-r b { font-size: 14.5px; } .hx-r span { font-size: 12px; } .hx-r b.win::after { margin-inline: 4px; }
  .hx-form { padding-inline: 14px; gap: 8px; } .hx-form .dots { gap: 3px; } .hx-form .dots i { width: 9px; height: 9px; border-radius: 3px; }
  .hx-lead { font-size: 13px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .hx-vs, .hx-lead i::after, .hx-lead.in, .hh-go .hx-form .dots i { animation: none !important; } .hx-tug i { transition: none; } }

/* 2026-11-16: ticket bar items are links to the ticket on /record; the opened ticket flashes once */
a.ti { text-decoration: none; cursor: pointer; transition: color .2s, background .2s; -webkit-user-drag: none; user-select: none; }
a.ti:hover, a.ti:focus-visible { color: var(--fg); background: rgba(var(--ink), .04); }
a.ti:focus-visible { outline: 2px solid var(--good); outline-offset: -2px; }
.tape.grab a.ti { cursor: grabbing; }
.slip.flash { animation: slip-flash 1.8s ease-out 1; }
@keyframes slip-flash { 0%, 30% { box-shadow: 0 0 0 2px var(--good), 0 0 24px rgba(31,107,255,.35); } 100% { box-shadow: 0 0 0 0 transparent; } }
.slip.lost.flash { animation-name: slip-flash-r; }
@keyframes slip-flash-r { 0%, 30% { box-shadow: 0 0 0 2px var(--bad), 0 0 24px rgba(228,0,43,.3); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .slip.flash, .slip.lost.flash { animation: none; outline: 2px solid var(--good); } }

/* 2026-11-16: the app — /app guide page and the phone install banner */
.ap-hero { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--s1); margin: 8px 0 22px; flex-wrap: wrap; }
.ap-ic { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); }
.ap-hero-t { flex: 1 1 200px; display: grid; gap: 4px; }
.ap-hero-t b { font-size: 20px; }
.ap-hero-t span { color: var(--muted); font-size: 14.5px; }
.ap-tabs { margin-bottom: 14px; }
.ap-os { border: 1px solid var(--line); border-radius: 8px; background: var(--s1); padding: 20px; }
.ap-os h2, .ap-why h2 { font-size: 20px; margin: 0 0 14px; }
.ap-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.ap-steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.ap-steps li::before { content: counter(st); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--red); }
.ap-steps b { font-size: 16px; }
.ap-steps span { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.ap-k { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--s3); color: var(--fg); vertical-align: middle; }
.ap-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; }
.ap-why { margin: 30px 0 10px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ap-grid > div { border: 1px solid var(--line); border-radius: 8px; background: var(--s1); padding: 16px; display: grid; gap: 6px; }
.ap-grid span { color: var(--muted); font-size: 14px; line-height: 1.7; }

.app-bar { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 8px; border: 1px solid var(--edge, rgba(var(--ink), .14)); border-radius: 12px; background: rgba(14,16,22,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.app-bar.in { transform: none; }
.app-bar.out { transform: translateY(140%); }
.app-bar img { border-radius: 10px; flex: none; }
.app-bar > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.app-bar b { font-size: 14.5px; }
.app-bar span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .btn { flex: none; padding: 8px 14px; font-size: 14px; }
.app-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.app-x:hover { background: var(--s3); color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .app-bar { transition: none; } }
.ap-os { scroll-margin-top: 90px; }
.ap-os.flash { animation: slip-flash-r 1.8s ease-out 1; }
.ap-push { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin: -8px 0 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--s1); }
.ap-push.on { border-color: rgba(31,107,255,.4); background: linear-gradient(90deg, rgba(31,107,255,.07), transparent 60%), var(--s1); }
.ap-push-t { flex: 1 1 240px; display: grid; gap: 4px; }
.ap-push-t b { font-size: 16px; }
.ap-push-t span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.ap-apk { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; border: 1px solid rgba(228,0,43,.35); border-radius: 8px; background: linear-gradient(90deg, rgba(228,0,43,.08), transparent 70%); }
.ap-apk-t { flex: 1 1 200px; display: grid; gap: 3px; }
.ap-apk-t b { font-size: 16px; }
.ap-apk-t span { color: var(--muted); font-size: 13.5px; }
.ap-apk-steps { margin-bottom: 4px; }
.ap-or { font-size: 15px; margin: 22px 0 12px; color: var(--muted); font-weight: 700; }

/* ---------- Hidden ticket (2026-11-16): same card as the others, blurred rows under a lock until kick-off ---------- */
.tk-hid .tk-ghosts { position: relative; }
.tk-ghost { filter: blur(3px); opacity: .55; user-select: none; pointer-events: none; }
.tk-ghost .tk-team i { width: 22px; height: 22px; border-radius: 50%; background: var(--s3); flex: none; }
.tk-ghost em { display: inline-block; height: 12px; border-radius: 6px; background: rgba(var(--ink), .16); }
.tk-ghost .tk-pick em { height: 13px; background: rgba(var(--ink), .2); }
.tk-lockmsg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(var(--paper), .82), rgba(var(--paper), .35) 80%); }
.tk-lockmsg b { font-size: 17px; font-weight: 900; }
.tk-lockmsg small { color: var(--muted); font-size: 13.5px; }
.tk-lockic { width: 46px; height: 46px; border-radius: 50%; background: rgba(31,107,255,.16); box-shadow: inset 0 0 0 1px rgba(91,147,255,.4); position: relative; margin-bottom: 4px; }
.tk-lockic::before { content: ""; position: absolute; left: 50%; top: 11px; width: 14px; height: 11px; margin-left: -7px; border: 3px solid var(--good); border-bottom: 0; border-radius: 8px 8px 0 0; }
.tk-lockic::after { content: ""; position: absolute; left: 50%; top: 21px; width: 20px; height: 15px; margin-left: -10px; border-radius: 4px; background: var(--good); }
#today-list .tk.tk-hid { box-shadow: inset 0 0 0 1px rgba(91,147,255,.28), inset -3px 0 0 rgba(31,107,255,.5); }
.tk-hid .tk-foot b { letter-spacing: 1px; }
@media (max-width: 640px) { .tk-lockmsg b { font-size: 15px; } .tk-lockmsg small { font-size: 12.5px; } }

/* ================= account on every page (account.js, 2026-11-18) ================= */
.acc { display: flex; align-items: center; gap: 6px; flex: none; margin-inline-start: 4px; }
.acc-in { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.acc-in svg { width: 18px; height: 18px; }
.acc-in:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.acc-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); cursor: pointer; }
.acc-bell svg { width: 19px; height: 19px; }
.acc-bell i { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; line-height: 17px; text-align: center; }
.acc-bell i[hidden] { display: none; }
.acc-me { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 4px 0 10px; border: 0; border-radius: 999px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.acc-me img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); order: 2; }
.acc-me b { order: 1; font-weight: 800; }
.acc-pop { position: fixed; inset-inline-end: 12px; z-index: 120; width: min(300px, calc(100vw - 24px)); background: var(--s1); border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line2), 0 24px 50px rgba(0,0,0,.6); overflow: hidden; }
.acc-pop[hidden] { display: none; }
.acc-pop > a, .acc-pop > button { display: block; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 14.5px; text-align: right; cursor: pointer; }
.acc-pop > a:hover, .acc-pop > button:hover { background: var(--s2); }
.acc-pop > button { color: var(--muted); }
.acc-m-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.acc-m-h img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); }
.acc-m-h div { display: flex; flex-direction: column; min-width: 0; }
.acc-m-h div > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-m-h span { color: var(--muted); font-size: 13px; }
.acc-m-h span b { color: var(--fg); }
.acc-ntf { width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; }
.acc-ntf-h { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--s1); border-bottom: 1px solid var(--line); }
.acc-ni { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--fg); }
.acc-ni b { font-size: 14px; } .acc-ni span { color: var(--muted); font-size: 13px; line-height: 1.6; } .acc-ni small { color: var(--muted); font-size: 11px; text-align: right; }
.acc-ni.new { box-shadow: inset -3px 0 0 var(--blue); background: rgba(31,107,255,.08); }
dialog.acc-d { background: var(--s1); color: var(--fg); border: 0; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line2); padding: 20px; width: min(440px, calc(100vw - 32px)); max-height: 85vh; }
dialog.acc-d::backdrop { background: rgba(0,0,0,.7); }
dialog.acc-d h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.acc-mu { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.acc-mu a { text-decoration: underline; }
.acc-gbtn { display: flex; justify-content: center; margin: 16px 0 4px; min-height: 44px; }
.acc-field { width: 100%; background: var(--s2); color: var(--fg); border: 1px solid var(--line2); border-radius: var(--r); padding: 10px 12px; font: inherit; margin: 8px 0 2px; }
.acc-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-top: 12px; line-height: 1.6; }
.acc-err { color: var(--bad); font-size: 14px; min-height: 22px; margin-top: 6px; }
.acc-acts { display: flex; gap: 8px; margin-top: 12px; }
.acc-acts .btn { flex: 1; justify-content: center; }
.acc-d .av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0; }
.acc-d .av-opt { padding: 4px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.acc-d .av-opt img { display: block; width: 100%; height: auto; border-radius: 50%; }
.acc-d .av-opt.on { box-shadow: 0 0 0 3px var(--blue); }
.acc-toast { position: fixed; top: 76px; left: 16px; right: 16px; width: fit-content; margin-inline: auto; z-index: 130; background: #fff; color: #111; border-radius: var(--r); padding: 9px 16px; font-size: 14px; font-weight: 700; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .acc { margin-inline-start: 0; }
  .acc-in span { display: none; }
  .acc-in { width: 36px; padding: 0; justify-content: center; }
  .acc-me b { display: none; }
  .acc-me { padding: 0 4px; }
  /* signed in: picture + bell take the place of «أوراق اليوم» so the bar stays one row */
  nav.hd.acc-on .hd-cta { display: none !important; }
}
@media (max-width: 420px) { .acc-d .av-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- light theme (2026-11-18, his choice: light by day + night mode) ----------
   theme.js sets <html data-theme="light|dark"> before the first paint (phone setting, or the header ☀/☾ button).
   Same brand: red #E4002B for actions, blue #1F6BFF for profit/data, black #07080C as the text colour. */
:root[data-theme="light"] {
  --bg: #F4F5F7; --s1: #FFFFFF; --s2: #F0F2F5; --s3: #E6E9EE;
  --ink: 7,8,12; --paper: 244,245,247; --soft: #3E4452;
  --line: rgba(var(--ink), .10); --line2: rgba(var(--ink), .16);
  --fg: #07080C; --muted: #565C6A; --mu2: #80879A;
  --good: #1F6BFF; --bad: #D70029;
}
:root[data-theme="light"] .tape { background: var(--s1); }
:root[data-theme="light"] dialog, :root[data-theme="light"] .cal, :root[data-theme="light"] .tray { background: var(--s1) !important; }
:root[data-theme="light"] .chip.on, :root[data-theme="light"] .chip.on:hover, :root[data-theme="light"] .pg.on { color: #fff; }
:root[data-theme="light"] .acc-toast { background: #07080C; color: #fff; }
:root[data-theme="light"] dialog.acc-d::backdrop { background: rgba(7,8,12,.45); }
:root[data-theme="light"] .acc-pop, :root[data-theme="light"] .app-bar { box-shadow: 0 12px 32px rgba(7,8,12,.14), inset 0 0 0 1px var(--line); }
/* the logo is drawn for black: put it on a small black plate in light mode */
:root[data-theme="light"] nav.hd .brand img { background: #07080C; border-radius: 8px; padding: 4px 8px; box-sizing: content-box; height: 30px; }

/* header ☀ / ☾ button */
.hd-theme { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; transition: color .15s, background .15s; }
.hd-theme:hover { color: var(--fg); background: rgba(var(--ink), .05); }

/* ---------- soft red / blue light spots behind every page (2026-11-18, his idea: "little spots of blue and red") ----------
   One fixed layer under everything; the page itself stays flat. Stronger at night, faint in light mode. */
html { background: var(--bg); }
body { background: transparent !important; }
html::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 88% 6%, rgba(228,0,43,var(--spot-r)), transparent 70%),
    radial-gradient(42vmax 34vmax at 6% 38%, rgba(31,107,255,var(--spot-b)), transparent 70%),
    radial-gradient(36vmax 28vmax at 78% 78%, rgba(31,107,255,calc(var(--spot-b) * .7)), transparent 70%),
    radial-gradient(30vmax 24vmax at 12% 96%, rgba(228,0,43,calc(var(--spot-r) * .7)), transparent 70%);
}
:root, :root[data-theme="dark"] { --spot-r: .16; --spot-b: .18; }
:root[data-theme="light"] { --spot-r: .06; --spot-b: .08; }

/* ---------- phones: bottom bar on every page (2026-11-20, footer.js) ---------- */
.bnav { display: none; }
@media (max-width: 760px) {
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 95; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--s1); border-top: 1px solid var(--line2);
    box-shadow: 0 -10px 30px rgba(0,0,0,.28); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; min-width: 0;
    color: var(--muted); font-size: 11.5px; font-weight: 800; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .bnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bnav i { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background .2s, transform .15s; }
  .bnav svg { width: 22px; height: 22px; }
  .bnav a[aria-current] { color: var(--fg); }
  .bnav a[aria-current] i { background: rgba(228,0,43,.15); color: var(--red); }
  .bnav a:active i { transform: scale(.9); }
  body.has-bnav { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-bnav .app-bar { bottom: calc(74px + env(safe-area-inset-bottom)) !important; }
}
:root[data-theme="light"] .bnav { box-shadow: 0 -6px 20px rgba(7,8,12,.08); }
:root[data-theme="light"] .bnav a[aria-current] i { background: rgba(228,0,43,.10); }
/* phones: «المزيد» sheet above the bottom bar; the ☰ menu is gone on phones (2026-11-20) */
.bn-sheet { display: none; }
@media (max-width: 760px) {
  nav.hd .hd-menu { display: none !important; }
  .bnav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; min-width: 0; border: 0; background: none; font: inherit;
    color: var(--muted); font-size: 11.5px; font-weight: 800; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bnav button[aria-current], .bnav.more-open button { color: var(--fg); }
  .bnav button[aria-current] i, .bnav.more-open button i { background: rgba(228,0,43,.15); color: var(--red); }
  .bnav.more-open a[aria-current] { color: var(--muted); }
  .bnav.more-open a[aria-current] i { background: none; color: inherit; }
  .bnav button:active i { transform: scale(.9); }
  .bn-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 101; }
  .bnav.more-open { z-index: 102; }
  .bn-back { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: bnFade .2s ease both; }
  .bn-panel { position: absolute; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); padding: 14px 14px 16px; background: var(--s1);
    border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; box-shadow: 0 -16px 40px rgba(0,0,0,.35); animation: bnUp .25s cubic-bezier(.2,.9,.3,1) both; }
  .bn-h { display: block; font-size: 15px; font-weight: 900; margin: 0 4px 12px; }
  .bn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bn-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--s2);
    border: 1px solid var(--line); color: var(--fg); font-size: 12.5px; font-weight: 800; text-align: center; text-decoration: none; line-height: 1.3; }
  .bn-grid a i { display: grid; place-items: center; color: var(--muted); }
  .bn-grid svg { width: 22px; height: 22px; }
  .bn-grid a[aria-current] { border-color: var(--red); }
  .bn-grid a[aria-current] i { color: var(--red); }
}
:root[data-theme="light"] .bn-back { background: rgba(7,8,12,.35); }
@keyframes bnUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bnFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bn-panel, .bn-back { animation: none; } }
:root[data-theme="light"] .bnav.more-open a[aria-current] i { background: none; }

/* 2026-11-23: folded tickets keep their matches + picks visible (sumLegs in index.html) */
.tk-sum { display: none; }
.tk.small .tk-sum { display: grid; gap: 6px; width: 100%; padding-top: 12px; border-top: 1px dashed var(--line); }
.tk.small .tk-meta .tk-day { display: none; }
.tk-sl { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; font-size: 14px; }
.tk-sl-tm { color: var(--muted); font-size: 13px; }
.tk-sl-m { color: var(--fg); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sl-p { color: var(--soft); font-size: 13px; white-space: nowrap; }
.tk-sl-o { color: var(--fg); min-width: 36px; text-align: end; }
.tk-sl.won .tk-sl-o { color: var(--good); }
.tk-sl.lost .tk-sl-o { color: var(--bad); text-decoration: line-through; }
.tk-sl-more { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) {
  .tk-sl { grid-template-columns: auto 1fr auto; row-gap: 2px; }
  .tk-sl-p { grid-column: 2; grid-row: 2; }
  .tk-sl-o { grid-column: 3; grid-row: 1 / span 2; }
}
