/* stake.com/ru — pixel-perfect tokens from live site scrape */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --stake-sidebar-w: 260px;
  --stake-bg-body: #1a2e39;
  --stake-bg-sidebar: #13232d;
  --stake-bg-surface: #213743;
  --stake-bg-input: rgba(0, 0, 0, 0.32);
  --stake-text: #b1bad3;
  --stake-text-bright: #f7fafc;
  --stake-blue: #1475e1;
  --stake-blue-hover: #4391e7;
  --stake-grey-btn: #395565;
  --stake-grey-btn-hover: #4a6778;
  --stake-green: #00e701;
  --stake-border: #2f4553;
  --stake-content-x: 43px;
  --stake-content-max: 1094px;
  --stake-radius: 8px;
  --stake-font: "proxima-nova", "Montserrat", ui-sans-serif, -apple-system, system-ui, sans-serif;
  --stake-fs-base: 16px;
  --stake-lh-base: 24px;
}

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

body {
  font-family: var(--stake-font);
  font-size: var(--stake-fs-base);
  line-height: var(--stake-lh-base);
  background: var(--stake-bg-body);
  color: var(--stake-text);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── SIDEBAR 260px ── */
.sb {
  width: var(--stake-sidebar-w);
  min-width: var(--stake-sidebar-w);
  height: 100vh;
  background: var(--stake-bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

.sb-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
}

.sb-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 88px;
  border-radius: 4px;
  font-size: var(--stake-fs-base);
  font-weight: 400;
  color: var(--stake-text-bright);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  transition: opacity 0.15s;
}

.sb-tab--casino.active {
  background-image: url('assets/images/tab-casino-active.svg');
}

.sb-tab--casino:not(.active) {
  background-image: url('assets/images/tab-casino.svg');
}

.sb-tab--sport.active {
  background-image: url('assets/images/tab-sports-active.svg');
}

.sb-tab--sport:not(.active) {
  background-image: url('assets/images/tab-sports.svg');
}

.sb-tab:hover {
  opacity: 0.92;
}

.sb-nav {
  flex: 1;
  padding: 4px 8px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--stake-radius);
  color: var(--stake-text);
  font-size: var(--stake-fs-base);
  font-weight: 400;
  line-height: var(--stake-lh-base);
  transition: background 0.15s, color 0.15s;
}

.sb-item--expand {
  justify-content: flex-start;
}

.sb-item-label {
  flex: 1;
}

.sb-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  margin-left: auto;
}

.sb-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--stake-text-bright);
}

.sb-item svg, .sb-item .sb-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.sb-sep {
  height: 1px;
  background: var(--stake-border);
  margin: 6px 16px;
  opacity: 0.6;
}

.sb-bottom {
  padding: 4px 8px 16px;
}

.sb-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--stake-text);
  font-size: var(--stake-fs-base);
  border-radius: var(--stake-radius);
  cursor: pointer;
}
.sb-lang:hover { background: rgba(255, 255, 255, 0.05); color: var(--stake-text-bright); }

/* ── MAIN ── */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
  background: var(--stake-bg-body);
}

/* ── HEADER 60px ── */
.hdr {
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--stake-content-x);
  flex-shrink: 0;
  background: var(--stake-bg-body);
}

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

.hdr-menu {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--stake-radius);
  color: var(--stake-text);
  transition: background 0.15s, color 0.15s;
}
.hdr-menu:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--stake-text-bright);
}
.hdr-menu svg {
  width: 20px;
  height: 20px;
}

.hdr-logo img {
  width: 80px;
  height: 40px;
  display: block;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  height: 44px;
  padding: 10px 20px;
  border-radius: var(--stake-radius);
  background: var(--stake-grey-btn);
  color: #fff;
  font-size: var(--stake-fs-base);
  font-weight: 600;
  line-height: var(--stake-lh-base);
  transition: background 0.15s;
}
.btn-login:hover { background: var(--stake-grey-btn-hover); }

.btn-register {
  height: 44px;
  padding: 10px 20px;
  border-radius: var(--stake-radius);
  background: var(--stake-blue);
  color: #fff;
  font-size: var(--stake-fs-base);
  font-weight: 600;
  line-height: var(--stake-lh-base);
  transition: background 0.15s;
}
.btn-register:hover { background: var(--stake-blue-hover); }

