/* ============================================================================
   Lucky Balls — okvir stranice (shell) i scena igre.

   LIGHT TEMA: sav UI oko canvasa je svetao (beli paneli, sivi tonovi, plavi i
   zlatni akcenti iz igre), dok sama scena igre (canvas) ostaje tamna i
   nepromenjena. Sve unutar .work stilizuje work.css.
   ============================================================================ */

/* Poppins — UI font (ceo .work panel + modali). Self-hosted iz assets/fonts/
   da ne zavisi od Google Fonts CDN-a (spori/blokirani CDN je izazivao fallback
   na Arial i "loše učitavanje" na nekim stranicama). latin + latin-ext:
   ext pokriva srpske/hrvatske dijakritike (č ć š ž đ). */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-latin-ext-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Canvas text asks for these families at both 'normal' and 'bold'. Each file is
   therefore declared for both weights: a weight that is not declared makes the
   whole request fall back to a system font, which is what used to happen. */
@font-face {
  font-family: 'myFont';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/Bebas-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'myFont';
  font-weight: bold;
  font-display: swap;
  src: url('../assets/fonts/Bebas-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'futurah';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/futurah.ttf') format('truetype');
}
@font-face {
  font-family: 'futurah';
  font-weight: bold;
  font-display: swap;
  src: url('../assets/fonts/futurah.ttf') format('truetype');
}
@font-face {
  font-family: 'futuramd';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/ftramd.ttf') format('truetype');
}
@font-face {
  font-family: 'futuramd';
  font-weight: bold;
  font-display: swap;
  src: url('../assets/fonts/ftramd.ttf') format('truetype');
}
/* LB5 (Godot 1:1 design) families */
@font-face {
  font-family: 'bebas';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/Bebas-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'akzidenz';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/AkzidenzGroteskBE-Super.otf') format('opentype');
}
@font-face {
  font-family: 'gelline';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/Gelline.otf') format('opentype');
}
@font-face {
  font-family: 'impactlb';
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/impact.ttf') format('truetype');
}

