.dicePage{
  position:relative;
  min-height:100vh;
  padding-top:78px;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(88,111,255,.075), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(35,235,169,.06), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(60,84,255,.06), transparent 35%),
    linear-gradient(180deg, #03050d 0%, #050815 100%);
}

.diceGlow{
  position:absolute;
  width:520px;
  height:520px;
  border-radius:999px;
  filter:blur(130px);
  opacity:.12;
  pointer-events:none;
}

.diceGlow--left{
  left:-220px;
  top:120px;
  background:radial-gradient(circle, rgba(86,109,255,.95) 0%, rgba(86,109,255,0) 68%);
}

.diceGlow--right{
  right:-220px;
  top:130px;
  background:radial-gradient(circle, rgba(49,239,174,.95) 0%, rgba(49,239,174,0) 68%);
}

.diceLayout{
  position:relative;
  z-index:2;
  width:min(1520px, calc(100% - 18px));
  min-height:calc(100vh - 94px);
  margin:0 auto;
  padding:16px 0 18px;
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:16px;
}

.diceSidebar,
.diceMain{
  border:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(9,12,23,.96), rgba(7,10,18,.985));
  box-shadow:
    0 18px 60px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 0 0 1px rgba(255,255,255,.015);
  backdrop-filter:blur(14px);
}

.diceSidebar{
  border-radius:22px;
  padding:16px 16px 104px;
  display:flex;
  flex-direction:column;
  min-height:0;
  position:relative;
}

.diceMain{
  border-radius:24px;
  padding:18px 20px 18px;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  position:relative;
}

.diceMain::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 18%, rgba(100,120,255,.05), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 12%);
}

.diceBox{
  position:relative;
  z-index:1;
  margin-top:0;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.05);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.diceBox--top{
  margin-top:0;
}

.diceBox__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.diceLabel{
  color:rgba(255,255,255,.74);
  font-size:13px;
  font-weight:1000;
}

.diceBalance{
  color:rgba(255,255,255,.56);
  font-size:13px;
  font-weight:1000;
  text-align:right;
}

.diceBetInputWrap{
  position:relative;
}

.diceBetPrefix{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(255,255,255,.34);
  font-size:13px;
  font-weight:1000;
  letter-spacing:.08em;
  pointer-events:none;
}

.diceBetInput{
  width:100%;
  height:60px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(12,16,31,.98), rgba(10,13,26,.98));
  color:#fff;
  padding:0 16px 0 54px;
  font-size:22px;
  font-weight:1000;
  letter-spacing:-.03em;
  outline:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 24px rgba(0,0,0,.18);
}

.diceBetInput:focus{
  border-color:rgba(97,119,255,.34);
  box-shadow:
    0 0 0 4px rgba(90,112,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.diceQuickActions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:10px;
}

.diceQuickBtn,
.diceSwapBtn,
.diceProvablyBtn,
.pfCopyBtn,
.pfModal__close,
.pfRotateBtn{
  border:0;
  cursor:pointer;
  transition:transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}

.diceQuickBtn{
  height:48px;
  border-radius:15px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  color:#fff;
  font-size:16px;
  font-weight:1000;
  border:1px solid rgba(255,255,255,.05);
}

.diceQuickBtn:hover,
.diceSwapBtn:hover,
.diceProvablyBtn:hover,
.pfCopyBtn:hover,
.pfModal__close:hover,
.pfRotateBtn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.09);
}

.diceSidebarSpacer{
  flex:1 1 auto;
  min-height:16px;
}

.diceMiniStats{
  margin-top:18px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.045);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

.diceMiniStats__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#fff;
  font-size:14px;
  font-weight:1000;
}

.diceMiniStats__row strong{
  font-size:17px;
}

.diceMiniStats__row + .diceMiniStats__row{
  margin-top:10px;
}

.diceMiniStats__row--muted{
  color:rgba(255,255,255,.64);
}

.diceMiniStats__row--muted strong{
  font-size:14px;
}