/* ── CONTENT ── */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--stake-content-x) 48px;
}

.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--stake-border); border-radius: 3px; }

.content-inner {
  max-width: var(--stake-content-max);
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 4px 0 28px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 3rem;
  color: var(--stake-text-bright);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  max-width: 480px;
}

.btn-hero-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 240px;
  padding: 10px 24px;
  background: var(--stake-blue);
  color: #fff;
  font-size: var(--stake-fs-base);
  font-weight: 600;
  border-radius: var(--stake-radius);
  margin-bottom: 16px;
  transition: background 0.15s;
}
.btn-hero-register:hover { background: var(--stake-blue-hover); }

.hero-social-label {
  font-size: var(--stake-fs-base);
  color: var(--stake-text);
  margin-bottom: 10px;
  line-height: var(--stake-lh-base);
}

.hero-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--stake-radius);
  background: var(--stake-bg-surface);
  border: 1px solid var(--stake-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.social-btn:hover { border-color: #557086; background: #2a4554; }
.social-btn svg { width: 20px; height: 20px; }

/* ── HERO CARDS 350×230 ── */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 420px;
  margin-left: auto;
}

.hero-card {
  position: relative;
  border-radius: var(--stake-radius);
  overflow: hidden;
  aspect-ratio: 350 / 230;
  display: block;
  transition: transform 0.15s ease;
}
.hero-card:hover { transform: scale(1.015); }

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 0 14px;
  background: rgba(19, 35, 45, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-name {
  font-size: var(--stake-fs-base);
  font-weight: 600;
  color: #fff;
  line-height: var(--stake-lh-base);
}

.hero-card-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stake-green);
  flex-shrink: 0;
}

/* ── SEARCH 50px ── */
.search-wrap {
  margin-bottom: 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  background: var(--stake-bg-input);
  border-radius: var(--stake-radius);
  padding: 0 12px;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: #557086;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--stake-text-bright);
  font-size: var(--stake-fs-base);
  font-family: var(--stake-font);
  line-height: var(--stake-lh-base);
}
.search-bar input::placeholder { color: #557086; }

/* ── SECTIONS ── */
.trending { margin-bottom: 24px; }

.trending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  height: 28px;
}

.trending-title {
  font-size: var(--stake-fs-base);
  font-weight: 400;
  color: var(--stake-text);
  line-height: var(--stake-lh-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trending-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--stake-text);
}

.trending-all {
  font-size: var(--stake-fs-base);
  color: var(--stake-text);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.trending-all:hover { color: var(--stake-text-bright); }

.trending--top { margin-bottom: 8px; }

/* Top games: always one row of 4 smaller squares */
.games-scroll.games-scroll--top,
#top-games {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  justify-content: start !important;
  max-width: 500px !important;
  width: 100%;
  padding-bottom: 24px !important;
}
.games-scroll.games-scroll--top .game-tile,
#top-games .game-tile {
  max-width: none !important;
  width: 100% !important;
  background: #213743;
}
.games-scroll.games-scroll--top .game-img,
#top-games .game-img,
.game-img--square {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center;
  background: #213743 !important;
}

/* Game tiles: landscape ~339×180 to match Pragmatic thumbs (no side crop) */
.games-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  justify-content: start;
  padding-bottom: 80px;
}

.game-tile {
  width: 100%;
  max-width: 220px;
  border-radius: var(--stake-radius);
  overflow: hidden;
  display: block;
  transition: transform 0.15s;
  background: #0f212e;
  box-shadow: inset 0 0 0 1px rgba(47, 69, 83, 0.6);
}
.game-tile:hover { transform: scale(1.03); }

.game-img {
  width: 100%;
  aspect-ratio: 339 / 180;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: var(--stake-radius);
  background: #0f212e;
}

/* ── CHAT ── */
.float-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stake-bg-surface);
  border: 1px solid var(--stake-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 100;
  transition: transform 0.15s, background 0.15s;
}
.float-chat:hover { transform: scale(1.06); background: #2a4554; }
.float-chat svg { width: 22px; height: 22px; color: var(--stake-text-bright); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cards { max-width: 520px; }
}

@media (max-width: 768px) {
  .sb { display: none; }
  :root { --stake-content-x: 16px; }
}
