/* Dice page styles */

.dice{
  --p1:#8b5cf6;
  --p2:#c084fc;
  --bg-0:#07060c;
  --bg-1:#0e0c17;
  --bg-2:#161223;
  --panel:#120f1d;
  --panel-2:#181326;
  --line:rgba(192,132,252,.18);
  --line-strong:rgba(192,132,252,.35);
  --text:#f2ecff;
  --muted:#c9b8f4;
  --gold:#f7cf76;
  position:relative;
  overflow:hidden;
  border-radius:30px;
  background:
    radial-gradient(circle at top left, rgba(139,92,246,.14), transparent 26%),
    radial-gradient(circle at top right, rgba(192,132,252,.10), transparent 24%),
    linear-gradient(180deg, rgba(16,13,24,.94), rgba(7,6,12,.98));
  border: 1px solid rgba(192,132,252,.12);
  box-shadow: 0 28px 60px rgba(0,0,0,.46);
  color: var(--text);
}

.dice,
.dice *{
  box-sizing:border-box;
}

.dice::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 12%, rgba(139,92,246,.18), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(192,132,252,.14), transparent 20%),
    radial-gradient(circle at 50% 92%, rgba(255,255,255,.06), transparent 24%),
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.05) 50%, transparent 58%),
    repeating-linear-gradient(-28deg, rgba(255,255,255,.018) 0 1px, transparent 1px 20px);
  opacity:.9;
}

.coin {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: relative;
  transition: -webkit-transform 1s ease-in;
  -webkit-transform-style: preserve-3d;
}
.coin div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  -webkit-backface-visibility: hidden;
}
.coin img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.coin .blue {
  z-index: 100;
}
.coin .red {
  -webkit-transform: rotateY(-180deg);
}

.coin.red {
    -webkit-transform: rotateY(-180deg);
}

.coin.flipblue {
  -webkit-animation: flipBlue 5s ease-out forwards;
  animation: flipBlue 5s ease-out forwards;
}
.coin.flipred {
  -webkit-animation: flipRed 5s ease-out forwards;
  animation: flipRed 5s ease-out forwards;
}

@keyframes flipBlue {
  from { transform: rotateY(0); }
  to { transform: rotateY(2880deg); }
}
@keyframes flipRed {
  from { transform: rotateY(0); }
  to { transform: rotateY(3060deg); }
}
@-webkit-keyframes flipBlue {
  from { -webkit-transform: rotateY(0); transform: rotateY(0); }
  to { -webkit-transform: rotateY(2880deg); transform: rotateY(2880deg); }
}
@-webkit-keyframes flipRed {
  from { -webkit-transform: rotateY(0); transform: rotateY(0); }
  to { -webkit-transform: rotateY(3060deg); transform: rotateY(3060deg); }
}

/* Countdown overlay inside .coin-slot */
.flipcountdown{
  width: 78px;
  height: 78px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
  opacity: .95;
}

.flipcountdown.hidden{ display:none; }

.flipcountdown canvas{
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(18,15,29,.65), rgba(11,10,18,.65));
  border: 1px solid rgba(139,92,246,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.flipcountdown .countnum{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(192,132,252,.25);
}


/* Coinflip page styles */

.dice{
  --p1:#8b5cf6;
  --p2:#c084fc;

  height: 92dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (max-height: 1070px){
  .dice{ height: 90dvh; }
}

@media (max-height: 740px){
  .dice{ height: 88.4dvh; }
}

.dice .match-list{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: none;
  padding-right: 2px;
}

.dice .match-list::-webkit-scrollbar{
  display: none;
}

.dice .stats-row { --gap: 12px; }
.dice .statbox{
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%),
    linear-gradient(180deg, rgba(18,15,29,.92), rgba(11,10,18,.86));
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0,0,0,.44);
  overflow:hidden;
  position:relative;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease;
}

.dice .statbox.statbox--dropdown{
  overflow: visible;
  z-index: 30;
}

.dice .statbox::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg, transparent 35%, rgba(255,255,255,.14), transparent 65%),
    radial-gradient(circle at 20% 0%, rgba(139,92,246,.14), transparent 28%);
  transform: translateX(-140%);
  opacity:0;
  pointer-events:none;
}
.dice .statbox:hover{
  transform: translateY(-3px) scale(1.01);
  border-color: var(--line-strong);
  filter: brightness(1.04);
}

.dice .statboxbody{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 14px;
}

