@font-face {
  font-family: Circe;
  src: url("Circe-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Circe;
  src: url("Circe-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #1c2133; }
body {
  font-family: Circe, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #c4cce0;
  background: #1c2133;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
img { max-width: 100%; display: block; }

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 20px 40px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand img { width: 42px; height: 42px; }
.brand span {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #5aa7ff;
}
.menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #21273b;
  color: #fff;
  display: grid;
  place-items: center;
}

.auth-bar {
  background: #21273b;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.btn {
  height: 45px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}
.btn-login { background: #178be3; min-width: 115px; }
.btn-register { background: #8522c1; min-width: 160px; }
.btn svg { width: 18px; height: 18px; }

.modes {
  background: #21273b;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 14px;
  margin-bottom: 16px;
}
.mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 0 0;
  margin: 10px 0;
  min-height: 85px;
  position: relative;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #c4cce0;
}
.mode.active { background: #272e45; }
.mode .badge {
  position: absolute;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.mode .badge img, .mode .badge svg { width: 16px; height: 16px; }
.mode .sub { font-size: 12px; font-weight: 400; color: #8b93a8; margin-top: 2px; }
.mode .amount { font-size: 12px; font-weight: 700; color: #f0a14a; margin-top: 2px; }
.mode.gray .badge { background: linear-gradient(0deg, #9da3b1, #767a8f); }
.mode.yellow .badge { background: linear-gradient(0deg, #f0cc6c, #e5a643); }
.mode.purple .badge { background: linear-gradient(0deg, #e26cf0, #ae43e5); }
.mode.violet .badge { background: linear-gradient(0deg, #8e6cf0, #6582fb); }
.mode.blue .badge { background: linear-gradient(0deg, #6ca1f0, #65cffb); }
.mode.green .badge { background: linear-gradient(0deg, #53e2a4, #4ce899); }
.mode.orange .badge { background: linear-gradient(0deg, #f0856c, #e55a43); }

.hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 173px;
  background: #15192a center/cover no-repeat;
}
.hero.weekly { background-image: url("weekly-banner.png"); }
.hero.tourney { background-image: url("tournament-banner.png"); display: none; }
.hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.hero-nav button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
}
.timer {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  color: #fff;
  text-align: center;
}
.timer b { display: block; font-size: 18px; line-height: 1; }
.timer span { font-size: 11px; opacity: .85; }

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}
.search, .providers {
  background: #21273b;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #c4cce0;
}
.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #c4cce0;
  font: 400 15px Circe, sans-serif;
}
.search svg, .providers svg { opacity: .8; flex-shrink: 0; }
.providers { justify-content: space-between; gap: 8px; font-weight: 700; position: relative; }
.providers-menu {
  display: none;
  position: absolute;
  top: 56px;
  right: 0;
  left: 0;
  background: #21273b;
  border-radius: 10px;
  padding: 8px;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.providers.open .providers-menu { display: block; }
.providers-menu button {
  width: 100%;
  background: none;
  color: #c4cce0;
  text-align: left;
  padding: 10px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.providers-menu button:hover { background: #272e45; }
.online {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #21273b;
  color: #3ddc84;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.online svg { color: #8b93a8; }

.chips {
  background: #1a1f31;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 40px;
  border-radius: 8px;
  padding: 0 15px;
  background: transparent;
  color: #c4cce0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.chip.active { background: #218cf9; color: #fff; }

.page-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .page-title { font-size: 28px; }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #c4cce0;
}
.section-title i { color: #5aa7ff; }

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #21273b;
  height: 160px;
}
.card.big { height: 330px; grid-row: span 2; }
.card img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0a09;
}
.card .info {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover .info { opacity: 1; }
.card .provider {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.card .demo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 40px;
  border-radius: 8px;
  background: #ffab03;
  color: #fff;
  font-weight: 600;
}
.card .name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 0 15px;
}

.more {
  width: 100%;
  height: 45px;
  border-radius: 10px;
  background: linear-gradient(0deg, #6ca1f0, #65cffb);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.more[hidden] { display: none; }

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 8px 0 16px;
}
.about article {
  background: rgba(33, 39, 59, .5);
  border-radius: 10px;
  padding: 20px 22px;
}
.about h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.about p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #8b93a8;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
}

.footer {
  background: rgba(33, 39, 59, .5);
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0;
}
.footer-icons { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-icons img { width: 48px; height: 48px; object-fit: contain; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-links a:hover { color: #fff; }
.company { font-size: 13px; line-height: 1.55; color: #8b93a8; }
.company a { color: #5aa7ff; }

@media (min-width: 900px) {
  .page { padding: 18px 28px 48px; }
  .catalog { grid-template-columns: repeat(5, 1fr); }
  .card { height: 200px; }
  .card.big { height: 410px; }
  .filters { grid-template-columns: 1fr 260px 70px; }
  .modes { grid-template-columns: repeat(8, 1fr); }
  .hero { min-height: 280px; background-size: cover; }
  .auth-bar { justify-content: flex-end; background: transparent; padding: 0; }
  .top { margin-bottom: 20px; }
}

@media (min-width: 1280px) {
  .page { padding: 20px 32px 56px; }
  .catalog { grid-template-columns: repeat(6, 1fr); }
  .card { height: 210px; }
  .card.big { height: 430px; }
  .hero { min-height: 320px; }
}

@media (min-width: 1600px) {
  .catalog { grid-template-columns: repeat(7, 1fr); }
  .card { height: 220px; }
  .card.big { height: 450px; }
}
