:root {
  --green: #65e817;
  --green-strong: #16d51b;
  --green-soft: #90ff38;
  --bg: #121212;
  --panel: #1d1d1d;
  --muted: #8c8c8c;
  --line: #333;
  --shell-width: 480px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #404040; }
body {
  margin: 0;
  min-width: 320px;
  background: #404040;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell {
  position: relative;
  width: min(100%, var(--shell-width));
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg) url("../har/021_2-1-89_common_common_bg_pattern_tile.avif") repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
  overflow: clip;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #000;
}

.app-strip {
  height: 39px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 4px;
  background: #18d31d;
}
.strip-close {
  border: 0;
  background: transparent;
  color: #050505;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.app-strip-art { width: 235px; max-height: 34px; object-fit: contain; object-position: left center; }
.download-now {
  min-width: 73px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: #050505;
  font-size: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.main-header {
  height: 61px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid #333;
  background: #030303;
}
.menu-button {
  width: 34px;
  height: 40px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  width: 21px;
  height: 3px;
  border-radius: 3px;
  background: #a7a7a7;
  transition: transform .25s ease, width .25s ease;
}
.menu-button span:nth-child(2) { width: 14px; }
.menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.brand { min-width: 0; }
.brand img { width: 176px; height: 36px; object-fit: contain; object-position: left center; }
.auth-actions { position: relative; display: flex; gap: 8px; align-items: center; }
.auth-button {
  min-width: 84px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}
.login-button { color: #050505; border: 1px solid var(--green); background: var(--green); }
.register-button { color: var(--green); border: 1px solid var(--green); background: #050505; }
.reward-pill {
  position: absolute;
  top: -12px;
  right: -2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #05bf00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.page-content { padding: 11px 12px 94px; }
.slide { opacity: 0; transition: opacity .65s ease, transform .8s ease; transform: scale(1.025); }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.ticker {
  height: 48px;
  display: grid;
  grid-template-columns: 33px minmax(0,1fr) 39px;
  align-items: center;
  margin-top: 5px;
  color: #a9a9a9;
  overflow: hidden;
}
.ticker-speaker { width: 28px; height: 28px; object-fit: contain; filter: grayscale(.15); }
.ticker-window { overflow: hidden; white-space: nowrap; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 42s linear infinite;
}
.ticker-track span { padding-right: 70px; }
.ticker-track b { color: #0eff1a; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.message-icon { position: relative; display: grid; place-items: center; }
.message-icon img { width: 30px; height: 30px; object-fit: contain; }
.message-icon span {
  position: absolute;
  top: -8px;
  right: -1px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 12px;
  background: #f34646;
  color: #fff;
  font-size: 12px;
}

.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a {
  flex: 0 0 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #999;
  font-size: 14px;
}
.category-tabs img { width: 38px; height: 34px; object-fit: contain; }
.section-all { border: 0; background: transparent; color: #888; font-size: 14px; cursor: pointer; }

.jackpot-card {
  position: relative;
  height: 117px;
  margin: 3px 0 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.jackpot-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jackpot-card strong {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  color: #fff9be;
  font-size: clamp(24px, 7vw, 37px);
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 #a23100, 0 0 8px #ff9a00;
}
.provider-grid { gap: 14px 17px; }

.footer-area { margin: 12px -12px 0; padding: 12px 13px 22px; background: #050505; scroll-margin-top: 110px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.footer-links h3 { margin: 0 0 9px; color: #999; font-size: 15px; font-weight: 400; }
.footer-links a { display: block; margin: 0 0 9px; color: #c8c8c8; font-size: 14px; }
.license-row {
  min-height: 108px;
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 0 16px;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
  color: #8d8d8d;
}
.license-row img { width: 64px; height: 64px; }
.contact-block { padding: 17px 0; border-bottom: 1px solid #303030; }
.contact-block h3 { margin: 0 0 12px; color: #999; font-size: 16px; font-weight: 400; }
.social-icons { display: flex; gap: 12px; }
.social-icons img { width: 45px; height: 45px; }
.legal-copy { padding: 18px 12px; color: #dedede; font-size: 14px; line-height: 1.72; text-align: center; }
.compliance-logos { display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.compliance-logos img { max-width: 82px; max-height: 34px; object-fit: contain; }
.compliance-logos img:last-child { max-width: 45px; }
.copyright { display: flex; justify-content: space-between; padding-top: 15px; color: #777; font-size: 10px; }

.bottom-nav {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--shell-width));
  height: 85px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5,1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: #202020;
  border-top: 1px solid #333;
}
.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #818181;
  font-size: 14px;
}
.bottom-nav a.active { color: var(--green); }
.bottom-nav em {
  position: absolute;
  top: 4px;
  right: 11px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #ff4e4e;
  color: white;
  font-size: 11px;
  font-style: normal;
  animation: badge-pulse 1.7s ease-in-out infinite;
}
.nav-icon { position: relative; width: 29px; height: 29px; display: block; color: currentColor; }
.home-icon::before { content: ""; position: absolute; left: 5px; top: 10px; width: 18px; height: 15px; border: 2px solid currentColor; border-top: 0; border-radius: 2px; }
.home-icon::after { content: ""; position: absolute; left: 5px; top: 4px; width: 18px; height: 18px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.gift-icon::before { content: ""; position: absolute; left: 3px; top: 10px; width: 23px; height: 16px; border: 2px solid currentColor; }
.gift-icon::after { content: "✦"; position: absolute; left: 8px; top: -4px; font-size: 22px; }
.wallet-icon::before { content: ""; position: absolute; inset: 5px 1px 3px; border: 2px solid currentColor; border-radius: 2px; }
.wallet-icon::after { content: ""; position: absolute; right: 0; top: 12px; width: 10px; height: 7px; border: 2px solid currentColor; background: #202020; }
.phone-icon::before { content: ""; position: absolute; left: 8px; top: 2px; width: 13px; height: 25px; border: 2px solid currentColor; border-radius: 2px; }
.phone-icon::after { content: "•"; position: absolute; left: 13px; bottom: -2px; }
.profile-icon::before { content: ""; position: absolute; left: 10px; top: 2px; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.profile-icon::after { content: ""; position: absolute; left: 4px; bottom: 0; width: 20px; height: 12px; border: 2px solid currentColor; border-bottom: 0; border-radius: 12px 12px 0 0; }

.floating-promos { pointer-events: none; position: fixed; z-index: 70; left: 50%; bottom: 90px; width: min(100%, var(--shell-width)); height: 0; transform: translateX(-50%); }
.float-left, .float-right { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.float-left { left: 4px; }
.float-right { right: 5px; }
.floating-item { pointer-events: auto; position: relative; width: 70px; height: 70px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.floating-item img { width: 100%; height: 100%; object-fit: contain; }
.floating-item span { position: absolute; top: 0; right: 1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #710d0d; color: #fff; font-size: 17px; }
.promo-631 { animation: float-a 3.1s ease-in-out infinite; }
.promo-283 { animation: float-b 3.6s ease-in-out infinite -.7s; }
.promo-telegram { width: 77px; height: 77px; animation: telegram-wiggle 4s ease-in-out infinite; }
.promo-envelope { width: 66px; height: 66px; animation: envelope-pop 2.8s ease-in-out infinite; }
.promo-handshake { width: 72px; height: 72px; animation: handshake 3.4s ease-in-out infinite; }
.to-top {
  pointer-events: auto;
  min-width: 68px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #535353;
  border-radius: 9px;
  background: rgba(16,16,16,.94);
  color: var(--green);
  font-size: 18px;
}
.to-top small { color: #fff; font-size: 11px; }
@keyframes float-a { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes float-b { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.035); } }
@keyframes telegram-wiggle { 0%,78%,100% { transform: translate(0,0) rotate(0); } 82% { transform: translate(-4px,-3px) rotate(-6deg); } 88% { transform: translate(4px,-5px) rotate(7deg); } 94% { transform: translate(-2px,-2px) rotate(-3deg); } }
@keyframes envelope-pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09) rotate(3deg); filter: drop-shadow(0 0 8px #ff7040); } }
@keyframes handshake { 0%,100% { transform: translateX(0); } 15% { transform: translateX(-3px) rotate(-2deg); } 30% { transform: translateX(3px) rotate(2deg); } 45% { transform: translateX(0); } }
@keyframes badge-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.11); } }

.side-drawer {
  position: fixed;
  z-index: 85;
  left: 50%;
  top: 100px;
  bottom: 0;
  width: min(100%, var(--shell-width));
  transform: translateX(-50%);
  pointer-events: none;
  visibility: hidden;
}
.side-drawer.open { pointer-events: auto; visibility: visible; }
.drawer-panel {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 230px;
  background: #151515;
  transform: translateX(-102%);
  transition: transform .28s ease;
  box-shadow: 10px 0 25px rgba(0,0,0,.35);
}
.side-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.64);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .28s ease;
}
.side-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-scroll { height: 100%; overflow-y: auto; padding: 13px 12px 115px; scrollbar-width: thin; }
.language-row, .search-row {
  width: 100%; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; margin-bottom: 7px; border: 0; border-radius: 8px; background: #222; color: #b9b9b9;
}
.language-row img, .search-row img { width: 28px; height: 28px; filter: grayscale(1) brightness(1.5); }
.language-row b { margin-left: auto; color: #888; }
.search-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: white; }
.drawer-categories { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.drawer-categories a { min-height: 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border-radius: 7px; background: #212121; color: #c6c6c6; font-size: 14px; }
.drawer-categories img { width: 38px; height: 32px; object-fit: contain; }
.drawer-link-list { display: grid; gap: 7px; margin-top: 8px; }
.drawer-link-list a { height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-radius: 7px; background: #212121; color: #c6c6c6; }
.drawer-link-list img, .drawer-simple-links img { width: 28px; height: 28px; filter: grayscale(1) brightness(1.45); }
.offers-title, .quick-login-title { padding: 11px 0 8px; text-align: center; color: #999; font-size: 14px; }
.quick-login-title { text-align: left; padding-bottom: 5px; }
.offer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.offer-grid div { position: relative; height: 55px; overflow: hidden; border-radius: 6px; background: #2c75ff; }
.offer-grid div:nth-child(2) { background: #14ce46; }
.offer-grid div:nth-child(3) { background: #227eff; }
.offer-grid div:nth-child(4) { background: #3287ff; }
.offer-grid div:nth-child(5) { background: #ed1d6d; }
.offer-grid div:nth-child(6) { background: #cf31d9; }
.offer-grid div:nth-child(7) { background: #ff9200; }
.offer-grid span { position: absolute; z-index: 2; top: 5px; left: 5px; max-width: 68px; color: white; font-size: 12px; }
.offer-grid span b { padding: 1px 4px; border-radius: 8px; background: #15d11c; }
.offer-grid img { position: absolute; right: -3px; bottom: -7px; width: 78px; height: 58px; object-fit: contain; }
.drawer-simple-links { display: grid; gap: 2px; margin-top: 9px; }
.drawer-simple-links a { height: 38px; display: flex; align-items: center; gap: 12px; color: #c6c6c6; font-size: 14px; }
.drawer-simple-links img { width: 25px; height: 25px; }
.google-login { width: 100%; height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 7px; background: #222; color: #c6c6c6; }
.google-login img { width: 24px; height: 24px; }
body.drawer-open { overflow: hidden; }

@media (hover:hover) {
  .auth-button:hover, .download-now:hover { filter: brightness(1.12); }
}

@media (max-width: 430px) {
  .app-strip { padding-right: 6px; grid-template-columns: 31px minmax(0,1fr) 68px; }
  .app-strip-art { width: 215px; }
  .download-now { min-width: 66px; font-size: 9px; }
  .main-header { grid-template-columns: 32px minmax(0,1fr) auto; padding: 0 9px; }
  .brand img { width: 155px; }
  .auth-actions { gap: 7px; }
  .auth-button { min-width: 70px; height: 34px; font-size: 13px; }
  .page-content { padding-left: 9px; padding-right: 9px; }
  .provider-grid { gap: 12px 13px; }
  .jackpot-card { height: 104px; }
  .jackpot-card strong { margin-top: 32px; font-size: 26px; }
  .bottom-nav a { font-size: 12px; }
  .floating-item { width: 63px; height: 63px; }
  .promo-telegram { width: 68px; height: 68px; }
  .drawer-panel { width: 225px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* === Correções solicitadas === */
.ticker-window {
  position: relative;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  position: absolute;
  left: 100%;
  top: 50%;
  display: block;
  width: max-content;
  will-change: transform;
  animation: ticker-full-width 54s linear infinite;
  animation-delay: -13s;
}
.ticker-track span {
  display: block;
  padding-right: 0;
}
@keyframes ticker-full-width {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(calc(-100% - min(100vw, 480px)), -50%, 0); }
}

.category-tabs-shell {
  position: relative;
  min-width: 0;
}
.category-tabs {
  gap: 6px;
  padding: 0 34px 8px;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}
.category-arrow {
  position: absolute;
  z-index: 4;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  background: rgba(22,22,22,.94);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  cursor: pointer;
}
.category-arrow-left { left: 1px; }
.category-arrow-right { right: 1px; }
.category-arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.category-arrow span {
  width: 9px;
  height: 9px;
  border-top: 2px solid #d7d7d7;
  border-right: 2px solid #d7d7d7;
}
.category-arrow-left span { transform: translateX(2px) rotate(-135deg); }
.category-arrow-right span { transform: translateX(-2px) rotate(45deg); }
.category-arrow:active { transform: scale(.9); }

.bottom-nav {
  height: 86px;
  background: #202020;
  transition: transform .28s ease, opacity .2s ease;
}
.bottom-nav a {
  gap: 4px;
  color: #777;
  font-size: 14px;
}
.bottom-nav a.active { color: #62e51c; }
.bottom-nav .nav-icon {
  width: 31px;
  height: 31px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav .nav-accent { stroke: #5dbf26; }
.bottom-nav .nav-accent-fill { fill: #5dbf26; stroke: none; }
.bottom-nav a.active .nav-accent { stroke: currentColor; }
.bottom-nav a.active .nav-accent-fill { fill: currentColor; }
.bottom-nav em {
  top: 5px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 9px;
  font-size: 11px;
}
body.drawer-open .bottom-nav {
  transform: translate(-50%, calc(100% + env(safe-area-inset-bottom)));
  opacity: 0;
  pointer-events: none;
}
body.drawer-open .floating-promos {
  opacity: 0;
  pointer-events: none;
}

.side-drawer { z-index: 100; }
.drawer-panel {
  width: 242px;
  background: #151515;
}
.drawer-scroll {
  padding: 13px 12px 24px;
  overscroll-behavior: contain;
}
.language-row {
  color: #f0f0f0;
}
.language-row img {
  filter: none;
}
.language-chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  margin-right: 2px;
  border-right: 2px solid #8d8d8d;
  border-bottom: 2px solid #8d8d8d;
  transform: translateY(-2px) rotate(45deg);
}
.drawer-simple-links {
  gap: 0;
  margin-top: 8px;
}
.drawer-simple-links a {
  height: 38px;
  gap: 11px;
  color: #c8c8c8;
}
.drawer-small-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a7a7a7;
}
.drawer-small-icon img,
.drawer-simple-links .drawer-small-icon img {
  width: 18px;
  height: 18px;
  padding: 0;
  filter: brightness(.16);
  object-fit: contain;
}
.drawer-small-icon .find-icon {
  width: 17px;
  height: 17px;
  filter: brightness(.18);
}
.offers-title {
  padding-top: 12px;
}
.offer-grid {
  padding: 0 6px 12px;
  border-radius: 7px;
  background: #1d1d1d;
}
.offer-grid div {
  height: 56px;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}
.offer-grid div:nth-child(1) { background: linear-gradient(180deg,#4894ff,#2471e9); }
.offer-grid div:nth-child(2) { background: linear-gradient(180deg,#20da50,#0cba35); }
.offer-grid div:nth-child(3) { background: linear-gradient(180deg,#2684ff,#0754d3); }
.offer-grid div:nth-child(4) { background: linear-gradient(180deg,#58a3ff,#327cec); }
.offer-grid div:nth-child(5) { background: linear-gradient(180deg,#fb3f88,#e81768); }
.offer-grid div:nth-child(6) { background: linear-gradient(180deg,#d94df0,#b42cdd); }
.offer-grid div:nth-child(7) { background: linear-gradient(180deg,#ffb21d,#ff8700); }
.offer-grid span {
  top: 5px;
  left: 5px;
  max-width: 65px;
  font-size: 12px;
  line-height: 1.1;
}
.offer-grid img {
  right: -2px;
  bottom: -5px;
  width: 66px;
  height: 54px;
}
.google-login {
  height: 39px;
  background: #202020;
}

@media (max-width: 430px) {
  .drawer-panel { width: 242px; max-width: 75vw; }
  .category-tabs { padding-left: 32px; padding-right: 32px; }
  .bottom-nav a { font-size: 12px; }
  .bottom-nav .nav-icon { width: 29px; height: 29px; }
}


/* === Правки v3: бегущая строка, меню и отступ Popular === */
.menu-button {
  display: grid;
  place-items: center;
  padding: 0;
}
.menu-button .menu-icon {
  width: 29px;
  height: 29px;
  overflow: visible;
  fill: none;
  stroke: #a7a7a7;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  transition: transform .28s ease, stroke .2s ease;
}
.menu-button.open .menu-icon {
  transform: rotate(180deg);
  stroke: #d0d0d0;
}
.menu-button:active .menu-icon { transform: scale(.92); }
.menu-button.open:active .menu-icon { transform: rotate(180deg) scale(.92); }

.ticker-window {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-track {
  position: static;
  left: auto;
  top: auto;
  display: flex;
  align-items: center;
  width: max-content;
  flex: 0 0 auto;
  will-change: transform;
  animation: ticker-seamless 44s linear infinite;
  animation-delay: 0s;
}
.ticker-track span {
  flex: 0 0 auto;
  display: block;
  padding-right: 72px;
}
@keyframes ticker-seamless {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}

#popular {
  margin-top: 25px;
}

.drawer-scroll {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.drawer-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}


/* === Правки v4: полный ряд категорий, выравнивание и живая бегущая строка === */
.category-tabs {
  gap: 4px;
  padding-left: 0;
  padding-right: 31px;
  scroll-padding-left: 0;
}
.category-tabs a {
  flex-basis: 63px;
}
.category-arrow-left { left: 0; }
.category-arrow-right { right: 0; }

/* Стартовая позиция ряда совпадает с левым краем контента. */
.category-tabs-shell {
  margin-left: -1px;
  margin-right: -1px;
}

/* Движением управляет JS: так строка не останавливается из-за системных настроек анимации. */
.ticker-track {
  animation: none !important;
  transform: translate3d(0, 0, 0);
}
.ticker-track span {
  padding-right: 72px;
}

@media (max-width: 430px) {
  .category-tabs {
    padding-left: 0;
    padding-right: 30px;
  }
  .category-tabs a {
    flex-basis: 61px;
  }
}


/* === Правки v5: открывашка меню как на референсе === */
.main-header {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.menu-button {
  width: 28px;
  height: 40px;
  justify-self: start;
  overflow: visible;
}

.menu-button .menu-icon {
  width: 27px;
  height: 27px;
  stroke: #a7a7a7;
  stroke-width: 2.65;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  transform-origin: 50% 50%;
  transition: transform .28s ease, stroke .2s ease;
}

.menu-button .menu-icon-line-middle {
  stroke-linecap: square;
}

.menu-button .menu-icon-arrow {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.menu-button.open .menu-icon {
  transform: rotate(180deg);
  stroke: #c9c9c9;
}

.menu-button:active .menu-icon {
  transform: scale(.94);
}

.menu-button.open:active .menu-icon {
  transform: rotate(180deg) scale(.94);
}

@media (max-width: 430px) {
  .main-header {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
}


/* === Правки v7: новый адаптивный промобаннер === */
.promo-showcase {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #262d36 0%, #1c222a 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}
.promo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #15191f;
}
.promo-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
}
.promo-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity .62s ease, transform .72s ease;
  pointer-events: none;
}
.promo-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.promo-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-carousel-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(15,18,24,.48);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.promo-carousel-control:active {
  transform: translateY(-50%) scale(.92);
}
.promo-prev { left: 7px; }
.promo-next { right: 7px; }
.promo-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 6px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.promo-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.promo-dot.is-active {
  background: #fff;
  transform: scale(1.18);
}
.promo-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}
.promo-thumbnail {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: #14191f;
  opacity: 1;
}
.promo-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

@media (max-width: 390px) {
  .promo-showcase { padding: 6px; border-radius: 14px; }
  .promo-carousel { border-radius: 11px; }
  .promo-carousel-control { width: 28px; height: 28px; font-size: 17px; }
  .promo-thumbnails { gap: 4px; margin-top: 5px; }
  .promo-thumbnail { border-radius: 7px; }
}

@media (max-width: 335px) {
  .promo-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* === Правки v8: нижние промо-картинки независимы от основного слайдера === */
.promo-thumbnails,
.promo-thumbnail {
  pointer-events: auto;
}

.promo-thumbnail {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}


/* === Правки v9: промо-карточки на мобильном по две в ряд === */
@media (max-width: 640px) {
  .promo-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .promo-thumbnail {
    border-radius: 9px;
  }

  .promo-thumbnail img {
    aspect-ratio: 3 / 1;
  }
}



/* Jackpot + Eventos, перенесённые из пользовательского архива.
   Все селекторы изолированы префиксом showcase-, чтобы не ломать остальной сайт. */

.showcase-jackpot-panel,
.showcase-events-section {
  --showcase-panel: #0d4c3b;
  --showcase-panel-deep: #0a4234;
  --showcase-mint: #2fd39a;
  --showcase-yellow: #fff000;
}

.showcase-jackpot-panel {
  margin: 10px -12px 0;
  padding: 10px 10px 14px;
  overflow: hidden;
  background: var(--showcase-panel);
  scroll-margin-top: 108px;
}

.showcase-jackpot-hero {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #2d8c6c;
}

.showcase-jackpot-mascots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.showcase-jackpot-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 164px;
  flex-direction: column;
  align-items: center;
  padding: 4px 105px 8px;
  text-align: center;
}

.showcase-jackpot-title {
  min-width: 144px;
  margin: 0 0 2px;
  padding: 4px 18px 5px;
  border: 1.5px solid #2ce6a5;
  border-radius: 999px;
  background: rgba(15, 95, 73, .88);
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .02em;
}

.showcase-jackpot-value {
  display: block;
  margin: 1px 0 5px;
  color: var(--showcase-yellow);
  font-size: clamp(24px, 6.2vw, 30px);
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .28);
  font-variant-numeric: tabular-nums;
}

.showcase-mini-games {
  display: grid;
  width: 100%;
  max-width: 184px;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.showcase-mini-games figure {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.showcase-mini-games img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  padding-top: 10px;
  background: var(--showcase-panel);
}

.showcase-game-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 11px;
  background: #234d47;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}

.showcase-game-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(5, 17, 15, .88));
  pointer-events: none;
}

.showcase-game-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-game-card strong {
  position: absolute;
  z-index: 2;
  left: 5px;
  right: 5px;
  bottom: 7px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(10px, 2.8vw, 13px);
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.showcase-like {
  position: absolute;
  z-index: 3;
  top: 3px;
  left: 3px;
  display: grid;
  width: 22px;
  height: 19px;
  place-items: center;
  border-radius: 8px 8px 8px 1px;
  background: #ff8a00;
}

.showcase-like::before {
  content: "👍";
  color: #fff;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
}

.showcase-favorite {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 3px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #423c48;
  background: rgba(224, 224, 224, .82);
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}

.showcase-favorite:hover {
  transform: scale(1.08);
}

.showcase-favorite.is-active {
  color: #ffd725;
  background: rgba(71, 50, 80, .9);
}

.showcase-events-section {
  margin: 0 -12px;
  padding: 22px 10px 18px;
  overflow: hidden;
  background: var(--showcase-panel-deep);
  scroll-margin-top: 108px;
}

.showcase-section-pill {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: 0 auto 15px;
  padding: 7px 14px;
  border: 1px solid rgba(67, 217, 160, .42);
  border-radius: 999px;
  background: rgba(29, 104, 82, .76);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
}

.showcase-event-slider {
  position: relative;
  margin-inline: -10px;
  padding-block: 2px 4px;
}

.showcase-slides-viewport {
  overflow: hidden;
  padding-block: 9px;
  touch-action: pan-y;
}

.showcase-slides-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 0;
  transition: transform .92s cubic-bezier(.22, .72, .22, 1);
  will-change: transform;
}

.showcase-event-slide {
  position: relative;
  z-index: 1;
  flex: 0 0 80%;
  min-width: 0;
  aspect-ratio: 710 / 320;
  overflow: hidden;
  border: 1px solid rgba(72, 224, 164, .34);
  border-radius: 16px;
  background: #126944;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  opacity: .58;
  transform: scale(.93);
  transform-origin: center;
  transition:
    opacity .82s cubic-bezier(.22, .72, .22, 1),
    transform .92s cubic-bezier(.22, .72, .22, 1),
    filter .82s ease,
    box-shadow .82s ease;
  filter: saturate(.78) brightness(.82);
}

.showcase-event-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1.035);
  filter: none;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .34);
}

.showcase-event-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.showcase-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 78, 61, .94);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.showcase-slider-arrow span {
  display: block;
  margin-top: -4px;
  font-size: 38px;
  line-height: 1;
  font-weight: 300;
}

.showcase-slider-arrow:hover {
  background: rgba(17, 105, 79, .98);
}

.showcase-slider-prev {
  left: calc(8.6% - 22px);
}

.showcase-slider-next {
  right: calc(8.6% - 22px);
}

.showcase-favorite:focus-visible,
.showcase-slider-arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .showcase-jackpot-panel {
    padding-inline: 7px;
  }

  .showcase-jackpot-content {
    padding-inline: 84px;
  }

  .showcase-mini-games {
    max-width: 164px;
    gap: 4px;
  }

  .showcase-games-grid {
    gap: 8px 6px;
  }

  .showcase-events-section {
    padding-inline: 7px;
  }

  .showcase-event-slider {
    margin-inline: -7px;
  }

  .showcase-slides-track {
    gap: 8px;
  }

  .showcase-event-slide {
    flex-basis: 80%;
    border-radius: 14px;
  }

  .showcase-slider-arrow {
    width: 40px;
    height: 40px;
  }

  .showcase-slider-arrow span {
    font-size: 34px;
  }

  .showcase-slider-prev {
    left: calc(8.6% - 20px);
  }

  .showcase-slider-next {
    right: calc(8.6% - 20px);
  }
}

@media (max-width: 340px) {
  .showcase-jackpot-content {
    padding-inline: 71px;
  }

  .showcase-jackpot-title {
    min-width: 118px;
    font-size: 15px;
  }

  .showcase-jackpot-value {
    font-size: 20px;
  }

  .showcase-mini-games {
    max-width: 144px;
  }

  .showcase-game-card strong {
    bottom: 5px;
    font-size: 9px;
  }

  .showcase-slides-track {
    gap: 7px;
  }

  .showcase-slider-arrow {
    width: 36px;
    height: 36px;
  }

  .showcase-slider-arrow span {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slides-track,
  .showcase-event-slide,
  .showcase-favorite,
  .showcase-slider-arrow {
    transition: none;
  }
}



@font-face {
  font-family: "Footer777Inter";
  src: url("../footer777/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Footer777InterBlackItalic";
  src: url("../footer777/Inter-BlackItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

.footer777 {
  margin: 0 -12px;
  padding: 0;
  background: #242b34;
  color: #fff;
  font-family: "Footer777Inter", Arial, sans-serif;
  scroll-margin-top: 110px;
}

.footer777 * {
  box-sizing: border-box;
}

.footer777-inner {
  width: 100%;
  margin: 0 auto;
  padding: 10px 14px 26px;
}

.footer777-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .88);
}

.footer777-award {
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: #232a32;
}

.footer777-award img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 175 / 105;
  object-fit: contain;
}

.footer777-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 15px;
  padding: 17px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .88);
}

.footer777-partner {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
}

.footer777-partner img {
  display: block;
  width: auto;
  max-width: 102px;
  height: 48px;
  object-fit: contain;
  opacity: .78;
  filter: grayscale(1);
}

.footer777-partner:nth-child(1) img { max-width: 86px; }
.footer777-partner:nth-child(2) img { max-width: 104px; }
.footer777-partner:nth-child(3) img { max-width: 75px; }
.footer777-partner:nth-child(4) img { max-width: 92px; }
.footer777-partner:nth-child(5) img { width: 54px; height: 54px; }
.footer777-partner:nth-child(6) img,
.footer777-partner:nth-child(7) img { width: 58px; height: 58px; }
.footer777-partner:nth-child(8) img { max-width: 80px; }

.footer777-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .88);
}

.footer777-column {
  min-width: 0;
}

.footer777-title {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-family: "Footer777InterBlackItalic", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}

.footer777-column ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer777-column li {
  margin: 0;
  padding: 0;
}

.footer777-column a {
  display: inline-block;
  padding: 5px 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.18;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer777-column a:hover,
.footer777-column a:focus-visible {
  color: #b9ff58;
}

.footer777-socials {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 7px;
  margin: 5px 0 8px;
}

.footer777-socials a {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 9px;
  background: #202730;
}

.footer777-socials img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.footer777-apk {
  display: flex !important;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 9px !important;
  border-radius: 9px;
  background: linear-gradient(115deg, #505050 10%, #949494 52%, #3e3e3e 92%);
  color: #fff !important;
  font-family: "Footer777InterBlackItalic", Arial, sans-serif;
  font-size: 13px !important;
  line-height: 1;
  text-transform: uppercase;
}

.footer777-apk img {
  width: 19px;
  height: 19px;
}

.footer777-legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .88);
}

.footer777-company,
.footer777-license {
  min-width: 0;
}

.footer777-logo {
  display: block;
  width: min(100%, 260px);
  margin: 0 auto 12px;
}

.footer777-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer777-license > img {
  width: 68px;
  height: 80px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.footer777-legal p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.28;
  text-align: left;
}

.footer777-copyright {
  padding: 16px 0 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 420px) {
  .footer777-inner {
    padding-inline: 22px;
  }

  .footer777-navigation {
    gap: 22px 24px;
  }

  .footer777-title {
    font-size: 14px;
  }

  .footer777-column a,
  .footer777-legal p,
  .footer777-copyright {
    font-size: 13px;
  }
}

@media (min-width: 760px) {
  .footer777-awards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer777-navigation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer777-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .footer777-logo {
    margin-left: 0;
  }

  .footer777-license > img {
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .footer777-inner {
    max-width: 1165px;
    padding-inline: 10px;
  }

  .footer777-awards {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .footer777-partners {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .footer777-partner img {
    max-width: 120px;
    height: 76px;
  }

  .footer777-navigation {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;
  }

  .footer777-title {
    font-size: 14px;
  }

  .footer777-column a,
  .footer777-legal p,
  .footer777-copyright {
    font-size: 14px;
  }

  .footer777-socials {
    grid-template-columns: repeat(3, 48px);
  }

  .footer777-logo {
    width: 413px;
  }
}

/* === v12: footer responsivo dentro do shell limitado a 480px ===
   O site fica estreito mesmo em telas desktop; por isso o layout do rodapé
   deve responder à largura real do shell, e não aos breakpoints do viewport. */
.footer777 {
  overflow: hidden;
  border-radius: 10px;
}

.footer777 .footer777-inner {
  width: 100%;
  max-width: none !important;
  padding: 10px 12px 26px !important;
}

.footer777 .footer777-awards {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.footer777 .footer777-award {
  border-radius: 10px;
}

.footer777 .footer777-partners {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  flex-wrap: unset !important;
  justify-content: initial !important;
  gap: 11px 6px !important;
  padding: 16px 2px !important;
}

.footer777 .footer777-partner {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
}

.footer777 .footer777-partner:nth-child(7),
.footer777 .footer777-partner:nth-child(8) {
  grid-column: span 3;
}

.footer777 .footer777-partner img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 72px;
}

.footer777 .footer777-partner:nth-child(1) img { max-width: 104px !important; }
.footer777 .footer777-partner:nth-child(2) img { max-width: 114px !important; }
.footer777 .footer777-partner:nth-child(3) img { max-width: 96px !important; }
.footer777 .footer777-partner:nth-child(4) img { max-width: 112px !important; }
.footer777 .footer777-partner:nth-child(5) img { width: 88px !important; max-height: 88px; }
.footer777 .footer777-partner:nth-child(6) img { width: 72px !important; max-height: 72px; }
.footer777 .footer777-partner:nth-child(7) img { width: 96px !important; max-height: 96px; }
.footer777 .footer777-partner:nth-child(8) img { max-width: 108px !important; }

.footer777 .footer777-navigation {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px 24px !important;
  padding: 17px 8px 18px !important;
}

.footer777 .footer777-title {
  font-size: 13px !important;
}

.footer777 .footer777-column a,
.footer777 .footer777-legal p,
.footer777 .footer777-copyright {
  font-size: 12px !important;
}

.footer777 .footer777-socials {
  grid-template-columns: repeat(3, 48px) !important;
  gap: 7px !important;
}

.footer777 .footer777-legal {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  padding: 18px 8px 20px !important;
}

.footer777 .footer777-logo {
  width: min(55%, 220px) !important;
  margin: 0 0 12px !important;
}

.footer777 .footer777-license > img {
  width: 68px !important;
  height: 80px !important;
  margin: 0 0 12px !important;
}

.footer777 .footer777-copyright {
  padding-top: 16px;
}

@media (max-width: 380px) {
  .footer777 .footer777-inner {
    padding-inline: 10px !important;
  }

  .footer777 .footer777-navigation {
    gap: 20px 16px !important;
    padding-inline: 4px !important;
  }

  .footer777 .footer777-title {
    font-size: 12px !important;
  }

  .footer777 .footer777-column a,
  .footer777 .footer777-legal p,
  .footer777 .footer777-copyright {
    font-size: 11px !important;
  }

  .footer777 .footer777-socials {
    grid-template-columns: repeat(3, 44px) !important;
  }

  .footer777 .footer777-socials a {
    width: 44px;
    height: 44px;
  }
}



/* Universal theme: values are injected from PHP as --site-* variables. */
html, body { background: linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)), var(--site-background); color: var(--site-text); }
body { overflow-wrap: anywhere; }
.site-shell { background-color: var(--site-background); color: var(--site-text); }
.sticky-header, .main-header, .bottom-nav, .drawer-panel { background: linear-gradient(rgba(0,0,0,.78),rgba(0,0,0,.78)), var(--site-background); }
.app-strip { background: var(--site-accent-one); color: var(--site-background); }
.app-strip-copy { min-width: 0; overflow: hidden; color: var(--site-background); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.app-strip-copy strong { font-weight: 900; }
.download-now { display:grid; place-items:center; color:var(--site-text); background:linear-gradient(rgba(0,0,0,.75),rgba(0,0,0,.75)),var(--site-background); }
.login-button { color: var(--site-background); border-color: var(--site-accent-one); background: var(--site-accent-one); }
.register-button { color: var(--site-accent-one); border-color: var(--site-accent-one); background: linear-gradient(rgba(0,0,0,.8),rgba(0,0,0,.8)), var(--site-background); }
.reward-pill, .ticker-track b { background-color: var(--site-accent-one); color: var(--site-background); }
.ticker-track b { background: transparent; }
.promo-showcase { background: linear-gradient(rgba(255,255,255,.08),rgba(0,0,0,.28)), var(--site-background); border-color: color-mix(in srgb, var(--site-accent-one) 30%, transparent); }
.promo-carousel, .promo-thumbnail { background: linear-gradient(rgba(0,0,0,.44),rgba(0,0,0,.44)), var(--site-background); }
.promo-clickthrough { display:block; width:100%; height:100%; }
.category-tabs a { color: color-mix(in srgb, var(--site-text) 64%, transparent); }
.category-tabs a:hover, .category-tabs a:focus-visible { color: var(--site-accent-one); }
.dynamic-content { margin: 14px 0; padding: 16px 14px; border: 1px solid color-mix(in srgb, var(--site-accent-one) 42%, transparent); border-radius: 12px; background: linear-gradient(rgba(255,255,255,.045),rgba(0,0,0,.16)), var(--site-background); color: var(--site-text); }
.dynamic-content h1 { margin: 0 0 14px; color: var(--site-accent-one); font-size: clamp(24px,7vw,34px); line-height:1.15; text-align:left; }
.dynamic-content h2, .dynamic-content h3, .dynamic-content h4, .dynamic-content h5, .dynamic-content h6 { margin:24px 0 10px; color:var(--site-accent-one); line-height:1.2; }
.dynamic-content p { margin: 0 0 14px; line-height:1.62; }
.dynamic-content a { color: var(--site-accent-one); text-decoration: underline; text-underline-offset: 3px; }
.dynamic-content img { width:auto; max-width:100%; height:auto; margin:16px auto; border:2px solid var(--site-accent-one); border-radius:12px; }
.dynamic-content ul, .dynamic-content ol, .faq-shell ul, .faq-shell ol { max-width:100%; margin:16px 0; padding-left:26px; }
.dynamic-content li, .faq-shell li { margin:0 0 8px; padding-left:3px; overflow-wrap:anywhere; }
.dynamic-content li::marker, .faq-shell li::marker { color:var(--site-accent-one); font-weight:800; }
.table-scroll { width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; margin:18px 0 24px; border:1px solid color-mix(in srgb,var(--site-accent-one) 48%,transparent); border-radius:10px; }
.table-scroll table { width:100%; border-collapse:collapse; table-layout:auto; background:linear-gradient(rgba(255,255,255,.035),rgba(255,255,255,.035)),var(--site-background); }
.table-scroll th, .table-scroll td { padding:10px 12px; border:1px solid color-mix(in srgb,var(--site-text) 16%,transparent); white-space:nowrap; text-align:left; }
.table-scroll th { color:var(--site-text); background:var(--site-accent-two); }
.showcase-jackpot-panel { background:linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.15)),var(--site-accent-two); }
.showcase-jackpot-hero { background:var(--site-accent-two); }
.showcase-jackpot-title { border-color:var(--site-accent-one); background:linear-gradient(rgba(0,0,0,.30),rgba(0,0,0,.30)),var(--site-accent-two); color:var(--site-text); }
.showcase-jackpot-value { color:var(--site-accent-one); }
.showcase-games-grid { background:linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.15)),var(--site-accent-two); }
a.showcase-game-card { display:block; color:var(--site-text); }
.showcase-like { background:var(--site-accent-one); }
.showcase-events-section { background:linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.34)),var(--site-accent-two); }
.showcase-section-pill { border-color:color-mix(in srgb,var(--site-accent-one) 55%,transparent); background:linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.22)),var(--site-accent-two); color:var(--site-text); }
.showcase-slider-arrow { background:linear-gradient(rgba(0,0,0,.30),rgba(0,0,0,.30)),var(--site-accent-two); }
.faq-shell { margin:14px 0; padding:14px; border-radius:12px; background:linear-gradient(rgba(255,255,255,.04),rgba(0,0,0,.18)),var(--site-background); color:var(--site-text); }
.faq-shell .faq-item, .faq-shell [itemprop="mainEntity"] { margin-bottom:12px; padding:12px; border:1px solid color-mix(in srgb,var(--site-accent-one) 35%,transparent); border-radius:10px; }
.footer777 { background:linear-gradient(rgba(0,0,0,.30),rgba(0,0,0,.30)),var(--site-background); color:var(--site-text); }
.footer777-title { color:var(--site-accent-one); }
.footer777-column a, .footer777-legal p, .footer777-copyright { color:var(--site-text); }
.footer777-column a:hover, .footer777-column a:focus-visible { color:var(--site-accent-one); }
.footer777-socials a { background:linear-gradient(rgba(255,255,255,.06),rgba(255,255,255,.06)),var(--site-background); }
.footer777-apk { background:linear-gradient(120deg,var(--site-accent-two),color-mix(in srgb,var(--site-accent-two) 56%,white),var(--site-accent-two)); }
.footer777-logo img { max-height:120px; object-fit:contain; }
.offer-grid > a { color:inherit; text-decoration:none; }
.google-login { display:flex; align-items:center; justify-content:center; gap:8px; color:var(--site-text); text-decoration:none; }
.floating-item { position:relative; }
.floating-link { display:block; width:100%; height:100%; }
.floating-close { position:absolute; top:0; right:1px; display:grid; place-items:center; width:21px; height:21px; padding:0; border:0; border-radius:50%; background:#710d0d; color:#fff; font-size:17px; cursor:pointer; }
@media (max-width:800px) { .table-scroll table { width:max-content; min-width:720px; max-width:none; } }
@media (max-width:600px) { .dynamic-content { padding:14px 11px; } .dynamic-content ul,.dynamic-content ol,.faq-shell ul,.faq-shell ol { padding-left:20px; } }


/* =========================================================
   FAQ + reviews: visual treatment based on universal colors
   ========================================================= */
.faq-shell {
  position: relative;
  isolation: isolate;
  margin: 18px 0;
  padding: 18px 14px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--site-accent-one) 38%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--site-accent-one) 15%, transparent), transparent 32%),
    radial-gradient(circle at 96% 28%, color-mix(in srgb, var(--site-accent-two) 28%, transparent), transparent 38%),
    linear-gradient(rgba(255,255,255,.045), rgba(0,0,0,.24)),
    var(--site-background);
  color: var(--site-text);
  box-shadow:
    0 14px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.faq-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 12%;
  width: 76%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--site-accent-one),
    color-mix(in srgb, var(--site-accent-two) 65%, white),
    transparent
  );
  box-shadow: 0 0 18px color-mix(in srgb, var(--site-accent-one) 45%, transparent);
}

.faq-shell .faq,
.faq-shell .reviews-panel {
  position: relative;
}

.faq-shell .h2-base-title,
.faq-shell .reviews-title,
.faq-shell > section > h2 {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 15px;
  padding: 8px 15px;
  border: 1px solid color-mix(in srgb, var(--site-accent-one) 52%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    var(--site-accent-two);
  color: var(--site-text);
  font-size: clamp(17px, 4.7vw, 21px);
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
  letter-spacing: .01em;
  box-shadow:
    0 8px 18px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.faq-shell .h2-base-title::before {
  content: "?";
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--site-background);
  background: var(--site-accent-one);
  font-size: 15px;
  font-weight: 950;
}

.faq-shell .reviews-title::before,
.faq-shell > section > h2::before {
  content: "★";
  color: var(--site-accent-one);
  font-size: 18px;
  line-height: 1;
}

.faq-shell .faq-content {
  display: grid;
  gap: 10px;
}

.faq-shell .faq-item,
.faq-shell .faq-content [itemprop="mainEntity"] {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--site-accent-one) 30%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(0,0,0,.18)),
    var(--site-background);
  box-shadow:
    0 7px 17px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.035);
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.faq-shell .faq-item:hover {
  border-color: color-mix(in srgb, var(--site-accent-one) 60%, transparent);
  box-shadow:
    0 10px 22px rgba(0,0,0,.2),
    0 0 0 1px color-mix(in srgb, var(--site-accent-one) 11%, transparent);
}

.faq-shell .faq-item.is-open {
  border-color: color-mix(in srgb, var(--site-accent-one) 72%, transparent);
  box-shadow:
    0 12px 26px rgba(0,0,0,.22),
    0 0 18px color-mix(in srgb, var(--site-accent-one) 10%, transparent);
}

.faq-shell .faq-item-header-wrapper {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 13px 48px 13px 14px;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.faq-shell .faq-item-header-wrapper::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 13px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--site-accent-one) 52%, transparent);
  border-radius: 50%;
  color: var(--site-accent-one);
  background: color-mix(in srgb, var(--site-background) 82%, transparent);
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
  transform: translateY(-50%) rotate(0deg);
  transition:
    transform .28s ease,
    color .2s ease,
    background .2s ease;
}

.faq-shell .faq-item.is-open .faq-item-header-wrapper::after {
  content: "−";
  color: var(--site-background);
  background: var(--site-accent-one);
  transform: translateY(-50%) rotate(180deg);
}

.faq-shell .faq-item-header-wrapper:focus-visible {
  box-shadow: inset 0 0 0 2px var(--site-accent-one);
}

.faq-shell .faq-item-title {
  margin: 0;
  color: var(--site-text);
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.35;
  font-weight: 800;
}

.faq-shell .faq-item-content {
  border-top: 1px solid transparent;
}

.faq-shell.faq-is-ready .faq-item-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .34s ease,
    opacity .28s ease,
    border-color .28s ease;
}

.faq-shell.faq-is-ready .faq-item-content > div {
  min-height: 0;
  overflow: hidden;
}

.faq-shell.faq-is-ready .faq-item.is-open .faq-item-content {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-color: color-mix(in srgb, var(--site-text) 11%, transparent);
}

.faq-shell .faq-item-content-visible {
  padding: 0 14px 14px;
  color: color-mix(in srgb, var(--site-text) 83%, transparent);
  font-size: 14px;
  line-height: 1.62;
}

.faq-shell .faq-item-content-visible p:last-child {
  margin-bottom: 0;
}

/* Reviews */
.faq-shell .reviews-panel,
.faq-shell > section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--site-text) 13%, transparent);
}

.faq-shell .reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.faq-shell .review-card,
.faq-shell .reviews-panel [itemtype="https://schema.org/Review"] {
  position: relative;
  margin: 0;
  padding: 15px 14px 14px 60px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--site-accent-two) 58%, transparent);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--site-accent-one) 9%, transparent), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(0,0,0,.2)),
    var(--site-background);
  box-shadow:
    0 8px 19px rgba(0,0,0,.16),
    inset 3px 0 0 var(--site-accent-two);
}

.faq-shell .review-card::after {
  content: "★★★★★";
  display: block;
  margin-top: 9px;
  color: var(--site-accent-one);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2px;
}

.faq-shell .review-avatar {
  position: absolute;
  top: 14px;
  left: 13px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--site-accent-one) 65%, transparent);
  border-radius: 50%;
  color: var(--site-background);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--site-accent-one) 88%, white), var(--site-accent-one));
  box-shadow:
    0 5px 12px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.35);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-shell .review-card [itemprop="itemReviewed"] {
  display: none;
}

.faq-shell .review-card [itemprop="author"] {
  margin: 0 0 7px;
}

.faq-shell .review-card [itemprop="author"] h3 {
  margin: 0;
  color: var(--site-text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

.faq-shell .review-card [itemprop="reviewBody"] p {
  margin: 0;
  color: color-mix(in srgb, var(--site-text) 80%, transparent);
  font-size: 13px;
  line-height: 1.58;
}

@media (min-width: 700px) {
  .faq-shell .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .faq-shell {
    padding: 16px 10px 17px;
    border-radius: 14px;
  }

  .faq-shell .faq-item-header-wrapper {
    min-height: 51px;
    padding: 12px 44px 12px 12px;
  }

  .faq-shell .faq-item-header-wrapper::after {
    right: 10px;
    width: 25px;
    height: 25px;
  }

  .faq-shell .faq-item-content-visible {
    padding: 0 12px 13px;
    font-size: 13px;
  }

  .faq-shell .review-card {
    padding: 14px 11px 13px 55px;
  }

  .faq-shell .review-avatar {
    top: 13px;
    left: 11px;
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-shell .faq-item,
  .faq-shell .faq-item-content,
  .faq-shell .faq-item-header-wrapper::after {
    transition: none;
  }
}


/* =========================================================
   Header buttons + drawer offer-grid fix
   ========================================================= */

/* Portuguese labels are centered vertically and horizontally. */
.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 0 10px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

/*
 * The offer cards in the drawer are links, not div elements.
 * Giving each link its own positioned box keeps its images and badges
 * inside the grid instead of letting them appear in the upper-left corner.
 */
.offer-grid > a {
  position: relative;
  display: block;
  height: 55px;
  overflow: hidden;
  border-radius: 6px;
  background: #2c75ff;
  color: inherit;
  text-decoration: none;
}

.offer-grid > a:nth-child(2) { background: #14ce46; }
.offer-grid > a:nth-child(3) { background: #227eff; }
.offer-grid > a:nth-child(4) { background: #3287ff; }
.offer-grid > a:nth-child(5) { background: #ed1d6d; }
.offer-grid > a:nth-child(6) { background: #cf31d9; }
.offer-grid > a:nth-child(7) { background: #ff9200; }

.offer-grid > a:focus-visible {
  outline: 2px solid var(--site-accent-one);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .auth-actions {
    gap: 5px;
  }

  .auth-button {
    min-width: 76px;
    padding-inline: 7px;
    font-size: 11.5px;
  }
}


/* Eventos: карточки кликабельны, свайп карусели сохранён. */
.showcase-event-slide {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
