/* ============================================================
   СТИЛИ — Казик / kazik-majnkraft.site (ярко-зелёный акцент, чёрная основа)
   Кнопки: ярко-зелёный (глянцевый) градиент #7dff4d/#2fe016/#17a300
   Блик: статичный ::before + бегущий ::after (btn-shine 3.2s)
   База шапки/подвала: ЧЁРНЫЙ #000, прозрачность шапки 31% (alpha .69)
   Пилюля .lw-win — в цвет кнопок площадки (ярко-зелёный градиент, белый текст)
   ============================================================ */

:root {
  --accent:  #7dff4d;
  --accent2: #2fe016;
  --accent3: #17a300;
  --dark:   #09120c;
  --bg:     #eff8ec;
  --txt:    #123022;
  --muted:  #5e8a6b;
  --card-bg: #fff;

  --btn-pad-y: 0.74em;
  --btn-pad-x: 1.58em;
  --btn-fz:    0.98rem;
  --btn-r:     0.6em;
  --btn-shadow: 0 4px 14px rgba(23, 163, 0, 0.45);
  --shine-dur: 3.2s;
}

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

body {
  font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--txt);
  background: var(--bg);
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ---------- ШАПКА ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 20px;
  background: rgba(0, 0, 0, 0.69); color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.logo img { height: 34px; width: auto; display: block; }

/* ---------- КНОПКИ (ярко-зелёный градиент) ---------- */
.btn-reg, .btn-gold, .btn-line, .gbtn, .gc-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-fz); font-weight: 700;
  color: #fff; border-radius: var(--btn-r);
  background: linear-gradient(180deg, #7dff4d 0%, #2fe016 55%, #17a300 100%);
  box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 7px rgba(0, 0, 0, 0.22);
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
  min-height: 40px;
  text-shadow: 0 1px 2px rgba(0, 90, 25, 0.55);
}
.btn-reg:hover, .btn-gold:hover, .btn-line:hover, .gbtn:hover, .gc-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 163, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 7px rgba(0, 0, 0, 0.22);
}
/* компактная кнопка в шапке */
.btn-reg.header-btn, .gbtn.header-btn { padding: 5px 14px; font-size: 14px; min-height: 32px; }