.diceRollBtn{
  position:relative;
  z-index:2;
  margin-top:14px;
  width:100%;
  height:60px;
  border:1px solid rgba(255,255,255,.88);
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #e8edf7 100%);
  color:#090d16;
  font-size:20px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:
    0 18px 40px rgba(255,255,255,.10),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -10px 18px rgba(0,0,0,.06);
  transition:transform .14s ease, box-shadow .14s ease, opacity .14s ease, filter .14s ease, background .14s ease, color .14s ease;
}

.diceRollBtn:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg, #ffffff 0%, #dfe6f2 100%);
  box-shadow:
    0 22px 48px rgba(255,255,255,.14),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -10px 18px rgba(0,0,0,.06);
  filter:brightness(1.01);
}

.diceRollBtn:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
}

.diceStatus{
  display:none;
}

.diceMain__top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  min-height:42px;
}

.diceHeading__eyebrow{
  color:rgba(255,255,255,.38);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.diceHeading__title{
  margin:4px 0 0;
  color:#fff;
  font-size:28px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.04em;
}

.diceHistory{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
  min-height:28px;
}

.diceHistoryItem{
  font-size:14px;
  font-weight:1000;
  text-shadow:0 0 16px rgba(255,255,255,.02);
}

.diceHistoryItem.is-win{ color:#42f59e; }
.diceHistoryItem.is-loss{ color:#ff5f7e; }

.diceMain__center{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:10px 4px 8px;
}

.diceResultTag{
  position:absolute;
  top:120px;
  left:50%;
  transform:translateX(-50%);
  z-index:6;
  opacity:0;
  transition:left .72s cubic-bezier(.22,.88,.22,1), opacity .18s ease;
  pointer-events:none;
}

.diceResultTag.is-visible{
  opacity:1;
}

.diceResultTag span{
  min-width:84px;
  height:40px;
  padding:0 14px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, #7cf3b0, #53dd91);
  color:#05111b;
  font-size:17px;
  font-weight:1000;
  box-shadow:
    0 12px 30px rgba(34,217,127,.20),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.diceResultTag.is-loss span{
  background:linear-gradient(180deg, #ff7897, #f05579);
  color:#fff;
  box-shadow:
    0 12px 30px rgba(239,61,102,.20),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.diceResultTag i{
  display:block;
  width:12px;
  height:12px;
  margin:-4px auto 0;
  transform:rotate(45deg);
  border-radius:2px;
  background:inherit;
}

.diceTrackWrap{
  position:relative;
  width:100%;
}

.diceTrack{
  position:relative;
  margin-top:102px;
  height:54px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(7,11,25,.98), rgba(8,12,26,.96));
  border:1px solid rgba(255,255,255,.075);
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 30px rgba(0,0,0,.18);
}

.diceTrack::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.03), transparent 34%);
}

.diceTrack__fill{
  position:absolute;
  top:7px;
  height:38px;
  border-radius:999px;
  transition:left .18s ease, width .18s ease;
}

.diceTrack__fill--loss{
  left:7px;
  background:linear-gradient(90deg, #ff5b82, #f06d8b);
  box-shadow:0 0 24px rgba(255,84,123,.18);
}

.diceTrack__fill--win{
  background:linear-gradient(90deg, #69eeb0, #8ef5c7);
  box-shadow:0 0 24px rgba(61,242,160,.16);
}

.diceTrack__dot{
  position:absolute;
  top:21px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#091432;
  z-index:2;
  box-shadow:0 0 0 3px rgba(8,11,22,.16);
}

.diceTrack__dot.d1{ left:14%; }
.diceTrack__dot.d2{ left:36%; }
.diceTrack__dot.d3{ left:72%; }
.diceTrack__dot.d4{ left:94%; }

.diceKnob{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border-radius:999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.99), rgba(231,236,244,.97) 56%, rgba(201,210,224,.95) 100%);
  display:grid;
  place-items:center;
  z-index:5;
  border:2px solid rgba(255,255,255,.62);
  box-shadow:
    0 14px 28px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.86);
  transition:left .18s ease;
}

.diceKnob__w{
  position:relative;
  width:30px;
  height:20px;
  display:block;
}

.diceKnob__w i{
  position:absolute;
  width:5px;
  height:18px;
  border-radius:999px;
  background:#11182f;
}

.diceKnob__w i:nth-child(1){ left:0; top:0; transform:rotate(25deg); }
.diceKnob__w i:nth-child(2){ left:8px; top:4px; transform:rotate(-23deg); }
.diceKnob__w i:nth-child(3){ left:16px; top:4px; transform:rotate(23deg); }
.diceKnob__w i:nth-child(4){ right:0; top:0; transform:rotate(-25deg); }

.diceSlider{
  appearance:none;
  width:100%;
  margin-top:-56px;
  height:60px;
  background:transparent;
  position:relative;
  z-index:7;
}

.diceSlider::-webkit-slider-thumb{
  appearance:none;
  width:58px;
  height:58px;
  border-radius:999px;
  background:transparent;
  border:0;
  cursor:pointer;
}

.diceSlider::-moz-range-thumb{
  width:58px;
  height:58px;
  border-radius:999px;
  background:transparent;
  border:0;
  cursor:pointer;
}

.diceControls{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}

.diceControl label{
  display:block;
  margin-bottom:8px;
  color:rgba(255,255,255,.64);
  font-size:13px;
  font-weight:1000;
}

.diceControl__input{
  width:100%;
  height:58px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(13,17,31,.98), rgba(10,14,27,.98));
  color:#fff;
  padding:0 16px;
  font-size:18px;
  font-weight:1000;
  outline:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 24px rgba(0,0,0,.12);
}

