﻿.home-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 32px 80px;
  display: flex; flex-direction: column; gap: 28px;
  width: 100%;
}

/* ── Верхняя сетка ── */
.home-top-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px; align-items: stretch;
}

/* ── Слайдер ── */
.hs-slider {
  position: relative; overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb),0.15);
  box-shadow: 0 0 60px rgba(var(--accent-rgb),0.14);
  display: flex;
  flex-direction: column;
}
.hs-track {
  display: flex;
  flex: 1;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hs-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.home-hero {
  position: relative; overflow: hidden;
  padding: 34px 40px; min-height: 220px;
  display: flex; align-items: center; gap: 28px;
  flex: 1;
}

/* Слайд 1 */
.home-hero-ref {
  background:
    linear-gradient(90deg, rgba(4,16,32,0.92) 35%, rgba(4,16,32,0.45) 70%, rgba(4,16,32,0.15) 100%),
    url('../../img/banners/referral-bg.png') center center / cover no-repeat;
}
.home-hero-ref::after { display: none; }

/* Слайд 2 */
.home-hero-deposit {
  background:
    linear-gradient(90deg, rgba(5,15,10,0.92) 35%, rgba(5,15,10,0.45) 70%, rgba(5,15,10,0.15) 100%),
    url('../../img/banners/deposit-bonus.png') center center / cover no-repeat;
}
.home-hero-deposit::after { display: none; }

.home-hero-info { position: relative; z-index: 2; flex: 1; }

.home-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 20px;
}
.home-hero-badge-ref {
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.18), rgba(var(--accent-rgb),0.1));
  border: 1px solid rgba(var(--accent-rgb),0.4); color: #4dd9ff;
}
.home-hero-badge-deposit {
  background: linear-gradient(135deg, rgba(74,212,118,0.15), rgba(74,212,118,0.1));
  border: 1px solid rgba(74,212,118,0.3); color: var(--green);
}

.home-hero-title {
  font-size: 32px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.8px; margin-bottom: 10px;
  background: linear-gradient(135deg, #7dd8ff, #1a9fff, #cce8ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero-deposit .home-hero-title {
  background: linear-gradient(135deg, #74ffb0, #4ad4f0, #dde4f5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
  max-width: 360px; margin-bottom: 18px;
}
.home-hero-desc strong { color: #4dd9ff; -webkit-text-fill-color: #4dd9ff; }
.home-hero-deposit .home-hero-desc strong { color: var(--green); -webkit-text-fill-color: var(--green); }

/* Stats row */
.home-ref-stats { display: flex; align-items: center; gap: 18px; }
.home-ref-stat  { display: flex; flex-direction: column; gap: 2px; }
.home-ref-val {
  font-size: 18px; font-weight: 800; line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hs-green { background: linear-gradient(135deg, #4ad476, #4ad4f0) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; }
.home-ref-lbl  { font-size: 10px; color: var(--text-mute); white-space: nowrap; }
.home-ref-stat-sep { width: 1px; height: 28px; background: rgba(var(--accent-rgb),0.2); flex-shrink: 0; }

/* Hero art */
.home-hero-art { position: relative; flex-shrink: 0; width: 130px; height: 130px; z-index: 2; }
.hero-ref-circle { position: absolute; border-radius: 50%; }
.hero-ref-c1 {
  width: 130px; height: 130px; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.1) 0%, transparent 70%);
  border: 1px solid rgba(var(--accent-rgb),0.15);
}
.hero-ref-c2 {
  width: 88px; height: 88px; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border: 1px solid rgba(var(--accent-rgb),0.28);
}
.hero-ref-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(4,16,36,0.95); border: 1.5px solid rgba(var(--accent-rgb),0.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px rgba(var(--accent-rgb),0.28);
}

/* Стрелки */
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(3,11,24,0.75); border: 1px solid rgba(var(--accent-rgb),0.2);
  color: var(--text-dim); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: all 0.2s; backdrop-filter: blur(8px);
}
.hs-arrow:hover { background: rgba(var(--accent-rgb),0.22); color: #4dd9ff; border-color: rgba(var(--accent-rgb),0.5); }
.hs-arrow-left  { left: 12px; }
.hs-arrow-right { right: 12px; }
.hs-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.hs-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; cursor: pointer; padding: 0;
  transition: all 0.2s;
}
.hs-dot.active { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 8px var(--accent); }

/* ── Боковая колонка ── */
.home-side-col { display: flex; flex-direction: column; gap: 10px; }

.home-mini-card {
  flex: 1; display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid rgba(var(--accent-rgb),0.12);
  border-radius: 16px; padding: 16px 18px;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.home-mini-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.05) 0%, transparent 60%);
  pointer-events: none;
}
.home-mini-card:hover { border-color: rgba(var(--accent-rgb),0.35); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(var(--accent-rgb),0.18); }
.home-mini-icon { font-size: 22px; flex-shrink: 0; }
.home-mini-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.home-mini-sub   { font-size: 11px; color: var(--text-mute); }

.home-promo-card {
  background: var(--bg-card); border: 1px solid rgba(var(--accent-rgb),0.12);
  border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden;
}
.home-promo-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.05) 0%, transparent 50%);
  pointer-events: none;
}
.home-promo-label { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--text-mute); text-transform: uppercase; margin-bottom: 10px; }
.home-promo-row { display: flex; flex-direction: column; gap: 7px; }
.home-promo-in {
  width: 100%; background: rgba(var(--accent-rgb),0.04);
  border: 1px solid rgba(var(--accent-rgb),0.15); border-radius: 8px;
  padding: 0 10px; height: 36px; color: var(--text); font-size: 12px;
  outline: none; font-family: var(--font); transition: border-color 0.18s;
}
.home-promo-in:focus { border-color: rgba(var(--accent-rgb),0.45); box-shadow: 0 0 14px rgba(var(--accent-rgb),0.12); }
.home-promo-btn {
  height: 36px; background: var(--gradient-accent);
  color: #fff; font-size: 12px; font-weight: 800;
  border: none; border-radius: 8px; cursor: pointer; width: 100%;
  font-family: var(--font); transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.3);
}
.home-promo-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(var(--accent-rgb),0.45); }

