/* Dice page. Plain CSS (valid SCSS too, so dice.scss is a copy); the shared card, controls and game bar come from limbo.css. */
.dice-page .dice-stage {
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px 28px 24px;
}

/* The last few rolls, newest first */
.dice-page .dice-history {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dice-page .dice-chip {
  padding: 3px 9px;
  color: #17242c;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  animation: dice-chip-in 0.25s ease-out;
}

.dice-page .dice-chip.is-win {
  background: #62dc3c;
}

.dice-page .dice-chip.is-loss {
  background: #ff7b78;
}

/* The slider: a frame with notches under the 0 to 100 labels, a thin bar that shows what wins (green) and what loses (red),
   a blue thumb for the target, and a cube that lands on the roll. The rail is inset by half a thumb so the thumb's centre
   sits exactly on the scale. */
.dice-page .dice-slider {
  --win: #62dc3c;
  --lose: #e0344d;
  --thumb: 40px;
  margin: 96px 0 0;
}

.dice-page .dice-frame {
  position: relative;
  padding: 14px 18px;
  background: #37444c;
  border-radius: 999px;
}

.dice-page .dice-well {
  padding: 18px calc(var(--thumb) / 2 + 4px);
  background: #12161a;
  border-radius: 999px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.55);
}

.dice-page .dice-rail {
  position: relative;
  height: 10px;
}

.dice-page .dice-ticks {
  position: absolute;
  top: -32px;
  right: calc(18px + var(--thumb) / 2 + 4px);
  left: calc(18px + var(--thumb) / 2 + 4px);
  height: 32px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dice-page .dice-ticks span {
  position: absolute;
  bottom: 9px;
  transform: translateX(-50%);
}

.dice-page .dice-ticks span::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  margin-left: -6px;
  border-right: 6px solid transparent;
  border-bottom: 7px solid #37444c;
  border-left: 6px solid transparent;
}

.dice-page .dice-bar {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.dice-page .dice-slider.is-over .dice-bar {
  background: linear-gradient(to right, var(--lose) 0, var(--lose) calc(var(--t) * 1%), var(--win) calc(var(--t) * 1%), var(--win) 100%);
}

.dice-page .dice-slider.is-under .dice-bar {
  background: linear-gradient(to right, var(--win) 0, var(--win) calc(var(--t) * 1%), var(--lose) calc(var(--t) * 1%), var(--lose) 100%);
}

/* The real input is wider than the rail by half a thumb each side, and see-through: only its thumb shows */
.dice-page #diceTarget {
  position: absolute;
  top: 50%;
  right: calc(var(--thumb) / -2);
  left: calc(var(--thumb) / -2);
  width: calc(100% + var(--thumb));
  height: var(--thumb);
  margin: calc(var(--thumb) / -2) 0 0;
  background: transparent;
  cursor: grab;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}

.dice-page #diceTarget:active {
  cursor: grabbing;
}

.dice-page #diceTarget:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.dice-page #diceTarget::-webkit-slider-runnable-track {
  height: var(--thumb);
  background: transparent;
}

.dice-page #diceTarget::-moz-range-track {
  height: var(--thumb);
  background: transparent;
}

.dice-page #diceTarget::-webkit-slider-thumb {
  width: var(--thumb);
  height: var(--thumb);
  background: #3376dc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g stroke='white' stroke-width='2.6' stroke-linecap='round'><path d='M14 12v16M20 12v16M26 12v16'/></g></svg>") center/100% 100% no-repeat;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  appearance: none;
  -webkit-appearance: none;
}

.dice-page #diceTarget::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  background: #3376dc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g stroke='white' stroke-width='2.6' stroke-linecap='round'><path d='M14 12v16M20 12v16M26 12v16'/></g></svg>") center/100% 100% no-repeat;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dice-page #diceTarget:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px #9dcbff;
}

.dice-page #diceTarget:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px #9dcbff;
}

/* The cube floats above the scale, with a line down to where the roll landed, so the bar and the thumb stay visible */
.dice-page .dice-cube {
  position: absolute;
  z-index: 1;
  top: -142px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 70px;
  color: #e0344d;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dice-page .dice-cube.is-win {
  color: #1fa84f;
}

.dice-page .dice-cube[hidden] {
  display: none;
}

.dice-page .dice-cube::after {
  content: "";
  position: absolute;
  top: 66px;
  left: 50%;
  width: 3px;
  height: 66px;
  margin-left: -1.5px;
  background: linear-gradient(to bottom, currentColor, transparent);
  border-radius: 2px;
  opacity: 0.8;
}

.dice-page .dice-cube svg {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
}

.dice-page .dice-cube span {
  grid-area: 1/1;
  margin-top: 7px;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.dice-page .dice-cube.is-rolling {
  color: #4a5a66;
  animation: dice-tumble 0.45s ease-in-out;
}

.dice-page .dice-cube.is-win,
.dice-page .dice-cube.is-loss {
  animation: dice-land 0.3s ease-out;
}

/* Roll Over / Roll Under, and what wins in plain words */
.dice-page .dice-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.dice-page .dice-dir button {
  min-height: 46px;
  font-size: 15px;
}

/* Multiplier, target and win chance */
.dice-page .dice-field input[type=number] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
          appearance: textfield;
}

.dice-page .dice-field input[type=number]::-webkit-inner-spin-button,
.dice-page .dice-field input[type=number]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.dice-page .dice-target-text {
  font-weight: 700;
  border-right: 1px solid #6f8796 !important;
  border-radius: 6px !important;
  cursor: default;
}

.dice-page .dice-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.dice-page .dice-field label {
  display: block;
  margin-bottom: 6px;
  color: #b4c6d1;
  font-size: 13px;
  font-weight: 600;
}

.dice-page .dice-field .form-control,
.dice-page .dice-field .input-group-text {
  min-height: 48px;
  color: #fff;
  font-size: 16px;
  background-color: #182e3a;
  border: 1px solid #6f8796;
}

.dice-page .dice-field .input-group-text {
  color: #b4c6d1;
  border-left: 0;
}

.dice-page .dice-field .form-control {
  min-width: 0;
  border-right: 0;
}

.dice-page .dice-field .form-control:focus {
  border-color: #9dcbff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.dice-page .dice-field .form-control:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.dice-page .dice-status {
  min-height: 24px;
  margin: 2px 0 0;
  color: #b4c6d1;
  font-size: 14px;
  text-align: center;
}

.dice-page .dice-status.is-win {
  color: #80e3b3;
  font-weight: 600;
}

.dice-page .dice-status.is-loss {
  color: #ffaaa8;
  font-weight: 600;
}

@media (max-width: 740px) {
  .dice-page .dice-stage {
    padding: 16px 10px 20px;
  }
  .dice-page .dice-fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dice-page .dice-chip {
    animation: none;
  }
  .dice-page .dice-cube {
    transition: none;
    animation: none !important;
  }
}
@keyframes dice-tumble {
  0%, 100% {
    transform: translateX(-50%) rotate(0);
  }
  25% {
    transform: translateX(-50%) translateY(-6px) rotate(-8deg);
  }
  75% {
    transform: translateX(-50%) translateY(-6px) rotate(8deg);
  }
}
@keyframes dice-land {
  from {
    transform: translateX(-50%) translateY(-10px) scale(0.9);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes dice-chip-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}/*# sourceMappingURL=dice.css.map */