html.velobet-popup-open,
html.velobet-popup-open body {
  overflow: hidden;
}

.velobet-popup {
  --velobet-lime: #95f400;
  width: min(512px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px 32px 23px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #525b44 #141614;
  border: 1px solid #343832;
  border-radius: 24px;
  background: linear-gradient(155deg, #1b2117 0%, #141614 32%, #111211 75%);
  box-shadow: 0 28px 100px #0009, inset 0 1px 0 #ffffff06;
  color: #f5f6f3;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.velobet-popup::backdrop {
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.velobet-popup:focus { outline: none; }
.velobet-popup button { font: inherit; cursor: pointer; }
.velobet-popup :is(button, a):focus-visible {
  outline: 2px solid var(--velobet-lime);
  outline-offset: 4px;
}

.velobet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: .65;
}

.velobet-close img { filter: invert(1); }
.velobet-close:hover { background: #ffffff0a; opacity: 1; }
.velobet-offer {
  margin: 7px 0 17px;
  color: #f5f6f3;
  font-size: 14px;
  line-height: 18px;
}
.velobet-offer strong { font-weight: 700; }
.velobet-offer span { display: block; }
.velobet-brand > img { display: block; width: 172px; height: auto; margin: 0 auto; }

.velobet-lobby {
  height: 246px;
  overflow: hidden;
  border: 1px solid #3b4431;
  border-radius: 12px;
  background: #1c201c;
  text-align: left;
  box-shadow: 0 12px 30px #0003, inset 0 1px 0 #ffffff05;
}
.velobet-lobby-header {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 12px;
  border-bottom: 1px solid #ffffff0c;
  background: #171b17;
}
.velobet-lobby-header img { width: 66px; height: auto; margin-right: auto; }
.velobet-lobby-header span { width: 40px; height: 15px; border-radius: 4px; background: #30362e; }
.velobet-lobby-header span:last-child { width: 48px; background: var(--velobet-lime); }
.velobet-lobby-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 15px;
  height: 33px;
  padding: 0 12px;
  border-bottom: 1px solid #ffffff0b;
  color: #afb5aa;
  font-size: 10px;
  line-height: 32px;
  white-space: nowrap;
}
.velobet-lobby-nav strong { border-bottom: 2px solid var(--velobet-lime); color: var(--velobet-lime); font-weight: 600; }
.velobet-lobby-content { position: relative; height: 178px; padding: 12px; overflow: hidden; }
.velobet-lobby-label { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 700; line-height: 13px; }
.velobet-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.velobet-game-grid span { height: 110px; border-radius: 5px; background: #272d24; }
.velobet-game-grid span:nth-child(4n + 2) { background: #242923; }
.velobet-game-tile {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 112px;
  height: 133px;
  overflow: hidden;
  border: 2px solid var(--velobet-lime);
  border-radius: 9px;
  background: #0c1d06;
  box-shadow: 0 0 30px #95f42525;
}
.velobet-game-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.4); transform-origin: 50% 60%; }
.velobet-game-tile::after { content: ""; position: absolute; inset: 70% 0 0; background: linear-gradient(transparent, #08031699); }
.velobet-game-tile strong { position: absolute; z-index: 1; bottom: 9px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 900; line-height: 1.1; color: #fff; text-shadow: 0 2px 3px #361750; }
.velobet-preview-label { position: absolute; bottom: 6px; right: 10px; font-size: 8px; line-height: 12px; color: #b2b9ab; }

.velobet-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 16px 0 24px; list-style: none; text-align: left; }
.velobet-steps li { padding-top: 9px; border-top: 2px solid #7cc92c; color: #d8dcd4; font-size: 12px; line-height: 17px; }
.velobet-popup h2 { margin: 0 0 9px; color: #f6f7f4; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-shadow: none; }
.velobet-description { max-width: 370px; margin: 0 auto; color: #acb1a7; font-size: 14px; line-height: 21px; }
.velobet-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.velobet-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 24px; border-radius: 28px; background: var(--velobet-lime); color: #0d1700; font-size: 14px; font-weight: 700; transition: background .15s ease; }
.velobet-cta:hover { background: #b0ff36; }
.velobet-later { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #b2b7ac; font-size: 14px; }
.velobet-later:hover { color: #fff; }
.velobet-availability { margin: 20px 0 7px; color: #a1a79b; font-size: 10px; line-height: 15px; }
.velobet-responsible { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: #a1a79b; font-size: 10px; line-height: 15px; }
.velobet-responsible strong { padding: 1px 4px; border: 1px solid #4e5546; border-radius: 3px; color: #d0d6c7; font-size: 10px; font-weight: 600; }
.velobet-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 540px) {
  .velobet-popup { padding: 28px 20px 20px; border-radius: 20px; }
  .velobet-brand > img { width: 154px; }
  .velobet-offer { margin-bottom: 15px; font-size: 13px; line-height: 17px; }
  .velobet-lobby { height: 218px; }
  .velobet-lobby-nav .velobet-lobby-secondary { display: none; }
  .velobet-lobby-content { height: 150px; }
  .velobet-game-grid { gap: 6px; }
  .velobet-game-grid span { height: 94px; }
  .velobet-game-tile { width: 94px; height: 117px; top: 17px; left: 48%; }
  .velobet-game-tile strong { font-size: 10px; }
  .velobet-steps { gap: 6px; margin-bottom: 22px; }
  .velobet-steps li { font-size: 10px; line-height: 15px; }
  .velobet-popup h2 { font-size: 24px; }
  .velobet-actions { gap: 8px; margin-top: 20px; }
  .velobet-cta { padding: 0 20px; }
  .velobet-later { padding: 0 8px; font-size: 13px; }
}

@media (max-width: 360px) {
  .velobet-popup { padding-right: 16px; padding-left: 16px; }
  .velobet-popup h2 { font-size: 22px; }
  .velobet-lobby { height: 202px; }
  .velobet-lobby-content { height: 134px; }
  .velobet-game-tile { height: 106px; width: 86px; top: 14px; }
  .velobet-game-tile strong { font-size: 9px; }
  .velobet-cta { padding: 0 16px; font-size: 13px; }
  .velobet-actions { gap: 4px; }
  .velobet-availability { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .velobet-cta { transition: none; }
}