/* ── Секция ── */
.home-modes-hd {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--text-mute); text-transform: uppercase;
}
.home-modes-line { flex: 1; height: 1px; background: rgba(var(--accent-rgb),0.1); }

/* ── Сетка игр ── */
.home-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.home-game-card {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid rgba(var(--accent-rgb),0.12);
  border-radius: 18px; text-decoration: none;
  transition: all 0.25s; display: flex; flex-direction: column;
  cursor: pointer;
}
.home-game-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.04) 0%, transparent 50%);
  pointer-events: none;
}
.home-game-card:hover {
  border-color: rgba(var(--accent-rgb),0.38); transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(0,100,220,0.32), 0 0 0 1px rgba(var(--accent-rgb),0.12);
}

.home-game-art {
  height: 150px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-radius: 17px 17px 0 0;
}

/* Art backgrounds */
.hga-double  { background: radial-gradient(ellipse at 50% 110%, #0d0e28 0%, #05060f 80%); }
.hga-crash   { background: radial-gradient(ellipse at 50% 110%, #150e2a 0%, #05060f 80%); padding: 14px; }

/* Карточки игр с картинкой-фоном из /assets/img/games/.
   .hga-img растягивается на ВСЮ карточку (а не только верхние 150px),
   текстовые блоки .home-game-info и .home-game-bets ложатся поверх с
   нижним затемняющим градиентом для читаемости. */
.hga-img {
  position: absolute;
  inset: 0;
  height: auto !important;
  padding: 0 !important;
  border-radius: 18px;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hga-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,6,15,0.92) 0%, rgba(5,6,15,0.55) 30%, rgba(5,6,15,0.10) 55%, transparent 75%);
  pointer-events: none;
  border-radius: 18px;
}
.hga-img.hga-crash    { background-image: url('../../img/games/crash.png');    }
.hga-img.hga-double   { background-image: url('../../img/games/double.png');   }
.hga-img.hga-jackpot  { background-image: url('../../img/games/jackpot.png');  }
.hga-img.hga-coinflip { background-image: url('../../img/games/coinflip.png'); }
.hga-img.hga-upgrade  { background-image: url('../../img/games/upgrade.png');  }
.hga-img.hga-cases    { background-image: url('../../img/games/cases.png');    }

/* Карточка с картинкой: фиксируем СООТНОШЕНИЕ 16:9 (== формат картинки),
   чтобы на любом экране (десктоп/планшет/телефон) карточка имела ту же
   пропорцию, что и фон, и cover ничего не обрезал. */
.home-game-card:has(.hga-img) {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.home-game-card:has(.hga-img) .home-game-info {
  margin-top: auto;
}
.hga-jackpot { background: radial-gradient(ellipse at 50% 110%, #1a1408 0%, #05060f 80%); }
.hga-coinflip{ background: radial-gradient(ellipse at 50% 110%, #0d0e28 0%, #05060f 80%); gap: 10px; display: flex; align-items: center; justify-content: center; }
.hga-upgrade { background: radial-gradient(ellipse at 50% 110%, #081620 0%, #05060f 80%); flex-direction: row; gap: 10px; display: flex; align-items: center; justify-content: center; }
.hga-cases   { background: radial-gradient(ellipse at 50% 110%, #100e25 0%, #05060f 80%); }

/* Wheel */
.hga-wheel-ring {
  position: absolute; width: 108px; height: 108px; border-radius: 50%;
  background: conic-gradient(#1a9fff 0deg 180deg, #d4634a 180deg 330deg, #0a2040 330deg 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #fff calc(100% - 13px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #fff calc(100% - 13px));
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb),0.5));
}
.hga-wheel-inner {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(var(--accent-rgb),0.15);
}

/* Crash chart */
.hga-crash-line { width: 100%; height: 100%; }

/* Jackpot coins */
.hga-jp-coin {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #1a9fff, #c8a232);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #07090e;
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.4); position: absolute;
}
.hga-jp-coin2 { transform: translate(-22px, -4px); opacity: 0.6; width: 28px; height: 28px; font-size: 10px; }
.hga-jp-coin3 { transform: translate(22px, -4px); opacity: 0.35; width: 22px; height: 22px; font-size: 8px; }

/* Coinflip */
.hga-cf-coin { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.hga-cf-ct { background: linear-gradient(135deg, #1a9fff, #0060cc); color: #fff; box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.4); }
.hga-cf-t  { background: linear-gradient(135deg, #d4634a, #a44030); color: #fff; box-shadow: 0 4px 16px rgba(212,99,74,0.35); }
.hga-cf-vs { font-size: 11px; font-weight: 800; color: var(--text-mute); }

/* Upgrade */
.hga-upg-from, .hga-upg-to { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hga-upg-coin     { font-size: 28px; line-height: 1; }
.hga-upg-coin--gold { font-size: 32px; }
.hga-upg-val      { font-size: 10px; font-weight: 700; color: var(--text-mute); }
.hga-upg-val--gold { color: var(--cyan); }
.hga-upg-arrow    { color: var(--cyan); opacity: 0.8; }

/* Cases */
.hga-case-box {
  width: 68px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,100,220,0.16), rgba(0,60,180,0.1));
  border: 1.5px solid rgba(var(--accent-rgb),0.28); position: relative;
}
.hga-case-lid {
  position: absolute; top: -13px; left: -2px; right: -2px;
  height: 15px; border-radius: 5px 5px 0 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.2), rgba(0,80,200,0.15));
  border: 1.5px solid rgba(var(--accent-rgb),0.28); border-bottom: none;
}

.home-game-info {
  padding: 12px 15px 6px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.home-game-name { font-size: 14px; font-weight: 700; color: var(--text); }
.home-game-online {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-mute); font-weight: 600;
}
.home-online-dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.home-game-bets { padding: 0 15px 12px; font-size: 11px; color: var(--text-mute); position: relative; z-index: 1; }
.home-game-bets span { font-weight: 700; color: var(--accent); }
