:root {
  --bg: #0c0e0d;
  --panel: #101312;
  --card: #1b1f1e;
  --card-hover: #232827;
  --line: #242a28;
  --green: #46e05a;
  --green-dim: #2e8f3d;
  --text: #ffffff;
  --muted: #8b9491;
  --muted-2: #6d7674;
  --radius: 10px;
  --header-h: 82px;
  --sidebar-w: 214px;
  --slip-w: 300px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--sm { width: 17px; height: 17px; }
.icon--xs { width: 12px; height: 12px; }

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 30px;
  background: var(--bg);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 34px; height: 34px; }
.logo__mark svg { width: 100%; height: 100%; display: block; }
.logo__text { font-size: 27px; font-weight: 700; letter-spacing: -0.6px; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: filter 0.15s ease, background 0.15s ease;
}
.btn--signup { background: var(--green); color: #07160a; }
.btn--signup:hover { filter: brightness(1.08); }
.btn--login { background: #222726; color: var(--text); }
.btn--login:hover { background: #2c3231; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text);
  transition: background 0.15s ease;
}
.iconbtn:hover { background: #1d2221; }
.iconbtn .icon { width: 24px; height: 24px; }
.iconbtn--round { background: #1b201f; color: var(--muted); }
.iconbtn--round:hover { background: #262c2b; color: var(--text); }

/* ---------- shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--slip-w);
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ---------- sidebar ---------- */

.sidebar {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  padding: 8px 0 24px;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { width: 0; }

.sidebar__group { border-bottom: 1px solid var(--line); padding: 6px 0; }
.sidebar__group--active { padding-bottom: 12px; }

.navitem {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.navitem:hover { color: var(--text); }
.navitem__label { font-size: 15px; font-weight: 500; }

.navitem--active { color: var(--text); }
.navitem--active::before {
  content: "";
  position: absolute;
  right: 0;
  top: -6px;
  bottom: -6px;
  width: 3px;
  background: var(--green);
}

.submenu { padding: 4px 0 0 16px; }

.subitem {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding-right: 16px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.subitem:hover { color: var(--text); }
.subitem--active { color: var(--text); }
.subitem__label { font-size: 12.5px; font-weight: 500; }
.count { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }

/* ---------- content ---------- */

.content {
  grid-column: 2;
  padding: 30px 58px 60px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.page-title {
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -1.6px;
  margin-bottom: 28px;
}

/* ---------- banner ---------- */

.banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1168 / 272;
}
.banner__track { display: flex; height: 100%; transition: transform 0.45s ease; }

.slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  overflow: hidden;
  background: var(--green);
  padding-left: 4.4%;
}

.slide__copy { position: relative; z-index: 3; }

.slide__headline {
  color: #07160a;
  font-size: clamp(22px, 3.3vw, 46px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -1.4px;
  text-transform: uppercase;
  font-style: italic;
}
.slide__headline--sub { font-size: 0.6em; }

.slide__pill {
  display: inline-block;
  margin-top: 5%;
  padding: 0.42em 1.1em;
  border-radius: 999px;
  background: #dcff3c;
  color: #07160a;
  font-size: clamp(11px, 1.5vw, 20px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.slide__art { position: absolute; inset: 0; }

.bolt {
  position: absolute;
  z-index: 3;
  top: -12%;
  left: 44%;
  width: 22%;
  height: 124%;
  background: #dcff3c;
  clip-path: polygon(58% 0, 20% 52%, 46% 52%, 22% 100%, 82% 40%, 52% 40%);
}

.slide--withdrawals .slide__art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 10% 0 50%;
  background: #0d100f;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
}

.person {
  position: absolute;
  bottom: 0;
  width: 9%;
  height: 86%;
  z-index: 2;
  border-radius: 46% 46% 14% 14% / 22% 22% 6% 6%;
  background:
    radial-gradient(ellipse at 50% 11%, #e8c9a6 0 26%, transparent 27%),
    linear-gradient(160deg, #4c7f8c 0%, #2f5a68 46%, #6b8f52 100%);
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.28);
}
.person--left { left: 42%; transform: rotate(-4deg); }
.person--right { right: 14%; transform: rotate(9deg); }

.mock {
  position: absolute;
  z-index: 4;
  top: 14%;
  left: 52%;
  width: 20%;
  padding: 3% 3.2%;
  border-radius: 6px;
  background: #232827;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  font-size: 0.55vw;
}
.mock__head,
.mock__row { display: flex; align-items: center; gap: 6%; padding: 4% 0; }
.mock__row { border-top: 1px solid #333b39; }
.mock__ic,
.mock__num {
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  flex: none;
}
.mock__ic { background: #333b39; }
.mock__num { background: var(--green); color: #07160a; font-weight: 700; }
.mock__t { font-weight: 600; }
.mock__s { color: var(--muted); }
.mock__tag {
  margin-left: auto;
  padding: 0.2em 0.5em;
  border-radius: 999px;
  background: var(--green);
  color: #07160a;
  font-weight: 700;
  font-size: 0.75em;
}
.mock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4%;
  background: #07160a;
  border: 1px solid #07160a;
}
.mock__grid > div { background: var(--green); padding: 6% 8%; color: #07160a; }
.mock__k { font-size: 0.8em; font-weight: 700; }
.mock__v { font-weight: 700; }

.withdraw {
  position: absolute;
  z-index: 4;
  bottom: 8%;
  left: 55%;
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: #fff;
  color: #07160a;
  font-size: 0.72vw;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.withdraw b { padding: 0.25em 0.7em; border-radius: 999px; background: var(--green); }

.phone {
  position: absolute;
  z-index: 4;
  top: 8%;
  right: 30%;
  width: 13%;
  height: 84%;
  padding: 7% 6%;
  border-radius: 14px;
  background: #0d100f;
  border: 2px solid #1f2423;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.phone__notch {
  width: 40%;
  height: 4px;
  margin: 0 auto 12%;
  border-radius: 999px;
  background: #2a302f;
}
.phone__bar { height: 8%; margin-bottom: 8%; border-radius: 4px; background: #1c2120; }
.phone__bar--wide { height: 20%; }
.phone__cta {
  padding: 6% 0;
  border-radius: 999px;
  background: var(--green);
  color: #07160a;
  font-size: 0.6vw;
  font-weight: 700;
  text-align: center;
}

/* ---------- day tabs ---------- */

.daybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.days { display: flex; gap: 30px; }

.day {
  position: relative;
  padding: 14px 0 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.day:hover { color: var(--text); }
.day--active { color: var(--text); font-weight: 700; }
.day--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 18px;
}
.filters__left, .filters__right { display: flex; align-items: center; gap: 14px; }
.filters__right { padding-left: 26px; border-left: 1px solid var(--line); }

.circle {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #2b3130;
  background: #191d1c;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.circle:hover { color: var(--text); background: #232827; }
.circle--on { border-color: var(--green); color: var(--green); background: transparent; }

/* ---------- featured ---------- */

.featured {
  position: relative;
  border: 1px solid #2c4a30;
  border-radius: var(--radius);
  background: #16281a;
  padding: 22px 20px 26px;
  text-align: center;
  transition: background 0.15s ease;
}
.featured:hover { background: #1a3020; }
.featured__title { font-size: 17px; font-weight: 700; }
.featured__meta { margin-top: 4px; color: #b9c3bf; font-size: 14px; }

.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #46514c; }
.dot--on { background: #cfd6d3; }

/* ---------- race list ---------- */

.races { margin-top: 12px; }

.race {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  transition: background 0.15s ease;
}
.races .race:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.races .race:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.race:hover { background: var(--card-hover); }

.race__code { color: var(--muted); display: flex; }
.race__info { display: flex; flex-direction: column; min-width: 0; }

.race__badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #07160a;
  font-size: 10px;
  font-weight: 700;
  flex: none;
}

.race__name { font-size: 13.5px; font-weight: 600; }
.race__region { margin-top: 2px; color: var(--muted); font-size: 12px; }

.race__right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }

.race__time {
  padding: 3px 9px;
  border-radius: 999px;
  background: #2a2f2e;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.race__time--soon { background: #4a1f22; color: #ff6b6b; }

.race__go {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--green-dim);
  color: var(--green);
  transition: background 0.15s ease, color 0.15s ease;
}
.race__go:hover { background: var(--green); color: #07160a; }
.race__go .icon { width: 12px; height: 12px; stroke-width: 2.5; }

/* ---------- betslip ---------- */

.betslip {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: var(--slip-w);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.slip__tabs {
  display: flex;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.slip__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 18px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.slip__tab:hover { color: var(--text); }
.slip__tab--active { color: var(--text); font-weight: 700; }
.slip__tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
}

.slip__badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #262c2b;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.slip__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px 40px;
  text-align: center;
}

.slip__art { position: relative; width: 210px; height: 130px; margin-bottom: 14px; }

.card-ghost { position: absolute; border-radius: 8px; background: #1c2120; }
.card-ghost--a { top: 6px;  left: 74px; width: 96px; height: 40px; }
.card-ghost--b { top: 40px; left: 48px; width: 130px; height: 34px; background: #202625; }
.card-ghost--c { top: 78px; left: 62px; width: 116px; height: 30px; }

.slip__magnifier {
  position: absolute;
  left: 6px;
  bottom: -6px;
  width: 92px;
  height: 92px;
  fill: none;
  stroke: #eef2f0;
  stroke-width: 5;
  stroke-linecap: round;
}

.slip__title { font-size: 22px; font-weight: 700; }
.slip__sub { color: var(--muted); font-size: 13px; }

.slip__actions {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  background: #191d1c;
}

.pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: #2a2f2e;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.pill:hover { background: #363c3b; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 40px 34px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.logo--footer { margin-bottom: 46px; }

.apps { display: flex; align-items: flex-start; gap: 30px; }

.apps__qr {
  width: 128px;
  height: 128px;
  display: block;
  opacity: 0.72;
}

.apps__badges { display: flex; flex-direction: column; gap: 14px; }

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 176px;
  padding: 9px 14px;
  border: 1px solid #3d4442;
  border-radius: 7px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.store:hover { border-color: #6d7674; background: #141817; }
.store__ic { width: 22px; height: 22px; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; }
.store__small { font-size: 8px; letter-spacing: 0.3px; }
.store__big { font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }

.footer__head { font-size: 17px; font-weight: 700; margin-bottom: 26px; }

.footer__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 440px;
}

.gamble {
  margin-top: 8px;
  max-width: 440px;
  padding: 22px 22px 26px;
  border-radius: 3px;
  background: #fff;
  color: #0b0e0c;
}
.gamble__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.gamble__line { font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
.gamble__line:last-child { margin-bottom: 0; }

.footer__links { display: flex; flex-direction: column; gap: 20px; }
.footer__links a {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--text); }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.footer__legal { display: flex; gap: 32px; }
.footer__legal a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s ease;
}
.footer__legal a:hover { color: var(--text); }

.footer__social { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.footer__social a { color: inherit; transition: color 0.15s ease; }
.footer__social a:hover { color: var(--text); }
.footer__social .icon { width: 19px; height: 19px; }
.footer__18 { display: flex; }
.footer__esic { font-size: 17px; font-weight: 800; letter-spacing: -0.5px; }
.footer__esic-i { color: var(--green); }

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  .content { padding: 24px 28px 48px; }
  .page-title { font-size: 48px; }
}

@media (max-width: 1080px) {
  .shell { grid-template-columns: 74px minmax(0, 1fr) var(--slip-w); }
  .sidebar { width: 74px; }
  .navitem { justify-content: center; padding: 0; }
  .navitem__label, .submenu { display: none; }
}

@media (max-width: 1080px) {
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .footer { padding: 40px 24px 28px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 22px; align-items: flex-start; }
  .shell { grid-template-columns: 74px minmax(0, 1fr); }
  .betslip { display: none; }
  .page-title { font-size: 36px; }
  .days { gap: 18px; overflow-x: auto; }
}