.dice .statbox.statbox--dropdown .statboxbody{
  flex-wrap: nowrap !important;
}
.dice .stat-ico{
  width:46px; height:46px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(139,92,246,.34), rgba(17,15,26,.96));
  border: 1px solid rgba(192,132,252,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 25px rgba(139,92,246,.25);
  flex:0 0 auto;
}
.dice .stat-ico i{ font-size: 20px; color: #e7ddff; }
.dice .stat-title{
  font-weight:900;
  letter-spacing:.2px;
  margin:0;
  font-size: 18px;
  line-height:1.1;
}
.dice .stat-sub{
  opacity:.85;
  font-weight:800;
  letter-spacing:.2px;
  font-size: 12.5px;
}

.dice .cf-control{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 16%),
    linear-gradient(180deg, rgba(18,15,29,.94), rgba(11,10,18,.94));
  border: 1px solid rgba(192,132,252,.28);
  color:#eee8ff;
  width: 52%;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight:800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.28);
  outline:none;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.dice .cf-control-hidden{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

.dice .cf-control:focus{
  box-shadow: 0 0 0 4px rgba(139,92,246,.22), 0 10px 22px rgba(0,0,0,.35);
  border-color: rgba(192,132,252,.65);
}

.dice .cf-dropdown{
  position: relative;
  flex: 1 1 190px;
  min-width: 0;
}

.dice .cf-dropdown-toggle{
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 16%),
    linear-gradient(180deg, rgba(18,15,29,.94), rgba(11,10,18,.94));
  border: 1px solid rgba(192,132,252,.28);
  color:#eee8ff;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight:800;
  letter-spacing:.1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.28);
  outline:none;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease, background .16s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.dice .cf-dropdown-current{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dice .statbox.statbox--dropdown .btn-cf{
  flex: 0 0 auto;
}
.dice .cf-dropdown-toggle:hover{
  border-color: rgba(192,132,252,.58);
  box-shadow: 0 0 0 2px rgba(139,92,246,.15), 0 12px 26px rgba(0,0,0,.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 18%),
    linear-gradient(180deg, rgba(26,22,40,.98), rgba(12,10,20,.96));
}
.dice .cf-dropdown-toggle:focus{
  border-color: rgba(192,132,252,.65);
  box-shadow: 0 0 0 4px rgba(139,92,246,.18), 0 12px 26px rgba(0,0,0,.34);
}
.dice .cf-dropdown-toggle i{
  transition: transform .18s ease;
  font-size: 16px;
}
.dice .cf-dropdown.open .cf-dropdown-toggle i{ transform: rotate(-180deg); }
.dice .cf-dropdown-menu{
  position:absolute;
  left:0;
  right:auto;
  width:fit-content;
  min-width:0;
  max-width:min(92vw, 320px);
  top: calc(100% + 8px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 16%),
    linear-gradient(180deg, rgba(22,19,34,.99), rgba(13,11,21,.98));
  border: 1px solid rgba(192,132,252,.35);
  box-shadow: 0 18px 36px rgba(0,0,0,.38);
  border-radius: 14px;
  padding: 6px;
  opacity:0;
  transform: translateY(-6px);
  max-height: 0;
  overflow: hidden;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease, max-height .22s ease;
  z-index: 12;
}
.dice .cf-dropdown.open .cf-dropdown-menu{
  opacity:1;
  transform: translateY(0);
  max-height: 220px;
  pointer-events:auto;
}
.dice .cf-dropdown-menu button{
  display:block;
  width:max-content;
  min-width:0;
  background: transparent;
  border: none;
  color:#eee8ff;
  font-weight:800;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background .14s ease, padding-left .14s ease;
}
.dice .cf-dropdown-menu button:hover{
  background: rgba(139,92,246,.12);
  padding-left: 14px;
}

.dice .btn-cf, .InventoryModal-btn.cancel, .InventoryModal-btn, .loginbutton{
  border-radius: 16px;
  font-weight: 900;
  letter-spacing:.2px;
  padding: 10px 12px;
  border: 1px solid rgba(192,132,252,.36);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 18%),
    linear-gradient(135deg, rgba(139,92,246,.28), rgba(17,15,26,.94));
  color:#eee8ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 25px rgba(139,92,246,.18);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  white-space:nowrap;
}
.dice .btn-cf:hover{ transform: translateY(-2px); filter: brightness(1.06); }
.dice .btn-cf:active{ transform: translateY(0px) scale(.99); }

