
/* AK87 V92.6 */

/* Player's selected case must be obvious in OBS */
.v54-stage .v54-cases article.own{
  border:2px solid #ffe178!important;
  background:
    linear-gradient(180deg,#6b4b12 0%,#2c1e08 15%,#0a0b10 26%,#08090d 78%,#2e2009 100%)!important;
  box-shadow:
    0 0 0 3px #ffe17820,
    0 0 34px #f2c34b70,
    inset 0 0 24px #f2c34b18,
    0 14px 28px #000b!important;
  transform:scale(1.07);
}
.v54-stage .v54-cases article.own:after{
  border-color:#ffe17880!important;
}
.v54-stage .v54-cases article.own span{
  color:#fff5ca!important;
  text-shadow:0 0 14px #f4c64d90,0 2px 5px #000!important;
}
.v54-stage .v54-cases article.own small{
  display:block!important;
  color:#ffe178!important;
  font-size:8px!important;
  font-weight:1000!important;
  letter-spacing:.8px;
  text-transform:uppercase;
}

/* Finale: full show instead of a tiny result box */
.v926-final-show{
  position:absolute!important;
  inset:0!important;
  z-index:240!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 50% 43%,#6a3b162d 0%,#180914cc 28%,#020307f7 70%)!important;
}
.v926-final-show[hidden]{display:none!important}
.v926-final-show.show{
  animation:v926FinalBackdrop 8s ease both!important;
}
.v926-final-rays{
  position:absolute;
  width:130vmax;
  height:130vmax;
  background:
    repeating-conic-gradient(from 0deg,#f4c74f13 0 3deg,transparent 3deg 11deg);
  animation:v926Spin 18s linear infinite;
}
.v926-final-content{
  position:relative;
  z-index:3;
  min-width:560px;
  padding:38px 54px 42px;
  border:1px solid #f3c75080;
  border-radius:20px;
  background:linear-gradient(145deg,#17110bcc,#08070dcc);
  box-shadow:0 30px 90px #000e,0 0 80px #f2c64b25,0 0 45px #ff1e6d22;
  text-align:center;
  animation:v926FinalCard 1.1s cubic-bezier(.16,.85,.18,1) both;
}
.v926-final-content small,
.v926-final-content span,
.v926-final-content strong,
.v926-final-content b{display:block}
.v926-final-content small{
  color:#ff5d9a;
  font-size:12px;
  font-weight:1000;
  letter-spacing:2px;
}
.v926-final-content span{
  margin-top:13px;
  color:#d4d5da;
  font-size:15px;
  font-weight:900;
  letter-spacing:1px;
}
.v926-final-content strong{
  margin:12px 0 8px;
  color:#ffe072;
  font-size:84px;
  font-weight:1000;
  line-height:1;
  text-shadow:0 0 34px #f4c64d85;
}
.v926-final-content b{
  color:#fff;
  font-size:26px;
  font-weight:1000;
  letter-spacing:2px;
}
.v926-confetti{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  overflow:hidden;
}
.v926-confetti i{
  position:absolute;
  top:-30px;
  left:var(--x);
  width:var(--s);
  height:calc(var(--s) * 1.7);
  border-radius:2px;
  background:linear-gradient(#ffe072,#ff2d79);
  animation:v926Confetti calc(2.4s + var(--d)) ease-in var(--d) infinite;
}
@keyframes v926FinalBackdrop{
  0%{opacity:0}
  8%,88%{opacity:1}
  100%{opacity:1}
}
@keyframes v926FinalCard{
  0%{opacity:0;transform:scale(.55) rotateX(22deg)}
  65%{opacity:1;transform:scale(1.06) rotateX(0)}
  100%{transform:scale(1)}
}
@keyframes v926Spin{to{transform:rotate(360deg)}}
@keyframes v926Confetti{
  from{transform:translateY(-30px) rotate(0deg)}
  to{transform:translateY(105vh) rotate(var(--r))}
}


/* =========================================================
   V92.9 — SELECTED CASE + FINALE POSITION FIX
   ========================================================= */

/* Pending case: unmistakable on stream. */
.v54-stage .v54-cases article.pending{
  z-index:20!important;
  opacity:1!important;
  transform:translateY(-7px) scale(1.14)!important;
  border:3px solid #ff3b8d!important;
  background:
    linear-gradient(180deg,#651233 0%,#2f0a1c 15%,#0c0b11 27%,#08090d 78%,#34101f 100%)!important;
  box-shadow:
    0 0 0 4px #ff3b8d28,
    0 0 45px #ff2f82b5,
    inset 0 0 26px #ff2f8226,
    0 18px 32px #000c!important;
  animation:v929PendingCase .65s ease-in-out infinite alternate!important;
}
.v54-stage .v54-cases article.pending span{
  color:#fff!important;
  text-shadow:0 0 18px #ff388dc0,0 2px 6px #000!important;
}
.v54-stage .v54-cases article.pending small{
  display:block!important;
  color:#ff91bd!important;
  font-size:9px!important;
  font-weight:1000!important;
  letter-spacing:.8px;
}
.v54-stage .v54-cases:has(article.pending) article:not(.pending):not(.own){
  opacity:.48;
  filter:saturate(.55) brightness(.72);
}
@keyframes v929PendingCase{
  from{box-shadow:0 0 0 3px #ff3b8d22,0 0 25px #ff2f8270,0 16px 30px #000b}
  to{box-shadow:0 0 0 5px #ff3b8d38,0 0 58px #ff2f82d0,0 19px 34px #000d}
}

/* IMPORTANT: base .v54-finish had left/top/translate/width settings.
   Reset all of them so the finale truly fills the game frame. */
.v54-game .v926-final-show{
  left:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  height:100%!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}
.v54-game .v926-final-content{
  min-width:min(620px,82%)!important;
  max-width:82%!important;
}
