@font-face {
  font-family: Roboto;
  src: url("app-assets/roboto-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Roboto;
  src: url("app-assets/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: Roboto, system-ui, sans-serif;
  background: #0c111d;
  color: #f3f5fa;
  --panel: #161e30;
  --tile: #222a3c;
  --hover: #2c374f;
  --text-secondary: #aab4c8;
  --stroke: #ffffff12;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #a3bff4; outline-offset: 3px; }
img { display: block; object-fit: contain; }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--stroke);
  background: #0e1422;
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; border-radius: 10px; }
.brand img { width: 108px; height: 46px; }

.top-nav { display: flex; align-items: center; gap: 5px; }

.top-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding-inline: 16px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 650;
}

.top-nav .nav-active,
.top-nav a:hover { background: var(--tile); }

.age {
  display: grid;
  margin-left: auto;
  min-width: 36px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

main { padding-block: 32px 52px; }
h1 { margin: 0 0 20px; font-size: 36px; font-weight: 750; letter-spacing: -.03em; }
h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.2; letter-spacing: -.016em; }

.sports-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 9px;
  overflow-x: auto;
  padding: 4px 4px 10px;
  margin: -4px -4px 0;
  scrollbar-width: thin;
  scrollbar-color: #3c4557 transparent;
  scroll-snap-type: x proximity;
}

.sport {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 83px;
  align-items: flex-start;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 12px 13px;
  background: var(--tile);
  overflow: hidden;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  scroll-snap-align: start;
}

.sport img {
  position: absolute;
  z-index: -1;
  right: 8px;
  bottom: 0;
  width: 54px;
  height: 54px;
  opacity: .9;
}

.sport:hover { background: var(--hover); }

.sport[aria-pressed="true"] {
  border-color: #edf0f4;
  background: #edf0f4;
  color: #101825;
}

.sport-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(255px, 330px);
  gap: 18px;
  align-items: start;
  padding-top: 23px;
}

.tournaments { display: grid; gap: 9px; }

.fixture {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}

.fixture-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--tile);
}

.fixture-icon { border-radius: 9px; }
.fixture h3 { margin: 0 0 3px; font-size: 16px; font-weight: 700; }
.fixture p { margin: 0; color: var(--text-secondary); font-size: 13px; }

.fixture-body {
  display: grid;
  gap: 7px;
  padding: 14px 15px 16px;
}

.team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 29px;
  font-size: 16px;
  font-weight: 650;
}

.team img { flex: none; }

.fixture-note { margin-top: 1px; color: var(--text-secondary); font-size: 12px; }

.league {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 8px 14px;
  background: var(--tile);
  font-size: 14px;
  font-weight: 600;
}

.league img { border-radius: 8px; }

.entry {
  margin-top: 43px;
  padding: 23px 19px 19px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, #26314c, var(--panel) 64%);
  text-align: center;
}

.entry-ball { margin: 0 auto 15px; }
.entry h2 { margin: 0 0 9px; }
.entry p { margin: 0 0 20px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }

.open-topx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 47px;
  padding: 9px 14px;
  border: 1px solid #82be5465;
  border-radius: 11px;
  color: #101a12;
  background: linear-gradient(#8cec5b, #65ba3e);
  font-size: 15px;
  font-weight: 750;
  text-align: left;
}

.open-topx:hover { background: linear-gradient(#a0f875, #76c94d); }
.open-topx span { font-size: 19px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 69px;
  border-top: 1px solid var(--stroke);
  color: var(--text-secondary);
  font-size: 12px;
}

@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: calc(100% - 28px); }
  .header-row { min-height: 63px; gap: 12px; }
  .brand img { width: 89px; height: 39px; }
  .top-nav a { min-height: 32px; padding-inline: 10px; font-size: 13px; }
  main { padding-block: 23px 35px; }
  h1 { margin-bottom: 14px; font-size: 30px; }
  h2 { margin-bottom: 12px; font-size: 21px; }
  .sports-nav { grid-auto-columns: minmax(97px, 1fr); gap: 7px; }
  .sport { min-height: 72px; padding: 10px; font-size: 13px; }
  .sport img { width: 44px; height: 44px; right: 6px; }
  .sport-layout { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-top: 10px; }
  .entry {
    grid-row: 1;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    margin: 0;
    padding: 14px;
    column-gap: 12px;
    text-align: left;
  }
  .entry-ball { grid-column: 1; grid-row: 1 / 3; width: 45px; height: 45px; margin: 0; align-self: center; }
  .entry h2, .entry p { grid-column: 2; }
  .entry h2 { margin-bottom: 3px; font-size: 18px; }
  .entry p { margin-bottom: 0; font-size: 13px; }
  .open-topx { grid-column: 1 / -1; margin-top: 12px; min-height: 43px; }
}

.game-catalog { padding: clamp(18px,4vw,44px) 0 32px; scroll-margin-top: 90px; }
.game-catalog h1 { margin: 0 0 18px; font-size: clamp(28px,4vw,42px); }
.game-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.game-filters button { color: #f4f6fb; background: #1a2639; border: 1px solid #344055; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.game-filters button[aria-pressed="true"] { color: #111722; background: #fbd340; border-color: #fbd340; font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px; align-items: start; }
.game-card { background: #122034; border: 1px solid #2d3a4f; border-radius: 12px; overflow: hidden; }
.game-card[hidden] { display: none; }
.game-card img { width: 100%; height: auto; aspect-ratio: 5/3; object-fit: contain; background: #192840; display: block; }
.game-card > div { padding: 12px; }
.game-card h3 { margin: 4px 0 12px; font-size: 17px; }
.game-category { margin: 0; font-size: 12px; color: #a4b3ca; }
.game-card summary { cursor: pointer; color: #fbd340; }
.game-card details p { font-size: 13px; color: #d2d9e6; }
.game-launch:not([hidden]) { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 6px; background: #fbd340; color: #111722; font-weight: 700; text-decoration: none; }

.game-catalog-description { margin: -8px 0 18px; color: #c5cede; }


@media (max-width: 560px) {
  main { padding-top: 14px; }
  .game-catalog { padding-top: 12px; }
  .game-catalog h1 { margin-bottom: 12px; }
  .game-catalog-description { margin: 0 0 12px; }
  .game-filters { gap: 6px; margin-bottom: 12px; }
  .game-filters button { min-height: 42px; padding: 7px 10px; font-size: 13px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: stretch; }
  .game-card > div { padding: 9px; }
  .game-card h3 { min-height: 2.4em; line-height: 1.2; margin: 4px 0 8px; font-size: 15px; }
  .game-card summary { font-size: 13px; }
  .game-launch:not([hidden]) { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; }
}

@media (max-width: 360px) {
  .header-row { gap: 6px; }
  .brand img { width: 70px; height: 34px; }
  .top-nav { gap: 2px; }
  .top-nav a { padding-inline: 6px; }
}