.dice .btn-cf.secondary,
.InventoryModal-btn.cancel,
.loginbutton
{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 18%),
    linear-gradient(135deg, rgba(192,132,252,.16), rgba(17,15,26,.94));
  border-color: rgba(192,132,252,.36);
  box-shadow: 0 10px 25px rgba(192,132,252,.14);
}


.dice .btn-cf.danger{
  background: linear-gradient(135deg, rgba(255,59,59,.20), rgba(17,15,26,.92));
  border-color: rgba(255,59,59,.35);
  box-shadow: 0 10px 25px rgba(255,59,59,.12);
}
.dice .btn-cf:disabled{
  opacity:.55;
  transform:none !important;
  cursor:not-allowed;
}

.dice .statbox.statbox--dropdown:hover{
  transform: none;
}

.dice .match-card{
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139,92,246,.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%),
    linear-gradient(180deg, rgba(18,15,29,.90), rgba(11,10,18,.84));
  border: 1px solid rgba(192,132,252,.20);
  box-shadow: 0 16px 36px rgba(0,0,0,.40);
  overflow: visible;
  position:relative;
  isolation:isolate;
  z-index:0;
  will-change: transform;
  transition: border-color .16s ease, filter .16s ease;
}
.dice .match-card:hover{
  border-color: rgba(192,132,252,.45);
  filter: brightness(1.03);
  z-index:11;
}

.dice .match-body{
  padding: 14px 14px;
  border-radius: 18px;
  background: inherit;
}

.dice .is-entering{ opacity: 0; transform: translateY(16px) scale(.985); }
.dice .is-entering.run{
  transition: transform .28s cubic-bezier(.2,1.2,.2,1), opacity .28s ease;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dice .is-leaving{
  transition: transform .28s ease, opacity .28s ease, height .28s ease, margin .28s ease, padding .28s ease;
  opacity:0;
  transform: translateX(18px);
  height:0 !important;
  margin:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* ========= PVP ========= */
.dice .pvp{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  padding: 2px 0;
}

.dice .cf-user{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 6px;
  border-radius: 16px;
  transition: transform .16s ease, border-color .16s ease, filter .16s ease;
  z-index: 2;
}
.dice .cf-user.left { margin-right: -10px; }
.dice .cf-user.right{ margin-left:  -10px; }

.dice .cf-user:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
  z-index: 60;
}

.dice .cf-avatar{
  width:65px; height:65px;
  border-radius: 50%;
  border: 3px solid rgba(192,132,252,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 4px rgba(139,92,246,.18),
    0 10px 25px rgba(0,0,0,.35);
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  position:relative;
  overflow: visible;
  z-index: 1;

  transition: transform .16s ease;
}
.dice .cf-avatar-img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  display:block;
}
.dice .cf-user:hover .cf-avatar{
  transform: rotate(6deg) scale(1.06);
}

.dice .cf-user.side-blue .cf-avatar{
  border-color: rgba(88,169,255,.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 4px rgba(88,169,255,.12),
    0 10px 25px rgba(0,0,0,.35);
}

.dice .cf-user.side-purple .cf-avatar{
  border-color: rgba(192,132,252,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 4px rgba(192,132,252,.12),
    0 10px 25px rgba(0,0,0,.35);
}

.dice .vs-pill{
  width: 36px;
  height: 36px;
  display:grid;
  place-items:center;
  font-weight: 900;
  border-radius: 999px;
  border: 1px solid rgba(192,132,252,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 18%),
    linear-gradient(180deg, rgba(139,92,246,.14), rgba(11,10,18,.25));
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  z-index: 5;
  margin: 0 6px;
}

.dice .side-badge{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  bottom: -9px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(11,10,18,.95);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  z-index: 10;
  pointer-events: none;
}
.dice .side-badge.on-right{ right: -9px; left:auto; }
.dice .side-badge.on-left { left:  -9px; right:auto; }
.dice .side-badge.side-blue{ background-color: rgba(88,169,255,.92); }
.dice .side-badge.side-purple{ background-color: rgba(192,132,252,.92); }

.dice .winner-badge{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,231,166,.26);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.dice .winner .cf-avatar{
  box-shadow:
    0 0 0 4px rgba(34,197,94,.22),
    0 0 18px rgba(34,197,94,.25),
    0 10px 25px rgba(0,0,0,.35);
  border-color: rgba(34,197,94,.95);
}

/* ========= Hovercards ========= */
.dice .hovercard{
  position:absolute;
  left: 8px;
  top: calc(100% + 10px);
  width: 220px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 14%),
    linear-gradient(180deg, rgba(18,15,29,.98), rgba(11,10,18,.98));
  border: 1px solid rgba(139,92,246,.35);
  box-shadow: 0 18px 45px rgba(0,0,0,.60);
  padding: 12px;
  opacity:0;
  transform: translateY(-6px);
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 9999;
}
.dice .hovercard.is-left{
  left: auto !important;
  right: 8px;
}
.dice .cf-user:hover .hovercard,
.dice .cf-itemwrap:hover .hovercard{
  opacity:1;
  transform: translateY(0);
}
.dice .hovercard .hc-title{ font-weight: 900; letter-spacing:.2px; margin:0; }
.dice .hovercard .hc-sub{ margin:6px 0 0 0; opacity:.85; font-weight:800; font-size: 13px; }
.dice .hovercard::before{
  content:"";
  position:absolute;
  top:-8px;
  left: 18px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 1px solid rgba(139,92,246,.35);
  border-top: 1px solid rgba(139,92,246,.35);
  transform: rotate(45deg);
}
.dice .hovercard.is-left::before{
  left: auto;
  right: 18px;
}

.dice .cf-actions .btn-cf{
  min-width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 25px rgba(139,92,246,.18);
}

.dice .cf-actions .btn-cf::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.12) 45%, transparent 70%);
  transform: translateX(-120%);
  opacity:.55;
  pointer-events:none;
  transition: transform .45s ease;
}