html, body {
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  padding: 0;
  color: #15293f;
  background: #eef3f9;
  /* Svetla podloga sa blagim odsjajima boja igre — UI ostaje čitljiv, ne tamno. */
  background-image:
    radial-gradient(120% 90% at 50% -12%, rgba(1, 84, 216, 0.10) 0%, rgba(1, 84, 216, 0) 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(0, 168, 198, 0.10) 0%, rgba(0, 168, 198, 0) 60%),
    linear-gradient(180deg, #edf2f9 0%, #f7fafc 100%);
  background-attachment: fixed;
  /* BODY je scroll kontejner (ne shell). */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Full view (`/`) je jedini view sa sadržajem višim od viewporta: grid 1–48
   je ispod fold-a i na 1920×1080. Skrolujemo VIEWPORT (ne samo body), da
   postoji vidljiv scrollbar i wheel/touch pomeri stranu. /display, /terminal
   i /promo imaju svoje `overflow:hidden` i ostaju fiksirani. */
html[data-lb-view="full"] {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(1, 84, 216, 0.38) transparent;
}
html[data-lb-view="full"]::-webkit-scrollbar { width: 10px; }
html[data-lb-view="full"]::-webkit-scrollbar-track { background: transparent; }
html[data-lb-view="full"]::-webkit-scrollbar-thumb {
  background: rgba(1, 84, 216, 0.32);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html[data-lb-view="full"]::-webkit-scrollbar-thumb:hover {
  background: rgba(1, 84, 216, 0.5);
  background-clip: content-box;
}
html[data-lb-view="full"] body {
  height: auto;
  min-height: 100%;
  overflow-y: visible;
}

/* Kolona: igra gore, ostalo ispod — na svim veličinama ekrana. */
.shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  /* Shell raste sa sadržajem; skroluje BODY (ne shell). */
  min-height: 100%;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  background: transparent;
}

@media (min-width: 900px) {
  .shell { padding-block: 10px; }
}

.stage-wrap {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  /* Kolona je široka koliko i canvas (770px), pa scena ispunjava ćeliju;
     na niskim ekranima (visina ograniči canv. fitStage()) ostatak se centrira. */
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
  /* visinu postavlja canvas.fitStage() — 770px široko, 16:9 */
}

.stage-frame {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.stage-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1281px;
  height: 720px;
  -webkit-transform-origin: left top;
  transform-origin: left top;
  background: #000;
}

.stage-inner canvas {
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  z-index: 1;
}

/* Promo ekran (HTML+CSS animacija) — zamenjuje stari promo mp4 sa baked satom.
   Nalazi se u .stage-inner (1281×720) pa se skalira sa scenom kao i canvas.
   Nema videa → nema iOS seek freeze-a ni na kom uređaju. */
.lb-cd-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  /* Jedan sloj boje — bez filtera na deci (filter + parent transform:scale = šavovi). */
  isolation: isolate;
  background:
    radial-gradient(85% 62% at 50% 34%, rgba(0, 110, 220, 0.30) 0%, rgba(0, 90, 200, 0.10) 48%, transparent 72%),
    radial-gradient(130% 100% at 50% -12%, rgba(46, 76, 180, 0.65) 0%, transparent 58%),
    radial-gradient(90% 65% at 10% 108%, rgba(0, 160, 215, 0.45) 0%, transparent 60%),
    radial-gradient(90% 65% at 90% 108%, rgba(0, 130, 205, 0.40) 0%, transparent 60%),
    linear-gradient(180deg, #0c1548 0%, #091240 40%, #060e2c 72%, #040717 100%);
}

/* ─── Dubinska pozadina ─── */
.lb-bg {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  /* Bez will-change — compositor layer pravi vidljive „šavove“ preko gradijenata. */
  overflow: hidden;
}
.lb-bg-aurora {
  position: absolute;
  border-radius: 50%;
}
.lb-bg-aurora.a1 { left: 0; top: 0; width: 55%; height: 70%; opacity: 0.7;
  background: radial-gradient(circle, rgba(50, 100, 235, 0.5) 0%, transparent 68%); }
.lb-bg-aurora.a2 { right: 0; bottom: 0; width: 62%; height: 75%; opacity: 0.65;
  background: radial-gradient(circle, rgba(0, 190, 235, 0.45) 0%, transparent 68%); }
.lb-bg-aurora.a3 { left: 44%; top: 30%; width: 46%; height: 55%; opacity: 0.5;
  background: radial-gradient(circle, rgba(0, 210, 240, 0.3) 0%, transparent 66%); }

.lb-bg-rays {
  /* Isključeno: conic-gradient + filter u kombinaciji sa stage transform:scale(/)
     pravi vertikalne/horizontalne „šavove“ na normalnoj igri. */
  display: none !important;
}
.lb-bg-beam {
  /* Isključeno: tvrda/vidljiva vertikalna ivica snopa (linija na screenshotima). */
  display: none !important;
}

/* Loptice — isti 2D dizajn kao u igri/work delu: ravan gradijent boje
   (bc-*), beli krug sa brojem (inset 12%), blaga senka, bez gloss/italic-a. */
.lb-bg-ball {
  position: absolute;
  border-radius: 50%;
  /* Bez box-shadow: na skaliranom stage-u (/) senka pravi ghost ivice. */
  box-shadow: none;
}
.lb-bg-ball::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
}
.lb-bg-ball::before {
  content: attr(data-n);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #10182f;
  z-index: 1;
}
.lb-bg-ball.d1::before { font-size: 20px; }
.lb-bg-ball.d2::before { font-size: 14px; }
.lb-bg-ball.d3::before { font-size: 9px; }.bc-red    { background: linear-gradient(to right, #f71a1a, #740000); }
.bc-green  { background: linear-gradient(to right, #3aa93d, #194f1a); }
.bc-blue   { background: linear-gradient(to right, #0199f2, #172152); }
.bc-pink   { background: linear-gradient(to right, #7e01f3, #2f1754); }
.bc-brown  { background: linear-gradient(to right, #9e6016, #503218); }
.bc-yellow { background: linear-gradient(to right, #d0dd09, #787816); }
.bc-orange { background: linear-gradient(to right, #fe9b00, #bb691d); }
.bc-black  { background: linear-gradient(to right, #797979, #3f3b38); }
.bc-purple { background: linear-gradient(to right, #9b4dff, #4a1a8a); }
.bc-cyan   { background: linear-gradient(to right, #17d3e8, #0a5c70); }
.bc-crimson { background: linear-gradient(to right, #ff3d6e, #7a1030); }
.bc-teal   { background: linear-gradient(to right, #1fbfa0, #0c5a4c); }
.bc-navy   { background: linear-gradient(to right, #2f5bd0, #101d5e); }
.bc-gold   { background: linear-gradient(to right, #ffd14d, #8a6a10); }
.bc-silver { background: linear-gradient(to right, #cfd6e0, #5c6572); }
.bc-indigo { background: linear-gradient(to right, #5c6bff, #262a7a); }

.lb-bg-ball.d1 { width: 60px; height: 60px; opacity: 0.32; }
.lb-bg-ball.d2 { width: 40px; height: 40px; opacity: 0.22; }
.lb-bg-ball.d3 { width: 26px; height: 26px; opacity: 0.16; }

/* Pozicije loptica: Matter.js ih postavlja kroz transform (promo-bg.js) —
   CSS ostaje na 0,0. (Ranije calc(20% + Xpx) je bilo za GSAP drift; sada
   fizika pozicionira loptice u scene koordinatama.) */
.lb-bg-ball.b1, .lb-bg-ball.b2, .lb-bg-ball.b3, .lb-bg-ball.b4,
.lb-bg-ball.b5, .lb-bg-ball.b6, .lb-bg-ball.b7, .lb-bg-ball.b8,
.lb-bg-ball.b9, .lb-bg-ball.b10 { left: 0; top: 0; }

/* Čestice svetla */
.lb-bg-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 235, 255, 0.95) 0%, transparent 70%);
  pointer-events: none;
}
.lb-bg-particle.p1 { left: 10%; top: 60%; width: 10px; height: 10px; }
.lb-bg-particle.p2 { left: 26%; top: 74%; width: 7px; height: 7px; }
.lb-bg-particle.p3 { left: 44%; top: 55%; width: 12px; height: 12px; }
.lb-bg-particle.p4 { left: 60%; top: 78%; width: 8px; height: 8px; }
.lb-bg-particle.p5 { left: 74%; top: 58%; width: 11px; height: 11px; }
.lb-bg-particle.p6 { left: 88%; top: 38%; width: 7px; height: 7px; }
.lb-bg-particle.p7 { left: 38%; top: 86%; width: 9px; height: 9px; }
.lb-bg-particle.p8 { left: 70%; top: 30%; width: 6px; height: 6px; }

/* Vignette — tamnije ivice za dubinu (mekan prelaz, bez oštrog prstena) */
.lb-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(125% 125% at 50% 45%, transparent 52%, rgba(0, 0, 10, 0.42) 100%);
}

/* ─── Sadržaj: profesionalan promo — sadržaj lebdi na sceni igre ───
   Bez kartice: kicker → logo → sub → sat lebde direktno na tamnoj sceni,
   sa fokus svetlom iza (lb-content-glow) i tamnim staklenim diskom iza
   sata. Zlatni/plavi akcenti u bojama igre. */
.lb-content-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 820px;
  height: 720px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* Mekši, širi glow — bez vidljivog kruga/ivice layer-a */
  background: radial-gradient(circle, rgba(0, 110, 220, 0.22) 0%, rgba(0, 80, 190, 0.08) 42%, transparent 72%);
  pointer-events: none;
}
.lb-promo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
.lb-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Bez kartice — providno, sadržaj lebdi na sceni. */
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Animirani logo (komponenta js/components/intro-logo.js) — stage daje samo veličinu i odnos strana. */
.lb-cd-logo-stage {
  position: relative;
  width: 300px;
  aspect-ratio: 986 / 652;
  margin-bottom: 16px;
}
/* Soft glow iza loga (umesto drop-shadow filtera) */
.lb-promo-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: 320px;
  height: 200px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 110, 220, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.lb-promo-card > * { position: relative; z-index: 1; }

.lb-promo-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(180, 215, 255, 0.9);
  text-shadow: 0 0 16px rgba(60, 150, 255, 0.4);
  margin-bottom: 22px;
  white-space: nowrap;
}

/* Sat + prsten napretka — na tamnom staklenom disku */
.lb-clock-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 264px;
  height: 264px;
}
.lb-clock-wrap::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(30, 60, 150, 0.35) 0%, rgba(6, 12, 44, 0.55) 62%, rgba(3, 6, 24, 0.7) 100%);
  /* Bez 1px border + jakog outer shadow-a (to je bio „ghost“ prsten). */
  border: none;
  box-shadow:
    inset 0 0 48px rgba(0, 60, 170, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.lb-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  /* Bez filtera na SVG — drop-shadow pravi pravougaoni halo/linije. */
  filter: none;
}
.lb-ring-track {
  fill: none;
  stroke: rgba(150, 200, 255, 0.14);
  stroke-width: 6;
}
.lb-ring-fill {
  fill: none;
  stroke: url(#lbRingGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 616;
  stroke-dashoffset: 0;
  filter: none;
  transition: stroke-dashoffset 0.9s linear;
}
.lb-clock {
  position: relative;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 30px rgba(90, 170, 255, 0.6), 0 0 70px rgba(40, 120, 255, 0.35);
  /* will-change sklonjen — manje compositor artefakata */
  animation: lb-clock-tick 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes lb-clock-tick {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.lb-cd-overlay.lb-urgent .lb-clock {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Poslednjih 20s — crveni sat, crveni prsten, pojačan otkucaj (klasa .lb-urgent
   postavlja promo-bg.js kad _countdownRemaining <= 20). */
.lb-cd-overlay.lb-urgent .lb-clock {
  color: #ff4d5e;
  text-shadow: 0 0 34px rgba(255, 70, 95, 0.75);
}
.lb-cd-overlay.lb-urgent .lb-ring-fill {
  stroke: #ff4d5e;
  filter: none;
}

/* Korisnici koji ne žele animacije */
@media (prefers-reduced-motion: reduce) {
  .lb-bg-aurora, .lb-bg-rays, .lb-bg-beam,
  .lb-bg-ball, .lb-bg-particle { animation: none; }
  .lb-ring-fill { transition: none; }
}

/* ─── RESULTS overlay — scoreboard (1281×720, skalira se sa stage-inner) ─── */
.lb-rs-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  pointer-events: none;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 18%, rgba(0, 140, 255, 0.28) 0%, transparent 62%),
    radial-gradient(55% 45% at 12% 88%, rgba(0, 190, 210, 0.18) 0%, transparent 55%),
    radial-gradient(55% 45% at 88% 88%, rgba(80, 60, 200, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #0a1450 0%, #08103e 42%, #050c28 75%, #040816 100%);
}
.lb-rs-glow {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 780px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 77, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.lb-rs-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 48%, rgba(0, 0, 12, 0.55) 100%);
}
.lb-rs-board {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 16px 32px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.lb-rs-overlay.is-bonus .lb-rs-board {
  box-shadow: inset 0 0 0 2px rgba(255, 209, 77, 0.35);
}

.lb-rs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(140, 190, 255, 0.18);
}
.lb-rs-kicker {
  font-family: "myFont", "Poppins", sans-serif;
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 22px rgba(60, 150, 255, 0.55);
}
.lb-rs-round {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffd14d;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 209, 77, 0.1);
  border: 1px solid rgba(255, 209, 77, 0.35);
  text-shadow: 0 0 12px rgba(255, 209, 77, 0.35);
}

.lb-rs-hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lb-rs-hero-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(170, 210, 255, 0.72);
}
.lb-rs-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.lb-rs-hero-balls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.lb-rs-ball {
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 8, 28, 0.4);
}
.lb-rs-ball-num {
  position: absolute;
  inset: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #10182f;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lb-rs-ball.is-hero {
  width: 84px;
  height: 84px;
  box-shadow:
    0 10px 26px rgba(0, 8, 28, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.16),
    0 0 28px rgba(80, 160, 255, 0.22);
}
.lb-rs-ball.is-hero .lb-rs-ball-num { font-size: 32px; }

.lb-rs-sum {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 84px;
  padding: 8px 12px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 209, 77, 0.22) 0%, rgba(255, 209, 77, 0.06) 100%);
  border: 1px solid rgba(255, 209, 77, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.lb-rs-sum span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 230, 150, 0.85);
}
.lb-rs-sum b {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffd14d;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 209, 77, 0.45);
}

.lb-rs-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  justify-items: center;
  align-content: start;
  gap: 8px 6px;
  flex: 0 0 auto;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 6px;
}
.lb-rs-grid .lb-rs-ball {
  width: 48px;
  height: 48px;
}
.lb-rs-grid .lb-rs-ball-num { font-size: 17px; }

.lb-rs-clover {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a1a3a url("../assets/images/lb5/chosen/clover.webp") center / 70% no-repeat;
  box-shadow: 0 0 0 2px rgba(80, 210, 120, 0.85), 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.lb-rs-grid .lb-rs-clover { width: 15px; height: 15px; right: -3px; top: -3px; }

.lb-rs-extras {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin-top: 2px;
}
.lb-rs-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 11px;
  border-radius: 14px;
  background: rgba(8, 18, 52, 0.58);
  border: 1px solid rgba(140, 190, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.lb-rs-chip-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(170, 210, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-rs-chip-v {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-rs-chip-up { border-color: rgba(50, 220, 140, 0.4); background: rgba(20, 60, 50, 0.35); }
.lb-rs-chip-down { border-color: rgba(90, 170, 255, 0.4); background: rgba(20, 40, 80, 0.35); }
.lb-rs-chip-odd { border-color: rgba(255, 180, 80, 0.4); }
.lb-rs-chip-even { border-color: rgba(80, 200, 255, 0.4); }
.lb-rs-chip-color .lb-rs-chip-v {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-rs-chip-color .lb-rs-chip-v::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  background: inherit;
}
.lb-rs-chip.bc-red    { --orb: linear-gradient(to right, #f71a1a, #740000); }
.lb-rs-chip.bc-green  { --orb: linear-gradient(to right, #3aa93d, #194f1a); }
.lb-rs-chip.bc-blue   { --orb: linear-gradient(to right, #0199f2, #172152); }
.lb-rs-chip.bc-pink   { --orb: linear-gradient(to right, #7e01f3, #2f1754); }
.lb-rs-chip.bc-brown  { --orb: linear-gradient(to right, #9e6016, #503218); }
.lb-rs-chip.bc-yellow { --orb: linear-gradient(to right, #d0dd09, #787816); }
.lb-rs-chip.bc-orange { --orb: linear-gradient(to right, #fe9b00, #bb691d); }
.lb-rs-chip.bc-black  { --orb: linear-gradient(to right, #797979, #3f3b38); }
.lb-rs-chip-color.bc-red .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-green .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-blue .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-pink .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-brown .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-yellow .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-orange .lb-rs-chip-v::before,
.lb-rs-chip-color.bc-black .lb-rs-chip-v::before {
  background: var(--orb);
}

.lb-rs-meta {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
  flex: 0 0 auto;
  align-items: stretch;
}
.lb-rs-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: rgba(8, 18, 52, 0.55);
  border: 1px solid rgba(140, 190, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lb-rs-card-title {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(190, 220, 255, 0.82);
}
.lb-rs-hc.is-hot {
  border-color: rgba(255, 140, 60, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 120, 40, 0.12) 0%, rgba(8, 18, 52, 0.55) 55%);
}
.lb-rs-hc.is-hot .lb-rs-card-title { color: rgba(255, 190, 120, 0.95); }
.lb-rs-hc.is-cold {
  border-color: rgba(80, 180, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(40, 140, 255, 0.12) 0%, rgba(8, 18, 52, 0.55) 55%);
}
.lb-rs-hc.is-cold .lb-rs-card-title { color: rgba(150, 210, 255, 0.95); }

.lb-rs-colors-row {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 2px 0;
  min-height: 56px;
}
.lb-rs-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
  min-height: 58px;
  background: none !important;
  opacity: 0.4;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.lb-rs-color.is-lit {
  opacity: 1;
  transform: translateY(-1px);
}
.lb-rs-color-ball {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 8, 28, 0.4);
  flex: 0 0 auto;
}
.lb-rs-color-n {
  position: absolute;
  inset: 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #10182f;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lb-rs-color.is-lit .lb-rs-color-ball {
  width: 44px;
  height: 44px;
  box-shadow:
    0 0 0 2px #ffd14d,
    0 0 16px rgba(255, 209, 77, 0.45),
    0 6px 14px rgba(0, 8, 28, 0.45);
}
.lb-rs-color.is-lit .lb-rs-color-n {
  font-size: 15px;
}
.lb-rs-color-hit {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffd14d;
  text-shadow: 0 0 8px rgba(255, 209, 77, 0.45);
  line-height: 1;
}
.lb-rs-color:not(.is-lit) .lb-rs-color-hit { display: none; }

.lb-rs-stats-balls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.lb-rs-empty {
  font-size: 13px;
  color: rgba(180, 210, 255, 0.45);
}
.lb-rs-ball.is-meta {
  width: 38px;
  height: 38px;
}
.lb-rs-ball.is-meta .lb-rs-ball-num { font-size: 15px; }

.lb-rs-history {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
.lb-rs-history > .lb-rs-stats-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 210, 255, 0.78);
}
.lb-rs-history-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.lb-rs-hist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 11px;
  border-radius: 14px;
  background: rgba(8, 18, 52, 0.5);
  border: 1px solid rgba(140, 190, 255, 0.14);
  min-width: 0;
}
.lb-rs-hist-round {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #ffd14d;
}
.lb-rs-hist-balls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.lb-rs-hist-sum {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lb-rs-ball.is-mini {
  width: 28px;
  height: 28px;
  display: inline-flex;
}
.lb-rs-ball.is-mini .lb-rs-ball-num { font-size: 11px; }
.lb-rs-hist-sum.is-up { color: #5dffb0; }
.lb-rs-hist-sum.is-down { color: #7ec8ff; }

.work {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  /* Neka sadržaj raste — skroluje shell, ne .work. */
  overflow: visible;
}

/* Nizak landscape: zadrži klađenje upotrebljivim. */

#preloaderLayout {
  display: flex;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1000000;
  font-size: 125%;
  background: #ffffff;
  color: #15293f;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  align-items: center;
  justify-content: center;
}
/* Logo loadera = ista Godot intro animacija kao /promo (komponenta js/components/intro-logo.js).
   Stage daje samo veličinu i odnos strana; pozadina loadera je bijela → bez drop-shadow-a. */
#preloaderLayout .preloader-logo-stage {
  position: relative;
  width: min(400px, 70vw);
  aspect-ratio: 986 / 652;
}
.preloaderLayout {
  text-shadow: 0 0 1px #ff0000, 0 0 2px #0000ff;
}

/* Matter „kiša“ loptica — dobitan tiket / jackpot (ball-drop.js). */
.lb-ball-rain {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}
.lb-rain-ball {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 8, 28, 0.35);
  will-change: transform;
}