.diceControl__input:focus{
  border-color:rgba(97,119,255,.34);
  box-shadow:
    0 0 0 4px rgba(90,112,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.diceControl__combo{
  display:grid;
  grid-template-columns:minmax(0,1fr) 60px;
  gap:10px;
}

.diceSwapBtn{
  height:58px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  color:#fff;
  font-size:24px;
  font-weight:1000;
  border:1px solid rgba(255,255,255,.05);
}

.diceBottomBar{
  margin-top:20px;
  display:flex;
  justify-content:flex-start;
  padding-bottom:18px;
}

.diceBottomBar--center{
  justify-content:center;
}

.diceProvablyBtn{
  height:42px;
  padding:0 18px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.05);
  color:#fff;
  font-size:14px;
  font-weight:1000;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.diceProvablyBtn--mobile{
  display:none;
}

.diceToast{
  position:fixed;
  left:50%;
  top:124px;
  transform:translateX(-50%) translateY(-12px);
  min-width:220px;
  max-width:min(90vw, 420px);
  padding:14px 18px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(184,34,34,.98), rgba(145,20,20,.98));
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  font-size:15px;
  font-weight:1000;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.40);
  opacity:0;
  pointer-events:none;
  z-index:99998;
  transition:opacity .22s ease, transform .22s ease;
}

.diceToast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.pfModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:99999;
}

.pfModal.is-open{
  display:block;
}

.pfModal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(10px);
}

.pfModal__card{
  position:relative;
  width:min(560px, calc(100% - 24px));
  max-height:calc(100vh - 28px);
  margin:14px auto;
  overflow:auto;
  border-radius:24px;
  border:1px solid rgba(125,92,255,.22);
  background:
    radial-gradient(circle at top right, rgba(120,84,255,.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(87,52,205,.16), transparent 28%),
    linear-gradient(180deg, rgba(12,10,22,.985), rgba(7,8,16,.99));
  box-shadow:
    0 32px 120px rgba(0,0,0,.72),
    0 0 0 1px rgba(125,92,255,.08),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.pfModal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 22px 14px;
}

.pfModal__title{
  color:#fff;
  font-size:24px;
  font-weight:1000;
  letter-spacing:-.03em;
}

.pfModal__desc{
  margin-top:8px;
  color:rgba(255,255,255,.72);
  line-height:1.55;
  font-size:14px;
  font-weight:800;
}

.pfModal__close{
  width:44px;
  height:44px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(125,92,255,.16);
  color:#fff;
  font-size:18px;
}

.pfModal__body{
  padding:0 22px 18px;
}

.pfField + .pfField{
  margin-top:14px;
}

.pfField label{
  display:block;
  margin-bottom:8px;
  color:rgba(219,208,255,.88);
  font-size:13px;
  font-weight:900;
}

.pfField__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px;
  gap:10px;
}