.dice .cf-actions .btn-cf:hover::after{
  transform: translateX(120%);
}

/* ========= Items stack ========= */
.dice .items{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 62px;
  gap: 0;
}
.dice .cf-itemwrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left: -12px;
  transform: translateZ(0);
  z-index:0;
}
.dice .cf-itemwrap:first-child{ margin-left: 0; }
.dice .cf-itemwrap:hover{ z-index: 90; }

.dice .cf-item{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(192,132,252,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 5px rgba(139,92,246,.14),
    0 14px 30px rgba(0,0,0,.46),
    0 0 22px rgba(139,92,246,.12);
  background-size: cover;
  background-position:center;
  transition: transform .16s ease, filter .16s ease;
  position:relative;
  overflow:hidden;
}
.dice .cf-item-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  display:block;
}
.dice .cf-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg, transparent 34%, rgba(255,255,255,.20), transparent 66%),
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.12), transparent 42%);
  transform: translateX(-140%);
  opacity:0;
}
.dice .cf-item::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -10px 18px rgba(0,0,0,.18);
  pointer-events:none;
}
.dice .cf-itemwrap:hover .cf-item{
  transform: translateY(-5px) scale(1.11) rotate(-3deg);
  filter: brightness(1.12) saturate(1.12);
}
.dice .cf-itemwrap:hover .cf-item::after{
  opacity:1;
  animation: cfSweep .55s ease forwards;
}

.dice .cf-more{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing:.2px;
  border: 2px solid rgba(139,92,246,.75);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.12), transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(139,92,246,.32), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 18%),
    linear-gradient(135deg, rgba(139,92,246,.30), rgba(17,15,26,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 4px rgba(139,92,246,.12),
    0 14px 28px rgba(0,0,0,.46),
    0 0 22px rgba(139,92,246,.10);
}

.dice .cf-itemwrap::after{
  content:"";
  position:absolute;
  inset: 10% 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(192,132,252,.18), transparent 62%);
  filter: blur(10px);
  opacity:.85;
  z-index:-1;
  pointer-events:none;
}

.dice .cf-itemwrap:hover::after{
  opacity:1;
}

.dice .cf-itemwrap .hovercard{
  top: calc(100% + 8px);
}

.dice .cf-itemwrap:hover .hovercard{
  transform: translateY(0) scale(1.02);
}

.dice .dice-group{
  display:flex;
  gap:6px;
  align-items:center;
}

.dice .dice-box-mini{
  width:36px;
  height:36px;
  border-radius:10px;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:15px;
  color:#fff;
  border:1px solid rgba(139,92,246,.45);
  background: linear-gradient(180deg, rgba(18,15,29,.92), rgba(11,10,18,.92));
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  user-select:none;
}