.btn-reg::before, .btn-gold::before, .btn-line::before, .gbtn::before, .gc-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(130% 90% at 50% -12%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%);
}
.btn-reg::after, .btn-gold::after, .btn-line::after, .gbtn::after, .gc-btn::after {
  content: ""; position: absolute; top: -60%; bottom: -60%;
  left: -40%; width: 40%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
  transform: skewX(-20deg);
  animation: btn-shine var(--shine-dur) infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* Крупная ярко-зелёная кнопка (hero) */
.btn-gold {
  background: linear-gradient(180deg, #a5ff85 0%, #46e02a 45%, #17a300 100%);
  box-shadow: 0 4px 14px rgba(23, 163, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 8px rgba(0, 0, 0, 0.24);
  font-size: calc(var(--btn-fz) * 1.18);
  padding: calc(var(--btn-pad-y) * 1.15) calc(var(--btn-pad-x) * 1.3);
}

/* ---------- HERO ---------- */
.hero { position: relative; color: #fff; min-height: clamp(440px, 58vh, 620px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, rgba(10, 45, 20, .62) 0%, rgba(35, 110, 45, .42) 50%, rgba(8, 40, 18, .8) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 28px 20px 56px; width: 100%; text-align: center; pointer-events: none; }
.hero-inner .btn-gold { pointer-events: auto; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.12; margin-bottom: 18px; text-shadow: 0 3px 12px rgba(0,0,0,.6); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 46em; margin: 0 auto 28px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ---------- СЛАЙДЕР В HERO (фон) ---------- */
.hero-slider { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; margin: 0; padding: 0; }
.hsl-viewport { overflow: hidden; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.hsl-track { display: flex; width: 100%; height: 100%; will-change: transform; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.hsl-slide { flex: 0 0 100%; height: 100%; display: block; }
.hsl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsl-arrow {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(10, 55, 25, 0.45); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.hsl-arrow:hover { background: var(--accent2); }
.hsl-prev { left: 16px; }
.hsl-next { right: 16px; }
.hsl-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; display: flex; justify-content: center; gap: 9px; }
.hsl-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.45); padding: 0; transition: background .2s ease;
}
.hsl-dot.on { background: var(--accent); box-shadow: 0 0 9px rgba(46, 224, 22, 0.7); }

/* ---------- СЕКЦИЯ ИГР ---------- */
.games { padding: 56px 0; }
.games h2 { text-align: center; margin-bottom: 32px; color: var(--accent3); }
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 18px;
}
.g-card {
  background: var(--card-bg); border-radius: 14px; padding: 12px;
  box-shadow: 0 6px 18px rgba(13, 59, 30, 0.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.g-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(13, 59, 30, 0.16); }
.gc-link { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.gc-img {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 10px; background: #143a1f;
  width: 100%;
}
.gc-img img {
  width: 100%; height: auto; display: block; object-fit: contain;
  transition: transform .25s ease;
}
.gc-link:hover .gc-img img { transform: scale(1.06); }
.gc-btn { width: 100%; justify-content: center; font-size: calc(var(--btn-fz) * .96); }

/* ---------- ПОСЛЕДНИЕ ВЫИГРЫШИ ---------- */
.lwins { padding: 46px 0 34px; overflow: hidden; }
.lw-viewport { overflow: hidden; padding: 4px 0 12px; }
.lw-track { display: flex; width: max-content; will-change: transform; }
.lw-half { display: flex; }
.lw-card {
  flex: 0 0 300px; margin: 0 14px 0 0; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #cfe7d8; border-left: 3px solid var(--accent2);
  border-radius: 12px; padding: 10px 14px; box-shadow: 0 4px 14px rgba(46, 224, 22, 0.10);
  text-decoration: none; color: var(--txt); transition: transform .2s, box-shadow .2s;
}
.lw-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46, 224, 22, 0.18); }
.lw-img { flex: 0 0 54px; }
.lw-img img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.lw-info { display: flex; flex-direction: column; min-width: 0; }
.lw-win {
  align-self: flex-start; background: linear-gradient(180deg, #7dff4d, #2fe016 60%, #17a300);
  color: #fff; font-weight: 700; font-size: .9rem; padding: 2px 9px; border-radius: 999px;
  margin-bottom: 5px; box-shadow: 0 2px 6px rgba(23, 163, 0, 0.35); white-space: nowrap;
}
.lw-title { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.lw-user { color: #888; font-size: .8rem; }
.lw-anim { animation: rev-scroll 46s linear infinite; }
.lw-anim:hover { animation-play-state: paused; }

/* ---------- ОТЗЫВЫ ---------- */
.reviews { padding: 56px 0; background: var(--dark); color: #fff; }
.reviews h2 { text-align: center; margin-bottom: 32px; color: #fff; }
.rev-viewport { overflow: hidden; padding: 4px 0; }
.rev-track { display: flex; width: max-content; will-change: transform; }
.rev-half { display: flex; }
.rev-card {
  flex: 0 0 340px; margin-right: 20px;
  background: rgba(255, 255, 255, 0.06); border-left: 3px solid var(--accent2);
  border-radius: 12px; padding: 18px;
}
.rev-stars { color: #ffd700; font-size: 17px; letter-spacing: 3px; margin-bottom: 8px; line-height: 1; text-shadow: 0 1px 2px rgba(180, 128, 0, 0.45); }
.rev-text { font-style: italic; margin-bottom: 10px; font-size: .95rem; line-height: 1.5; }
.rev-author { color: #bfe3ce; font-size: .88rem; }
@keyframes rev-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.rev-anim { animation: rev-scroll 46s linear infinite; }
.rev-anim:hover { animation-play-state: paused; }

/* ---------- КОНТЕНТ (аккордеоны) ---------- */
.prose { padding: 56px 0 64px; }
.intro { font-size: 1.08rem; margin-bottom: 28px; }
.acc {
  background: var(--card-bg); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(13, 59, 30, 0.08);
  margin-bottom: 14px; overflow: hidden;
}
.acc summary { list-style: none; cursor: pointer; padding: 18px 22px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { font-size: 1.2rem; display: inline; }
.acc summary::after {
  content: "\25BE"; float: right; transition: transform .25s ease; color: var(--accent2);
}
.acc[open] summary::after { transform: rotate(180deg); }
.acc-body { padding: 0 22px 24px; }
.acc-kw { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.acc-kw span {
  background: linear-gradient(180deg, rgba(125, 255, 77, 0.16), rgba(46, 224, 22, 0.10));
  border: 1px solid rgba(46, 224, 22, 0.35); color: var(--accent3);
  padding: 4px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600;
}
.acc-body h3 { margin: 16px 0 8px; color: var(--accent3); }
.acc-body h4 { margin: 14px 0 6px; color: var(--accent2); }
.acc-body h5 { margin: 12px 0 6px; color: var(--muted); }
.acc-body p { margin-bottom: 10px; }

/* ---------- ПОДВАЛ ---------- */
.site-footer { background: #000; color: #cfe8d8; padding: 44px 20px 28px; }
.pay-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px; margin: 0 auto 26px; max-width: 860px;
}
.pay-row img {
  height: 34px; width: auto; display: block;
}
.footer-about { max-width: 760px; margin: 0 auto 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 20px; margin-top: 4px;
}
.copyright { color: #7cae8e; font-size: .82rem; }
.site-stats { margin: 0; padding: 0; font-size: 14px; text-align: center; color: #cfe8d8; letter-spacing: .3px; }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #2fe016; box-shadow: 0 0 8px rgba(46, 224, 22, 0.7); margin-right: 7px;
  animation: live-pulse 1.4s ease-in-out infinite; vertical-align: baseline;
}
.live-text { font-weight: 700; color: #7dff4d; letter-spacing: .8px; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .25; transform: scale(.8); }
}

/* ---------- РОТОР ИГР ---------- */
.grotor { padding: 0 0 22px; }
.gr-viewport { overflow: hidden; padding: 6px 0 14px; cursor: grab; touch-action: pan-y; }
.gr-track { display: flex; width: max-content; will-change: transform; }
.gr-inner { display: flex; }
.gr-half { display: flex; }
@keyframes gr-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.gr-anim { animation: gr-scroll 60s linear infinite; }
.gr-anim:hover { animation-play-state: paused; }
.gr-link {
  display: block; flex: 0 0 102px; width: 102px; margin: 0 8px 0 0;
  border-radius: 16px; overflow: hidden; cursor: grab; user-select: none; touch-action: none;
}
.gr-link img { width: 100%; height: auto; display: block; pointer-events: none; }
.gr-viewport:active { cursor: grabbing; }
@media (max-width: 720px) { .gr-link { flex-basis: 75px; width: 75px; margin-right: 6px; } }
@media (max-width: 480px) { .gr-link { flex-basis: calc(37vw - 5px); width: calc(37vw - 5px); margin-right: 6px; } }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 720px) {
  .lw-card { flex: 0 0 280px; padding: 9px 12px; gap: 10px; }
  .rev-card { flex: 0 0 300px; margin-right: 12px; padding: 15px; }
}
@media (max-width: 480px) {
  .lw-card { flex: 0 0 calc(72vw - 8px); margin-right: 12px; padding: 8px 11px; gap: 9px; }
  .lw-img, .lw-img img { width: 46px; height: 62px; }
  .lw-title { font-size: .9rem; }
  .lw-win { font-size: .84rem; }
  .rev-card { flex: 0 0 calc(72vw - 8px); margin-right: 12px; padding: 14px; }
  .reviews { padding: 40px 0; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .g-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g-card { padding: 8px; border-radius: 12px; min-width: 0; }
  .gc-img { border-radius: 8px; }
  .gc-btn { padding: .6em .8em; font-size: .88rem; min-height: 38px; }
  .site-header { padding: 8px 10px; }
  .logo img { height: 28px; }
  .btn-reg.header-btn, .gbtn.header-btn { padding: 5px 10px; font-size: 13px; min-height: 30px; }
  .hero-inner { padding: 24px 16px 52px; text-align: center; }
  .hero .btn-gold { width: 100%; min-height: 44px; align-items: center; justify-content: center; max-width: 320px; margin: 0 auto; }
  .hero-sub { margin-bottom: 24px; }
  .hsl-arrow { width: 38px; height: 38px; font-size: 22px; top: inherit; transform: none; }
  .hsl-prev { left: 10px; }
  .hsl-next { right: 10px; }
  .hsl-dots { bottom: 12px; }
  .acc summary h2 { font-size: 1.05rem; }
  .acc-body { padding: 0 16px 18px; }
  .prose, .games { padding: 40px 0; }
  .site-stats { font-size: 13px; }
}