/**
 * ╔══════════════════════════════════════════════════════════════╗
 * ║           VEGASLOT CASINO — STYLESHEET                      ║
 * ║  Edit colors, sizes, fonts freely. All values use CSS       ║
 * ║  clamp() for responsive scaling — feel free to swap them    ║
 * ║  for fixed px values if you prefer.                         ║
 * ╚══════════════════════════════════════════════════════════════╝
 */

/* ─── RESET & BASE ────────────────────────────────────────────── */
/* ── Game-launch toast (works in fullscreen) ───────────────── */


#vs-toast {
  position: fixed;
  top: clamp(12px, 3vw, 24px);
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: linear-gradient(135deg, #1a2d44 0%, #0d1a2b 100%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 99999;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
  opacity: 0;
  pointer-events: none;
  min-width: 200px;
  text-align: center;
}
#vs-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#vs-toast .vst-id   { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .06em; }
#vs-toast .vst-name { font-weight: 700; font-size: 14px; color: #f0c040; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── EDIT THESE COLORS ── */
  --color-bg:           #000000;       /* Page background              */
  --color-accent-gold:  #f5e642;       /* Jackpot numbers              */
  --color-accent-green: #00dd55;       /* "GOLDEN" label               */
  --color-live-red:     #cc2222;       /* LIVE badge background        */
  --color-btn-play:     #3b5bdb;       /* PLAY button gradient start   */
  --color-btn-play-end: #4c6ef5;       /* PLAY button gradient end     */
  --color-nav-active:   #2d8a4e;       /* Active section toggle green  */
  --color-popup-border: rgb(77,88,127);/* Popup border                 */

  --font-main: 'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  font-family: var(--font-main);
  color: #fff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
img    { display: block; }

/* ─── LAYOUT ──────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ─── TOP BAR (jackpot ticker) ────────────────────────────────── */
#top-bar {
  width: 100%;
  display: flex;
  height: clamp(22px, 3.5vw, 28px);
  background-image: url('../images/backgrounds/header-bar.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  flex-shrink: 0;
  z-index: 20;
  overflow: hidden;
  font-family: monospace;
}

.jackpot-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 12px);
  padding: 0 8px;
  min-width: 0;
}

.jackpot-brill {
  flex-shrink: 0;
  width:  clamp(18px, 3.5vw, 48px);
  height: clamp(18px, 3.5vw, 48px);
  object-fit: contain;
}

.jackpot-label {
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(10px, 1.8vw, 25px);
  text-shadow: 0 0 3px #0f57df;
background-clip: text;
}

.jackpot-label-golden { color: var(--color-accent-green); }

.jackpot-value {
  color: var(--color-accent-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
 font-size: clamp(9px, 1.5vw, 20px);
   /* min-width: clamp(80px, 12vw, 160px);
   text-align: right;*/
  font-variant-numeric: tabular-nums;
}

/* ─── HEADER (logo + fullscreen) ──────────────────────────────── */
#header {
  width: 100%;
  height: 100px;                       /* ← change header height here */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  z-index: 20;
  background-image: url('../images/backgrounds/header-bg.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#site-title {
  font-size: 1.875rem;                /* ← change logo font size here */
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 20%, #b8b8b8 50%, #888 75%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9));
 
}
#site-title img{  height:80%; }

#fullscreen-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
#fullscreen-btn:hover { opacity: 1; }
#fullscreen-btn img {
  width: 20px; height: 20px;
  object-fit: contain;
  transition: transform 0.2s;
}
#fullscreen-btn.active img { transform: rotate(45deg); }

/* ─── GAME AREA ───────────────────────────────────────────────── */
#game-area {
  flex: 1;
  display: flex;
  flex-direction: column;A
─AME SLIDER ─────────;
  overflow: hidden;                        /* prevents bleed under footer */
  padding-bottom: clamp(60px, 8vw, 96px); /* space for fixed footer nav  */
}

/* ─── GAME SLIDER ─────────────────────────────────────────────── */
#slider-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;                    /* let children fill height */
  width: 100%;
  padding: 0 clamp(4px, 2vw, 32px);
  min-height: 0;
  overflow: hidden;
}


