/* =====================================================
   PIXELSTRIKEX SHARED THEME
   Drop this file into your WordPress assets folder and
   each game will reference it via <link>. Tweak the
   :root variables to rebrand the whole suite at once.
   ===================================================== */

:root {
  --vcr-bg-deep: #020610;
  --vcr-bg-mid: #050d1f;
  --vcr-bg-card: #0a1a3a;
  --vcr-gold: #ffd700;
  --vcr-gold-hot: #ff8c42;
  --vcr-red: #ff4d6d;
  --vcr-red-deep: #c9184a;
  --vcr-green: #5a189a;
  --vcr-purple: #7850ff;
  --vcr-text: #ffffff;
  --vcr-text-muted: #b8a8d4;
  --vcr-text-dim: #8a7ba8;
  --vcr-border: rgba(255, 215, 0, 0.2);
  --vcr-border-hot: rgba(255, 215, 0, 0.6);
  --vcr-grad-hero: linear-gradient(135deg, #ffd700 0%, #ff8c42 50%, #ff4d6d 100%);
  --vcr-grad-button: linear-gradient(135deg, #ff4d6d, #ff8c42);
  --vcr-grad-gold: linear-gradient(135deg, #ffd700, #ff8c42);
  --vcr-grad-card: linear-gradient(180deg, #1f1238 0%, #150a26 100%);
  --vcr-glow-gold: 0 0 60px rgba(255, 215, 0, 0.4);
  --vcr-glow-red: 0 10px 30px rgba(255, 77, 109, 0.5);
  --vcr-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body.vcr-body {
  font-family: var(--vcr-font);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(157, 78, 221, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(90, 24, 154, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #050d1f 0%, #020610 100%);
  background-attachment: fixed;
  color: var(--vcr-text);
  min-height: 100vh;
  padding-bottom: 0;
  margin: 0;
}
body.vcr-body > *:last-child { margin-bottom: 0 !important; }
body.vcr-body footer { margin-bottom: 0 !important; padding-bottom: 30px; }


/* === Top bar with logo + wallet === */
.vcr-topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #0a1a3a 0%, #06122a 50%, #020610 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(157, 78, 221, 0.4);
  padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.vcr-logo {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #9d4edd 0%, #5a189a 50%, #e0aaff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 0 30px rgba(157, 78, 221, 0.4);
}
.vcr-logo span { font-size: 18px; }
.vcr-nav-right {
  display: flex; gap: 14px; align-items: center;
}
.vcr-wallet {
  background: rgba(255, 215, 0, 0.10);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  padding: 8px 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
}
.vcr-wallet-coin {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe87a, #d4a017);
  border: 2px solid #b8860b;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #8b6914; font-weight: 900;
}
.vcr-wallet-amount {
  color: var(--vcr-gold);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.vcr-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--vcr-text-muted);
  padding: 8px 16px; border-radius: 999px;
  text-decoration: none; font-size: 13px; font-weight: 600;
}
.vcr-bonus-btn {
  background: linear-gradient(135deg, #9d4edd, #5a189a);
  color: #fff; border: none;
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(157, 78, 221, 0.45);
}
.vcr-bonus-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* === Stage layout for each game === */
.vcr-stage {
  max-width: 1100px; margin: 32px auto;
  padding: 0 24px;
}
.vcr-game-header { text-align: center; margin-bottom: 32px; }
.vcr-game-title {
  font-size: 48px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #9d4edd 0%, #5a189a 30%, #ffffff 50%, #5a189a 70%, #9d4edd 100%);
  background-size: 200% auto;
  animation: vcr-title-shine 4s linear infinite;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 24px rgba(157, 78, 221, 0.5));
}
@keyframes vcr-title-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.vcr-game-sub { color: #e0d4ff; font-size: 16px; font-weight: 500; letter-spacing: 0.5px; }

.vcr-panel {
  background:
    radial-gradient(ellipse at top, rgba(90, 24, 154, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0a1a3a 0%, #050d1f 100%);
  border: 1.5px solid rgba(157, 78, 221, 0.35);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 0 36px rgba(157, 78, 221, 0.22), 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(224, 170, 255, 0.08);
  position: relative;
}
.vcr-panel.gold-glow {
  box-shadow: 0 0 48px rgba(157, 78, 221, 0.35), 0 0 80px rgba(157, 78, 221, 0.2), 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(224, 170, 255, 0.1);
  border-color: rgba(157, 78, 221, 0.5);
}

/* === Controls === */
.vcr-controls {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin-top: 24px;
}
.vcr-btn {
  background: var(--vcr-grad-button);
  color: #fff; border: none;
  padding: 14px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 800;
  letter-spacing: 1px; cursor: pointer;
  box-shadow: var(--vcr-glow-red);
  transition: transform .15s, box-shadow .15s;
  font-family: var(--vcr-font);
}
.vcr-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 77, 109, 0.6); }
.vcr-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.vcr-btn-gold {
  background: var(--vcr-grad-gold);
  color: #0a0612;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}
.vcr-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--vcr-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
.vcr-btn-sm { padding: 9px 18px; font-size: 13px; }

.vcr-bet {
  display: inline-flex; align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--vcr-border);
  border-radius: 999px;
  padding: 4px;
}
.vcr-bet-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15);
  color: var(--vcr-gold);
  border: none; font-weight: 900; font-size: 18px;
  cursor: pointer;
}
.vcr-bet-amt {
  padding: 0 18px;
  color: var(--vcr-gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  text-align: center;
}

/* === Messages / toast === */
.vcr-msg {
  text-align: center; padding: 14px;
  margin-top: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  min-height: 50px;
}
.vcr-msg.win {
  background: rgba(90, 24, 154, 0.12);
  border: 1px solid rgba(90, 24, 154, 0.4);
  color: var(--vcr-green);
}
.vcr-msg.lose {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: var(--vcr-red);
}
.vcr-msg.info {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--vcr-border);
  color: var(--vcr-gold);
}

/* === Floating coin animation === */
@keyframes vcr-coin-rise {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -120px) scale(1.4); opacity: 0; }
}
.vcr-coin-float {
  position: fixed;
  pointer-events: none;
  font-size: 28px;
  font-weight: 900;
  color: var(--vcr-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
  animation: vcr-coin-rise 1.4s ease-out forwards;
  z-index: 9999;
}

/* === Playing cards === */
.vcr-card {
  display: inline-flex; flex-direction: column;
  width: 78px; height: 110px;
  background: linear-gradient(180deg, #fff 0%, #f4f1e8 100%);
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  padding: 6px 8px;
  color: #111;
  font-family: 'Georgia', serif;
  font-weight: 700;
  position: relative;
  justify-content: space-between;
}
.vcr-card.red { color: #c9184a; }
.vcr-card-rank { font-size: 22px; line-height: 1; }
.vcr-card-suit { font-size: 22px; line-height: 1; }
.vcr-card-center { font-size: 36px; text-align: center; line-height: 1; }
.vcr-card-bottom { transform: rotate(180deg); font-size: 22px; align-self: flex-end; line-height: 1; }
.vcr-card.back {
  background:
    repeating-linear-gradient(45deg, #4a1f7a 0 8px, #2a1750 8px 16px);
  color: transparent;
  border-color: var(--vcr-gold);
}

/* === Dice === */
.vcr-die {
  display: inline-grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 -4px 8px rgba(0,0,0,0.08);
  padding: 9px;
  gap: 4px;
}
.vcr-die-dot {
  background: #111;
  border-radius: 50%;
  visibility: hidden;
}
.vcr-die-dot.on { visibility: visible; }

@keyframes vcr-shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-4px, 2px) rotate(-8deg); }
  40% { transform: translate(4px, -2px) rotate(6deg); }
  60% { transform: translate(-3px, 3px) rotate(-4deg); }
  80% { transform: translate(2px, -3px) rotate(8deg); }
}
.vcr-shake { animation: vcr-shake .5s ease-in-out; }

/* === Reels === */
.vcr-reelbox {
  background: #000;
  border: 3px solid var(--vcr-gold);
  border-radius: 16px;
  padding: 16px;
  display: inline-flex; gap: 10px;
  box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.15), 0 12px 40px rgba(0,0,0,0.5);
}
.vcr-reel {
  width: 90px; height: 110px;
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.2);
}
.vcr-reel-strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column;
  align-items: center;
}
.vcr-reel-cell {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 900;
  font-family: 'Georgia', serif;
  color: var(--vcr-red);
  width: 90px;
}
.vcr-reel.spinning .vcr-reel-strip { animation: vcr-spin-fast .08s linear infinite; }
@keyframes vcr-spin-fast {
  from { transform: translateY(0); }
  to { transform: translateY(-110px); }
}

/* === Toast for daily bonus, etc. === */
.vcr-toast {
  position: fixed; top: 80px; right: 24px;
  background: var(--vcr-grad-gold);
  color: #0a0612;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.5);
  z-index: 1000;
  animation: vcr-toast-in .3s ease-out;
}
@keyframes vcr-toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* === Modal === */
.vcr-modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(6px);
}
.vcr-modal {
  background: var(--vcr-grad-card);
  border: 2px solid var(--vcr-border-hot);
  border-radius: 24px;
  padding: 36px;
  max-width: 440px; width: 90%;
  text-align: center;
  box-shadow: var(--vcr-glow-gold);
}
.vcr-modal h2 {
  font-size: 28px; margin-bottom: 12px;
  background: var(--vcr-grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vcr-modal p { color: var(--vcr-text-muted); margin-bottom: 24px; line-height: 1.5; }

/* === Utility === */
.vcr-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vcr-center { text-align: center; }
.vcr-mt { margin-top: 20px; }
.vcr-hidden { display: none !important; }
.vcr-glow { text-shadow: 0 0 16px rgba(255, 215, 0, 0.6); }

@media (max-width: 700px) {
  .vcr-game-title { font-size: 30px; }
  .vcr-panel { padding: 20px; }
  .vcr-reel { width: 70px; height: 90px; }
  .vcr-reel-cell { width: 70px; height: 90px; font-size: 44px; }
}
/* === Topbar shown on every game/info page — matches the lobby's top nav === */
.vcr-topbar-img {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: linear-gradient(180deg, #0a1a2e 0%, #15071f 50%, #020610 100%) !important;
  border-bottom: 2px solid !important;
  border-image: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent) 1 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 215, 0, 0.2) !important;
  padding: 16px 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}
.vcr-topbar-img .vcr-logo {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700 0%, #ff4d6d 50%, #ffd700 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: 1px;
  text-decoration: none;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
}
.vcr-topbar-img .vcr-logo span { font-size: 18px; }
.vcr-nav-row {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
}
.vcr-main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.vcr-main-nav a {
  color: #e8dcfc !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: all .2s !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.vcr-main-nav a:hover { color: #ffd700 !important; }
.vcr-topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 1100px) {
  .vcr-main-nav a { font-size: 13px; padding: 5px 8px; }
}
@media (max-width: 700px) {
  .vcr-topbar-img { padding: 10px 14px !important; gap: 12px !important; }
  .vcr-topbar-img .vcr-logo { font-size: 18px; }
  .vcr-main-nav a { font-size: 12px; padding: 4px 6px; }
}


/* ===================================================================
   MOBILE RESPONSIVE — applied at <= 900px
   ================================================================= */
@media (max-width: 900px) {
  body.vcr-body { padding-bottom: 0; }

  /* Topbar: stack into 2 rows, allow nav scroll */
  .vcr-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .vcr-topbar-spacer { display: none !important; }
  .vcr-nav-row {
    flex: 1 1 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .vcr-main-nav {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 4px 4px 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .vcr-main-nav::-webkit-scrollbar { height: 4px; }
  .vcr-main-nav::-webkit-scrollbar-thumb { background: rgba(157,78,221,0.4); border-radius: 2px; }
  .vcr-main-nav > a, .vcr-main-nav > .vcr-nav-dd { white-space: nowrap; font-size: 13px; flex-shrink: 0; }
  .vcr-nav-dd-menu { position: fixed !important; top: auto !important; bottom: 20px !important; left: 10px !important; right: 10px !important; transform: none !important; min-width: 0 !important; max-height: 60vh; overflow: auto; }
  .vcr-nav-dd:hover .vcr-nav-dd-menu { transform: none !important; }

  .vcr-topbar-actions { justify-content: center !important; flex-wrap: wrap; gap: 8px !important; }
  .vcr-wallet { padding: 6px 14px !important; font-size: 14px; }
  .vcr-bonus-btn { padding: 8px 14px !important; font-size: 12px; }

  /* Game stage scaling */
  .vcr-stage { padding: 0 14px !important; margin: 18px auto !important; }
  .vcr-game-title { font-size: 32px !important; }
  .vcr-game-sub { font-size: 14px !important; padding: 0 8px; }
  .vcr-panel { padding: 18px 14px !important; border-radius: 18px !important; }

  /* Controls wrap properly */
  .vcr-controls { gap: 8px !important; flex-wrap: wrap !important; }
  .vcr-btn { padding: 12px 22px !important; font-size: 14px !important; }
  .vcr-bet { font-size: 14px !important; }

  /* Footer columns reflow */
  footer .grid, body footer > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 540px) {
  footer > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .vcr-game-title { font-size: 26px !important; }
  .vcr-panel { padding: 14px 10px !important; }
}


@media (max-width: 900px) {
  body.vcr-body { background-attachment: scroll !important; }
  /* Disable expensive shimmer animations on mobile to prevent scroll jank */
  .vcr-game-title { animation: none !important; filter: none !important; -webkit-text-fill-color: transparent; }
}


@media (max-width: 900px) {
  html, body.vcr-body { overflow-x: hidden !important; }
  .vcr-panel { overflow-x: auto !important; }
}
