/* Video Poker - Classic Vegas Style */

.vp-container {
  display: flex;
  flex-direction: column;
  font-family: 'Arial Black', Arial, sans-serif;
  -webkit-user-select: none;
          user-select: none;
  overflow: hidden;
  max-width: 550px;
  margin: 0 auto;
}

/* Mobile - fill screen height */
@media (max-width: 767px) {
  .vp-container {
    min-height: calc(100vh - 50px);
    min-height: calc(100dvh - 50px);
  }
}

/* Video Poker in Modal */
.vp-container.vp-in-modal {
  padding-top: 0;
  min-height: auto;
  max-height: none;
}

/* Desktop - border and glow */
@media (min-width: 768px) {
  .vp-container.vp-in-modal {
    border: 1px solid rgba(100, 100, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px 12px rgb(0 0 0 / 63%);
  }
}

/* ========== GAME TITLE - SVG LOGO ========== */
.vp-game-title {
  background: linear-gradient(180deg, #000080 0%, #000066 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  border-radius: 0;
}

/* Desktop - restore border-radius */
@media (min-width: 768px) {
  .vp-game-title {
    border-radius: 10px 10px 0 0;
  }
}

.vp-game-title .vp-logo {
  width: 100%;
  max-width: 600px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}



/* ========== PAYTABLE (simple 2-column with dots) ========== */
.vp-paytable {
  background: linear-gradient(180deg, #000080 0%, #000066 100%);
  padding: 4px 12px 8px 12px;
}

.vp-paytable-row {
  display: flex;
  align-items: baseline;
  padding: 2px 0;
  color: #FFD700;
  font-size: 13px;
  font-weight: bold;
}

.vp-paytable-row.winner {
  background: #FFD700;
  color: #000;
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  animation: winnerBlink 0.8s ease-in-out 3 alternate;
}

@keyframes winnerBlink {
  0% { background: #FFD700; }
  100% { background: #FFF8DC; }
}

.vp-paytable-row .hand-name {
  white-space: nowrap;
}

.vp-paytable-row .dots {
  flex: 1 1;
  border-bottom: 1px dotted #FFD700;
  margin: 0 4px;
  min-width: 10px;
  position: relative;
  top: -4px;
}

.vp-paytable-row.winner .dots {
  border-bottom-color: #000;
}

.vp-paytable-row .payout {
  white-space: nowrap;
}

/* ========== HAND DISPLAY (fixed height) ========== */
.vp-hand-display {
  text-align: center;
  padding: 4px;
  font-size: 16px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  height: 24px;
  line-height: 24px;
  background: linear-gradient(180deg, #1a1a4e 0%, #0f0f3a 100%);
}

/* ========== MAIN AREA (minimal padding) ========== */
.vp-main-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px 4px 4px 4px;
  background: linear-gradient(180deg, #1a1a4e 0%, #0d0d2b 100%);
}

/* ========== STATUS ABOVE CARDS ========== */
.vp-status-bar {
  text-align: center;
  padding: 4px;
  height: 20px;
  line-height: 20px;
}

.vp-status-bar .status-text {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========== CARDS AREA ========== */
.vp-cards-area {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 0 4px;
  position: relative;
}

.vp-card-slot {
  flex: 1 1;
  max-width: 19%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HELD label - simple text above card */
.held-label {
  color: #FFD700;
  font-size: 11px;
  font-weight: bold;
  height: 14px;
  line-height: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========== CARD (em-based scaling for content, fixed px for frame) ========== */
/* Содержимое карточки масштабируется через font-size, рамки фиксированные */
.vp-card {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 6px;
  position: relative;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  cursor: default;
  overflow: visible;
  font-size: 8px; /* базовый размер для мобильных */
  /* 3D perspective for flip animation */
  perspective: 600px;
}

.vp-card.clickable {
  cursor: pointer;
}

/* Inner container for 3D flip */
.vp-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Анимация управляется через JavaScript requestAnimationFrame */
  will-change: transform;
}

/* Card Front */
.card-front {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  border: 2px solid #333;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  /* 3D flip - front is rotated 180deg, visible when container flips */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
}

.card-front.red {
  color: #dc2626;
}

.card-front.black {
  color: #1a1a1a;
}

/* Winning card highlight - use outline to not change size */
.card-front.winner {
  outline: 4px solid #FFD700;
  outline-offset: -4px;
}

/* Card corner - top left only */
.card-corner {
  position: absolute;
  top: 0.3em;
  left: 0.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-rank {
  font-size: 18px;
  font-weight: 900;
}

.card-suit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-suit svg {
  width: 14px;
  height: 14px;
}

.card-center {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-suit-big {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Фиксированный размер в пикселях - не зависит от font-size карты */
.card-suit-big svg {
  width: 48px;
  height: 48px;
}

/* Card figures (K, Q, J) */
.card-figure {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  height: 45%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Card Back - striped pattern (fixed px values) */
.card-back {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  border: 2px solid #3b82f6;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  box-sizing: border-box;
  /* 3D flip - back is at 0deg, hidden when container flips */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-back-pattern {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background:
    repeating-linear-gradient(
      45deg,
      #1e3a8a 0px,
      #1e3a8a 3px,
      #2563eb 3px,
      #2563eb 6px
    ),
    repeating-linear-gradient(
      -45deg,
      #1e3a8a 0px,
      #1e3a8a 3px,
      #2563eb 3px,
      #2563eb 6px
    );
  background-blend-mode: multiply;
  border-radius: 3px;
  opacity: 0.8;
}


/* ========== INFO ROW (WIN | BET | CREDITS) ========== */
.vp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, #0d0d2b 0%, #000 100%);
}

.vp-win-display {
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-label {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
}

.win-value {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
}

.vp-bet-display {
  flex: 1 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 4px 12px;
  cursor: default;
}

.vp-bet-display.clickable {
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.vp-bet-display.clickable:hover {
  background: rgba(255, 215, 0, 0.15);
}

.vp-bet-display.clickable:active {
  background: rgba(255, 215, 0, 0.25);
}

.vp-bet-display:disabled {
  cursor: default;
}

.bet-value {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
}

.vp-credits-display {
  flex: 1 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.credits-label {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
}

.credits-value {
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}


/* ========== BUTTON ROW (Fixed) ========== */
.vp-button-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px 14px 10px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 2px solid #444;
  border-radius: 0;
}

@media (min-width: 600px) {
  .vp-button-row {
    padding: 8px 10px;
  }
}

/* Desktop - restore border-radius */
@media (min-width: 768px) {
  .vp-button-row {
    border-radius: 0 0 10px 10px;
  }
}

.vp-btn {
  padding: 12px 10px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  background: linear-gradient(180deg, #555 0%, #333 100%);
  color: #fff;
  border: 1px solid #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-btn:disabled {
  background: #3D3D42 !important;
  opacity: 0.6;
  cursor: not-allowed;
  color: #888 !important;
  border-color: #555 !important;
  box-shadow: none !important;
}

/* Small sound button */
.vp-btn.vp-sound-btn {
  flex: 0 0 44px;
  padding: 10px;
  background: linear-gradient(180deg, #444 0%, #2a2a2a 100%);
  border-color: #555;
  color: #FFD700;
}

.vp-btn.vp-sound-btn:hover {
  background: linear-gradient(180deg, #555 0%, #333 100%);
}

/* Fullscreen button */
.vp-btn.vp-fullscreen-btn {
  flex: 0 0 44px;
  padding: 10px;
  background: linear-gradient(180deg, #444 0%, #2a2a2a 100%);
  border-color: #555;
  color: #FFD700;
}

.vp-btn.vp-fullscreen-btn:hover {
  background: linear-gradient(180deg, #555 0%, #333 100%);
}

/* Double button - medium size */
.vp-btn.double-btn {
  flex: 1 1;
  max-width: 100px;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  border-color: #ef4444;
}

/* Deal/Draw/Collect - BIG button */
.vp-btn.deal-btn {
  flex: 2 1;
  font-size: 16px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #4ade80;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}


/* ========== LOGIN OVERLAY ========== */
.vp-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.vp-login-prompt {
  background: linear-gradient(180deg, #1a1a4e 0%, #0d0d2b 100%);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #FFD700;
}

.vp-login-prompt p {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px 0;
}

.vp-login-prompt button {
  padding: 12px 32px;
  background: linear-gradient(180deg, #FFD700 0%, #b8860b 100%);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* ========== RESPONSIVE ========== */
/* Карточки масштабируются через font-size на .vp-card */

@media (min-width: 400px) {
  .vp-card {
    font-size: 9px;
  }

  .card-rank {
    font-size: 20px;
  }

  .card-suit svg {
    width: 16px;
    height: 16px;
  }

  .card-suit-big svg {
    width: 56px;
    height: 56px;
  }

  .vp-cards-area {
    gap: 6px;
  }

  .held-label {
    font-size: 12px;
  }

  .vp-btn {
    font-size: 12px;
  }

  .vp-btn.deal-btn {
    font-size: 16px;
  }

  .vp-paytable-row {
    font-size: 12px;
  }

  .vp-status-bar .status-text {
    font-size: 15px;
  }
}

@media (min-width: 480px) {
  .vp-card {
    font-size: 10px;
  }

  .card-rank {
    font-size: 22px;
  }

  .card-suit svg {
    width: 18px;
    height: 18px;
  }

  .card-suit-big svg {
    width: 60px;
    height: 60px;
  }

  .vp-paytable {
    padding: 10px 12px;
  }

  .vp-paytable-row {
    font-size: 12px;
  }

  .vp-hand-display {
    font-size: 18px;
  }

  .vp-cards-area {
    gap: 8px;
  }

  .vp-btn {
    font-size: 13px;
  }

  .vp-btn.deal-btn {
    font-size: 18px;
  }

  .vp-status-bar .status-text {
    font-size: 16px;
  }
}

@media (min-width: 600px) {
  .vp-card {
    font-size: 10px;
  }

  .card-rank {
    font-size: 24px;
  }

  .card-suit svg {
    width: 20px;
    height: 20px;
  }

  .card-suit-big svg {
    width: 58px;
    height: 58px;
  }

  .vp-paytable-row {
    font-size: 12px;
  }

  .vp-cards-area {
    gap: 10px;
    max-width: 500px;
  }

  .vp-status-bar .status-text {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .vp-card {
    font-size: 11px;
  }

  .card-rank {
    font-size: 26px;
  }

  .card-suit svg {
    width: 22px;
    height: 22px;
  }

  .card-suit-big svg {
    width: 62px;
    height: 62px;
  }
}

@media (min-width: 1024px) {
  .vp-card {
    font-size: 12px;
  }

  .card-rank {
    font-size: 24px;
  }

  .card-suit svg {
    width: 18px;
    height: 18px;
  }

  .card-suit-big svg {
    width: 64px;
    height: 64px;
  }
}

/* ========== BET SELECTION POPUP ========== */
.vp-bet-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.vp-bet-popup {
  background: linear-gradient(180deg, #1a1a4e 0%, #0d0d2b 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 16px;
  width: 90%;
  max-width: 280px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.vp-bet-popup-title {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.vp-bet-popup-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 6px;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vp-bet-popup-item {
  padding: 10px 4px;
  background: #2a2a3e;
  border: 2px solid #3a3a4e;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.vp-bet-popup-item:hover {
  background: #3a3a4e;
  border-color: #4a4a5e;
}

.vp-bet-popup-item.active {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  border-color: #ffd700;
  color: #000;
}

.vp-bet-popup-item:active {
  transform: scale(0.98);
}

/* Touch devices - disable sticky hover for bet popup */
@media (hover: none) {
  .vp-bet-popup-item:hover:not(.active) {
    background: #2a2a3e;
    border-color: #3a3a4e;
  }
}

/* ========== FULLSCREEN MODE ========== */
.vp-container.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.vp-container.fullscreen-mode .vp-game-area {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.vp-container.fullscreen-mode .vp-card {
  font-size: 14px;
}

.vp-container.fullscreen-mode .card-suit-big svg {
  width: 80px;
  height: 80px;
}

.vp-container.fullscreen-mode .card-rank {
  font-size: 32px;
}

.vp-container.fullscreen-mode .card-suit svg {
  width: 26px;
  height: 26px;
}

.vp-container.fullscreen-mode .vp-btn.deal-btn {
  font-size: 22px;
  padding: 16px 32px;
}

.vp-container.fullscreen-mode .vp-status-bar .status-text {
  font-size: 22px;
}

/* Fullscreen buttons */
.vp-container .fullscreen-buttons {
  position: absolute;
  top: 60px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 10000;
}

.vp-container .fullscreen-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.vp-container .fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.vp-container .fullscreen-btn.close-game {
  background: rgba(255, 100, 100, 0.3);
}

.vp-container .fullscreen-btn.close-game:hover {
  background: rgba(255, 100, 100, 0.5);
}

/* Hide fullscreen button on mobile */
@media (max-width: 768px) {
  .vp-fullscreen-btn.fullscreen-toggle-btn {
    display: none !important;
  }
}

/* ============================================
   ROYAL FLUSH CELEBRATION
   ============================================ */

/* Cards glow when Royal Flush */
.vp-container.royal-flush-active .vp-card {
  animation: royal-glow 0.5s ease-in-out infinite alternate;
  box-shadow: 0 0 30px 10px #FFD700, 0 0 60px 20px rgba(255, 215, 0, 0.5);
}

@keyframes royal-glow {
  from {
    box-shadow: 0 0 30px 10px #FFD700, 0 0 60px 20px rgba(255, 215, 0, 0.5);
    transform: scale(1);
  }
  to {
    box-shadow: 0 0 50px 15px #FFA500, 0 0 80px 30px rgba(255, 165, 0, 0.6);
    transform: scale(1.02);
  }
}

/* Celebration overlay */
.royal-flush-celebration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

/* Confetti container */
.royal-flush-confetti {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--color);
  top: -20px;
  left: var(--x);
  opacity: 0;
  animation: confetti-fall 5s ease-out var(--delay) forwards;
}

.confetti-piece:nth-child(odd) {
  width: 8px;
  height: 16px;
  border-radius: 2px;
}

.confetti-piece:nth-child(even) {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Royal Flush Text - на картах */
.royal-flush-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 30;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: royal-text-appear 0.5s ease-out;
}

@keyframes royal-text-appear {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.royal-flush-title {
  display: block;
  font-size: 44px;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 2px;
  white-space: nowrap;
  animation: royal-title-pulse 0.8s ease-in-out infinite;
}

@keyframes royal-title-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.royal-flush-subtitle {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.royal-flush-amount {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: #FFD700;
  margin-top: 10px;
  animation: amount-pulse 0.6s ease-in-out infinite;
}

@keyframes amount-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .royal-flush-title {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .royal-flush-subtitle {
    font-size: 16px;
  }

  .royal-flush-amount {
    font-size: 28px;
  }

  .confetti-piece {
    width: 6px;
    height: 6px;
  }
}


/* ========== VP LOADER (загрузка карт) ========== */
.vp-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d0d2b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: 8px;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.vp-loader.fade-out {
  opacity: 0;
}

.vp-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 80%;
  max-width: 240px;
}

.vp-loader-brand {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vp-loader-logo {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
  opacity: 0.9;
}

.vp-loader-progress-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.vp-loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
  border-radius: 3px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.vp-loader-percent {
  color: #FFD700;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* Mobile: убираем закругление у loader */
@media (max-width: 768px) {
  .vp-loader {
    border-radius: 0;
  }
}

/* Reconnecting overlay */
.vp-reconnecting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 8px;
}

.vp-reconnecting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vp-reconnecting-content .reconnecting-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-top: 3px solid #FFD700;
  border-radius: 50%;
  animation: vpReconnectSpin 0.8s linear infinite;
}

@keyframes vpReconnectSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vp-reconnecting-content span {
  color: #FFD700;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: vpReconnectPulse 1.5s ease-in-out infinite;
}

@keyframes vpReconnectPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

