/* The site's own look, loaded after each page's <style>. Built from the logo: the slanted red bar, the blue sliver, hard cut corners.
   No glass, no pills, no glowing cards. Without JavaScript or with reduced motion, the page stays complete and readable. */

:root {
  --red: #E4002B; --red2: #8F001B; --blue: #1F6BFF; --muted: #A4ADBC; --good: #6EA0FF; --bad: #FF5A77;
  --panel: rgba(7,8,13,.74); --row: rgba(255,255,255,.07); --line: rgba(255,255,255,.1);
  --edge: inset 0 0 0 1px rgba(255,255,255,.08);
  --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --lean: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

html, body { overflow-x: clip; }
body { background: #07080C; background-image: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- nothing shows until the background is ready; motion.js then brings the page in ---------- */
html.pre nav, html.pre main, html.pre #site-footer { visibility: hidden; }
#rm-intro { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#rm-intro img { width: min(46vw, 230px); height: auto; visibility: hidden; }

/* ---------- moving background: the same everywhere on the page, top to bottom ---------- */
#rm-aura { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
#rm-grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- header: scrolls away with the page, no bar behind it ---------- */
nav { position: relative; top: auto; z-index: 30; width: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
nav .wrap { height: 96px; padding: 0 16px; gap: 12px; }
.brand { display: flex; flex: none; }
.brand img { display: block; width: auto; height: 80px; border-radius: 0; }
.links { gap: 2px; }
.links a { position: relative; padding: 8px 11px; border-radius: 0; background: none !important; color: #C9D0DB; font-size: 15px; font-weight: 700; white-space: nowrap; }
.links a::after { content: ""; position: absolute; inset: auto 11px 2px; height: 3px; background: var(--red); transform: skewX(-12deg) scaleX(0); transform-origin: right; transition: transform .25s; }
.links a:hover { color: #fff; }
.links a:hover::after { transform: skewX(-12deg) scaleX(1); }
.menu-btn { display: none; flex: none; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn i { display: block; width: 26px; height: 3px; background: #fff; transform: skewX(-20deg); transition: transform .2s, opacity .2s; }
.menu-btn i:nth-child(2) { background: var(--red); width: 20px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.who { flex: none; }
.who .bal { clip-path: var(--lean); border: 0; border-radius: 0; background: var(--row); padding: 3px 14px; }
#record, #challenge, #today, #how { scroll-margin-top: 14px; }

/* ---------- entrances are a slow fade in place: nothing slides up ---------- */
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.in { animation-duration: .9s; animation-timing-function: ease-in-out; }
.motion .rv { transform: none; transition: opacity 1.1s ease-in-out; transition-delay: calc(var(--i, 0) * 80ms); }
.gs { transition: none !important; }

/* ---------- type ---------- */
h1 { letter-spacing: -.5px; font-size: clamp(40px, 4.6vw, 58px); line-height: 1.26; }
h1 em { position: relative; isolation: isolate; display: inline-block; color: #fff; padding: 0 .2em; margin: 0 .04em; }
h1 em::before { content: ""; position: absolute; z-index: -1; inset: .16em 0 .1em; transform: skewX(-12deg); background: linear-gradient(270deg, var(--red) 60%, var(--red2)); box-shadow: -.14em 0 0 0 #07080C, -.24em 0 0 var(--blue); }
.lead { color: #C9D0DB; }
h2 { letter-spacing: -.3px; }
h2::before { background: var(--red); box-shadow: -6px 0 0 #07080C, -11px 0 0 var(--blue); margin-inline-end: 24px; }
.note { color: #B4BCC9; }

/* ---------- buttons, tags, chips: leaning like the logo's bar ---------- */
.btn, .btn.sm { position: relative; border: 0; border-radius: 0; clip-path: var(--lean); background: rgba(255,255,255,.1); box-shadow: none; transition: background .2s, filter .2s; }
.btn:hover:not(:disabled) { transform: none; background: rgba(255,255,255,.18); }
.btn:active:not(:disabled) { transform: none; filter: brightness(.85); }
.btn.red, .btn.red:hover:not(:disabled) { background: linear-gradient(100deg, var(--blue) 0 15px, #07080C 15px 18px, var(--red) 18px); }
.btn.red:hover:not(:disabled) { filter: brightness(1.12); }
.chip, .pg, .day-btn, .tg-t, .badge, .slip.hid .see, .tg-go, .rail-go, .ft .ft-btn, .pick-month { border-radius: 0 !important; border: 0; clip-path: var(--lean); }
.chip, .pg { background: var(--row); }
.chip:hover, .pg:hover:not(:disabled) { transform: none; }
.chip.on, .chip.on:hover, .pg.on { background: #fff; color: #07080C; }
.badge { background: rgba(255,255,255,.14); padding-inline: 14px; }
.slip.won .badge { background: var(--blue); }
.slip.lost .badge { background: var(--red); }
.pick-month { background: var(--row); padding-inline: 16px; }

/* ---------- no box around the headline numbers ---------- */
.money, .money.down { background: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; overflow: visible; }
.money::after { display: none; }
.money .lbl { display: inline-block; clip-path: var(--lean); background: var(--blue); padding: 1px 18px 3px; font-size: 16px; }
.money.down .lbl { background: var(--red); }
.money .big { font-size: clamp(66px, 11vw, 112px); font-variant-numeric: tabular-nums; }
.money .row { color: #C9D0DB; opacity: 1; }
.money svg polyline { filter: none; }
.tiles { grid-template-columns: repeat(6, 1fr); gap: 0; margin: 18px 0 8px; border-block: 1px solid var(--line); }
.tile, .tile.w, .tile.l { background: none; border: 0; border-radius: 0; padding: 14px 14px 12px; box-shadow: none; }
.tile + .tile { border-inline-start: 1px solid var(--line); }
.tile:hover { transform: none; }
.tile b { font-size: 38px; font-variant-numeric: tabular-nums; }
.tile.w b { color: var(--good); } .tile.l b { color: var(--bad); }
.tile span { color: #B4BCC9; }

/* ---------- panels: flat, with a cut corner instead of rounded ones ---------- */
.chart-card, .how > div, .ch-main, .ch-top, .mc, .slip, .empty, .board, .prof, .match, dialog, .cal, .tray, .stats div {
  border: 0; border-radius: 0; background: var(--panel); box-shadow: var(--edge); clip-path: var(--cut);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
dialog, .cal, .tray { background: #10131B !important; }
.ch-main { border: 0; }
.slip { position: relative; }
.slip summary, .mc { -webkit-tap-highlight-color: transparent; } /* the grey flash iPhones put on a tapped row */
.slip:hover, .match:not(.soon):hover { transform: none; box-shadow: var(--edge); }
.slip.won, .slip.won:hover { box-shadow: inset -4px 0 0 var(--blue), var(--edge); border: 0; }
.slip.lost, .slip.lost:hover { box-shadow: inset -4px 0 0 var(--red), var(--edge); border: 0; }
.slip .no { border-radius: 0; clip-path: var(--lean); padding: 0 10px; }
.slip .o { border-radius: 0; clip-path: var(--lean); padding: 0 10px; }
.legs { border-top: 1px solid var(--line); }
.slip.hid { border: 0; box-shadow: inset -4px 0 0 rgba(255,255,255,.3), var(--edge); }
.mk { border-radius: 0; clip-path: var(--lean); }
.lg .tm img, .mc .tm2 img, .crest { border-radius: 50%; }
.tg-row { border-bottom: 1px solid var(--line); }
.tg-t { height: 26px; padding-inline: 14px; }
.tg-go { background: var(--blue); }
.slip.hid .see { background: var(--blue); }
.live { border: 0; border-radius: 0; clip-path: var(--lean); padding-inline: 18px; }
.live.on { background: rgba(31,107,255,.3); }
.live i { border-radius: 0; transform: skewX(-12deg); }
.live.on i { animation: none; background: #fff; }
.chart-box polyline { filter: none; }
.mc:hover { transform: none; }
@media (hover: hover) { .mc:hover { box-shadow: inset 0 0 0 1px rgba(31,107,255,.8); } } /* a touch leaves :hover stuck on phones */
.mc .od span { border-radius: 0; clip-path: var(--lean); }

/* ---------- tahadi page ---------- */
.tabs { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; box-shadow: none; gap: 2px; }
.tab-ind { top: auto; bottom: -1px; height: 4px; background: var(--red); border-radius: 0; }
.tab, .tab.on { border-radius: 0; color: var(--muted); padding-block: 12px; }
.tab.on { color: #fff; }
.kicker { clip-path: var(--lean); transform: none; padding: 2px 20px 5px; }
.kicker span { transform: none; }
.rk { border-color: var(--line); }
.rk.me { background: rgba(31,107,255,.2); }
.pod .col { border: 0; border-radius: 0; background: var(--panel); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.opt { border: 0; border-radius: 0; background: var(--row); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.opt:hover { transform: none; }
.opt.on { background: var(--blue); }
.warn { border-radius: 0; }
.dl, .field, .stake-row input { border-radius: 0; }
.quick button, .bal { border-radius: 0; border: 0; clip-path: var(--lean); }
.toast { border-radius: 0; clip-path: var(--lean); padding-inline: 22px; }
.tray-count { border-radius: 0; clip-path: var(--lean); }
.tp .rm { border-radius: 0; }

/* ---------- moving tape of recent tickets ---------- */
.tape { direction: ltr; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden; margin: 18px -16px 0; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tape.grab { cursor: grabbing; }
.tape-in { display: flex; width: max-content; direction: ltr; will-change: transform; }
.tape-g { display: flex; gap: 8px; padding-right: 8px; flex: none; }
.ti { display: inline-flex; align-items: center; gap: 9px; direction: rtl; white-space: nowrap; padding: 6px 18px; font-size: 14px; background: var(--row); clip-path: var(--lean); }
.ti i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-style: normal; font-size: 13px; font-weight: 900; }
.ti.won i { color: var(--good); } .ti.lost i { color: var(--bad); }
.ti b { font-weight: 900; direction: ltr; unicode-bidi: isolate; }

/* ---------- calendar ---------- */
.daypick { position: relative; }
.day-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; background: var(--row); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.day-btn b { color: #fff; font-weight: 900; }
.day-btn .chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -3px; transition: transform .2s; }
.day-btn[aria-expanded="true"] .chev { transform: rotate(225deg); margin-top: 3px; }
.cal { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 12; width: min(310px, calc(100vw - 32px)); padding: 14px; }
.cal[hidden] { display: none; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.cal-h b { font-weight: 900; }
.cal-go { width: 42px; height: 40px; border: 0; clip-path: var(--lean); background: var(--row); color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-w { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.cal .d { position: relative; aspect-ratio: 1; border: 0; background: none; color: #C9D0DB; font: inherit; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal .d:hover { background: var(--row); }
.cal .d.now { color: #fff; box-shadow: inset 0 -2px 0 rgba(255,255,255,.5); }
.cal .d.has { color: #fff; font-weight: 900; }
.cal .d.has::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 10px; height: 3px; margin-left: -5px; transform: skewX(-20deg); background: var(--red); }
.cal .d.on { background: var(--red); color: #fff; font-weight: 900; clip-path: var(--lean); }
.cal .d.on::after { background: #fff; }
.cal-today { display: block; width: 100%; min-height: 40px; margin-top: 8px; border: 0; clip-path: var(--lean); background: var(--row); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- the match row: hard stops at both ends, it can't be dragged past the cards ---------- */
.rail-wrap { margin-top: 18px; }
.rail-wrap[hidden] { display: none; }
.rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rail-bar b { font-weight: 900; font-size: 17px; }
.rail-btns { display: none; gap: 6px; }
.rail-wrap.can .rail-btns { display: inline-flex; }
.rail-go { display: inline-flex; width: 50px; height: 42px; background: var(--row); cursor: pointer; align-items: center; justify-content: center; transition: opacity .2s, background .2s; }
.rail-go:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.rail-go:disabled { opacity: .3; cursor: default; }
.rail-go i { width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.rail-go.prev i { transform: rotate(45deg); margin-left: -4px; }
.rail-go.next i { transform: rotate(225deg); margin-right: -4px; }
.rail { display: block; overflow: hidden; margin: 0 -16px; padding: 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; scroll-snap-type: none; }
.rail.grab { cursor: grabbing; }
.rail-in { display: flex; gap: 10px; width: max-content; padding: 2px 16px; will-change: transform; }
.rail-in.ease { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rail-in img { -webkit-user-drag: none; }

/* ---------- bankroll ---------- */
.how-lead { margin: 0 2px 14px; font-size: 15px; }
.how { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.units { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.units li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 12px; background: var(--row); clip-path: var(--lean); font-size: 14px; }
.units li b { display: inline; margin: 0; font-size: 14px; }

/* ---------- footer ---------- */
#site-footer { margin-top: 44px; padding: 30px 0 calc(26px + env(safe-area-inset-bottom)); text-align: start; border-top: 1px solid var(--line); background: rgba(7,8,13,.55); font-size: 14px; line-height: 1.7; color: var(--muted); }
.ft { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.ft-id { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.ft-id img { flex: none; width: auto; height: 84px; }
.ft-soc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ft .ft-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 12px; color: #fff; font-weight: 900; font-size: 15px; }
.ft .ft-btn svg { flex: none; width: 21px; height: 21px; }
.ft .ft-btn.ig { background: var(--red); }
.ft .ft-btn.tg { background: var(--blue); }
.ft .ft-btn.off { background: var(--row); color: var(--muted); }
.ft h3 { margin: 0 0 6px; color: #fff; font-size: 15px; font-weight: 900; }
.ft-col a { display: flex; align-items: center; min-height: 38px; color: #C9D0DB; }
.ft-col a:hover { color: #fff; }
.ft-end { max-width: 1040px; margin: 20px auto 0; padding: 14px 16px 0; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 860px) {
  /* the header's links move into a menu */
  nav .wrap { height: 84px; padding: 0 12px; }
  .brand img { height: 68px; }
  .menu-btn { display: inline-flex; }
  .links { display: none; position: absolute; top: 100%; inset-inline: 12px; z-index: 31; flex-direction: column; gap: 0; padding: 8px 0; background: #10131B; box-shadow: var(--edge), 0 24px 50px rgba(0,0,0,.6); clip-path: var(--cut); }
  .links.open { display: flex; }
  .links a { padding: 13px 18px; font-size: 16px; }
  .links a::after { display: none; }
  .links a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .ch-top, .ch-main { box-shadow: var(--edge); }
  .hero { padding: 6px 0 14px; gap: 22px; }
  h1 { font-size: clamp(34px, 10vw, 44px); margin-top: 4px; }
  .lead { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
  .hero .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero .cta .btn { justify-content: center; min-height: 50px; padding: 10px; font-size: 15px; }
  .hero .cta .btn.red { grid-column: 1 / -1; }
  .money .big { font-size: clamp(62px, 20vw, 88px); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile, .tile.w, .tile.l { padding: 11px 10px 9px; }
  .tile:nth-child(3n + 1) { border-inline-start: 0; }
  .tile:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .tile b { font-size: 30px; }
  .tile span { font-size: 12px; line-height: 1.4; display: block; }
  section { padding-top: 30px; }
  h2 { font-size: 25px; }
  .sec-head { align-items: center; position: relative; }
  .slip summary { gap: 7px; padding: 12px 13px 12px 11px; min-height: 54px; }
  .slip summary .t { display: none; }
  .slip summary .d { flex: 1; width: auto; text-align: start; font-size: 13px; }
  .slip .pl { width: auto; min-width: 46px; font-size: 14px; }
  .slip .badge { font-size: 12px; padding: 1px 11px; }
  .lg { padding: 10px 12px; gap: 3px 9px; }
  .lg .tm { font-size: 14px; }
  .lg .sc { font-size: 16px; }
  .lg.stake { padding-inline: 12px; line-height: 1.8; }
  .tg-row { padding: 10px 12px; }
  .slip.hid { gap: 7px; padding: 10px 13px 10px 11px; min-height: 54px; }
  .slip.hid .t { font-size: 14px; }
  .slip.hid .see { padding: 0 13px; font-size: 12px; }
  .chip { min-height: 38px; padding: 6px 15px; display: inline-flex; align-items: center; }
  .filters { gap: 10px; }
  .pick-month { min-height: 40px; }
  .pg { min-width: 46px; height: 44px; }
  .chart-card { padding: 12px; }
  .ch-main, .ch-top { padding: 15px; }
  .ch-lead { font-size: 16px; }
  .ch-main .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ch-main .cta .btn { justify-content: center; min-height: 50px; padding: 10px; font-size: 15px; }
  .mc { width: min(250px, 72vw); }
  .how { grid-template-columns: 1fr; }
  .how > div { padding: 15px; font-size: 15px; }
  .ft { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-id img { height: 72px; }
  .daypick { position: static; }
  .cal { top: 100%; left: 0; right: 0; inset-inline: 0; width: auto; max-width: 360px; margin: 8px auto 0; }
  .who a.me { display: none; }
  .tab { font-size: 13px; padding-block: 12px; }
  .opt { min-height: 46px; }
}
@media (max-width: 340px) {
  .brand img { height: 58px; }
  .slip .d { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.pre nav, html.pre main, html.pre #site-footer { visibility: visible; }
}
