/* The base styles every public page of the record site shares (they used to sit inside index.html). motion.css and home.css are loaded after this. */
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(/fonts/cairo-arabic-700-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: 700; font-display: swap; src: url(/fonts/cairo-latin-700-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: 900; font-display: swap; src: url(/fonts/cairo-arabic-900-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: 900; font-display: swap; src: url(/fonts/cairo-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212, U+2713, U+2715; }
:root { --bg: #07080C; --panel: #12151D; --row: #171B25; --line: rgba(var(--ink), .08); --red: #E4002B; --red2: #8F001B; --blue: #1F6BFF; --fg: #fff; --muted: #9AA3B2; --good: #6EA0FF; --bad: #FF5A77; }
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Cairo, Arial, sans-serif; font-weight: 700; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1000px 700px at 110% -10%, rgba(31,107,255,.20), transparent 60%), radial-gradient(1000px 700px at -10% 40%, rgba(228,0,43,.16), transparent 60%); }
a { color: inherit; text-decoration: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(var(--paper), .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: 1px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { background: var(--red); padding: 0 8px; transform: skewX(-12deg); display: inline-block; font-size: 14px; }
.links { display: flex; gap: 6px; }
.links a { padding: 6px 12px; border-radius: 20px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.links a:hover { color: var(--fg); background: var(--row); }

/* hero */
.hero { padding: 48px 0 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.kicker { display: inline-block; background: var(--red); transform: skewX(-12deg); padding: 2px 18px 6px; font-weight: 900; font-size: 16px; letter-spacing: 1px; }
.kicker span { display: inline-block; transform: skewX(12deg); }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 900; line-height: 1.15; margin: 14px 0 8px; }
h1 em { font-style: normal; color: var(--red); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.8; margin: 0 0 20px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 900; font-size: 16px; background: var(--row); border: 1px solid var(--line); }
.btn.red { background: var(--red); border-color: var(--red); }
.money { border-radius: 28px; padding: 22px 26px; background: linear-gradient(135deg, var(--blue), #0F3FA8); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.money.down { background: linear-gradient(135deg, var(--red), var(--red2)); }
.money .lbl { font-weight: 900; font-size: 22px; }
.money .big { font-size: clamp(56px, 10vw, 92px); font-weight: 900; line-height: 1.05; margin: 6px 0; text-align: left; }
.money .row { display: flex; justify-content: space-between; opacity: .9; font-size: 15px; }
.money svg { width: 100%; height: 90px; margin-top: 10px; display: block; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 8px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.tile b { display: block; font-size: 34px; font-weight: 900; line-height: 1.25; }
.tile span { color: var(--muted); font-size: 14px; }
.tile.w { border-top: 4px solid var(--blue); } .tile.l { border-top: 4px solid var(--red); }

section { padding: 34px 0 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
h2 { font-size: 30px; font-weight: 900; margin: 0; }
h2::before { content: ""; display: inline-block; width: 10px; height: 26px; background: var(--red); transform: skewX(-12deg); margin-inline-end: 12px; vertical-align: -3px; }

/* tags and the Telegram link inside a ticket */
.tg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tg-t { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 26px; line-height: 1; border-radius: 13px; padding: 0 11px; font-size: 12px; font-weight: 700; color: var(--fg); background: rgba(var(--ink), .07); border: 1px solid var(--line); white-space: nowrap; }
.tg-t.live { background: var(--red); border-color: var(--red); } .tg-t.late { background: rgba(245,164,0,.18); border-color: rgba(245,164,0,.6); }
.tg-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 16px 12px; min-height: 44px; border-radius: 999px; background: var(--blue); font-weight: 900; font-size: 15px; }
.slip.hid { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-style: dashed; border-color: rgba(var(--ink), .2); }
.slip.hid .t { flex: 1; min-width: 0; font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip.hid .see { flex: none; display: inline-flex; align-items: center; height: 34px; border-radius: 17px; padding: 0 14px; background: var(--blue); font-weight: 900; font-size: 13px; white-space: nowrap; }
/* today's slips (bet-slip look) */
.today { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ticket { background: #fff; color: #111; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.ticket .top { background: var(--red); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; }
.ticket .top b { font-size: 22px; font-weight: 900; }
.ticket .leg { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 2px solid #eee; }
.ticket .leg:last-of-type { border-bottom: 0; }
.ticket .crests { display: flex; direction: ltr; }
.ticket .crests img { width: 34px; height: 34px; object-fit: contain; }
.ticket .info { flex: 1; min-width: 0; }
.ticket .pick { font-weight: 900; font-size: 17px; }
.ticket .sub { color: #777; font-size: 12px; }
.ticket .odd { background: #f1f2f4; border-radius: 10px; padding: 2px 10px; font-weight: 900; direction: ltr; }
.ticket .foot { background: #111; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; direction: ltr; }
.ticket .foot b { font-size: 30px; font-weight: 900; }
.ticket .foot span { color: var(--muted); letter-spacing: 2px; font-size: 13px; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: 20px; padding: 26px; text-align: center; color: var(--muted); }

/* chart */
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.chart-card svg { width: 100%; height: auto; display: block; }

/* filters + list */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 20px; background: var(--row); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; }
.chip.on { background: var(--fg); color: #111; border-color: var(--fg); }
.list { display: grid; gap: 12px; margin-top: 14px; }
#record { scroll-margin-top: 72px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.pick-month { background: var(--row); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font: inherit; font-size: 14px; color-scheme: dark; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pg { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--row); border: 1px solid var(--line); color: var(--fg); cursor: pointer; font: inherit; font-size: 14px; }
.pg.on { background: var(--fg); color: #111; border-color: var(--fg); font-weight: 900; }
.pg:disabled { opacity: .35; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 2px; }
.slip { background: var(--panel); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; }
.slip.won { border-color: rgba(31,107,255,.8); } .slip.lost { border-color: rgba(228,0,43,.6); }
.slip summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.slip summary::-webkit-details-marker { display: none; }
.slip .d { color: var(--muted); width: 50px; direction: ltr; text-align: right; }
.slip .t { flex: 1; font-weight: 900; font-size: 17px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip .mini { display: flex; direction: ltr; }
.slip .mini img { width: 26px; height: 26px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; margin-left: -6px; border: 2px solid var(--panel); }
.slip .o { background: #fff; color: #111; border-radius: 9px; padding: 0 8px; font-weight: 900; direction: ltr; }
.slip .pl { font-weight: 900; width: 74px; text-align: center; direction: ltr; color: var(--muted); }
.slip.won .pl { color: var(--good); } .slip.lost .pl { color: var(--bad); }
.badge { border-radius: 20px; padding: 1px 12px; background: #3A4050; font-weight: 900; font-size: 14px; white-space: nowrap; }
.slip.won .badge { background: var(--blue); } .slip.lost .badge { background: var(--red); }
.legs { border-top: 2px dashed var(--line); }
.lg { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.lg:last-child { border-bottom: 0; }
.mk { width: 26px; height: 26px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: #3A4050; font-size: 14px; }
.lg.won .mk { background: var(--blue); } .lg.lost .mk { background: var(--red); } .lg.pending .mk { background: rgba(228,0,43,.5); }
.lg .tm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 900; }
.lg .tm img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.lg .sc { font-weight: 900; font-size: 18px; direction: ltr; }
.lg .pk { grid-column: 2 / 4; }
.lg.stake { font-size: 14px; padding: 8px 16px; }
.lg.lost .pk b { text-decoration: line-through; text-decoration-color: var(--red); }
.lg .mt { grid-column: 2 / 4; color: var(--muted); font-size: 12px; direction: ltr; text-align: right; }

/* how */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; line-height: 1.8; }
.how b { display: block; font-size: 20px; font-weight: 900; margin-bottom: 4px; }
footer { color: var(--muted); text-align: center; font-size: 13px; padding: 40px 0 50px; line-height: 1.9; }
.ld { color: var(--muted); padding: 40px 0; text-align: center; }

.tiles { grid-template-columns: repeat(6, 1fr); }
.note { color: var(--muted); font-size: 14px; margin: 6px 2px 0; line-height: 1.8; }
.pickday { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.pickday input { background: var(--row); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font: inherit; color-scheme: dark; }
.slip .no { background: var(--red); color: #fff; border-radius: 8px; padding: 0 8px; font-weight: 900; direction: ltr; }
.chart-box { position: relative; touch-action: pan-y; }
.chart-box svg { cursor: crosshair; direction: ltr; } /* axis labels read left-to-right in every browser (Safari ignores the attribute) */
.chart-box text { font-family: Cairo, Arial, sans-serif; font-weight: 700; }
.tip { position: absolute; top: 0; pointer-events: none; background: #fff; color: #111; border-radius: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.6; box-shadow: 0 14px 34px rgba(0,0,0,.5); opacity: 0; transform: translate(-50%, -110%); white-space: nowrap; transition: opacity .12s; }
.tip b { font-weight: 900; }
.tip .pos { color: #1F6BFF; } .tip .neg { color: #E4002B; }
.hint { font-size: 13px; margin-top: 6px; }
/* motion: all of it stops for people who ask for reduced motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 72% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(240%) skewX(-18deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes areaIn { from { opacity: 0; } to { opacity: 1; } }
.motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 60ms); }
.motion .rv.seen { opacity: 1; transform: none; }
.in { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.btn { transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(var(--ink), .3); }
.btn:active { transform: scale(.96); }
.money { position: relative; overflow: hidden; }
.money::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(var(--ink), .14), transparent); animation: shine 6s ease-in-out infinite; pointer-events: none; }
.tile { transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(var(--ink), .22); }
.slip { transition: transform .2s, box-shadow .2s; }
.slip:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.slip summary .chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .28s; }
.slip[open] summary .chev { transform: rotate(225deg); margin-top: 3px; }
.legs { overflow: hidden; }
.chip { transition: transform .15s, background .2s, color .2s; }
.chip:hover { color: var(--fg); transform: translateY(-1px); }
.chip.on:hover { color: #111; }
.pg { transition: transform .15s, background .2s; }
.pg:hover:not(:disabled) { transform: translateY(-2px); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .chart-card:not(.seen) .draw { stroke-dashoffset: 1; }
.motion .chart-card:not(.seen) .area, .motion .chart-card:not(.seen) .pt { opacity: 0; }
.motion .chart-card.seen .draw { stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3,.6,.3,1) forwards; }
.motion .chart-card.seen .area { animation: areaIn .9s .5s both; }
.motion .chart-card.seen .pt { transform-box: fill-box; transform-origin: center; animation: dot .3s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d) * 1ms); }
/* upcoming matches */
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 12px -16px 0; padding: 4px 16px 6px; }
.rail::-webkit-scrollbar { display: none; }
.mc { flex: none; width: 216px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 11px 12px; transition: transform .2s, border-color .2s; }
.mc:hover { transform: translateY(-3px); border-color: rgba(31,107,255,.8); }
.mc .w { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 7px; gap: 8px; }
.mc .w span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .tm2 { display: flex; align-items: center; gap: 7px; font-weight: 900; font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .tm2 img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; flex: none; }
.mc .od { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; direction: ltr; }
.mc .od span { background: var(--row); border-radius: 8px; text-align: center; font-size: 13px; font-weight: 900; padding: 2px 0; }
.ch-count { font-weight: 900; color: var(--fg); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
#challenge { scroll-margin-top: 72px; }
.live { display: inline-flex; align-items: center; gap: 8px; border-radius: 20px; padding: 3px 14px; background: var(--row); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.live.on { color: var(--fg); border-color: rgba(31,107,255,.8); background: rgba(31,107,255,.16); }
.live.on i { background: var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110,160,255,.7); } 100% { box-shadow: 0 0 0 9px rgba(110,160,255,0); } }
@media (prefers-reduced-motion: reduce) { .live.on i { animation: none; } }
.ch { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.ch-main, .ch-top { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.ch-main { border-top: 4px solid var(--blue); }
.ch-lead { margin: 0; font-size: 18px; line-height: 1.8; }
.ch-now { margin: 10px 0 14px; color: var(--muted); }
.ch-now b { color: var(--fg); font-weight: 900; }
.ch-top-h { font-weight: 900; font-size: 17px; margin-bottom: 8px; }
.ch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ch-row .r { font-weight: 900; width: 20px; text-align: center; }
.ch-row .u { flex: 1; min-width: 0; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row .p { font-weight: 900; direction: ltr; color: var(--good); }
.ch-row .p.neg { color: var(--bad); }
.ch-empty { color: var(--muted); padding: 8px 0; line-height: 1.8; font-size: 15px; }
.ch-stats { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.ch-stats b { color: var(--fg); font-weight: 900; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile b { font-size: 26px; } .tile span { font-size: 12px; } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .how { grid-template-columns: 1fr; }
  .links a.opt { display: none; }
  .links a { padding: 6px 8px; font-size: 14px; }
  .brand span { display: none; }
  .slip .mini { display: none; }
  .ch { grid-template-columns: 1fr; }
}