.dice .dice-box-mini .mini-reel{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  width:100%;
  transform: translateY(0);
  will-change: transform;
  z-index:1;
}

.dice .dice-box-mini .mini-reel span{
  height:36px;
  line-height:36px;
  display:grid;
  place-items:center;
  width:100%;
  font-weight:900;
  font-size:15px;
  color:#fff;
}

.dice .dice-box-mini .mini-face{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index:2;
}

.dice .dice-box-mini.is-rolling .mini-face{
  opacity:0;
  visibility:hidden;
}

.dice .dice-box-mini.is-rolling{
  animation: diceMiniShake .55s linear infinite;
  box-shadow: 0 10px 22px rgba(0,0,0,.25), 0 0 14px rgba(139,92,246,.35);
}

.dice .dice-box-mini.dice-lock{
  animation: diceMiniLock .18s ease-out 1;
}

@keyframes diceMiniShake{
  0%{ transform: translateY(0) rotate(0deg); }
  20%{ transform: translateY(-2px) rotate(6deg); }
  40%{ transform: translateY(1px) rotate(-7deg); }
  60%{ transform: translateY(-1px) rotate(5deg); }
  80%{ transform: translateY(1px) rotate(-4deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}

@keyframes diceMiniLock{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.08); }
  100%{ transform: scale(1); }
}

.dice .value-big{
  font-weight: 900;
  font-size: 19px;
  letter-spacing:.2px;
  text-shadow:
    0 0 18px rgba(139,92,246,.22),
    0 2px 0 rgba(0,0,0,.35);
  margin:0;
}
.dice .value-range{
  margin:0;
  font-size: 12.5px;
  font-weight: 900;
  opacity:.9;
  color: rgba(242,236,255,.88);
  letter-spacing:.15px;
}

.dice .value-mode{
  margin:8px auto 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.35px;
  text-transform:uppercase;
  color:rgba(216,200,255,.96);
  background: rgba(139,92,246,.14);
  border: 1px solid rgba(192,132,252,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.dice .toastwrap{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 999;
  pointer-events:none;
}
.dice .toastcf{
  pointer-events:auto;
  min-width: 260px;
  max-width: 360px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,15,29,.96), rgba(11,10,18,.96));
  border: 1px solid rgba(139,92,246,.35);
  box-shadow: 0 18px 45px rgba(0,0,0,.60);
  padding: 12px 12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  opacity:0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.dice .toastcf.show{ opacity:1; transform: translateY(0); }
.dice .toast-ico{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(17,15,26,.92));
  border: 1px solid rgba(139,92,246,.55);
  flex:0 0 auto;
}
.dice .toast-ico i{ color:#eee8ff; }
.dice .toast-title{ font-weight: 900; margin:0 0 2px 0; }
.dice .toast-msg{ margin:0; opacity:.85; font-weight:800; font-size: 13px; line-height: 1.2rem; }

/* ==============================
   Mobile/Tablet 
   ============================== */

.dice .coin-slot{
  min-height: 72px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dice .cf-actions{
  min-width: 115%;
}

@media (max-width: 991.98px){
  .dice .cf-col-coin{
    margin-top: 6px;
  }

  .dice .cf-col-actions{
    margin-top: 10px;
  }

  .dice .cf-actions{
    flex-direction: row !important;
    width: 100%;
    min-width: 0 !important;
    gap: 10px;
  }
  .dice .cf-actions .btn-cf{
    flex: 1 1 0;
  }
}

@media (hover: none){
  .dice .statbox:hover,
  .dice .cf-dropdown-toggle:hover,
  .dice .btn-cf:hover{
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce){
.dice *{ transition:none !important; animation:none !important; }
}
.dice .cf-item {
  z-index: 1;
}
.dice .cf-itemwrap .rainbow,
.dice .cf-itemwrap .shiny {
  z-index: 2;
}
@media (max-width: 767.98px){
  .dice{
    min-height: 93vh;
    min-height: 93dvh;
    height: auto;
    padding-bottom: 18px;
  }
}

@media (max-width: 768px){
  .dice{
    border-radius: 22px;
  }

  .dice .statbox,
  .dice .match-card{
    border-radius: 18px;
  }

  .dice .cf-avatar{
    width: 58px;
    height: 58px;
  }

  .dice .vs-pill{
    width: 32px;
    height: 32px;
    margin: 0 4px;
  }

  .dice .cf-item,
  .dice .cf-more{
    width: 52px;
    height: 52px;
  }
}