#nav-left, #nav-right {
  flex-shrink: 0;
  position:absolute;
  /*align-self: center;  */                    /* vertically centre arrows */
  width:  clamp(38px, 12.5vw, 100px);
  height: clamp(60px, 10vw, 140px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.1s;
  z-index: 20;
}

#nav-left{
	top:35%;
	left:2%;
}

#nav-right{
	top:35%;
	right:2%;
}
 
#nav-left  { background-image: url('../images/buttons/nav-left.png');  }
#nav-right { background-image: url('../images/buttons/nav-right.png'); }
[dir="rtl"] #nav-left  { background-image: url('../images/buttons/nav-right.png'); }
[dir="rtl"] #nav-right { background-image: url('../images/buttons/nav-left.png');  }
#nav-left:hover, #nav-right:hover  { opacity: 1; transform: scale(1.05); }
#nav-left:active, #nav-right:active { transform: scale(0.90); }




/* Viewport grows/shrinks with available space — no forced vw height */
#slide-viewport {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.slide-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*gap: clamp(4px, 1vh, 14px); */            /* vh-based gap adapts to height */
}

/* Slider animation classes */
.slide-page.enter-right { animation: slideInRight 0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.slide-page.enter-left  { animation: slideInLeft  0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.slide-page.exit-right  { animation: slideOutRight 0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.slide-page.exit-left   { animation: slideOutLeft  0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.slide-page.no-anim     { animation: none !important; }

@keyframes slideInRight  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0);    opacity: 1; } }
@keyframes slideInLeft   { from { transform: translateX(-100%);opacity: 0; } to { transform: translateX(0);    opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0);    opacity: 1; } to { transform: translateX(-100%);opacity: 0; } }
@keyframes slideOutLeft  { from { transform: translateX(0);    opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.card-row {
  display: flex;
  justify-content: center;
  width: 100%;
}
.card-row.top-row    { gap: clamp(5px, 4vw, 32px); }
.card-row.bottom-row { gap: clamp(4px, 3.5vw, 24px); }

/* ─── GAME CARD ───────────────────────────────────────────────── */
.game-card {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  /* Width drives aspect-ratio height — kept smaller so 5 cards fit vertically */
  width: clamp(100px, 25vw, 340px);
  aspect-ratio: 320 / 216;
  /*background-image: url('../images/backgrounds/ring.webp');
  background-size: 100% 100%;*/
  background-repeat: no-repeat;
  transition: transform 0.2s;
}
.game-card:hover { transform: scale(1.03); }

.card-row.top-row .card-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path:ellipse(49% 46% at 50% 50%);
  /* background-color: #0d0d0d;*/
 
}

.card-row.bottom-row .card-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path:ellipse(49% 46% at 50% 50%);
  /* background-color: #0d0d0d;*/
 
}



.card-img-wrap img {
  width: 100%; height: 100%;
  /*object-fit: cover;*/
  opacity: 0.95;
  transition: opacity 0.5s;
}


.game-card:hover .card-img-wrap img { opacity: 1; }
.card-overlay {
  position: absolute;
  /*inset: 0;*/
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
}

.card-live-badge {
  position: absolute;
  background: var(--color-live-red);
  color: #fff;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  letter-spacing: 0.1em;
  font-size: clamp(7px, 1vw, 10px);
  z-index: 3;
  top:  8%;
  left: 13%;
}

.card-name { display: none; }
.card-name {
  position: absolute;
  z-index: 3;
  bottom: 10%;
  left:   13%;
  max-width: 60%;
  font-weight: 900;
  font-size: clamp(9px, 1.3vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,1);
}

.card-info-btn {
  position: absolute;
  z-index: 4;
  right: 2%;
  top:   35%;
  width:  clamp(18px, 2.3vw, 32px);
  height: clamp(18px, 2.3vw, 32px);
  background: transparent;
  border: none;
}

/* ─── SLIDER FOOTER (page counter + animation toggle) ─────────── */
#slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0 clamp(16px, 4vw, 32px) clamp(4px, 0.6vh, 8px);
}

