.rou {
  background: #171b28;
  color: #fff;
  border-radius: 16px;
  padding: 12px;
  max-width: 100%;
  overflow: hidden;
}
.rou-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.rou-head span { display: block; color: #8b97b8; font-size: 12px; font-weight: 700; }
.rou-head b { font-size: 22px; line-height: 1; }
.rou-head button {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #1f6aed;
  color: #fff;
  font-weight: 800;
}
.rou-history {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.rou-history::-webkit-scrollbar { display: none; }
.rou-history i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.rou-history i.red { background: #ff5235; }
.rou-history i.gray { background: #3d455c; }

.rou-stage {
  position: relative;
  height: 176px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(120px 80px at 50% 80%, rgba(61, 183, 255, 0.16), transparent 70%),
    #121722;
  margin-bottom: 8px;
}
.rou-fair {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.rou-fair::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  background: #20c997;
  vertical-align: -1px;
}
.rou-pointer {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 78px;
  width: 0;
  height: 0;
  margin-left: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid #3db7ff;
}
.wheel {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 0;
  height: 0;
}
.seg {
  position: absolute;
  width: 58px;
  height: 50px;
  margin-left: -29px;
  margin-top: -25px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.seg.red { background: linear-gradient(180deg, #ff7a55, #e4452c); }
.seg.gray { background: linear-gradient(180deg, #59627c, #343b50); }
.seg.win { box-shadow: 0 0 0 3px #fff; }

.rou-phase { text-align: center; color: #9aa6c3; font-weight: 700; }
.rou-phase b { display: block; margin-top: 2px; color: #fff; font-size: 22px; }

.rou-amount { margin-top: 10px; }
.rou-amount label, .rou-card .tag {
  display: block;
  margin-bottom: 6px;
  color: #7a86ae;
  font-size: 13px;
  font-weight: 700;
}
.bet-field { position: relative; }
.bet-field input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #252b3f;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 0 148px 0 12px;
}
.bet-ops {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 4px;
}
.bet-ops button {
  height: 36px;
  border-radius: 8px;
  background: #393e51;
  color: #fff;
  font-weight: 800;
}
.rou-card {
  margin-top: 8px;
  background: #121722;
  border-radius: 12px;
  padding: 10px;
}
.rou-group {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: #ff5235;
}
.rou-card.gray .rou-group { background: #3d455c; }
.rou-group.is-on { box-shadow: inset 0 0 0 2px #fff; }
.rou-group:disabled, .num:disabled, .bet-ops button:disabled, .bet-field input:disabled { opacity: 0.55; }
.nums {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.num {
  height: 36px;
  border-radius: 8px;
  background: #252b3f;
  color: #9aa6c3;
  font-weight: 800;
}
.num.is-on { background: #1f6aed; color: #fff; }
.rou-note { margin: 10px 0 0; color: #8b97b8; font-size: 12px; }