.pfInput{
  width:100%;
  height:50px;
  border-radius:15px;
  border:1px solid rgba(125,92,255,.18);
  background:linear-gradient(180deg, rgba(8,9,18,.98), rgba(12,10,24,.98));
  color:#f0edff;
  padding:0 14px;
  font-size:14px;
  font-weight:900;
  outline:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 24px rgba(0,0,0,.16);
}

.pfInput:focus{
  border-color:rgba(140,104,255,.42);
  box-shadow:
    0 0 0 4px rgba(116,78,255,.12),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.pfCopyBtn{
  height:50px;
  border-radius:15px;
  background:linear-gradient(180deg, rgba(36,25,66,.96), rgba(22,16,40,.96));
  border:1px solid rgba(125,92,255,.18);
  color:#ffffff;
  font-size:18px;
  box-shadow:0 8px 22px rgba(72,44,155,.12);
}

.pfDivider{
  height:1px;
  margin:18px 0 8px;
  background:linear-gradient(90deg, rgba(125,92,255,0), rgba(125,92,255,.24), rgba(125,92,255,0));
}

.pfModal__foot{
  padding:0 22px 22px;
}

.pfRotateBtn{
  width:100%;
  height:54px;
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #e8edf7 100%);
  border:1px solid rgba(255,255,255,.88);
  color:#090d16;
  font-size:18px;
  font-weight:1000;
  box-shadow:
    0 18px 40px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.pfRotateBtn:hover{
  background:linear-gradient(180deg, #ffffff 0%, #dfe6f2 100%);
  color:#090d16;
  box-shadow:
    0 20px 46px rgba(255,255,255,.12),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.dicePage ~ .fab--left,
body .fab--left{
  bottom:18px;
}

@media (min-width: 1101px){
  body .fab--left{
    left:18px;
  }
}

@media (max-width: 1100px){
  .diceLayout{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .diceSidebar{
    order:2;
    padding-bottom:20px;
  }

  .diceMain{
    order:1;
  }

  .diceSidebarSpacer{
    flex:0 0 auto;
    min-height:0;
  }
}

@media (max-width: 760px){
  .diceLayout{
    width:min(100%, calc(100% - 14px));
  }

  .diceControls{
    grid-template-columns:1fr;
  }

  .diceMain__top{
    flex-direction:column;
    align-items:flex-start;
  }

  .diceHistory{
    justify-content:flex-start;
    gap:10px;
  }

  .diceResultTag{
    top:72px;
  }

  .diceTrack{
    margin-top:86px;
  }

  .diceToast{
    top:104px;
  }
}

@media (max-width: 680px){
  .dicePage{
    height:100svh;
    min-height:100svh;
    padding-top:80px;
    padding-bottom:86px;
    overflow:hidden;
  }

  .diceGlow{
    opacity:.08;
    filter:blur(110px);
  }

  .diceLayout{
    width:min(100%, calc(100% - 10px));
    height:calc(100svh - 176px);
    min-height:calc(100svh - 176px);
    padding:8px 0 10px;
    gap:10px;
    grid-template-columns:1fr;
    grid-template-rows:minmax(0,1fr) auto;
    overflow:hidden;
  }

  .diceMain{
    order:1;
    min-height:0;
    padding:12px 12px 12px;
    border-radius:20px;
  }

  .diceSidebar{
    order:2;
    min-height:0;
    padding:10px;
    border-radius:18px;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    grid-template-areas:
      "bet stats"
      "roll roll";
    gap:10px;
    align-content:start;
  }

  .diceBox--top{
    grid-area:bet;
    padding:10px;
    border-radius:16px;
  }

  .diceMiniStats{
    grid-area:stats;
    margin-top:0;
    padding:10px 11px;
    border-radius:16px;
  }

  .diceQuickActions{
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:6px;
    margin-top:8px;
  }

  .diceProvablyBtn--mobile{
    display:inline-block;
    width:100px;
    height:36px;
    padding:0 14px;
    font-size:12px;
    border-radius:12px;
    white-space:nowrap;
    margin-left:91px;
  }

  .diceBottomBar,
  .diceProvablyBtn--desktop{
    display:none !important;
  }

  .diceRollBtn{
    grid-area:roll;
    margin-top:0;
    height:48px;
    border-radius:15px;
    font-size:17px;
    box-shadow:
      0 12px 28px rgba(255,255,255,.10),
      inset 0 1px 0 rgba(255,255,255,.98),
      inset 0 -8px 14px rgba(0,0,0,.06);
  }

  .diceSidebarSpacer,
  .diceStatus{
    display:none !important;
  }

  .diceBox__head{
    margin-bottom:7px;
    gap:8px;
  }

  .diceLabel,
  .diceBalance{
    font-size:11px;
  }

  .diceBetPrefix{
    left:13px;
    font-size:11px;
  }

  .diceBetInput{
    height:46px;
    border-radius:14px;
    padding:0 12px 0 44px;
    font-size:18px;
  }

  .diceQuickBtn{
    height:36px;
    border-radius:12px;
    font-size:13px;
  }

  .diceMiniStats__row{
    font-size:11px;
    gap:8px;
  }

  .diceMiniStats__row strong{
    font-size:13px;
  }

  .diceMiniStats__row--muted strong{
    font-size:11px;
  }

  .diceMiniStats__row + .diceMiniStats__row{
    margin-top:7px;
  }

  .diceMain__top{
    min-height:auto;
    gap:8px;
    margin-bottom:0;
  }

  .diceHeading__eyebrow{
    font-size:10px;
    letter-spacing:.10em;
  }

  .diceHeading__title{
    margin-top:3px;
    font-size:20px;
  }

  .diceHistory{
    gap:8px;
    min-height:18px;
  }

  .diceHistoryItem{
    font-size:11px;
  }

  .diceHistoryItem:nth-child(n+6){
    display:none;
  }

  .diceMain__center{
    flex:0 0 auto;
    justify-content:flex-start;
    padding:2px 0 0;
    min-height:0;
  }

  .diceResultTag{
    top:58px;
  }

  .diceResultTag span{
    min-width:66px;
    height:32px;
    padding:0 10px;
    border-radius:10px;
    font-size:13px;
  }

  .diceResultTag i{
    width:10px;
    height:10px;
    margin:-3px auto 0;
  }

  .diceTrack{
    margin-top:74px;
    height:38px;
  }

  .diceTrack__fill{
    top:5px;
    height:26px;
  }

  .diceTrack__dot{
    top:15px;
    width:7px;
    height:7px;
    box-shadow:0 0 0 2px rgba(8,11,22,.14);
  }

  .diceTrack__dot.d1{ left:12%; }
  .diceTrack__dot.d2{ left:34%; }
  .diceTrack__dot.d3{ left:70%; }
  .diceTrack__dot.d4{ left:92%; }

  .diceKnob{
    width:42px;
    height:42px;
  }

  .diceKnob__w{
    width:22px;
    height:14px;
  }

  .diceKnob__w i{
    width:4px;
    height:14px;
  }

  .diceKnob__w i:nth-child(1){ left:0; top:0; }
  .diceKnob__w i:nth-child(2){ left:6px; top:2px; }
  .diceKnob__w i:nth-child(3){ left:12px; top:2px; }
  .diceKnob__w i:nth-child(4){ right:0; top:0; }

  .diceSlider{
    margin-top:-40px;
    height:42px;
  }

  .diceSlider::-webkit-slider-thumb{
    width:42px;
    height:42px;
  }

  .diceSlider::-moz-range-thumb{
    width:42px;
    height:42px;
  }

  .diceControls{
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:8px;
    margin-top:18px;
    position:relative;
    z-index:2;
  }

  .diceControl label{
    margin-bottom:5px;
    font-size:10px;
  }

  .diceControl__input{
    height:44px;
    border-radius:13px;
    padding:0 10px;
    font-size:14px;
  }

  .diceControl__combo{
    grid-template-columns:minmax(0,1fr) 44px;
    gap:6px;
  }

  .diceSwapBtn{
    height:44px;
    border-radius:13px;
    font-size:18px;
  }

  .diceToast{
    top:96px;
    min-width:0;
    max-width:min(92vw, 360px);
    padding:11px 14px;
    font-size:13px;
    border-radius:13px;
  }

  body .fab--left,
  body .fab--right{
    display:none !important;
  }
}

@media (max-width: 420px){
  .dicePage{
    padding-top:78px;
    padding-bottom:82px;
    height:100svh;
    min-height:100svh;
  }

  .diceLayout{
    height:calc(100svh - 168px);
    min-height:calc(100svh - 168px);
    width:min(100%, calc(100% - 8px));
    gap:8px;
    padding:6px 0 8px;
  }

  .diceMain{
    padding:10px 10px 10px;
    border-radius:18px;
  }

  .diceSidebar{
    padding:8px;
    gap:8px;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    border-radius:16px;
  }

  .diceBox--top,
  .diceMiniStats{
    padding:8px;
    border-radius:14px;
  }

  .diceLabel,
  .diceBalance{
    font-size:10px;
  }

  .diceBetPrefix{
    left:11px;
    font-size:10px;
  }

  .diceBetInput{
    height:42px;
    padding:0 10px 0 38px;
    border-radius:13px;
    font-size:16px;
  }

  .diceQuickActions{
    gap:5px;
  }

  .diceQuickBtn{
    height:32px;
    border-radius:11px;
    font-size:12px;
  }

  .diceMiniStats__row{
    font-size:10px;
  }

  .diceMiniStats__row strong{
    font-size:12px;
  }

  .diceMiniStats__row--muted strong{
    font-size:10px;
  }

  .diceProvablyBtn--mobile{
    height:32px;
    padding:0 8px;
    font-size:10px;
    border-radius:11px;
  }

  .diceRollBtn{
    height:44px;
    border-radius:14px;
    font-size:16px;
  }

  .diceHeading__eyebrow{
    display:none;
  }

  .diceHeading__title{
    font-size:18px;
  }

  .diceHistory{
    gap:6px;
  }

  .diceHistoryItem{
    font-size:10px;
  }

  .diceHistoryItem:nth-child(n+5){
    display:none;
  }

  .diceResultTag{
    top:26px;
  }

  .diceResultTag span{
    min-width:58px;
    height:28px;
    font-size:12px;
    border-radius:9px;
    padding:0 8px;
  }

  .diceTrack{
    margin-top:60px;
    height:34px;
  }

  .diceTrack__fill{
    top:4px;
    height:24px;
  }

  .diceTrack__dot{
    top:14px;
    width:6px;
    height:6px;
  }

  .diceKnob{
    width:38px;
    height:38px;
  }

  .diceKnob__w{
    width:20px;
    height:12px;
  }

  .diceKnob__w i{
    width:3px;
    height:12px;
  }

  .diceSlider{
    margin-top:-36px;
    height:38px;
  }

  .diceSlider::-webkit-slider-thumb{
    width:38px;
    height:38px;
  }

  .diceSlider::-moz-range-thumb{
    width:38px;
    height:38px;
  }

  .diceControls{
    gap:6px;
    margin-top:16px;
  }

  .diceControl label{
    font-size:9px;
    margin-bottom:4px;
  }

  .diceControl__input{
    height:40px;
    padding:0 8px;
    font-size:12px;
    border-radius:12px;
  }

  .diceControl__combo{
    grid-template-columns:minmax(0,1fr) 40px;
    gap:5px;
  }

  .diceSwapBtn{
    height:40px;
    font-size:16px;
    border-radius:12px;
  }

  .diceToast{
    top:92px;
    font-size:12px;
    padding:10px 12px;
  }
}