#page-counter {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.anim-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

#anim-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
}
.toggle-switch input { display: none; }
.toggle-track {
  display: block;
  width: 100%; height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--color-nav-active); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }

/* ─── BOTTOM NAV ──────────────────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: clamp(60px, 8vw, 95px);
  background-image: url('../images/backgrounds/footer-bg.webp');
  /* 125% wide + centered exactly matches the React original */
  background-size: 125% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  /* 3-column grid: left fills | center auto | right fills */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 50;
  overflow: hidden;        /* scroll on very narrow screens instead of clipping */
  min-width: fit-content;
  padding-top:5px;
}

/* ── Nav groups ───────────────────────────────────────────────── */
.nav-group-left {
  display: flex;
  align-items: center;
  height: 100%;
  /*padding-left: 8px;
  gap: clamp(1px, 0.5vw, 4px);*/
  justify-content: center;
align-items: center;
/*margin-top:10px;*/
}
.nav-group-center {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  padding: 0 2px;
  flex-shrink: 0;
}
.nav-group-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
 /* padding-right: 8px;
  gap: clamp(1px, 0.5vw, 4px);*/
  justify-content: center;
align-items: center;
/*margin-top:10px;*/
}

/* Vertical divider between circle groups and box groups */
.nav-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  margin: 0 clamp(2px, 0.5vw, 6px);
  flex-shrink: 0;
}

/* Bordered box wrapping square buttons and section tabs */
.nav-group-box {
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.3vw, 4px);
  border: 2.5px solid rgba(125, 165, 245, 0.3);
  border-radius: 12px;
  padding: 4px;
  flex-shrink: 0;
}

/* ── Circle button (Settings / Sound / Telegram / Chat) ───────── */
.circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
  width:  clamp(44px, 5.5vw, 62px);
  height: clamp(48px, 6.5vw, 68px);
  gap: clamp(2px, 0.4vw, 4px);
  flex-shrink: 0;
}
.circle-btn-icon:hover { color: #edae44; }
.circle-btn-icon {
  width:  clamp(32px, 4vw, 46px);
  height: clamp(32px, 4vw, 46px);
  background-image: url('../images/buttons/circle-btn.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-btn-icon svg { width: clamp(14px, 1.8vw, 18px); height: clamp(14px, 1.8vw, 18px); fill: #fff; color:transparent }

.circle-btn-icon:hover svg{ fill:#edae44 }

.circle-btn-icon--flag { display:flex; align-items:center; justify-content:center; }
.circle-btn-label {
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 600;
  /*text-transform: uppercase;*/
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

/* ── Square button (Categories / Providers) ───────────────────── */
.square-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #1e2d45 0%, #0d1624 60%, #060e1a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  transition: color 0.15s, background 0.15s;
  width:  clamp(60px, 7vw, 100px);
  height: clamp(40px, 4.5vw, 58px);
  flex-shrink: 0;
}


.square-btn svg { width: clamp(16px, 2vw, 24px); height: clamp(16px, 2vw, 24px);  fill: #fff; color:transparent;  }
.square-btn:hover svg{ fill: #edae44; }

.square-btn-label {
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  padding: 0 2px;
}

/* ── Green pill buttons (PROMOS / ENTRY) ──────────────────────── */
.green-pill-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('../images/buttons/footer-left-btn.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff;
  /*gap: 2px;*/
  flex-shrink: 0;
  width:  clamp(72px, 8vw, 104px);
  height: clamp(52px, 6vw, 76px);
  /*margin-right: clamp(12px, 2vw, 28px);*/
  transition: filter 0.15s;
  margin-top: 5px;

}
.green-pill-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('../images/buttons/footer-right-btn.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff;
 /* gap: 2px;*/
  flex-shrink: 0;
  width:  clamp(72px, 8vw, 104px);
  height: clamp(52px, 6vw, 76px);
  /*margin-left: clamp(12px, 2vw, 28px);*/
  transition: filter 0.15s;
margin-top: 5px;
}
.green-pill-left:hover, .green-pill-right:hover { filter: brightness(1.15); }
[dir="rtl"] .green-pill-left  { margin-left:  clamp(12px, 2vw, 28px); }
[dir="rtl"] .green-pill-right { margin-right: clamp(12px, 2vw, 28px); }
.green-pill-icon { width: clamp(18px, 2.2vw, 26px); height: clamp(18px, 2.2vw, 26px); object-fit: contain; }
.green-pill-label {
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Balance display ──────────────────────────────────────────── */
#balance-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: clamp(52px, 6vw, 76px);
  padding: 0 clamp(8px, 1.5vw, 20px);
  min-width: clamp(120px, 16vw, 200px);
  flex-shrink: 0;
  margin-left: 5px;
margin-right: 15px;
}
.balance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}
.balance-label       { font-weight: 700;   font-size: clamp(10px,1.2vw,15px);  color: #fff; }
.balance-value       { font-weight: 700;   font-size: clamp(11px,1.4vw,18px);  color: #4dd9e8; }
.balance-value small { font-size: clamp(9px,1vw,13px); }
.balance-bonus-label { font-weight: 600;   font-size: clamp(9px,1vw,13px);     color: #f0c040; font-style: italic; }
.balance-bonus       { font-weight: 700;   font-size: clamp(9px,1.1vw,14px);   color: #f0c040; }

/* ── Section tabs (Casino / Slots) ───────────────────────────── */
/* #section-tabs is now .nav-group-box in the right group — no separate wrapper */
.section-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #1e2d45 0%, #0d1624 60%, #060e1a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  width:  clamp(60px, 7vw, 88px);
  height: clamp(40px, 4.5vw, 58px);
  flex-shrink: 0;
  position: relative;
}
.section-tab.active {
  background: #0a1220;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
}
.section-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8px; right: 8px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}
.section-tab svg { width: clamp(16px, 2vw, 24px); height: clamp(16px, 2vw, 24px); fill: #fff; color:transparent;}
.section-tab:hover svg{ fill: #edae44; }

.section-tab-label {
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  padding: 0 2px;
}

/* ─── POPUPS ──────────────────────────────────────────────────── */

/* Overlay is bounded to the MIDDLE area only (below top-bar, above footer).
   This means the popup can never visually overlap the logo or nav bar.
   Click-outside on the overlay closes the popup. */
#popup-overlay {
  display: none;
  position: fixed;
  /* top-bar height: clamp(22px,3.5vw,28px)  footer height: clamp(60px,8vw,96px) */
  top:    clamp(22px, 3.5vw, 28px);
  left:   0;
  right:  0;
  bottom: clamp(60px, 8vw, 96px);
  z-index: 200;
  /* Slight dark tint + blur behind the popup — game area only */
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
#popup-overlay.open { display: flex; }

/* Popup box is constrained to the available middle-area height */
/* Remove the separate #game-area blur — the overlay backdrop-filter handles it */
#game-area.blurred { filter: none; }

#popup-box {
  width: min(400px, 92vw);
  /* Stay within the bounded overlay — never touch logo or footer */
  max-height: min(80%, calc(100dvh - clamp(22px,3.5vw,28px) - clamp(60px,8vw,96px) - 24px));
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(
    rgb(9,13,40),
    rgba(71,86,122,0.82) 15px,
    rgba(50,60,85,0.80) 22px,
    rgba(47,57,81,0.92) 33px,
    rgba(15,20,32,0.78) 48px,
    rgba(0,0,0,0.70) 55px,
    rgba(14,18,27,0.68)
  ), linear-gradient(rgba(39,47,66,0.88), rgb(38,47,69));
  border: 2px solid var(--color-popup-border);
  border-radius: 20px;           /* all four corners rounded — centered modal */
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  animation: popupZoomIn 0.25s cubic-bezier(.34,1.4,.64,1) forwards;
  overflow: hidden;
}
#popup-box.closing { animation: popupZoomOut 0.2s ease-in forwards; }

@keyframes popupZoomIn  { from { transform: scale(0.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes popupZoomOut { from { transform: scale(1);    opacity: 1; } to { transform: scale(0.88); opacity: 0; } }

#popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}
#popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}
#popup-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
#popup-close:hover { background: rgba(255,255,255,0.2); }
#popup-close svg { width: 14px; height: 14px; }

#popup-body {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
#popup-body::-webkit-scrollbar { display: none; }

/* Popup generic list row */
.popup-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  transition: background 0.15s;
  cursor: pointer;
}
.popup-list-item:hover { background: rgba(255,255,255,0.05); }
.popup-list-item svg { width: 18px; height: 18px; flex-shrink: 0; color: rgba(255,255,255,0.5); }

/* Settings grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}
.settings-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #1e2d42 0%, #111d2e 100%);
  color: rgba(255,255,255,0.7);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.15s;
}
.settings-grid-item:hover { color: #fff; }
.settings-grid-item svg { width: 20px; height: 20px; }

/* ─── POPUP INNER LAYOUTS (pc-* classes) ──────────────────────── */

/* Settings: 3-col grid */
.pc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:16px; flex-shrink:0; }
.pc-grid-item {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; padding:12px 4px; border-radius:12px; cursor:pointer;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg,#1e2d42 0%,#111d2e 100%);
  color:rgba(255,255,255,0.7); font-size:9px; font-weight:700;
  text-transform:uppercase; letter-spacing:0.1em; transition:color .15s,border-color .15s;
}
.pc-grid-item:hover { color:#fff; border-color:rgba(255,255,255,0.18); }
.pc-grid-item svg { flex-shrink:0; }

.pc-logout-wrap { display:flex; justify-content:center; padding:12px 0; }
.pc-logout-btn { display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; opacity:.85; transition:opacity .15s; }
.pc-logout-btn:hover { opacity:1; }
.pc-logout-circle { width:44px; height:44px; border-radius:50%; background:#3ec6d8; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(62,198,216,.4); }
.pc-logout-label { font-size:9px; font-weight:700; color:rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.1em; }

.pc-legal { border-top:1px solid rgba(255,255,255,.1); padding:10px 16px; display:flex; flex-direction:column; align-items:center; gap:6px; flex-shrink:0; }
.pc-legal-row { display:flex; gap:24px; flex-wrap:wrap; justify-content:center; }
.pc-legal-row button { font-size:11px; color:rgba(255,255,255,.55); cursor:pointer; transition:color .15s; }
.pc-legal-row button:hover { color:rgba(255,255,255,.8); }

.pc-badges { border-top:1px solid rgba(255,255,255,.08); padding:10px 16px; display:flex; flex-wrap:wrap; justify-content:center; gap:6px; flex-shrink:0; }
.pc-badge { font-size:8px; font-weight:700; color:rgba(255,255,255,.3); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:4px; padding:2px 6px; text-transform:uppercase; letter-spacing:.05em; }

/* About */
.pc-about-wrap { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:12px; }
.pc-about-hero { display:flex; align-items:flex-start; gap:12px; }
.pc-about-shield { flex-shrink:0; width:64px; height:64px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:30px; background:linear-gradient(135deg,#4a7c2f,#2d5a1b); border:2px solid #6aaa3a; }
.pc-about-text { color:rgba(255,255,255,.9); font-size:14px; line-height:1.6; }
.pc-about-brand { color:#f5a623; font-weight:700; }

/* Language: 3-col grid */
.pc-lang-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:12px; overflow-y:auto; }
.pc-lang-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px 4px; border-radius:12px; cursor:pointer; border:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg,#1e2d42 0%,#111d2e 100%); transition:border-color .15s; }
.pc-lang-btn:hover { border-color:rgba(255,255,255,.2); }
.pc-lang-flag { width:40px; height:27px; object-fit:cover; border-radius:4px; display:block; }
.pc-lang-label { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.7); }
.pc-lang-btn.active .pc-lang-label { color:#4dd9e8; }

/* Categories: tabs + row */
.pc-cat-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:16px 16px 0; flex-shrink:0; }
.pc-cat-tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:16px 4px; border-radius:12px; cursor:pointer; border:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg,#1e2d42 0%,#111d2e 100%); color:rgba(255,255,255,.6); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; position:relative; transition:color .15s; }
.pc-cat-tab.active { color:#fff; border-color:rgba(255,255,255,.15); }
.pc-cat-tab.active::after { content:''; position:absolute; bottom:0; left:25%; right:25%; height:2px; border-radius:999px; background:#4dd9e8; }
.pc-cat-row { display:grid; grid-template-columns:repeat(4,1fr); padding:12px 4px; gap:4px; flex-shrink:0; }
.pc-cat-row-item { display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 4px; border-radius:12px; color:rgba(255,255,255,.7); font-size:9px; font-weight:600; text-align:center; line-height:1.2; cursor:pointer; transition:color .15s; }
.pc-cat-row-item:hover { color:#fff; }

/* ── Profile popup ─────────────────────────────────────────────── */
.pc-profile-wrap { display:flex; flex-direction:column; gap:16px; padding:16px; }
.pc-profile-avatar-row { display:flex; align-items:center; gap:14px; }
.pc-profile-avatar { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,#1e3a5f,#0d1f3c); border:2px solid rgba(77,217,232,0.4); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.pc-profile-avatar svg { width:28px; height:28px; color:#4dd9e8; }
.pc-profile-name-block { display:flex; flex-direction:column; gap:4px; }
.pc-profile-name { font-size:16px; font-weight:700; color:#fff; }
.pc-profile-status { display:flex; align-items:center; gap:5px; font-size:11px; color:rgba(255,255,255,.5); }
.pc-profile-dot { width:7px; height:7px; border-radius:50%; background:#22c55e; flex-shrink:0; box-shadow:0 0 6px rgba(34,197,94,.6); }
.pc-profile-card { display:flex; flex-direction:column; gap:0; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,.08); }
.pc-profile-row { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,.05); background:linear-gradient(180deg,#1a2840,#111d30); }
.pc-profile-row:last-child { border-bottom:none; }
.pc-profile-key { font-size:11px; color:rgba(255,255,255,.45); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.pc-profile-val { font-size:12px; color:rgba(255,255,255,.85); font-weight:600; }
.pc-profile-verified { font-size:11px; font-weight:700; color:#22c55e; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.3); border-radius:999px; padding:2px 8px; }
.pc-profile-edit-btn { width:100%; padding:10px; border-radius:10px; border:1px solid rgba(77,217,232,.3); background:linear-gradient(180deg,#1e3a5f,#0d1f3c); color:#4dd9e8; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; transition:filter .15s; }
.pc-profile-edit-btn:hover { filter:brightness(1.2); }

/* ── History popup ──────────────────────────────────────────────── */
.pc-history-wrap { display:flex; flex-direction:column; flex:1; min-height:0; }
.pc-history-filters { display:flex; align-items:flex-end; gap:8px; padding:12px 12px 8px; flex-shrink:0; flex-wrap:wrap; }
.pc-hist-date-group { display:flex; flex-direction:column; gap:3px; flex:1; min-width:90px; }
.pc-hist-label { font-size:9px; font-weight:700; color:rgba(255,255,255,.4); text-transform:uppercase; letter-spacing:.08em; padding-left:2px; }
.pc-hist-input { width:100%; padding:7px 8px; border-radius:8px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); color:#fff; font-size:11px; outline:none; }
.pc-hist-input::-webkit-calendar-picker-indicator { filter:invert(1) opacity(.5); cursor:pointer; }
.pc-hist-select { padding:0 8px; height:31px; border-radius:8px; border:1px solid rgba(255,255,255,.12); background:rgba(30,40,60,.95); color:#fff; font-size:11px; font-weight:600; outline:none; cursor:pointer; align-self:flex-end; box-sizing:border-box; }
.pc-hist-search-btn { height:31px; padding:0 12px; border-radius:8px; border:1px solid rgba(77,217,232,.35); background:linear-gradient(180deg,#1e3a5f,#0d1f3c); color:#4dd9e8; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; white-space:nowrap; align-self:flex-end; transition:filter .15s; box-sizing:border-box; }
.pc-hist-search-btn:hover { filter:brightness(1.25); }
.pc-hist-table-wrap { flex:1; overflow-y:auto; min-height:0; padding:0 12px 12px; }
.pc-hist-table { width:100%; border-collapse:collapse; font-size:11px; }
.pc-hist-table thead tr { border-bottom:1px solid rgba(255,255,255,.1); }
.pc-hist-table th { padding:8px 6px; text-align:left; font-size:9px; font-weight:700; color:rgba(255,255,255,.4); text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.pc-hist-table td { padding:9px 6px; border-bottom:1px solid rgba(255,255,255,.05); color:rgba(255,255,255,.75); vertical-align:middle; }
.pc-hist-table tbody tr:hover td { background:rgba(255,255,255,.03); }
.pc-hist-credit { color:#22c55e; font-weight:700; }
.pc-hist-debit  { color:#f87171; font-weight:700; }
.pc-hist-empty  { text-align:center; color:rgba(255,255,255,.3); padding:32px 0; font-size:13px; }

/* Slider loading state */
.slider-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
}
.slider-loading strong { color: #4dd9e8; font-weight: 700; }
.slider-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #4dd9e8;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Providers: 2-col grid */
.pc-providers-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:2px; padding:12px; overflow-y:auto; flex:1; min-height:0; }
.pc-provider-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:12px; cursor:pointer; transition:background .15s; }
.pc-provider-item:hover { background:rgba(255,255,255,.05); }
.pc-provider-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:900; flex-shrink:0; }
.pc-provider-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pc-provider-label { color:rgba(255,255,255,.85); font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pc-provider-cat { color:rgba(255,255,255,.38); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pc-provider-item:hover .pc-provider-label { color:#fff; }
.pc-provider-item:hover .pc-provider-cat { color:rgba(255,255,255,.6); }

/* Promos */
.pc-promo-scroll { flex:1; overflow-y:auto; min-height:0; }
.pc-promo-banner1 { margin:12px 16px 0; height:160px; border-radius:12px; overflow:hidden; background:linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%); display:flex; align-items:center; justify-content:center; }
.pc-promo-my { padding:16px 16px 8px; }
.pc-promo-my-title { color:#f5a623; font-weight:700; font-size:15px; margin-bottom:4px; }
.pc-promo-my-sub { color:rgba(255,255,255,.7); font-size:13px; margin-bottom:12px; }
.pc-promo-goto { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:64px; height:56px; border-radius:12px; cursor:pointer; border:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg,#1e2d42 0%,#111d2e 100%); font-size:9px; font-weight:700; color:rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.1em; transition:color .15s; }
.pc-promo-goto:hover { color:#fff; }
.pc-promo-banner2 { margin:0 16px 16px; height:80px; border-radius:12px; background:linear-gradient(135deg,#1a0a2e 0%,#2d1b69 100%); display:flex; align-items:center; gap:12px; padding:0 16px; }

/* Entry / Login form */
.pc-entry-wrap { flex:1; display:flex; flex-direction:column; padding:16px; gap:12px; overflow-y:auto; min-height:0; }
.pc-entry-tg { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:10px; border-radius:12px; background:linear-gradient(180deg,#229ed9,#1a7fb5); color:#fff; font-weight:700; font-size:13px; cursor:pointer; transition:opacity .15s; }
.pc-entry-tg:hover { opacity:.9; }
.pc-entry-tabs { display:flex; border-bottom:1px solid rgba(255,255,255,.1); flex-shrink:0; }
.pc-entry-tab { flex:1; padding-bottom:8px; font-size:13px; font-weight:600; color:rgba(255,255,255,.4); cursor:pointer; position:relative; transition:color .15s; text-align:center; background:transparent; border:none; }
.pc-entry-tab:hover { color:rgba(255,255,255,.7); }
.pc-entry-tab.active { color:#fff; }
.pc-entry-tab.active::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; border-radius:999px; background:#fff; }
.pc-entry-input-wrap { display:flex; align-items:center; gap:8px; border-radius:12px; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.05); padding:10px 12px; flex-shrink:0; }
.pc-entry-input-wrap input { flex:1; background:transparent; border:none; outline:none; color:rgba(255,255,255,.8); font-size:13px; min-width:0; }
.pc-entry-input-wrap input::placeholder { color:rgba(255,255,255,.3); }
.pc-sep { width:1px; height:16px; background:rgba(255,255,255,.2); flex-shrink:0; }
.pc-entry-forgotrow { display:flex; justify-content:flex-end; flex-shrink:0; }
.pc-entry-forgot { font-size:11px; color:rgba(255,255,255,.5); cursor:pointer; transition:color .15s; background:transparent; border:none; }
.pc-entry-forgot:hover { color:rgba(255,255,255,.8); }
.pc-entry-eye { color:rgba(255,255,255,.3); cursor:pointer; transition:color .15s; line-height:0; background:transparent; border:none; flex-shrink:0; }
.pc-entry-eye:hover { color:rgba(255,255,255,.6); }
.pc-entry-login { width:100%; padding:10px; border-radius:12px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(180deg,#1e2d42 0%,#111d2e 100%); color:rgba(255,255,255,.4); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; cursor:pointer; transition:color .15s; flex-shrink:0; }
.pc-entry-login:hover { color:rgba(255,255,255,.7); }
.pc-entry-register { text-align:center; font-size:12px; color:rgba(255,255,255,.4); flex-shrink:0; }
.pc-entry-register button { color:#4dd9e8; font-weight:700; cursor:pointer; transition:color .15s; background:transparent; border:none; }
.pc-entry-register button:hover { color:#7ee8f5; }

/* ─── SOUND PANEL ─────────────────────────────────────────────── */
/* Vertical panel with horizontal LED bars, exactly matching React original.
   bottom/right are set dynamically by JS so the panel always sits above
   the Sound button regardless of screen width. */
#sound-panel {
  display: none;
  position: fixed;
  /* bottom/right set by openSoundPanel() in app.js */
  z-index: 300;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 58px;
  padding: 12px 8px 8px;
  background: linear-gradient(180deg, #1a2236 0%, #0d1421 100%);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: slideUpVol 0.22s ease-out forwards;
}
#sound-panel.open { display: flex; }

@keyframes slideUpVol { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Horizontal LED bar — full width, 12px tall, top=10 bottom=1 */
.vol-bar {
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.08s, box-shadow 0.08s;
}
.vol-bar:hover { background: rgba(255,255,255,0.16); }
.vol-bar.active {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
}

/* Mute toggle button at the bottom of the panel */
#sound-mute-btn {
  margin-top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
#sound-mute-btn:hover { background: rgba(255,255,255,0.1); }
#sound-mute-btn svg { width: 16px; height: 16px; }

/* Deprecated — no longer used (horizontal bars don't need fill divs) */
#sound-panel-header, #sound-panel-label, #vol-bars-row { display: none; }

/* ─── GAME INFO POPUP ─────────────────────────────────────────── */
#card-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
#card-popup-overlay.open { display: flex; }

#card-popup {
  background: linear-gradient(160deg, #1a2236 0%, #111827 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  border-radius: 16px;
  width: 100%;
  max-width: 280px;
  padding: 0;
  overflow: hidden;
  animation: popupIn 0.25s cubic-bezier(.34,1.56,.64,1) forwards;
  position: relative;
}
#card-popup-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
#card-popup-close:hover { background: rgba(255,255,255,0.2); }
#card-popup-close svg { width: 14px; height: 14px; }
#card-popup-inner {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#card-popup-provider { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
#card-popup-name { font-size: 1.1rem; font-weight: 700; text-align: center; line-height: 1.3; }
.popup-play-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-btn-play) 0%, var(--color-btn-play-end) 100%);
  box-shadow: 0 4px 16px rgba(59,91,219,0.5);
  transition: filter 0.15s, transform 0.1s;
}
.popup-play-btn:hover  { filter: brightness(1.1); }
.popup-play-btn:active { transform: scale(0.95); }
.popup-demo-btn {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.popup-demo-btn:hover { color: #fff; }




.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
	padding-top: 8px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

